* modules/regex (Depends-on): Revert dependence on mempcpy.
[gnulib.git] / ChangeLog
1 2007-02-01  Eric Blake  <ebb9@byu.net>
2
3         * modules/regex (Depends-on): Revert dependence on mempcpy.
4         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
5         module's definition of mempcpy.
6         Reported by Paul Eggert.
7
8 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
9
10         * lib/string_.h: If the gnulib module XYZ is not present, undefine
11         the symbol XYZ before redefining it.  This fixes a problem with
12         programs that don't use XYZ, when compiled on systems that define
13         XYZ to something else.
14
15 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
16
17         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
18         occurs when "mkdir -m foo" creates a setgid directory that is (1)
19         writeable to group or other and (2) is intended to have a special
20         mode bit that is set or cleared.  In such a case, the directory
21         should be neither group- nor other-writeable until the special
22         mode bits are right.
23
24 2007-01-31  Eric Blake  <ebb9@byu.net>
25
26         * modules/mountlist (Depends-on): Add strstr.
27
28         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
29         bug.
30         * modules/string (Makefile.am): Remove redundant replacement.
31         * modules/regex (Depends-on): Add mempcpy.
32
33 2007-01-31  Bruno Haible  <bruno@clisp.org>
34
35         New module description field 'Link'.
36         * gnulib-tool (func_usage): Document --extract-link-directive.
37         (sed_extract_prog): Recognize 'Link' directive.
38         (func_get_link_directive): New function.
39         (func_import): Show summary of link directives.
40         Handle --extract-link-directive option.
41         * modules/acl (Link): New section.
42         * modules/clock-time (Link): New section.
43         * modules/euidaccess (Link): New section.
44         * modules/gettext (Link): New section.
45         * modules/iconv (Link): New section.
46         * modules/lock (Link): New section.
47         * modules/nanosleep (Link): New section.
48         * modules/readline (Link): New section.
49
50 2007-01-27  Bruno Haible  <bruno@clisp.org>
51
52         Enforce the use of gnulib modules for unportable <string.h> functions.
53         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
54         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
55         (gl_HEADER_STRING_H_BODY): Require it.
56         * lib/string_.h: If the gnulib module XYZ is not present, redefine
57         the symbol XYZ to one that gives a link error.
58         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
59         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
60         * modules/mempcpy (configure.ac): Likewise.
61         * modules/memrchr (configure.ac): Likewise.
62         * modules/stpcpy (configure.ac): Likewise.
63         * modules/stpncpy (configure.ac): Likewise.
64         * modules/strcase (configure.ac): Likewise.
65         * modules/strcasestr (configure.ac): Likewise.
66         * modules/strchrnul (configure.ac): Likewise.
67         * modules/strdup (configure.ac): Likewise.
68         * modules/strndup (configure.ac): Likewise.
69         * modules/strnlen (configure.ac): Likewise.
70         * modules/strpbrk (configure.ac): Likewise.
71         * modules/strsep (configure.ac): Likewise.
72         * modules/strstr (configure.ac): Likewise.
73         * modules/strtok_r (configure.ac): Likewise.
74
75 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
76
77         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
78
79 2007-01-30  Jim Meyering  <jim@meyering.net>
80
81         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
82
83 2007-01-29  Bruno Haible  <bruno@clisp.org>
84
85         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
86         * lib/execute.c: Likewise.
87         * lib/pipe.c: Likewise.
88         * lib/printf-args.h: Likewise.
89         * lib/printf-args.c: Likewise.
90         * lib/printf-parse.c: Likewise.
91         * lib/vasnprintf.c: Likewise.
92
93 2007-01-29  Eric Blake  <ebb9@byu.net>
94
95         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
96         declaration.
97
98 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
99
100         * lib/strptime.h (strptime): Use 'restrict' for args where
101         POSIX requires this.
102         * lib/strptime.c (strptime): Likewise.
103         Change license notice from LGPL to GPL, since gnulib-tool will
104         change this as needed.
105         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
106         defined.
107         Include "strptime.h" first, to check interface.
108         Do not #undef _LIBC and _NL_CURRENT.
109         Do not include <stdlib.h>; no longer needed.
110         Include "time_r.h" and declare ptime_locale_status
111         only if _LIBC is not defined.
112         (__P): Remove unused macro.
113         (match_string): Bring back glibc version, but use it only if _LIBC
114         is defined.
115         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
116         Remove unnecessary assertion and abort() call.
117         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
118         * m4/strptime.m4: Fix serial number comment.
119         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
120         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
121         (Depends-on): Add time_r.
122
123 2007-01-29  Bruno Haible  <bruno@clisp.org>
124
125         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
126         strptime.
127         * modules/strptime (Depends-on): Add stdbool.
128         * lib/strptime.h: Include <time.h> always. Add comments.
129
130 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
131
132         * modules/strptime: New file.
133         * lib/strptime.h: New file.
134         * lib/strptime.c: New file.
135         * m4/strptime.m4: New file.
136
137 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
138
139         * MODULES.html.sh: New module mpsort.
140         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
141
142         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
143         a circularity problem with HP-UX ia64 reported by Bob Proulx in
144         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
145         All uses changed.
146         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
147         All uses changed.
148         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
149         to _Restrict_.
150         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
151         the parameter matches the prototype.
152
153 2007-01-28  Jim Meyering  <jim@meyering.net>
154
155         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
156         sys/time.h here, reverting that part of the previous patch:
157         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
158
159 2007-01-28  Bruno Haible  <bruno@clisp.org>
160
161         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
162         value of $(SYS_TIME_H).
163         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
164         remove it conditionally, too. [added by Jim Meyering]
165         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
166         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
167         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
168         GETTIMEOFDAY_REPLACEMENT to 1.
169
170 2007-01-28  Bruno Haible  <bruno@clisp.org>
171
172         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
173         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
174         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
175         Set UNISTD_H instead of UNISTD_H2.
176         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
177
178 2007-01-28  Bruno Haible  <bruno@clisp.org>
179
180         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
181         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
182
183 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
184
185         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
186         (func_create_testdir): Ensure C locale for `grep' and `tr'
187         character ranges.
188         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
189         ACLOCAL_AMFLAGS parsing state machine.
190
191 2007-01-27  Bruno Haible  <bruno@clisp.org>
192
193         * modules/unistr/base: Update.
194
195 2007-01-27  Bruno Haible  <bruno@clisp.org>
196
197         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
198         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
199         * modules/unistr/u32-mbtouc-unsafe: Renamed from
200         modules/unistr/u32-mbtouc.
201         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
202         * lib/unistr.h: Update.
203         * lib/linebreak.c: Update.
204         * modules/unistr/u32-mbtouc: Renamed from
205         modules/unistr/u32-mbtouc-safe.
206         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
207         * lib/unistr.h: Update.
208         * lib/unistr/u32-to-u8.c: Update.
209         * lib/unistr/u32-to-u16.c: Update.
210
211 2007-01-27  Bruno Haible  <bruno@clisp.org>
212
213         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
214         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
215         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
216         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
217         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
218         * modules/unistr/u16-mbtouc-unsafe: Renamed from
219         modules/unistr/u16-mbtouc.
220         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
221         * lib/unistr.h: Update.
222         * lib/linebreak.c: Update.
223         * modules/linebreak: Update.
224         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
225         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
226         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
227         * modules/unistr/u16-mbtouc: Renamed from
228         modules/unistr/u16-mbtouc-safe.
229         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
230         * lib/unistr.h: Update.
231         * lib/unistr/u16-to-u8.c: Update.
232         * modules/unistr/u16-to-u8: Update.
233         * lib/unistr/u16-to-u32.c: Update.
234         * modules/unistr/u16-to-u32: Update.
235
236 2007-01-27  Bruno Haible  <bruno@clisp.org>
237
238         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
239         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
240         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
241         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
242         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
243         * modules/unistr/u8-mbtouc-unsafe: Renamed from
244         modules/unistr/u8-mbtouc.
245         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
246         * lib/unistr.h: Update.
247         * lib/striconveh.c: Update.
248         * modules/striconveh: Update.
249         * lib/linebreak.c: Update.
250         * modules/linebreak: Update.
251         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
252         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
253         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
254         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
255         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
256         * lib/unistr.h: Update.
257         * lib/striconveh.c: Update.
258         * modules/striconveh: Update.
259         * lib/unistr/u8-to-u16.c: Update.
260         * modules/unistr/u8-to-u16: Update.
261         * lib/unistr/u8-to-u32.c: Update.
262         * modules/unistr/u8-to-u32: Update.
263
264 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
265
266         Sync from Libtool.
267         * lib/argz.c: Do not include strings.h nor memory.h, include
268         string.h unconditionally.  Patch by Simon Josefsson.
269
270 2007-01-27  Bruno Haible  <bruno@clisp.org>
271
272         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
273         from gl_HEADER_STRING_H_BODY.
274         (gl_HEADER_STRING_H_BODY): Require it.
275         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
276         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
277         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
278         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
279         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
280         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
281         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
282         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
283         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
284         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
285         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
286         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
287         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
288         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
289         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
290
291 2007-01-27  Bruno Haible  <bruno@clisp.org>
292
293         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
294         check_PROGRAMS into noinst_PROGRAMS.
295         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
296         check_PROGRAMS in this case.
297         (func_import): Set for_test to false.
298         (func_create_testdir): Set for_test to true.
299
300 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
301             Bruno Haible  <bruno@clisp.org>
302
303         * modules/strcasestr (Files): Remove lib/strcasestr.h.
304         (Depends-on): Add string.
305         (Includes): Use <string.h> instead of strcasestr.h.
306         * modules/string (Makefile.am): Also substitute the value of
307         REPLACE_STRCASESTR.
308         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
309         assume strcasestr is declared in <string.h> not <strings.h>. Also
310         set REPLACE_STRCASESTR.
311         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
312         REPLACE_STRCASESTR.
313         * lib/strcasestr.h: Remove file.
314         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
315         * lib/string_.h (strcasestr): New declaration.
316
317 2007-01-27  Bruno Haible  <bruno@clisp.org>
318
319         * lib/string_.h: Use 'extern'.
320
321 2007-01-27  Jim Meyering  <jim@meyering.net>
322
323         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
324         of set-but-not-used local, "q".
325
326         * lib/mempcpy.c: Include <config.h> before <string.h>.
327         This fixes a compilation error on HP-UX, due to the system's
328         "restrict"-using mempcpy prototype.
329
330 2007-01-26  Bruno Haible  <bruno@clisp.org>
331
332         Small optimization.
333         * lib/javacomp.c: Include c-strstr.h.
334          (is_envjavac_gcj): Use c_strstr instead of strstr.
335         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
336
337 2007-01-26  Bruno Haible  <bruno@clisp.org>
338
339         * MODULES.html.sh (Unicode string functions): Add the new modules.
340
341         * modules/uniconv/u32-strconv-to-locale: New file.
342         * lib/uniconv/u32-strconv-to-locale.c: New file.
343
344         * modules/uniconv/u16-strconv-to-locale: New file.
345         * lib/uniconv/u16-strconv-to-locale.c: New file.
346
347         * modules/uniconv/u8-strconv-to-locale: New file.
348         * lib/uniconv/u8-strconv-to-locale.c: New file.
349
350         * modules/uniconv/u32-strconv-from-locale: New file.
351         * lib/uniconv/u32-strconv-from-locale.c: New file.
352
353         * modules/uniconv/u16-strconv-from-locale: New file.
354         * lib/uniconv/u16-strconv-from-locale.c: New file.
355
356         * modules/uniconv/u8-strconv-from-locale: New file.
357         * lib/uniconv/u8-strconv-from-locale.c: New file.
358
359         * modules/uniconv/u32-strconv-to-enc: New file.
360         * lib/uniconv/u32-strconv-to-enc.c: New file.
361         * modules/uniconv/u32-strconv-to-enc-tests: New file.
362         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
363
364         * modules/uniconv/u16-strconv-to-enc: New file.
365         * lib/uniconv/u16-strconv-to-enc.c: New file.
366         * lib/uniconv/u-strconv-to-enc.h: New file.
367         * modules/uniconv/u16-strconv-to-enc-tests: New file.
368         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
369
370         * modules/uniconv/u8-strconv-to-enc: New file.
371         * lib/uniconv/u8-strconv-to-enc.c: New file.
372         * modules/uniconv/u8-strconv-to-enc-tests: New file.
373         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
374
375         * modules/uniconv/u32-strconv-from-enc: New file.
376         * lib/uniconv/u32-strconv-from-enc.c: New file.
377         * modules/uniconv/u32-strconv-from-enc-tests: New file.
378         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
379
380         * modules/uniconv/u16-strconv-from-enc: New file.
381         * lib/uniconv/u16-strconv-from-enc.c: New file.
382         * modules/uniconv/u16-strconv-from-enc-tests: New file.
383         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
384
385         * modules/uniconv/u8-strconv-from-enc: New file.
386         * lib/uniconv/u8-strconv-from-enc.c: New file.
387         * lib/uniconv/u-strconv-from-enc.h: New file.
388         * modules/uniconv/u8-strconv-from-enc-tests: New file.
389         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
390
391         * modules/uniconv/u32-conv-from-enc: New file.
392         * lib/uniconv/u32-conv-from-enc.c: New file.
393         * modules/uniconv/u32-conv-from-enc-tests: New file.
394         * tests/uniconv/test-u32-conv-from-enc.c: New file.
395
396         * modules/uniconv/u16-conv-from-enc: New file.
397         * lib/uniconv/u16-conv-from-enc.c: New file.
398         * lib/uniconv/u-conv-from-enc.h: New file.
399         * modules/uniconv/u16-conv-from-enc-tests: New file.
400         * tests/uniconv/test-u16-conv-from-enc.c: New file.
401
402         * modules/uniconv/u8-conv-from-enc: New file.
403         * lib/uniconv/u8-conv-from-enc.c: New file.
404         * modules/uniconv/u8-conv-from-enc-tests: New file.
405         * tests/uniconv/test-u8-conv-from-enc.c: New file.
406
407         * modules/uniconv/base: New file.
408         * lib/uniconv.h: New file.
409
410 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
411
412         * doc/gnulib-tool.texi (Initial import): Update to match current
413         behavior with strdup module.
414         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
415         * lib/memmem.h: Remove; all uses removed.  This is now done
416         by <string.h>.
417         * lib/mempcpy.h: Likewise.
418         * lib/memrchr.h: Likewise.
419         * lib/stpcpy.h: Likewise.
420         * lib/stpncpy.h: Likewise.
421         * lib/strcase.h: Likewise.
422         * lib/strchrnul.h: Likewise.
423         * lib/strdup.h: Likewise.
424         * lib/strndup.h: Likewise.
425         * lib/strnlen.h: Likewise.
426         * lib/strpbrk.h: Likewise.
427         * lib/strsep.h: Likewise.
428         * lib/strstr.h: Likewise.
429         * lib/strtok_r.h: Likewise.
430         * lib/string_.h: New file.
431         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
432         Rely on <string.h> instead.
433         * lib/canon-host.c: Likewise.
434         * lib/chdir-long.c: Likewise.
435         * lib/concatpath.c: Likewise.
436         * lib/exclude.c: Likewise.
437         * lib/fchdir.c: Likewise.
438         * lib/getaddrinfo.c: Likewise.
439         * lib/getcwd.c: Likewise.
440         * lib/getsubopt.c: Likewise.
441         * lib/glob.c: Likewise.
442         * lib/hard-locale.c: Likewise.
443         * lib/iconvme.c: Likewise.
444         * lib/javacomp.c: Likewise.
445         * lib/mempcpy.c: Likewise.
446         * lib/memrchr.c: Likewise.
447         * lib/regex_internal.h: Likewise.
448         * lib/stpncpy.c: Likewise.
449         * lib/strcasecmp.c: Likewise.
450         * lib/strchrnul.c: Likewise.
451         * lib/strdup.c: Likewise.
452         * lib/striconv.c: Likewise.
453         * lib/striconveh.c: Likewise.
454         * lib/striconveha.c: Likewise.
455         * lib/strncasecmp.c: Likewise.
456         * lib/strndup.c: Likewise.
457         * lib/strnlen.c: Likewise.
458         * lib/strsep.c: Likewise.
459         * lib/strstr.c: Likewise.
460         * lib/strtok_r.c: Likewise.
461         * lib/userspec.c: Likewise.
462         * lib/w32spawn.h: Likewise.
463         * lib/xstrndup.c: Likewise.
464         * lib/mountlist.c (strstr): Remove decl.
465         * m4/string_h.m4: New file.
466         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
467         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
468         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
469         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
470         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
471         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
472         Set REPLACE_STRCASECMP if necessary.
473         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
474         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
475         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
476         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
477         HAVE_DECL_STRDUP if necessary.
478         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
479         since gl_FUNC_STRNDUP does that now.
480         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
481         Check for decl here...
482         (gl_PREREQ_STRNLEN): ... not here.
483         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
484         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
485         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
486         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
487         necessary.
488         * modules/string: New file.
489         * modules/memmem (Files): Remove special-purpose include file.
490         (Depends-on): Add string.
491         (Include): Include <string.h>, not the removed file.
492         * modules/mempcpy: Likewise.
493         * modules/memrchr: Likewise.
494         * modules/stpcpy: Likewise.
495         * modules/stpncpy: Likewise.
496         * modules/strcase: Likewise.
497         * modules/strchrnul: Likewise.
498         * modules/strdup: Likewise.
499         * modules/strndup: Likewise.
500         * modules/strnlen: Likewise.
501         * modules/strpbrk: Likewise.
502         * modules/strsep: Likewise.
503         * modules/strstr: Likewise.
504         * modules/strtok_r: Likewise.
505         * tests/test-dirname.c: Don't include "strdup.h", since
506         <string.h> now suffices.
507         * tests/test-memmem.c: Don't include "memmem.h", since
508         <string.h> now suffices.
509
510 2007-01-25  Bruno Haible  <bruno@clisp.org>
511
512         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
513         *resultp is 0.
514
515         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
516         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
517         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
518         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
519
520         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
521         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
522         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
523         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
524         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
525         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
526
527 2007-01-24  Bruno Haible  <bruno@clisp.org>
528
529         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
530         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
531         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
532         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
533         gl_FUNC_FTS_CORE.
534         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
535         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
536         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
537         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
538         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
539         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
540         gl_FUNC_FCHOWNAT.
541         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
542         gl_FUNC_STRFTIME.
543         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
544         Reported by Ralf Wildenhues.
545
546 2007-01-24  Bruno Haible  <bruno@clisp.org>
547
548         Drop AC_REQUIRE calls that are redundant with the module dependencies.
549         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
550         gl_GETADDRINFO.
551         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
552         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
553         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
554
555 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
556
557         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
558         Don't use 'exit'; just return from 'main'.
559         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
560
561         * lib/fnmatch_.h: Readjust white space and comments to match
562         glibc, to avoid spurious diffs.
563
564 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
565
566         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
567         2004-12-01 change by Jakub Jelinek, since this code won't compile
568         if !LIBC.  Problem reported by Bob Proulx.
569
570 2007-01-23  Bruno Haible  <bruno@clisp.org>
571
572         * lib/striconveh.c: Include c-strcaseeq.h.
573         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
574         * modules/striconveh (Depends-on): Add c-strcaseeq.
575
576 2007-01-23  Bruno Haible  <bruno@clisp.org>
577
578         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
579
580         * modules/c-strcaseeq: New file.
581         * lib/c-strcaseeq.h: New file.
582
583         * modules/streq: New file.
584         * lib/streq.h: New file.
585
586 2007-01-23  Bruno Haible  <bruno@clisp.org>
587
588         * modules/striconveha-tests: New file.
589         * tests/test-striconveha.c: New file.
590
591         * lib/striconveha.h: Include <stdbool.h>.
592         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
593         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
594         (mem_iconveha_notranslit): Renamed from mem_iconveha.
595         (mem_iconveha): New function.
596         (str_iconveha_notranslit): Renamed from str_iconveha.
597         (str_iconveha): New function.
598         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
599         c-strcase.
600
601 2007-01-23  Bruno Haible  <bruno@clisp.org>
602
603         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
604         encodings without forgiving before trying any encoding with handler.
605         (str_iconveha): Try all encodings without forgiving before trying any
606         encoding with handler.
607
608 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
609
610         Import the following changes from libc.
611
612         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
613
614         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
615
616         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
617
618         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
619         normal_bracket label.
620
621         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
622
623         [BZ #361]
624         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
625         to normal_bracket after fetching the next character.
626
627 2007-01-22  Bruno Haible  <bruno@clisp.org>
628
629         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
630         argument.
631         * lib/striconveh.c (iconv_carefully_1): New function.
632         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
633         argument.
634         (str_cd_iconveh): Update.
635         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
636         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
637         * tests/test-striconveh.c (MAGIC): New macro.
638         (new_offsets): New function.
639         (main): Test call with and without offsets.
640
641 2007-01-22  Bruno Haible  <bruno@clisp.org>
642
643         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
644         * modules/sys_select (Makefile.am): Likewise.
645         * modules/sys_socket (Makefile.am): Likewise.
646         * modules/sys_time (Makefile.am): Likewise.
647
648 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
649
650         * modules/gettimeofday (License): Change from GPL to LGPL, since
651         gettimeofday is a library function.
652
653 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
654
655         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
656
657 2007-01-21  Bruno Haible  <bruno@clisp.org>
658
659         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
660
661 2007-01-21  Bruno Haible  <bruno@clisp.org>
662
663         * modules/striconveha: New file.
664         * lib/striconveha.h: New file.
665         * lib/striconveha.c: New file.
666         * MODULES.html.sh (Internationalization functions): Add striconveha.
667         * lib/striconv.c (str_iconv): Optimize the case of an empty input
668         string.
669         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
670
671 2007-01-21  Bruno Haible  <bruno@clisp.org>
672
673         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
674         * lib/striconveh.c (str_iconveh): Likewise.
675
676 2007-01-21  Bruno Haible  <bruno@clisp.org>
677
678         * lib/striconveh.h (mem_iconveh): New declaration.
679         * lib/striconveh.c (mem_iconveh): New function.
680         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
681
682 2007-01-21  Bruno Haible  <bruno@clisp.org>
683
684         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
685
686         * lib/striconveh.h (mem_cd_iconveh): Change specification.
687         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
688         original result buffer.
689         (str_cd_iconveh): Update.
690         * tests/test-striconveh.c (main): Update.
691
692         * lib/striconv.h (mem_cd_iconv): Change specification.
693         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
694         result buffer.
695         (str_cd_iconv): Update.
696         * tests/test-striconv.c (main): Update.
697
698 2007-01-21  Bruno Haible  <bruno@clisp.org>
699
700         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
701
702 2007-01-20  Jim Meyering  <jim@meyering.net>
703
704         * lib/userspec.c (parse_with_separator): If a user or group string
705         starts with "+", skip the corresponding name-to-ID look-up, since
706         such a look-up must fail: user and group names may not include "+".
707
708 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
709
710         * lib/poll.c: Include sys/time.h and time.h unconditionally,
711         since we now assume the sys_time module.
712         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
713         check for sys/time.h; no longer needed.
714         * modules/poll (Depends-on): Depend on sys_time.
715
716 2007-01-18  Bruno Haible  <bruno@clisp.org>
717
718         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
719         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
720
721         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
722         gettimeofday.
723
724         * tests/test-gettimeofday.c: Include <time.h>.
725         (dummy): Remove variable.
726
727         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
728         gl_HEADER_SYS_TIME_H.
729         (gl_HEADER_SYS_TIME_H): New macro.
730
731         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
732         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
733         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
734         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
735         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
736         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
737         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
738         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
739         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
740         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
741         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
742
743         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
744         last change; it caused a compilation error when cross-compiling to
745         Cygwin.
746
747 2007-01-18  Jim Meyering  <jim@meyering.net>
748
749         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
750         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
751         than the race-prone "test -d sys || mkdir sys".
752         (configure.ac): Use AC_PROG_MKDIR_P.
753         * modules/sys_select: Likewise.
754         * modules/sys_socket: Likewise.
755         * modules/sys_time: Likewise.
756
757 2007-01-18  Eric Blake  <ebb9@byu.net>
758
759         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
760         replace gettimeofday.
761         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
762         name, to avoid infinite recursion.
763
764 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
765
766         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
767         module sys_time.
768         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
769         assume timespec.h defines struct timeval.
770         * lib/settime.c: Likewise.
771         * lib/utimens.c: Likewise.
772         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
773         since we now assume the gettimeofday module.
774         * lib/tempname.c (__gen_tempname): Likewise.
775         * lib/gettimeofday.h: Remove.
776         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
777         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
778         Include <time.h>, for 'time()'.
779         (localtime_buffer_addr): Also use this workaround if
780         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
781         to simplify the uses.  All uses changed.
782         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
783         that #undef is inside {}, and 'const' follows type name consistently.
784         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
785         (gettimeofday): Do not use the maximum possible value for
786         tv->tv_usec, since that might break usages other than ls.c.
787         Instead, we'll leave ls.c alone.  This undoes today's patch
788         by Bruno.  Add a compile-time warning for 1s-clock resolution;
789         we've never observed the problem but might as well keep the
790         canary.
791         * lib/nanosleep.c: Include timespec.h first, for interface check.
792         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
793         now assume the sys_time module.
794         * lib/tempname.c: Likewise.
795         * lib/timespec.h: Likewise.
796         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
797         needed.
798         * lib/strftime.c: Likewise.
799         * lib/timespec.h: Likewise.
800         * lib/posixtm.c: Include posixtm.h first, for interface check.
801         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
802         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
803         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
804         * lib/sys_time_.h: New file.
805         * lib/timespec.h (struct timespec): Use long int, not long.
806         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
807         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
808         Remove obsolescent call to AC_HEADER_TIME.
809         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
810         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
811         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
812         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
813         Likewise.
814         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
815         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
816         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
817         into the sys_time module.  Check for gettimeofday just once.
818         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
819         for gettimeofday signature to just check the signature.  Merely
820         compile it, since linking doesn't test signature.  Improve test for
821         whether gettimeofday.o is actually needed.
822         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
823         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
824         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
825         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
826         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
827         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
828         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
829         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
830         than worrying about sys/time.h.
831         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
832         Don't bother worrying about TIME_WITH_SYS_TIME.
833         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
834         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
835         * m4/sys_time_h.m4: New file.
836         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
837         Don't include sys/time.h.  Return from main rather than exiting.
838         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
839         all uses changed.
840         * modules/gethrxtime (Depends-on): Add sys_time.
841         * modules/gettime (Depends-on): Likewise.
842         * modules/gettimeofday (Depends-on): Likewise.
843         * modules/nanosleep (Depends-on): Likewise.
844         * modules/settime (Depends-on): Likewise.
845         * modules/tempname (Depends-on): Likewise.
846         * modules/utimens (Depends-on): Likewise.
847         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
848         (Include:) Change back to <sys/time.h>.
849         (Maintainer:) Add self.
850         * modules/sys_time: New file.
851         * modules/tempname (Depends-on): Add gettimeofday.
852         * tests/test-gettimeofday.c: Include <sys/time.h>
853         rather than gettimeofday.h.
854
855 2007-01-17  Bruno Haible  <bruno@clisp.org>
856
857         * gnulib-tool (func_get_license): Revert last patch. Instead, let
858         the license default to GPL.
859         (func_create_testdir): Don't complain if a module is LGPL and its
860         tests module depends on GPLed modules.
861
862 2007-01-17  Bruno Haible  <bruno@clisp.org>
863
864         * lib/gettimeofday.c (gettimeofday): Add code for the case
865         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
866         maximum possible value for tv->tv_usec, rather than the minimum one.
867
868 2005-10-08  Martin Lambers  <marlam@marlam.de>
869 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
870 2007-01-16  Bruno Haible  <bruno@clisp.org>
871
872         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
873         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
874         gl_FUNC_GETTIMEOFDAY.
875         (Include): Add gettimeofday.h.
876         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
877         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
878         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
879         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
880         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
881         * lib/gettimeofday.h: New file.
882         * lib/gettimeofday.c: Include <sys/timeb.h>.
883         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
884         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
885         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
886         fall back on time().
887
888         * tests/test-gettimeofday.c: New file.
889         * modules/gettimeofday-tests: New file.
890
891 2007-01-16  Eric Blake  <ebb9@byu.net>
892
893         * modules/fnmatch (Depends-on): Depend on wchar.
894         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
895         * m4/fnmatch.m4: Likewise.
896         * modules/mbchar (Makefile.am): Assume <wchar.h>.
897         * m4/mbchar.m4: Likewise.
898         * modules/mbswidth (Depends-on): Depend on wchar.
899         * lib/mbswidth.c: Assume <wchar.h>.
900         * m4/mbswidth.m4: Likewise.
901         * modules/quotearg (Depends-on): Depend on wchar.
902         * lib/quotearg.c: Assume <wchar.h>.
903         * m4/quotearg.m4: Likewise.
904         * modules/regex (Depends-on): Depend on wchar.
905         * lib/regex_internal.h: Assume <wchar.h>.
906         * m4/regex.m4: Likewise.
907         * modules/stdint (Depends-on): Depend on wchar.
908         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
909         * m4/stdint.m4: Likewise.
910         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
911         * modules/strftime (Depends-on): Depend on wchar.
912         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
913         * modules/strtol (Depends-on): Depend on wchar.
914         * lib/strtol.c: Assume <wchar.h>.
915         * modules/wcwidth (Depends-on): Depend on wchar.
916         * lib/wcwidth.h: Assume <wchar.h>.
917         * m4/wcwidth.m4: Likewise.
918
919 2007-01-16  Bruno Haible  <bruno@clisp.org>
920
921         * modules/csharpexec-script: New, created from...
922         * modules/csharpexec: ... this.
923
924 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
925
926         * modules/javaexec-script: New, created from...
927         * modules/javaexec: ... this.
928
929 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
930
931         * modules/poll (Dependencies): Add sys_select.
932
933 2007-01-15  Jim Meyering  <jim@meyering.net>
934
935         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
936         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
937         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
938         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
939
940 2007-01-15  Bruno Haible  <bruno@clisp.org>
941
942         * modules/striconveh: New file.
943         * lib/striconveh.h: New file.
944         * lib/striconveh.c: New file.
945         * MODULES.html.sh (Internationalization functions): Add striconveh.
946
947         * modules/striconveh-tests: New file.
948         * tests/test-striconveh.c: New file.
949
950 2007-01-15  Bruno Haible  <bruno@clisp.org>
951
952         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
953         not from GNU libiconv or GNU libc.
954
955 2007-01-15  Bruno Haible  <bruno@clisp.org>
956
957         * doc/gnulib-intro.texi (Copyright): Explain the different license
958         terms for module descriptions, autoconf macros, tests, documentation.
959
960 2007-01-14  Bruno Haible  <bruno@clisp.org>
961
962         * modules/striconv-tests: New file.
963         * tests/test-striconv.c: New file.
964
965 2007-01-14  Bruno Haible  <bruno@clisp.org>
966
967         * modules/iconv-tests: New file.
968         * tests/test-iconv.c: New file.
969
970 2007-01-14  Bruno Haible  <bruno@clisp.org>
971
972         * gnulib-tool (func_get_license): For test modules, use the license of
973         the main module.
974
975 2007-01-14  Bruno Haible  <bruno@clisp.org>
976
977         * modules/iconv (Include): Clarify that <iconv.h> can only be included
978         if iconv is found to exist.
979
980 2007-01-14  Bruno Haible  <bruno@clisp.org>
981
982         * modules/c-ctype-tests: New file.
983         * tests/test-c-ctype.c: New file.
984
985 2007-01-14  Bruno Haible  <bruno@clisp.org>
986
987         * modules/binary-io-tests: New file.
988         * tests/test-binary-io.sh: New file.
989         * tests/test-binary-io.c: New file.
990
991 2007-01-14  Bruno Haible  <bruno@clisp.org>
992
993         * modules/array-oset-tests: New file.
994         * tests/test-array_oset.c: New file.
995
996 2007-01-14  Bruno Haible  <bruno@clisp.org>
997
998         * modules/array-list-tests: New file.
999         * tests/test-array_list.c: New file.
1000
1001 2007-01-14  Bruno Haible  <bruno@clisp.org>
1002
1003         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
1004         and make.
1005         Reported by Simon Josefsson in
1006         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
1007
1008 2007-01-14  Bruno Haible  <bruno@clisp.org>
1009
1010         * modules/allocsa-tests: New file.
1011         * tests/test-allocsa.c: New file.
1012
1013 2007-01-14  Bruno Haible  <bruno@clisp.org>
1014
1015         * modules/fchdir (Depends-on): Add absolute-header.
1016         * modules/unistd (Depends-on): Likewise.
1017
1018 2006-12-30  Bruno Haible  <bruno@clisp.org>
1019
1020         * modules/fchdir: New file.
1021         * modules/unistd (Files): Add lib/unistd_.h.
1022         (Makefile.am): Generate unistd.h from unistd_.h.
1023         * lib/fchdir.c: New file.
1024         * lib/dirent_.h: New file.
1025         * lib/unistd_.h: New file.
1026         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
1027         * m4/fchdir.m4: New file.
1028         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
1029         (gl_HEADER_UNISTD): Invoke it.
1030         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
1031         function.
1032         * lib/backupfile.c (opendir, closedir): Undefine.
1033         * lib/chown.c (open, close): Undefine.
1034         * lib/clean-temp.c (open, close): Undefine.
1035         * lib/copy-file.c (open, close): Undefine.
1036         * lib/execute.c (open, close): Undefine.
1037         * lib/fsusage.c (open, close): Undefine.
1038         * lib/gc-gnulib.c (open, close): Undefine.
1039         * lib/getcwd.c (opendir, closedir): Undefine.
1040         * lib/glob.c (opendir, closedir): Undefine.
1041         * lib/javacomp.c (open, close): Undefine.
1042         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
1043         * lib/openat-proc.c (open, close): Undefine.
1044         * lib/pagealign_alloc.c (open, close): Undefine.
1045         * lib/pipe.c (open, close): Undefine.
1046         * lib/progreloc.c (open, close): Undefine.
1047         * lib/savedir.c (opendir, closedir): Undefine.
1048         * lib/utime.c (open, close): Undefine.
1049         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
1050
1051 2007-01-10  Bruno Haible  <bruno@clisp.org>
1052
1053         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
1054
1055 2007-01-12  Eric Blake  <ebb9@byu.net>
1056
1057         Provide a robust <wchar.h>.  Further simplifications are now
1058         possible in other modules, but not included here.
1059         * modules/wchar: New module.
1060         * m4/wchar.m4: New file.
1061         * lib/wchar_.h: Likewise.
1062         * modules/mbchar (Depends-on): Depend on wchar, as the first use
1063         of the new module.
1064         * MODULES.html.sh (Extended multibyte and wide character utilities):
1065         New section.
1066
1067 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
1068
1069         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
1070         to a reasonable default for memory allocation.
1071         (xreadlink): Don't allocate a huge buffer, to work around a buggy
1072         file system that reports garbage st_size values for symlinks.
1073         Problem reported by Liyang Hu.
1074
1075 2007-01-11  Simon Josefsson  <simon@josefsson.org>
1076
1077         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
1078         Emacs .#* auto-save files).
1079
1080 2007-01-11  Bruno Haible  <bruno@clisp.org>
1081
1082         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
1083         directory.
1084
1085 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
1086
1087         Use @...@ consistently in lib/wctype_.h.
1088         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
1089         on it being set to 1 or 0.
1090         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
1091         go back to AC_SUBSTing it.
1092         * modules/wctype (Makefile.am): Undo previous change.
1093
1094 2007-01-10  Eric Blake  <ebb9@byu.net>
1095
1096         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
1097         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
1098         * modules/wctype (Makefile.am): Likewise.
1099         Reported by Chris McGuire.
1100
1101 2007-01-10  Jim Meyering  <jim@meyering.net>
1102
1103         fts.c: a small readability/maintainability improvement
1104         * lib/fts.c (fts_read): Make this code slightly more readable and
1105         maintainable by hoisting the "sp->fts_cur = p" assignments to
1106         immediately follow the statements that set P.  Derived from
1107         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
1108
1109 2007-01-10  Eric Blake  <ebb9@byu.net>
1110
1111         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
1112         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
1113         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
1114         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
1115         Reported by Chris McGuire.
1116
1117 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1118
1119         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
1120         in sed script.
1121
1122 2007-01-09  Bruno Haible  <bruno@clisp.org>
1123
1124         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
1125         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
1126         variables.
1127         (func_module): Use them.
1128
1129 2007-01-09  Bruno Haible  <bruno@clisp.org>
1130
1131         * modules/unistr/base: New file.
1132         * lib/unistr.h: New file.
1133
1134         * modules/unistr/u8-to-u16: New file.
1135         * lib/unistr/u8-to-u16.c: New file.
1136
1137         * modules/unistr/u8-to-u32: New file.
1138         * lib/unistr/u8-to-u32.c: New file.
1139
1140         * modules/unistr/u16-to-u8: New file.
1141         * lib/unistr/u16-to-u8.c: New file.
1142
1143         * modules/unistr/u16-to-u32: New file.
1144         * lib/unistr/u16-to-u32.c: New file.
1145
1146         * modules/unistr/u32-to-u8: New file.
1147         * lib/unistr/u32-to-u8.c: New file.
1148
1149         * modules/unistr/u32-to-u16: New file.
1150         * lib/unistr/u32-to-u16.c: New file.
1151
1152         * modules/unistr/u8-check: New file.
1153         * modules/unistr/u16-check: New file.
1154         * modules/unistr/u32-check: New file.
1155         * lib/unistr/u8-check.c: New file.
1156         * lib/unistr/u16-check.c: New file.
1157         * lib/unistr/u32-check.c: New file.
1158
1159         * modules/unistr/u8-chr: New file.
1160         * modules/unistr/u16-chr: New file.
1161         * modules/unistr/u32-chr: New file.
1162         * lib/unistr/u8-chr.c: New file.
1163         * lib/unistr/u16-chr.c: New file.
1164         * lib/unistr/u32-chr.c: New file.
1165
1166         * modules/unistr/u8-cmp: New file.
1167         * modules/unistr/u16-cmp: New file.
1168         * modules/unistr/u32-cmp: New file.
1169         * lib/unistr/u8-cmp.c: New file.
1170         * lib/unistr/u16-cmp.c: New file.
1171         * lib/unistr/u32-cmp.c: New file.
1172
1173         * modules/unistr/u8-cpy: New file.
1174         * modules/unistr/u16-cpy: New file.
1175         * modules/unistr/u32-cpy: New file.
1176         * lib/unistr/u8-cpy.c: New file.
1177         * lib/unistr/u16-cpy.c: New file.
1178         * lib/unistr/u32-cpy.c: New file.
1179         * lib/unistr/u-cpy.h: New file.
1180
1181         * modules/unistr/u8-cpy-alloc: New file.
1182         * modules/unistr/u16-cpy-alloc: New file.
1183         * modules/unistr/u32-cpy-alloc: New file.
1184         * lib/unistr/u8-cpy-alloc.c: New file.
1185         * lib/unistr/u16-cpy-alloc.c: New file.
1186         * lib/unistr/u32-cpy-alloc.c: New file.
1187         * lib/unistr/u-cpy-alloc.h: New file.
1188
1189         * modules/unistr/u8-endswith: New file.
1190         * modules/unistr/u16-endswith: New file.
1191         * modules/unistr/u32-endswith: New file.
1192         * lib/unistr/u8-endswith.c: New file.
1193         * lib/unistr/u16-endswith.c: New file.
1194         * lib/unistr/u32-endswith.c: New file.
1195         * lib/unistr/u-endswith.h: New file.
1196
1197         * modules/unistr/u8-mblen: New file.
1198         * modules/unistr/u16-mblen: New file.
1199         * modules/unistr/u32-mblen: New file.
1200         * lib/unistr/u8-mblen.c: New file.
1201         * lib/unistr/u16-mblen.c: New file.
1202         * lib/unistr/u32-mblen.c: New file.
1203
1204         * modules/unistr/u8-mbtouc: New file.
1205         * modules/unistr/u16-mbtouc: New file.
1206         * modules/unistr/u32-mbtouc: New file.
1207         * lib/unistr/u8-mbtouc.c: New file.
1208         * lib/unistr/u16-mbtouc.c: New file.
1209         * lib/unistr/u32-mbtouc.c: New file.
1210
1211         * modules/unistr/u8-mbtouc-safe: New file.
1212         * modules/unistr/u16-mbtouc-safe: New file.
1213         * modules/unistr/u32-mbtouc-safe: New file.
1214         * lib/unistr/u8-mbtouc-safe.c: New file.
1215         * lib/unistr/u16-mbtouc-safe.c: New file.
1216         * lib/unistr/u32-mbtouc-safe.c: New file.
1217
1218         * modules/unistr/u8-move: New file.
1219         * modules/unistr/u16-move: New file.
1220         * modules/unistr/u32-move: New file.
1221         * lib/unistr/u8-move.c: New file.
1222         * lib/unistr/u16-move.c: New file.
1223         * lib/unistr/u32-move.c: New file.
1224         * lib/unistr/u-move.h: New file.
1225
1226         * modules/unistr/u8-next: New file.
1227         * modules/unistr/u16-next: New file.
1228         * modules/unistr/u32-next: New file.
1229         * lib/unistr/u8-next.c: New file.
1230         * lib/unistr/u16-next.c: New file.
1231         * lib/unistr/u32-next.c: New file.
1232
1233         * modules/unistr/u8-prev: New file.
1234         * modules/unistr/u16-prev: New file.
1235         * modules/unistr/u32-prev: New file.
1236         * lib/unistr/u8-prev.c: New file.
1237         * lib/unistr/u16-prev.c: New file.
1238         * lib/unistr/u32-prev.c: New file.
1239
1240         * modules/unistr/u8-set: New file.
1241         * modules/unistr/u16-set: New file.
1242         * modules/unistr/u32-set: New file.
1243         * lib/unistr/u8-set.c: New file.
1244         * lib/unistr/u16-set.c: New file.
1245         * lib/unistr/u32-set.c: New file.
1246         * lib/unistr/u-set.h: New file.
1247
1248         * modules/unistr/u8-startswith: New file.
1249         * modules/unistr/u16-startswith: New file.
1250         * modules/unistr/u32-startswith: New file.
1251         * lib/unistr/u8-startswith.c: New file.
1252         * lib/unistr/u16-startswith.c: New file.
1253         * lib/unistr/u32-startswith.c: New file.
1254         * lib/unistr/u-startswith.h: New file.
1255
1256         * modules/unistr/u8-stpcpy: New file.
1257         * modules/unistr/u16-stpcpy: New file.
1258         * modules/unistr/u32-stpcpy: New file.
1259         * lib/unistr/u8-stpcpy.c: New file.
1260         * lib/unistr/u16-stpcpy.c: New file.
1261         * lib/unistr/u32-stpcpy.c: New file.
1262         * lib/unistr/u-stpcpy.h: New file.
1263
1264         * modules/unistr/u8-stpncpy: New file.
1265         * modules/unistr/u16-stpncpy: New file.
1266         * modules/unistr/u32-stpncpy: New file.
1267         * lib/unistr/u8-stpncpy.c: New file.
1268         * lib/unistr/u16-stpncpy.c: New file.
1269         * lib/unistr/u32-stpncpy.c: New file.
1270         * lib/unistr/u-stpncpy.h: New file.
1271
1272         * modules/unistr/u8-strcat: New file.
1273         * modules/unistr/u16-strcat: New file.
1274         * modules/unistr/u32-strcat: New file.
1275         * lib/unistr/u8-strcat.c: New file.
1276         * lib/unistr/u16-strcat.c: New file.
1277         * lib/unistr/u32-strcat.c: New file.
1278         * lib/unistr/u-strcat.h: New file.
1279
1280         * modules/unistr/u8-strchr: New file.
1281         * modules/unistr/u16-strchr: New file.
1282         * modules/unistr/u32-strchr: New file.
1283         * lib/unistr/u8-strchr.c: New file.
1284         * lib/unistr/u16-strchr.c: New file.
1285         * lib/unistr/u32-strchr.c: New file.
1286
1287         * modules/unistr/u8-strcmp: New file.
1288         * modules/unistr/u16-strcmp: New file.
1289         * modules/unistr/u32-strcmp: New file.
1290         * lib/unistr/u8-strcmp.c: New file.
1291         * lib/unistr/u16-strcmp.c: New file.
1292         * lib/unistr/u32-strcmp.c: New file.
1293
1294         * modules/unistr/u8-strcpy: New file.
1295         * modules/unistr/u16-strcpy: New file.
1296         * modules/unistr/u32-strcpy: New file.
1297         * lib/unistr/u8-strcpy.c: New file.
1298         * lib/unistr/u16-strcpy.c: New file.
1299         * lib/unistr/u32-strcpy.c: New file.
1300         * lib/unistr/u-strcpy.h: New file.
1301
1302         * modules/unistr/u8-strcspn: New file.
1303         * modules/unistr/u16-strcspn: New file.
1304         * modules/unistr/u32-strcspn: New file.
1305         * lib/unistr/u8-strcspn.c: New file.
1306         * lib/unistr/u16-strcspn.c: New file.
1307         * lib/unistr/u32-strcspn.c: New file.
1308         * lib/unistr/u-strcspn.h: New file.
1309
1310         * modules/unistr/u8-strdup: New file.
1311         * modules/unistr/u16-strdup: New file.
1312         * modules/unistr/u32-strdup: New file.
1313         * lib/unistr/u8-strdup.c: New file.
1314         * lib/unistr/u16-strdup.c: New file.
1315         * lib/unistr/u32-strdup.c: New file.
1316         * lib/unistr/u-strdup.h: New file.
1317
1318         * modules/unistr/u8-strlen: New file.
1319         * modules/unistr/u16-strlen: New file.
1320         * modules/unistr/u32-strlen: New file.
1321         * lib/unistr/u8-strlen.c: New file.
1322         * lib/unistr/u16-strlen.c: New file.
1323         * lib/unistr/u32-strlen.c: New file.
1324         * lib/unistr/u-strlen.h: New file.
1325
1326         * modules/unistr/u8-strmblen: New file.
1327         * modules/unistr/u16-strmblen: New file.
1328         * modules/unistr/u32-strmblen: New file.
1329         * lib/unistr/u8-strmblen.c: New file.
1330         * lib/unistr/u16-strmblen.c: New file.
1331         * lib/unistr/u32-strmblen.c: New file.
1332
1333         * modules/unistr/u8-strmbtouc: New file.
1334         * modules/unistr/u16-strmbtouc: New file.
1335         * modules/unistr/u32-strmbtouc: New file.
1336         * lib/unistr/u8-strmbtouc.c: New file.
1337         * lib/unistr/u16-strmbtouc.c: New file.
1338         * lib/unistr/u32-strmbtouc.c: New file.
1339
1340         * modules/unistr/u8-strncat: New file.
1341         * modules/unistr/u16-strncat: New file.
1342         * modules/unistr/u32-strncat: New file.
1343         * lib/unistr/u8-strncat.c: New file.
1344         * lib/unistr/u16-strncat.c: New file.
1345         * lib/unistr/u32-strncat.c: New file.
1346         * lib/unistr/u-strncat.h: New file.
1347
1348         * modules/unistr/u8-strncmp: New file.
1349         * modules/unistr/u16-strncmp: New file.
1350         * modules/unistr/u32-strncmp: New file.
1351         * lib/unistr/u8-strncmp.c: New file.
1352         * lib/unistr/u16-strncmp.c: New file.
1353         * lib/unistr/u32-strncmp.c: New file.
1354
1355         * modules/unistr/u8-strncpy: New file.
1356         * modules/unistr/u16-strncpy: New file.
1357         * modules/unistr/u32-strncpy: New file.
1358         * lib/unistr/u8-strncpy.c: New file.
1359         * lib/unistr/u16-strncpy.c: New file.
1360         * lib/unistr/u32-strncpy.c: New file.
1361         * lib/unistr/u-strncpy.h: New file.
1362
1363         * modules/unistr/u8-strnlen: New file.
1364         * modules/unistr/u16-strnlen: New file.
1365         * modules/unistr/u32-strnlen: New file.
1366         * lib/unistr/u8-strnlen.c: New file.
1367         * lib/unistr/u16-strnlen.c: New file.
1368         * lib/unistr/u32-strnlen.c: New file.
1369         * lib/unistr/u-strnlen.h: New file.
1370
1371         * modules/unistr/u8-strpbrk: New file.
1372         * modules/unistr/u16-strpbrk: New file.
1373         * modules/unistr/u32-strpbrk: New file.
1374         * lib/unistr/u8-strpbrk.c: New file.
1375         * lib/unistr/u16-strpbrk.c: New file.
1376         * lib/unistr/u32-strpbrk.c: New file.
1377         * lib/unistr/u-strpbrk.h: New file.
1378
1379         * modules/unistr/u8-strrchr: New file.
1380         * modules/unistr/u16-strrchr: New file.
1381         * modules/unistr/u32-strrchr: New file.
1382         * lib/unistr/u8-strrchr.c: New file.
1383         * lib/unistr/u16-strrchr.c: New file.
1384         * lib/unistr/u32-strrchr.c: New file.
1385
1386         * modules/unistr/u8-strspn: New file.
1387         * modules/unistr/u16-strspn: New file.
1388         * modules/unistr/u32-strspn: New file.
1389         * lib/unistr/u8-strspn.c: New file.
1390         * lib/unistr/u16-strspn.c: New file.
1391         * lib/unistr/u32-strspn.c: New file.
1392         * lib/unistr/u-strspn.h: New file.
1393
1394         * modules/unistr/u8-strstr: New file.
1395         * modules/unistr/u16-strstr: New file.
1396         * modules/unistr/u32-strstr: New file.
1397         * lib/unistr/u8-strstr.c: New file.
1398         * lib/unistr/u16-strstr.c: New file.
1399         * lib/unistr/u32-strstr.c: New file.
1400         * lib/unistr/u-strstr.h: New file.
1401
1402         * modules/unistr/u8-strtok: New file.
1403         * modules/unistr/u16-strtok: New file.
1404         * modules/unistr/u32-strtok: New file.
1405         * lib/unistr/u8-strtok.c: New file.
1406         * lib/unistr/u16-strtok.c: New file.
1407         * lib/unistr/u32-strtok.c: New file.
1408         * lib/unistr/u-strtok.h: New file.
1409
1410         * modules/unistr/u8-uctomb: New file.
1411         * modules/unistr/u16-uctomb: New file.
1412         * modules/unistr/u32-uctomb: New file.
1413         * lib/unistr/u8-uctomb.c: New file.
1414         * lib/unistr/u16-uctomb.c: New file.
1415         * lib/unistr/u32-uctomb.c: New file.
1416
1417         * MODULES.html.sh (Unicode string functions): Add the new modules.
1418
1419 2007-01-08  Bruno Haible  <bruno@clisp.org>
1420
1421         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
1422         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
1423         subdirectories.
1424
1425 2007-01-08  Karl Berry  <karl@gnu.org>
1426
1427         * doc/error.texi: mention that main() fns must set program_name
1428         when progname is used.
1429
1430 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
1431
1432         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
1433         WCTYPE_H is empty, for the benefit of builds from non-distclean
1434         directories.  Problem reported by Eric Blake in
1435         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
1436
1437 2007-01-08  Bruno Haible  <bruno@clisp.org>
1438
1439         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
1440         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
1441         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
1442         PROVIDE_CANONICALIZE_FILENAME_MODE.
1443         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
1444
1445 2007-01-08  Bruno Haible  <bruno@clisp.org>
1446
1447         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
1448         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
1449         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
1450         * lib/fts.c: Likewise.
1451         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
1452
1453 2006-12-25  Bruno Haible  <bruno@clisp.org>
1454
1455         * modules/utf8-ucs4-safe: New file.
1456         * lib/utf8-ucs4-safe.h: New file.
1457         * lib/unistr/utf8-ucs4-safe.c: New file.
1458
1459         * modules/utf16-ucs4-safe: New file.
1460         * lib/utf16-ucs4-safe.h: New file.
1461         * lib/unistr/utf16-ucs4-safe.c: New file.
1462
1463         * MODULES.html.sh (Unicode string functions): Add the new modules.
1464
1465 2007-01-08  Bruno Haible  <bruno@clisp.org>
1466
1467         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
1468         (Depends-on): Add unitypes.
1469         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
1470         (u8_mbtouc_aux): Move out to separate file.
1471         (u8_mbtouc): Use ucs4_t, uint8_t types.
1472         * lib/unistr/utf8-ucs4.c: New file.
1473
1474         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
1475         (Depends-on): Add unitypes.
1476         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
1477         (u16_mbtouc_aux): Move out to separate file.
1478         (u16_mbtouc): Use ucs4_t, uint16_t types.
1479         * lib/unistr/utf16-ucs4.c: New file.
1480
1481         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
1482         (Depends-on): Add unitypes.
1483         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
1484         (u8_uctomb_aux): Move out to separate file.
1485         (u8_uctomb): Use ucs4_t, uint8_t types.
1486         * lib/unistr/ucs4-utf8.c: New file.
1487
1488         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
1489         (Depends-on): Add unitypes.
1490         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
1491         (u16_uctomb_aux): Move out to separate file.
1492         (u16_uctomb): Use ucs4_t, uint16_t types.
1493         * lib/unistr/ucs4-utf16.c: New file.
1494
1495 2006-12-25  Bruno Haible  <bruno@clisp.org>
1496
1497         * modules/unitypes: New file.
1498         * lib/unitypes.h: New file.
1499         * MODULES.html.sh (func_all_modules): New section "Unicode string
1500         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
1501         this section. Add unitypes.
1502
1503 2007-01-08  Bruno Haible  <bruno@clisp.org>
1504
1505         Avoid variable names that conflict with those from libtool.
1506         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
1507         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
1508         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
1509         library_names_spec to acl_library_names_spec, hardcode_* to
1510         acl_hardcode_*.
1511         Reported by Ralf Wildenhues.
1512
1513 2007-01-08  Bruno Haible  <bruno@clisp.org>
1514
1515         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
1516         definition.
1517         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
1518         definition.
1519         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
1520         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
1521         definition.
1522         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
1523         definition.
1524         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
1525         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
1526         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
1527         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
1528         definition.
1529         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
1530         definition.
1531         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
1532         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
1533         GC_USE_<algorithm>.
1534         * lib/gc-libgcrypt.c: Likewise.
1535         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
1536         * modules/gc-arctwo (configure.ac): Likewise.
1537         * modules/gc-des (configure.ac): Likewise.
1538         * modules/gc-hmac-md5 (configure.ac): Likewise.
1539         * modules/gc-hmac-sha1 (configure.ac): Likewise.
1540         * modules/gc-md2 (configure.ac): Likewise.
1541         * modules/gc-md4 (configure.ac): Likewise.
1542         * modules/gc-md5 (configure.ac): Likewise.
1543         * modules/gc-random (configure.ac): Likewise.
1544         * modules/gc-rijndael (configure.ac): Likewise.
1545         * modules/gc-sha1 (configure.ac): Likewise.
1546
1547 2007-01-08  Bruno Haible  <bruno@clisp.org>
1548
1549         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
1550         macro definition.
1551         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
1552         definition.
1553         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
1554         definition.
1555         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
1556         * modules/fcntl-safer (configure.ac): Likewise.
1557         * modules/fopen-safer (configure.ac): Likewise.
1558         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
1559         GNULIB_FWRITEERROR macro definition.
1560
1561 2007-01-08  Bruno Haible  <bruno@clisp.org>
1562
1563         * m4/gnulib-common.m4: New file.
1564         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
1565         (func_get_filelist): Add m4/gnulib-common.m4.
1566
1567 2007-01-08  Bruno Haible  <bruno@clisp.org>
1568
1569         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
1570         command.
1571
1572 2007-01-08  Jim Meyering  <jim@meyering.net>
1573
1574         Use a more robust test for a "can't happen" condition.
1575         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
1576         narrowed the st_size value.  Presuming the "can't happen" condition
1577         is true, that narrowing could conceivably convert an invalid st_size
1578         value into a valid one.  Instead, use a change based on Matthew
1579         Woehlke's original patch.
1580
1581         Slight readability improvement: use an assert-like macro
1582         in place of literal "abort ()" uses.
1583         * lib/fts.c (fts_assert): Define.
1584         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
1585         Use this macro instead of a bare 'abort'.
1586
1587 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
1588
1589         Don't worry about using IRIX 5.3's wctype.h broken definitions;
1590         simply work around them.
1591         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
1592         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
1593         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before declaring.
1594         Don't bother to define as macros, since the standard doesn't require it.
1595         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
1596         longer worry about IRIX 5.3.
1597         (HAVE_WCTYPE_CTMP_BUG): Remove.
1598
1599 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
1600
1601         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
1602         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
1603         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
1604         Problems reported by Georg Schwarz for IRIX 5.3.
1605
1606         * gnulib-tool (autoconf_minversion): Take the maximum version number
1607         found, not the minimum.  Problem reported by James Youngman.
1608
1609 2007-01-03  Karl Berry  <karl@gnu.org>
1610
1611         * doc/error.texi: new file, explaining interaction with progname.
1612         * doc/gnulib.texi: include it.  Update copyright.
1613
1614 2007-01-03  Simon Josefsson  <simon@josefsson.org>
1615
1616         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
1617         AC_CANONICAL_HOST, to improve autobuild outputs.
1618
1619 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
1620             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
1621
1622         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
1623         sockets, server sockets, and other file descriptors.  Count errors
1624         to compute the return value.  Reorder the code a bit to be easier
1625         to follow.  Don't set event bits that were not requested (except
1626         POLLERR and POLLHUP).
1627
1628 2007-01-01  Bruno Haible  <bruno@clisp.org>
1629
1630         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
1631
1632 2007-01-03  Jim Meyering  <jim@meyering.net>
1633
1634         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
1635
1636 2007-01-02  Bruno Haible  <bruno@clisp.org>
1637
1638         * modules/settime (Include): Require timespec.h.
1639         * modules/nanosleep (Include): Likewise.
1640
1641 2007-01-01  Bruno Haible  <bruno@clisp.org>
1642
1643         * gnulib-tool (func_emit_copyright_notice): Bump year.
1644         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
1645
1646 2007-01-01  Bruno Haible  <bruno@clisp.org>
1647
1648         Improve support for OpenBSD.
1649         * build-aux/config.rpath (libname_spec): Export.
1650         (library_names_spec): New variable. Export.
1651         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
1652         library_names_spec from the config.rpath output. Locate shared library
1653         through the name pattern in library_names_spec.
1654
1655 2007-01-01  Eric Blake  <ebb9@byu.net>
1656
1657         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
1658
1659 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
1660
1661         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
1662         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
1663         assume the C locale, and avoid an "eval" that could cause trouble.
1664         Problem with SORT reported by Bob Proulx.
1665
1666         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
1667         Define.  Trivial patch from Henning Nielsen Lund, originally
1668         sent to bug-grep@gnu.org today.
1669
1670 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
1671
1672         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
1673         struct stat.  Problem reported by Henning Nielsen Lund.
1674         * lib/acl.c: Include acl.h first, to check interface.  Don't
1675         bother to include sys/types.h and sys/stat.h again.
1676
1677 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
1678
1679         Import the following change from libc; problem reported by
1680         Sven Verdoolaege.
1681
1682         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
1683
1684         [BZ #1373]
1685         * lib/argp.h: Remove __NTH for __argp_usage inline function.
1686
1687 2006-12-28  Jim Meyering  <jim@meyering.net>
1688
1689         * build-aux/announce-gen: Do not assume that the package
1690         builds any of tar.gz, tar.bz2, and .xdelta files.
1691         Suggestion from Simon Josefsson.
1692
1693 2006-12-28  Simon Josefsson  <simon@josefsson.org>
1694
1695         * modules/announce-gen: New file.
1696
1697 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
1698
1699         * lib/mbchar.h: Just include <wctype.h>; the wctype module
1700         handles its gotchas now.
1701         * lib/mbswidth.c: Likewise.
1702         * lib/wcwidth.h: Likewise.
1703         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
1704         and iswcntrl; the wctype module does this stuff now.
1705         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
1706         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
1707         * modules/mbchar (Depends-on): Add wctype.
1708         * modules/mbswidth (Depends-on): Likewise.
1709         * modules/wcwidth (Depends-on): Likewise.
1710
1711 2006-12-27  Eric Blake  <ebb9@byu.net>
1712
1713         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
1714         module uses more than what <wctype.h> is required to provide.
1715
1716 2006-12-26  Eric Blake  <ebb9@byu.net>
1717
1718         * gnulib-tool (sed_extract_prog): Avoid space-tab.
1719
1720 2006-12-26  Eric Blake  <ebb9@byu.net>
1721
1722         * modules/absolute-header: New module.
1723         * modules/fcntl (Depends-on): Depend on it.
1724         * modules/inttypes (Depends-on): Likewise.
1725         * modules/stdint (Depends-on): Likewise.
1726         * modules/sys_stat (Depends-on): Likewise.
1727         * modules/wctype (Depends-on): Likewise.
1728         * MODULES.html.sh (Support for building libraries and
1729         executables): Document it.
1730
1731 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
1732
1733         * gnulib-tool (SED): Remove, undoing previous change.
1734         The problem was that it broke coreutils on Solaris, because
1735         "sed --posix" leaked into a makefile.
1736         (sed): New alias, if 'alias' and GNU sed.
1737
1738 2006-12-24  Jim Meyering  <jim@meyering.net>
1739
1740         Work around an fchownat bug in glibc-2.4:
1741         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
1742         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
1743         in spite of the -P option.
1744         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
1745         New macros.
1746         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
1747         * modules/openat (Files): Add lib/fchownat.c.
1748         * lib/openat.c (fchownat): Don't define here.  Move to...
1749         * lib/fchownat.c: ...this new file.
1750
1751 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
1752
1753         Fix bug reported by Bruno Haible in
1754         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
1755         where quotearg.c didn't compile on Mac OS X 10.2 because it
1756         lacks <wchar.h> and wint_t.
1757         * lib/wctype_.h (__wctype_wint_t): New type.
1758         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
1759         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
1760         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
1761         Arg is now of type __wctype_wint_t, not wint_t.
1762         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
1763         substitute HAVE_WINT_T.
1764         * modules/wctype (Files): Add m4/wint_t.m4.
1765         (wctype.h): Substitute HAVE_WINT_T.
1766
1767 2006-12-23  Bruno Haible  <bruno@clisp.org>
1768
1769         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
1770
1771 2006-12-23  Bruno Haible  <bruno@clisp.org>
1772
1773         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
1774         S_ISLNK.
1775         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
1776         mingw.
1777
1778 2006-12-22  Bruno Haible  <bruno@clisp.org>
1779
1780         * lib/copy-file.c: Include acl.h.
1781         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
1782         Close the file descriptors only after being done with copy_acl.
1783         * modules/copy-file (Depends-on): Add acl.
1784
1785 2006-12-22  Bruno Haible  <bruno@clisp.org>
1786
1787         * gnulib-tool (SED): New variable.
1788         Use $SED instead of sed everywhere.
1789
1790 2006-12-22  Bruno Haible  <bruno@clisp.org>
1791
1792         * modules/no-c++: New file.
1793         * m4/no-c++.m4: New file.
1794         * MODULES.html.sh (Support for building libraries and executables):
1795         Add no-c++.
1796
1797 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
1798
1799         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
1800         Include <limits.h>, and use its INT_MAX to rewrite the
1801         j loop so that it does not overflow 'int'.  Problem reported by
1802         Ralf Wildenhues in
1803         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
1804         Play it safe by shifting left by 1 rather than multiplying by 2,
1805         as GCC is less likely to optimize this away when the value
1806         is signed (when it assumes overflow leads to undefined behavior).
1807         Also, don't assume time_t uses two's complement.
1808
1809 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
1810
1811         * MODULES.html.sh: New module wctype.
1812         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
1813         * lib/fnmatch.c: Don't bother to include <wchar.h> before
1814         <wctype.h>, since the new wctype module should fix this.
1815         * lib/quotearg.c: Include <wctype.h> unconditionally, since
1816         the wctype module should arrange for it.
1817         * lib/regex_internal.h: Likewise.
1818         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
1819         since the wctype module should handle this now.
1820         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
1821         * modules/fnmatch (Depends-on): Add wctype.
1822         * modules/quotearg (Depends-on): Likewise.
1823         * modules/regex (Depends-on): Likewise.
1824
1825 2006-12-19  Bruno Haible  <bruno@clisp.org>
1826
1827         * lib/strdup.h [C++]: Wrap definitions in extern "C".
1828         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
1829
1830 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1831
1832         * modules/savewd (Depends-on): Fix dependency on fcntl.
1833
1834 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
1835
1836         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
1837         conforms to C99, rather than relying on the user's environment
1838         setting of STDINT_H.
1839
1840 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
1841         and Eric Blake  <ebb9@byu.net>
1842
1843         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
1844         This is more consistent with the other defines here.
1845         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
1846         Port to z/OS.  Problem reported by Paul Gilmartin.
1847         Change local vars to use gl_ prefix rather than ac_.
1848         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
1849         with other defines.
1850         * modules/double-slash-root: New module.
1851         * modules/dirname (Files): Remove m4/double-slash-root.m4.
1852         (Depends-on): Add double-slash-root.
1853         * MODULES.html.sh (File system functions): Mention new module.
1854
1855 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
1856
1857         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
1858         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
1859         This is for the benefit of gzip, which doesn't do i18n.
1860
1861 2006-12-12  Jim Meyering  <jim@meyering.net>
1862
1863         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
1864         Reported by Andreas Schwab <schwab@suse.de>.
1865
1866 2006-12-12  Bruno Haible  <bruno@clisp.org>
1867
1868         Merge these changes.
1869         2006-09-05  Bruno Haible  <bruno@clisp.org>
1870         * lib/iconvme.c (iconv_string): No need to save and restore errno when
1871         iconv_alloc succeeded.
1872         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
1873         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
1874         test for " && dest " at the end - dest is always != NULL there. Call
1875         iconv with 4xNULL arguments initially, to reset the state. Call iconv
1876         with 2xNULL arguments, also to flush the state storage. Handle the
1877         IRIX iconv behaviour. Realloc the final result, to throw away unused
1878         memory.
1879
1880 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
1881
1882         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
1883         and fchmodat unconditionally, since glibc 2.4 has them.
1884         Problem reported by Arkadiusz Miskiewicz.
1885
1886 2006-12-10  Bruno Haible  <bruno@clisp.org>
1887
1888         * gnulib-tool (func_import): Show the include files only for those
1889         modules that are copied and specified.
1890         Reported by Karl Berry.
1891
1892 2006-12-08  Jim Meyering  <jim@meyering.net>
1893
1894         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
1895         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
1896
1897         * build-aux/announce-gen: Add two new options, both optional:
1898         --bootstrap-tools=TOOL_LIST
1899               a comma-separated list of tools, e.g.,
1900               autoconf,automake,bison,gnulib
1901         --gnulib-snapshot-date=DATE
1902               if gnulib is in the bootstrap tool list,
1903               then report this as the snapshot date.
1904               If not specified, use the current date/time.
1905               If you specify a date here, be sure it's UTC.
1906
1907 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1908
1909         * tests/test-argp-2.sh: Fix test to match actual output.
1910         (func_compare): Fix sed script to be portable.
1911
1912 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
1913
1914         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
1915         workaround for this case.  It is not autoconfigured now; offhand
1916         it's hard to see how to autoconfigure it.
1917
1918 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
1919
1920         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
1921         a directory that is about to be chowned.  Such a directory's
1922         initial file permissions should permit the owner only and this
1923         should not be changed until after the chown, since the group and
1924         other bits would be incorrect if they granted permission before
1925         the chown.
1926
1927         Fix porting problem for iswctype reported by Georg Schwarz in:
1928         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
1929         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
1930         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
1931         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
1932         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
1933
1934 2006-12-03  Jim Meyering  <jim@meyering.net>
1935
1936         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
1937         p->fts_statp may not yet be defined.
1938         (fts_read): Instead, set it in the caller, once p->fts_statp is
1939         sure to be defined, and corresponds to a top-level directory.
1940         This bug made du -x fail.  Here's the coreutils test case:
1941         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
1942         Reported by Mike Frysinger.
1943
1944 2006-12-01  Jim Meyering  <jim@meyering.net>
1945
1946         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
1947         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
1948         Reported by Simon Josefsson.
1949
1950 2006-11-30  Jim Meyering  <jim@meyering.net>
1951
1952         * m4/warning.m4: Use the all-permissive copyright notice
1953         recommended by RMS (rather than LGPL).
1954         * m4/vararrays.m4: Likewise.
1955         * m4/flexmember.m4: Likewise.
1956
1957 2006-11-29  Bruno Haible  <bruno@clisp.org>
1958
1959         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
1960         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
1961         using +=.
1962         Reported by Simon Josefsson <simon@josefsson.org>.
1963
1964 2006-11-28  James Youngman <jay@gnu.org>
1965
1966         * README: Advise users that they might find the bug-gnulib@gnu.org
1967         and autotools-announce@gnu.org mailing lists useful.
1968
1969 2006-11-28  Bruno Haible  <bruno@clisp.org>
1970
1971         * m4/ptrdiff_max.m4: Remove file.
1972
1973 2006-11-21  Bruno Haible  <bruno@clisp.org>
1974
1975         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
1976         _AC_COMPUTE_INT.
1977         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
1978         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
1979         _AC_COMPUTE_INT.
1980         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
1981         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
1982         _AC_COMPUTE_INT.
1983         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
1984
1985 2006-11-28  Jim Meyering  <jim@meyering.net>
1986
1987         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
1988         warning from "gcc -Wshadow" about shadowing the builtin.
1989
1990 2006-11-27  Bruno Haible  <bruno@clisp.org>
1991
1992         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
1993         _AC_COMPUTE_INT.
1994         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
1995
1996 2006-11-27  Bruno Haible  <bruno@clisp.org>
1997             Paul Eggert  <eggert@cs.ucla.edu>
1998
1999         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
2000
2001 2006-11-26  Bruno Haible  <bruno@clisp.org>
2002
2003         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
2004         noinst_LTLIBRARIES.
2005
2006 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
2007             Bruno Haible  <bruno@clisp.org>
2008
2009         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
2010         if compiling with "gcc -ansi".
2011
2012 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
2013
2014         Fix some incompatibilities with gcc -ansi -pedantic.
2015         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
2016         if compiling pedantically with GCC, unless it's C99 or later.
2017         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
2018         it mishandles gcc -ansi -pedantic as well.
2019         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
2020         if gcc -pedantic.
2021         * lib/regexec.c (check_node_accept_bytes): Don't use auto
2022         initializers for struct if -pedantic, unless it's C99 or later.
2023
2024 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
2025
2026         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
2027         Don't close an fd more than once. Identical atimes indicate
2028         success, not failure.
2029
2030 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
2031
2032         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
2033
2034 2006-11-23  Jim Meyering  <jim@meyering.net>
2035
2036         * build-aux/announce-gen: New file.  From coreutils.
2037
2038 2006-11-22  Jim Meyering  <jim@meyering.net>
2039
2040         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
2041         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
2042         (fts_read): Use a temporary to narrow the overused st_size member
2043         before using it in a switch statement.  Reported by Matthew Woehlke.
2044
2045         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
2046         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
2047
2048 2006-11-20  Bruno Haible  <bruno@clisp.org>
2049
2050         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
2051         changequote instead of pairs of brackets.
2052         Reported by Andreas Schwab <schwab@suse.de>.
2053
2054 2006-11-21  Jim Meyering  <jim@meyering.net>
2055
2056         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
2057         so as to remain compatible with older compilers.
2058         Patch from Michael Deutschmann.
2059
2060 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
2061
2062         * MODULES.html.sh (File system functions): Add openat.
2063
2064         * lib/openat.h (rpl_fstatat): New macro, if
2065         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
2066         (fstatat): Define to rpl_fstatat under the same conditions,
2067         unless COMPILING_FSTATAT.
2068         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
2069         seems to have the bug.
2070         * lib/fstatat.c: New file.
2071         * modules/openat (Files): Add it.
2072
2073 2006-11-20  Bruno Haible  <bruno@clisp.org>
2074
2075         * Makefile: New file.
2076
2077 2006-11-20  Jim Meyering  <jim@meyering.net>
2078
2079         The beginnings of syntax-related checks for gnulib.
2080         * lib/Makefile: New file.
2081         * lib/t-idcache: New script.  Ensure that the two halves of
2082         idcache.c stay in sync.
2083
2084         * lib/idcache.c: Adjust comments in user- and group- portions to
2085         be more accurate, and to be consistent with one another.
2086
2087 2006-11-20  Jim Meyering  <jim@meyering.net>
2088
2089         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
2090         continue using the flexible array member (thus, this module performs
2091         half as many malloc calls), with the addition that...
2092         (getgroup, getuser): Consistently record a non-match via an empty
2093         "name" string, and map an empty string match to a NULL return value.
2094         * modules/idcache (Depends-on): Re-add flexmember.
2095
2096         * lib/idcache.c (getuser): Remove all uses of the register keyword.
2097         (getuidbyname, getgroup, getgidbyname): Likewise.
2098
2099         Use cleaner syntax: NULL rather than 0.
2100         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
2101
2102 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
2103
2104         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
2105         It mishandled the case where the group was missing.
2106         Problem reported by Greg Schafer.
2107         * modules/idcache: Likewise.
2108
2109 2006-11-18  Jim Meyering  <jim@meyering.net>
2110
2111         * check-module (%exempt_header): Add exception for some
2112         conditionally-included headers.
2113
2114         * modules/i-ring (Depends-on): Add verify.
2115         (License): Change to LGPL.
2116
2117 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
2118
2119         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
2120         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
2121         and inttostr.h.  Use snprintf rather than uinttostr, so that
2122         LGPLed code doesn't depend on GPLed.
2123
2124 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
2125
2126         * modules/inline (License): Change from GPL to LGPL.
2127
2128 2006-11-17  Jim Meyering  <jim@meyering.net>
2129
2130         * modules/d-type (License): Switch to LGPL.
2131
2132 2006-11-15  Bruno Haible  <bruno@clisp.org>
2133
2134         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
2135
2136 2006-11-15  Eric Blake  <ebb9@byu.net>
2137
2138         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
2139         the module dependency.
2140
2141 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
2142             Bruno Haible  <bruno@clisp.org>
2143
2144         * gnulib-tool (func_create_testdir): Add license consistency check.
2145
2146 2006-11-15  Eric Blake  <ebb9@byu.net>
2147
2148         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
2149         random "(cached)" in configure output.
2150
2151 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2152
2153         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
2154         test for conforming inttypes.h is both announced and cached.
2155
2156         * MODULES.html.sh (seen_modules, seen_files): New variables.
2157         (func_module): Rewrite to use a few less gnulib-tool and sed
2158         invocations.  Avoid a couple of quadratic algorithms for ...
2159         (missed_modules, missed_files): ... these, with ...
2160         (func_append, func_tmpdir): ... these new functions, from
2161         gnulib-tool.  Analogously, install traps for cleanup.
2162
2163         * tests/test-gc.c (main): Remove unused variables.
2164         * tests/test-read-file.c: Include stdlib.h, for 'free'.
2165
2166 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
2167
2168         * modules/inttostr (License): Change to LGPL.
2169
2170 2006-11-14  Eric Blake  <ebb9@byu.net>
2171
2172         * modules/tempname (License): Change to LGPL.
2173
2174 2006-11-14  Eric Blake  <ebb9@byu.net>
2175
2176         * doc/functions.texi (Function Portability): *printf functions on
2177         Cygwin now understand all POSIX size specifiers.
2178
2179 2006-11-14  Bruno Haible  <bruno@clisp.org>
2180
2181         * modules/c-ctype (License): Change to LGPL.
2182
2183 2006-11-12  Bruno Haible  <bruno@clisp.org>
2184
2185         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
2186         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
2187         for GNOME libraries, for which the include files are installed in
2188         subdirectories of $prefix/include.
2189
2190 2006-11-12  Bruno Haible  <bruno@clisp.org>
2191
2192         * m4/lib-link.m4: Require at least autoconf-2.54.
2193         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
2194         name to underscores for the --with option.
2195
2196 2006-11-13  Bruno Haible  <bruno@clisp.org>
2197
2198         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
2199         the tests directory.
2200         Reported by Ralf Wildenhues.
2201
2202 2006-11-13  Bruno Haible  <bruno@clisp.org>
2203
2204         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
2205         (func_emit_initmacro_end): Undo the override here.
2206         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
2207         Works around the famous automake error in coreutils.
2208
2209 2006-11-13  Eric Blake  <ebb9@byu.net>
2210
2211         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
2212         element, not its node.
2213
2214 2006-11-12  Bruno Haible  <bruno@clisp.org>
2215
2216         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
2217         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
2218
2219 2006-11-12  Bruno Haible  <bruno@clisp.org>
2220
2221         * gnulib-tool: New option --local-symlink.
2222         (func_usage): Document it.
2223         (lsymbolic): New variable.
2224         (func_import, func_create_testdir): If --symlink was not specified,
2225         test whether --local-symlink was specified and the file comes from
2226         the local_gnulib_dir.
2227
2228 2006-11-12  Bruno Haible  <bruno@clisp.org>
2229
2230         * gnulib-tool (func_ln): New function.
2231         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
2232
2233 2006-11-12  Bruno Haible  <bruno@clisp.org>
2234
2235         Finish support for source files in subdirectories.
2236         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
2237         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
2238         AUTOMAKE_OPTIONS.
2239         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
2240
2241 2006-11-12  Bruno Haible  <bruno@clisp.org>
2242
2243         * gnulib-tool (func_get_automake_snippet): Synthesize also an
2244         EXTRA_lib_SOURCES augmentation.
2245         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
2246
2247 2006-11-12  Jim Meyering  <jim@meyering.net>
2248
2249         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
2250         file descriptors.  This also averts a failure on systems with
2251         native openat support when a traversed directory lacks "x" access.
2252         * lib/fts_.h: Include "i-ring.h"
2253         (struct FTS) [fts_fd_ring]: New member.
2254         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
2255         (FCHDIR): Add parentheses.
2256         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
2257         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
2258         When descending, rather than simply closing the previous
2259         fts_cwd_fd value, push that file descriptor onto the ring.
2260         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
2261         (fts_open): Initialize the new fd_ring member.
2262         (fts_close): Clear the ring.
2263         (fts_safe_changedir): When possible, use our new fd_ring to skip
2264         the diropen and fstat and dev/ino comparison that would normally
2265         accompany a virtual `chdir ("..")'.
2266
2267         * modules/fts (Depends-on): Add i-ring.
2268         * modules/i-ring: New module.
2269         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
2270         * m4/i-ring.m4: New file.
2271
2272 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2273
2274         * gnulib-tool (func_create_testdir): Fix replacement of
2275         `build-aux' in configure.ac.  Run autotools in gltests
2276         subdirectory.
2277         (func_create_testdir, func_create_megatestdir, test): There is
2278         no need for '--force' in most autotool invocations in a new
2279         tree.  Actually fail the whole test if any of the tools, or the
2280         configure or make stages fail.
2281
2282         Sync from Automake.
2283         * build-aux/gnupload: Revert last change.  Add pointer to upload
2284         instructions of the GNU Maintenance Instructions.
2285         Suggestion by Karl Berry.
2286
2287 2006-11-10  Jim Meyering  <jim@meyering.net>
2288
2289         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
2290
2291 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
2292
2293         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
2294         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
2295         (bind_textdomain_codeset) [! ENABLE_NLS]:
2296         Evaluate all the arguments.  That way, callers get compatible behavior
2297         if the arguments have side effects.  Also, it avoids some GCC
2298         diagnostics in some cases; Joel E. Denny reported problems when Bison
2299         was configured with --enable-gcc-warnigs.
2300
2301 2006-11-10  Jim Meyering  <jim@meyering.net>
2302
2303         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
2304         relevant options in CFLAGS (like -O, -fno-inline) are taken into
2305         account.
2306
2307 2006-11-10  Jim Meyering  <jim@meyering.net>
2308
2309         * modules/inline: New file/module.
2310         * modules/xalloc (Files): Remove m4/inline.m4.
2311         (Depends-on): Add inline, instead.
2312         * modules/oset: Likewise.
2313         * modules/list: Likewise.
2314
2315 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
2316
2317         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
2318         Problem reported by Matthew Woehlke.
2319
2320 2006-11-09  Bruno Haible  <bruno@clisp.org>
2321
2322         * lib/tempname.c (gen_tempname): Remove variant that invokes
2323         __gen_tempname.
2324         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
2325         __gen_tempname.
2326
2327 2006-11-08  Bruno Haible  <bruno@clisp.org>
2328
2329         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
2330         to 'yes' instead of 'cross-compiling'.
2331
2332 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
2333
2334         * lib/quotearg.h (quotearg_free): New decl.
2335         * lib/quotearg.c (quotearg_free): New function.
2336         (slot0, nslots, slotvec0, slotvec):
2337         Now file-scope so that quotearg_free can get at them.
2338
2339 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2340
2341         Sync from Automake.
2342         * build-aux/gnupload: Add missing 'gnu' to example URL.
2343         Report by Karl Berry.
2344
2345 2006-11-08  Bruno Haible  <bruno@clisp.org>
2346
2347         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
2348         Suggested by Paul Eggert.
2349
2350 2006-11-08  Jim Meyering  <jim@meyering.net>
2351
2352         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
2353         It's already included if !_LIBC.
2354         (fts_safe_changedir): Add a comment.
2355
2356 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
2357
2358         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
2359         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
2360         Matthew Woehlke.
2361
2362         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
2363         definitions up, to avoid colliding with change below.
2364         (static_inline) [HAVE_INLINE]: New macro.
2365         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
2366         Provide extern decls when !HAVE_INLINE.  Do not define unless
2367         static_inline is defined, either by us or by xmalloc.c.  Use
2368         static_inline rather than static inline.
2369         (XCALLOC): Optimize sizeof(T) = 1 case.
2370         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
2371
2372 2006-11-07  Bruno Haible  <bruno@clisp.org>
2373
2374         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
2375         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
2376         AC_C_INLINE.
2377         * modules/xalloc (Files): Add m4/inline.m4.
2378
2379 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2380
2381         * README: Fix typo.
2382         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
2383         (Miscellanous Notes): ...from this.
2384
2385 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
2386
2387         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
2388         Mention that offsetof should be used instead of sizeof.
2389         From Bruno Haible.
2390
2391 2006-11-07  Bruno Haible  <bruno@clisp.org>
2392
2393         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
2394
2395 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
2396
2397         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
2398         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
2399         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
2400         (gl_tree_add_before, gl_tree_add_after):
2401         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
2402         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
2403         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
2404         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
2405         (gl_linked_add_after, gl_linked_add_at): Likewise.
2406         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
2407         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
2408         (gl_tree_add_before, gl_tree_add_after): Likewise.
2409         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
2410         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
2411         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
2412
2413 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2414
2415         * lib/gl_oset.h: Use C comment style, not C++ comment style.
2416
2417 2006-11-06  Bruno Haible  <bruno@clisp.org>
2418
2419         * m4/inline.m4: New file.
2420         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
2421         * modules/list (Files): Add m4/inline.m4.
2422         * modules/oset (Files): Likewise.
2423
2424 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
2425
2426         * lib/idcache.c: Include <stddef.h>, for offsetof.
2427         (struct userid.name): Change from char * to a flexible array member.
2428         All uses changed.
2429         * modules/idcache (Depends-on): Add flexmember.
2430
2431         * MODULES.html.sh (Core language properties): New module flexmember.
2432         * modules/flexmember, m4/flexmember.m4: New files.
2433
2434         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
2435         inline functions that are identical with the old xnmalloc_inline,
2436         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
2437         that we can avoid some unnecessary integer multiplications and
2438         divisions in the common case where the element size is known at
2439         compile time.
2440         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
2441         needed.
2442         (xnboundedmalloc): Remove.
2443         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
2444         arguments, for consistency with rest of this header.
2445         (xcharalloc): Rewrite using XNMALLOC.
2446         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
2447         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
2448         versions have been moved to lib/xalloc.h and renamed to be the
2449         non-*_inline versions.
2450         (xmalloc, xrealloc): Implement without reference to the xnmalloc
2451         and xnrealloc functions, since those functions are now inline and
2452         now call us.
2453         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
2454         renaming described above.
2455         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
2456         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
2457         captures the dependency in AC_C_INLINE.
2458
2459         New module canonicalize-lgpl, proposed by Charles Wilson in
2460         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
2461         with a few small changes afterwards.
2462         * MODULES.html.sh (File system functions): New module
2463         canonicalize-lgpl.
2464         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
2465         and canonicalize_file_name.
2466         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
2467         * modules/canonicalize-lgpl: New files.
2468
2469 2006-11-05  Bruno Haible  <bruno@clisp.org>
2470
2471         * gnulib-tool (func_import, func_create_testdir): Create directories
2472         also for files in subdirectories of lib/.
2473
2474 2006-11-05  Bruno Haible  <bruno@clisp.org>
2475
2476         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
2477         ANSI C compliant.
2478
2479 2006-11-03  Bruno Haible  <bruno@clisp.org>
2480
2481         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
2482         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
2483         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
2484         (xnboundedmalloc): New inline function.
2485         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
2486         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
2487         xmalloc.
2488         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
2489         xmalloc.
2490         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
2491         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
2492         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
2493         xmalloc.
2494         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
2495         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
2496         xmalloc.
2497         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
2498         gl_tree_add_after): Use XMALLOC instead of xmalloc.
2499         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
2500         xmalloc.
2501         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
2502         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
2503         gl_tree_add_after): Use XMALLOC instead of xmalloc.
2504         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
2505         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
2506         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
2507         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
2508
2509 2006-11-03  Bruno Haible  <bruno@clisp.org>
2510
2511         * lib/c-ctype.h [C++]: Define functions without name mangling.
2512         * lib/fwriteerror.h [C++]: Likewise.
2513         * lib/gcd.h [C++]: Likewise.
2514         * lib/linebreak.h [C++]: Likewise.
2515
2516 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
2517
2518         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
2519         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
2520         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
2521         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
2522         Check for functions and headers just once.
2523         Check for declaration of canonicalize_file_name.
2524         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
2525
2526 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
2527
2528         * gnulib-tool (func_import): Fix typo in actioncmd.
2529
2530 2006-11-02  Bruno Haible  <bruno@clisp.org>
2531
2532         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
2533         newline sequence in the Makefile.am snippet as a space, like "make"
2534         does.
2535         Reported by Roger Persson <perrog@gmail.com>.
2536
2537 2006-11-01  Bruno Haible  <bruno@clisp.org>
2538
2539         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
2540         already declared in <string.h>.
2541         * lib/strcase.h (strncasecmp): Don't declare it if yes.
2542
2543 2006-11-01  Bruno Haible  <bruno@clisp.org>
2544
2545         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
2546         * lib/strcase.h: Include <string.h>.
2547         (strcasecmp): Define to rpl_strcasecmp here.
2548
2549 2006-11-01  Bruno Haible  <bruno@clisp.org>
2550
2551         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
2552
2553 2006-11-01  Eric Blake  <ebb9@byu.net>
2554
2555         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
2556
2557         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
2558
2559 2006-10-29  Bruno Haible  <bruno@clisp.org>
2560
2561         Make it compile in C++ mode.
2562         * lib/full-write.c (full_rw): Add a cast.
2563
2564 2006-11-01  Bruno Haible  <bruno@clisp.org>
2565
2566         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
2567         be POSIX compliant.
2568         Reported by Roger Persson <perrog@gmail.com>.
2569
2570 2006-11-01  Eric Blake  <ebb9@byu.net>
2571
2572         * lib/getopt_.h: Fix comments.
2573
2574 2006-10-31  Eric Blake  <ebb9@byu.net>
2575
2576         * modules/tmpdir (Depends-on): Add sys_stat.
2577         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
2578         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
2579         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
2580         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
2581         tempname.
2582
2583 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
2584
2585         Avoid some C++ diagnostics reported by Bruno Haible.
2586         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
2587         xmalloc.
2588         (quotearg_alloc): Use xcharalloc rather than xmalloc.
2589         (struct slotvec): Move to top level.
2590         (quotearg_n_options): Rewrite to avoid xmalloc.
2591         * lib/xalloc.h (xcharalloc): New function.
2592         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
2593         [defined __cplusplus]: Add function template that provides result
2594         type propagation.  This part of the change is from Bruno Haible.
2595
2596 2006-10-29  Bruno Haible  <bruno@clisp.org>
2597
2598         Make it compile in C++ mode.
2599         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
2600         * lib/strnlen1.c (strnlen1): Cast memchr result.
2601         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
2602         * lib/clean-temp.c (string_equals, string_hash): Add casts.
2603         (create_temp_dir): Rename local variable 'template'.
2604         (compile_csharp_using_sscli): Add cast.
2605         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
2606         * lib/findprog.c (find_in_path): Likewise.
2607         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
2608         * lib/wait-process.c (register_slave_subprocess): Likewise.
2609
2610 2006-10-22  Bruno Haible  <bruno@clisp.org>
2611
2612         * modules/tsearch: New file.
2613         * lib/tsearch.h: New file.
2614         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
2615         * m4/tsearch.m4: New file.
2616         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
2617
2618 2006-10-29  Eric Blake  <ebb9@byu.net>
2619
2620         * lib/arcfour.c: Assume config.h.
2621         * lib/arctwo.c: Likewise.
2622         * lib/base64.c: Likewise.
2623         * lib/check-version.c: Likewise.
2624         * lib/crc.c: Likewise.
2625         * lib/des.c: Likewise.
2626         * lib/gc-gnulib.c: Likewise.
2627         * lib/gc-libgcrypt.c: Likewise.
2628         * lib/gc-pbkdf2-sha1.c: Likewise.
2629         * lib/getaddrinfo.c: Likewise.
2630         * lib/getdelim.c: Likewise.
2631         * lib/getline.c: Likewise.
2632         * lib/hmac-md5.c: Likewise.
2633         * lib/hmac-sha1.c: Likewise.
2634         * lib/iconvme.c: Likewise.
2635         * lib/md2.c: Likewise.
2636         * lib/md4.c: Likewise.
2637         * lib/memxor.c: Likewise.
2638         * lib/read-file.c: Likewise.
2639         * lib/readline.c: Likewise.
2640         * lib/rijndael-alg-fst.c: Likewise.
2641         * lib/rijndael-api-fst.c: Likewise.
2642         * lib/xgetdomainname.c: Likewise.
2643
2644 2006-10-28  Eric Blake  <ebb9@byu.net>
2645
2646         * lib/xstrndup.c: Assume config.h.
2647
2648 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
2649
2650         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
2651         stat-macros.h is now for our own macros, whereas stat_h is for
2652         macros in the <sys/stat.h> name space.
2653         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
2654         (STAT_MACROS_H): Remove.
2655         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
2656         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
2657         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
2658         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
2659         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
2660         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
2661         Move these macros to ...
2662         * lib/stat_.h: here.  Don't include stat-macros.h.
2663         * lib/canonicalize.c: Don't include stat-macros.h.
2664         * lib/chown.c: Likewise.
2665         * lib/euidaccess.c: Likewise.
2666         * lib/file-type.c: Likewise.
2667         * lib/filemode.c: Likewise.
2668         * lib/glob.c: Likewise.
2669         * lib/isapipe.c: Likewise.
2670         * lib/lchown.c: Likewise.
2671         * lib/lstat.c: Likewise.
2672         * lib/mkdir-p.c: Likewise.
2673         * lib/rmdir.c: Likewise.
2674         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
2675         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
2676         unless mkdir isn't declared, to speed up 'configure'.
2677         Always create sys/stat.h, since it's unlikely any real sys/stat.h
2678         would define all the S_* symbols.
2679         * modules/canonicalize (Depends-on):
2680         Depend on sys_stat, not stat-macros.
2681         * modules/chown: Likewise.
2682         * modules/euidaccess: Likewise.
2683         * modules/filemode: Likewise.
2684         * modules/file-type: Likewise.
2685         * modules/glob: Likewise.
2686         * modules/isapipe: Likewise.
2687         * modules/lchown: Likewise.
2688         * modules/lstat: Likewise.
2689         * modules/mkancesdirs: Likewise.
2690         * modules/rmdir: Likewise.
2691         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
2692         * modules/modechange: Likewise.
2693         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
2694         (configure.ac): Remove gl_STAT_MACROS.
2695         * modules/sys_stat (Depends-on): Remove stat-macros.
2696
2697 2006-10-27  Bruno Haible  <bruno@clisp.org>
2698
2699         * m4/signed.m4: Remove file.
2700         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
2701         invocation.
2702         * modules/vasnprintf (Files): Remove m4/signed.m4.
2703
2704 2006-10-27  Bruno Haible  <bruno@clisp.org>
2705
2706         Update to GNU gettext 0.16.
2707         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
2708         m4/inttypes-h.m4, m4/signed.m4.
2709         * m4/gettext.m4: Update to GNU gettext 0.16.
2710         * m4/intl.m4: New file, from GNU gettext.
2711         * m4/intldir.m4: New file, from GNU gettext.
2712         * config/srclist.txt: Update
2713
2714 2006-10-27  Eric Blake  <ebb9@byu.net>
2715
2716         * MODULES.html.sh: Document tempname.
2717         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
2718         dependencies.
2719         (Files): Move lib/tempname.c...
2720         * modules/tempname: ...to this new module.
2721         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
2722         (gl_PREREQ_TEMPNAME): Move...
2723         * m4/tempname.m4: ...to this new file.
2724         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
2725         * modules/sys_stat (Depends-on): Add stat-macros.
2726         * lib/stat_.h (includes): Pick up stat macros.
2727         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
2728         if stat macros are broken.
2729         * lib/tempname.c (includes): No need to include "stat-macros.h".
2730         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
2731         (direxists, __path_search) [!_LIBC]: Don't compile these in
2732         gnulib; the tmpdir module covers that.
2733         * lib/tempname.h: New file.
2734
2735 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
2736
2737         * COPYING: Explain how gnulib-tool converts licence headers.
2738         Almost all wording by Eric Blake.
2739
2740 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
2741
2742         * lib/mbchar.h (is_basic_table): Make read-only.
2743         * lib/mbchar.c (is_basic_table): Likewise.
2744         Reported by John Darrington.
2745
2746 2006-10-25  Bruno Haible  <bruno@clisp.org>
2747
2748         * lib/progname.h (set_program_name): Undefine before defining.
2749
2750 2006-10-25  Bruno Haible  <bruno@clisp.org>
2751
2752         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
2753         false for non-gcc C++ compilers.
2754         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
2755
2756 2006-10-24  Bruno Haible  <bruno@clisp.org>
2757
2758         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
2759         iconv implementations like Irix iconv.
2760
2761 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
2762
2763         * modules/vararrays: New file.
2764         * m4/vararrays.m4: New file, taken from diffutils.
2765         * MODULES.html.sh: New module vararrays.
2766
2767 2006-10-24  Karl Berry  <karl@gnu.org>
2768
2769         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
2770         Don't call GNU Unix.
2771
2772 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2773
2774         * users.txt: Add Libtool.
2775
2776         Sync from Libtool:
2777
2778         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
2779
2780         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
2781         to gnulib's policy of including config.h unconditionally.
2782
2783 2006-10-24  Bruno Haible  <bruno@clisp.org>
2784
2785         * modules/wcwidth (Files): Add m4/wint_t.m4.
2786         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
2787         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
2788
2789 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
2790
2791         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
2792         to pacify GCC with some -W flags enabled.  Problem reported by
2793         Bruno Haible.
2794
2795 2006-10-24  Jim Meyering  <jim@meyering.net>
2796
2797         * MODULES.html.sh: Remove uinttostr.  It's not a module.
2798         Reported by Karl Berry.
2799
2800 2006-10-23  Bruno Haible  <bruno@clisp.org>
2801
2802         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
2803
2804 2006-10-24  Bruno Haible  <bruno@clisp.org>
2805
2806         * lib/gl_list.h: Use C comment style, not C++ comment style.
2807
2808 2006-10-23  Eric Blake  <ebb9@byu.net>
2809
2810         * lib/getaddrinfo.c (includes): Add missing include.
2811
2812 2006-10-23  Bruno Haible  <bruno@clisp.org>
2813             Paul Eggert  <eggert@cs.ucla.edu>
2814
2815         Ability to rename obstack_free.
2816         * lib/obstack.h (__obstack_free): New macro. Declare instead of
2817         obstack_free.
2818         (obstack_free): Invoke the __obstack_free macro.
2819         * lib/obstack.c (obstack_free): Use __obstack_free macro.
2820
2821 2006-10-23  Bruno Haible  <bruno@clisp.org>
2822             Paul Eggert  <eggert@cs.ucla.edu>
2823
2824         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
2825         __argc, __argv from the declaration. (They are defined as macros on
2826         mingw.)
2827
2828 2006-10-22  Bruno Haible  <bruno@clisp.org>
2829
2830         * doc/gnulib-intro.texi: New file.
2831         * doc/gnulib.texi: Include it.
2832
2833 2006-10-21  Bruno Haible  <bruno@clisp.org>
2834
2835         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
2836         "Introduction", "Miscellanous Notes", "Particular Modules".
2837
2838 2006-10-21  Bruno Haible  <bruno@clisp.org>
2839
2840         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
2841         Change mostlyclean-local rule to avoid sh syntax error from bash
2842         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
2843
2844 2006-10-23  Jim Meyering  <jim@meyering.net>
2845
2846         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
2847         in place of snprintf.
2848
2849         * modules/inttostr (Files): Add lib/uinttostr.c.
2850         * lib/uinttostr.c (inttostr): New file/function.
2851         * lib/inttostr.h (uinttostr): Declare.
2852         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
2853         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
2854         Add uinttostr.
2855         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
2856
2857 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
2858
2859         * lib/canonicalize.c (ELOOP): Define if not already defined.
2860         Problem reported by Bruno Haible in
2861         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
2862
2863 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
2864
2865         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
2866         Problem reported by Perry Smith and Ville Laurikari.
2867
2868         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
2869         uses.
2870
2871 2006-10-19  Bruno Haible  <bruno@clisp.org>
2872
2873         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
2874         for mingw.
2875
2876 2006-10-19  Bruno Haible  <bruno@clisp.org>
2877
2878         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
2879         Needed for mingw.
2880
2881 2006-10-19  Bruno Haible  <bruno@clisp.org>
2882
2883         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
2884
2885 2006-10-19  Bruno Haible  <bruno@clisp.org>
2886
2887         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
2888         it.
2889
2890 2006-10-19  Bruno Haible  <bruno@clisp.org>
2891
2892         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
2893         invocation.
2894
2895 2006-10-19  Bruno Haible  <bruno@clisp.org>
2896
2897         * gnulib-tool (func_create_testdir): Don't include ftruncate and
2898         mountlist by default.
2899
2900 2006-10-16  Bruno Haible  <bruno@clisp.org>
2901
2902         * lib/c-strstr.c: Include c-strstr.h.
2903
2904 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
2905
2906         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
2907         in a slash.
2908
2909 2006-10-18  Bruno Haible  <bruno@clisp.org>
2910
2911         * lib/lock.h [C++]: Wrap definitions in extern "C".
2912
2913 2006-10-18  Bruno Haible  <bruno@clisp.org>
2914
2915         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
2916         gl_LIBOBJS list.
2917
2918 2006-10-18  Bruno Haible  <bruno@clisp.org>
2919
2920         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
2921
2922 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
2923
2924         * lib/xstrtol.h: Include gettext.h.
2925         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
2926         Problem reported by Eric Blake.
2927         * modules/xstrtol (Depends-on): Add gettext-h.
2928
2929 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
2930
2931         * lib/strftime.c (advance): New macro.
2932         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
2933         incomplete type, so you can't add 0 to it.  Problem and patch
2934         reported by Eelco Dolstra for dietlibc.
2935
2936 2006-10-18  Jim Meyering  <jim@meyering.net>
2937
2938         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
2939         type for a local, and rename it: s/up/user_proc/.
2940
2941 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
2942
2943         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
2944         READ_UTMP_USER_PROCESS.
2945         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
2946
2947 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
2948
2949         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
2950         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
2951
2952 2006-10-17  Eric Blake  <ebb9@byu.net>
2953
2954         * lib/sigprocmask.c (sigprocmask): Fix typo.
2955
2956         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
2957
2958         * modules/clean-temp (Makefile.am): Don't add to make output...
2959         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
2960         config.h.
2961
2962 2006-10-17  Bruno Haible  <bruno@clisp.org>
2963
2964         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
2965         differently if DEFAULT_TEXT_DOMAIN is set.
2966
2967 2006-10-16  Bruno Haible  <bruno@clisp.org>
2968
2969         * lib/clean-temp.c: Include fwriteerror.h.
2970
2971 2006-10-16  Bruno Haible  <bruno@clisp.org>
2972
2973         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
2974
2975 2006-10-16  Bruno Haible  <bruno@clisp.org>
2976
2977         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
2978         * lib/sigprocmask.h: Include <sys/types.h>.
2979         (sigset_t): Use the system's definition if present.
2980
2981 2006-10-17  Eric Blake  <ebb9@byu.net>
2982
2983         * lib/xvasprintf.c (includes): Assume config.h.
2984         * lib/xasprintf.c (includes): Likewise.
2985
2986 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
2987
2988         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
2989         at least as wide as intmax_t.
2990
2991 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
2992
2993         (Imported from Automake.)
2994         * build-aux/gnupload: Update to version 1.1 of directive file.
2995
2996 2006-10-16  Eric Blake  <ebb9@byu.net>
2997
2998         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
2999         match Automake 1.10a.
3000
3001 2006-10-14  Bruno Haible  <bruno@clisp.org>
3002
3003         * modules/sigprocmask: New file.
3004         * lib/sigprocmask.h: New file.
3005         * lib/sigprocmask.c: New file.
3006         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
3007         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
3008         request sigprocmask.o.
3009         (gl_PREREQ_SIGPROCMASK): New macro.
3010         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
3011         (Depends-on): Add sigprocmask.
3012         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
3013         gt_SIGNALBLOCKING. Test for 'raise' only once.
3014         * lib/fatal-signal.c: Include sigprocmask.h.
3015         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
3016         unblock_fatal_signals): Define always.
3017         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
3018         sigprocmask.
3019
3020 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
3021
3022         Sync from Automake.
3023         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
3024         which incorrectly sets the mode of an existing destination
3025         directory.  In some cases the unpatched install-sh could do the
3026         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
3027         system.  We hope this is rare in practice, but it's clearly worth
3028         fixing.  Problem reported by Alex Unleashed in
3029         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
3030         Also, don't bother to check for -m bugs unless we're using -m;
3031         suggested by Stepan Kasal.
3032
3033 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3034
3035         Sync from Automake.
3036         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
3037         `-c' flag, so they appear at the same position as in %FASTDEP%
3038         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
3039         which ignores unknown options only after the first non-option.
3040         Bug report against M4 by Nelson H. F. Beebe.
3041
3042 2006-10-13  Jim Meyering  <jim@meyering.net>
3043
3044         Fix a bug in yesterday's change.
3045         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
3046         p->fts_statp->st_dev would be used uninitialized.
3047         Ensures that we always call fts_stat on the very first entry.
3048         Miklos Szeredi reported that find -xdev stopped working.
3049
3050 2006-10-12  Bruno Haible  <bruno@clisp.org>
3051
3052         * gnulib-tool (func_get_automake_snippet): Append an automatically
3053         computed EXTRA_DIST augmentation.
3054         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
3055         * modules/alloca-opt (Makefile.am): Likewise.
3056         * modules/allocsa (Makefile.am): Likewise.
3057         * modules/arcfour (Makefile.am): Likewise.
3058         * modules/arctwo (Makefile.am): Likewise.
3059         * modules/argmatch (Makefile.am): Likewise.
3060         * modules/argz (Makefile.am): Likewise.
3061         * modules/atexit (Makefile.am): Likewise.
3062         * modules/backupfile (Makefile.am): Likewise.
3063         * modules/byteswap (Makefile.am): Likewise.
3064         * modules/c-strtod (Makefile.am): Likewise.
3065         * modules/c-strtold (Makefile.am): Likewise.
3066         * modules/calloc (Makefile.am): Likewise.
3067         * modules/canon-host (Makefile.am): Likewise.
3068         * modules/canonicalize (Makefile.am): Likewise.
3069         * modules/chdir-long (Makefile.am): Likewise.
3070         * modules/chdir-safer (Makefile.am): Likewise.
3071         * modules/check-version (Makefile.am): Likewise.
3072         * modules/chown (Makefile.am): Likewise.
3073         * modules/cloexec (Makefile.am): Likewise.
3074         * modules/close-stream (Makefile.am): Likewise.
3075         * modules/closeout (Makefile.am): Likewise.
3076         * modules/crc (Makefile.am): Likewise.
3077         * modules/csharpexec (Makefile.am): Likewise.
3078         * modules/cycle-check (Makefile.am): Likewise.
3079         * modules/des (Makefile.am): Likewise.
3080         * modules/dev-ino (Makefile.am): Likewise.
3081         * modules/dirfd (Makefile.am): Likewise.
3082         * modules/dirname (Makefile.am): Likewise.
3083         * modules/dup2 (Makefile.am): Likewise.
3084         * modules/eealloc (Makefile.am): Likewise.
3085         * modules/error (Makefile.am): Likewise.
3086         * modules/euidaccess (Makefile.am): Likewise.
3087         * modules/exclude (Makefile.am): Likewise.
3088         * modules/exitfail (Makefile.am): Likewise.
3089         * modules/fcntl-safer (Makefile.am): Likewise.
3090         * modules/fcntl (Makefile.am): Likewise.
3091         * modules/file-type (Makefile.am): Likewise.
3092         * modules/fileblocks (Makefile.am): Likewise.
3093         * modules/filemode (Makefile.am): Likewise.
3094         * modules/filenamecat (Makefile.am): Likewise.
3095         * modules/fnmatch (Makefile.am): Likewise.
3096         * modules/fopen-safer (Makefile.am): Likewise.
3097         * modules/fpending (Makefile.am): Likewise.
3098         * modules/fprintftime (Makefile.am): Likewise.
3099         * modules/free (Makefile.am): Likewise.
3100         * modules/fsusage (Makefile.am): Likewise.
3101         * modules/ftruncate (Makefile.am): Likewise.
3102         * modules/fts (Makefile.am): Likewise.
3103         * modules/gc-arcfour (Makefile.am): Likewise.
3104         * modules/gc-des (Makefile.am): Likewise.
3105         * modules/gc-hmac-md5 (Makefile.am): Likewise.
3106         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
3107         * modules/gc-md4 (Makefile.am): Likewise.
3108         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
3109         * modules/gc-sha1 (Makefile.am): Likewise.
3110         * modules/gc (Makefile.am): Likewise.
3111         * modules/getaddrinfo (Makefile.am): Likewise.
3112         * modules/getcwd (Makefile.am): Likewise.
3113         * modules/getdelim (Makefile.am): Likewise.
3114         * modules/getdomainname (Makefile.am): Likewise.
3115         * modules/getgroups (Makefile.am): Likewise.
3116         * modules/gethostname (Makefile.am): Likewise.
3117         * modules/gethrxtime (Makefile.am): Likewise.
3118         * modules/getline (Makefile.am): Likewise.
3119         * modules/getloadavg (Makefile.am): Likewise.
3120         * modules/getlogin_r (Makefile.am): Likewise.
3121         * modules/getndelim2 (Makefile.am): Likewise.
3122         * modules/getopt (Makefile.am): Likewise.
3123         * modules/getpagesize (Makefile.am): Likewise.
3124         * modules/getpass-gnu (Makefile.am): Likewise.
3125         * modules/getpass (Makefile.am): Likewise.
3126         * modules/getsubopt (Makefile.am): Likewise.
3127         * modules/gettime (Makefile.am): Likewise.
3128         * modules/gettimeofday (Makefile.am): Likewise.
3129         * modules/getugroups (Makefile.am): Likewise.
3130         * modules/getusershell (Makefile.am): Likewise.
3131         * modules/glob (Makefile.am): Likewise.
3132         * modules/group-member (Makefile.am): Likewise.
3133         * modules/hard-locale (Makefile.am): Likewise.
3134         * modules/hash (Makefile.am): Likewise.
3135         * modules/hmac-md5 (Makefile.am): Likewise.
3136         * modules/hmac-sha1 (Makefile.am): Likewise.
3137         * modules/human (Makefile.am): Likewise.
3138         * modules/idcache (Makefile.am): Likewise.
3139         * modules/imaxabs (Makefile.am): Likewise.
3140         * modules/imaxdiv (Makefile.am): Likewise.
3141         * modules/inet_ntop (Makefile.am): Likewise.
3142         * modules/inet_pton (Makefile.am): Likewise.
3143         * modules/intprops (Makefile.am): Likewise.
3144         * modules/inttostr (Makefile.am): Likewise.
3145         * modules/inttypes (Makefile.am): Likewise.
3146         * modules/isapipe (Makefile.am): Likewise.
3147         * modules/javaversion (Makefile.am): Likewise.
3148         * modules/lchmod (Makefile.am): Likewise.
3149         * modules/lchown (Makefile.am): Likewise.
3150         * modules/localcharset (Makefile.am): Likewise.
3151         * modules/long-options (Makefile.am): Likewise.
3152         * modules/lstat (Makefile.am): Likewise.
3153         * modules/malloc (Makefile.am): Likewise.
3154         * modules/mathl (Makefile.am): Likewise.
3155         * modules/mbchar (Makefile.am): Likewise.
3156         * modules/md2 (Makefile.am): Likewise.
3157         * modules/md4 (Makefile.am): Likewise.
3158         * modules/md5 (Makefile.am): Likewise.
3159         * modules/memcasecmp (Makefile.am): Likewise.
3160         * modules/memchr (Makefile.am): Likewise.
3161         * modules/memcmp (Makefile.am): Likewise.
3162         * modules/memcoll (Makefile.am): Likewise.
3163         * modules/memcpy (Makefile.am): Likewise.
3164         * modules/memmem (Makefile.am): Likewise.
3165         * modules/memmove (Makefile.am): Likewise.
3166         * modules/mempcpy (Makefile.am): Likewise.
3167         * modules/memrchr (Makefile.am): Likewise.
3168         * modules/memset (Makefile.am): Likewise.
3169         * modules/memxor (Makefile.am): Likewise.
3170         * modules/mkancesdirs (Makefile.am): Likewise.
3171         * modules/mkdir-p (Makefile.am): Likewise.
3172         * modules/mkdir (Makefile.am): Likewise.
3173         * modules/mkdtemp (Makefile.am): Likewise.
3174         * modules/mkstemp (Makefile.am): Likewise.
3175         * modules/mktime (Makefile.am): Likewise.
3176         * modules/modechange (Makefile.am): Likewise.
3177         * modules/mountlist (Makefile.am): Likewise.
3178         * modules/nanosleep (Makefile.am): Likewise.
3179         * modules/obstack (Makefile.am): Likewise.
3180         * modules/openat (Makefile.am): Likewise.
3181         * modules/pagealign_alloc (Makefile.am): Likewise.
3182         * modules/pathmax (Makefile.am): Likewise.
3183         * modules/physmem (Makefile.am): Likewise.
3184         * modules/poll (Makefile.am): Likewise.
3185         * modules/posixtm (Makefile.am): Likewise.
3186         * modules/posixver (Makefile.am): Likewise.
3187         * modules/putenv (Makefile.am): Likewise.
3188         * modules/quote (Makefile.am): Likewise.
3189         * modules/quotearg (Makefile.am): Likewise.
3190         * modules/raise (Makefile.am): Likewise.
3191         * modules/read-file (Makefile.am): Likewise.
3192         * modules/readline (Makefile.am): Likewise.
3193         * modules/readlink (Makefile.am): Likewise.
3194         * modules/readtokens (Makefile.am): Likewise.
3195         * modules/readutmp (Makefile.am): Likewise.
3196         * modules/realloc (Makefile.am): Likewise.
3197         * modules/regex (Makefile.am): Likewise.
3198         * modules/rename-dest-slash (Makefile.am): Likewise.
3199         * modules/rename (Makefile.am): Likewise.
3200         * modules/rijndael (Makefile.am): Likewise.
3201         * modules/rmdir (Makefile.am): Likewise.
3202         * modules/rpmatch (Makefile.am): Likewise.
3203         * modules/safe-read (Makefile.am): Likewise.
3204         * modules/safe-write (Makefile.am): Likewise.
3205         * modules/same-inode (Makefile.am): Likewise.
3206         * modules/same (Makefile.am): Likewise.
3207         * modules/save-cwd (Makefile.am): Likewise.
3208         * modules/savedir (Makefile.am): Likewise.
3209         * modules/setenv (Makefile.am): Likewise.
3210         * modules/settime (Makefile.am): Likewise.
3211         * modules/sha1 (Makefile.am): Likewise.
3212         * modules/sig2str (Makefile.am): Likewise.
3213         * modules/snprintf (Makefile.am): Likewise.
3214         * modules/stat-macros (Makefile.am): Likewise.
3215         * modules/stat-time (Makefile.am): Likewise.
3216         * modules/stdbool (Makefile.am): Likewise.
3217         * modules/stdint (Makefile.am): Likewise.
3218         * modules/stdlib-safer (Makefile.am): Likewise.
3219         * modules/stpcpy (Makefile.am): Likewise.
3220         * modules/stpncpy (Makefile.am): Likewise.
3221         * modules/strcase (Makefile.am): Likewise.
3222         * modules/strcasestr (Makefile.am): Likewise.
3223         * modules/strchrnul (Makefile.am): Likewise.
3224         * modules/strcspn (Makefile.am): Likewise.
3225         * modules/strdup (Makefile.am): Likewise.
3226         * modules/strerror (Makefile.am): Likewise.
3227         * modules/strftime (Makefile.am): Likewise.
3228         * modules/strndup (Makefile.am): Likewise.
3229         * modules/strnlen (Makefile.am): Likewise.
3230         * modules/strpbrk (Makefile.am): Likewise.
3231         * modules/strsep (Makefile.am): Likewise.
3232         * modules/strstr (Makefile.am): Likewise.
3233         * modules/strtod (Makefile.am): Likewise.
3234         * modules/strtoimax (Makefile.am): Likewise.
3235         * modules/strtok_r (Makefile.am): Likewise.
3236         * modules/strtol (Makefile.am): Likewise.
3237         * modules/strtoll (Makefile.am): Likewise.
3238         * modules/strtoul (Makefile.am): Likewise.
3239         * modules/strtoull (Makefile.am): Likewise.
3240         * modules/strtoumax (Makefile.am): Likewise.
3241         * modules/strverscmp (Makefile.am): Likewise.
3242         * modules/sys_socket (Makefile.am): Likewise.
3243         * modules/sys_stat (Makefile.am): Likewise.
3244         * modules/sysexits (Makefile.am): Likewise.
3245         * modules/time_r (Makefile.am): Likewise.
3246         * modules/timegm (Makefile.am): Likewise.
3247         * modules/timespec (Makefile.am): Likewise.
3248         * modules/tmpfile-safer (Makefile.am): Likewise.
3249         * modules/trim (Makefile.am): Likewise.
3250         * modules/unistd-safer (Makefile.am): Likewise.
3251         * modules/unlinkdir (Makefile.am): Likewise.
3252         * modules/unlocked-io (Makefile.am): Likewise.
3253         * modules/userspec (Makefile.am): Likewise.
3254         * modules/utime (Makefile.am): Likewise.
3255         * modules/utimecmp (Makefile.am): Likewise.
3256         * modules/utimens (Makefile.am): Likewise.
3257         * modules/vasnprintf (Makefile.am): Likewise.
3258         * modules/vasprintf (Makefile.am): Likewise.
3259         * modules/vsnprintf (Makefile.am): Likewise.
3260         * modules/xalloc (Makefile.am): Likewise.
3261         * modules/xgetcwd (Makefile.am): Likewise.
3262         * modules/xnanosleep (Makefile.am): Likewise.
3263         * modules/xreadlink (Makefile.am): Likewise.
3264         * modules/xstrtod (Makefile.am): Likewise.
3265         * modules/xstrtol (Makefile.am): Likewise.
3266         * modules/xstrtold (Makefile.am): Likewise.
3267         * modules/yesno (Makefile.am): Likewise.
3268         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
3269
3270 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
3271
3272         * modules/error (Makefile.am): Distribute files through
3273         EXTRA_DIST, not lib_SOURCES.
3274
3275 2006-10-12  Eric Blake  <ebb9@byu.net>
3276
3277         * modules/error (Makefile.am): Distribute files in /lib.
3278         * modules/obstack (Makefile.am): Likewise.
3279
3280 2006-10-12  Bruno Haible  <bruno@clisp.org>
3281
3282         * modules/acl (Makefile.am): Distribute all files in lib/ through
3283         EXTRA_DIST.
3284         * modules/arcfour (Makefile.am): Likewise.
3285         * modules/arctwo (Makefile.am): Likewise.
3286         * modules/argmatch (Makefile.am): Likewise.
3287         * modules/argz (Makefile.am): Likewise.
3288         * modules/atexit (Makefile.am): Likewise.
3289         * modules/backupfile (Makefile.am): Likewise.
3290         * modules/c-strtod (Makefile.am): Likewise.
3291         * modules/c-strtold (Makefile.am): Likewise.
3292         * modules/calloc (Makefile.am): Likewise.
3293         * modules/canon-host (Makefile.am): Likewise.
3294         * modules/canonicalize (Makefile.am): Likewise.
3295         * modules/chdir-long (Makefile.am): Likewise.
3296         * modules/chdir-safer (Makefile.am): Likewise.
3297         * modules/check-version (Makefile.am): Likewise.
3298         * modules/chown (Makefile.am): Likewise.
3299         * modules/cloexec (Makefile.am): Likewise.
3300         * modules/close-stream (Makefile.am): Likewise.
3301         * modules/closeout (Makefile.am): Likewise.
3302         * modules/crc (Makefile.am): Likewise.
3303         * modules/cycle-check (Makefile.am): Likewise.
3304         * modules/des (Makefile.am): Likewise.
3305         * modules/dirfd (Makefile.am): Likewise.
3306         * modules/dirname (Makefile.am): Likewise.
3307         * modules/dup2 (Makefile.am): Likewise.
3308         * modules/euidaccess (Makefile.am): Likewise.
3309         * modules/exclude (Makefile.am): Likewise.
3310         * modules/exitfail (Makefile.am): Likewise.
3311         * modules/fcntl-safer (Makefile.am): Likewise.
3312         * modules/file-type (Makefile.am): Likewise.
3313         * modules/fileblocks (Makefile.am): Likewise.
3314         * modules/filemode (Makefile.am): Likewise.
3315         * modules/filenamecat (Makefile.am): Likewise.
3316         * modules/fnmatch (Makefile.am): Likewise.
3317         * modules/fopen-safer (Makefile.am): Likewise.
3318         * modules/fpending (Makefile.am): Likewise.
3319         * modules/fprintftime (Makefile.am): Likewise.
3320         * modules/free (Makefile.am): Likewise.
3321         * modules/fsusage (Makefile.am): Likewise.
3322         * modules/ftruncate (Makefile.am): Likewise.
3323         * modules/fts (Makefile.am): Likewise.
3324         * modules/gc (Makefile.am): Likewise.
3325         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
3326         * modules/getaddrinfo (Makefile.am): Likewise.
3327         * modules/getcwd (Makefile.am): Likewise.
3328         * modules/getdelim (Makefile.am): Likewise.
3329         * modules/getdomainname (Makefile.am): Likewise.
3330         * modules/getgroups (Makefile.am): Likewise.
3331         * modules/gethostname (Makefile.am): Likewise.
3332         * modules/gethrxtime (Makefile.am): Likewise.
3333         * modules/getline (Makefile.am): Likewise.
3334         * modules/getloadavg (Makefile.am): Likewise.
3335         * modules/getlogin_r (Makefile.am): Likewise.
3336         * modules/getopt (Makefile.am): Likewise.
3337         * modules/getpass (Makefile.am): Likewise.
3338         * modules/getpass-gnu (Makefile.am): Likewise.
3339         * modules/getsubopt (Makefile.am): Likewise.
3340         * modules/gettime (Makefile.am): Likewise.
3341         * modules/gettimeofday (Makefile.am): Likewise.
3342         * modules/getugroups (Makefile.am): Likewise.
3343         * modules/getusershell (Makefile.am): Likewise.
3344         * modules/glob (Makefile.am): Likewise.
3345         * modules/group-member (Makefile.am): Likewise.
3346         * modules/hard-locale (Makefile.am): Likewise.
3347         * modules/hash (Makefile.am): Likewise.
3348         * modules/hmac-md5 (Makefile.am): Likewise.
3349         * modules/hmac-sha1 (Makefile.am): Likewise.
3350         * modules/human (Makefile.am): Likewise.
3351         * modules/idcache (Makefile.am): Likewise.
3352         * modules/imaxabs (Makefile.am): Likewise.
3353         * modules/imaxdiv (Makefile.am): Likewise.
3354         * modules/inet_ntop (Makefile.am): Likewise.
3355         * modules/inet_pton (Makefile.am): Likewise.
3356         * modules/inttostr (Makefile.am): Likewise.
3357         * modules/isapipe (Makefile.am): Likewise.
3358         * modules/lchown (Makefile.am): Likewise.
3359         * modules/long-options (Makefile.am): Likewise.
3360         * modules/lstat (Makefile.am): Likewise.
3361         * modules/malloc (Makefile.am): Likewise.
3362         * modules/mathl (Makefile.am): Likewise.
3363         * modules/mbchar (Makefile.am): Likewise.
3364         * modules/md2 (Makefile.am): Likewise.
3365         * modules/md4 (Makefile.am): Likewise.
3366         * modules/md5 (Makefile.am): Likewise.
3367         * modules/memcasecmp (Makefile.am): Likewise.
3368         * modules/memchr (Makefile.am): Likewise.
3369         * modules/memcmp (Makefile.am): Likewise.
3370         * modules/memcoll (Makefile.am): Likewise.
3371         * modules/memcpy (Makefile.am): Likewise.
3372         * modules/memmem (Makefile.am): Likewise.
3373         * modules/memmove (Makefile.am): Likewise.
3374         * modules/mempcpy (Makefile.am): Likewise.
3375         * modules/memrchr (Makefile.am): Likewise.
3376         * modules/memset (Makefile.am): Likewise.
3377         * modules/memxor (Makefile.am): Likewise.
3378         * modules/mkancesdirs (Makefile.am): Likewise.
3379         * modules/mkdir (Makefile.am): Likewise.
3380         * modules/mkdir-p (Makefile.am): Likewise.
3381         * modules/mkdtemp (Makefile.am): Likewise.
3382         * modules/mkstemp (Makefile.am): Likewise.
3383         * modules/mktime (Makefile.am): Likewise.
3384         * modules/modechange (Makefile.am): Likewise.
3385         * modules/mountlist (Makefile.am): Likewise.
3386         * modules/nanosleep (Makefile.am): Likewise.
3387         * modules/openat (Makefile.am): Likewise.
3388         * modules/pagealign_alloc (Makefile.am): Likewise.
3389         * modules/physmem (Makefile.am): Likewise.
3390         * modules/poll (Makefile.am): Likewise.
3391         * modules/posixtm (Makefile.am): Likewise.
3392         * modules/posixver (Makefile.am): Likewise.
3393         * modules/putenv (Makefile.am): Likewise.
3394         * modules/quote (Makefile.am): Likewise.
3395         * modules/quotearg (Makefile.am): Likewise.
3396         * modules/raise (Makefile.am): Likewise.
3397         * modules/read-file (Makefile.am): Likewise.
3398         * modules/readline (Makefile.am): Likewise.
3399         * modules/readlink (Makefile.am): Likewise.
3400         * modules/readtokens (Makefile.am): Likewise.
3401         * modules/readutmp (Makefile.am): Likewise.
3402         * modules/realloc (Makefile.am): Likewise.
3403         * modules/regex (Makefile.am): Likewise.
3404         * modules/rename (Makefile.am): Likewise.
3405         * modules/rename-dest-slash (Makefile.am): Likewise.
3406         * modules/rijndael (Makefile.am): Likewise.
3407         * modules/rmdir (Makefile.am): Likewise.
3408         * modules/rpmatch (Makefile.am): Likewise.
3409         * modules/safe-read (Makefile.am): Likewise.
3410         * modules/safe-write (Makefile.am): Likewise.
3411         * modules/same (Makefile.am): Likewise.
3412         * modules/save-cwd (Makefile.am): Likewise.
3413         * modules/savedir (Makefile.am): Likewise.
3414         * modules/setenv (Makefile.am): Likewise.
3415         * modules/settime (Makefile.am): Likewise.
3416         * modules/sha1 (Makefile.am): Likewise.
3417         * modules/sig2str (Makefile.am): Likewise.
3418         * modules/snprintf (Makefile.am): Likewise.
3419         * modules/stdlib-safer (Makefile.am): Likewise.
3420         * modules/stpcpy (Makefile.am): Likewise.
3421         * modules/stpncpy (Makefile.am): Likewise.
3422         * modules/strcase (Makefile.am): Likewise.
3423         * modules/strcasestr (Makefile.am): Likewise.
3424         * modules/strchrnul (Makefile.am): Likewise.
3425         * modules/strcspn (Makefile.am): Likewise.
3426         * modules/strdup (Makefile.am): Likewise.
3427         * modules/strerror (Makefile.am): Likewise.
3428         * modules/strftime (Makefile.am): Likewise.
3429         * modules/strndup (Makefile.am): Likewise.
3430         * modules/strnlen (Makefile.am): Likewise.
3431         * modules/strpbrk (Makefile.am): Likewise.
3432         * modules/strsep (Makefile.am): Likewise.
3433         * modules/strstr (Makefile.am): Likewise.
3434         * modules/strtod (Makefile.am): Likewise.
3435         * modules/strtoimax (Makefile.am): Likewise.
3436         * modules/strtok_r (Makefile.am): Likewise.
3437         * modules/strtol (Makefile.am): Likewise.
3438         * modules/strtoll (Makefile.am): Likewise.
3439         * modules/strtoul (Makefile.am): Likewise.
3440         * modules/strtoull (Makefile.am): Likewise.
3441         * modules/strtoumax (Makefile.am): Likewise.
3442         * modules/strverscmp (Makefile.am): Likewise.
3443         * modules/time_r (Makefile.am): Likewise.
3444         * modules/timegm (Makefile.am): Likewise.
3445         * modules/tmpfile-safer (Makefile.am): Likewise.
3446         * modules/unistd-safer (Makefile.am): Likewise.
3447         * modules/unlinkdir (Makefile.am): Likewise.
3448         * modules/userspec (Makefile.am): Likewise.
3449         * modules/utime (Makefile.am): Likewise.
3450         * modules/utimecmp (Makefile.am): Likewise.
3451         * modules/utimens (Makefile.am): Likewise.
3452         * modules/vasnprintf (Makefile.am): Likewise.
3453         * modules/vasprintf (Makefile.am): Likewise.
3454         * modules/vsnprintf (Makefile.am): Likewise.
3455         * modules/xalloc (Makefile.am): Likewise.
3456         * modules/xgetcwd (Makefile.am): Likewise.
3457         * modules/xnanosleep (Makefile.am): Likewise.
3458         * modules/xreadlink (Makefile.am): Likewise.
3459         * modules/xstrtod (Makefile.am): Likewise.
3460         * modules/xstrtol (Makefile.am): Likewise.
3461         * modules/xstrtold (Makefile.am): Likewise.
3462         * modules/yesno (Makefile.am): Likewise.
3463
3464 2006-10-12  Jim Meyering  <jim@meyering.net>
3465
3466         * m4/getloadavg.m4: Revert the change below.
3467
3468         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
3469         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
3470         fail with a symlink, which is what coreutils' ./bootstrap now
3471         creates by default.
3472
3473 2006-10-12  Bruno Haible  <bruno@clisp.org>
3474
3475         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
3476         mingw.
3477         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
3478         MSVC and mingw explicitly.
3479
3480 2006-10-11  Simon Josefsson  <jas@extundo.com>
3481             Bruno Haible  <bruno@clisp.org>
3482
3483         Add support for multiple gnulib-tool invocations in the scope of a
3484         single configure.ac file.
3485         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
3486         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
3487         with the same contents as the _LIBADD variable.
3488         (func_emit_initmacro_start, func_emit_initmacro_end,
3489         func_emit_initmacro_done): New functions.
3490         (func_import, func_create_testdir): Invoke them. Allow the identifiers
3491         gl_LIBOBJS and gl_LTLIBOBJS.
3492
3493 2006-10-11  Bruno Haible  <bruno@clisp.org>
3494
3495         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
3496         (func_create_testdir): Don't create po/Makefile.am, don't invoke
3497         autoreconf. Instead, invoke autopoint explicitly but move back the
3498         *.m4 files from gnulib.
3499
3500 2006-10-11  Bruno Haible  <bruno@clisp.org>
3501
3502         * gnulib-tool (func_usage): Make module names after --create-testdir
3503         optional.
3504         (func_create_testdir): If no module was specified, use nearly all
3505         modules.
3506
3507 2006-10-12  Jim Meyering  <jim@meyering.net>
3508
3509         Big performance improvement for fts-based tools that use FTS_NOSTAT.
3510         Avoid spurious inode-mismatch problems on non-POSIX file systems.
3511         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
3512         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
3513         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
3514         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
3515         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
3516         (fts_set_stat_required): New function.
3517         (fts_open): Defer the calls to fts_stat, if possible or requested.
3518         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
3519         into fts_stat itself.
3520         (fts_read): Perform any required (deferred) fts_stat call.
3521         (fts_build): Likewise, for the directory we're about to open and read.
3522         In the readdir loop, carefully decide whether each entry will require
3523         an eventual call to fts_stat, using dirent.d_type info if available.
3524         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
3525         a command line argument into this function.  Update all callers.
3526         Map a return value of FTS_DOT to FTS_D for a command line argument.
3527         * modules/fts (Depends-on): Add d-type.  Alphabetize.
3528         Thanks to Miklos Szeredi for his tenacity and for the initial
3529         bug report about "find" failing on a FUSE-based file system.
3530
3531         * lib/fts.c (fts_open): Use consistent indentation.
3532
3533 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
3534
3535         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
3536         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
3537         reported by Jim Meyering.  All uses of cache variables renamed
3538         to match Autoconf's.
3539         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
3540         the other one.
3541
3542         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
3543         Fix misspelling in diagnostic.
3544
3545 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
3546
3547         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
3548         defined.  Problem reported by Matthew Woehlke.
3549
3550         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
3551         Add support for Tandem NonStop R series.
3552         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
3553         Use new macro.
3554
3555         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
3556         (has_trailing_slash): Omit size arg; all callers changed.
3557         Omit 'inline', since it doesn't help performance and we'd
3558         need to configure it.
3559         Don't count //, ///, etc. as having a trailing slash.
3560         As a side effect, this removes a C99ism reported by Matthew Woehlke.
3561         (rpl_rename_dest_slash): On failure, use rename's errno rather
3562         than (in some cases) an incorrect or junk errno.
3563         Simplify code by removing need to compute length; this does
3564         cause it to make two passes instead of one over the file name,
3565         but it's worth it.
3566
3567         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
3568         change, since Autoconf's version may no longer be appropriate now
3569         that we are using CVS Autoconf's version.  Add support for Tandem.
3570
3571 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
3572             Bruno Haible  <bruno@clisp.org>
3573
3574         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
3575         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
3576         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
3577         gl_AC_TYPE_LONG_LONG.
3578
3579         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
3580         instead of HAVE_LONG_LONG.
3581         * lib/printf-args.c (printf_fetchargs): Likewise.
3582         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
3583         * lib/vasnprintf.c (VASNPRINTF): Likewise.
3584         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
3585         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
3586         gl_AC_TYPE_LONG_LONG.
3587
3588 2006-10-11  Bruno Haible  <bruno@clisp.org>
3589
3590         * m4/longlong.m4: Add comments.
3591         * m4/ulonglong.m4: Likewise.
3592
3593 2006-10-10  Bruno Haible  <bruno@clisp.org>
3594
3595         Make it possible to #define stpcpy, strdup to aliases.
3596         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
3597         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
3598
3599 2006-10-10  Bruno Haible  <bruno@clisp.org>
3600
3601         Make it possible to #define gcd to an alias.
3602         * lib/gcd.c: Include config.h.
3603
3604 2006-10-10  Bruno Haible  <bruno@clisp.org>
3605
3606         Make it possible to #define c_isascii to an alias.
3607         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
3608         defined. Undefine the macros before defining them, to avoid gcc
3609         warnings.
3610         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
3611         define NO_C_CTYPE_MACROS early.
3612
3613 2006-10-10  Bruno Haible  <bruno@clisp.org>
3614
3615         Make it possible to #define set_program_name to an alias.
3616         * lib/progname.c: Don't undefine set_program_name; instead, undefine
3617         ENABLE_RELOCATABLE early.
3618
3619 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
3620
3621         Port to Tandem NSK OSS, which has 64-bit signed int but at most
3622         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
3623         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
3624         More generally, don't assume that 64-bit signed int is available
3625         if unsigned int is, and vice versa.
3626         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
3627         unsigned symbols, not on their signed counterparts.
3628         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
3629         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
3630         (UINT64_C, UINTMAX_C):
3631         Likewise.
3632         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
3633         unsigned counterparts.
3634         (Have_long_long, Unsigned): New macros.
3635         (Int): Renamed from INT.
3636         (strtoimax): Use the new macros.
3637         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
3638         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
3639         * modules/inttypes (inttypes.h): Substitute
3640         HAVE_UNSIGNED_LONG_LONG_INT.
3641         * modules/stdint (stdint.h): Likewise.
3642         (Files): Add m4/ulonglong.m4.
3643
3644 2006-10-10  Bruno Haible  <bruno@clisp.org>
3645
3646         Fix a gcc -Wshadow warning.
3647         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
3648         to 'bucket'.
3649         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
3650         gl_linked_indexof_from_to): Likewise.
3651         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
3652         Likewise.
3653         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
3654         Likewise.
3655         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
3656         Reported by Eric Blake.
3657
3658 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
3659
3660         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
3661         for NetBSD.  Problem reported by Bruno Haible.
3662
3663 2006-10-09  Jim Meyering  <jim@meyering.net>
3664
3665         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
3666         Patch from Bruno Haible.
3667
3668 2006-10-09  Jim Meyering  <jim@meyering.net>
3669
3670         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
3671         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
3672         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
3673
3674 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
3675
3676         Don't include <config.h> twice; this doesn't work in some cases,
3677         e.g., when config.h has "#define intmax_t long long int" and
3678         we include <config.h>, <inttypes.h>, <config.h> in that order.
3679         Problem reported by Matthew Woehlke in:
3680         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
3681         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
3682         * lib/fts-cycle.c: Don't include config.h.
3683         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
3684         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
3685         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
3686         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
3687         inttypes.h.
3688         * lib/xstrtoumax.c: Likewise.
3689         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
3690         __strtol and the like, so that this module is more like its siblings.
3691         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
3692         Remove; no longer needed now that we assume gnulib inttypes.h.
3693
3694 2006-10-08  Bruno Haible  <bruno@clisp.org>
3695
3696         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
3697         option.
3698
3699 2006-10-07  Jim Meyering  <jim@meyering.net>
3700
3701         * modules/inttypes (inttypes.h): Revert what seems to have been
3702         an inadvertent part of today's change: use "|", not "/" in the
3703         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
3704
3705 2006-10-07  Bruno Haible  <bruno@clisp.org>
3706
3707         * modules/sublist: New file.
3708
3709 2006-10-07  Bruno Haible  <bruno@clisp.org>
3710
3711         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
3712         * modules/argz (argz.h): Likewise.
3713         * modules/arpa_inet (arpa/inet.h): Likewise.
3714         * modules/byteswap (byteswap.h): Likewise.
3715         * modules/configmake (configmake.h): Likewise.
3716         * modules/fcntl (fcntl.h): Likewise.
3717         * modules/fnmatch (fnmatch.h): Likewise.
3718         * modules/getopt (getopt.h): Likewise.
3719         * modules/glob (glob.h): Likewise.
3720         * modules/inttypes (inttypes.h): Likewise.
3721         * modules/netinet_in (netinet/in.h): Likewise.
3722         * modules/poll (poll.h): Likewise.
3723         * modules/stdbool (stdbool.h): Likewise.
3724         * modules/stdint (stdint.h): Likewise.
3725         * modules/sys_select (sys/select.h): Likewise.
3726         * modules/sys_socket (sys/socket.h): Likewise.
3727         * modules/sys_stat (sys/stat.h): Likewise.
3728         * modules/sysexits (sysexits.h): Likewise.
3729         * modules/unistd (unistd.h): Likewise.
3730         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
3731         Add a "DO NOT EDIT" comment to the generated file.
3732         (func_import): Likewise for gnulib-comp.m4.
3733
3734 2006-10-07  Bruno Haible  <bruno@clisp.org>
3735
3736         * lib/gl_sublist.h: New file.
3737         * lib/gl_sublist.c: New file.
3738
3739 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
3740
3741         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
3742         name (relative to the original working directory) and the file
3743         name component (relative to the temporary working directory).  All
3744         callers changed.
3745         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
3746         * lib/mkdir-p.c (make_dir_parents): Likewise.
3747         * lib/mkdir-p.h (make_dir_parents): Likewise.
3748
3749 2006-10-06  Eric Blake  <ebb9@byu.net>
3750
3751         Define several macros for use by the clean-temp module.
3752         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
3753         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
3754         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
3755
3756         * lib/clean-temp.h (close_stream_temp): New declaration.
3757         * lib/clean-temp.c (includes): Pull in headers according to what
3758         other modules are in use.
3759         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
3760
3761 2006-10-06  Bruno Haible  <bruno@clisp.org>
3762
3763         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
3764         instead of fopen, fwriteerror.
3765
3766 2006-10-06  Bruno Haible  <bruno@clisp.org>
3767
3768         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
3769         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
3770         int.
3771         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
3772         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
3773         Return an error indicator.
3774         Suggested by Eric Blake.
3775
3776 2006-10-06  Bruno Haible  <bruno@clisp.org>
3777
3778         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
3779         Reported by Eric Blake.
3780
3781 2006-10-06  Bruno Haible  <bruno@clisp.org>
3782
3783         * modules/closeout (Description): Mention stderr too.
3784
3785 2006-10-06  Bruno Haible  <bruno@clisp.org>
3786         and Paul Eggert  <eggert@cs.ucla.edu>
3787
3788         * lib/closeout.c (close_stdout): Also close stderr.
3789         * lib/closeout.h: Update comment.
3790
3791 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
3792
3793         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
3794         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
3795         * lib/dirchownmod.c: Include lchown.h.
3796         * lib/lchown.c: Don't include files that lchown.h now includes.
3797         Don't declare chown, since lchown.h now does that.
3798         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
3799         (lchown): Define to rpl_chown if lchown is declared but
3800         does not exist.  Declare using a prototype if lchown is not
3801         declared.  Add a copyright notice.
3802         * lib/mkstemp.h: Include <unistd.h>.
3803         * lib/openat.c: Include lchown.h.
3804
3805         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
3806         we now test for that separately.
3807         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
3808         rather than O_NOFOLLOW, when testing whether it's possible to
3809         avoid a race condition reliably.
3810         * lib/savewd.c (savewd_chdir): Likewise.
3811
3812         Remove macros that are no longer needed now that stdint.h is
3813         reliable.
3814         * lib/fsusage.c (UINTMAX_MAX): Remove.
3815         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
3816         * lib/utimecmp.c (SIZE_MAX): Remove.
3817
3818         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
3819
3820         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
3821         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
3822         O_NOATIME works.
3823
3824 2006-10-05  Bruno Haible  <bruno@clisp.org>
3825
3826         * lib/gl_list.h (gl_sortedlist_search_from_to,
3827         gl_sortedlist_indexof_from_to): New declarations.
3828         (gl_list_implementation): New fields sortedlist_search_from_to,
3829         sortedlist_indexof_from_to.
3830         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
3831         inline functions.
3832         * lib/gl_list.c (gl_sortedlist_search_from_to,
3833         gl_sortedlist_indexof_from_to): New functions.
3834         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
3835         function.
3836         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
3837         (gl_array_sortedlist_search_from_to): New function.
3838         (gl_array_list_implementation): Update.
3839         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
3840         function.
3841         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
3842         (gl_carray_sortedlist_search_from_to): New function.
3843         (gl_carray_list_implementation): Update.
3844         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
3845         gl_linked_sortedlist_indexof_from_to): New functions.
3846         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
3847         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
3848         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
3849         gl_tree_sortedlist_indexof_from_to): New functions.
3850         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
3851         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
3852         Update.
3853         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
3854         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
3855         Update.
3856
3857 2006-10-05  Bruno Haible  <bruno@clisp.org>
3858
3859         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
3860         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
3861         (struct gl_list_implementation): Add fields search_from_to,
3862         indexof_from_to. Remove fields search, indexof.
3863         (gl_list_search): Use the search_from_to method.
3864         (gl_list_search_from, gl_list_search_from_to): New functions.
3865         (gl_list_indexof): Use the indexof_from_to method.
3866         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
3867         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
3868         (gl_list_search_from, gl_list_search_from_to): New functions.
3869         (gl_list_indexof): Use the indexof_from_to method.
3870         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
3871         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
3872         gl_array_indexof. Add start_index, end_index arguments.
3873         (gl_array_search_from_to): Renamed from gl_array_search. Add
3874         start_index, end_index arguments.
3875         (gl_array_remove, gl_array_list_implementation): Update.
3876         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
3877         gl_carray_indexof. Add start_index, end_index arguments.
3878         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
3879         start_index, end_index arguments.
3880         (gl_carray_remove, gl_carray_list_implementation): Update.
3881         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
3882         gl_linked_search. Add start_index, end_index arguments.
3883         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
3884         start_index, end_index arguments.
3885         (gl_linked_remove): Update.
3886         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
3887         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
3888         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
3889         field to 'size_t'.
3890         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
3891         gl_tree_search. Add start_index, end_index arguments.
3892         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
3893         start_index, end_index arguments.
3894         (gl_tree_remove): Update.
3895         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
3896         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
3897         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
3898         function.
3899         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
3900         gl_tree_search. Add start_index, end_index arguments.
3901         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
3902         start_index, end_index arguments.
3903         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
3904         Update.
3905         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
3906
3907 2006-10-05  Bruno Haible  <bruno@clisp.org>
3908
3909         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
3910
3911         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
3912         fwriteerror_temp): New declarations.
3913         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
3914         (descriptors): New variable.
3915         (cleanup): First, close the descriptors.
3916         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
3917         fclose_temp, fwriteerror_temp): New functions.
3918
3919 2006-10-04  Jim Meyering  <jim@meyering.net>
3920
3921         * lib/fts.c (fts_open): Tiny comment change.
3922
3923 2006-10-04  Bruno Haible  <bruno@clisp.org>
3924
3925         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
3926         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
3927         gl_LOCK_BODY.
3928         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
3929         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
3930         gl_LOCK_EARLY_BODY.
3931         (gl_LOCK): Require gl_LOCK_BODY.
3932
3933 2006-10-04  Bruno Haible  <bruno@clisp.org>
3934
3935         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
3936         (gl_oset_search_atleast): New declaration.
3937         (struct gl_oset_implementation): Add field 'search_atleast'.
3938         (gl_oset_search_atleast): New inline function.
3939         * lib/gl_oset.c (gl_oset_search_atleast): New function.
3940         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
3941         (gl_array_oset_implementation): Update.
3942         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
3943         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
3944         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
3945
3946 2006-10-04  Bruno Haible  <bruno@clisp.org>
3947
3948         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
3949
3950 2006-10-03  Bruno Haible  <bruno@clisp.org>
3951
3952         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
3953         from gl_avltreehash_list_implementation.
3954
3955 2006-10-03  Bruno Haible  <bruno@clisp.org>
3956
3957         * lib/gl_oset.c (gl_oset_add): Fix return type.
3958
3959 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
3960
3961         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
3962
3963 2006-10-02  Eric Blake  <ebb9@byu.net>
3964
3965         * modules/strnlen (Depends-on): Add extensions.
3966
3967 2006-10-02  Eric Blake  <ebb9@byu.net>
3968
3969         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
3970         definition in 2.60+.
3971
3972 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
3973
3974         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
3975         checks.
3976
3977 2006-10-02  Bruno Haible  <bruno@clisp.org>
3978
3979         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
3980         to the AUTOMAKE_OPTIONS.
3981         Reported by Jim Meyering.
3982
3983 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
3984
3985         Work around bug in Solaris 10 /proc file system:
3986         /proc/self/fd/NNN/.. isn't the parent directory of
3987         the directory whose file descriptor is NNN.  This needs to
3988         be worked around at run time, not compile time, since a
3989         program might be built on Solaris 8, where things work, and
3990         run on Solaris 10.
3991         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
3992         to use the following interface instead:
3993         (OPENAT_BUFFER_SIZE): New macro.
3994         (openat_proc_name): New function.
3995         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
3996         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
3997         Likewise.
3998         * lib/openat-proc.c: New file.
3999         * modules/openat (Files): Add lib/openat-proc.c.
4000         (Depends-on): Add same-inode, stdbool.
4001         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
4002
4003 2006-09-29  Bruno Haible  <bruno@clisp.org>
4004
4005         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
4006         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
4007         argument. Set stdout_closed before testing for ferror, not after.
4008         (fwriteerror, fwriteerror_no_ebadf): New functions.
4009
4010 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4011
4012         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
4013
4014 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
4015
4016         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
4017         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
4018
4019 2006-09-28  Jim Meyering  <jim@meyering.net>
4020
4021         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
4022         Include <unistd.h>.
4023
4024 2006-09-28  Bruno Haible  <bruno@clisp.org>
4025
4026         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
4027         * modules/linkedhash-list (Depends-on): Likewise.
4028         * modules/rbtreehash-list (Depends-on): Likewise.
4029
4030 2006-09-28  Bruno Haible  <bruno@clisp.org>
4031
4032         * lib/strndup.h: Simplify the redefinition of strndup.
4033         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
4034         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
4035
4036 2006-09-28  Bruno Haible  <bruno@clisp.org>
4037
4038         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
4039         * lib/gl_linkedhash_list.c: Likewise.
4040         * lib/gl_rbtreehash_list.c: Likewise.
4041
4042 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
4043
4044         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
4045         getaddrinfo.
4046
4047         * lib/__fpending.h: Don't include <stdio_ext.h> unless
4048         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
4049         it causes <stdio_ext.h> to cause a compile-time error.
4050         Problem reported by Nelson H. F. Beebe.
4051         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
4052         of HAVE_DECL___PENDING.
4053
4054         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
4055         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
4056         declaration.
4057
4058 2006-09-27  Jim Meyering  <jim@meyering.net>
4059
4060         This file could end up with a definition for a function
4061         named __strndup, rather than rpl_strndup on a system with
4062         incomplete weak_alias support.
4063         * lib/strndup.c (strndup): Rename from __strndup.
4064         Remove #defines that used to map __strndup to strndup.
4065         Don't use K&R prototypes.
4066         Remove LIBC-related code, since this file is not sync'd with glibc.
4067         * lib/strndup.h: Revamp, accordingly.
4068         * m4/strndup.m4: Modernize.
4069
4070 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
4071
4072         * modules/savewd (Depends-on): Add 'raise'.
4073         * lib/savewd.c: Include <signal.h>, for 'raise'.
4074
4075 2006-09-26  Jim Meyering  <jim@meyering.net>
4076
4077         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
4078         when we detect Darwin 8.7.0's acl_get_file bug.
4079         Rearrange to perform the new (below) run-test while $LIBS
4080         contains any acl-related library.  Set USE_ACL at the end.
4081         (gl_ACL_GET_FILE): New function.
4082
4083 2006-09-26  Eric Blake  <ebb9@byu.net>
4084
4085         * lib/verror.c: Include <config.h> unconditionally.
4086
4087 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
4088
4089         * modules/clock-time (Maintainer): Add self.
4090         * modules/getlogin_r (Depends-on): Add extensions.
4091
4092 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4093
4094         * modules/clock-time: New module.
4095         * modules/nanosleep (Depends-on): Add clock-time.
4096         * modules/gethrxtime (Depends-on): Likewise.
4097         * modules/gettime (Depends-on): Likewise.
4098         * modules/settime (Depends-on): Likewise.
4099
4100         * modules/fts-lgpl: Depend on openat.
4101         * modules/mkancesdirs: Depend on savewd.
4102         * modules/mkdir-p: Likewise.
4103
4104 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4105
4106         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
4107
4108         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
4109         `gl_have_arbitrary_file_name_length_limit' to
4110         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
4111         actually works between configure runs.
4112
4113 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4114             Bruno Haible  <bruno@clisp.org>
4115
4116         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
4117
4118 2006-09-25  Jim Meyering  <jim@meyering.net>
4119
4120         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
4121         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
4122
4123 2006-09-25  Eric Blake  <ebb9@byu.net>
4124
4125         * gnulib-tool (func_import, func_create_testdir): Fix typos in
4126         exec's in 2006-09-18 patch when shuffling fds.
4127
4128 2006-09-25  Bruno Haible  <bruno@clisp.org>
4129
4130         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
4131         Reported by Jim Meyering.
4132
4133 2006-09-24  Jim Meyering  <jim@meyering.net>
4134
4135         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
4136         compare a pointer against a literal "0".  That caused failures with
4137         at least HP-UX's hpcc.
4138
4139 2006-09-22  Simon Josefsson  <jas@extundo.com>
4140
4141         * modules/gc-sha1:
4142         * modules/gc-md4:
4143         * modules/gc-hmac-sha1:
4144         * modules/gc-hmac-md5:
4145         * modules/gc-des:
4146         * modules/gc-arcfour: Distribute more files.
4147
4148 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4149
4150         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
4151         (gl_linked_iterator_from_to): Initialize struct completely.
4152         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
4153         (gl_tree_iterator_from_to): Likewise
4154         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
4155         * lib/gl_array_list.c [lint] (gl_array_iterator)
4156         (gl_array_iterator_from_to): Likewise.
4157         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
4158         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
4159         (gl_carray_iterator_from_to): Likewise.
4160
4161         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
4162         * lib/md4.c (md4_process_block): Remove unused variable.
4163         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
4164         parentheses for clarity.
4165
4166 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4167
4168         * modules/bison-i18n (Depends-on): Add gettext.
4169
4170 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4171
4172         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
4173         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
4174         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
4175         also add missing comma that caused broken test.
4176         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
4177         stdlib.h, for `abort'.
4178         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
4179         variables.
4180         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
4181         include unistd.h if present, for `rmdir'.
4182         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
4183         variables.
4184         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
4185         in the process include standard headers for prototypes.
4186         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
4187         gets declared on GNU/Linux.
4188         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
4189         unistd.h, for `rmdir'.
4190         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
4191
4192         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
4193         always true.
4194         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
4195
4196         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
4197
4198 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4199
4200         * gnulib-tool (func_version): Create output all at once.  This
4201         may help avoid triggering unnecessary SIGPIPEs, and at any
4202         rate it doesn't hurt.
4203
4204 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4205             Bruno Haible  <bruno@clisp.org>
4206
4207         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
4208         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
4209         * m4/signed.m4 (bh_C_SIGNED): Likewise.
4210
4211         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
4212         (gl_FUNC_VASPRINTF): Invoke it.
4213
4214 2006-09-22  Bruno Haible  <bruno@clisp.org>
4215
4216         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
4217         getloadavg.c as first argument.
4218
4219 2006-09-22  Bruno Haible  <bruno@clisp.org>
4220
4221         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
4222         at the beginning of the gl_INIT macro.
4223         * modules/getloadavg (configure.ac): Pass $gl_source_base to
4224         gl_GETLOADAVG.
4225
4226 2006-09-22  Bruno Haible  <bruno@clisp.org>
4227
4228         * gnulib-tool (func_create_megatestdir): Don't include the config-h
4229         module.
4230         Suggested by Ralf Wildenhues.
4231
4232 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
4233
4234         Import this patch from libc:
4235
4236         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
4237
4238         * lib/regex_internal.c (re_string_reconstruct): Handle
4239         offset < pstr->valid_raw_len && pstr->offsets_needed case.
4240         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
4241         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
4242         re_string_context_at.
4243
4244         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
4245         now requires it.
4246         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
4247         gl_REGEX now does it for us.
4248         (gl_REGEX): Add test taken from
4249         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
4250
4251         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
4252         Check that large offsets work.  Modernize Autoconf usages.
4253         Prefer "yes" to mean a good thing rather than a bad.
4254         Don't put "#define mkstemp" in config.h, as this might interfere
4255         with standard system headers that "#define mkstemp mkstemp64".
4256
4257         * modules/mkstemp (Depends-on): Add extensions, so that
4258         mkstemp is visible on some platforms.
4259         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
4260         (Include): Change to "mkstemp.h" from <stdlib.h>.
4261         (Files): Add mkstemp.h.
4262
4263         * lib/mkstemp.h: New file, since some standard headers
4264         #define mkstemp.
4265         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
4266         Include "mkstemp.h".
4267         Make the _LIBC code resemble glibc original more,
4268         e.g., use K&R style.
4269         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
4270         (mkstemp): Remove, since mkstemp.h does this for us.
4271         * lib/stdlib--.h: Include mkstemp.h.
4272
4273         Import this patch from libc:
4274
4275         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
4276
4277         * lib/tempname.c (__gen_tempname): Change attempts_min
4278         into a macro.  Use preprocessor to decide how to initialize
4279         attempts [Coverity CID 67].
4280
4281 2006-09-20  Bruno Haible  <bruno@clisp.org>
4282
4283         * lib/mkdtemp.c: Import from libc.
4284         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
4285                 * sysdeps/posix/tempname.c (__gen_tempname): Change
4286                 attempts_min into a macro.  Use preprocessor to decide how to
4287                 initialize attempts [Coverity CID 67].
4288         2001-11-27  Paul Eggert  <eggert@twinsun.com>
4289                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
4290                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
4291
4292 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4293
4294         * gnulib-tool (func_exit): New function, to allow to pass the
4295         exit status portably through the trap.  Use everywhere.
4296         (--help, --version): Signal a write error.
4297         (trap): catch SIGPIPE, for write errors.
4298         Exit at the end of the trap, with the correct exit status.
4299
4300 2006-09-19  Karl Berry  <karl@gnu.org>
4301
4302         * doc/gnulib.texi: note about the license texinfo files.
4303
4304 2006-09-19  Eric Blake  <ebb9@byu.net>
4305
4306         * gnulib-tool: Avoid space-tab.
4307
4308 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
4309
4310         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
4311         that prevented coreutils 6.1 from building.  Problem reported
4312         by Petter Reinholdtsen.
4313
4314 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
4315
4316         * gnulib-tool (avoidlist): Fix typo that broke options like
4317         --avoid=lock that are used by coreutils bootstrap.
4318
4319 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
4320
4321         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
4322         more systematically.
4323
4324 2006-09-18  Jim Meyering  <jim@meyering.net>
4325
4326         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
4327
4328 2006-09-18  Bruno Haible  <bruno@clisp.org>
4329
4330         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
4331
4332 2006-09-18  Bruno Haible  <bruno@clisp.org>
4333
4334         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
4335         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
4336         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
4337         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
4338         * m4/gettext.m4: Require autoconf >= 2.52.
4339         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
4340         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
4341         of gl_cv_header_inttypes_h.
4342
4343 2006-09-18  Bruno Haible  <bruno@clisp.org>
4344
4345         * lib/javaversion.c: Include configmake.h.
4346
4347 2006-09-18  Bruno Haible  <bruno@clisp.org>
4348
4349         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
4350         avoid that the while loops be executed in a subshell.
4351
4352 2006-09-18  Bruno Haible  <bruno@clisp.org>
4353
4354         * MODULES.html.sh (func_module): Break long lines.
4355         Suggested by Bruce Korb <bkorb@gnu.org>.
4356
4357 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4358
4359         Speed up by a factor of 1.12.
4360         * gnulib-tool (nl): New variable.
4361         (func_import): Rewrite include directive extraction to only read each
4362         directive once.
4363
4364 2006-09-17  Bruno Haible  <bruno@clisp.org>
4365
4366         * modules/javaversion (Makefile.am): Remove DEFS setting.
4367         (Depends-on): Add configmake, for PKGDATADIR definition.
4368
4369 2006-09-17  Bruno Haible  <bruno@clisp.org>
4370
4371         * gnulib-tool (func_create_testdir): Rewrite all files at once.
4372
4373 2006-09-17  Bruno Haible  <bruno@clisp.org>
4374
4375         * gnulib-tool (func_append): New function, stolen from libtool.m4.
4376         (func_modules_transitive_closure, func_modules_add_dummy,
4377         func_modules_to_filelist, func_import, func_create_testdir,
4378         func_create_megatestdir, ...): Use it wherever possible.
4379         Suggested by Ralf Wildenhues.
4380
4381 2006-09-16  Karl Berry  <karl@gnu.org>
4382
4383         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
4384         to avoid sectioning errors.
4385         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
4386         [ifinfo]: blank line after @center-ed titles.
4387         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
4388         Spell FSF address consistently with others.
4389         (These changes approved by rms.)
4390
4391 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4392
4393         Speed up by a factor of 1.61.
4394         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
4395         already checked module names again.
4396
4397 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4398
4399         Speed up by a factor of 1.13.
4400         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
4401         for new_files, and the input to func_add_or_update.
4402
4403 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4404
4405         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
4406         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
4407
4408 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
4409
4410         * modules/mkancesdirs (Depends-on): Add fcntl.
4411         * modules/savewd: New file.
4412         * MODULES.html.sh (File system functions): Add savewd.
4413
4414         * modules/configmake (Makefile.am): Add support for the
4415         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
4416
4417 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
4418
4419         * m4/savewd.m4: New file.
4420
4421 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
4422
4423         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
4424         (dirchownmod): New arg FD.  All callers changed.
4425         Use FD rather than opening the directory ourself, as opening is
4426         now the caller's responsibility.
4427         * lib/dirchownmod.h: Likewise.
4428         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
4429         hosts that require <sys/types.h> before <sys/stat.h>.  Include
4430         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
4431         (test_dir): Remove.
4432         (mkancesdirs): Return length of prefix of FILE that has already
4433         been made, or -2 if there is a child doing the work.  Redo
4434         algorithm so that it is O(N) rather than O(N**2).  Optimize away
4435         ".", and treat ".." specially since it might stray back into
4436         already-created areas.  Use a subprocess if necessary.  New arg
4437         WD; all users changed.  MAKE_DIR function should now return 1
4438         if it creates a directory that is not readable.  Return -2 if
4439         a child process is spun off.
4440         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
4441         Adjust signature to match code.
4442         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
4443         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
4444         all users changed.
4445         * lib/savewd.c, lib/savewd.h: New files.
4446
4447 2006-09-15  Jim Meyering  <jim@meyering.net>
4448
4449         * modules/rename-dest-slash: New module.
4450         * MODULES.html.sh (posix_compat): Add it here.
4451
4452         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
4453
4454 2006-09-15  Jim Meyering  <jim@meyering.net>
4455
4456         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
4457         file.
4458
4459         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
4460
4461 2006-09-15  Jim Meyering  <jim@meyering.net>
4462
4463         * lib/rename-dest-slash.c (has_trailing_slash): Use
4464         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
4465         (rpl_rename_dest_slash): Perform the cheaper trailing slash
4466         test before testing whether SRC is a directory.
4467         Suggestions from Bruno Haible.
4468
4469         Avoid a warning about an unused variable.
4470         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
4471         into the #ifdef block where it's used.
4472
4473         * lib/rename-dest-slash.c: New file.
4474
4475 2006-09-14  Bruno Haible  <bruno@clisp.org>
4476
4477         * lib/allocsa.c: Include <config.h> unconditionally.
4478         * lib/asnprintf.c: Likewise.
4479         * lib/asprintf.c: Likewise.
4480         * lib/c-strcasecmp.c: Likewise.
4481         * lib/c-strcasestr.c: Likewise.
4482         * lib/c-strncasecmp.c: Likewise.
4483         * lib/c-strstr.c: Likewise.
4484         * lib/classpath.c: Likewise.
4485         * lib/clean-temp.c: Likewise.
4486         * lib/concatpath.c: Likewise.
4487         * lib/copy-file.c: Likewise.
4488         * lib/csharpcomp.c: Likewise.
4489         * lib/csharpexec.c: Likewise.
4490         * lib/execute.c: Likewise.
4491         * lib/fatal-signal.c: Likewise.
4492         * lib/findprog.c: Likewise.
4493         * lib/fwriteerror.c: Likewise.
4494         * lib/gl_array_list.c: Likewise.
4495         * lib/gl_array_oset.c: Likewise.
4496         * lib/gl_avltree_list.c: Likewise.
4497         * lib/gl_avltree_oset.c: Likewise.
4498         * lib/gl_avltreehash_list.c: Likewise.
4499         * lib/gl_carray_list.c: Likewise.
4500         * lib/gl_linked_list.c: Likewise.
4501         * lib/gl_linkedhash_list.c: Likewise.
4502         * lib/gl_list.c: Likewise.
4503         * lib/gl_oset.c: Likewise.
4504         * lib/gl_rbtree_list.c: Likewise.
4505         * lib/gl_rbtree_oset.c: Likewise.
4506         * lib/gl_rbtreehash_list.c: Likewise.
4507         * lib/imaxabs.c: Likewise.
4508         * lib/imaxdiv.c: Likewise.
4509         * lib/javacomp.c: Likewise.
4510         * lib/javaexec.c: Likewise.
4511         * lib/javaversion.c: Likewise.
4512         * lib/linebreak.c: Likewise.
4513         * lib/localcharset.c: Likewise.
4514         * lib/lock.c: Likewise.
4515         * lib/mbchar.c: Likewise.
4516         * lib/mbswidth.c: Likewise.
4517         * lib/mkdtemp.c: Likewise.
4518         * lib/pipe.c: Likewise.
4519         * lib/printf-args.c: Likewise.
4520         * lib/printf-parse.c: Likewise.
4521         * lib/progname.c: Likewise.
4522         * lib/progreloc.c: Likewise.
4523         * lib/readlink.c: Likewise.
4524         * lib/sh-quote.c: Likewise.
4525         * lib/stpcpy.c: Likewise.
4526         * lib/stpncpy.c: Likewise.
4527         * lib/strcasecmp.c: Likewise.
4528         * lib/strcasestr.c: Likewise.
4529         * lib/strcspn.c: Likewise.
4530         * lib/striconv.c: Likewise.
4531         * lib/strncasecmp.c: Likewise.
4532         * lib/strnlen1.c: Likewise.
4533         * lib/strstr.c: Likewise.
4534         * lib/strtok_r.c: Likewise.
4535         * lib/tls.c: Likewise.
4536         * lib/tmpdir.c: Likewise.
4537         * lib/unicodeio.c: Likewise.
4538         * lib/unsetenv.c: Likewise.
4539         * lib/vasnprintf.c: Likewise.
4540         * lib/vasprintf.c: Likewise.
4541         * lib/wait-process.c: Likewise.
4542         * lib/xallocsa.c: Likewise.
4543         * lib/xsetenv.c: Likewise.
4544         * lib/xstriconv.c: Likewise.
4545
4546 2006-09-13  Simon Josefsson  <jas@extundo.com>
4547
4548         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
4549         that internally, suggested by Ralf Wildenhues
4550         <Ralf.Wildenhues@gmx.de>.
4551
4552 2006-09-13  Simon Josefsson  <jas@extundo.com>
4553
4554         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
4555         @LIBOBJS@.
4556         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4557
4558 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
4559
4560         * lib/_fpending.c: Include <config.h> unconditionally, since we no
4561         longer worry about uses that don't define HAVE_CONFIG_H.
4562         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
4563         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
4564         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
4565         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
4566         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
4567         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
4568         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
4569         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
4570         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
4571         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
4572         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
4573         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
4574         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
4575         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
4576         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
4577         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
4578         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
4579         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
4580         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
4581         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
4582         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
4583         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
4584         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
4585         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
4586         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
4587         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
4588         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
4589         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
4590         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
4591         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
4592         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
4593         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
4594         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
4595         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
4596         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
4597         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
4598         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
4599         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
4600         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
4601         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
4602         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
4603         Likewise.
4604
4605 2006-09-13  Eric Blake  <ebb9@byu.net>
4606
4607         * lib/getopt.c: Fix typo in last commit.
4608
4609 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
4610
4611         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
4612         dgettext.
4613
4614 2006-09-12  Jim Meyering  <jim@meyering.net>
4615
4616         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
4617         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
4618         Reported by Nelson H. F. Beebe.
4619
4620 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
4621
4622         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
4623         program_invocation_name and program_invocation_short_name are
4624         initialized.
4625         * lib/argp-namefrob.h: Move declarations of program_invocation_name
4626         and program_invocation_short_name to argp.h, so they are visible
4627         to user programs.
4628         * lib/argp.h: Likewise
4629
4630 2006-09-10  Bruno Haible  <bruno@clisp.org>
4631
4632         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
4633         m4/inttypes_h.m4, m4/uintmax_t.m4.
4634
4635 2006-09-10  Bruno Haible  <bruno@clisp.org>
4636
4637         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
4638         gl_AC_TYPE_UINTMAX_T.
4639
4640 2006-09-10  Bruno Haible  <bruno@clisp.org>
4641
4642         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
4643
4644 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
4645
4646         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
4647         convention.  Text proposed by Bruno Haible.
4648         (struct argp_option): Document the use of N_() wrappers.
4649
4650         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
4651         '\v', and translate the two parts separately, instead of feeding
4652         the whole string to gettext.  This allows to exclude
4653         '\v' from the strings visible to the translator by writing doc
4654         strings as N_("..") "\v" N_("..").
4655
4656 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
4657
4658         * config/srclist.txt: Undo latest change; the bug was fixed.
4659
4660 2006-09-09  Bruno Haible  <bruno@clisp.org>
4661
4662         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
4663         assignments if building a library without libtool.
4664         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
4665         in func_emit_lib_Makefile_am.
4666         (func_import): When building a static library libfoo.a, arrange to
4667         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
4668         (func_create_testdir): Likewise.
4669         * modules/gc (configure.ac, Makefile.am): If building statically,
4670         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
4671         * modules/iconvme (configure.ac, Makefile.am): Likewise.
4672         * modules/striconv (configure.ac, Makefile.am): Likewise.
4673         Based on a suggestion by Ralf Wildenhues.
4674
4675 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
4676
4677         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
4678         Check for unistd.h too, since Autoconf doesn't assume POSIX.
4679         Also:
4680
4681         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
4682         Add year_2050_test to catch glibc bug 2821
4683         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
4684
4685         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
4686         Prefer #ifdef to #if.
4687
4688         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
4689         Return from 'main' instead of calling 'exit'.
4690
4691 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
4692
4693         * lib/mktime.c (guess_time_tm): Fix bug where mktime
4694         returned the maximum time_t value rather than (time_t) -1.
4695         Problem originally reported by William Bardwell
4696         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
4697
4698         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
4699         Moved to here ...
4700         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
4701         ... from here.
4702
4703 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
4704
4705         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
4706         2821 is fixed.
4707
4708 2006-09-08  Jim Meyering  <jim@meyering.net>
4709
4710         Don't make generated files read-only.  That would bother too many
4711         people.  However, do retain the ability to work when targets are
4712         read-only: remove the destination and temporary files before writing
4713         them (when generated via sed or echo), or by using the -f option for
4714         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
4715         * modules/alloca-opt, modules/argz, modules/arpa_inet:
4716         * modules/byteswap, modules/configmake, modules/fcntl:
4717         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
4718         * modules/localcharset, modules/netinet_in, modules/poll:
4719         * modules/stdbool, modules/stdint, modules/sys_select:
4720         * modules/sys_socket, modules/sys_stat, modules/sysexits:
4721
4722 2006-09-08  Jim Meyering  <jim@meyering.net>
4723
4724         Avoid new build failure on FreeBSD 6.0.
4725         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
4726         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
4727         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
4728
4729 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4730
4731         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
4732
4733 2006-09-07  Jim Meyering  <jim@meyering.net>
4734
4735         Fix global typo in last change: use chmod u-w, not chmod u-x.
4736         Spotted by Paul Eggert and Bruce Korb.
4737         * modules/alloca-opt, modules/argz, modules/arpa_inet:
4738         * modules/byteswap, modules/configmake, modules/fcntl:
4739         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
4740         * modules/localcharset, modules/netinet_in, modules/poll:
4741         * modules/stdbool, modules/stdint, modules/sys_select:
4742         * modules/sys_socket, modules/sys_stat, modules/sysexits:
4743
4744 2006-09-06  Jim Meyering  <jim@meyering.net>
4745
4746         Make generated files be read-only.
4747         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
4748         Ensure that each generated file is now read-only.
4749         * modules/argz: Likewise.
4750         * modules/arpa_inet: Likewise.
4751         * modules/byteswap: Likewise.
4752         * modules/configmake: Likewise.
4753         * modules/fcntl: Likewise.
4754         * modules/fnmatch: Likewise.
4755         * modules/getopt: Likewise.
4756         * modules/glob: Likewise.
4757         * modules/inttypes: Likewise.
4758         * modules/netinet_in: Likewise.
4759         * modules/poll: Likewise.
4760         * modules/stdbool: Likewise.
4761         * modules/stdint: Likewise.
4762         * modules/sys_select: Likewise.
4763         * modules/sys_socket: Likewise.
4764         * modules/sys_stat: Likewise.
4765         * modules/sysexits: Likewise.
4766         * modules/localcharset: Same as above, but continue using temporary
4767         file named "t-$@" (why different?) rather than the "$@-t" used
4768         everywhere else.
4769
4770         * modules/sysexits (Makefile.am): Replace literal occurrences
4771         of "sysexit.h" more readable, and more consistent, "$@".
4772
4773 2006-09-06  Bruno Haible  <bruno@clisp.org>
4774
4775         * modules/striconv: New file.
4776         * modules/xstriconv: New file.
4777         * MODULES.html.sh (Internationalization functions): Add striconv,
4778         xstriconv.
4779
4780 2006-09-06  Bruno Haible  <bruno@clisp.org>
4781
4782         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
4783         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
4784         not using libtool correctly.
4785
4786 2006-09-06  Bruno Haible  <bruno@clisp.org>
4787
4788         * lib/striconv.h: New file.
4789         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
4790         iconvstring.c.
4791         * lib/xstriconv.h: New file.
4792         * lib/xstriconv.c: New file.
4793
4794 2006-09-06  Bruno Haible  <bruno@clisp.org>
4795
4796         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
4797         lib_..._LDFLAGS.
4798
4799 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4800
4801         * lib/argz_.h: Sync from Libtool.
4802
4803         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
4804                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4805
4806         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
4807
4808 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
4809
4810         * modules/trim: New file.
4811
4812 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
4813
4814         * lib/trim.h: New file.
4815         * lib/trim.c: New file.
4816
4817 2006-09-05  Bruno Haible  <bruno@clisp.org>
4818
4819         * MODULES.html.sh (String handling): Add trim.
4820
4821 2006-09-04  Karl Berry  <karl@gnu.org>
4822
4823         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
4824         until next release.
4825
4826 2006-09-03  Bruno Haible  <bruno@clisp.org>
4827
4828         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
4829         correctly.
4830
4831 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
4832
4833         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
4834         not gl_GETLOADAVG.  Omit unneeded semicolons.
4835         Problems reported by Ralf Wildenhues in
4836         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
4837         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
4838         at the end, which is the usual gnulib style.
4839
4840         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
4841         of doing all the work ourselves.
4842         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
4843         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
4844
4845 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
4846
4847         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
4848         Problem reported by Ralf Wildenhues in
4849         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
4850
4851         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
4852         HAVE_STRUCT_STATFS_F_FSTYPENAME.
4853
4854 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
4855
4856         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
4857         yesterday's patch by changing test -n to test -z.
4858
4859 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
4860
4861         * modules/getloadavg (Files): Add m4/getloadavg.m4.
4862         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
4863         the former is now obsolescent.
4864
4865         * modules/chdir-long (Depends-on): Add fcntl.
4866
4867 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
4868
4869         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
4870         obsolescent, and programs should use gnulib instead.
4871         * m4/getloadavg.m4: New file, with contents taken from Autoconf
4872         but with prefixes changed.
4873
4874 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
4875
4876         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
4877         or stdbool.h, because they might not exist while configuring.
4878
4879         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
4880         Don't include unistd.h or limits.h; not needed, since chdir-long.h
4881         does that for us.
4882         (O_DIRECTORY): Remove.
4883
4884 2006-08-31  Eric Blake  <ebb9@byu.net>
4885
4886         * gnulib-tool: Don't let emacs change spaces to TAB.
4887
4888 2006-08-31  Bruno Haible  <bruno@clisp.org>
4889
4890         * gnulib-tool: When calling func_import more than once, do it in a
4891         subshell.
4892         Reported by Eric Blake <ebb9@byu.net>.
4893
4894 2006-08-31  Bruno Haible  <bruno@clisp.org>
4895
4896         * gnulib-tool (nl): Remove variable.
4897         (sed_transform_lib_file): Use more robust test for config-h module.
4898         (func_import): Fix typo in 2006-08-25 patch.
4899
4900 2006-08-31  Bruno Haible  <bruno@clisp.org>
4901
4902         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
4903         specified, augment Makefile.am variables instead of assigning them.
4904
4905 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
4906
4907         Work around a bug in both the Linux and SunOS 64-bit kernels:
4908         nanosleep mishandles sleeps for longer than 2**31 seconds.
4909         Problem reported by Frank v Waveren in
4910         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
4911         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
4912         Check for nanosleep bug.
4913         (LIB_NANOSLEEP): Append clock_gettime library if needed.
4914
4915 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
4916
4917         Work around a bug in both the Linux and SunOS 64-bit kernels:
4918         nanosleep mishandles sleeps for longer than 2**31 seconds.
4919         Problem reported by Frank v Waveren in
4920         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
4921         * lib/nanosleep.c (BILLION): New constant.
4922         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
4923         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
4924         implementation.
4925
4926 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
4927
4928         * modules/nanosleep (Depends-on): Add gettime.
4929
4930 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
4931         and Simon Josefsson  <jas@extundo.com>
4932         and Oskar Liljeblad  <oskar@osk.mine.nu>
4933
4934         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
4935         * gnulib-tool (func_import): New license type 'unmodifiable license
4936         text'.
4937         * modules/fdl: Use it.  Longer description.
4938         * module/gpl, module/lgpl: New files.
4939
4940 2006-08-30  Jim Meyering  <jim@meyering.net>
4941
4942         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
4943         shadowing the parameter.
4944
4945 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4946
4947         Sync from Libtool:
4948
4949         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4950
4951         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
4952         sharing with gnulib.  Report by Eric Blake.
4953
4954 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
4955
4956         * modules/isapipe: New file.
4957         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
4958
4959 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
4960
4961         * modules/configmake (Makefile.am): Add a comment, and omit
4962         the CONFIGMAKE_ prefix from generated macro names.  Suggested
4963         by Bruno Haible.
4964
4965 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
4966
4967         * m4/isapipe.m4: New file.
4968
4969 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
4970
4971         * lib/isapipe.c, lib/isapipe.h: New files.
4972
4973 2006-08-29  Jim Meyering  <jim@meyering.net>
4974
4975         * modules/configmake (Makefile.am): Make configmake.h depend on
4976         Makefile.  Otherwise, a stale configmake.h could hang around.
4977
4978 2006-08-29  Eric Blake  <ebb9@byu.net>
4979
4980         * lib/error.c (error_at_line, print_errno_message): Match libc, after
4981         resolution of upstream bug 3044.
4982
4983 2006-08-29  Bruno Haible  <bruno@clisp.org>
4984
4985         * modules/localcharset (Depends-on): Add configmake.
4986         (Makefile.am): Remove setting of LIBDIR through DEFS.
4987
4988 2006-08-29  Bruno Haible  <bruno@clisp.org>
4989
4990         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
4991         defined.
4992
4993 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
4994
4995         * modules/fcntl: New file.
4996         * modules/chdir-safer (Depends-on): Add fcntl.
4997         * modules/fts: Likewise.
4998         * modules/mkdir-p: Likewise.
4999
5000         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
5001         This undoes the most recent change, since we're now addressing the
5002         problem in a different way.
5003
5004         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
5005         into output, since the output might be called Makefile.am even
5006         if $makefile_name is something different.
5007         (func_import): Use $makefile_am rather than
5008         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
5009         empty.
5010
5011         * modules/inttypes (Files): Add m4/inttypes-h.m4.
5012
5013 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
5014
5015         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
5016         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
5017         recent change to stdint.m4, since we're now addressing the problem in a
5018         different way.
5019
5020 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
5021
5022         * m4/fcntl_h.m4: New file.
5023
5024 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
5025
5026         * lib/fcntl_.h: New file.
5027         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
5028         the fcntl module.
5029         * lib/dirchownmod.c: Likewise.
5030         * lib/fts.c: Likewise.
5031
5032         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
5033         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
5034         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
5035         just before including <inttypes.h>, to avoid circular inclusion.
5036
5037 2006-08-28  Jim Meyering  <jim@meyering.net>
5038
5039         * doc/visibility.texi: Actually read and correct the grammar of the
5040         sentence affected by yesterday's change.
5041
5042 2006-08-28  Eric Blake  <ebb9@byu.net>
5043
5044         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
5045         needs wrapper.
5046
5047 2006-08-28  Eric Blake  <ebb9@byu.net>
5048
5049         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
5050
5051 2006-08-28  Eric Blake  <ebb9@byu.net>
5052
5053         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
5054
5055 2006-08-28  Bruno Haible  <bruno@clisp.org>
5056
5057         * modules/c-strstr: New file, from GNU gettext.
5058         * MODULES.html.sh (String handling): Add c-strstr.
5059
5060 2006-08-28  Bruno Haible  <bruno@clisp.org>
5061
5062         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
5063         macros.
5064         Reported by Eric Blake.
5065
5066 2006-08-28  Bruno Haible  <bruno@clisp.org>
5067
5068         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
5069         (VASNPRINTF): Return a string of length > INT_MAX without failing.
5070         * lib/vasprintf.c: Include errno.h, limits.h.
5071         (EOVERFLOW): New fallback definition.
5072         (vasprintf): Test here whether the string length is > INT_MAX.
5073         * lib/vsnprintf.c: Include errno.h, limits.h.
5074         (EOVERFLOW): New fallback definition.
5075         (vsnprintf): Fix bug when generated string was too long for the buffer.
5076         Test here whether the string length is > INT_MAX.
5077
5078 2006-08-28  Bruno Haible  <bruno@clisp.org>
5079
5080         * lib/inttypes_.h (SCNX*): Remove definitions.
5081         Reported by Eric Blake.
5082
5083 2006-08-28  Bruno Haible  <bruno@clisp.org>
5084
5085         * lib/c-strstr.h: New file, from GNU gettext.
5086         * lib/c-strstr.c: New file, from GNU gettext.
5087
5088 2006-08-28  Bruno Haible  <bruno@clisp.org>
5089
5090         * gnulib-tool: Reorder some statements.
5091
5092 2006-08-28  Bruno Haible  <bruno@clisp.org>
5093
5094         * gnulib-tool: New option --makefile-name.
5095         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
5096         $makefile_name.
5097         (func_import): Write $makefile_name to the cache file, and read it from
5098         there unless explicitly specified. Use $makefile_name as file name
5099         instead of Makefile.am. Adjust the recommendations accordingly.
5100
5101 2006-08-28  Bruno Haible  <bruno@clisp.org>
5102
5103         * gnulib-tool (func_verify_module): Check against misapplying patch.
5104
5105 2006-08-28  Bruno Haible  <bruno@clisp.org>
5106
5107         * gnulib-tool (func_relativize, func_relconcat): New functions.
5108         Give an error if --local-dir is given with --update.
5109         Remove trailing slashes from $local_gnulib_dir.
5110         (func_import): Store the relativized $local_gnulib_dir in
5111         gnulib-cache.m4, and read it from there if not specified explicitly.
5112
5113 2006-08-28  Bruno Haible  <bruno@clisp.org>
5114
5115         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
5116         is the current directory. Respect also $local_gnulib_dir.
5117
5118 2006-08-28  Bruno Haible  <bruno@clisp.org>
5119             Simon Josefsson  <jas@extundo.com>
5120
5121         BeOS portability.
5122         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
5123
5124 2006-08-27  Jim Meyering  <jim@meyering.net>
5125
5126         * doc/visibility.texi: Remove duplicate word: "pointer".
5127
5128 2006-08-26  Bruno Haible  <bruno@clisp.org>
5129
5130         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
5131         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
5132         (Makefile.am): Create inttypes.h from inttypes_.h.
5133         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
5134
5135         * modules/imaxabs: New file.
5136
5137         * modules/imaxdiv: New file.
5138
5139 2006-08-26  Bruno Haible  <bruno@clisp.org>
5140
5141         * m4/inttypes.m4: New file.
5142         * m4/_inttypes_h.m4: Remove file.
5143         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
5144         PRI_MACROS_BROKEN.
5145         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
5146
5147         * m4/imaxabs.m4: New file.
5148
5149         * m4/imaxdiv.m4: New file.
5150
5151 2006-08-26  Bruno Haible  <bruno@clisp.org>
5152
5153         * lib/inttypes_.h: New file.
5154         * lib/inttypes.h: Remove file.
5155         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
5156
5157         * lib/imaxabs.c: New file.
5158
5159         * lib/imaxdiv.c: New file.
5160
5161 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
5162
5163         New config-h module, so that "make" output needn't be cluttered
5164         by -DHAVE_CONFIG_H.
5165         * MODULES.html.sh (Support for building libraries and executables):
5166         Add config-h.
5167         * modules/config-h: New file.
5168         * gnulib-tool (nl, sed_transform_lib_file): New vars.
5169         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
5170         the config-h module is used.
5171
5172         New configmake module, so that "make" output needn't be cluttered
5173         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
5174         * MODULES.html.sh (Support for building libraries and executables):
5175         Add configmake.
5176         * modules/configmake: New file.
5177
5178 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
5179
5180         * m4/config-h.m4: New file.
5181
5182 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
5183
5184         * config/srclist.txt: Add elisp-comp.
5185
5186 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
5187
5188         * MODULES.html.sh (Support for building libraries and executables):
5189         Add elisp-comp.
5190         * build-aux/elisp-comp: New file.
5191         * modules/elisp-comp: New file.
5192
5193 2006-08-24  Bruno Haible  <bruno@clisp.org>
5194
5195         * gnulib-tool (func_create_testdir): Use non-default values of
5196         sourcebase and m4base.
5197
5198 2006-08-24  Bruno Haible  <bruno@clisp.org>
5199
5200         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
5201         HTML structure.
5202
5203 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
5204
5205         * modules/openat (Depends-on): Add lchown.
5206
5207 2006-08-23  Bruno Haible  <bruno@clisp.org>
5208
5209         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
5210         of gl_LOCK_EARLY instead of gl_LOCK.
5211
5212 2006-08-23  Bruno Haible  <bruno@clisp.org>
5213
5214         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
5215         on OSF/1 to no.
5216         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
5217
5218 2006-08-23  Bruno Haible  <bruno@clisp.org>
5219
5220         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
5221         as unusable.
5222
5223         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
5224         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
5225         (gl_LOCK): New macro.
5226
5227 2006-08-22  Simon Josefsson  <jas@extundo.com>
5228
5229         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
5230         to md5 module.
5231
5232 2006-08-22  Simon Josefsson  <jas@extundo.com>
5233
5234         * MODULES.html.sh: Add "Support for maintaining and release
5235         projects".
5236
5237         * build-aux/gnupload: New file, from coreutils.
5238
5239 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
5240
5241         Avoid the need for AC_LIBSOURCES in m4 macros.
5242         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
5243         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
5244         * modules/check-version (EXTRA_DIST): Add check-version.h.
5245         * modules/crc (EXTRA_DIST): Add crc.h.
5246         * modules/des (EXTRA_DIST): Add des.h.
5247         * modules/gc (EXTRA_DIST): Add gc.h.
5248         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
5249         * modules/getline (EXTRA_DIST): Add getline.h.
5250         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
5251         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
5252         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
5253         * modules/md2 (EXTRA_DIST): Add md2.h.
5254         * modules/md4 (EXTRA_DIST): Add md4.h.
5255         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
5256         * modules/read-file (EXTRA_DIST): Add read-file.h.
5257         * modules/readline (EXTRA_DIST): Add readline.h.
5258         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
5259         rijndael-api-fst.h.
5260
5261 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
5262
5263         * m4/rijndael.m4 (gl_ARCFOUR):
5264         * m4/arctwo.m4 (gl_ARCTWO):
5265         * m4/check-version.m4 (gl_CHECK_VERSION):
5266         * m4/crc.m4 (gl_CRC):
5267         * m4/des.m4 (gl_DES):
5268         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
5269         * m4/gc.m4 (gl_GC):
5270         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
5271         * m4/getline.m4 (gl_FUNC_GETLINE):
5272         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
5273         * m4/hmac-md5.m4 (gl_HMAC_MD5):
5274         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
5275         * m4/md2.m4 (gl_MD2):
5276         * m4/md4.m4 (gl_MD4):
5277         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
5278         * m4/read-file.m4 (gl_FUNC_READ_FILE):
5279         * m4/readline.m4 (gl_FUNC_READLINE):
5280         * m4/rijndael.m4 (gl_RIJNDAEL):
5281         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
5282         to get the necessary .h files and whatnot.
5283
5284 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
5285
5286         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
5287         gnulib rather than the other way around.
5288         * config/srclistvars.sh (COREUTILS): Remove.
5289
5290 2006-08-22  Jim Meyering  <jim@meyering.net>
5291
5292         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
5293
5294         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
5295
5296 2006-08-22  Eric Blake  <ebb9@byu.net>
5297
5298         * modules/regexprops-generic: New file.
5299         * MODULES.html.sh (Support for building documentation): List it.
5300
5301 2006-08-22  Eric Blake  <ebb9@byu.net>
5302
5303         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
5304         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
5305         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
5306         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
5307
5308 2006-08-22  Bruno Haible  <bruno@clisp.org>
5309
5310         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
5311         and lib_LTLIBRARIES like the other lib_* variables.
5312
5313 2006-08-22  Bruno Haible  <bruno@clisp.org>
5314
5315         * build-aux/x-to-1.in: New file, from GNU gettext.
5316
5317 2006-08-22  Bruno Haible  <bruno@clisp.org>
5318
5319         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
5320         <utmpx.h> exists.
5321
5322 2006-08-22  Bruno Haible  <bruno@clisp.org>
5323
5324         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
5325         <utmpx.h> exists.
5326
5327 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
5328
5329         BeOS portability.
5330         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
5331         exist.
5332         Problem reported by Bruno Haible.
5333
5334 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
5335
5336         Avoid the need for AC_LIBSOURCES in m4 macros.
5337         * modules/acl (EXTRA_DIST): Add acl.h.
5338         * modules/argmatch (Files): Add m4/argmatch.m4.
5339         (configure.ac): Add gl_ARGMATCH.
5340         (EXTRA_DIST): Renamed from lib_SOURCES, for
5341         consistency with the other modules.  Remove argmatch.c.
5342         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
5343         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
5344         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
5345         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
5346         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
5347         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
5348         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
5349         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
5350         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
5351         * modules/closeout (EXTRA_DIST): Add closeout.h.
5352         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
5353         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
5354         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
5355         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
5356         dirname.h; remove basename.c and stripslash.c.
5357         * modules/exclude (EXTRA_DIST): Add exclude.h.
5358         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
5359         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
5360         * modules/file-type (EXTRA_DIST): Add file-type.h.
5361         * modules/filemode (EXTRA_DIST): Add filemode.h.
5362         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
5363         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
5364         * modules/fpending (EXTRA_DIST): Add __fpending.h.
5365         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
5366         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
5367         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
5368         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
5369         * modules/getdate (EXTRA_DIST): Add getdate.c.
5370         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
5371         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
5372         * modules/getpass (EXTRA_DIST): Add getpass.h.
5373         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
5374         * modules/group-member (EXTRA_DIST): Add group-member.h.
5375         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
5376         * modules/hash (EXTRA_DIST): Add hash.h.
5377         * modules/human (EXTRA_DIST): Add human.h.
5378         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
5379         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
5380         * modules/lchown (EXTRA_DIST): Add lchown.h.
5381         * modules/long-options (EXTRA_DIST): Add long-options.h.
5382         * modules/lstat (EXTRA_DIST): Add lstat.h.
5383         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
5384         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
5385         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
5386         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
5387         * modules/memxor (EXTRA_DIST): Add memxor.h.
5388         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
5389         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
5390         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
5391         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
5392         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
5393         * modules/physmem (EXTRA_DIST): Add physmem.h.
5394         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
5395         * modules/posixver (EXTRA_DIST): Add posixver.h.
5396         * modules/quote (EXTRA_DIST): Add quote.h.
5397         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
5398         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
5399         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
5400         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
5401         regex_internal.h regexec.c.
5402         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
5403         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
5404         * modules/same (EXTRA_DIST): Add same.h.
5405         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
5406         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
5407         * modules/savedir (EXTRA_DIST): Add savedir.h.
5408         * modules/sha1 (EXTRA_DIST): Add sha1.h.
5409         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
5410         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
5411         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
5412         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
5413         * modules/strdup (EXTRA_DIST): Add strdup.h.
5414         * modules/strftime (EXTRA_DIST): Add strftime.h.
5415         * modules/strndup (EXTRA_DIST): Add strndup.h.
5416         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
5417         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
5418         * modules/time_r (EXTRA_DIST): Add time_r.h.
5419         * modules/timespec (EXTRA_DIST): Add timespec.h.
5420         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
5421         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
5422         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
5423         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
5424         * modules/userspec (EXTRA_DIST): Add userspec.h.
5425         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
5426         * modules/utimens (EXTRA_DIST): Add utimens.h.
5427         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
5428         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
5429         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
5430         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
5431         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
5432         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
5433         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
5434         * modules/yesno (EXTRA_DIST): Add yesno.h.
5435
5436 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
5437
5438         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
5439
5440         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
5441         * m4/dev-ino.m4, same-inode.m4: Remove.
5442
5443         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
5444         * m4/acl.m4 (AC_FUNC_ACL):
5445         * m4/backupfile.m4 (gl_BACKUPFILE):
5446         * m4/c-strtod.m4 (gl_C99_STRTOLD):
5447         * m4/canon-host.m4 (gl_CANON_HOST):
5448         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
5449         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
5450         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
5451         * m4/cloexec.m4 (gl_CLOEXEC):
5452         * m4/close-stream.m4 (gl_CLOSE_STREAM):
5453         * m4/closeout.m4 (gl_CLOSEOUT):
5454         * m4/dirfd.m4 (gl_FUNC_DIRFD):
5455         * m4/dirname.m4 (gl_DIRNAME):
5456         * m4/exclude.m4 (gl_EXCLUDE):
5457         * m4/exitfail.m4 (gl_EXITFAIL):
5458         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
5459         * m4/file-type.m4 (gl_FILE_TYPE):
5460         * m4/filemode.m4 (gl_FILEMODE):
5461         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
5462         * m4/fpending.m4 (gl_FUNC_FPENDING):
5463         * m4/fprintftime.m4 (gl_FPRINTFTIME):
5464         * m4/fts.m4 (gl_FUNC_FTS):
5465         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
5466         * m4/getdate.m4 (gl_GETDATE):
5467         * m4/gethrxtime.m4 (gl_GETHRXTIME):
5468         * m4/getpagesize.m4 (gl_GETPAGESIZE):
5469         * m4/getpass.m4 (gl_FUNC_GETPASS):
5470         * m4/gettime.m4 (gl_GETTIME):
5471         * m4/getugroups.m4 (gl_GETUGROUPS):
5472         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
5473         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
5474         * m4/hard-locale.m4 (gl_HARD_LOCALE):
5475         * m4/hash.m4 (gl_HASH):
5476         * m4/idcache.m4 (gl_IDCACHE):
5477         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
5478         * m4/lchown.m4 (gl_FUNC_LCHOWN):
5479         * m4/long-options.m4 (gl_LONG_OPTIONS):
5480         * m4/lstat.m4 (gl_FUNC_LSTAT):
5481         * m4/md5.m4 (gl_MD5):
5482         * m4/memcasecmp.m4 (gl_MEMCASECMP):
5483         * m4/memcoll.m4 (gl_MEMCOLL):
5484         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
5485         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
5486         * m4/memxor.m4 (gl_MEMXOR):
5487         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
5488         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
5489         * m4/modechange.m4 (gl_MODECHANGE):
5490         * m4/mountlist.m4 (gl_MOUNTLIST):
5491         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
5492         * m4/openat.m4 (gl_FUNC_OPENAT):
5493         * m4/pathmax.m4 (gl_PATHMAX):
5494         * m4/physmem.m4 (gl_PHYSMEM):
5495         * m4/posixtm.m4 (gl_POSIXTM):
5496         * m4/posixver.m4 (gl_POSIXVER):
5497         * m4/quote.m4 (gl_QUOTE):
5498         * m4/quotearg.m4 (gl_QUOTEARG):
5499         * m4/readtokens.m4 (gl_READTOKENS):
5500         * m4/readutmp.m4 (gl_READUTMP):
5501         * m4/regex.m4 (gl_REGEX):
5502         * m4/safe-read.m4 (gl_SAFE_READ):
5503         * m4/safe-write.m4 (gl_SAFE_WRITE):
5504         * m4/same.m4 (gl_SAME):
5505         * m4/save-cwd.m4 (gl_SAVE_CWD):
5506         * m4/savedir.m4 (gl_SAVEDIR):
5507         * m4/settime.m4 (gl_SETTIME):
5508         * m4/sha1.m4 (gl_SHA1):
5509         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
5510         * m4/stat-macros.m4 (gl_STAT_MACROS):
5511         * m4/stat-time.m4 (gl_STAT_TIME):
5512         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
5513         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
5514         * m4/strdup.m4 (gl_FUNC_STRDUP):
5515         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
5516         * m4/strndup.m4 (gl_FUNC_STRNDUP):
5517         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
5518         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
5519         * m4/time_r.m4 (gl_TIME_R):
5520         * m4/timespec.m4 (gl_TIMESPEC):
5521         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
5522         * m4/unlinkdir.m4 (gl_UNLINKDIR):
5523         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
5524         * m4/userspec.m4 (gl_USERSPEC):
5525         * m4/utimecmp.m4 (gl_UTIMECMP):
5526         * m4/utimens.m4 (gl_UTIMENS):
5527         * m4/xalloc.m4 (gl_XALLOC):
5528         * m4/xgetcwd.m4 (gl_XGETCWD):
5529         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
5530         * m4/xreadlink.m4 (gl_XREADLINK):
5531         * m4/xstrtod.m4 (gl_XSTRTOD):
5532         * m4/yesno.m4 (gl_YESNO):
5533         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
5534         to get the necessary .h files and whatnot.
5535
5536 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
5537             Bruno Haible  <bruno@clisp.org>
5538
5539         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
5540         /bin/sh understanding of '!' conditional negation.
5541
5542 2006-08-21  Jim Meyering  <jim@meyering.net>
5543
5544         * modules/openat (Depends-on): Really alphabetize.
5545
5546         * modules/acl (Depends-on): Add error and quote.
5547
5548         * check-module (find_included_lib_files): Add at-func.c to the
5549         ok-to-include-more-than-once white list.
5550
5551         * modules/openat (Depends-on): Add lstat.  Alphabetize.
5552
5553 2006-08-21  Bruno Haible  <bruno@clisp.org>
5554
5555         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
5556         Emit a pkgdata_DATA variable only if some snippets add contents to it.
5557         Reported by Martin Lambers <marlam@marlam.de>.
5558
5559 2006-08-21  Bruno Haible  <bruno@clisp.org>
5560
5561         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
5562         specify an installation location, don't emit a noinst_LIBRARIES or
5563         noinst_LTLIBRARIES assignment.
5564
5565 2006-08-21  Bruno Haible  <bruno@clisp.org>
5566
5567         BeOS portability.
5568         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
5569         BeOS has mbrtowc() but no <wctype.h>.
5570
5571 2006-08-21  Bruno Haible  <bruno@clisp.org>
5572
5573         BeOS portability.
5574         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
5575         exist.
5576
5577 2006-08-21  Bruno Haible  <bruno@clisp.org>
5578
5579         BeOS portability.
5580         * lib/mbchar.h: Include <wctype.h> only if it exists.
5581
5582 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
5583
5584         Remove files that are no longer needed by their respective modules.
5585         * m4/obstack.m4: Remove.
5586         * m4/strerror_r.m4: Remove.
5587         * m4/uint32_t.m4: Remove.
5588         * m4/uintptr_t.m4: Remove.
5589         * m4/ullong_max.m4: Remove.
5590         * m4/xstrtoimax.m4: Remove.
5591         * m4/xstrtoumax.m4: Remove.
5592
5593         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
5594         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
5595         dependencies now capture this.
5596
5597         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
5598         Do not use AC_LIBSOURCES, since gnulib modules now do this.
5599         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
5600         * m4/human.m4 (gl_HUMAN): Likewise.
5601         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
5602         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
5603
5604         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
5605
5606         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
5607         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
5608         stdint.
5609         * m4/human.m4 (gl_HUMAN): Likewise.
5610         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
5611         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
5612         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
5613         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
5614         * m4/xstrtol (gl_XSTRTOL): Likewise.
5615
5616         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
5617         AC_TYPE_LONG_LONG_INT.
5618         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
5619         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
5620         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
5621         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
5622
5623         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
5624         on stdbool.
5625
5626         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
5627         (gl_PREREQ_XSTRTOUL): Remove.
5628
5629         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
5630
5631         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
5632         mode.
5633
5634 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
5635
5636         Add and change modules to make it easier for coreutils to use
5637         gnulib-tool.
5638         * modules/backupfile (Files): Remove m4/d-ino.m4.
5639         (Depends-on): Add d-ino.
5640         * modules/cycle-check (Depends-on): Add stdint.
5641         (lib_SOURCES): Add cycle-check.h.
5642         * modules/d-ino: New module.
5643         * modules/d-type: New module.
5644         * modules/error (Files): Remove m4/strerror_r.m4.
5645         * modules/filemode (Files): Add m4/st_dm_mode.m4.
5646         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
5647         m4/inttypes_h.m4, m4/uintmax_t.m4.
5648         (Depends-on): Add stdint.
5649         (lib_SOURCES): Add fsusage.h.
5650         * modules/getcwd (Files): Remove d-ino.m4.
5651         (Depends-on): Add d-ino.
5652         * modules/getndelim2 (Depends-on): Add stdint.
5653         * modules/glob (Files): Remove m4/d-type.m4.
5654         (Depends-on): Add d-type.
5655         * modules/host-os: New module.
5656         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
5657         m4/inttypes_h.m4, m4/uintmax_t.m4.
5658         * Depends-on: Add stdint.
5659         (lib_SOURCES): Add human.h.
5660         * modules/inttostr (Files): Remove m4/intmax_t.m4,
5661         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
5662         m4/uintmax_t.m4, m4/ulonglong.m4.
5663         (Depends-on): Add stdint.
5664         (EXTRA_DIST): Add inttostr.h.
5665         * modules/lchmod: New module.
5666         * modules/link-follow: New module.
5667         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
5668         (Depends-on): Add lchmod.
5669         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
5670         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
5671         (Depends-on): Add stdint.
5672         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
5673         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
5674         (Depends-on): Add stdint.
5675         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
5676         * modules/perl: New module.
5677         * modules/regex (Depends-on): Add stdint.
5678         * modules/rmdir-errno: New module.
5679         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
5680         m4/intmax_t.m4.
5681         (Depends-on): Add stdint.
5682         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
5683         m4/uintmax_t.m4.
5684         (Depends-on): Add stdint.
5685         * modules/unlink-busy: New module.
5686         * modules/utimecmp (Depends-on): Add stdint.
5687         * modules/uptime: New module.
5688         * modules/winsz-ioctl: New module.
5689         * modules/winsz-termios: New module.
5690         * modules/xnanosleep (Depends-on): Add nanosleep.
5691         * modules/ullong_max: Remove.
5692         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
5693         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
5694         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
5695         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
5696         (Depends-on): Add inttypes.
5697         (lib_SOURCES): Add xstrtol.h.
5698         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
5699         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
5700         * MODULES.html.sh: Move 'assert' into the assert section.
5701         Move 'dummy' into the linking section.
5702         Remove ullong_max.
5703         Add section for compatibility checks for POSIX:2001 functions,
5704         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
5705         winsz-ioctl, and winsz-termios into it.
5706         Add lchmod.
5707         Add top-level Misc section and put host-os, perl, and uptime
5708         into it.
5709
5710 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
5711
5712         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
5713         now assume the stdint module.  Do not include inttypes.h.
5714         * lib/fsusage.h: Likewise.
5715         * lib/getndelim2.c: Likewise.
5716         * lib/human.h: Likewise.
5717         * lib/inttostr.h: Likewise.
5718         * lib/obstack.c: Likewise.
5719         * lib/regex_internal.h: Likewise.
5720         * lib/tempname.c: Likewise.
5721         * lib/utimecmp.c: Likewise.
5722         * lib/xstrtol.h: Likewise.
5723
5724         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
5725
5726         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
5727         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
5728         * lib/xtime.h: Likewise.
5729
5730 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
5731
5732         * modules/openat (Files): Add lib/fchmodat.c.
5733         Fixes problem reported by Jay Youngman.
5734
5735 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
5736
5737         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
5738         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
5739
5740 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
5741             Bruno Haible  <bruno@clisp.org>
5742
5743         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
5744         and is a script that invokes bison. Tighten the code. Add comments.
5745
5746 2006-08-18  Jim Meyering  <jim@meyering.net>
5747
5748         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
5749         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
5750         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
5751         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
5752
5753 2006-08-18  Bruno Haible  <bruno@clisp.org>
5754
5755         * modules/bison-i18n: New file.
5756         * MODULES.html.sh (Internationalization functions): Add it.
5757
5758 2006-08-18  Bruno Haible  <bruno@clisp.org>
5759
5760         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
5761         sys/statvfs.h. When getmntinfo was found, check its declaration and
5762         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
5763
5764 2006-08-18  Bruno Haible  <bruno@clisp.org>
5765
5766         * m4/bison-i18n.m4: New file, from bison.
5767
5768 2006-08-18  Bruno Haible  <bruno@clisp.org>
5769
5770         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
5771         (ME_DUMMY): Treat "kernfs" as a dummy.
5772         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
5773
5774 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
5775
5776         Update from coreutils.
5777
5778         2006-08-15  Jim Meyering  <jim@meyering.net>
5779
5780         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
5781
5782         2006-01-17  Jim Meyering  <jim@meyering.net>
5783
5784         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
5785
5786         2006-01-11  Jim Meyering  <jim@meyering.net>
5787
5788         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
5789         Check for the lchmod function.
5790
5791 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
5792
5793         Update from coreutils.
5794
5795         * lib/__fpending.h: Add copyright notice.
5796         * lib/fprintftime.h: Likewise.
5797         * lib/savedir.c: Use (C) in copyright notice.
5798         * lib/savedir.h: Likewise.
5799
5800         2006-08-15  Jim Meyering  <jim@meyering.net>
5801
5802         * lib/at-func.c: New file, with the logic of all emulated at-functions.
5803         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
5804         in support of the EXPECTED_ERRNO macro.
5805         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
5806         definitions.  Instead, define the appropriate symbols and include
5807         "at-func.c".
5808         * lib/mkdirat.c (mkdirat): Likewise.
5809         * lib/fchmodat.c (fchmodat): Likewise.
5810         (ENOSYS): Remove definition.
5811         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
5812         it.  Don't include "unistd--.h" -- it wasn't ever used.
5813
5814         2006-01-17  Jim Meyering  <jim@meyering.net>
5815
5816         Rewrite fts.c not to change the current working directory,
5817         by using openat, fstatat, fdopendir, etc..
5818
5819         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
5820         (HAVE_OPENAT_SUPPORT): Define.
5821         [_LIBC] (fchdir): Don't undef or define; no longer used.
5822         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
5823         Now, this `function' always succeeds, and consumes its file descriptor
5824         parameter -- so callers must not close such FDs.  Update callers.
5825         (diropen_fd, opendirat, cwd_advance_fd): New functions.
5826         (diropen): Add parameter, SP.  Adjust all callers.
5827         Implement using diropen_fd, rather than open.
5828         (fts_open): Initialize new member, fts_cwd_fd.
5829         Remove fts_rft-setting code.
5830         (fts_close): Close fts_cwd_fd, if necessary.
5831         (__opendir2): Define in terms of opendir or opendirat,
5832         depending on whether the FST_NOCHDIR flag is set.
5833         (fts_build): Since fts_safe_changedir consumes its FD, and since
5834         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
5835         and close the dup'd file descriptor upon failure.
5836         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
5837         (fts_safe_changedir): Tweak semantics to reflect that this function
5838         now calls cwd_advance_fd and hence consumes its FD argument.
5839         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
5840         [struct FTS] (fts_rft): Remove now-unused member.
5841         [struct FTS] (fts_cycle.state): Improve comment.
5842
5843         * lib/openat.c (openat_needs_fchdir): New function.
5844         * lib/openat.h (openat_needs_fchdir): Declare it.
5845
5846 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
5847
5848         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
5849         Problem and fix reported by Pádraig Brady in
5850         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
5851
5852 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
5853
5854         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
5855
5856 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
5857
5858         * lib/memcoll.c (memcoll): Optimize for the common case where the
5859         arguments are bytewise equal.
5860
5861 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
5862
5863         * doc/regexprops-generic.texi: Add a copyright notice.
5864
5865 2006-08-15  Bruno Haible  <bruno@clisp.org>
5866
5867         * modules/tmpdir (License): Change to LGPL.
5868
5869 2006-08-15  Bruno Haible  <bruno@clisp.org>
5870
5871         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
5872         module.
5873
5874 2006-08-14  Simon Josefsson  <jas@extundo.com>
5875
5876         * config/srclist.txt: Add gnupload.
5877
5878 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
5879
5880         Change copyright notice from LGPL 2 to GPL 2, since that's the
5881         standard form used in the gnulib repository.
5882         * tests/test-lock.c: Likewise.
5883         * tests/test-stdint.c: Likewise.
5884         * tests/test-tls.c: Likewise.
5885
5886         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
5887         prelude-manager.  User shorter URLs for GNU projects, without '?'.
5888         Add copyright notice.
5889
5890         * check-module: Add copyright notice.  Output a copyright
5891         notice if "--version" is specified.
5892         * modules/COPYING: New file.
5893         * tests/test-getaddrinfo.c: Add copyright notice.
5894         * tests/test-verify.c: Likewise.
5895
5896 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
5897
5898         Change copyright notice from LGPL 2 to GPL 2, since that's the
5899         standard form used in the gnulib repository.
5900         * lib/lock.c: LGPL -> GPL.
5901         * lib/lock.h: Likewise.
5902         * lib/strnlen1.c: Likewise.
5903         * lib/strnlen1.h: Likewise.
5904         * lib/tls.c: Likewise.
5905         * lib/tls.h: Likewise.
5906         * lib/tmpdir.c: Likewise.
5907
5908         * lib/TODO: Remove; this belongs only in coreutils.
5909
5910 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
5911
5912         Add copyright notices to long-enough files that lack them, since
5913         otherwise the files aren't clearly free.  Use the same notice that
5914         getdate.texi already uses.
5915         * doc/alloca-opt.texi: Add copyright notice.
5916         * doc/alloca.texi: Likewise.
5917         * doc/ctime.texi: Likewise.
5918         * doc/functions.texi: Likewise.
5919         * doc/gcd.texi: Likewise.
5920         * doc/gnulib-tool.texi: Likewise.
5921         * doc/inet_ntoa.texi: Likewise.
5922         * doc/visibility.texi: Likewise.
5923
5924         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
5925         * doc/quote.texi: Add copyright notice.
5926
5927         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
5928         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
5929         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
5930         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
5931         is now obsolete, and give a pointer to the Sun list.
5932         Add copyright notice.
5933
5934 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
5935
5936         * config/srclistvars.sh: Add copyright notice.
5937
5938 2006-08-14  Eric Blake  <ebb9@byu.net>
5939
5940         Import the following change from libc:
5941
5942         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
5943
5944         Upstream bug 2997.
5945         * lib/misc/error.c: Add space between program name and message if file
5946         name is missing.
5947
5948 2006-08-12  Karl Berry  <karl@gnu.org>
5949
5950         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
5951         remove, these originate in gnulib now.
5952
5953 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5954
5955         * doc/Makefile (standards.info standards.html standards.dvi):
5956         Also depend on make-stds.texi.
5957
5958 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
5959
5960         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
5961         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
5962
5963         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
5964         in wchar_t.  Problem reported by Eric Blake.
5965
5966         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
5967         LEN is smaller than SIZE.  Suggested by Bruno Haible.
5968         Also, help the compiler to keep LEN in a register.
5969
5970 2006-08-11  Eric Blake  <ebb9@byu.net>
5971
5972         * users.txt: Sort.  Add tar.
5973
5974 2006-08-11  Bruno Haible  <bruno@clisp.org>
5975
5976         * users.txt: New file.
5977
5978 2006-08-11  Bruno Haible  <bruno@clisp.org>
5979
5980         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
5981         before <wchar.h>. Needed for OSF/1 and BSD/OS.
5982
5983 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
5984
5985         * modules/snprintf (Depends-on): Remove minmax.
5986         (Maintainer): Add self and Bruno.
5987
5988 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
5989
5990         * lib/.cppi-disable: Add snprintf.h, socket_.h.
5991         * lib/snprintf.c: Include <errno.h> and <limits.h>.
5992         (EOVERFLOW): Define if the system does not.
5993         Do not include "minmax.h"; it wasn't used.
5994         (snprintf): Don't assume size_t promotes to an unsigned type.
5995         Fix bug when generated string was too long for the buffer: the
5996         buffer's contents are supposed to be the initial prefix of the
5997         output.  Don't assume vasnprintf returns EOVERFLOW if the size
5998         exceeds INT_MAX; do the check ourselves.
5999
6000         Import the following changes from libc:
6001
6002         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
6003
6004         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
6005         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
6006         set wc to the byte which couldn't be converted.
6007         (re_string_reconstruct): Don't clear valid_raw_len before calling
6008         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
6009         tip_context using re_string_context_at.
6010
6011         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
6012
6013         * lib/posix/regex.h: g++ still cannot handled [restrict].
6014
6015         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
6016
6017         * lib/posix/regex.h: Remove special handling for VMS.
6018
6019 2006-08-10  Jim Meyering  <jim@meyering.net>
6020
6021         * modules/same-inode: New module.
6022         * modules/dev-ino: New module.
6023         * modules/cycle-check: Depend on these modules, rather than simply
6024         including their .h files.
6025         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
6026         required via m4/cycle-check.m4.
6027         * modules/same: Depend on new same-inode module, rather than
6028         including same-inode.h.
6029         * modules/chdir-safer: New file.
6030
6031         * modules/chown (Depends-on): Add stat-macros.
6032
6033 2006-08-10  Jim Meyering  <jim@meyering.net>
6034
6035         * m4/cycle-check.m4: New file.
6036         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
6037         * m4/dev-ino.m4, m4/same-inode.m4: New files.
6038
6039 2006-08-10  Eric Blake  <ebb9@byu.net>
6040
6041         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
6042         in from original proposal.
6043
6044 2006-08-10  Eric Blake  <ebb9@byu.net>
6045         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6046
6047         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
6048         namespace.
6049
6050 2006-08-10  Bruno Haible  <bruno@clisp.org>
6051
6052         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
6053         as well.
6054
6055 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
6056
6057         Sync from coreutils.
6058
6059         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
6060
6061         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
6062         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
6063
6064 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
6065
6066         * modules/restrict: Remove; no longer needed now that we assume
6067         Autoconf 2.59 or later.
6068         * MODULES.html.sh: Remove 'restrict'.
6069         * modules/argp (Depends-on): Remove 'restrict'.
6070         * modules/base64 (Depends-on): Likewise.
6071         * modules/gc (Depends-on): Likewise.
6072         * modules/getaddrinfo (Depends-on): Likewise.
6073         * modules/glob (Depends-on): Likewise.
6074         * modules/inet_ntop (Depends-on): Likewise.
6075         * modules/inet_pton (Depends-on): Likewise.
6076         * modules/memxor (Depends-on): Likewise.
6077         * modules/regex (Depends-on): Likewise.
6078         * modules/strtok_r (Depends-on): Likewise.
6079         * modules/time_r (Depends-on): Likewise.
6080
6081 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
6082
6083         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
6084         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
6085         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
6086         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
6087         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
6088         * m4/memxor.m4 (gl_MEMXOR): Likewise.
6089         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
6090         gl_C_RESTRICT replaced by AC_C_RESTRICT.
6091
6092         Merge from coreutils.
6093         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
6094         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
6095         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
6096         * m4/time_r.m4 (gl_TIME_R): Likewise.
6097
6098 2006-08-09  Karl Berry  <karl@gnu.org>
6099
6100         * config/srclist.txt: no more gettext-tools, per Bruno.
6101
6102 2006-08-08  Eric Blake  <ebb9@byu.net>
6103
6104         * modules/verror: New module.
6105         * MODULES.html.sh: Document it.
6106
6107 2006-08-08  Eric Blake  <ebb9@byu.net>
6108
6109         * lib/verror.h, lib/verror.c: New files.
6110
6111 2006-08-08  Eric Blake  <ebb9@byu.net>
6112
6113         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
6114         verror_at_line output complies with GNU Coding Standards even when
6115         file is NULL.
6116
6117 2006-08-07  Bruno Haible  <bruno@clisp.org>
6118
6119         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
6120         versions of AIX.
6121         Reported by Ralf Wildenhues.
6122
6123 2006-08-07  Bruno Haible  <bruno@clisp.org>
6124
6125         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
6126         in an AC_DEFUN. Needed so that the autoconf snippets can use
6127         AC_REQUIRE.
6128
6129 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6130
6131         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
6132         Initialize pkgdata_DATA.
6133         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
6134         overriding it.
6135
6136 2006-08-06  Eric Blake  <ebb9@byu.net>
6137
6138         * lib/error.h: Fold in some upstream changes from glibc.
6139         * lib/error.c: Likewise.
6140
6141 2006-08-04  Bruno Haible  <bruno@clisp.org>
6142
6143         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
6144         Make the mostlyclean-local rule depend on mostlyclean-generic.
6145         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
6146
6147 2006-07-31  Bruno Haible  <bruno@clisp.org>
6148
6149         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
6150         <stdlib.h>, <string.h>.
6151
6152 2006-07-30  Bruno Haible  <bruno@clisp.org>
6153
6154         * modules/readlink (License): Change to LGPL.
6155
6156 2006-07-30  Bruno Haible  <bruno@clisp.org>
6157
6158         * modules/javaversion (Makefile.am): Distribute javaversion.java and
6159         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
6160         set PKGDATADIR to point to it.
6161
6162 2006-07-30  Bruno Haible  <bruno@clisp.org>
6163
6164         * modules/csharpexec (configure.ac): Comment out macro invocation.
6165         * modules/javaexec (configure.ac): Likewise.
6166         * modules/javacomp-script (configure.ac): Likewise.
6167
6168         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
6169
6170 2006-07-30  Bruno Haible  <bruno@clisp.org>
6171
6172         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
6173         linked-list.
6174
6175 2006-07-30  Bruno Haible  <bruno@clisp.org>
6176
6177         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
6178
6179 2006-07-30  Bruno Haible  <bruno@clisp.org>
6180
6181         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
6182         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
6183         get removed.
6184
6185 2006-07-29  Bruno Haible  <bruno@clisp.org>
6186
6187         Make it possible for gnulib-tool to work with locally modified or
6188         augmented gnulib repositories.
6189         * gnulib-tool (func_usage): Document --local-dir option.
6190         (local_gnulib_dir): New variable.
6191         Handle --local-dir option.
6192         (func_lookup_file): New function.
6193         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
6194         (func_get_description, func_get_filelist, func_get_description,
6195         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
6196         func_get_automake_snippet, func_get_include_directive,
6197         func_get_license, func_get_maintainer): Use func_lookup_file.
6198         (func_import, func_create_testdir): Use func_lookup_file.
6199
6200 2006-07-29  Bruno Haible  <bruno@clisp.org>
6201
6202         * modules/setenv (Depends-on): Add unistd.
6203
6204 2006-07-29  Bruno Haible  <bruno@clisp.org>
6205
6206         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
6207
6208 2006-07-29  Bruno Haible  <bruno@clisp.org>
6209
6210         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
6211
6212 2006-07-29  Bruno Haible  <bruno@clisp.org>
6213
6214         * gnulib-tool (import, update): If there is no Makefile.am, look at
6215         aclocal.m4, instead of bailing out.
6216
6217 2006-07-29  Bruno Haible  <bruno@clisp.org>
6218
6219         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
6220         Categorize the options by when they are useful.
6221
6222 2006-07-29  Bruno Haible  <bruno@clisp.org>
6223
6224         * gnulib-tool (func_usage): Document option --no-libtool.
6225         Handle option --no-libtool.
6226         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
6227         for changed semantics of $libtool variable.
6228         (func_import): Likewise. If libtool is not used, show this through
6229         an option --no-libtool.
6230         (func_create_testdir): Update.
6231
6232 2006-07-29  Bruno Haible  <bruno@clisp.org>
6233
6234         * gnulib-tool (func_import): Extend error message about missing
6235         --doc-base.
6236
6237 2006-07-29  Bruno Haible  <bruno@clisp.org>
6238
6239         * gnulib-tool (func_import): Don't create the $docbase directory if
6240         there is no file to store there.
6241
6242 2006-07-29  Bruno Haible  <bruno@clisp.org>
6243
6244         * gnulib-tool (autoconf_minversion): If a --dir option is given and
6245         relevant, look for configure.ac there, not in the current directory.
6246         Also use a simple search for AC_PREREQ, not "autoconf --trace".
6247
6248 2006-07-29  Bruno Haible  <bruno@clisp.org>
6249
6250         * gnulib-tool (SORT): New variable.
6251         (func_usage): Undocument --assume-autoconf option.
6252         Remove --assume-autoconf option handling.
6253         (autoconf_minversion): Determine from the contents of configure.ac.
6254         (func_import): Remove autoconf_minversion handling.
6255         Suggested by Eric Blake.
6256
6257 2006-07-29  Bruno Haible  <bruno@clisp.org>
6258
6259         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
6260
6261 2006-07-29  Bruno Haible  <bruno@clisp.org>
6262
6263         * config/srclist.txt (*setenv.[ch]): Remove rules.
6264
6265 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
6266
6267         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
6268
6269 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
6270
6271         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
6272         arpa/inet.h.
6273
6274 2006-07-28  Simon Josefsson  <jas@extundo.com>
6275
6276         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
6277         * modules/inet_pton (Depends-on): Likewise.
6278
6279 2006-07-28  Simon Josefsson  <jas@extundo.com>
6280
6281         * m4/netinet_in_h.m4: New file.
6282
6283 2006-07-28  Simon Josefsson  <jas@extundo.com>
6284
6285         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
6286         #include's.
6287
6288 2006-07-28  Simon Josefsson  <jas@extundo.com>
6289
6290         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
6291         #include's.
6292
6293 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
6294
6295         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
6296         setgid on directories only if they set these bits.
6297         * lib/modechange.h: Remove obsolete comment about masks.
6298
6299 2006-07-28  Eric Blake  <ebb9@byu.net>
6300
6301         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
6302         macro expansion.
6303
6304 2006-07-28  Bruno Haible  <bruno@clisp.org>
6305
6306         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
6307
6308 2006-07-28  Bruno Haible  <bruno@clisp.org>
6309
6310         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
6311
6312 2006-07-28  Bruno Haible  <bruno@clisp.org>
6313
6314         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
6315         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
6316         Define fallbacks.
6317         Avoids link error on FreeBSD 4.x.
6318         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
6319
6320         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
6321         encoding.
6322         * lib/mbswidth.c (iswcntrl): Likewise.
6323
6324 2006-07-27  Bruno Haible  <bruno@clisp.org>
6325
6326         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
6327         test.
6328
6329 2006-07-27  Bruno Haible  <bruno@clisp.org>
6330
6331         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
6332         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
6333         defined.
6334
6335 2006-07-26  Eric Blake  <ebb9@byu.net>
6336
6337         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
6338
6339 2006-07-26  Eric Blake  <ebb9@byu.net>
6340
6341         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
6342         like mingw that lack mkstemp.
6343         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
6344         avoid compilation warning on mingw.
6345
6346 2006-07-26  Bruno Haible  <bruno@clisp.org>
6347
6348         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
6349         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
6350         INT_FAST*_MIN, INTPTR_MIN.
6351
6352 2006-07-25  Bruno Haible  <bruno@clisp.org>
6353
6354         * modules/version-etc (Depends-on): Add stdarg.
6355
6356 2006-07-25  Bruno Haible  <bruno@clisp.org>
6357
6358         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
6359         complex commands.
6360
6361 2006-07-25  Bruno Haible  <bruno@clisp.org>
6362
6363         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
6364         defined in <stdarg.h> or config.h.
6365
6366 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
6367
6368         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
6369         (gl_STDIO_SAFER): Remove.
6370
6371 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
6372
6373         * MODULES.html.sh (File stream based Input/Output):
6374         Add fopen-safer, tmpfile-safer; remove stdio-safer.
6375         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
6376         * modules/fopen-safer, modules/tmpfile-safer: New files.
6377         * modules/stdio-safer: Remove.
6378
6379 2006-07-24  Bruno Haible  <bruno@clisp.org>
6380
6381         * modules/tmpdir: New file.
6382         * MODULES.html.sh (File system functions): Add it.
6383
6384 2006-07-24  Bruno Haible  <bruno@clisp.org>
6385
6386         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
6387         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
6388
6389 2006-07-24  Bruno Haible  <bruno@clisp.org>
6390
6391         * modules/clean-temp: New file.
6392
6393 2006-07-24  Bruno Haible  <bruno@clisp.org>
6394
6395         * m4/tmpdir.m4: New file, from GNU gettext.
6396
6397 2006-07-24  Bruno Haible  <bruno@clisp.org>
6398
6399         * lib/tmpdir.h: New file, from GNU gettext.
6400         * lib/tmpdir.c: New file, from GNU gettext.
6401
6402 2006-07-24  Bruno Haible  <bruno@clisp.org>
6403
6404         * lib/clean-temp.h: New file, from GNU gettext.
6405         * lib/clean-temp.c: New file, from GNU gettext.
6406
6407 2006-07-23  Eric Blake  <ebb9@byu.net>
6408
6409         * modules/stdio-safer (Files): Add tmpfile-safer.c.
6410         (Depends-on): Add binary-io.
6411
6412 2006-07-23  Eric Blake  <ebb9@byu.net>
6413
6414         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
6415
6416 2006-07-23  Eric Blake  <ebb9@byu.net>
6417
6418         * lib/tmpfile-safer.c: New file.
6419         * lib/stdio-safer.h (fopen_safer): Add prototype.
6420         * lib/stdio--.h (tmpfile): Make safer.
6421
6422 2006-07-23  Bruno Haible  <bruno@clisp.org>
6423
6424         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
6425         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
6426         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
6427         gl_linked_remove_at): Use it.
6428
6429 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
6430         and Simon Josefsson <jas@extundo.com>
6431
6432         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
6433
6434         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
6435
6436 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
6437
6438         * modules/close-stream: New file.
6439         * modules/closeout (Description): Make it clear that it exits
6440         with a diagnostic on error.
6441         (Depends-on): Add close-stream.  Remove fpending, stdbool.
6442         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
6443
6444 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
6445
6446         * m4/close-stream.m4: New file.
6447
6448 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
6449
6450         * lib/close-stream.c, lib/close-stream.h: New files.
6451
6452 2006-07-22  Bruno Haible  <bruno@clisp.org>
6453
6454         Merge from GNU gettext 0.15.
6455
6456         2006-05-01  Bruno Haible  <bruno@clisp.org>
6457
6458                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
6459
6460         2006-07-22  Bruno Haible  <bruno@clisp.org>
6461
6462                 * modules/javaversion: New file.
6463                 * MODULES.html.sh (Java): Add javaversion.
6464
6465         2006-03-12  Bruno Haible  <bruno@clisp.org>
6466
6467                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
6468
6469         2005-12-04  Bruno Haible  <bruno@clisp.org>
6470
6471                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
6472                 (untested).
6473
6474         2006-06-21  Bruno Haible  <bruno@clisp.org>
6475
6476                 Avoid warnings from recent versions of mcs.
6477                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
6478                 -o, -L, -r any more. Use options documented since mcs-1.0
6479                 instead. Similarly for -g.
6480
6481         2005-12-04  Bruno Haible  <bruno@clisp.org>
6482
6483                 * build-aux/csharpcomp.sh.in: Suffix for resources is
6484                 .resources, not .resource.
6485
6486         2005-07-09  Bruno Haible  <bruno@clisp.org>
6487
6488                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
6489                 add a .dll suffix.
6490                 Reported by Mark Junker <mjscod@gmx.de>.
6491
6492         2006-07-22  Bruno Haible  <bruno@clisp.org>
6493
6494                 * modules/gettext: Upgrade to gettext-0.15.
6495                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
6496                 m4/visibility.m4.
6497                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
6498
6499 2006-07-22  Bruno Haible  <bruno@clisp.org>
6500
6501         Merge from GNU gettext 0.15.
6502
6503         2006-03-25  Bruno Haible  <bruno@clisp.org>
6504
6505                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
6506
6507         2006-07-21  Bruno Haible  <bruno@clisp.org>
6508
6509                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
6510                 "1.1".
6511
6512         2006-05-09  Bruno Haible  <bruno@clisp.org>
6513
6514                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
6515                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
6516                 for the conftestver execution.
6517
6518         2006-05-01  Bruno Haible  <bruno@clisp.org>
6519
6520                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
6521                 optional target-version argument. Verify that the compiler
6522                 groks source of the specified source-version, or add -source
6523                 option as necessary. Verify that the compiler produces
6524                 bytecode in the specified target-version, or add -target and
6525                 -source options as necessary. Make the result of the test
6526                 available as variable CONF_JAVAC. Also log error output in
6527                 config.log.
6528
6529         2006-03-11  Bruno Haible  <bruno@clisp.org>
6530
6531                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
6532
6533         2006-05-09  Bruno Haible  <bruno@clisp.org>
6534
6535                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
6536                 CLASSPATH_SEPARATOR to a semicolon.
6537
6538         2006-03-12  Bruno Haible  <bruno@clisp.org>
6539
6540                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
6541                 available as variable CONF_JAVA, for subsequent autoconf
6542                 tests. Also log error output in config.log.
6543
6544         2006-07-19  Bruno Haible  <bruno@clisp.org>
6545
6546                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
6547                 that getline works on glibc2 systems. Needed to avoid trouble
6548                 in relocatable.c.
6549                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
6550
6551         2005-12-04  Bruno Haible  <bruno@clisp.org>
6552
6553                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
6554                 launcher (untested).
6555
6556         2005-12-04  Bruno Haible  <bruno@clisp.org>
6557
6558                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
6559
6560         2006-07-22  Bruno Haible  <bruno@clisp.org>
6561
6562                 * gettext.m4: Update from GNU gettext-0.15.
6563                 * nls.m4: Likewise.
6564                 * po.m4: Likewise.
6565                 * inttypes-pri.m4: Likewise.
6566                 * inttypes-h.m4: Renamed from inttypes.m4.
6567                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
6568
6569 2006-07-22  Bruno Haible  <bruno@clisp.org>
6570
6571         Merge from GNU gettext 0.15.
6572
6573         2005-07-05  Bruno Haible  <bruno@clisp.org>
6574
6575                 * printf-args.c (printf_fetchargs): Work around broken
6576                 definition of wint_t on mingw.
6577
6578         2005-02-12  Bruno Haible  <bruno@clisp.org>
6579
6580                 * xallocsa.h: Add extern "C" for C++.
6581
6582         2006-05-17  Bruno Haible  <bruno@clisp.org>
6583
6584                 Cygwin portability.
6585                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
6586
6587         2006-04-30  Bruno Haible  <bruno@clisp.org>
6588
6589                 * progreloc.c: Include <mach-o/dyld.h> if available.
6590                 (find_executable): Use _NSGetExecutablePath when possible.
6591
6592         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
6593
6594                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
6595                 function.
6596
6597         2005-12-29  Bruno Haible  <bruno@clisp.org>
6598
6599                 * progreloc.c (set_program_name_and_installdir): Fix
6600                 compilation error.
6601
6602         2005-12-04  Bruno Haible  <bruno@clisp.org>
6603
6604                 Cygwin portability.
6605                 * progreloc.c: Include <windows.h> also on Cygwin.
6606                 (find_executable): Add support for Cygwin.
6607                 (set_program_name_and_installdir): Handle also platforms with
6608                 nonempty EXEEXT.
6609
6610         2006-07-11  Bruno Haible  <bruno@clisp.org>
6611
6612                 * javacomp.c: Fix a comment.
6613                 Reported by Jim Meyering.
6614
6615         2006-04-30  Bruno Haible  <bruno@clisp.org>
6616
6617                 * javacomp.h (compile_java_class): Add source_version,
6618                 target_version arguments.
6619                 * javacomp.c: Rewritten to choose only a compiler that
6620                 respects the specified source_version and target_version.
6621
6622         2006-06-27  Bruno Haible  <bruno@clisp.org>
6623
6624                 Assume correct S_ISDIR macro.
6625                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
6626
6627         2006-07-22  Bruno Haible  <bruno@clisp.org>
6628
6629                 * javaversion.h: New file, from GNU gettext.
6630                 * javaversion.c: New file, from GNU gettext.
6631                 * javaversion.java: New file, from GNU gettext.
6632                 * javaversion.class: New file, from GNU gettext.
6633
6634         2006-05-17  Bruno Haible  <bruno@clisp.org>
6635
6636                 Cygwin portability.
6637                 * javaexec.c (execute_java_class): Test for jview program
6638                 also on Cygwin.
6639
6640         2006-04-09  Bruno Haible  <bruno@clisp.org>
6641
6642                 * fatal-signal.c: Don't include string.h.
6643                 (at_fatal_signal): Use a copying loop instead of memcpy.
6644
6645         2005-12-04  Bruno Haible  <bruno@clisp.org>
6646
6647                 * csharpexec.c: Add support for 'clix' launcher (untested).
6648                 (execute_csharp_using_sscli): New function.
6649                 (execute_csharp_program): Call it.
6650
6651         2006-06-21  Bruno Haible  <bruno@clisp.org>
6652
6653                 Avoid warnings from recent versions of mcs.
6654                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
6655                 -o, -L, -r any more. Use options documented since mcs-1.0
6656                 instead. Similarly for -g.
6657
6658         2005-07-09  Bruno Haible  <bruno@clisp.org>
6659
6660                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
6661                 add a .dll suffix.
6662                 Reported by Mark Junker <mjscod@gmx.de>.
6663
6664         2006-06-17  Bruno Haible  <bruno@clisp.org>
6665
6666                 * config.charset: Update for NetBSD 3.0.
6667
6668         2006-05-17  Bruno Haible  <bruno@clisp.org>
6669
6670                 Cygwin portability.
6671                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
6672
6673         2006-05-16  Bruno Haible  <bruno@clisp.org>
6674
6675                 * localcharset.c [CYGWIN]: Include <windows.h>.
6676                 (get_charset_aliases): For Cygwin, return the same CPxxx
6677                 aliases list as under WIN32.
6678                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
6679                 the environment variables. Fall back to GetACP().
6680
6681         2006-04-05  Bruno Haible  <bruno@clisp.org>
6682
6683                 * config.charset: Update Juan Manuel Guerrero's address.
6684
6685         2005-02-12  Bruno Haible  <bruno@clisp.org>
6686
6687                 * allocsa.h: Add extern "C" for C++.
6688
6689         2005-02-10  Bruno Haible  <bruno@clisp.org>
6690
6691                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
6692                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
6693
6694         2006-07-22  Bruno Haible  <bruno@clisp.org>
6695
6696                 * gettext.h: Update to GNU gettext-0.15.
6697
6698 2006-07-22  Bruno Haible  <bruno@clisp.org>
6699
6700         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
6701         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
6702         lib-prefix.m4, longdouble.m4, ssize_t.m4.
6703
6704 2006-07-21  Eric Blake  <ebb9@byu.net>
6705
6706         * modules/stdlib-safer: New file.
6707         * MODULES.html.sh (File stream based Input/Output): Add
6708         stdlib-safer.
6709
6710 2006-07-21  Eric Blake  <ebb9@byu.net>
6711
6712         * lib/stdlib-safer.h: New file from coreutils, required by
6713         stdlib--.h.
6714
6715 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
6716
6717         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
6718
6719 2006-07-20  Bruno Haible  <bruno@clisp.org>
6720
6721         * gnulib-tool: Recognize new option --assume-autoconf.
6722         (autoconf_minversion): New variable.
6723         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
6724
6725 2006-07-20  Bruno Haible  <bruno@clisp.org>
6726
6727         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
6728
6729 2006-07-19  Derek R. Price  <derek@ximbiot.com>
6730
6731         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
6732         Reindent and repaginate.
6733
6734 2006-07-19  Derek Price  <derek@ximbiot.com>
6735
6736         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
6737         Correct grammar.
6738
6739 2006-07-17  Bruno Haible  <bruno@clisp.org>
6740
6741         * modules/list: New file.
6742         * modules/array-list: New file.
6743         * modules/carray-list, modules/carray-list-tests: New files.
6744         * modules/linked-list, modules/linked-list-tests: New files.
6745         * modules/avltree-list, modules/avltree-list-tests: New files.
6746         * modules/rbtree-list, modules/rbtree-list-tests: New files.
6747         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
6748         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
6749         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
6750         * modules/oset: New file.
6751         * modules/array-oset: New file.
6752         * modules/avltree-oset, modules/avltree-oset-tests: New files.
6753         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
6754         * tests/test-carray_list.c: New file.
6755         * tests/test-linked_list.c: New file.
6756         * tests/test-avltree_list.c: New file.
6757         * tests/test-rbtree_list.c: New file.
6758         * tests/test-linkedhash_list.c: New file.
6759         * tests/test-avltreehash_list.c: New file.
6760         * tests/test-rbtreehash_list.c: New file.
6761         * tests/test-avltree_oset.c: New file.
6762         * tests/test-rbtree_oset.c: New file.
6763         * MODULES.html.sh (Container data structures): New section.
6764
6765 2006-07-17  Bruno Haible  <bruno@clisp.org>
6766
6767         * m4/gl_list.m4: New file.
6768
6769 2006-07-17  Bruno Haible  <bruno@clisp.org>
6770
6771         * lib/gl_list.h: New file.
6772         * lib/gl_list.c: New file.
6773         * lib/gl_array_list.h: New file.
6774         * lib/gl_array_list.c: New file.
6775         * lib/gl_carray_list.h: New file.
6776         * lib/gl_carray_list.c: New file.
6777         * lib/gl_linked_list.h: New file.
6778         * lib/gl_linked_list.c: New file.
6779         * lib/gl_anylinked_list1.h: New file.
6780         * lib/gl_anylinked_list2.h: New file.
6781         * lib/gl_avltree_list.h: New file.
6782         * lib/gl_avltree_list.c: New file.
6783         * lib/gl_anyavltree_list1.h: New file.
6784         * lib/gl_anyavltree_list2.h: New file.
6785         * lib/gl_rbtree_list.h: New file.
6786         * lib/gl_rbtree_list.c: New file.
6787         * lib/gl_anyrbtree_list1.h: New file.
6788         * lib/gl_anyrbtree_list2.h: New file.
6789         * lib/gl_anytree_list1.h: New file.
6790         * lib/gl_anytree_list2.h: New file.
6791         * lib/gl_linkedhash_list.h: New file.
6792         * lib/gl_linkedhash_list.c: New file.
6793         * lib/gl_anyhash_list1.h: New file.
6794         * lib/gl_anyhash_list2.h: New file.
6795         * lib/gl_avltreehash_list.h: New file.
6796         * lib/gl_avltreehash_list.c: New file.
6797         * lib/gl_rbtreehash_list.h: New file.
6798         * lib/gl_rbtreehash_list.c: New file.
6799         * lib/gl_anytreehash_list1.h: New file.
6800         * lib/gl_anytreehash_list2.h: New file.
6801
6802         * lib/gl_oset.h: New file.
6803         * lib/gl_oset.c: New file.
6804         * lib/gl_array_oset.h: New file.
6805         * lib/gl_array_oset.c: New file.
6806         * lib/gl_avltree_oset.h: New file.
6807         * lib/gl_avltree_oset.c: New file.
6808         * lib/gl_rbtree_oset.h: New file.
6809         * lib/gl_rbtree_oset.c: New file.
6810         * lib/gl_anytree_oset.h: New file.
6811
6812 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
6813
6814         * m4/mkancesdirs.m4: New file.
6815         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
6816         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
6817         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
6818         it.
6819
6820 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
6821
6822         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
6823         * lib/mkancesdirs.h: New files.
6824         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
6825         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
6826         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
6827         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
6828         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
6829         callers changed.  Revamp internals significantly, by not
6830         attempting to create directories that are temporarily more
6831         permissive than the final results.  Do not attempt to use
6832         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
6833         This removes some race conditions, fixes some bugs, and simplifies
6834         things.  Use new dirchownmod function to do owner and mode changes.
6835         * lib/mkdir-p.h: Likewise.
6836         * lib/modechange.c (octal_to_mode): New function.
6837         (struct mode_change): New member mentioned.
6838         (make_node_op_equals): New arg mentioned.  All callers changed.
6839         (mode_compile): Keep track of which mode bits the user has explicitly
6840         mentioned.
6841         (mode_adjust): New arg DIR, so that we implement the X op correctly.
6842         New arg PMODE_BITS, to keep track of which mode bits the user
6843         mentioned; it treats S_ISUID and S_ISGID speciall.
6844         All callers changed.
6845         * lib/modechange.h: Likewise.
6846
6847 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
6848
6849         * MODULES.html.sh: Add mkancestors.
6850         * modules/mkancesdirs: New module.
6851         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
6852         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
6853         The chdir-safer and afs files are now orphans; I'll remove them
6854         unless someone speaks up.
6855         Add lib/dirchownmod.c, lib/dirchownmod.h.
6856         (Depends-on): Remove alloca, chown, save-cwd, dirname.
6857         Add lchown, mkancesdirs.
6858         (Maintainer): Add self.
6859
6860 2006-07-15  Karl Berry  <karl@gnu.org>
6861
6862         * gnulib-tool: help message wording/arrangement.
6863
6864 2006-07-14  Simon Josefsson  <jas@extundo.com>
6865
6866         * doc/gnulib.texi (Libtool and Windows): New section.
6867
6868 2006-07-12  Simon Josefsson  <jas@extundo.com>
6869
6870         * modules/gendocs (License): Fix license, approved by Karl.
6871
6872 2006-07-12  Eric Blake  <ebb9@byu.net>
6873
6874         * MODULES.html.sh: Add gendocs.
6875
6876 2006-07-11  Eric Blake  <ebb9@byu.net>
6877
6878         * modules/fdl: New module, to install doc/fdl.texi.
6879         * MODULES.html.sh: Add new section for documentation modules.
6880         * gnulib-tool: Avoid space-tab.
6881         (--doc-base): New option, to manage files from doc.
6882
6883 2006-07-11  Eric Blake  <ebb9@byu.net>
6884
6885         * m4/absolute-header.m4: Fix comments to match recent change.
6886
6887 2006-07-11  Eric Blake  <ebb9@byu.net>
6888
6889         * gnulib-tool: List --doc-base before --tests-base.
6890
6891 2006-07-11  Derek R. Price  <derek@ximbiot.com>
6892
6893         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
6894
6895 2006-07-11  Bruno Haible  <bruno@clisp.org>
6896
6897         * README: Mention where to put documentation.
6898
6899 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6900
6901         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
6902
6903 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
6904
6905         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
6906         to stdint.m4.
6907
6908 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
6909
6910         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
6911         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
6912         "no/such/file/stdint.h" when there is no such file, so that
6913         the resulting C code can be parsed by dodgy compilers.
6914         Problems reported by Bob Proulx.
6915
6916 2006-07-10  Derek R. Price  <derek@ximbiot.com>
6917
6918         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
6919         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
6920         macros into the GNU _D_EXACT_NAMLEN.
6921         * lib/savedir.c:  Likewise.
6922         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
6923
6924 2006-07-10  Derek R. Price  <derek@ximbiot.com>
6925         and Paul Eggert  <eggert@cs.ucla.edu>
6926
6927         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
6928         * m4/savedir.m4:
6929         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
6930         macros into the GNU _D_EXACT_NAMLEN.
6931
6932 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
6933
6934         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
6935         around the absolute name, to work around a problem with the HP-UX
6936         11.23 native C compiler, reported by Bob Proulx.
6937
6938 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
6939
6940         * doc/maintain.texi, make-stds.texi: Sync from
6941         <http://savannah.gnu.org/projects/gnustandards>.
6942
6943 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
6944
6945         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
6946
6947 2006-07-09  Jim Meyering  <jim@meyering.net>
6948
6949         * m4/glob.m4: Remove a doubled word in a comment.
6950
6951 2006-07-09  Jim Meyering  <jim@meyering.net>
6952
6953         * lib/argp-pv.c: Remove a doubled word in a comment.
6954         * lib/check-version.c (check_version): Likewise.
6955         * lib/javacomp.c (compile_java_class): Likewise.
6956
6957 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
6958
6959         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
6960         for the benefit of people using Autoconf 2.60.  If you want to
6961         support older Autoconf versions you can copy m4/onceonly_2_57.m4
6962         (or m4/onceonly.m4, if pre-2.57) manually.
6963
6964 2006-07-08  Jim Meyering  <jim@meyering.net>
6965
6966         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
6967         comment.
6968         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
6969         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
6970         comment.
6971
6972 2006-07-08  Jim Meyering  <jim@meyering.net>
6973
6974         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
6975
6976 2006-07-07  Simon Josefsson  <jas@extundo.com>
6977
6978         * tests/test-crc.c: Change expected crc value, the test vector
6979         were probably computed using the old broken crc.c?
6980
6981 2006-07-06  Simon Josefsson  <jas@extundo.com>
6982
6983         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
6984         now the canonical place for the M4 file).
6985
6986         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
6987         from the sys_socket dependency now.
6988
6989         * modules/inet_pton (Files): Ditto.
6990
6991         * modules/inet_ntop (Files): Ditto.
6992
6993 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
6994
6995         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
6996         not gl_PREREQ_GETUSERSHELL.
6997
6998 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6999
7000         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
7001         with only one argument, for Autoconf 2.60.
7002         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
7003         expand to nothing, so add a shell command to avoid syntax error.
7004         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
7005
7006 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7007
7008         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
7009
7010 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
7011
7012         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
7013         no longer needed.  Check for isblank decl.
7014         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
7015         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
7016         of existence.
7017
7018 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
7019
7020         * lib/getloadavg.c: Use __VMS, not VMS.
7021         * lib/getopt.c: Likewise.
7022         * lib/getpagesize.h: Likewise.
7023         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
7024         and probably does not work.
7025
7026 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
7027
7028         * lib/.cppi-disable: Add wcwidth.
7029         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
7030         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
7031         (ISGRAPH): Remove.  All uses changed to isgraph.
7032         (FOLD) [!defined _LIBC]: Remove special case.
7033         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
7034         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
7035         HAVE_ISBLANK.
7036         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
7037         case.
7038
7039 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
7040
7041         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
7042         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
7043         brackets.  Other minor changes to suppress some compiler
7044         warnings.
7045
7046 2006-07-06  Derek R. Price  <derek@ximbiot.com>
7047         and Paul Eggert  <eggert@cs.ucla.edu>
7048
7049         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
7050         of invoking obsolescent AC_HEADER_DIRENT macro.
7051         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
7052         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
7053         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
7054         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
7055         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
7056         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
7057         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
7058         * m4/readdir.m4: Remove; no longer needed.
7059
7060 2006-07-06  Derek R. Price  <derek@ximbiot.com>
7061         and Paul Eggert  <eggert@cs.ucla.edu>
7062
7063         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
7064         Don't worry about this obsolete case any more.
7065         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
7066         directories.
7067         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
7068         worry about this obsolete case any more.
7069         * lib/fts.c: Likewise.
7070         * lib/getcwd.c: Likewise.
7071         * lib/glob.h: Likewise.
7072         * lib/savedir.c: Likewise.
7073
7074 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
7075
7076         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
7077         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
7078         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
7079         needed.
7080         All uses removed.
7081         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
7082         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
7083         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
7084         needed.
7085         * m4/getdate.m4 (gl_GETDATE): Likewise.
7086         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
7087         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
7088         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
7089         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
7090         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
7091         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
7092         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
7093         needed.
7094
7095 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
7096
7097         * lib/memcasecmp.c: Include <limits.h>.
7098         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
7099         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
7100         Don't assume isdigit succeeds only on '0' through '9'.
7101
7102 2006-07-05  Eric Blake  <ebb9@byu.net>
7103
7104         * modules/getaddrinfo (Depends-on): Add snprintf.
7105
7106 2006-07-05  Eric Blake  <ebb9@byu.net>
7107
7108         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
7109         to avoid 'header present but could not be compiled' on cygwin.
7110
7111 2006-07-05  Eric Blake  <ebb9@byu.net>
7112
7113         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
7114         missing from netdb.h.
7115         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
7116
7117 2006-07-05  Derek R. Price  <derek@ximbiot.com>
7118
7119         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
7120         no longer needed.
7121         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
7122         * m4/getdate.m4 (gl_GETDATE): Likewise.
7123         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
7124         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
7125         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
7126         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
7127         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
7128
7129 2006-07-05  Derek R. Price  <derek@ximbiot.com>
7130
7131         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
7132         All uses of is_space replaced by isspace.
7133         * lib/exit.h: Don't talk about STDC_HEADERS.
7134         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
7135         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
7136         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
7137         replaced by isprint etc.
7138         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
7139         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
7140         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
7141         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
7142         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
7143         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
7144
7145 2006-07-05  Bruno Haible  <bruno@clisp.org>
7146
7147         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
7148         the function exists, before testing against AIX.
7149         Reported by Martin Lambers <marlam@marlam.de>.
7150
7151 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
7152
7153         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
7154         From Mark D. Baushke.
7155
7156 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
7157
7158         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
7159         to the absolute name, not just one, to bypass Sun C 5.8's
7160         "warning: #include of /usr/include/... may be non-portable".
7161
7162 2006-07-04  Eric Blake  <ebb9@byu.net>
7163
7164         * modules/dirname-tests: New test module.
7165         * tests/test-dirname.c: New file, replacing dirname.c
7166         TEST_DIRNAME section that was recently deleted.
7167
7168 2006-07-04  Bruno Haible  <bruno@clisp.org>
7169
7170         Assume ANSI C header files and <ctype.h> functions.
7171         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
7172         (mbsnwidth): Use isprint, iscntrl instead.
7173
7174 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
7175
7176         Merge from coreutils.
7177         * MODULES.html.sh: Add xstrtold.
7178         * modules/xstrtold: New file.
7179         * modules/cycle-check (Files): Add lib/same-inode.h.
7180         * modules/dirname (Files): Add m4/double-slash-root.m4.
7181         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
7182         * modules/mkdir-p (Files): Add lib/same-inode.h.
7183         * modules/same (Files): Add lib/same-inode.h.
7184
7185 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
7186
7187         * m4/absolute-header.m4: Renamed from full-header-path.m4.
7188         This is to keep the terminology clean; POSIX talks about
7189         "absolute pathnames", not "full pathnames", but the GNU
7190         Coding Standards say to use "path" for something else;
7191         so use "absolute" to keep both sides happy.
7192         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
7193         Set gl_absolute_header, not gl_full_header_path.
7194         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
7195         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
7196         All uses changed.
7197
7198         Merge from coreutils.
7199
7200         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
7201
7202         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
7203         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
7204         want to require the building of c-strtod.o.
7205         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
7206         needs -lm directly.
7207         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
7208
7209         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
7210
7211         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
7212         --as-needed option if available.  Problem reported by Albert Chin in
7213         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
7214         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
7215         cc merely issues a bunch of annoying warnings for --as-needed
7216         (this problem was reported by Bob Proulx).  Also, try linking with
7217         -lm to detect a bug in binutils 2.16 (this problem was reported
7218         by Ralf Wildenhues).
7219
7220         2006-06-18  Jim Meyering  <jim@meyering.net>
7221
7222         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
7223         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
7224         macro.
7225         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
7226         also check for glibc-2.4's abort-inducing bug.
7227
7228         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
7229         Low-probability clean-up should be to use rmdir to get rid of
7230         the just-created directory, not unlink.
7231
7232         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
7233         configure fail, and request a bug report to inform us about it.
7234         Add a comment that, barring reports to the contrary, in 2007 we'll
7235         assume ftruncate is universally available.
7236
7237         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
7238
7239         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
7240
7241         2006-03-12  Jim Meyering  <jim@meyering.net>
7242
7243         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
7244         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
7245         * m4/same.m4 (gl_SAME): Likewise.
7246         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
7247
7248         2006-03-11  Eric Blake  <ebb9@byu.net>
7249
7250         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
7251         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
7252         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
7253         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
7254
7255 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
7256
7257         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
7258         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
7259         reported by Mark D. Baushke, one in
7260         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
7261
7262         Merge from coreutils.
7263
7264         * lib/.cppi-disable: Add stdint_.h.
7265         * lib/.cvsignore: Add stdint.h.
7266
7267         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
7268
7269         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
7270         both double and long double versions.
7271         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
7272         * lib/xstrtold.c: New file.
7273         * lib/xstrtod.h (xstrtold): New decl.
7274
7275         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
7276
7277         * lib/filemode.c (setst): Remove.
7278         (strmode): Rewrite to avoid setst.  This makes the code shorter,
7279         (arguably) clearer, and the generated code is a bit smaller on my
7280         Debian GNU/Linux stable x86 host.
7281
7282         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
7283
7284         * lib/filemode.c: Include "filemode.h" first, to test the interface.
7285         Assume that filemode.h includes sys/types.h and sys/stat.h.
7286         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
7287         (ftypelet): Reorder to put common cases first, for efficiency.
7288         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
7289         to do 'M'.
7290         (strmode): Renamed from mode_string, and now stores 12 bytes instead
7291         of 10, for compatibility with FreeBSD.  All callers changed.
7292         (filemodestring): Now stores 12 bytes instead of 10, and sets file
7293         types that can't be deduced solely from st_mode.  First arg is now a
7294         const pointer.
7295         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
7296         (strmode): Renamed from mode_string.
7297         (filemodestring): New decl.
7298         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
7299         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
7300         needed.
7301         (S_ISPORT, S_ISWHT): New macros, if not already defined.
7302
7303         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
7304
7305         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
7306         fsusage.h now does that.  Include fsusage.h first, to test interface.
7307         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
7308         at most one method (the old code could have generated decls that
7309         didn't conform to C89, not that this was ever exercised).
7310         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
7311
7312         2006-03-19  Jim Meyering  <jim@meyering.net>
7313
7314         Work even in a chroot where d_ino values for entries in "/"
7315         don't match the stat.st_ino values for the same names.
7316         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
7317         number, iterate through all entries again, using lstat instead.
7318         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
7319         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
7320
7321         * lib/getcwd.c (__getcwd): Clarify a comment.
7322         Use memcpy in place of a call to strcpy.
7323
7324         2006-03-12  Jim Meyering  <jim@meyering.net>
7325
7326         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
7327         matches that of the current directory (which we're about to chdir ".."
7328         out of), then save the dev-ino of the parent, instead.
7329
7330         * lib/same-inode.h (SAME_INODE): New file/macro.
7331         * lib/chdir-safer.c (SAME_INODE): Remove definition.
7332         Include "same-inode.h", instead.
7333         * lib/same.c: Likewise.
7334         * lib/cycle-check.h: Include "same-inode.h".
7335         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
7336         * lib/cycle-check.c (SAME_INODE): Remove definition.
7337         * lib/root-dev-ino.h: Include "same-inode.h".
7338
7339         2006-03-11  Eric Blake  <ebb9@byu.net>
7340
7341         * lib/same.c (same_name): s/base_name/last_component/
7342         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
7343         * lib/filenamecat.c (file_name_concat): Likewise.
7344
7345         2006-03-11  Eric Blake  <ebb9@byu.net>,
7346                     Paul Eggert  <eggert@cs.ucla.edu>
7347
7348         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
7349         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
7350         drive prefix.
7351         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
7352         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
7353         (last_component): New method.
7354         * lib/dirname.c (dir_len): Determine when drive letters need a
7355         subsequent slash.  Preserve // when it is special.
7356         (dir_name): Don't append dot when drive letter is absolute.
7357         [TEST_DIRNAME]: Move into a full-blown gnulib test.
7358         * lib/basename.c (base_name): New semantics - malloc the result.
7359         Preserve // when it is special.  Preserve relative files that look
7360         like drive letters.
7361         (base_len): Preserve // when it is special.
7362         (last_component): New method, similar to old base_name semantics.
7363         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
7364         base_name.  Strip redundant slashes from ///.
7365
7366 2006-07-03  Jim Meyering  <jim@meyering.net>
7367
7368         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
7369         macro is used before the first cycle_check call.
7370
7371 2006-07-03  Eric Blake  <ebb9@byu.net>
7372
7373         * modules/dirname (Depends-on): Add xstrndup.
7374
7375 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
7376
7377         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
7378         test cases, so that config.log is a bit easier to follow.
7379
7380 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
7381
7382         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
7383         both are 64 bits, since this seems to be the tradition, and this
7384         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
7385         we ever run into a host that prefers long long to long in this
7386         case, we'll need another configure-time test.  Problem reported by
7387         Jim Meyering.
7388
7389 2006-07-02  Eric Blake  <ebb9@byu.net>
7390
7391         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
7392
7393 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
7394
7395         * modules/inttypes (Depends-on): No longer depends on stdint.
7396         * modules/stdint (Description): Say more about assumptions.
7397         Say that the fast types might differ.  Say macros are used.
7398         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
7399         (Makefile.am): Revise list of substituted symbols to match
7400         new stdint.m4.
7401         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
7402         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
7403         * tests/test-stdint.c (verify_same_types)
7404         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
7405         the code conforms to C99/C89.
7406         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
7407         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
7408
7409 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
7410
7411         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
7412         but fix a bug, by requiring at least 64 bits.
7413         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
7414         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
7415         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
7416         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
7417
7418         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
7419         changes.  Make 2.59 a prerequisite.  Check and substitute for
7420         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
7421         inttypes.h.  Do not use special include files; just use the
7422         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
7423         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
7424         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
7425         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
7426         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
7427         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
7428         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
7429         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
7430         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
7431         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
7432         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
7433         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
7434         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
7435         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
7436         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
7437         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
7438         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
7439         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
7440         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
7441         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
7442         WINT_MAX.  Check for C99 conformance more strictly, by detecting
7443         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
7444         not check for things that C99 does not require, e.g., int8_t.  If
7445         a test isn't needed unless <stdint.h> isn't working, and is
7446         unlikely to be needed for any other reason, then don't do it
7447         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
7448         size_t, since we assume C89 freestanding at least.  Do not check
7449         for sig_atomic_t, wchar_t, or wint_t, since the code now does
7450         the right thing even if the types are not defined.  Instead use:
7451         (gl_STDINT_TYPE_PROPERTIES): New macro.
7452         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
7453         testing whether <sys/types.h> clashes, as Autoconf does this for
7454         us now.  All uses removed.
7455         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
7456         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
7457         (gl_CHECK_TYPE_SAME):
7458         Remove; no longer needed.
7459         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
7460         exists, since we'll return 0 anyway in that case.
7461         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
7462
7463 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
7464
7465         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
7466         possible collision with system files.
7467         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
7468         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
7469         WCHAR_MIN and WCHAR_MAX in this case.
7470         (<stddef.h>): Do not include; no longer needed.
7471         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
7472         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
7473         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
7474         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
7475         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
7476         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
7477         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
7478         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
7479         !defined(__c99))]: Include in this case too, since it's harmless
7480         now.
7481         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
7482         dangerous to do so.
7483         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
7484         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
7485         (_STDINT_MIN, _STDINT_MAX): New macros.
7486         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
7487         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
7488         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
7489         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
7490         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
7491         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
7492         macros, not typedefs; this simplifies things quite a bit.
7493         Use long int for all types narrower than int64_t.
7494         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
7495         Define in terms of long long int or int64_t or long int,
7496         not int64_t or int32_t.  This saves some compile-time testing.
7497         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
7498         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
7499         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
7500         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
7501         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
7502         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
7503         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
7504         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
7505         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
7506         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
7507         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
7508         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
7509         undef any previous version and define our own version, for
7510         simplicity and consistency with the new macros for types.
7511         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
7512         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
7513         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
7514         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
7515         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
7516         @WINT_T_SUFFIX@ to keep things simple here.
7517         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
7518         Simplify by assuming typical 8/16/32/64 host, since we're
7519         already doing that elsewhere anyway.
7520         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
7521         and assume long long int is 64 bits if available.  This
7522         speeds up 'configure'.
7523
7524 2006-07-01  Eric Blake  <ebb9@byu.net>
7525
7526         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
7527         Reported by Andreas Buening.
7528
7529 2006-07-01  Eric Blake  <ebb9@byu.net>
7530
7531         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
7532
7533 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
7534
7535         * lib/getaddrinfo.c: fixed typo
7536
7537 2006-06-29  Jim Meyering  <jim@meyering.net>
7538
7539         * modules/strftime (Maintainer): Add my name, since with the
7540         FPRINTFTIME changes strftime.c has forked from glibc.
7541
7542 2006-06-29  Eric Blake  <ebb9@byu.net>
7543
7544         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
7545
7546 2006-06-29  Eric Blake  <ebb9@byu.net>
7547
7548         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
7549
7550 2006-06-29  Eric Blake  <ebb9@byu.net>
7551
7552         * lib/stat_.h: New file.
7553
7554 2006-06-29  Eric Blake  <ebb9@byu.net>
7555
7556         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
7557         unused static function.
7558
7559 2006-06-29  Eric Blake  <ebb9@byu.net>
7560
7561         * doc/functions.texi (Function Portability): Document missing lstat
7562         on mingw.
7563
7564 2006-06-29  Eric Blake  <ebb9@byu.net>
7565
7566         * MODULES.html.sh: Add sys_stat.
7567         * modules/sys_stat: New module.
7568         * modules/mkstemp (Depends-on): Add sys_stat.
7569
7570 2006-06-29  Derek R. Price  <derek@ximbiot.com>
7571
7572         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
7573
7574 2006-06-29  Derek R. Price  <derek@ximbiot.com>
7575
7576         * m4/c-bs-a.m4: Removed.
7577
7578 2006-06-29  Derek R. Price  <derek@ximbiot.com>
7579
7580         * lib/strftime.c: Assume strftime() exists.
7581
7582 2006-06-29  Derek Price  <derek@ximbiot.com>
7583
7584         * modules/c-bs-a: Removed - \a is C89.
7585         * MODULES.html.sh: Remove c-bs-a.
7586
7587 2006-06-29  Bruno Haible  <bruno@clisp.org>
7588
7589         * modules/wcwidth (License): Change to LGPL.
7590
7591 2006-06-28  Simon Josefsson  <jas@extundo.com>
7592
7593         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
7594         on _WIN32.
7595
7596         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
7597         getnameinfo.
7598
7599 2006-06-28  Simon Josefsson  <jas@extundo.com>
7600
7601         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
7602
7603 2006-06-28  Simon Josefsson  <jas@extundo.com>
7604
7605         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
7606         functions there.  It will succeed on Windows XP, but on Windows
7607         2000 and (presumably) earlier, it will fail, and use the internal
7608         re-implementation.
7609         (use_win32_p): New function.
7610         (getaddrinfo): Use strtoul on servname, to support numeric ports.
7611         Support AI_NUMERICSERV to disable getservbyname.
7612         (getnameinfo): New function, only supports
7613         NI_NUMERICHOST|NI_NUMERICSERV for now.
7614
7615         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
7616         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
7617         getnameinfo.
7618
7619 2006-06-28  Eric Blake  <ebb9@byu.net>
7620
7621         * modules/wcwidth: New file.
7622         * modules/mbchar (Depends-on): Add wcwidth.
7623         * modules/mbswidth (Depends-on): Add wcwidth.
7624         * MODULES.html.sh: Add wcwidth.
7625
7626 2006-06-28  Eric Blake  <ebb9@byu.net>
7627
7628         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
7629         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
7630
7631 2006-06-28  Eric Blake  <ebb9@byu.net>
7632
7633         * lib/xvasprintf.h: Fix comments.
7634
7635 2006-06-28  Eric Blake  <ebb9@byu.net>
7636
7637         * lib/mbchar.h (wcwidth): Include wcwidth.h.
7638         * lib/mbswidth.c (wcwidth): Move from here...
7639         * lib/wcwidth.h: ...to this new file.
7640
7641 2006-06-28  Derek R. Price  <derek@ximbiot.com>
7642
7643         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
7644
7645         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
7646         it's obsolete.
7647         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
7648
7649 2006-06-28  Derek R. Price  <derek@ximbiot.com>
7650
7651         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
7652         Autoconf 2.60 says this stuff was obsolete.
7653
7654 2006-06-28  Bruno Haible  <bruno@clisp.org>
7655
7656         * modules/wcwidth (Files): Add m4/wchar_t.m4.
7657
7658 2006-06-28  Bruno Haible  <bruno@clisp.org>
7659
7660         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
7661         gt_TYPE_WCHAR_T.
7662
7663 2006-06-28  Bruno Haible  <bruno@clisp.org>
7664
7665         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
7666         declaration for wcwidth.
7667         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
7668
7669 2006-06-28  Bruno Haible  <bruno@clisp.org>
7670
7671         * lib/mkdtemp.c [MINGW]: Include <io.h>.
7672         (mkdir): Define using _mkdir.
7673
7674 2006-06-28  Bruno Haible  <bruno@clisp.org>
7675
7676         * lib/getaddrinfo.h: Fix POSIX URL.
7677         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
7678         _WIN32.
7679         (use_win32_p): Make static.
7680         (getaddrinfo): Reject service name if it is empty or does not consist
7681         solely of decimal digits, or if its value is > 65535.
7682         (getnameinfo): Remove useless casts.
7683
7684 2006-06-27  Simon Josefsson  <jas@extundo.com>
7685
7686         * modules/sys_select: New file, suggested by Bruno Haible, Paul
7687         Eggert and Martin Lambers.
7688
7689 2006-06-27  Simon Josefsson  <jas@extundo.com>
7690
7691         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
7692         Eggert and Martin Lambers.
7693
7694 2006-06-27  Bruno Haible  <bruno@clisp.org>
7695
7696         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
7697         result to 0, not to empty.
7698         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
7699
7700 2006-06-27  Bruno Haible  <bruno@clisp.org>
7701
7702         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
7703
7704 2006-06-26  Simon Josefsson  <jas@extundo.com>
7705
7706         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
7707         present.
7708
7709 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
7710
7711         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
7712         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
7713         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
7714
7715 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
7716
7717         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
7718
7719 2006-06-26  Bruno Haible  <bruno@clisp.org>
7720
7721         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
7722
7723 2006-06-26  Bruno Haible  <bruno@clisp.org>
7724
7725         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
7726
7727 2006-06-26  Bruno Haible  <bruno@clisp.org>
7728
7729         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
7730         SGI C compiler in pre-C99 mode.
7731         Suggested by Mark D. Baushke and Larry Jones.
7732
7733 2006-06-26  Bruno Haible  <bruno@clisp.org>
7734
7735         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
7736         WCHAR_MAX.
7737         Reported by Mark D. Baushke and Larry Jones.
7738
7739 2006-06-26  Bruno Haible  <bruno@clisp.org>
7740
7741         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
7742         in pre-C99 mode.
7743         Suggested by Mark D. Baushke and Larry Jones.
7744
7745 2006-06-23  Simon Josefsson  <jas@extundo.com>
7746             Bruno Haible  <bruno@clisp.org>
7747
7748         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
7749         Emit mostlyclean-local rule.
7750         (func_emit_tests_Makefile_am): Likewise.
7751         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
7752
7753 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
7754
7755         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
7756
7757 2006-06-23  Bruno Haible  <bruno@clisp.org>
7758
7759         * tests/test-stdint.c: Update to match ISO C 99 Technical
7760         Corrigendum 1.
7761
7762 2006-06-23  Bruno Haible  <bruno@clisp.org>
7763
7764         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
7765
7766 2006-06-23  Bruno Haible  <bruno@clisp.org>
7767
7768         * lib/stdint_.h: Treat IRIX like OpenBSD.
7769
7770 2006-06-23  Bruno Haible  <bruno@clisp.org>
7771
7772         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
7773         ISO C 99 Technical Corrigendum 1.
7774
7775 2006-06-22  Simon Josefsson  <jas@extundo.com>
7776
7777         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
7778         MinGW.
7779
7780 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
7781
7782         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
7783         needed.  Some compiler complained about some of them.  Problem reported
7784         by Larry Jones in
7785         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
7786
7787 2006-06-21  Simon Josefsson  <jas@extundo.com>
7788
7789         * tests/test-getaddrinfo.c: New file.
7790
7791         * modules/getaddrinfo-tests: New file.
7792
7793         * MODULES.html.sh: Add inet_pton.
7794
7795         * modules/inet_pton: New file.
7796
7797 2006-06-21  Simon Josefsson  <jas@extundo.com>
7798
7799         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
7800         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
7801         of using the (limited) gnulib implementation on Windows XP.
7802
7803         * m4/inet_pton.m4: New file.
7804
7805 2006-06-21  Simon Josefsson  <jas@extundo.com>
7806
7807         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
7808         variable.
7809
7810         * lib/socket_.h: Don't define WINVER.
7811
7812         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
7813         slightly modified to work in gnulib.
7814
7815 2006-06-21  Simon Josefsson  <jas@extundo.com>
7816
7817         * doc/gnulib.texi (Windows sockets): Add.
7818
7819 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
7820
7821         * lib/read-file.c (fread_file): Start with buffer allocation of
7822         0 bytes rather than 1 byte; this simplifies the code.
7823         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
7824         code to free buffer and save/restore errno.
7825         (internal_read_file): Remove unused local.
7826
7827 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
7828
7829         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
7830         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
7831         Problem reported by Denis Excoffier in
7832         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
7833
7834 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
7835
7836         * modules/sys_socket, modules/socklen: Include sys/types since
7837         FreeBSD 4.x's sys/socket.h needs it.
7838
7839 2006-06-19  Simon Josefsson  <jas@extundo.com>
7840
7841         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
7842
7843 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
7844
7845         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
7846
7847 2006-06-19  Bruno Haible  <bruno@clisp.org>
7848
7849         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
7850         and FULL_PATH_INTTYPES_H in angle brackets.
7851         Reported by Mark D. Baushke <mdb@gnu.org>.
7852
7853 2006-06-17  Eric Blake  <ebb9@byu.net>
7854
7855         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
7856         errno.
7857
7858 2006-06-17  Bruno Haible  <bruno@clisp.org>
7859
7860         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
7861         <sys/inttypes.h>.
7862
7863 2006-06-17  Bruno Haible  <bruno@clisp.org>
7864
7865         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
7866         whether errno is declared. Assume <errno.h> declares errno.
7867
7868 2006-06-17  Bruno Haible  <bruno@clisp.org>
7869
7870         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
7871
7872 2006-06-17  Bruno Haible  <bruno@clisp.org>
7873
7874         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
7875         problem on Solaris 2.5.1.
7876
7877 2006-06-16  Eric Blake  <ebb9@byu.net>
7878
7879         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
7880         * lib/unicodeio.c [!defined errno]: Likewise.
7881         * lib/strtol.c [!defined errno]: Likewise.
7882         * lib/strtod.c [!defined errno]: Likewise.
7883
7884 2006-06-15  Eric Blake  <ebb9@byu.net>
7885
7886         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
7887
7888 2006-06-15  Eric Blake  <ebb9@byu.net>
7889
7890         * config/srclist.txt (ssize_t.m4): Lose sync.
7891
7892 2006-06-15  Bruno Haible  <bruno@clisp.org>
7893
7894         * modules/stdint (Files): Include m4/full-header-path.m4,
7895         m4/size_max.m4, m4/wchar_t.m4.
7896         (Makefile.am): Many more substitutions.
7897         * modules/stdint-tests: New file.
7898         * tests/test-stdint.c: New file.
7899
7900 2006-06-15  Bruno Haible  <bruno@clisp.org>
7901
7902         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
7903         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
7904         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
7905         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
7906         gl_CHECK_TYPE_SAME): New macros.
7907
7908 2006-06-15  Bruno Haible  <bruno@clisp.org>
7909
7910         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
7911
7912 2006-06-15  Bruno Haible  <bruno@clisp.org>
7913
7914         * lib/stdint_.h: Rewritten to be fully auto-configured.
7915         Fixes bug on HP-UX/IA64.
7916
7917 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
7918
7919         * lib/getdate.y (__attribute__): Don't define if already defined.
7920         Problem reported by Larry Jones.
7921         * lib/utimens.c (__attribute__): Likewise.
7922
7923 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
7924
7925         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
7926         reported by Andreas Schwab.
7927
7928 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7929             Bruno Haible  <bruno@clisp.org>
7930
7931         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
7932         check for the declaration of strnlen and a run test that exposes the
7933         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
7934         rpl_strndup.
7935
7936 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7937             Bruno Haible  <bruno@clisp.org>
7938
7939         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
7940
7941 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7942
7943         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
7944         compile test, for Tru64 4.0D.
7945
7946 2006-05-28  Karl Berry  <karl@gnu.org>
7947
7948         * config/srclist.txt (printf-args.c): lose sync.
7949
7950 2006-05-26  Martin Lambers  <marlam@marlam.de>
7951
7952         * lib/getpass.c: Updates the test for the native W32 API, and adds
7953         missing includes, thus fixing compilation warnings.
7954
7955 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
7956
7957         * lib/exclude.c (exclude_fnmatch): New function.
7958         (excluded_file_name): Call exclude_fnmatch.
7959         * lib/exclude.h (excluded_file_name): New prototype
7960
7961 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
7962
7963         * lib/tempname.c (small_open, large_open): New macros.
7964         (__open, __open64) [!_LIBC]: Remove.
7965         (__gen_tempname): Use small_open and large_open instead of __open
7966         and __open64.  This fixes a portability bug on HP-UX 11.11i
7967         reported by Simon Wing-Tang in
7968         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
7969
7970 2006-05-24  Bruno Haible  <bruno@clisp.org>
7971
7972         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
7973         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
7974         Reported by Thorsten Maerz <torte@netztorte.de> via
7975         Aaron Stone <aaron@serendipity.cx>.
7976
7977 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
7978
7979         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
7980         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
7981         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
7982         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
7983         not really conditional on the cache.
7984         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
7985
7986 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
7987
7988         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
7989         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
7990         (my_usleep): Don't mishandle maximum value.
7991
7992 2006-05-19  Jim Meyering  <jim@meyering.net>
7993
7994         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
7995
7996 2006-05-17  Bruno Haible  <bruno@clisp.org>
7997
7998         Cygwin portability.
7999         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
8000
8001 2006-05-17  Bruno Haible  <bruno@clisp.org>
8002
8003         * lib/stdint_.h: Fix recognition of Cygwin.
8004
8005 2006-05-15  Bruno Haible  <bruno@clisp.org>
8006
8007         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
8008         on libtool patch by Ralf Wildenhues.
8009
8010 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
8011
8012         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
8013         test for C99 conformance; (bool) 0.5 is an integer constant
8014         expression, but (bool) -0.5 is not.  Problem reported by Fedor
8015         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
8016
8017 2006-05-11  Simon Josefsson  <jas@extundo.com>
8018
8019         * m4/xvasprintf.m4: Fix obvious typo.
8020
8021 2006-05-11  Jim Meyering  <jim@meyering.net>
8022
8023         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
8024         James Lemley.
8025
8026 2006-05-10  Simon Josefsson  <jas@extundo.com>
8027
8028         * lib/md4.c: Typo fix, update copyright years.
8029         (K1, K2): Don't use L because it turn computations into 64-bit on
8030         64-bit platforms.
8031
8032 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
8033
8034         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
8035         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
8036         unwanted sign propagation, e.g., on hosts with 64-bit int.
8037         There still are some problems with reeelly weird theoretical hosts
8038         (e.g., 33-bit int) but it's not worth worrying about now.
8039         * lib/sha1.c (rol): Likewise.
8040         (K1, K2, K3, K4): Remove unnecessary L suffix.
8041
8042 2006-05-10  Bruno Haible  <bruno@clisp.org>
8043
8044         * lib/des.c: Cast to avoid warnings.
8045
8046 2006-05-09  Bruno Haible  <bruno@clisp.org>
8047
8048         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
8049         (Depends-on): Depend also on xsize, stdarg.
8050         (configure.ac): Add gl_XVASPRINTF.
8051
8052 2006-05-09  Bruno Haible  <bruno@clisp.org>
8053
8054         * m4/xvasprintf.m4: New file.
8055
8056 2006-05-09  Bruno Haible  <bruno@clisp.org>
8057
8058         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
8059         (EOVERFLOW): Define fallback value.
8060         (xstrcat): New function.
8061         (xvasprintf): Recognize the special case of a string concatenation.
8062
8063 2006-05-08  Eric Blake  <ebb9@byu.net>
8064
8065         * gnulib-tool (func_version): Base copyright year on CVS date.
8066         (func_emit_copyright_notice): New function.
8067         (func_emit_lib_Makefile_am): Use it.
8068         (func_emit_tests_Makefile_am): Likewise.
8069         (func_import): Likewise.
8070
8071 2006-05-08  Bruno Haible  <bruno@clisp.org>
8072
8073         * modules/stdarg: New file.
8074         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
8075
8076 2006-05-08  Bruno Haible  <bruno@clisp.org>
8077
8078         * m4/stdarg.m4: New file, from GNU gettext.
8079
8080 2006-05-08  Bruno Haible  <bruno@clisp.org>
8081
8082         * config/srclist.txt (build-aux/config.rpath): different from latest
8083         release.
8084
8085 2006-05-08  Bruno Haible  <bruno@clisp.org>
8086
8087         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
8088
8089 2006-05-05  Jim Meyering  <jim@meyering.net>
8090
8091         * m4/warning.m4: New file, derived from bison's file by the same name.
8092
8093 2006-05-03  Bruno Haible  <bruno@clisp.org>
8094
8095         * lib/stdint_.h: Shorter URL.
8096         * lib/inttypes.h: Likewise.
8097
8098 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
8099
8100         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
8101
8102 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
8103
8104         * lib/verify.h: Document the internals better.  Most of this change
8105         was written by Bruno Haible.
8106
8107 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
8108
8109         * doc/verify.texi: New file, partly based on a proposal by
8110         Bruno Haible.
8111
8112 2006-05-02  Bruno Haible  <bruno@clisp.org>
8113
8114         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
8115         test from here...
8116         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
8117
8118 2006-04-29  Bruno Haible  <bruno@clisp.org>
8119
8120         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
8121         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
8122
8123 2006-04-29  Bruno Haible  <bruno@clisp.org>
8124
8125         * gnulib-tool: Make --update option actually work.
8126
8127 2006-04-29  Bruno Haible  <bruno@clisp.org>
8128
8129         * doc/gcd.texi: New file.
8130         * doc/gnulib.texi: Include it.
8131
8132 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
8133
8134         * lib/getdate.y (get_date): When adding relative date, start with the
8135         initial time, not with the result of the first mktime call.
8136
8137 2006-04-25  Bruno Haible  <bruno@clisp.org>
8138
8139         * gnulib-tool (func_import): Output the include directives in three
8140         blocks, sorted separately.
8141         Reported by Ben Pfaff <blp@cs.stanford.edu>.
8142
8143 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
8144
8145         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
8146         to define main with arguments, for C++.  Reported by Eric Blake.
8147         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
8148         Prefer 'int main ()' to 'int main (void)', for C++.
8149         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
8150         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
8151         for 'main', for C99 and C++.
8152
8153 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
8154
8155         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
8156         Don't assume that exit status -1 is valid.
8157         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
8158         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
8159         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
8160         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
8161         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
8162         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
8163         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
8164         functions can be used without declaring them, or that you can
8165         exit with status -1.
8166         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
8167
8168 2006-04-24  Karl Berry  <karl@gnu.org>
8169
8170         * config/srclist.txt (longdouble.m4): sync lost.
8171
8172 2006-04-24  Eric Blake  <ebb9@byu.net>
8173
8174         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
8175
8176 2006-04-24  Bruno Haible  <bruno@clisp.org>
8177
8178         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
8179         poll() implementation in AIX.
8180         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8181
8182 2006-04-24  Bruno Haible  <bruno@clisp.org>
8183
8184         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
8185         assigned exactly once.
8186
8187 2006-04-23  Claudio Fontana  <claudio@gnu.org>
8188             Bruno Haible  <bruno@clisp.org>
8189
8190         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
8191         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
8192         for AM_CPPFLAGS.
8193
8194 2006-04-23  Bruno Haible  <bruno@clisp.org>
8195
8196         * modules/copy-file: Depend on unistd.
8197         * modules/execute: Likewise.
8198         * modules/fatal-signal: Likewise.
8199         * modules/findprog: Likewise.
8200         * modules/mkdtemp : Likewise.
8201         * modules/pipe: Likewise.
8202         * modules/wait-process: Likewise.
8203
8204 2006-04-23  Bruno Haible  <bruno@clisp.org>
8205
8206         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
8207         condition was already detected.
8208         Reported by Ben Pfaff <blp@cs.stanford.edu>.
8209
8210 2006-04-23  Bruno Haible  <bruno@clisp.org>
8211
8212         * lib/copy-file.c: Include <unistd.h> unconditionally.
8213         * lib/execute.c: Likewise.
8214         * lib/fatal-signal.c: Likewise.
8215         * lib/findprog.c: Likewise.
8216         * lib/mkdtemp.c: Likewise.
8217         * lib/pipe.h: Likewise.
8218         * lib/pipe.c: Likewise.
8219         * lib/wait-process.h: Likewise.
8220
8221 2006-04-23  Bruno Haible  <bruno@clisp.org>
8222
8223         * gnulib-tool (func_usage): Fix --import description. Document
8224         --update.
8225         (func_import): Create temporary file in a temporary directory, if
8226         --dry-run is specified. Silence errors from 'grep' when there are no
8227         m4 files in $m4dir.
8228         (func_create_testdir): Silence errors from 'grep' when there are no
8229         m4 files in $m4dir.
8230         Reported by Karl Berry <karl@freefriends.org>.
8231
8232 2006-04-20  Bruno Haible  <bruno@clisp.org>
8233
8234         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
8235         one argument, so that the code will be portable to Autoconf 2.60.
8236         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
8237         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
8238         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
8239
8240 2006-04-19  Derek Price  <derek@ximbiot.com>
8241             Eric Blake  <ebb9@byu.net>
8242
8243         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
8244         rather than "/full/path.h".  Update comment to match.  Shorten &
8245         generalize m4_translit call via AS_TR_CPP.
8246
8247 2006-04-19  Derek Price  <derek@ximbiot.com>
8248             Eric Blake  <ebb9@byu.net>
8249
8250         * lib/inttypes.h: Correct grammar in comment.
8251
8252 2006-04-18  Derek Price  <derek@ximbiot.com>
8253             Paul Eggert  <eggert@cs.ucla.edu>
8254
8255         * modules/inttypes: New file.
8256         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
8257
8258 2006-04-18  Derek Price  <derek@ximbiot.com>
8259             Paul Eggert  <eggert@cs.ucla.edu>
8260
8261         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
8262         New files.
8263
8264 2006-04-18  Derek Price  <derek@ximbiot.com>
8265             Paul Eggert  <eggert@cs.ucla.edu>
8266
8267         * lib/inttypes.h: New file.
8268         * lib/strtoimax.c: Assume <inttypes.h>.
8269
8270 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
8271
8272         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
8273         isn't mounted.  Problem reported by Kir Kolyshkin.
8274
8275 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
8276
8277         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
8278         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
8279         Derek R. Price.
8280         * lib/regex.h (RE_DUP_MAX): Update comment to match current
8281         implementation.
8282
8283 2006-04-12  Eric Blake  <ebb9@byu.net>
8284
8285         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
8286         is now done automatically by the corresponding Autoconf macro.
8287
8288 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
8289
8290         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
8291         time_r.h.
8292
8293 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
8294
8295         Merge regex changes from libc, removing some of our
8296         POSIX-conformance changes that were rejected and redoing them in a
8297         less-intrusive way.
8298
8299         * lib/regcomp.c (re_compile_internal, init_dfa):
8300         Length arg is now size_t, not Idx.  All uses changed.
8301         (peek_token): Forward decl now says internal_function.
8302         (__re_error_msgid, __re_error_msgid_idx):
8303         Now static rather than extern with attribute_hidden.
8304         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
8305         For some reason libc prefers K&R style defns for external functions.
8306         (regerror) [!defined _LIBC]: Likewise.
8307         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
8308         (seek_collating_symbol_entry, lookup_collation_sequence_value):
8309         (build_range_exp, build_collating_symbol):
8310         Use K&R-style defn.
8311         (re_compile_fastmap): Use '\0' to memset, not 0.
8312         (utf8_sb_map): Make the calculations more obvious.
8313         (init_dfa, parse_bracket_exp, build_charclass_op):
8314         Call calloc and cast result, as glibc does.
8315         (init_word_char, fetch_token, peek_token, peek_token_bracket):
8316         (build_range_exp, build_collating_symbol):
8317         Now internal functions.
8318
8319         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
8320
8321         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
8322         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
8323         Don't depend on VMS; depend on __VMS instead, for POSIX
8324         namespace cleanness.
8325         (regoff_t): Define to ssize_t, not long int.
8326
8327         Remove the REG_ macros named below.  Instead, make the old names
8328         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
8329         __USE_GNU_REGEX.
8330         (REG_BACKSLASH_ESCAPE_IN_LISTS):
8331         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
8332         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
8333         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
8334         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
8335         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
8336         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
8337         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
8338         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
8339         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
8340         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
8341         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
8342         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
8343         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
8344         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
8345         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
8346         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
8347         (REG_NREGS):
8348         Remove.  All uses replaced by the old RE_* names.
8349         (RE_BACKSLASH_ESCAPE_IN_LISTS):
8350         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
8351         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
8352         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
8353         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
8354         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
8355         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
8356         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
8357         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
8358         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
8359         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
8360         Don't bother having these macros be independent of each others'
8361         values, since they no longer exist in the POSIX name space.
8362
8363         Rename the following member names back to their old names,
8364         unless !__USE_GNU_REGEX.  All uses changed back.
8365         (buffer): Renamed from re_buffer.
8366         (allocated): Renamed from re_allocated.
8367         (used): Renamed from re_used.
8368         (syntax): Renamed from re_syntax.
8369         (fastmap): Renamed from re_fastmap.
8370         (translate): Renamed from re_translate.
8371         (can_be_null): Renamed from re_can_be_null.
8372         (regs_allocated): Renamed from re_regs_allocated.
8373         (fastmap_accurate): Renamed from re_fastmap_accurate.
8374         (no_sub): Renamed from re_no_sub.
8375         (not_bol): Renamed from re_not_bol.
8376         (not_eol): Renamed from re_not_eol.
8377         (newline_anchor): Renamed from re_newline_anchor.
8378         (num_regs): Renamed from rm_num_regs.
8379         (start): Renamed from rm_start.
8380         (end): Renamed from rm_end.
8381
8382         (free_state): Move up a bit.
8383
8384         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
8385         #define to be empty.
8386         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
8387         when that is what is intended.
8388         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
8389         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
8390         (MAX): New macro.
8391         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
8392         All uses changed back to re_malloc, etc.  It's now the caller's
8393         responsibility to check for overflow; all callers changed.
8394         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
8395         (re_x2nrealloc): Remove.
8396         (free_state): Remove decl.
8397
8398         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
8399         (re_set_registers, re_exec):
8400         Use K&R-style defn.
8401
8402         2006-01-31  Roland McGrath  <roland@redhat.com>
8403
8404         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
8405         Reported by Mike Frysinger <vapier@gentoo.org>.
8406
8407         2006-01-15  Andreas Jaeger  <aj@suse.de>
8408
8409         [BZ #1950]
8410         * lib/regex_internal.c (re_string_reconstruct): Adjust for
8411         build_wcs_upper_buffer change.
8412         (build_wcs_upper_buffer): Change return type.
8413
8414         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
8415
8416         * lib/regex_internal.h: Include <stdint.h> if available.
8417
8418         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
8419
8420         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
8421
8422         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
8423
8424         * lib/regcomp.c: Adjust for changed secondary hash function.
8425
8426         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
8427
8428         * lib/regex.h: Pretty printing.
8429         Clean up namespace a bit.
8430
8431         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
8432
8433         * lib/regexec.c (update_cur_sifted_state, check_arrival,
8434         check_arrival_add_next_nodes): Avoid using uninitialized variable.
8435
8436         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
8437                     Ulrich Drepper  <drepper@redhat.com>
8438
8439         [BZ #1302]
8440         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
8441         changed.
8442         (bitset_word_t): Renamed from bitset_word.  All uses changed.
8443
8444         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
8445
8446         [BZ #281]
8447         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
8448         * lib/regcomp.c: Remove unnecessary uses of
8449         unsigned RE_TRANSLATE_TYPE.
8450         * lib/regex_internal.h: Likewise.
8451         * lib/regex_internal.c: Likewise.
8452         * lib/regexec.c: Likewise.
8453         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
8454
8455         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
8456
8457         * lib/regexec.c (find_recover_state): Remove unnecessary
8458         initialization.
8459         (transit_state_bkref): Make DFA a const pointer.
8460         (get_subexp): Likewise.
8461         (check_arrival): Likewise.
8462         (update_cur_sifted_state): Likewise.
8463         (re_search_internal): Likewise.
8464         (prune_impossible_nodes): Likewise.
8465         (acquire_init_state_context): Likewise.
8466         (proceed_next_node): Likewise.
8467         (set_regs): Likewise.
8468         (free_fail_stack_return): Likewise.
8469         (check_arrival_expand_ecl): Mark DFA parameter as const.
8470         (check_arrival_expand_ecl_sub): Likewise.
8471         (check_subexp_limits): Likewise.
8472         (sub_epsilon_src_nodes):  Likewise.
8473         (add_epsilon_src_nodes):  Likewise.
8474         (merge_state_array): Likewise.
8475         (update_regs): Likewise.
8476         (build_trtable): Likewise.
8477         (sift_states_backward): Mark MCTX parameter as const.
8478         (build_sifted_states): Likewise.
8479         (update_cur_sifted_state): Likewise.
8480         (sift_states_mkref): Likewise.
8481         (check_arrival_expand_ecl): Mark eclosure as const.
8482         (check_dst_limits_calc_pos_1): Likewise.
8483         * lib/regex_internal.h (re_match_context_t): Make dfa a const
8484         pointer.
8485
8486         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
8487
8488         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
8489         (transit_state_sb): Likewise.
8490         (transit_state_mb): Likewise.
8491         (sift_states_iter_mb): Likewise.
8492         (check_arrival_add_next_nodes): Likewise.
8493         (check_node_accept_bytes): Change first parameter to pointer-to-const.
8494         [_LIBC] (re_search_2_stub): Use mempcpy.
8495
8496         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
8497         mbrtowc for very simple UTF-8 case.
8498
8499         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
8500         a pointer-to-const.
8501         (re_acquire_state_context): Likewise.
8502         * lib/regex_internal.h: Adjust prototypes.
8503
8504         * lib/regex.c: Prevent using C++ compilers.
8505
8506         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
8507         (re_acquire_state_context): Likewise.
8508
8509 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
8510
8511         * modules/regex (Depends-on): Add ssize_t.
8512
8513 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
8514
8515         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
8516         translation table.
8517
8518 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
8519
8520         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
8521
8522 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
8523             Bruno Haible  <bruno@clisp.org>
8524
8525         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
8526         <sys/types.h> and <inttypes.h>.
8527
8528 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8529
8530         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
8531         `__error_t_defined', so argp.h will not typedef the former.
8532
8533 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
8534
8535         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
8536         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
8537         glibc names.  Even if glibc is changed to conform to POSIX, the
8538         traditional names will be available anyway, since regex depends on
8539         the extensions module.  Also, fix a longstanding typo in the
8540         implementation of Spencer ERE test #75 from grep 2.3.  Problems
8541         reported by Emanuele Giaquinta.  Also, change sense of cached
8542         variable, so that the message makes sense.
8543
8544 2006-03-24  Simon Josefsson  <jas@extundo.com>
8545
8546         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
8547         including some doc fixes.
8548         (base64_encode_alloc): Fix +1 bug on allocation failures.
8549
8550 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8551
8552         * lib/base64.c (base64_encode): Do not read past end of array with
8553         unsanitized input on systems with CHAR_BIT > 8.
8554
8555 2006-03-24  Eric Blake  <ebb9@byu.net>
8556
8557         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
8558
8559 2006-03-22  Karl Berry  <karl@gnu.org>
8560
8561         * config/srclist.txt (*setenv.[ch]): get from coreutils.
8562         * config/srclistvars.sh (COREUTILS): new var.
8563
8564 2006-03-17  Jim Meyering  <jim@meyering.net>
8565
8566         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
8567         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
8568
8569 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
8570
8571         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
8572         no longer needs it.  Instead, check that regoff_t is as least
8573         as wide as ptrdiff_t.
8574
8575         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
8576         so that our regex.h stays compatible with the installed regex.
8577         This is helpful for installers who configure --without-included-regex.
8578         Problem reported by Emanuele Giaquinta.
8579
8580 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
8581
8582         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
8583         Typedef to long int, not to off_, as POSIX will likely change
8584         in that direction.
8585
8586 2006-03-15  Eric Blake  <ebb9@byu.net>
8587
8588         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
8589
8590 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
8591
8592         * lib/argp-help.c (validate_uparams): Fix typo
8593         * lib/argp-parse.c (argp_default_options): Consistently begin help
8594         messages with a lowercase letter.
8595
8596 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
8597
8598         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
8599         overrun buffers and shouldn't be used (much as gets shouldn't be
8600         used).
8601         * lib/time_r.c (asctime_r, ctime_r): Likewise.
8602
8603 2006-03-08  Simon Josefsson  <jas@extundo.com>
8604
8605         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
8606         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8607
8608 2006-03-08  Simon Josefsson  <jas@extundo.com>
8609
8610         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
8611         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8612
8613 2006-03-08  Simon Josefsson  <jas@extundo.com>
8614
8615         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
8616         signal that configure disabled the device.
8617
8618 2006-03-08  Simon Josefsson  <jas@extundo.com>
8619
8620         * build-aux/maint.mk: Fix refresh-po, to handle no translated
8621         languages.
8622
8623 2006-03-07  Simon Josefsson  <jas@extundo.com>
8624
8625         * modules/getopt (Depends-on): Add unistd.
8626
8627         * modules/unistd: New file.
8628
8629 2006-03-07  Simon Josefsson  <jas@extundo.com>
8630
8631         * modules/gc-random: New file.
8632
8633 2006-03-07  Simon Josefsson  <jas@extundo.com>
8634
8635         * m4/unistd_h.m4: New file.
8636
8637 2006-03-07  Simon Josefsson  <jas@extundo.com>
8638
8639         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
8640         test to be side-effect free by storing the result in the cache
8641         variable gl_cv_lib_readline, and moving the assignment of
8642         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
8643         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8644
8645 2006-03-07  Simon Josefsson  <jas@extundo.com>
8646
8647         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
8648         error on missing devices (the functions will return an error).
8649
8650         * m4/gc.m4: Move random stuff to gc-random.m4
8651
8652 2006-03-07  Simon Josefsson  <jas@extundo.com>
8653
8654         * lib/unistd_.h: New file.
8655
8656 2006-03-07  Simon Josefsson  <jas@extundo.com>
8657
8658         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
8659
8660 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
8661
8662         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
8663         Problem reported by Juan Manuel Guerrero.
8664
8665 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
8666
8667         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
8668         the unistd module.
8669         * lib/getlogin_r.c: Likewise.
8670         * lib/getlogin_r.h: Likewise.
8671         * lib/glob.c: Likewise.
8672         * lib/pagealign_alloc.c: Likewise.
8673         * lib/unistd_.h: Remove; no longer needed.
8674
8675 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
8676
8677         * MODULES.html.sh (Support for systems lacking POSIX:2001):
8678         Add unistd.
8679         * modules/c-stack (Depends-on): Add unistd.
8680         * modules/getlogin_r: Likewise.
8681         * modules/glob: Likewise.
8682         * modules/pagealign_alloc: Likewise.
8683         * modules/unistd (Files): Remove lib/unistd_.h.
8684         (EXTRA_DIST): Remove.
8685         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
8686         need unistd_.h.
8687         (MOSTLYCLEANFILES): Remove unistd.h-t.
8688
8689 2006-03-03  Simon Josefsson  <jas@extundo.com>
8690
8691         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
8692
8693 2006-03-03  Simon Josefsson  <jas@extundo.com>
8694
8695         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
8696         libidn and bison.
8697
8698 2006-03-03  Simon Josefsson  <jas@extundo.com>
8699
8700         * build-aux/maint.mk: Add indent target.
8701
8702 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
8703
8704         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
8705         our replacement poll.h in any case, to avoid a differing
8706         declaration from a system header.  Seen on AIX.
8707
8708 2006-03-01  Simon Josefsson  <jas@extundo.com>
8709
8710         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
8711         <kasal@ucw.cz>.
8712
8713 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
8714
8715         * modules/gettime (Depends-on): Add extensions module.
8716         * modules/nanosleep (Depends-on): Likewise.
8717         * modules/settime (Depends-on): Likewise.
8718
8719 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
8720
8721         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
8722         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
8723         pedantically.
8724         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
8725         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
8726
8727         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
8728         not "==".  Reported by Ralf Wildenhues.
8729
8730 2006-03-01  Karl Berry  <karl@gnu.org>
8731
8732         * doc/Copyright/request-*: new files, synced from gnuorg.
8733
8734 2006-03-01  Karl Berry  <karl@gnu.org>
8735
8736         * config/srclist.txt (Copyright/*): new entries.
8737
8738 2006-02-28  Simon Josefsson  <jas@extundo.com>
8739
8740         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
8741
8742 2006-02-27  Simon Josefsson  <jas@extundo.com>
8743
8744         * lib/base64.h: Indent #define's.  From Jim Meyering
8745         <jim@meyering.net>.
8746
8747 2006-02-27  Jim Meyering  <jim@meyering.net>
8748
8749         Revert the change of 2006-02-24, so these files can continue
8750         to be sync'd from gettext.
8751         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
8752         of `config.h'.
8753
8754 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
8755
8756         * modules/intprops: New file.
8757         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
8758         Add intprops.
8759         * modules/getloadavg (Files): Remove lib/intprops.h.
8760         (Depends-on): Add intprops.
8761         * modules/human: Likewise.
8762         * modules/inttostr: Likewise.
8763         * modules/openat: Likewise.
8764         * modules/sig2str: Likewise.
8765         * modules/userspec: Likewise.
8766         * modules/utimecmp: Likewise.
8767         * modules/xnanosleep: Likewise.
8768         * modules/xstrtol: Likewise.
8769
8770 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
8771
8772         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
8773         * modules/lock-tests (TESTS): Use $(EXEEXT).
8774         * modules/tls-tests: Likewise.
8775         * modules/argp-tests: Likewise.
8776         (check_PROGRAMS): New var, replacing...
8777         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
8778
8779 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8780
8781         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
8782         `config.h'.
8783
8784 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
8785
8786         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
8787
8788 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8789
8790         Sync from coreutils.
8791         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
8792         gl_CHDIR_SAFER.
8793
8794 2006-02-22  Jim Meyering  <jim@meyering.net>
8795
8796         Sync from coreutils.
8797         * m4/chdir-safer.m4: New file.
8798
8799 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
8800
8801         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
8802         AT_FDCWD exceeds INT_MAX.
8803         * lib/openat.h (AT_FDCWD): Likewise.
8804
8805 2006-02-17  Eric Blake  <address@hidden>
8806
8807         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
8808
8809 2006-02-16  Simon Josefsson  <jas@extundo.com>
8810
8811         * modules/getaddrinfo (Depends-on): Add sys_socket.
8812
8813 2006-02-15  Simon Josefsson  <jas@extundo.com>
8814
8815         * build-aux/maint.mk: Add dsyntax-check rule.
8816
8817 2006-02-15  Eric Blake  <ebb9@byu.net>
8818
8819         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
8820         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
8821         'present but cannot compile' warnings on cygwin.
8822         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
8823         use ws2tcpip.h if sys/socket.h works.
8824         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
8825         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
8826
8827 2006-02-14  Simon Josefsson  <jas@extundo.com>
8828
8829         * modules/maintainer-makefile (Files): Rename.
8830
8831         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
8832         and (the local) Makefile.cfg to maint-cfg.mk.
8833
8834         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
8835         to the latter.
8836
8837         * modules/maintainer-makefile: New module.
8838
8839         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
8840         severaly stripped to make it possible to build it up from scratch
8841         with reliable tests.
8842
8843         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
8844         fixes to permit overriding the default actions when configure and
8845         makefile are not available.
8846
8847 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
8848
8849         Sync from coreutils.
8850         * modules/lstat (Depends-on): Don't depend on xalloc.
8851         (License): Change from GPL to LGPL, since this is now simply a
8852         replacement for a libc function.
8853
8854 2006-02-14  Jim Meyering  <jim@meyering.net>
8855
8856         Sync from coreutils.
8857
8858         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
8859         failure on deficient systems, and simplify gnulib lgpl dependencies.
8860         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
8861         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
8862
8863         * lib/xalloc-die.c: Remove unused definition of N_.
8864
8865 2006-02-14  Jim Meyering  <jim@meyering.net>
8866
8867         Sync from coreutils.
8868         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
8869         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
8870         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
8871         double-quote uses of that variable, to accommodate the rare case in
8872         which getmntent is available in none of the libraries checked.  This
8873         happens at least on FreeBSD 5.0.
8874
8875 2006-02-13  Simon Josefsson  <jas@extundo.com>
8876
8877         * gnulib-tool (Usage): Fix --import, from
8878         karl@freefriends.org (Karl Berry).
8879
8880 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
8881
8882         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
8883
8884 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
8885
8886         * lib/argp-namefrob.h: Restore changes accidentally lost during the
8887         "autoupdate" on 2005-12-12.
8888
8889 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
8890
8891         * modules/closeout (Depends-on): Remove atexit.
8892
8893 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
8894
8895         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
8896         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
8897
8898 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
8899
8900         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
8901         __EXTENSIONS__ if this causes compilation to fail.  Problem
8902         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
8903         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
8904
8905 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
8906
8907         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
8908         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
8909         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
8910         All uses changed.
8911
8912 2006-01-26  Simon Josefsson  <jas@extundo.com>
8913
8914         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
8915         prototype is visible on mingw32.
8916
8917         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
8918         for mingw32.
8919
8920         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
8921         mingw32).
8922
8923 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
8924
8925         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
8926         attempt to open for write; this always fails, at least on POSIX
8927         hosts.  This reinstates the 2006-01-09 change, which was
8928         inadvertently removed.
8929
8930 2006-01-26  Bruno Haible  <bruno@clisp.org>
8931
8932         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
8933         Reported by Paul Eggert.
8934
8935 2006-01-26  Bruno Haible  <bruno@clisp.org>
8936             Paul Eggert  <eggert@cs.ucla.edu>
8937
8938         * lib/stdbool_.h (_Bool)
8939         [(! (defined __cplusplus || defined __BEOS__)
8940           && !defined __GNUC__
8941           && !(defined __HP_cc || defined __xlc__
8942                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
8943                || defined __sgi))]:
8944         #define to signed char in these cases too; this simplifies
8945         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
8946         etc., separately) and makes it more conservative.
8947
8948 2006-01-25  Simon Josefsson  <jas@extundo.com>
8949
8950         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
8951         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
8952         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
8953
8954 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
8955
8956         * lib/argp-namefrob.h: Bugfix. Remove stray #
8957
8958 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
8959
8960         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
8961         so that we test the test.
8962         Check for yet another HP-UX cc bug involving *bool |= bool.
8963
8964 2006-01-25  Karl Berry  <karl@gnu.org>
8965
8966         * config/srclist.txt (vasnprintf.c): sync lost.
8967
8968 2006-01-25  Jim Meyering  <jim@meyering.net>
8969
8970         Sync from the stable (b5) branch of coreutils:
8971
8972         * lib/fts.c (fts_children): Don't let close() clobber errno from
8973         failed fchdir().
8974
8975         * lib/fts.c (fts_stat): When following a symlink-to-directory,
8976         don't necessarily interpret stat-fails+lstat-succeeds as indicating
8977         a dangling symlink.  That can also happen at least for ELOOP.
8978         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
8979         FYI, this bug predates the inclusion of fts.c in coreutils.
8980
8981         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
8982         in their own block, so pre-c99 compilers don't object.
8983
8984         Avoid the double-free (first in fts_read, second in fts_close) that
8985         would occur when an `active' directory is made inaccessible (e.g.,
8986         via chmod a-x) during a traversal.
8987         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
8988         before returning.  Reproduce this failure by
8989         mkdir -p a/b; cd a; chmod a-x . b
8990         Reported by Stavros Passas.
8991
8992 2006-01-25  Jim Meyering  <jim@meyering.net>
8993
8994         * lib/fileblocks.c: Remove more useless parentheses.
8995         * lib/readutmp.h: Likewise.
8996
8997 2006-01-25  Bruno Haible  <bruno@clisp.org>
8998
8999         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
9000         warnings.
9001         Reported by Paul Eggert.
9002
9003 2006-01-25  Bruno Haible  <bruno@clisp.org>
9004
9005         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
9006         rid of a trap command. For Solaris sh.
9007         Reported by Mark D. Baushke <mdb@gnu.org>.
9008
9009 2006-01-24  Simon Josefsson  <jas@extundo.com>
9010
9011         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
9012         Bruno.
9013
9014 2006-01-24  Karl Berry  <karl@gnu.org>
9015
9016         * config/srclist.txt (argp-namefrob.h): sync lost.
9017
9018 2006-01-24  Jim Meyering  <jim@meyering.net>
9019
9020         * modules/openat (Files): Add lib/intprops.h.
9021         From Mark D. Baushke.
9022
9023 2006-01-24  Jim Meyering  <jim@meyering.net>
9024
9025         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
9026         Reported by Mark D. Baushke.
9027
9028 2006-01-24  Jim Meyering  <jim@meyering.net>
9029
9030         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
9031
9032 2006-01-24  Bruno Haible  <bruno@clisp.org>
9033
9034         * modules/strnlen (Maintainer): Change from glibc to all.
9035
9036 2006-01-24  Bruno Haible  <bruno@clisp.org>
9037
9038         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
9039         Patch by Paul Eggert.
9040
9041 2006-01-24  Bruno Haible  <bruno@clisp.org>
9042
9043         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
9044         already has it.
9045         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
9046         2005-11-26.
9047
9048         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
9049         'signed char' to avoid problems with the built-in _Bool type.
9050         Reported by Paul Eggert on 2005-11-26.
9051
9052 2006-01-24  Bruno Haible  <bruno@clisp.org>
9053
9054         * gnulib-tool (func_import): Avoid constructing complicated sed
9055         expressions inside backquote.
9056         Report and solution by Mark D. Baushke <mdb@gnu.org>.
9057
9058 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
9059
9060         These changes imported from libc.
9061         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
9062         test and two separate function calls.
9063         * lib/strndup.c (__strndup): Add libc_hidden_def.
9064
9065 2006-01-23  Simon Josefsson  <jas@extundo.com>
9066
9067         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
9068         Remove the test_*_SOURCES variable: automake infers it by default.
9069         * modules/tls-tests: Likewise.
9070
9071 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
9072
9073         Work around porting bugs reported by Dieter in
9074         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
9075         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
9076         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
9077         Include "getopt.h" first, to check interface.
9078         (getenv): Declare only if defined HAVE_DECL_GETENV &&
9079         !HAVE_DECL_GETENV.
9080         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
9081         (__strndup): Revert to K&R-style function dfns, the glibc style.
9082         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
9083         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
9084         Include strnlen.h first, to get prototype properly.
9085         (strnlen): Renamed from __strnlen.
9086         Remove weak alias.
9087
9088 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
9089
9090         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
9091
9092 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
9093
9094         * config/srclist.txt: Adjust to reflect glibc reorganization.
9095         This affects only comments.
9096
9097 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
9098
9099          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
9100          Reported by Bruce Korb <bkorb@gnu.org>.
9101
9102 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
9103
9104         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
9105         to pacify gcc -Wswitch-default.
9106
9107 2006-01-22  Bruno Haible  <bruno@clisp.org>
9108
9109         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
9110         temporary buffer for sprintf, take into account the precision also
9111         for 'd', 'i', 'u', 'o', 'x', 'X'.
9112
9113 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
9114
9115         * modules/argp-tests: New module
9116         * tests/test-argp.c: New file
9117         * tests/test-argp-2.sh: New file
9118
9119 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
9120
9121         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
9122         (__argp_base_name): Removed
9123         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
9124         typo.
9125         (__argp_base_name): Provide macro definition or extern declaration
9126         depending on the configuration
9127
9128 2006-01-20  Simon Josefsson  <jas@extundo.com>
9129
9130         * modules/inet_ntop (Depends-on): Depend on sys_socket.
9131
9132 2006-01-20  Simon Josefsson  <jas@extundo.com>
9133
9134         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
9135
9136 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
9137
9138         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
9139         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
9140         Suggested by Bruno Haible.
9141
9142 2006-01-20  Karl Berry  <karl@gnu.org>
9143
9144         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
9145         until changes propagate, I guess.
9146
9147 2006-01-19  Simon Josefsson  <jas@extundo.com>
9148
9149         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
9150
9151 2006-01-19  Simon Josefsson  <jas@extundo.com>
9152
9153         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
9154
9155 2006-01-19  Simon Josefsson  <jas@extundo.com>
9156
9157         * gnulib-tool: Set check_PROGRAMS.
9158
9159         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
9160         modules/des-tests, modules/gc-arcfour-tests,
9161         modules/gc-arctwo-tests, modules/gc-des-tests,
9162         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
9163         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
9164         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
9165         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
9166         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
9167         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
9168         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
9169         test_*_SOURCES.
9170
9171 2006-01-18  Simon Josefsson  <jas@extundo.com>
9172
9173         * modules/socklen (Depends-on): Depend on sys_socket.
9174
9175 2006-01-18  Simon Josefsson  <jas@extundo.com>
9176
9177         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
9178         modules/des-tests, modules/gc-arcfour-tests,
9179         modules/gc-arctwo-tests, modules/gc-des-tests,
9180         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
9181         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
9182         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
9183         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
9184         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
9185         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
9186         $(EXEEXT) to automake TESTS variable, for mingw32.
9187
9188 2006-01-17  Simon Josefsson  <jas@extundo.com>
9189
9190         * modules/socklen (Include): Need sys/socket.h.
9191
9192 2006-01-17  Bruno Haible  <bruno@clisp.org>
9193
9194         * modules/ssize_t (Include): Add <sys/types.h>.
9195
9196 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
9197
9198         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
9199         it's not portable and it doesn't work with cross-compiles.
9200         Problem reported by Bruno Haible.  Fix missing-$ typo in
9201         'test "gl_cv_ignore_unused_libraries" ...' that prevented
9202         -zignore from being used with Sun's C compiler.
9203
9204 2006-01-12  Simon Josefsson  <jas@extundo.com>
9205
9206         * lib/base64.c: Fix warning, reported by Bruno Haible
9207         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
9208
9209 2006-01-12  Bruno Haible  <bruno@clisp.org>
9210
9211         * modules/ldd: New file.
9212         * build-aux/ldd.sh.in: New file.
9213         * MODULES.html.sh (Support for building libraries and executables): Add
9214         ldd.
9215
9216 2006-01-12  Bruno Haible  <bruno@clisp.org>
9217
9218         * m4/ldd.m4: New file.
9219
9220 2006-01-12  Bruno Haible  <bruno@clisp.org>
9221
9222         * gnulib-tool (func_import, func_create_testdir): Don't go into an
9223         endless loop while replacing $auxdir with build-aux.
9224
9225 2006-01-11  Simon Josefsson  <jas@extundo.com>
9226
9227         * lib/stdint_.h (SIZE_MAX): Add missing (.
9228
9229 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
9230
9231         Sync from coreutils.
9232         * lib/md5.c: Fix commentary typos.
9233         (alignof, UNALIGNED_P): No need for a GCC-specific version.
9234         * lib/md5.h (__attribute__): Remove; unused.
9235         * lib/sha1.c: Fix commentary to match md5 better.
9236         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
9237         so that we don't need to worry about alignment.  All uses changed.
9238         This merges the 2005-10-28 md5 change into sha1.
9239
9240 2006-01-11  Jim Meyering  <jim@meyering.net>
9241
9242         Sync from coreutils.
9243         * lib/md5.c (OP): Fix spacing.
9244
9245 2006-01-11  Bruno Haible  <bruno@clisp.org>
9246
9247         Ensure automatic ordering between gl_LOCK and gl_ARGP.
9248         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
9249         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
9250
9251 2006-01-11  Bruno Haible  <bruno@clisp.org>
9252
9253         Ensure automatic ordering between gl_LOCK and gl_ARGP.
9254         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
9255         the "early" section as well.
9256
9257 2006-01-11  Bruno Haible  <bruno@clisp.org>
9258
9259         Avoid "ar: no archive members specified" error on MacOS X.
9260         * gnulib-tool (func_modules_add_dummy): New function.
9261         (func_import, func_create_testdir): Invoke it.
9262
9263 2006-01-11  Bruno Haible  <bruno@clisp.org>
9264
9265         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
9266         with $auxdir in AC_CONFIG_FILES statements.
9267
9268 2006-01-11  Bruno Haible  <bruno@clisp.org>
9269
9270         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
9271         Initialize also noinst_HEADERS to empty.
9272
9273 2006-01-11  Bruno Haible  <bruno@clisp.org>
9274
9275         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
9276         variables.
9277         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
9278         autoreconf.
9279
9280 2006-01-11  Bruno Haible  <bruno@clisp.org>
9281
9282         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
9283         overridable by the user.
9284         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9285
9286 2006-01-10  Simon Josefsson  <jas@extundo.com>
9287
9288         * modules/sys_socket: New file.
9289
9290 2006-01-10  Simon Josefsson  <jas@extundo.com>
9291
9292         * m4/sys_socket_h.m4: New file.
9293
9294 2006-01-10  Simon Josefsson  <jas@extundo.com>
9295
9296         * lib/socket_.h: New file.
9297
9298 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
9299
9300         * modules/readutmp (Maintainer): Add myself.
9301
9302 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
9303
9304         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
9305         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
9306         People who are still concerned with buggy memcmp implementations
9307         can invoke gl_FUNC_MEMCMP themselves.
9308
9309 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
9310
9311         * lib/regex_internal.h (BITSET_WORD_BITS):
9312         Work around a bug in 64-bit PGC (before version 6.1-2), where the
9313         preprocessor mishandles large unsigned values as if they were signed.
9314         Problem reported by Claudio Fontana in
9315         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
9316
9317 2006-01-10  Jim Meyering  <jim@meyering.net>
9318
9319         Avoid the double-free (first in fts_read, second in fts_close) that
9320         would occur when an `active' directory is made inaccessible (e.g.,
9321         via chmod a-x) during a traversal.
9322         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
9323         before returning.  Reproduce this failure by
9324         mkdir -p a/b; cd a; chmod a-x . b
9325         Reported by Stavros Passas.
9326
9327         Sync from coreutils.
9328         * lib/sha1.c: Tweak grammar in a comment.
9329
9330 2006-01-10  Jim Meyering  <jim@meyering.net>
9331
9332         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
9333         Patch by Joerg Sonnenberger.
9334
9335 2006-01-10  Bruno Haible  <bruno@clisp.org>
9336
9337         * modules/readutmp: Depend on module free.
9338         * modules/strtok_r: Depend on module restrict.
9339
9340 2006-01-10  Bruno Haible  <bruno@clisp.org>
9341
9342         * modules/gettext (configure.ac): Add an invocation of
9343         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
9344
9345 2006-01-10  Bruno Haible  <bruno@clisp.org>
9346
9347         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
9348         Reported by Werner Lemberg <wl@gnu.org>.
9349
9350 2006-01-10  Bruno Haible  <bruno@clisp.org>
9351
9352         * lib/localcharset.c: Update from GNU gettext.
9353
9354 2006-01-10  Bruno Haible  <bruno@clisp.org>
9355
9356         * lib/argp.h (__const): Remove macro. Use const instead.
9357         * lib/argp-fmtstream.h (__const): Likewise.
9358         * lib/glob_.h (__const): Remove macro.
9359         * lib/glob-libc.h: Use const instead of __const.
9360
9361 2006-01-10  Bruno Haible  <bruno@clisp.org>
9362
9363         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
9364         variable.
9365         Needed to avoid an automake error regarding the 'gettext' module.
9366
9367 2006-01-09  Simon Josefsson  <jas@extundo.com>
9368
9369         * modules/inet_ntop (Depends-on): Add restrict.
9370
9371 2006-01-09  Simon Josefsson  <jas@extundo.com>
9372
9373         * modules/gc-rijndael-tests (License): Put under LGPL.
9374
9375         * modules/gc-des-tests (License): Likewise.
9376
9377         * modules/gc-arcfour-tests (License): Likewise.
9378
9379         * modules/gc-arctwo-tests (License): Likewise.
9380
9381         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
9382
9383         * modules/gc-hmac-sha1-tests (Files): Likewise.
9384
9385         * modules/gc-hmac-md5-tests (License): Likewise.
9386
9387         * modules/gc-sha1-tests (License): Likewise.
9388
9389         * modules/gc-md5-tests (License): Likewise.
9390
9391         * modules/gc-md4-tests (License): Likewise.
9392
9393         * modules/gc-md2-tests (License): Likewise.
9394
9395         * modules/gc-tests (License): Likewise.
9396
9397         * modules/des-tests (License): Likewise.
9398
9399         * modules/md4-tests (License): Likewise.
9400
9401         * modules/md2-tests (License): Likewise.
9402
9403 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
9404
9405         Sync from coreutils:
9406
9407         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
9408         * modules/lib-ignore: New file.
9409         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
9410         chdir-safer.m4, lchmod.m4.
9411         * modules/openat: Add mkdirat.c, openat-priv.h.
9412
9413 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
9414
9415         Sync from coreutils.
9416         * m4/lib-ignore.m4: New file.
9417         * m4/lchmod.m4: New file.
9418
9419 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
9420
9421         Sync from coreutils.
9422         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
9423         for write access: POSIX says that must fail.
9424         * lib/fts.c (diropen): Likewise.
9425         * lib/save-cwd.c (save_cwd): Likewise.
9426         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
9427         well, for minor improvements on hosts that lack O_DIRECTORY.
9428         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
9429         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
9430         Fall back on chown if open failed with EACCES.
9431
9432         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
9433         Report an error at compile-time if only a 1-second nominal clock
9434         resolution is found.
9435
9436         * lib/lchmod.h: New file.
9437         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
9438         (make_dir_parents): Use lchown rather than chown, and
9439         lchmod rather than chmod.
9440
9441         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
9442         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
9443         "proc" reported by n0dalus.
9444
9445         * lib/mountlist.c: Include <limits.h>.
9446         (dev_from_mount_options)
9447         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
9448         New function.  It no longer assumes "dev=" has the System V meaning
9449         on Linux (since it doesn't).  It also parses "dev=" more carefully.
9450         (read_file_system_list)
9451         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
9452         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
9453         dev= in that case.
9454
9455         * lib/posixtm.h (PDS_PRE_2000): New macro.
9456         * lib/posixtm.c (year): Arg is now syntax_bits rather than
9457         allow_century.  All usages changed.  Reject dates outside the range
9458         1969-1999 if PDS_PRE_2000 is used.
9459
9460 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
9461
9462         Sync from coreutils.
9463         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
9464         (Time of day items): Mention the possibility of leap seconds.
9465         Problem reported by Dr. David Alan Gilbert.
9466
9467 2006-01-09  Jim Meyering  <jim@meyering.net>
9468
9469         Sync from coreutils.
9470
9471         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
9472
9473         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
9474
9475         * lib/modechange.c (mode_compile): Reject an invalid mode string
9476         that starts with an octal digit.  From Andreas Gruenbacher.
9477
9478         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
9479         and dup to open_safer and dup_safer, respectively.
9480         (openat_permissive): Fix typo in comment.
9481
9482         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
9483         "gettext.h"; either no longer needed or are guaranteed by openat.h.
9484         (_): Remove; no longer needed.
9485         (openat): Renamed from rpl_openat; no need for rpl_openat
9486         since openat.h renames openat for us.
9487         Replace most of the body with a call to openat_permissive,
9488         to avoid duplicate code.
9489         Port to (probably hypothetical) environments were mode_t is
9490         wider than int.
9491         (openat_permissive): Require mode arg, so that we can check
9492         types better.  Put it just after flags.  Change cwd failure
9493         indicator from pointer-to-bool to pointer-to-errno-value.
9494         All callers changed.
9495         Invoke openat_save_fail and/or openat_restore_fail if
9496         cwd_errno is null, so that openat can call us.
9497         (openat_permissive, fdopendir, fstatat, unlinkat):
9498         Simplify errno handling to avoid some duplicate code,
9499         as it's OK to set errno on success.
9500         * lib/openat.h: Revamp code so that function macros depend on
9501         __OPENAT_PREFIX only, not also on AT_FDCWD.
9502         (openat_ro): Remove.  Caller changed to use openat_permissive.
9503         (openat_permissive): Now a macro, if not a function.
9504         (openat_restore_fail, openat_save_fail): Now always functions,
9505         since mkdirat needs them even if __OPENAT_PREFIX is defined.
9506
9507         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
9508         and openat.c.
9509         * lib/mkdirat.c: Include openat-priv.h.
9510         Remove definitions of macros defined therein.
9511         * lib/openat.c: Likewise.
9512
9513         * lib/mkdirat.c (mkdirat): New file and function.
9514         * lib/openat.h (mkdirat): Declare.
9515
9516         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
9517
9518         * lib/openat.h (openat_permissive): Declare.
9519         (openat_ro): Define.
9520
9521         * lib/openat.c (EXPECTED_ERRNO): New macro.
9522         (openat_permissive): New function -- used in remove.c rewrite.
9523         (all functions): Set errno just before returning, only if there
9524         was an actual failure.
9525         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
9526
9527         Emulate openat-family functions using Linux's procfs, if possible.
9528         Idea and some code based on Ulrich Drepper's glibc changes.
9529
9530         * lib/openat.c: (BUILD_PROC_NAME): New macro.
9531         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
9532         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
9533         before falling back on save_cwd and restore_cwd.
9534         (fdopendir, fstatat, unlinkat): Likewise.
9535
9536         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
9537         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
9538
9539         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
9540         as second argument to va_arg.  Otherwise, some versions of gcc
9541         warn that `if this code is reached, the program will abort'.
9542
9543 2006-01-09  Jim Meyering  <jim@meyering.net>
9544
9545         Sync from coreutils.
9546         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
9547         Require openat-priv.h.
9548
9549 2006-01-09  Bruno Haible  <bruno@clisp.org>
9550
9551         * modules/strnlen (Include): Use strnlen.h.
9552
9553 2006-01-09  Bruno Haible  <bruno@clisp.org>
9554
9555         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
9556
9557 2006-01-09  Bruno Haible  <bruno@clisp.org>
9558
9559         * lib/sysexit_.h (EX_OK): New macro.
9560         Suggested by Martin Lambers <marlam@marlam.de>.
9561
9562 2006-01-09  Bruno Haible  <bruno@clisp.org>
9563
9564         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
9565         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
9566
9567 2006-01-09  Bruno Haible  <bruno@clisp.org>
9568
9569         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
9570         numbers.
9571
9572 2006-01-09  Bruno Haible  <bruno@clisp.org>
9573
9574         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
9575         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
9576         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
9577         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
9578
9579 2006-01-09  Bruno Haible  <bruno@clisp.org>
9580
9581         * build-aux/javacomp.sh.in: New file, moved from lib/.
9582         * modules/javacomp-script (Files): Update.
9583         (configure.ac): Add AC_CONFIG_FILES invocation.
9584         (EXTRA_DIST): Remove variable.
9585
9586         * build-aux/javaexec.sh.in: New file, moved from lib/.
9587         * modules/javaexec (Files): Update.
9588         (configure.ac): Add AC_CONFIG_FILES invocation.
9589         (EXTRA_DIST): Remove javaexec.sh.in.
9590
9591         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
9592         * modules/csharpcomp-script (Files): Update.
9593         (configure.ac): Add AC_CONFIG_FILES invocation.
9594         (EXTRA_DIST): Remove variable.
9595
9596         * build-aux/csharpexec.sh.in: New file, moved from lib/.
9597         * modules/csharpexec (Files): Update.
9598         (configure.ac): Add AC_CONFIG_FILES invocation.
9599         (EXTRA_DIST): Remove csharpexec.sh.in.
9600
9601 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
9602
9603         Sync from coreutils.
9604
9605         Add POSIX ACL support
9606         * lib/acl.h (copy_acl, set_acl): Add declarations.
9607         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
9608         systems other than Linux.
9609         (chmod_or_fchmod): New function: use fchmod when possible,
9610         and chmod otherwise.
9611         (file_has_acl): Add a POSIX ACL implementation, with a
9612         Linux-specific subcase.
9613         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
9614         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
9615         acls are unsupported.
9616         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
9617         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
9618         are unsupported.
9619
9620 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
9621
9622         Sync from coreutils.
9623         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
9624
9625 2006-01-07  Bruno Haible  <bruno@clisp.org>
9626
9627         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
9628         gl_EARLY.
9629
9630 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
9631
9632         * lib/strftime.c (tzname): Don't declare if it is already #defined.
9633         Problem reported for Mingw by Mark Junker.
9634
9635 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
9636
9637         * README: Gnulib normally doesn't generate a tarball.
9638
9639 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
9640
9641         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
9642         long int, not int, for nanosecond counts, so that people who are
9643         used to POSIX struct timespec won't be surprised.  Reported by Jim
9644         Meyering.
9645
9646 2005-12-28  Bruno Haible  <bruno@clisp.org>
9647
9648         * build-aux/config.rpath: Update from GNU gettext.
9649
9650 2005-12-16  Jim Meyering  <jim@meyering.net>
9651
9652         * modules/fprintftime: New module.
9653         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
9654
9655 2005-12-16  Jim Meyering  <jim@meyering.net>
9656
9657         * m4/fprintftime.m4: New file.
9658
9659 2005-12-16  Jim Meyering  <jim@meyering.net>
9660
9661         * lib/fprintftime.c, lib/fprintftime.h: New files.
9662
9663 2005-12-15  Simon Josefsson  <jas@extundo.com>
9664
9665         * modules/socklen (configure.ac): Fix M4 macro name, to align with
9666         new m4/socklen.m4.
9667
9668 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
9669
9670         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
9671         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
9672
9673 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
9674
9675         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
9676         * lib/argp-help.c (fill_in_uparams): Check if the constructed
9677         struct uparams is valid. Fall back to the default values if it is
9678         not.
9679
9680 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
9681
9682         * modules/argp (Files): Add argp-pin.c
9683         (Depends-on): dirname
9684         (lib_SOURCES): Add argp-pin.c
9685
9686 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
9687
9688         * m4/argp.m4:  Check if program_invocation_name and
9689         program_invocation_short_name are declared and define appropriate
9690         macros if they are not.
9691
9692 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
9693
9694         * lib/argp-help.c (__argp_base_name): New function
9695         (__argp_short_program_name): Rewrite using __argp_base_name
9696         * lib/argp-namefrob.h: Define program_invocation_name and
9697         program_invocation_short_name if requested
9698         (__argp_base_name): Add prototype
9699         * lib/argp-parse.c (argp_def): Use gettext wrappers
9700         (argp_default_parser): Use __argp_base_name
9701         * lib/argp-pin.c: New file. Defines program_invocation_name and
9702         program_invocation_short_name on systems that lack them.
9703
9704 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
9705
9706         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
9707         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
9708         porting problem reported by Georg Schwarz in
9709         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
9710
9711 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
9712
9713         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
9714         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
9715         porting problem reported by Georg Schwarz in
9716         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
9717
9718 2005-12-05  Bruno Haible  <bruno@clisp.org>
9719
9720         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
9721         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
9722         Reported by Mark Junker <mjscod@gmx.de>.
9723
9724 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
9725
9726         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
9727         Use implementation from Albert Chin, with some
9728         comments/corrections by Stepan Kasal and myself.
9729
9730 2005-12-02  Bruno Haible  <bruno@clisp.org>
9731
9732         * gnulib-tool (func_import): Accept GPLed build tool modules when
9733         --lgpl is given.
9734         * modules/csharpcomp-script: New file.
9735         * modules/csharpcomp: Depend on it.
9736         * modules/javacomp-script: New file.
9737         * modules/javacomp: Depend on it.
9738         Suggested by Simon Josefsson.
9739
9740 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
9741
9742         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
9743         statement, to work around an HP-UX 10.20 compiler bug reported by
9744         Peter O'Gorman.
9745
9746 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
9747
9748         * modules/savedir (Depends-on): Add openat.
9749
9750 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
9751
9752         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
9753         (uintmax_t) [defined uintmax_t]: Do not declare.
9754         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
9755         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
9756         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
9757         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
9758         sake of portability to weird hosts that C allows (though we don't
9759         know of any practical examples).
9760
9761         * lib/savedir.h (fdsavedir): New decl.
9762         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
9763         contains most of the former guts of savedir.
9764         (savedir): Use savedirstream.
9765         Include "openat.h".
9766
9767 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
9768
9769         * modules/obstack (Files): Add m4/ulonglong.m4.
9770         Problem reported by Davide Angelocola.
9771
9772 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
9773
9774         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
9775         coreutils no longer futzes with rounding modes.
9776
9777 2005-11-14  Jim Meyering  <jim@meyering.net>
9778
9779         * lib/mkstemp-safer.c: Include <config.h>, required for possible
9780         replacement of mkstemp.
9781
9782 2005-11-10  Simon Josefsson  <jas@extundo.com>
9783
9784         * lib/readline.c: Remove EOL.
9785
9786 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
9787
9788         * modules/gethrxtime (Depends-on): Add gettime.
9789
9790 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
9791
9792         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
9793         or gettimeofday; no longer needed.
9794
9795 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
9796
9797         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
9798         time business.
9799         (gethrxtime) [! (HAVE_NANOUPTIME
9800         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
9801         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
9802         our own approximation.
9803
9804 2005-11-08  Eric Blake  <ebb9@byu.net>
9805
9806         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
9807
9808 2005-11-08  Eric Blake  <ebb9@byu.net>
9809
9810         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
9811
9812 2005-11-04  Bruno Haible  <bruno@clisp.org>
9813
9814         * gnulib-tool: Implement --update mode.
9815
9816 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
9817
9818         Fix porting problem reported by Theodoros V. Kalamatianos.
9819         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
9820         Don't assume that futimes failing means we must fail.
9821
9822 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
9823
9824         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
9825         variables to suggest the intended function of the PATH_MAX check.
9826
9827 2005-10-30  Kean Johnston  <jkj@sco.com>
9828
9829         Trivial changes to support SCO systems.
9830         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
9831         as PATH_MAX.
9832         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
9833         where __ptr is null when no I/O is pending.
9834
9835 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
9836
9837         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
9838         leave errno alone.  Problem reported by Dmitry V. Levin.
9839
9840 2005-10-28  Simon Josefsson  <jas@extundo.com>
9841
9842         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
9843         Test more.
9844
9845         * tests/test-gc-md2.c, tests/test-md2.c: New files.
9846
9847         * modules/md2, modules/md2-tests: New files.
9848
9849 2005-10-28  Simon Josefsson  <jas@extundo.com>
9850
9851         * m4/inet_ntop.m4: More tests.
9852
9853         * m4/gc-md2.m4, md2.m4: New file.
9854
9855 2005-10-28  Simon Josefsson  <jas@extundo.com>
9856
9857         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
9858         "restrict" keywords, as per POSIX.  Protect the function
9859         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
9860         Don't use K&R prototypes.  Check the sprintf return values.
9861         Re-define EAFNOSUPPORT if not present.  Indent.
9862
9863         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
9864         suggested by Bruno Haible <bruno@clisp.org>.
9865
9866         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
9867
9868         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
9869
9870         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
9871         libgcrypt).
9872
9873         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
9874
9875         * lib/md2.h, lib/md2.c: New files.
9876
9877 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
9878
9879         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
9880         errno alone.  Problem reported by Frederic Jolliton.
9881
9882 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
9883
9884         * modules/verify (License): Change from GPL to LGPL.  This is a
9885         tiny module and there are apparently near-equivalents that are
9886         under the BSD license.
9887
9888 2005-10-24  Simon Josefsson  <jas@extundo.com>
9889
9890         * modules/sha1: Relicense to LGPL.
9891
9892 2005-10-24  Simon Josefsson  <jas@extundo.com>
9893
9894         * lib/md4.h: Shrink buffer size, now that we changed the type.
9895
9896 2005-10-23  Simon Josefsson  <jas@extundo.com>
9897
9898         * gnulib-tool (func_import): Fix --tests-base.
9899
9900 2005-10-22  Simon Josefsson  <jas@extundo.com>
9901
9902         * modules/arcfour (Depends-on): Need stdint.
9903
9904 2005-10-22  Simon Josefsson  <jas@extundo.com>
9905
9906         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
9907         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
9908
9909 2005-10-22  Simon Josefsson  <jas@extundo.com>
9910
9911         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
9912         suggested by Bruno Haible <bruno@clisp.org>.
9913
9914 2005-10-22  Simon Josefsson  <jas@extundo.com>
9915
9916         * lib/crc.h: Include stddef.h, for size_t.
9917
9918 2005-10-22  Simon Josefsson  <jas@extundo.com>
9919
9920         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
9921         arcfour_context struct (simplify test vector testing in GNU
9922         Shishi).
9923
9924 2005-10-21  Simon Josefsson  <jas@extundo.com>
9925
9926         * modules/des, modules/des-tests: New files.
9927
9928         * modules/gc-des, modules/gc-des-tests: New files.
9929
9930         * tests/test-des.c, tests/test-gc-des.c: New file.
9931
9932 2005-10-21  Simon Josefsson  <jas@extundo.com>
9933
9934         * modules/arctwo, modules/arctwo-tests: New files.
9935
9936         * tests/test-arctwo.c: New file.
9937
9938         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
9939
9940         * tests/test-gc-arctwo.c: New file.
9941
9942 2005-10-21  Simon Josefsson  <jas@extundo.com>
9943
9944         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
9945         Bruno Haible <bruno@clisp.org>.
9946
9947         * m4/gc-des.m4: New file.
9948
9949 2005-10-21  Simon Josefsson  <jas@extundo.com>
9950
9951         * m4/arctwo.m4: New file.
9952
9953         * m4/gc-arctwo.m4: New file.
9954
9955 2005-10-21  Simon Josefsson  <jas@extundo.com>
9956
9957         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
9958         block.
9959
9960 2005-10-21  Simon Josefsson  <jas@extundo.com>
9961
9962         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
9963         <bruno@clisp.org>.
9964
9965         * lib/hmac-sha1.c (hmac_sha1): Likewise.
9966
9967         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
9968         Bruno Haible <bruno@clisp.org>.
9969
9970         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
9971         <bruno@clisp.org>.
9972
9973 2005-10-21  Simon Josefsson  <jas@extundo.com>
9974
9975         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
9976
9977 2005-10-21  Simon Josefsson  <jas@extundo.com>
9978
9979         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
9980
9981 2005-10-21  Simon Josefsson  <jas@extundo.com>
9982
9983         * lib/des.h, lib/des.c: New files.
9984
9985         * lib/gc-gnulib.c: Support DES.c
9986
9987 2005-10-21  Simon Josefsson  <jas@extundo.com>
9988
9989         * lib/arctwo.h, lib/arctwo.c: New files.
9990
9991         * lib/gc-gnulib.c: Support ARCTWO.
9992
9993 2005-10-21  Simon Josefsson  <jas@extundo.com>
9994
9995         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
9996         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9997
9998 2005-10-21  Simon Josefsson  <jas@extundo.com>
9999
10000         * gnulib-tool (func_import, func_create_testdir): Define automake
10001         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
10002         Makefile.am snippet),
10003         suggested by Bruno Haible <bruno@clisp.org>.
10004
10005         * modules/gc (Makefile.am): Use it.
10006
10007 2005-10-21  Bruno Haible  <bruno@clisp.org>
10008
10009         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
10010         patch.
10011
10012 2005-10-19  Simon Josefsson  <jas@extundo.com>
10013
10014         * tests/test-gc-rijndael.c: New file.
10015
10016         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
10017
10018 2005-10-19  Simon Josefsson  <jas@extundo.com>
10019
10020         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
10021         interface too.
10022
10023 2005-10-19  Simon Josefsson  <jas@extundo.com>
10024
10025         * tests/test-gc-arcfour.c: New file.
10026
10027         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
10028
10029 2005-10-19  Simon Josefsson  <jas@extundo.com>
10030
10031         * modules/gc-md4, modules/gc-md4-tests: New file.
10032
10033         * tests/test-gc-md4.c: New file.
10034
10035 2005-10-19  Simon Josefsson  <jas@extundo.com>
10036
10037         * m4/gc-md4.m4: New file.
10038
10039 2005-10-19  Simon Josefsson  <jas@extundo.com>
10040
10041         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
10042         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
10043         <kasal@ucw.cz>.
10044
10045 2005-10-19  Simon Josefsson  <jas@extundo.com>
10046
10047         * m4/gc-arcfour.m4: New file.
10048
10049         * m4/gc-rijndael.m4: New file.
10050
10051 2005-10-19  Simon Josefsson  <jas@extundo.com>
10052
10053         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
10054
10055 2005-10-19  Simon Josefsson  <jas@extundo.com>
10056
10057         * lib/gc-gnulib.c: Support ARCFOUR.
10058
10059 2005-10-19  Simon Josefsson  <jas@extundo.com>
10060
10061         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
10062         support.
10063
10064         * lib/gc.h: Add ECB enum type.
10065
10066         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
10067
10068 2005-10-18  Simon Josefsson  <jas@extundo.com>
10069
10070         * tests/test-md5.c: New file.
10071
10072         * modules/md5-tests: New file.
10073
10074 2005-10-18  Simon Josefsson  <jas@extundo.com>
10075
10076         * tests/test-md4.c: New file.
10077
10078         * modules/md4, modules/md4-tests: New files.
10079
10080 2005-10-18  Simon Josefsson  <jas@extundo.com>
10081
10082         * m4/md4.m4: New file.
10083
10084 2005-10-18  Simon Josefsson  <jas@extundo.com>
10085
10086         * lib/md4.h, lib/md4.c: New files, based on md5.?.
10087
10088 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
10089
10090         * gnulib-tool (func_create_testdir): Omit the second check whether
10091         BUILT_SOURCES in nonempty.
10092
10093 2005-10-17  Simon Josefsson  <jas@extundo.com>
10094
10095         * tests/test-rijndael.c: New file.
10096
10097 2005-10-17  Simon Josefsson  <jas@extundo.com>
10098
10099         * modules/sha1: Depend on stdint instead of md5.
10100
10101         * modules/md5: Depend on stdint, remove uint32_t.
10102
10103 2005-10-17  Simon Josefsson  <jas@extundo.com>
10104
10105         * modules/gc-sha1-tests: New file.
10106
10107         * tests/test-gc-sha1.c: New file.
10108
10109 2005-10-17  Simon Josefsson  <jas@extundo.com>
10110
10111         * m4/md5.m4: Remove call to uint32_t.m4.
10112
10113 2005-10-17  Simon Josefsson  <jas@extundo.com>
10114
10115         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
10116
10117         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
10118         md5.h.
10119
10120         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
10121
10122         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
10123
10124 2005-10-17  Simon Josefsson  <jas@extundo.com>
10125
10126         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
10127
10128 2005-10-17  Simon Josefsson  <jas@extundo.com>
10129
10130         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
10131
10132 2005-10-17  Simon Josefsson  <jas@extundo.com>
10133
10134         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
10135
10136         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
10137
10138 2005-10-17  Bruno Haible  <bruno@clisp.org>
10139
10140         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
10141         that it can also be used in a test.
10142
10143 2005-10-16  Bruno Haible  <bruno@clisp.org>
10144
10145         * gnulib-tool (func_emit_tests_Makefile_am): Also define
10146         TESTS_ENVIRONMENT, so that individual tests can augment it.
10147
10148         * gnulib-tool (func_create_testdir): Use an intermediate target for
10149         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
10150         macros, like $(ALLOCA_H), which cannot be passed through the command
10151         line.
10152
10153 2005-10-15  Simon Josefsson  <jas@extundo.com>
10154
10155         * modules/rijndael-tests: New file.
10156
10157         * modules/rijndael: New file.
10158
10159 2005-10-15  Simon Josefsson  <jas@extundo.com>
10160
10161         * m4/rijndael.m4: New file.
10162
10163 2005-10-15  Simon Josefsson  <jas@extundo.com>
10164
10165         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
10166
10167         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
10168
10169 2005-10-14  Simon Josefsson  <jas@extundo.com>
10170
10171         * tests/test-arcfour.c: New file.
10172
10173         * modules/arcfour, modules/arcfour-tests: New files.
10174
10175 2005-10-14  Simon Josefsson  <jas@extundo.com>
10176
10177         * m4/arcfour.m4: New file.
10178
10179 2005-10-14  Simon Josefsson  <jas@extundo.com>
10180
10181         * lib/arcfour.h, lib/arcfour.c: New files.
10182
10183 2005-10-14  Roland McGrath  <roland@redhat.com>
10184
10185         Import from libc.  [BZ #1331]
10186         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
10187         macro argument.
10188         Reported by Matej Vela <vela@debian.org>.
10189
10190 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
10191
10192         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
10193         include <wchar.h>; no longer needed.
10194
10195 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
10196
10197         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
10198
10199 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
10200         and  Ulrich Drepper  <drepper@redhat.com>
10201
10202         Import from libc.
10203         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
10204         instead of inline stream orientation test and two separate
10205         function calls.  Pay no attention to USE_IN_LIBIO.
10206
10207 2005-10-13  Simon Josefsson  <jas@extundo.com>
10208
10209         * modules/gc-hmac-md5-tests: New file.
10210
10211         * tests/test-gc-hmac-sha1.c: New file.
10212
10213         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
10214
10215         * modules/gc-hmac-md5-tests: New file.
10216
10217         * tests/test-gc-md5.c: New file.
10218
10219         * modules/gc-md5-tests: New file.
10220
10221 2005-10-13  Simon Josefsson  <jas@extundo.com>
10222
10223         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
10224         Move memory allocation outside of loop.
10225
10226 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
10227
10228         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
10229         intermediate directory is in a read-only file system.  Problem
10230         reported by Eric Blake.
10231
10232 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
10233
10234         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
10235
10236 2005-10-12  Simon Josefsson  <jas@extundo.com>
10237
10238         * tests/test-hmac-sha1.c: New file.
10239
10240         * modules/hmac-sha1-tests: New file.
10241
10242         * modules/hmac-sha1: New file.
10243
10244 2005-10-12  Simon Josefsson  <jas@extundo.com>
10245
10246         * modules/gc-sha1: New file.
10247
10248 2005-10-12  Simon Josefsson  <jas@extundo.com>
10249
10250         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
10251
10252         * tests/test-gc-pbkdf2-sha1.c: New file.
10253
10254 2005-10-12  Simon Josefsson  <jas@extundo.com>
10255
10256         * modules/gc-md5, modules/gc-hmac-md5: New files.
10257
10258         * modules/gc (Files): Remove md5, memxor and hmac files.
10259
10260 2005-10-12  Simon Josefsson  <jas@extundo.com>
10261
10262         * m4/gc-pbkdf2-sha1.m4: New file.
10263
10264         * m4/gc-hmac-sha1.m4: New file.
10265
10266         * m4/gc-sha1: New file.
10267
10268         * m4/hmac-sha1.m4: New file.
10269
10270 2005-10-12  Simon Josefsson  <jas@extundo.com>
10271
10272         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
10273
10274         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
10275
10276 2005-10-12  Simon Josefsson  <jas@extundo.com>
10277
10278         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
10279         suggested by Bruno Haible <bruno@clisp.org>.
10280
10281 2005-10-12  Simon Josefsson  <jas@extundo.com>
10282
10283         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
10284
10285 2005-10-12  Simon Josefsson  <jas@extundo.com>
10286
10287         * lib/gc-pbkdf2-sha1.c: New file.
10288
10289         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
10290
10291 2005-10-12  Simon Josefsson  <jas@extundo.com>
10292
10293         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
10294
10295         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
10296
10297 2005-10-12  Simon Josefsson  <jas@extundo.com>
10298
10299         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
10300         GC_USE_HMAC_MD5, respectively.
10301
10302         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
10303         (gc_md5): Fix typo.
10304
10305         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
10306
10307         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
10308
10309         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
10310
10311 2005-10-12  Bruno Haible  <bruno@clisp.org>
10312
10313         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
10314         Reported by Stepan Kasal <kasal@ucw.cz>.
10315
10316 2005-10-11  Simon Josefsson  <jas@extundo.com>
10317
10318         * tests/test-crc.c: New file.
10319
10320         * modules/crc, modules/crc-tests: New files.
10321
10322 2005-10-11  Simon Josefsson  <jas@extundo.com>
10323
10324         * m4/crc.m4: New file.
10325
10326 2005-10-11  Simon Josefsson  <jas@extundo.com>
10327
10328         * lib/gc.h: Add gc_hash and gc_hash_buffer.
10329
10330         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
10331
10332         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
10333
10334 2005-10-11  Simon Josefsson  <jas@extundo.com>
10335
10336         * lib/crc.h, lib/crc.c: New files.
10337
10338         * lib/gc.h (gc_hash_buffer): Add doc.
10339
10340 2005-10-11  Bruno Haible  <bruno@clisp.org>
10341
10342         * modules/c-strcasestr: New file.
10343         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
10344
10345 2005-10-11  Bruno Haible  <bruno@clisp.org>
10346
10347         * modules/c-strcase: New file.
10348         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
10349
10350 2005-10-11  Bruno Haible  <bruno@clisp.org>
10351
10352         * lib/strcasecmp.c: Include limits.h.
10353         (strcasecmp): Avoid integer overflow on exotic platforms.
10354         * lib/strncasecmp.c: Include limits.h.
10355         (strncasecmp): Avoid integer overflow on exotic platforms.
10356         Reported by Paul Eggert.
10357
10358 2005-10-11  Bruno Haible  <bruno@clisp.org>
10359
10360         * lib/c-strcasestr.h: New file, from GNU gettext.
10361         * lib/c-strcasestr.c: New file, from GNU gettext.
10362
10363 2005-10-11  Bruno Haible  <bruno@clisp.org>
10364
10365         * lib/c-strcase.h: New file, from GNU gettext.
10366         * lib/c-strcasecmp.c: New file, from GNU gettext.
10367         * lib/c-strncasecmp.c: New file, from GNU gettext.
10368
10369 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
10370
10371         * modules/mempcpy (License): GPL -> LGPL.
10372         * modules/strchrnul (License): Likewise.
10373         * modules/sysexits (License): Likewise.
10374
10375 2005-10-08  Simon Josefsson  <jas@extundo.com>
10376
10377         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
10378
10379 2005-10-07  Simon Josefsson  <jas@extundo.com>
10380
10381         * m4/memxor.m4: Remove gl_C_RESTRICT call.
10382
10383 2005-10-06  Simon Josefsson  <jas@extundo.com>
10384
10385         * tests/test-hmac-md5.c: New file.
10386
10387         * modules/hmac-md5-tests: New file.
10388
10389         * modules/hmac-md5: New file.
10390
10391 2005-10-06  Simon Josefsson  <jas@extundo.com>
10392
10393         * m4/hmac-md5.m4: New file.
10394
10395         * m4/memxor.m4: Require gl_C_RESTRICT.
10396
10397 2005-10-06  Simon Josefsson  <jas@extundo.com>
10398
10399         * lib/memxor.c (memxor): Avoid casts and warnings.
10400
10401 2005-10-06  Simon Josefsson  <jas@extundo.com>
10402
10403         * lib/hmac-md5.c: New file.
10404
10405         * lib/hmac.h: New file.
10406
10407 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
10408
10409         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
10410         promotes to int, not unsigned int, to catch the AIX 5.3
10411         compiler bug.
10412
10413 2005-10-05  Simon Josefsson  <jas@extundo.com>
10414
10415         * modules/memxor: New file.
10416
10417         * modules/iconv (Files): Move config.rpath to havelib, it is used
10418         there.
10419
10420         * modules/havelib (Files): Add config.rpath.
10421
10422 2005-10-05  Simon Josefsson  <jas@extundo.com>
10423
10424         * m4/memxor.m4: New file.
10425
10426 2005-10-05  Simon Josefsson  <jas@extundo.com>
10427
10428         * lib/memxor.c (memxor): Fix compiler error.
10429
10430         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
10431         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
10432
10433         * lib/memxor.h, lib/memxor.c: New files.
10434
10435         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
10436         we assume all systems have it, suggested by Jim Meyering
10437         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
10438         any systems lack sys/socket.h; mingw32 is known to lack it, but we
10439         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
10440         same reasons.
10441
10442 2005-10-05  Simon Josefsson  <jas@extundo.com>
10443
10444         * config/srclist.txt: Add glibc bug 1423 for md5.h.
10445
10446 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
10447
10448         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
10449         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
10450         needed, since the source code now assumes these .h files.
10451
10452 2005-10-05  Derek Price  <derek@ximbiot.com>
10453
10454         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
10455
10456 2005-10-05  Bruno Haible  <bruno@clisp.org>
10457
10458         * modules/stdint (License): Change to LGPL.
10459
10460 2005-10-04  Simon Josefsson  <jas@extundo.com>
10461
10462         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
10463         D. Baushke" <mdb@gnu.org>.
10464
10465 2005-10-04  Bruno Haible  <bruno@clisp.org>
10466
10467         * lib/verify.h (verify_true): Provide alternative definition for C++.
10468
10469 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
10470
10471         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
10472         (SSIZE_MAX): New macro, if not already defined.
10473         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
10474         than 2 GiB.
10475
10476 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
10477
10478         Sync from coreutils.
10479         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
10480         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
10481         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
10482         ULLONG_MAX doesn't work with 2.7.2.1.
10483
10484 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
10485
10486         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
10487         From Ben Pfaff.
10488
10489         * modules/exclude (Depends-on): Depend on verify.
10490         * modules/strtoimax (Depends-on): Likewise.
10491         * modules/utimecmp (Depends-on): Likewise.
10492
10493 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
10494
10495         * lib/exclude.c: Include verify.h.
10496         (verify): Remove.  All callers changed to use verify.h's version.
10497         * lib/strtoimax.c: Likewise.
10498         * lib/utimecmp.c: Likewis.e
10499
10500         Sync from coreutils.
10501         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
10502         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
10503         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
10504         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
10505         bother returning ENOSYS if settimeofday or stime fails; just let
10506         them return whatever errno they want to return.
10507         * lib/utimens.c: Include unistd.h, for dup2.
10508         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
10509         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
10510
10511 2005-10-02  Jim Meyering  <jim@meyering.net>
10512
10513         Sync from coreutils.
10514         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
10515         from glibc-2.2.5 that fails for read-only files.
10516
10517 2005-10-02  Jim Meyering  <jim@meyering.net>
10518
10519         Sync from coreutils.
10520         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
10521         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
10522         `#if HAVE_CONFIG_H'.
10523         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
10524         Remove AT_FDCWD test.
10525         Do not consume the fd unless successful.
10526         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
10527         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
10528         block, so that we don't even try to compile it if settimeofday is
10529         available.  This works around a compilation failure on OSF1 V5.1,
10530         due to stime requiring a `long int*' while tv_sec is `int'.
10531
10532 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
10533
10534         Sync from coreutils.
10535         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
10536         against `yes', rather than just testing for nonempty.
10537
10538 2005-10-01  Simon Josefsson  <jas@extundo.com>
10539
10540         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
10541         and Darwin.
10542
10543         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
10544         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
10545         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
10546         freeaddrinfo and gai_strerror are declared by the POSIX headers.
10547         Check if struct addrinfo is declared.
10548
10549 2005-10-01  Simon Josefsson  <jas@extundo.com>
10550
10551         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
10552         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
10553         AI_* and EAI_* definitions.  Protect function declarations.
10554
10555 2005-10-01  Jim Meyering  <jim@meyering.net>
10556
10557         Sync from coreutils.
10558
10559         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
10560         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
10561         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
10562         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
10563         in the inet and nsl libraries.  Required on Solaris 5.7.
10564
10565 2005-10-01  Jim Meyering  <jim@meyering.net>
10566
10567         Sync from coreutils.
10568         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
10569         in the inet and nsl libraries.  Required on Solaris 5.7.
10570
10571 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
10572
10573         * lib/getdelim.c (getdelim): Remove unused variables.
10574
10575 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
10576
10577         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
10578         so that the code works even with ancient cpp.  Portability problem
10579         with GCC 2.7.2.1 reported by Thomas M.Ott.
10580
10581 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
10582
10583         * modules/regex (Depends-on): Add strcase.
10584
10585         * modules/gethostname (Licence): Change from GPL to LGPL, since
10586         gethostname.c is a trivial implementation of a standard library
10587         function.
10588         * modules/poll (License): Change from GPL to LGPL, since it's
10589         derived from LGPL code.
10590
10591 2005-09-27  Jim Meyering  <jim@meyering.net>
10592
10593         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
10594         HAVE_CONFIG_H.
10595
10596         * lib/intprops.h (signed_type_or_expr__): Define.
10597         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
10598         for unsigned types.
10599
10600 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
10601
10602         * lib/verify.h (verify_expr): Remove, replacing with:
10603         (verify_true): New macro that returns true instead of void.
10604         (verify_type__): Remove.
10605         (verify): Use verify_true rather than verify_type__.
10606
10607 2005-09-26  Bruno Haible  <bruno@clisp.org>
10608
10609         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
10610         is necessary.
10611         (lib_SOURCES): Remove mbchar.c.
10612         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
10613         (Files): Add m4/mbrtowc.m4.
10614         * modules/mbiter: Likewise.
10615         * modules/mbuiter: Likewise.
10616
10617 2005-09-26  Bruno Haible  <bruno@clisp.org>
10618
10619         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
10620         compile mbchar.c if they are not both present.
10621         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
10622         * m4/mbiter.m4 (gl_MBITER): Likewise.
10623         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
10624         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
10625         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
10626
10627 2005-09-25  Jim Meyering  <jim@meyering.net>
10628
10629         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
10630         also uses socklen_t.
10631
10632 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
10633
10634         * lib/utimens.c (ENOSYS): Define if not already defined.
10635         (futimens): Support having a null PATH if the file descriptor
10636         is nonnegative.
10637
10638         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
10639         Remove.
10640         (__attribute): Define to empty unless GCC 3.1 or later.
10641         This works around a core dump on OpenBSD 3.4, which has GCC
10642         2.95.3, which dumps core when given __attribute__(()).  It also
10643         simplifies other tests, since we really don't want to bother with
10644         worrying about which ancient version of GCC supported what.
10645         Original problem reported by Yoann Vandoorselaere, with part of
10646         the fix suggested by Derek Price.
10647
10648 2005-09-24  Jim Meyering  <jim@meyering.net>
10649
10650         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
10651         so we can once again use a positive bitfield width of 1 -- now we
10652         don't have to explain why we were using a bitfield width of 2.
10653
10654 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
10655
10656         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
10657         and similarly for the other external symbols.  Problem reported
10658         by James Gallager.
10659
10660         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
10661         bug reported by Jim Meyering.
10662
10663         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
10664         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
10665         not needed, since socklen is a prerequisite module.
10666
10667 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
10668
10669         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
10670         Problem reported by Eric Blake.
10671         (getaddrinfo): Initialize se so that it's not garbage.
10672         Redo internal storage allocation so that it doesn't make unportable
10673         assumptions about alignment.
10674         Fix a memory leak.
10675
10676         * lib/utimens.c (futimens): Use futimesat if available.
10677         Prefer it to futimes since it doesn't have the futimes bug.
10678
10679         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
10680         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
10681         Instead, declare a function that returns a pointer to an array,
10682         and use verify_type__ to declare the size of the array.
10683         Problem and germ of a solution reported by Bruno Haible.
10684         (verify_type__): Use 2, not 1, for bitfield size, to avoid
10685         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
10686
10687 2005-09-23  Jim Meyering  <jim@meyering.net>
10688
10689         Sync from coreutils.
10690         Correct build failure (socklen_t not defined) on at least
10691         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
10692         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
10693
10694 2005-09-23  Jim Meyering  <jim@meyering.net>
10695
10696         * modules/getaddrinfo (Depends-on): Add socklen.
10697
10698 2005-09-23  Bruno Haible  <bruno@clisp.org>
10699
10700         * tests/test-verify.c: New file.
10701
10702 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
10703
10704         Sync from coreutils.
10705
10706         * modules/argmatch (Depends-on): Add verify.
10707         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
10708         unistd-safer.
10709         * modules/save-cwd (Depends-on): Likewise.
10710
10711         * modules/openat (Files): Add lib/openat-die.c.
10712         (Depends-on): Remove error, exitfail.
10713         Add dirname.
10714
10715         * modules/verify: New file.
10716         * MODULES.html.sh (Diagnostics <assert.h>): New section,
10717         with "verify" module.
10718
10719 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
10720
10721         Sync from coreutils.
10722
10723         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
10724         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
10725         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
10726         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
10727         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
10728         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
10729         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
10730         Don't bother checking for string.h, stdlib.h, unistd.h.
10731         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
10732         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
10733         module's job.
10734         * m4/jm-macros.m4 (gl_MACROS): Likewise.
10735         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
10736
10737         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
10738         (gl_GETDATE): Use it.
10739
10740         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
10741
10742 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
10743
10744         Sync from coreutils.
10745
10746         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
10747         stat-time.h.
10748         * lib/argmatch.h: Include verify.h
10749         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
10750         (ARGMATCH_ASSERT): Remove; unused.
10751         * lib/canonicalize.c: Assume STDC_HEADERS.
10752         * lib/exclude.c: Include "strcase.h".
10753         * lib/regex_internal.h [!defined _LIBC]: Likewise.
10754         * lib/getusershell.c: Include stdio--.h rather than stdio.h
10755         and stdio-safer.h.
10756         (getusershell): Call fopen, not fopen_safer.
10757         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
10758         Do not include unistd-safer.h.
10759         (save_cwd): Don't call fd_safer; no longer needed
10760         now that we include fcntl--.h.
10761
10762         * lib/getdate.y (relative_time): New type.
10763         (RELATIVE_TIME_0): New constant.
10764         (parser_control): Use relative_time instead of doing it ourselves.
10765         (%union): Add new relative_time rel member.
10766         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
10767         Now typeless.
10768         (relunit, relunit_snumber): Now of type rel.
10769         (zone, rel, relunit, get_date): Adjust to above changes.
10770
10771         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
10772         Do not include unistd-safer.h.
10773         (getloadavg): Don't call fd_safer; no longer needed
10774         now that we include fcntl--.h.
10775
10776         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
10777         (make_dir_parents): Treat ENOSYS like EEXIST.
10778
10779         Improve quality of diagnostics on restore_cwd failure.
10780         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
10781         (make_dir_parents): Last arg is now int * (for errno), not bool *.
10782         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
10783         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
10784         each time through the loop.  Do not diagnose restore_cwd failure;
10785         that is the caller's job (and perhaps the caller does not care).
10786
10787         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
10788         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
10789         If the file already exists but is not a directory, don't bother
10790         to try to make its parents.
10791         Close potential file descriptor leak if we can't chdir("/") (!).
10792         Don't always return true if chdir($PWD) fails; return true only
10793         if the requested action was done successfully (except for the
10794         chdir($PWD)).
10795         Don't log final directory unless we actually made it.
10796         Refactor to avoid duplicate code to fix up permissions.
10797         Don't attempt to fix up parent permissions if chdir($PWD) fails.
10798
10799         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
10800         to make it a bit faster and (I hope) clearer.
10801         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
10802         Fix bug in formats like %2N.
10803
10804         * lib/verify.h: New file.
10805
10806 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
10807
10808         Sync from coreutils.
10809         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
10810
10811 2005-09-22  Jim Meyering  <jim@meyering.net>
10812
10813         Sync from coreutils.
10814
10815         * m4/lstat.m4 (gl_FUNC_LSTAT):
10816         Use AC_LIBSOURCES to require lstat.c and lstat.h.
10817         Remove obsolete comment.
10818         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
10819         * m4/xstrtod.m4: Likewise.
10820
10821         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
10822
10823 2005-09-22  Jim Meyering  <jim@meyering.net>
10824
10825         Sync from coreutils.
10826
10827         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
10828
10829         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
10830         the .tm_year member, since otherwise gcc-4.0 would now warn about
10831         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
10832
10833         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
10834         order to avoid an unsuppressible warning from gcc on 64-bit systems.
10835
10836         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
10837         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
10838         when run in a time zone for which daylight savings time is in effect
10839         for the starting date.
10840
10841         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
10842         stop us from restricting permissions of just-created absolute-named
10843         directories.
10844         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
10845         to restore initial working directory.
10846         * lib/mkdir-p.c (make_dir_parents): New parameter:
10847         different_working_dir, to tell caller if/when we change the working
10848         directory and are unable to return to the initial one.
10849         * lib/mkdir-p.h (make_dir_parents): Update prototype.
10850         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
10851         `return false'.  This fixes a bug introduced on 2004-07-30.
10852
10853         * lib/openat.c (fdopendir): Be sure to close the supplied
10854         file descriptor before returning.  This makes our replacement
10855         implementation a little closer to Solaris's, where fdopendir
10856         ties the file descriptor to the returned DIR* pointer.
10857         * lib/openat.c (unlinkat): New function.
10858         * lib/openat.h (unlinkat): Add prototype.
10859         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
10860         (openat_restore_fail): Rename from openat_restore_die.
10861         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
10862
10863         Provide an alternative to exiting immediately upon save_cwd or
10864         restore_cwd failure.  Now, an application can arrange e.g.,
10865         to perform a longjump in that case.
10866         * lib/openat.c: Include dirname.h.
10867         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
10868         (rpl_openat, fdopendir, fstatat): Call openat_save_die
10869         and openat_restore_die rather than calling error directly.
10870         Don't include "error.h" or "exitfail.h"; they're no longer needed.
10871
10872         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
10873         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
10874         define.
10875
10876         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
10877         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
10878                             int utc, int nanoseconds);
10879         Background:
10880         date should not have to allocate a megabyte of virtual memory to
10881         handle a format argument like +%1048575T.  When implemented with
10882         strftime, it must allocate such a buffer, use strftime to fill it
10883         in, print it, then free it.
10884         With fprintftime, it simply prints everything and exits.
10885         With no need for memory allocation, that's one fewer way to fail.
10886         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
10887         optional field width, not before, so we accept %9:z, not %:9z.
10888         (my_strftime): Be sure to use L_('x') for literals.
10889
10890         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
10891         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
10892         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
10893         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
10894         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
10895         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
10896         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
10897         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
10898         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
10899         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
10900         * lib/xgethostname.c, lib/xreadlink.c:
10901         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
10902
10903         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
10904         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
10905         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
10906         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
10907         and don't include <sys/file.h>).
10908
10909 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
10910
10911         Sync from coreutils.
10912
10913         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
10914         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
10915         [!LDAV_DONE]: Avoid unused variable warning.
10916
10917 2005-09-21  Bruno Haible  <bruno@clisp.org>
10918
10919         * lib/unicodeio.h (unicode_to_mb): New declaration.
10920
10921 2005-09-20  Derek Price  <derek@ximbiot.com>
10922
10923         * lib/getaddrinfo.c: Don't include <netdb.h> included from
10924         getaddrinfo.h.
10925
10926 2005-09-20  Bruno Haible  <bruno@clisp.org>
10927
10928         * gnulib-tool: Remove trailing slashes from the values specified for
10929         --source-base, --m4-base, --tests-base, --aux-dir.
10930         Suggested by Simon Josefsson <jas@extundo.com>.
10931
10932 2005-09-20  Bruno Haible  <bruno@clisp.org>
10933
10934         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
10935         func_modules_to_filelist, func_import, func_create_testdir): Make all
10936         sorting results locale-independent, so that gnulib-cache.m4 doesn't
10937         change when gnulib-tool is invoked in a different locale.
10938
10939 2005-09-19  Simon Josefsson  <jas@extundo.com>
10940
10941         * m4/socklen.m4: Fix typo.
10942
10943 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10944
10945         Use a consistent style for including <config.h>.
10946         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
10947         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
10948         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
10949         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
10950         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
10951         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
10952         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
10953         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
10954         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
10955         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
10956         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
10957         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
10958         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
10959         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
10960         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
10961         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
10962         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
10963         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
10964         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
10965         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
10966         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
10967         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
10968         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
10969         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
10970         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
10971         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
10972         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
10973         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
10974         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
10975         lib/xstrtoumax.c, lib/yesno.c:
10976         Standardize inclusion of config.h.
10977         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
10978         lib/inttostr.h:  Removed inclusion of config.h from header files.
10979         * lib/inttostr.c:  Adjusted in-tree users.
10980         * lib/timespec.h: Remove superfluous warning to include config.h.
10981         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
10982         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
10983         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
10984         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
10985         config.h with HAVE_CONFIG_H.
10986
10987 2005-09-19  Jim Meyering  <jim@meyering.net>
10988
10989         * modules/pathmax (License): Change to LGPL.
10990
10991 2005-09-19  Derek Price  <derek@ximbiot.com>
10992
10993         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
10994
10995 2005-09-19  Bruno Haible  <bruno@clisp.org>
10996
10997         * gnulib-tool (import): Provide default for --tests-base.
10998
10999 2005-09-19  Bruno Haible  <bruno@clisp.org>
11000
11001         * doc/quote.texi: New file, extracted from gnulib.texi.
11002         * doc/ctime.texi: New file, extracted from gnulib.texi.
11003         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
11004         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
11005         * doc/gnulib.texi: Include them.
11006
11007 2005-09-18  Bruno Haible  <bruno@clisp.org>
11008
11009         Portability fix.
11010         * gnulib-tool (func_readlink): New function.
11011         (func_ln_if_changed): Use it.
11012
11013 2005-09-18  Bruno Haible  <bruno@clisp.org>
11014
11015         * gnulib-tool: Support --with-tests also with --import.
11016         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
11017         (func_import): Use variables $testsbase and $inctests. Emit a
11018         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
11019         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
11020         SUBDIRS += $testsdir.
11021         (func_create_testdir): Update.
11022
11023 2005-09-18  Bruno Haible  <bruno@clisp.org>
11024
11025         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
11026         instead of $dry_run.
11027         (func_cp_if_changed, func_mv_if_changed): Remove functions.
11028         (func_ln_if_changed): Don't handle dry-run here.
11029         (func_import): In dry-run mode, detect more precisely which actions
11030         would be performed, and don't use "...ing" verbs.
11031
11032 2005-09-18  Bruno Haible  <bruno@clisp.org>
11033
11034         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
11035         (func_import): Use join on two temporary files instead of three nested
11036         loops, in order to determine which files are new or old.
11037
11038 2005-09-18  Bruno Haible  <bruno@clisp.org>
11039
11040         * gnulib-tool (func_import): Comment out code that spits out the
11041         new files with --dry-run.
11042
11043 2005-09-18  Bruno Haible  <bruno@clisp.org>
11044
11045         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
11046
11047 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
11048
11049         * lib/stat-time.h: New file.
11050         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
11051         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
11052         in a different way.
11053         (timespec_cmp): New function.
11054         * lib/utimecmp.c: Include stat-time.h.
11055         (SYSCALL_RESOLUTION): Depend on whether various struct stat
11056         members exist, not on the obsolescent ST_MTIM_NSEC.
11057         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
11058
11059 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
11060
11061         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
11062
11063 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
11064
11065         * MODULES.html.sh (File system functions): Add stat-time.
11066         * modules/stat-time: New file.
11067         * modules/timespec (Files): Remove m4/st_mtim.m4; this
11068         is now done in a different way, by the stat-time module.
11069         * modules/utimecmp (Depends-on): Add stat-time.
11070
11071 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
11072
11073         * m4/st_mtim.m4: Remove.  Superseded by...
11074         * m4/stat-time.m4: New file.
11075         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
11076         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
11077
11078 2005-09-15  Derek Price  <derek@ximbiot.com>
11079
11080         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
11081
11082 2005-09-15  Derek Price  <derek@ximbiot.com>
11083
11084         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
11085         * lib/regex_internal.c: Ditto, using this...
11086         (__GNUC_PREREQ): ...new macro.
11087         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
11088         using...
11089         (__GNUC_PREREQ): ...this new macro.
11090
11091         * lib/strstr.h: Include string.h. Define strstr as a macro here.
11092
11093 2005-09-15  Derek Price  <derek@ximbiot.com>
11094             Paul Eggert  <eggert@cs.ucla.edu>
11095
11096         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
11097         changes, consolidating in...
11098         * lib/regex_internal.h: ...this file.
11099
11100 2005-09-13  Jim Meyering  <jim@meyering.net>
11101
11102         * lib/canon-host.c: Filter through gnu indent and reword comments
11103         slightly.
11104         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
11105
11106 2005-09-13  Derek Price  <derek@ximbiot.com>
11107
11108         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
11109         failure.
11110         Reported by Jim Meyering  <jim@meyering.net>.
11111
11112 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
11113
11114         * lib/base64.c: Typo.
11115         (base64_encode): Put b64str in initialized data section.
11116
11117 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
11118
11119         Merge glibc and coreutils changes into gnulib, plus a few
11120         extra fixes.
11121         * lib/md5.c: Use #error rather than a string.
11122         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
11123         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
11124         (__attribute__): Define to empty for non recent-GCC.
11125         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
11126         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
11127         Renamed from their non-__ counterparts, with new macros replacing
11128         them if not _LIBC.  Add __THROW attribute.
11129         (rol): Remove.
11130         (struct md5_ctx): Align buffer if using GCC.
11131         * lib/sha1.h (struct sha1_ctx): Likewise.
11132         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
11133         The old name was backwards.
11134         (NOTSWAP): Remove; not used.
11135         (rol): New macro, moved here from md5.h.
11136         (sha1_process_block): Remove a FIXME that doesn't make sense.
11137
11138 2005-09-12  Derek Price  <derek@ximbiot.com>
11139
11140         Return usable errors from canon-host.
11141         * lib/canon-host.h: New file.
11142         * lib/canon-host.c (canon_host): Wrap...
11143         (canon_host_r): ...this new function, which now relies exclusively on
11144         getaddrinfo.
11145         (ch_strerror): New function.
11146         (last_cherror): New global.
11147         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
11148         interface.
11149         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
11150         void *.
11151         (freeaddrinfo): Free ai->ai_canonname when set.
11152
11153 2005-09-12  Derek Price  <derek@ximbiot.com>
11154
11155         Make canon-host require getaddrinfo.
11156         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
11157         AC_LIBSOURCE canon-host.h.  Call...
11158         (gl_PREREQ_CANON_HOST): ...this new function, which requires
11159         gl_GETADDRINFO.
11160         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
11161
11162 2005-09-12  Derek Price  <derek@ximbiot.com>
11163
11164         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
11165         LGPL.
11166         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
11167
11168 2005-09-12  Derek Price  <derek@ximbiot.com>
11169
11170         * lib/gai_strerror.c: Include config.h when available.  Include
11171         getaddrinfo.h before other headers to test interface.
11172         Reported by Larry Jones <lawrence.jones@ugs.com>.
11173
11174 2005-09-12  Derek Price  <derek@ximbiot.com>
11175             Paul Eggert  <eggert@cs.ucla.edu>
11176
11177         * modules/glob (Files): Add glob-libc.h.
11178
11179 2005-09-12  Derek Price  <derek@ximbiot.com>
11180             Paul Eggert  <eggert@cs.ucla.edu>
11181
11182         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
11183         glob_.h, glob-libc.h.
11184         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
11185
11186 2005-09-12  Derek Price  <derek@ximbiot.com>
11187             Paul Eggert  <eggert@cs.ucla.edu>
11188
11189         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
11190         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
11191         protecting things that should be done only in gnulib contexts.
11192         * lib/glob_.h: New file, containing only the glob things needed for
11193         gnulib.
11194         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
11195         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
11196         (glob, globfree, glob_pattern_p): Now defined simply in terms of
11197         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
11198         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
11199         and to respect the namespace rules better.
11200
11201 2005-09-08  Simon Josefsson  <jas@extundo.com>
11202
11203         * modules/socklen: New file.
11204
11205 2005-09-08  Simon Josefsson  <jas@extundo.com>
11206
11207         * m4/socklen.m4: New file.
11208
11209 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
11210
11211         * modules/utimens (Files): Add m4/utimbuf.m4, since
11212         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
11213         Reported by Sergey Poznyakoff.
11214
11215 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
11216
11217         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
11218         definitions, since that's the preferred style in glibc.
11219         Fix a minor spacing issue, and update copyright notice to match
11220         glibc's.
11221
11222 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
11223
11224         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
11225
11226 2005-09-06  Simon Josefsson  <jas@extundo.com>
11227
11228         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
11229         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
11230
11231 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
11232
11233         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
11234         warning.
11235
11236 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
11237
11238         * config/srclist.txt: Add glibc bug 1302.
11239
11240 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
11241
11242         Change bitset word type from unsigned int to unsigned long int,
11243         as this has better performance on typical 64-bit hosts.
11244         Port bitset code to hosts with unusual word sizes.
11245         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
11246         (build_collating_symbol):
11247         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
11248         argument is a bitset.  This is merely a style issue, but it makes
11249         it clearer that an entire array is expected.
11250         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
11251         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
11252         Port to the case where bitset_word is not the same as unsigned int.
11253         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
11254         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
11255         Likewise.
11256         * lib/regexec.c (check_dst_limits_calc_pos_1,
11257         check_subexp_matching_top):
11258         (build_trtable, group_nodes_into_DFAstates):
11259         Likewise.
11260         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
11261         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
11262         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
11263         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
11264         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
11265         * lib/regcomp.c (optimize_subexps, lower_subexp):
11266         Work even if bitset_word has holes in its bitwise representation.
11267         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
11268         * lib/regexec.c (check_dst_limits_calc_pos_1,
11269         check_subexp_matching_top):
11270         Likewise.
11271         * lib/regex_internal.c (re_string_reconstruct):
11272         Don't assume UCHAR_MAX == 255.
11273         * lib/regex_internal.h (bitset_set_all): Likewise.
11274         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
11275         All uses changed.
11276         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
11277         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
11278         All uses changed.
11279         (BITSET_WORD_MAX): New macro.
11280         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
11281         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
11282         (bitset_empty, bitset_copy):
11283         Prefer sizeof (bitset) to multiplying it out ourselves.
11284         (bitset_not_merge): Remove; unused.
11285         (bitset_contain): Return bool, not unsigned int with one bit on.
11286         All callers changed.
11287         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
11288         alignment than re_node_set; do this by defining a new internal
11289         type struct dests_alloc and using it to allocate memory.
11290
11291 2005-09-05  Bruno Haible  <bruno@clisp.org>
11292
11293         * gnulib-tool (func_import): Fix comparison in handling of symbolic
11294         links.
11295
11296 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
11297
11298         * modules/size_max (Makefile.am): Add size_max.h
11299
11300 2005-09-04  Derek Price  <derek@ximbiot.com>
11301
11302         * gnulib-tool (func_import): Fix reversed $symbolic logic.
11303
11304 2005-09-03  Simon Josefsson  <jas@extundo.com>
11305
11306         * gnulib-tool: Fix typo.
11307
11308 2005-09-03  Simon Josefsson  <jas@extundo.com>
11309
11310         * config/srclist.txt: Add glibc bug 1293.
11311
11312 2005-09-03  Derek Price  <derek@ximbiot.com>
11313
11314         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
11315         From Larry Jones <lawrence.jones@ugs.com>.
11316
11317 2005-09-02  Simon Josefsson  <jas@extundo.com>
11318
11319         * modules/socklen: New file.
11320
11321 2005-09-02  Simon Josefsson  <jas@extundo.com>
11322
11323         * modules/havelib: New module.
11324
11325         * modules/gettext, modules/iconv, modules/lock, modules/readline:
11326         Use havelib.
11327
11328 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
11329
11330         Check for arithmetic overflow when calculating sizes, to prevent
11331         some buffer-overflow issues.  These patches are conservative, in the
11332         sense that when I couldn't determine whether an overflow was possible,
11333         I inserted a run-time check.
11334         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
11335         macros.
11336         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
11337         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
11338         (re_xnrealloc, re_x2nrealloc): New inline functions.
11339         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
11340         parse_bracket_exp):
11341         (build_equiv_class, build_charclass): Check for arithmetic overflow
11342         in size expression calculations.
11343         * lib/regex_internal.c (re_string_realloc_buffers):
11344         (build_wcs_upper_buffer, re_node_set_add_intersect):
11345         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
11346         (re_dfa_add_node, register_state): Likewise.
11347         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
11348         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
11349         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
11350         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
11351
11352 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
11353
11354         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
11355         m4/ulonglong.m4.  Problem reported by Martin Lambers.
11356
11357 2005-09-02  Bruno Haible  <bruno@clisp.org>
11358
11359         Support for lib vs. lib64 distinction on biarch platforms.
11360         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
11361         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
11362         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
11363
11364 2005-09-02  Bruno Haible  <bruno@clisp.org>
11365
11366         * gnulib-tool (import): In the other first-use case, provide defaults
11367         as well.
11368
11369 2005-09-02  Bruno Haible  <bruno@clisp.org>
11370
11371         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
11372         patches not yet found in the latest gettext release.
11373
11374 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
11375
11376         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
11377         to avoid a collision with bits/local_lim.h in glibc.
11378         All uses changed.  Problem reported by Dmitry V. Levin in
11379         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
11380
11381         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
11382         bugs in int versus size_t comparisons.
11383         (re_string_context_at): Fix bug where the code assumed that
11384         Idx is signed.
11385
11386         Use bool where appropriate.
11387         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
11388         All callers changed.
11389         (calc_eclosure_iter): Likewise, for ROOT arg.
11390         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
11391         (build_charclass_op): Likewise, for NON_MATCH arg.
11392         * lib/regex_internal.c (re_string_allocate, re_string_construct):
11393         (re_string_construct_common): Likewise, for ICASE arg.
11394         * lib/regexec.c (re_search_2_stub, re_search_stub):
11395         Likewise, for RET_LEN arg.
11396         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
11397         (set_regs): Likewise, for FL_BACKTRACK arg.
11398         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
11399         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
11400         (calc_eclosure_iter, parse_bracket_exp):
11401         Use bool for internal variables that are booleans.
11402         * lib/regexec.c (re_search_internal, check_matching,
11403         proceed_next_node):
11404         (set_regs, build_sifted_states, sift_states_bkref):
11405         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
11406         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
11407         (find_collation_sequence_value):
11408         Likewise.
11409         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
11410         (re_node_set_compare):
11411         Return bool, not int. All callers changed.
11412         * lib/regexec.c (check_halt_node_context, check_dst_limits):
11413         (build_trtable, check_node_accept): Likewise.
11414         * lib/regex_internal.h: Include stdbool.h.
11415
11416         Fix bugs uncovered when converting to bool.
11417         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
11418         failure instead of charging ahead blindly.
11419         * lib/regex_internal.c (register_state): Likewise.
11420         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
11421         for freeing internal storage.
11422         (group_nodes_into_DFA_states): Use unsigned int, not int, for
11423         bitset pieces used as boolean, to avoid undefined behavior
11424         on hosts that do int overflow checking.
11425
11426 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
11427
11428         * config/srclist.txt: Add glibc bugs 1285-1287.
11429
11430 2005-09-01  Jim Meyering  <jim@meyering.net>
11431
11432         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
11433         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
11434         Require gl_STAT_MACROS, too.
11435
11436 2005-09-01  Bruno Haible  <bruno@clisp.org>
11437
11438         * gnulib-tool (import): In the first-use case, provide defaults.
11439
11440 2005-09-01  Bruno Haible  <bruno@clisp.org>
11441
11442         * gnulib-tool (func_import): Remove the .tmp files.
11443
11444 2005-09-01  Bruno Haible  <bruno@clisp.org>
11445
11446         * gnulib-tool (func_import): Fix handling of symbolic links.
11447
11448 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
11449
11450         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
11451         old glibc regex code mishandles strings longer than 2**31 bytes.
11452         This patch fixes this when the regex code is used in gnulib
11453         (i.e., outside glibc).
11454
11455         This patch should not affect the use of the regex code inside
11456         glibc.  No doubt this problem also needs to be handled for glibc
11457         as well, but the result will be an incompatible change to the
11458         glibc ABI, and the old ABI will have to be supported too.  That
11459         can be the the subject for another patch.
11460
11461         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
11462         governing whether the rest of this patch is active.  By default,
11463         the macro is disabled and the patch has no effect.
11464         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
11465         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
11466         (struct re_pattern_buffer, re_search, re_search_2, re_match):
11467         (re_match_2, re_set_registers): Use the new types.
11468         * lib/regex_internal.h (Idx, re_hashval_t): New types.
11469         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
11470         New macros.
11471         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
11472         (re_string_context_at, bin_tree_t, re_dfastate_t):
11473         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
11474         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
11475         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
11476         (re_string_char_size_at, re_string_wchar_at):
11477         (re_string_elem_size_at):
11478         Use the new types and macros to port to 64-bit hosts.
11479         Use unsigned types for internal values, so that the code
11480         mostly works even for arrays larger than SSIZE_MAX.
11481         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
11482         (search_duplicated_node, calc_eclosure_iter, fetch_number):
11483         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
11484         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
11485         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
11486         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
11487         (calc_inveclosure, parse_dup_op, build_range_exp):
11488         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
11489         (fetch_number, create_token_tree, mark_opt_subexp):
11490         Likewise.
11491         * lib/regex_internal.c (re_string_construct_common,
11492         create_ci_newstate):
11493         (create_cd_newstate, re_string_allocate, re_string_construct):
11494         (re_string_realloc_buffers, build_wcs_upper_buffer):
11495         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
11496         (re_string_reconstruct, re_string_peek_byte_case):
11497         (re_string_fetch_byte_case, re_string_context_at):
11498         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
11499         (re_node_set_init_copy, re_node_set_add_intersect):
11500         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
11501         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
11502         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
11503         (re_acquire_state, re_acquire_state_context, register_state):
11504         Likewise.
11505         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
11506         search_cur_bkref_entry):
11507         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
11508         (re_search_internal, re_search_2_stub, re_search_stub)
11509         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
11510         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
11511         (update_cur_sifted_state, check_dst_limits):
11512         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
11513         (check_subexp_limits, sift_states_bkref, merge_state_array):
11514         (check_subexp_matching_top, get_subexp, get_subexp_sub):
11515         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
11516         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
11517         (expand_bkref_cache, check_node_accept_bytes):
11518         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
11519         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
11520         (acquire_init_state_context, check_halt_node_context):
11521         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
11522         (sift_states_backward, clean_state_log_if_needed):
11523         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
11524         (find_recover_state, transit_state_sb, transit_state_mb):
11525         (transit_state_bkref, build_trtable, match_ctx_clean):
11526         Likewise.
11527         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
11528         to work around an assumption that REG_MISSING is negative.
11529
11530         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
11531         (seek_collating_symbol_entry) [defined _LIBC]:
11532         (lookup_collation_sequence_value) [defined _LIBC]:
11533         (build_range_exp, build_collating_symbol) [defined _LIBC]:
11534         Use prototypes rather than old-style function definitions.
11535         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
11536         (transit_state_sb) [0]:
11537         (find_collation_sequence_value) [defined _LIBC]: Likewise.
11538
11539         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
11540         rm_eo.
11541
11542         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
11543         (optimize_subexps, lower_subexp):
11544         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
11545         since the signed shift might overflow.  Use 1u<<31 instead.
11546         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
11547         Likewise.
11548         * lib/regexec.c (check_dst_limits_calc_pos_1,
11549         check_subexp_matching_top): Likewise.
11550
11551         * lib/regcomp.c (optimize_subexps, lower_subexp):
11552         Use CHAR_BIT rather than 8, for clarity.
11553         * lib/regexec.c (check_dst_limits_calc_pos_1):
11554         (check_subexp_matching_top): Likewise.
11555         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
11556         have to worry about portability issues when shifting it left.
11557         Remove no-longer-needed test for table_size > 0.
11558         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
11559         in a word, as the resulting behavior is undefined.
11560         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
11561         in one case, a <= should have been an <, and in another case the
11562         whole test was missing.
11563         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
11564         the standard name CHAR_BIT.
11565         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
11566         this is not true on one's complement and signed-magnitude hosts.
11567
11568         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
11569         next_last_offset.
11570         (struct re_dfa_t): Remove unused member states_alloc.
11571         * lib/regcomp.c (init_dfa): Don't initialize unused members.
11572
11573 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
11574
11575         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
11576         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
11577         and large-file glibc and in 32-bit large-file Solaris.
11578
11579 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
11580
11581         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
11582         lengths fit in regoff_t; this isn't true if regoff_t is the same
11583         width as size_t.
11584         * lib/regex.c (re_search_internal): 5th arg is LAST_START
11585         (= START + RANGE) instead of RANGE.  This avoids overflow
11586         problems when regoff_t is the same width as size_t.
11587         All callers changed.
11588         (re_search_2_stub): Check for overflow when adding the
11589         sizes of the two strings.
11590         (re_search_stub): Check for overflow when adding START
11591         to RANGE; if it occurs, substitute the extreme value.
11592
11593 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
11594
11595         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
11596
11597 2005-08-31  Jim Meyering  <jim@meyering.net>
11598
11599         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
11600         a pointer-to-const.
11601         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
11602         (register_state): Likewise.
11603         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
11604         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
11605         (group_nodes_into_DFAstates): Likewise.
11606
11607 2005-08-31  Jim Meyering  <jim@meyering.net>
11608
11609         * check-module: Add a FIXME comment.
11610
11611 2005-08-31  Eric Blake  <ebb9@byu.net>
11612
11613         * modules/unistd-safer (Files): Add unistd--.h.
11614         * modules/stdio-safer (Files): Add stdio--.h.
11615
11616 2005-08-31  Derek Price  <derek@ximbiot.com>
11617
11618         * lib/getdelim.c (getdelim): Return EOF on EOF.
11619         Reported by Larry Jones <lawrence.jones@ugs.com>.
11620
11621 2005-08-31  Bruno Haible  <bruno@clisp.org>
11622
11623         Avoid unnecessary diffs in the generated lib/Makefile.am.
11624         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
11625         the generated files.
11626         (func_import): Don't set cmd.
11627
11628 2005-08-31  Bruno Haible  <bruno@clisp.org>
11629
11630         * lib/strstr.c: Include <stddef.h>, for NULL.
11631         * lib/strcasestr.c: Likewise.
11632         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
11633
11634 2005-08-31  Bruno Haible  <bruno@clisp.org>
11635
11636         * gnulib-tool: New option --macro-prefix.
11637         (func_import): Use macro_prefix.
11638         (import): Handle option --macro-prefix.
11639
11640 2005-08-31  Bruno Haible  <bruno@clisp.org>
11641
11642         * gnulib-tool (import): Rename most ac_* variables to cached_*.
11643         Also use new variables cached_lgpl, cached_libtool.
11644
11645 2005-08-31  Bruno Haible  <bruno@clisp.org>
11646
11647         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
11648         always instantiating them.
11649
11650 2005-08-31  Bruno Haible  <bruno@clisp.org>
11651
11652         * gnulib-tool (func_import): Read the previous cached settings
11653         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
11654         earlier added by gnulib but are now dropped. Warn when a gnulib file
11655         overwrites a non-gnulib file.
11656
11657 2005-08-31  Bruno Haible  <bruno@clisp.org>
11658
11659         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
11660         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
11661         projects that don't keep autogenerated files in CVS. Put into
11662         actioncmd only the specified modules, not the transitive closure.
11663
11664 2005-08-31  Bruno Haible  <bruno@clisp.org>
11665
11666         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
11667         Create directories that shall be filled.
11668         (import): Don't look for gl_* macros in configure.ac. Recurse across
11669         all directories containing a gnulib-cache.m4 files, if meaningful.
11670
11671 2005-08-31  Bruno Haible  <bruno@clisp.org>
11672
11673         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
11674         (import): Set seen_libtool when we see gl_LIBTOOL.
11675
11676 2005-08-31  Bruno Haible  <bruno@clisp.org>
11677
11678         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
11679         declaration macro definitions from generated gnulib.m4.
11680
11681 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
11682
11683         * lib/iconvme.h: Add prototype for iconv_alloc.
11684
11685 2005-08-29  Simon Josefsson  <jas@extundo.com>
11686
11687         * lib/iconvme.c: Fix errno.
11688
11689 2005-08-29  Bruno Haible  <bruno@clisp.org>
11690
11691         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
11692         that it works when the directory contains spaces.
11693
11694 2005-08-29  Bruno Haible  <bruno@clisp.org>
11695
11696         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
11697
11698 2005-08-29  Bruno Haible  <bruno@clisp.org>
11699
11700         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
11701         Emit more advice.
11702
11703 2005-08-29  Bruno Haible  <bruno@clisp.org>
11704         and Stepan Kasal  <kasal@ucw.cz>
11705
11706         * check-module: If more parameters are given, check each of them
11707         separately; add more exceptions, as noted by Jim Meyering.
11708         (check_module): New procedure.
11709         (%exempt_header): Now contains all exceptions.
11710
11711 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
11712
11713         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
11714
11715 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
11716
11717         * lib/iconvme.c: Split iconv_string into iconv_alloc.
11718
11719 2005-08-28  Bruno Haible  <bruno@clisp.org>
11720
11721         * m4/gnulib-tool.m4: New file.
11722
11723 2005-08-27  Jim Meyering  <jim@meyering.net>
11724
11725         * modules/unistd-safer (Files): Add pipe-safer.c.
11726         * modules/fcntl-safer (Files): Add creat-safer.c.
11727
11728 2005-08-27  Jim Meyering  <jim@meyering.net>
11729
11730         * m4/stdlib-safer.m4: New file.  From coreutils.
11731         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
11732         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
11733         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
11734         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
11735         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
11736
11737 2005-08-27  Jim Meyering  <jim@meyering.net>
11738
11739         * lib/fopen-safer.c: Merge minor changes from coreutils.
11740         * lib/dup-safer.c: Likewise.
11741         * lib/fd-safer.c: Likewise.
11742
11743         Merge from coreutils.
11744         * lib/stdio--.h: New file.
11745         * lib/stdlib--.h: New file.
11746         * lib/mkstemp-safer.c: New file.
11747
11748         GNU tar needs these.
11749         * lib/pipe-safer.c: New file.
11750         * lib/creat-safer.c: New file.
11751         * lib/fcntl--.h (creat): Define to creat_safer.
11752         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
11753         * lib/unistd--.h (pipe): Define to pipe_safer.
11754         * lib/unistd-safer.h: Declare pipe_safer.
11755
11756 2005-08-26  Simon Josefsson  <jas@extundo.com>
11757
11758         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
11759         Haible <bruno@clisp.org>.
11760
11761 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
11762
11763         * lib/regex_internal.h: Remove all references to
11764         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
11765         or better.
11766         (bitset_not, bitset_merge, bitset_not_merge):
11767         (bitset_mask, re_string_allocate, re_string_construct):
11768         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
11769         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
11770         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
11771         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
11772         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
11773         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
11774         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
11775         (re_acquire_state_context):
11776         Remove unnecessary forward decls.
11777         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
11778         Put __attribute at function definition,
11779         now that the function decl has been removed.
11780         * lib/regex_internal.c (re_string_peek_byte_case):
11781         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
11782         Likewise.
11783
11784 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
11785
11786         * m4/regex.m4: Add AC_PREREQ(2.50).
11787         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
11788
11789 2005-08-25  Simon Josefsson  <jas@extundo.com>
11790
11791         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
11792         __fsetlocking.
11793
11794 2005-08-25  Simon Josefsson  <jas@extundo.com>
11795
11796         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
11797         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
11798         GLIBC specific code.
11799
11800 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
11801
11802         Make regex safe for g++.  This fixes one real bug (an "err"
11803         that should have been "*err").  g++ problem reported by
11804         Sam Steingold.
11805         * lib/regex_internal.h (re_calloc): New macro, consistent with
11806         re_malloc etc.  All callers of calloc changed to use re_calloc.
11807         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
11808         not int.  All callers changed.
11809         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
11810         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
11811         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
11812         (find_recover_state): Change "err" to "*err"; this fixes what
11813         appears to be a real bug.
11814         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
11815         versus int.
11816
11817 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
11818
11819         * modules/regex (Depends-on): Add malloc, since the code
11820         assumes that !malloc(0) means failure.
11821
11822 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
11823
11824         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
11825
11826         alloca modernization/simplification for regex.
11827         * lib/regex.c: Remove portability cruft for alloca.  This no longer
11828         needs to be at the start of the file, and can be moved into
11829         regex_internal.h and simplified.
11830         * lib/regex_internal.h: Include <alloca.h>.
11831         (__libc_use_alloca) [!defined _LIBC]: New macro.
11832         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
11833         now works outside glibc.
11834
11835 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
11836
11837         * config/srclist.txt: Add glibc bugs 1241, 1245.
11838
11839 2005-08-25  Jim Meyering  <jim@meyering.net>
11840
11841         * lib/open-safer.c: Include <config.h>.
11842         Otherwise, we'd lose LARGEFILE support in any file using
11843         e.g. "fcntl--.h"
11844
11845 2005-08-25  Bruno Haible  <bruno@clisp.org>
11846
11847         * m4/minmax.m4: Require autoconf 2.52.
11848         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
11849         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
11850         alternatives of translit over the alphabet.
11851         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
11852
11853 2005-08-24  Simon Josefsson  <jas@extundo.com>
11854
11855         * tests/test-getpass.c: New file.
11856
11857 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
11858
11859         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
11860         for GNU regex features.
11861
11862 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
11863
11864         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
11865         * lib/regex.h (regerror): Likewise.
11866
11867         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
11868         requires this.  (The code never needed it.)
11869
11870         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
11871         All uses of recently-renamed identifiers changed to use the new,
11872         POSIX-compliant names.  The code will build and run just fine
11873         without these changes, but it's better to eat our own dog food
11874         and use the standard-conforming names.
11875
11876         * lib/regex.h: Fix a multitude of POSIX name space violations.
11877         These changes have an effect only for programs that define
11878         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
11879         do not change anything for programs compiled in the normal way.
11880         Also, there is no effect on the ABI.
11881
11882         (_REGEX_SOURCE): New macro.
11883         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
11884         defined and _GNU_SOURCE is not; this fixes a name space violation.
11885
11886         Rename the following macros to obey POSIX requirements.
11887         The old names are still visible as macros if _REGEX_SOURCE is defined.
11888         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
11889         RE_BACKSLASH_ESCAPE_IN_LISTS.
11890         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
11891         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
11892         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
11893         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
11894         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
11895         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
11896         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
11897         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
11898         (REG_INTERVALS): renamed from RE_INTERVALS.
11899         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
11900         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
11901         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
11902         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
11903         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
11904         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
11905         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
11906         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
11907         RE_UNMATCHED_RIGHT_PAREN_ORD.
11908         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
11909         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
11910         (REG_DEBUG): renamed from RE_DEBUG.
11911         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
11912         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
11913         unusual, since we can't clash with the POSIX REG_ICASE.
11914         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
11915         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
11916         (REG_NO_SUB): renamed from RE_NO_SUB.
11917         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
11918         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
11919         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
11920         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
11921         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
11922         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
11923         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
11924         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
11925         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
11926         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
11927         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
11928         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
11929         RE_SYNTAX_POSIX_MINIMAL_BASIC.
11930         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
11931         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
11932         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
11933         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
11934         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
11935         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
11936         (REG_FIXED): Renamed from REGS_FIXED.
11937         (REG_NREGS): Renamed from RE_NREGS.
11938
11939         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
11940         of other REG_* macros, since POSIX says the user is allowed to
11941         #undef these macros selectively.
11942
11943         (reg_errcode_t): Update comment stating what other tables need
11944         to be consistent.
11945
11946         Rename the following enum values to obey POSIX requirements.
11947         The old names are still visible as macros.
11948         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
11949         is not defined, since GNU is supposed to be a superset of POSIX as
11950         much as possible, and since we want reg_errcode_t to be a signed
11951         type for implementation consistency.
11952         (_REG_NOERROR): Renamed from REG_NOERROR.
11953         (_REG_NOMATCH): Renamed from REG_NOMATCH.
11954         (_REG_BADPAT): Renamed from REG_BADPAT.
11955         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
11956         (_REG_ECTYPE): Renamed from REG_ECTYPE.
11957         (_REG_EESCAPE): Renamed from REG_EESCAPE.
11958         (_REG_ESUBREG): Renamed from REG_ESUBREG.
11959         (_REG_EBRACK): Renamed from REG_EBRACK.
11960         (_REG_EPAREN): Renamed from REG_EPAREN.
11961         (_REG_EBRACE): Renamed from REG_EBRACE.
11962         (_REG_BADBR): Renamed from REG_BADBR.
11963         (_REG_ERANGE): Renamed from REG_ERANGE.
11964         (_REG_ESPACE): Renamed from REG_ESPACE.
11965         (_REG_BADRPT): Renamed from REG_BADRPT.
11966         (_REG_EEND): Renamed from REG_EEND.
11967         (_REG_ESIZE): Renamed from REG_ESIZE.
11968         (_REG_ERPAREN): Renamed from REG_ERPAREN.
11969         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
11970         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
11971         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
11972         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
11973
11974         (_REG_RE_NAME, _REG_RM_NAME): New macros.
11975         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
11976         changed.  But support the old name if the new one is not defined
11977         and if _REGEX_SOURCE.
11978
11979         Change the following member names in struct re_pattern_buffer.
11980         The old names are still supported if !_REGEX_SOURCE.
11981         The new names are always supported, regardless of _REGEX_SOURCE.
11982         (re_buffer): Renamed from buffer.
11983         (re_allocated): Renamed from allocated.
11984         (re_used): Renamed from used.
11985         (re_syntax): Renamed from syntax.
11986         (re_fastmap): Renamed from fastmap.
11987         (re_translate): Renamed from translate.
11988         (re_can_be_null): Renamed from can_be_null.
11989         (re_regs_allocated): Renamed from regs_allocated.
11990         (re_fastmap_accurate): Renamed from fastmap_accurate.
11991         (re_no_sub): Renamed from no_sub.
11992         (re_not_bol): Renamed from not_bol.
11993         (re_not_eol): Renamed from not_eol.
11994         (re_newline_anchor): Renamed from newline_anchor.
11995
11996         Change the following member names in struct re_registers.
11997         The old names are still supported if !_REGEX_SOURCE.
11998         The new names are always supported, regardless of _REGEX_SOURCE.
11999         (rm_num_regs): Renamed from num_regs.
12000         (rm_start): Renamed from start.
12001         (rm_end): Renamed from end.
12002
12003         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
12004         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
12005         Prepend __ to parameter names.
12006
12007         Undo yesterday's changes.
12008
12009 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
12010
12011         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
12012         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
12013         lib/regex.c.
12014
12015 2005-08-24  Jim Meyering  <jim@meyering.net>
12016
12017         Sync from coreutils.
12018         * m4/fcntl-safer.m4: New file.
12019
12020         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
12021         and object files for this module.
12022
12023 2005-08-24  Jim Meyering  <jim@meyering.net>
12024
12025         Sync from coreutils.
12026         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
12027
12028 2005-08-24  Jim Meyering  <jim@meyering.net>
12029
12030         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
12031         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
12032
12033 2005-08-24  Jim Meyering  <jim@meyering.net>
12034
12035         * modules/fcntl-safer: New module.
12036         * modules/fts (Depends-on): Add fcntl-safer.
12037         * MODULES.html.sh (File descriptor based Input/Output):
12038         Add fcntl-safer.
12039
12040 2005-08-24  Bruno Haible  <bruno@clisp.org>
12041
12042         Support for unit test modules.
12043         * modules/README: Mention tests modules.
12044         * modules/TEMPLATE-TESTS: New file.
12045         * gnulib-tool: New options --extract-tests-module, --with-tests and
12046         --tests-base (unused for the moment).
12047         (testsbase, inctests): New variables.
12048         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
12049         (func_verify_module): Exclude TEMPLATE-TESTS.
12050         (func_verify_nontests_module, func_verify_tests_module): New functions.
12051         (func_get_dependencies): Add implicit dependency for tests modules.
12052         (func_get_tests_module): New function.
12053         (func_modules_transitive_closure): When --with-tests was specified,
12054         include the unit tests as well, unless explicitly avoided.
12055         (func_emit_lib_Makefile_am): Ignore the tests modules here.
12056         (func_emit_tests_Makefile_am): New function.
12057         (func_create_testdir): When --with-tests was specified, emit a
12058         tests/ directory.
12059         * MODULES.html.sh (Future developments): Update.
12060
12061 2005-08-24  Bruno Haible  <bruno@clisp.org>
12062
12063         * modules/tls-tests: New file.
12064         * tests/test-tls.c: New file, from GNU gettext.
12065
12066 2005-08-24  Bruno Haible  <bruno@clisp.org>
12067
12068         * modules/lock-tests: New file.
12069         * tests/test-lock.c: New file, from GNU gettext.
12070
12071 2005-08-24  Bruno Haible  <bruno@clisp.org>
12072
12073         * lib/lock.h: Add multiple inclusion guard.
12074         * lib/tls.h: Add multiple inclusion guard.
12075
12076 2005-08-24  Bruno Haible  <bruno@clisp.org>
12077
12078         * gnulib-tool: Add support for the --aux-dir option to
12079         --create-testdir, --create-megatestdir, --test, --megatest.
12080         (func_create_testdir, func_create_megatestdir): Optionally emit a
12081         AC_CONFIG_AUX_DIR directive.
12082         (create-testdir, create-megatestdir, test, megatest): Provide a
12083         default value for $auxdir.
12084
12085 2005-08-24  Bruno Haible  <bruno@clisp.org>
12086
12087         * gnulib-tool (import): Use compound statement instead of subshell
12088         where possible.
12089
12090 2005-08-24  Bruno Haible  <bruno@clisp.org>
12091
12092         * gnulib-tool (import): Change --aux-dir default to "build-aux".
12093
12094 2005-08-24  Bruno Haible  <bruno@clisp.org>
12095
12096         * gnulib-tool (func_version): Update.
12097
12098 2005-08-24  Bruno Haible  <bruno@clisp.org>
12099
12100         * gnulib-tool (func_import, func_create_testdir,
12101         func_create_megatestdir): Quote all autoconf macro arguments.
12102
12103 2005-08-24  Bruno Haible  <bruno@clisp.org>
12104
12105         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
12106         option --force, because --force causes the aclocal.m4 of each
12107         subdirectory to be newer than the corresponding config.h.in.
12108
12109 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
12110
12111         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
12112         All contents moved to gl_REGEX.
12113         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
12114         assume that it does.
12115
12116 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
12117
12118         * lib/regex.h (REG_NOSYS)
12119         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
12120         Define, since POSIX requires it as of 2001.
12121         (_REG_ENOSYS)
12122         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
12123         New private symbol, used to keep the enum signed in all cases.
12124         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
12125         Youngman in
12126         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
12127
12128         * lib/regex_internal.c (re_string_skip_chars, register_state):
12129         (calc_state_hash):
12130         Remove forward decls; no longer needed now that we use prototypes.
12131         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
12132         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
12133         (clean_state_log_if_needed): Likewise.
12134
12135 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
12136
12137         * config/srclist.txt: Add glibc bugs 1231-1233.
12138
12139 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
12140
12141         Fix problems reported by Sam Steingold in
12142         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
12143         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
12144         assumed that reg_errcode_t is a signed type, which is not
12145         necessarily true if _XOPEN_SOURCE is not defined.
12146         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
12147         since some compilers warn about it otherwise.
12148
12149 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
12150
12151         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
12152         (init_word_char, create_initial_state, duplicate_node_closure):
12153         (fetch_token, peek_token_bracket, build_range_exp):
12154         (build_collating_symbol): Remove forward decls; no longer needed
12155         now that we use prototypes.
12156
12157         * lib/regcomp.c:
12158         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
12159         (re_compile_fastmap_iter, regcomp, regerror, regfree):
12160         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
12161         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
12162         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
12163         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
12164         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
12165         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
12166         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
12167         (build_range_exp, build_collating_symbol, parse_bracket_exp):
12168         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
12169         (build_charclass, build_charclass_op, fetch_number, create_tree):
12170         (create_token_tree, mark_opt_subexp, duplicate_tree):
12171         Use prototypes rather than old-style definitions.
12172
12173         * lib/regex_internal.c:
12174         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
12175         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
12176         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
12177         (re_string_reconstruct, re_string_peek_byte_case):
12178         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
12179         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
12180         (re_node_set_init_copy, re_node_set_add_intersect):
12181         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
12182         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
12183         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
12184         (re_acquire_state, re_acquire_state_context, register_state):
12185         (create_ci_newstate, create_cd_newstate, free_state):
12186         Likewise.
12187         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
12188         re_search_2):
12189         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
12190         (re_search_internal, prune_impossible_nodes):
12191         (acquire_init_state_context, check_matching, static):
12192         (check_halt_node_context, check_halt_state_context, proceed_next_node):
12193         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
12194         (update_regs, sift_states_backward, build_sifted_states):
12195         (clean_state_log_if_needed, merge_state_array):
12196         (update_cur_sifted_state, add_epsilon_src_nodes):
12197         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
12198         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
12199         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
12200         (find_recover_state, check_subexp_matching_top, transit_state_mb):
12201         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
12202         (check_arrival, check_arrival_add_next_nodes):
12203         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
12204         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
12205         (check_node_accept_bytes, check_node_accept, extend_buffers):
12206         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
12207         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
12208         (sift_ctx_init):
12209         Likewise.
12210
12211         * lib/regex_internal.h:
12212         (re_string_allocate, re_string_construct, re_string_reconstruct):
12213         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
12214         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
12215         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
12216         (re_string_context_at, re_string_peek_byte_case):
12217         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
12218         is defined, since we now use prototypes always.
12219
12220         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
12221         C89 or better.  All uses removed.
12222
12223 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
12224
12225         * config/srclist.txt: Add glibc bugs 1220-1227.
12226
12227 2005-08-20  Jim Meyering  <jim@meyering.net>
12228
12229         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
12230         of unused local, dfa.
12231
12232 2005-08-20  Bruno Haible  <bruno@clisp.org>
12233
12234         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
12235
12236 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
12237
12238         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
12239         (re_node_set_insert_last, re_dfa_add_node):
12240         Rename local variables to avoid GCC shadowing warnings.
12241
12242 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
12243
12244         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
12245         [defined lint]: Suppress bogus uninitialized-variable warnings.
12246
12247         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
12248         and let the caller return REG_ESPACE if out of space.  This
12249         removes an uninitialied-variable warning with GCC 4.0.1, and also
12250         avoids taking the address of a local variable.  All callers
12251         changed.
12252
12253 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
12254
12255         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
12256         $LIBCSRC/posix/regexec.c.
12257         Add glibc bug 1217 for regcomp.c.
12258
12259 2005-08-19  Jim Meyering  <jim@meyering.net>
12260
12261         * lib/regexec.c (proceed_next_node): Redo local variables to
12262         avoid GCC shadowing warnings.
12263
12264 2005-08-18  Bruno Haible  <bruno@clisp.org>
12265
12266         * lib/strstr.c (strstr): Fix return value in multibyte case.
12267         * lib/strcasestr.c (strcasestr): Likewise.
12268
12269 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
12270
12271         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
12272
12273 2005-08-17  Jim Meyering  <jim@meyering.net>
12274
12275         Make the %s format (seconds since the epoch) work for a negative
12276         number and when used with a zero-padded field width, e.g. %015s.
12277
12278         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
12279         label so that it precedes the code to set `digits'.  Otherwise,
12280         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
12281         print `00-22'.  Now, it prints `-0022', as it should.
12282
12283 2005-08-17  Bruno Haible  <bruno@clisp.org>
12284
12285         * modules/strstr (Files): Add m4/mbrtowc.m4.
12286         (Depends-on): Add mbuiter.
12287
12288 2005-08-17  Bruno Haible  <bruno@clisp.org>
12289
12290         * modules/strcasestr: New file.
12291         * MODULES.html.sh (String handling, based on ANSI C 89): Add
12292         strcasestr.
12293
12294 2005-08-17  Bruno Haible  <bruno@clisp.org>
12295
12296         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
12297
12298 2005-08-17  Bruno Haible  <bruno@clisp.org>
12299
12300         * modules/mbuiter: New file.
12301         * MODULES.html.sh (Extended multibyte and wide character utilities):
12302         Add mbuiter.
12303
12304 2005-08-17  Bruno Haible  <bruno@clisp.org>
12305
12306         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
12307         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
12308
12309 2005-08-17  Bruno Haible  <bruno@clisp.org>
12310
12311         * m4/strcasestr.m4: New file.
12312
12313 2005-08-17  Bruno Haible  <bruno@clisp.org>
12314
12315         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
12316         * lib/strstr.c: Completely rewritten, with multibyte locale support.
12317
12318 2005-08-17  Bruno Haible  <bruno@clisp.org>
12319
12320         * lib/strcasestr.h: New file.
12321         * lib/strcasestr.c: New file.
12322
12323 2005-08-17  Bruno Haible  <bruno@clisp.org>
12324
12325         * lib/strcasecmp.c: Use mbuiter.h.
12326
12327 2005-08-17  Bruno Haible  <bruno@clisp.org>
12328
12329         * lib/mbuiter.h: New file.
12330
12331 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
12332
12333         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
12334         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
12335         and gl_GETOPT are both invoked via different paths (as happens
12336         with GNU tar CVS because it uses both argp and getopt), the former
12337         wins.
12338
12339 2005-08-16  Bruno Haible  <bruno@clisp.org>
12340
12341         * modules/tls: New file.
12342         * MODULES.html.sh (Multithreading): Add tls.
12343
12344 2005-08-16  Bruno Haible  <bruno@clisp.org>
12345
12346         * modules/strnlen1: New file.
12347         * MODULES.html.sh (String handling): Add strnlen1.
12348
12349 2005-08-16  Bruno Haible  <bruno@clisp.org>
12350
12351         * modules/strcase (Files): Add m4/mbrtowc.m4.
12352         (Depends-on): Add strnlen1, mbchar.
12353
12354 2005-08-16  Bruno Haible  <bruno@clisp.org>
12355
12356         * modules/mbiter: New file.
12357         * MODULES.html.sh (Extended multibyte and wide character utilities):
12358         Add mbiter.
12359
12360 2005-08-16  Bruno Haible  <bruno@clisp.org>
12361
12362         * modules/mbfile: New file.
12363         * MODULES.html.sh (Extended multibyte and wide character utilities):
12364         Add mbfile.
12365
12366 2005-08-16  Bruno Haible  <bruno@clisp.org>
12367
12368         * modules/mbchar: New file.
12369         * MODULES.html.sh (Extended multibyte and wide character utilities):
12370         New section.
12371
12372 2005-08-16  Bruno Haible  <bruno@clisp.org>
12373
12374         * m4/tls.m4: New file, from GNU gettext.
12375
12376 2005-08-16  Bruno Haible  <bruno@clisp.org>
12377
12378         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
12379         always.
12380         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
12381
12382 2005-08-16  Bruno Haible  <bruno@clisp.org>
12383
12384         * m4/mbiter.m4: New file.
12385
12386 2005-08-16  Bruno Haible  <bruno@clisp.org>
12387
12388         * m4/mbfile.m4: New file.
12389
12390 2005-08-16  Bruno Haible  <bruno@clisp.org>
12391
12392         * m4/mbchar.m4: New file.
12393
12394 2005-08-16  Bruno Haible  <bruno@clisp.org>
12395
12396         * lib/tls.h: New file, from GNU gettext.
12397         * lib/tls.c: New file, from GNU gettext.
12398
12399 2005-08-16  Bruno Haible  <bruno@clisp.org>
12400
12401         * lib/strnlen1.h: New file.
12402         * lib/strnlen1.c: New file.
12403
12404 2005-08-16  Bruno Haible  <bruno@clisp.org>
12405
12406         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
12407         (mbi_init): Update.
12408         (mbi_avail, mbi_advance): Let the iteration end before the terminating
12409         NUL byte, not after it.
12410
12411 2005-08-16  Bruno Haible  <bruno@clisp.org>
12412
12413         * lib/strcase.h (strcasecmp): Add note in comments.
12414         * lib/strncasecmp.c: Use code from strcasecmp.c.
12415         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
12416         (strcasecmp): Work correctly in multibyte locales.
12417
12418 2005-08-16  Bruno Haible  <bruno@clisp.org>
12419
12420         * lib/mbiter.h: New file.
12421
12422 2005-08-16  Bruno Haible  <bruno@clisp.org>
12423
12424         * lib/mbfile.h: New file.
12425
12426 2005-08-16  Bruno Haible  <bruno@clisp.org>
12427
12428         * lib/mbchar.h: New file.
12429         * lib/mbchar.c: New file.
12430
12431 2005-08-16  Bruno Haible  <bruno@clisp.org>
12432
12433         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
12434         the valid ones. Makes the comparison operations transitive:
12435         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
12436         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
12437
12438 2005-08-15  Simon Josefsson  <jas@extundo.com>
12439
12440         * modules/ssize_t (License): Change to 'unlimited'.
12441
12442         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
12443
12444 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
12445
12446         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
12447         Add comments for each pending glibc patch.
12448
12449 2005-08-15  Bruno Haible  <bruno@clisp.org>
12450
12451         * lib/regex.h (__restrict_arr): Don't define to __restrict if
12452         __cplusplus is defined.
12453
12454 2005-08-14  Jim Meyering  <jim@meyering.net>
12455
12456         Sync from coreutils.
12457
12458         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
12459         Use the hash-table-based cycle-detection code not just when
12460         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
12461         Reported by James Youngman in
12462         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
12463         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
12464         FTS_TIGHT_CYCLE_CHECK.
12465         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
12466         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
12467         once again.
12468         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
12469         * lib/fts.c (fd_safer): Remove decl.
12470         Include fcntl--.h rather than unistd-safer.h
12471         (fts_safe_changedir): Don't call fd_safer; no longer needed
12472         now that we include fcntl--.h.
12473
12474 2005-08-12  Simon Josefsson  <jas@extundo.com>
12475
12476         * modules/getndelim2: Use ssize_t module.
12477         * modules/getnline: Likewise.
12478         * modules/safe-read: Likewise.
12479         * modules/xreadlink: Likewise.
12480
12481         * modules/ssize_t: New file.
12482
12483 2005-08-12  Simon Josefsson  <jas@extundo.com>
12484
12485         * m4/readline.m4: Look for termcap, curses or ncurses if required.
12486
12487 2005-08-12  Simon Josefsson  <jas@extundo.com>
12488
12489         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
12490         ssize_t.
12491
12492 2005-08-12  Simon Josefsson  <jas@extundo.com>
12493
12494         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
12495         readline, getdelim and check_version.
12496         (Support for systems lacking ISO C 99: Sizes of integer types):
12497         Add size_max.
12498
12499 2005-08-12  Bruno Haible  <bruno@clisp.org>
12500
12501         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
12502
12503 2005-08-11  Simon Josefsson  <jas@extundo.com>
12504
12505         * modules/readline: New file.
12506
12507         * modules/strnlen (Files): Add strnlen.h.
12508
12509 2005-08-11  Simon Josefsson  <jas@extundo.com>
12510
12511         * m4/readline.m4: New file.
12512
12513 2005-08-11  Simon Josefsson  <jas@extundo.com>
12514
12515         * lib/readline.h, readline.c: New file.
12516
12517 2005-08-11  Simon Josefsson  <jas@extundo.com>
12518
12519         * doc/gnulib.texi (Initial import, Finishing touches): Mention
12520         gl_AVOID.
12521
12522 2005-08-11  Bruno Haible  <bruno@clisp.org>
12523
12524         * lib/strnlen.h (strnlen): Change parameter name to match comment.
12525
12526 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
12527
12528         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
12529
12530 2005-08-10  Simon Josefsson  <jas@extundo.com>
12531
12532         * tests/test-iconvme.c: New file.
12533
12534 2005-08-10  Simon Josefsson  <jas@extundo.com>
12535
12536         * m4/strnlen.m4: New file.
12537
12538         * m4/strndup.m4: Don't check for strnlen declaration, done in
12539         strnlen.m4.
12540
12541 2005-08-10  Simon Josefsson  <jas@extundo.com>
12542
12543         * lib/strndup.c: Use strnlen.h.
12544
12545         * lib/strnlen.h: New file.
12546
12547 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
12548
12549         * README: Typos.
12550
12551 2005-08-02  Simon Josefsson  <jas@extundo.com>
12552
12553         * modules/readline: New file.
12554
12555 2005-08-02  Simon Josefsson  <jas@extundo.com>
12556
12557         * modules/getdelim: New file.
12558
12559         * modules/getline: Rewrite, don't use getndelim2.
12560
12561 2005-08-02  Simon Josefsson  <jas@extundo.com>
12562
12563         * m4/getline.m4: Separate out getdelim stuff into separate module.
12564
12565         * m4/getdelim.m4: New file.
12566
12567 2005-08-02  Simon Josefsson  <jas@extundo.com>
12568
12569         * lib/getline.h, getline.c: Rewrite.
12570
12571         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
12572
12573 2005-07-31  Bruno Haible  <bruno@clisp.org>
12574
12575         * lib/lock.h (gl_lock_initializer): New macro.
12576         (gl_lock_define_initialized): Use it.
12577         (gl_rwlock_initializer): New macro.
12578         (gl_rwlock_define_initialized): Use it.
12579         (gl_recursive_lock_initializer): New macro.
12580         (gl_recursive_lock_define_initialized): Use it.
12581
12582 2005-07-30  Karl Berry  <karl@gnu.org>
12583
12584         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
12585         Report from Ben Pfaff, regarding getopt.
12586
12587 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
12588
12589         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
12590         normal way.
12591         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
12592         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
12593         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
12594         (gl_GETOPT): Use the new macros.  Most of the implementation
12595         is moved to the new macros.  This is for programs like Emacs
12596         that don't want all the functionality of gl_GETOPT.
12597
12598 2005-07-26  Bruno Haible  <bruno@clisp.org>
12599
12600         * m4/lock.m4: Update from GNU gettext.
12601
12602 2005-07-26  Bruno Haible  <bruno@clisp.org>
12603
12604         * lib/lock.h: Update from GNU gettext.
12605         * lib/lock.c: Update from GNU gettext.
12606
12607 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
12608
12609         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
12610         obsolescent AC_TRY_RUN.  Include the default includes files, for
12611         'exit'.
12612
12613 2005-07-24  Bruno Haible  <bruno@clisp.org>
12614
12615         * modules/visibility: New file.
12616         * MODULES.html.sh (Misc): Add visibility.
12617
12618 2005-07-24  Bruno Haible  <bruno@clisp.org>
12619
12620         * m4/visibility.m4: New file.
12621
12622 2005-07-24  Bruno Haible  <bruno@clisp.org>
12623
12624         * doc/visibility.texi: New file.
12625
12626 2005-07-22  Bruno Haible  <bruno@clisp.org>
12627
12628         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
12629         $(ALLOCA_H), redundant through BUILT_SOURCES.
12630         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
12631         redundant through BUILT_SOURCES.
12632         * modules/byteswap (Makefile.am): Remove explicit dependency on
12633         $(BYTESWAP_H), redundant through BUILT_SOURCES.
12634         * modules/fnmatch (Makefile.am): Remove explicit dependency on
12635         $(FNMATCH_H), redundant through BUILT_SOURCES.
12636         * modules/getopt (Makefile.am): Remove explicit dependency on
12637         $(GETOPT_H), redundant through BUILT_SOURCES.
12638         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
12639         redundant through BUILT_SOURCES.
12640         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
12641         redundant through BUILT_SOURCES.
12642         * modules/stdbool (Makefile.am): Remove explicit dependency on
12643         $(STDBOOL_H), redundant through BUILT_SOURCES.
12644         * modules/stdint (Makefile.am): Remove explicit dependency on
12645         $(STDINT_H), redundant through BUILT_SOURCES.
12646         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
12647         Remove explicit dependency on $(SYSEXITS_H).
12648         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
12649
12650 2005-07-18  Simon Josefsson  <jas@extundo.com>
12651
12652         * lib/check-version.c (check_version): Accept identical versions too.
12653
12654 2005-07-18  Bruno Haible  <bruno@clisp.org>
12655
12656         * modules/lock: New file.
12657         * MODULES.html.sh (Multithreading): New section.
12658
12659 2005-07-18  Bruno Haible  <bruno@clisp.org>
12660
12661         * m4/lock.m4: New file, from GNU gettext.
12662
12663 2005-07-18  Bruno Haible  <bruno@clisp.org>
12664
12665         * lib/lock.h: New file, from GNU gettext.
12666         * lib/lock.c: New file, from GNU gettext.
12667
12668 2005-07-18  Bruno Haible  <bruno@clisp.org>
12669
12670         * lib/lock.h (gl_once_t): New type.
12671         (gl_once_define, gl_once): New macros.
12672         * lib/lock.c (fresh_once): New variable.
12673         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
12674         functions.
12675
12676 2005-07-16  Simon Josefsson  <jas@extundo.com>
12677
12678         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
12679         workaround, suggested by Bruno.
12680
12681 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
12682
12683         * modules/xalloc (Depends-on): Add xalloc-die.
12684         * modules/xvasprintf (Depends-on): Add xalloc-die.
12685
12686 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
12687
12688         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
12689         with a minor change.
12690
12691 2005-07-15  Bruno Haible  <bruno@clisp.org>
12692
12693         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
12694         When using lib/poll.c, define poll as rpl_poll.
12695
12696 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
12697
12698         * modules/argp (Depends-on): Remove unlocked-io.
12699
12700 2005-07-14  Derek Price  <derek@ximbiot.com>
12701
12702         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
12703         for glob symlink bug.
12704
12705 2005-07-14  Bruno Haible  <bruno@clisp.org>
12706
12707         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
12708         Instead, test for *_unlocked function declarations directly.
12709
12710 2005-07-11  Simon Josefsson  <jas@extundo.com>
12711
12712         * modules/size_max: New file.
12713
12714         * modules/xsize: Depend on size_max module for size_max.m4.
12715
12716 2005-07-11  Simon Josefsson  <jas@extundo.com>
12717
12718         * lib/size_max.h: New file.
12719
12720 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
12721
12722         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
12723         copyright symbol and the year.
12724         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
12725         (version_etc_va): Use parameterized copyright notice.
12726         Reword to conform to the current GNU coding standards.
12727
12728 2005-07-11  Karl Berry  <karl@gnu.org>
12729
12730         * doc/gnulib.texi (Quoting): new node.
12731         (Initial import): more info, from Patrice.
12732
12733 2005-07-11  Bruno Haible  <bruno@clisp.org>
12734
12735         * gnulib-tool (func_usage): Document option --avoid.
12736         (Command line options): Handle --avoid.
12737         (func_acceptable): New function.
12738         (func_modules_transitive_closure): Use it.
12739
12740 2005-07-11  Bruno Haible  <bruno@clisp.org>
12741
12742         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
12743         Reported by Jim Meyering.
12744
12745 2005-07-10  Bruno Haible  <bruno@clisp.org>
12746
12747         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
12748         Needed when size_t is smaller than 'unsigned int'.
12749         Reported by Paul Eggert.
12750
12751 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
12752
12753         * modules/argp (Depends-on): Add unlocked-io
12754
12755 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
12756
12757         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
12758         block of defines.
12759
12760 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
12761
12762         * config/srclist.txt: Comment out regcomp.c, since we have a porting
12763         fix now.
12764
12765 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
12766         and Paul Eggert  <eggert@cs.ucla.edu>
12767
12768         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
12769         in wint_t, not wchar_t.  Remove now-unnecessary cast.
12770
12771 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
12772
12773         * modules/regex (Files): Add lib/regex_internal.c,
12774         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
12775         (Depends-on): Add extensions.
12776         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
12777
12778 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
12779
12780         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
12781         pathconf.
12782         * m4/same.m4 (gl_SAME): Likewise.
12783         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
12784
12785         * m4/regex.m4: Adjust to new libc regex implementation.
12786         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
12787         all the .c and .h parts of (the new) regex.
12788         Quote the m4 stuff better.
12789         Check for RE_ICASE bug of old gnulib.
12790         Check for REG_STARTEND of recent libc.
12791         Rename local variables from jm_* to gl_*.
12792         Quote operand of "test -f".
12793         Say "recent enough" version of libc, not "version 2".
12794         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
12795         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
12796         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
12797         Remove check for btowc, isascii.
12798         Require AM_LANGINFO_CODESET.
12799
12800 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
12801
12802         * lib/regex.c, regex.h: Sync from libc.
12803         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
12804         * lib/regexec.c:
12805         New files, synced from libc, except that regex_internal.h
12806         currently has a small porting fix.
12807
12808 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
12809
12810         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
12811         regex_internal.c, regexec.c.
12812         Add regex_internal.h too, but as a comment, since the libc version
12813         is currently broken in gnulib mode.
12814
12815 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
12816
12817         Support programs like Emacs that use gnulib but not gettext.
12818         * MODULES.html.sh (Internationalization functions): Add gettext-h.
12819         * modules/gettext-h: New file.
12820         * modules/gettext (Files): Remove lib/gettext.h.
12821         (Depends-on): Add gettext-h.
12822         (Makefile.am): Remove lib_SOURCES.
12823         * modules/argmatch, modules/c-stack, modules/closeout:
12824         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
12825         * modules/execute, modules/file-type, modules/getaddrinfo:
12826         * modules/getopt, modules/human, modules/javacomp:
12827         * modules/javaexec, modules/mkdir-p, modules/obstack:
12828         * modules/openat, modules/pagealign_alloc, modules/pipe:
12829         * modules/quotearg, modules/regex, modules/rpmatch:
12830         * modules/unicodeio, modules/userspec, modules/version-etc:
12831         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
12832         * modules/xsetenv:
12833         Depend on gettext-h, not gettext.
12834
12835 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
12836
12837         * gnulib-tool (func_import): Add support for 'public domain' license.
12838         * modules/alloca, modules/atexit, modules/memmove:
12839         Now public domain, not GPL.
12840         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
12841         * modules/realloc, modules/strerror, modules/strtod:
12842         Now LGPL, not GPL.
12843
12844 2005-07-05  Bruno Haible  <bruno@clisp.org>
12845
12846         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
12847         autoconf CVS. Needed for mingw.
12848
12849 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
12850
12851         Remove the dependency of the strftime module on the tzset module.
12852         * modules/strftime (Depends-on): Remove dependency on tzset.
12853
12854 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
12855
12856         Remove the dependency of the strftime module on the tzset module.
12857         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
12858         gl_FUNC_TZSET_CLOBBER.
12859
12860 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
12861
12862         Remove the dependency of the strftime module on the tzset module.
12863         * lib/strftime.c (my_strftime)
12864         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
12865         Copy the input structure, to work around some of the bug with
12866         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
12867         Solaris releases, you should also use the tzset module, but we won't
12868         require it as a dependency any more since we don't want LGPLed code
12869         to depend on GPLed code.
12870
12871 2005-07-02  Jim Meyering  <jim@meyering.net>
12872
12873         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
12874         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
12875         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
12876         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
12877
12878 2005-07-02  Jim Meyering  <jim@meyering.net>
12879
12880         * lib/backupfile.c (backup_args): Change a `0' to NULL.
12881
12882 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
12883
12884         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
12885         declares only 'struct timespec;' (!).
12886
12887 2005-07-01  Jim Meyering  <jim@meyering.net>
12888
12889         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
12890         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
12891         * lib/save-cwd.c, tempname.c:
12892         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
12893         and don't include <sys/file.h>).
12894
12895 2005-06-29  Jim Meyering  <jim@meyering.net>
12896
12897         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
12898         type name.  Use the variable name instead.
12899         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
12900         Likewise.
12901
12902 2005-06-28  Simon Josefsson  <jas@extundo.com>
12903
12904         * modules/check-version (Files): Add check-version.m4.
12905
12906 2005-06-28  Simon Josefsson  <jas@extundo.com>
12907
12908         * m4/check-version.m4: New file, suggested by Jim Meyering
12909         <jim@meyering.net>.
12910
12911 2005-06-28  Simon Josefsson  <jas@extundo.com>
12912
12913         * lib/check-version.h, lib/check-version.c: New files.
12914
12915 2005-06-28  Simon Josefsson  <jas@extundo.com>
12916
12917         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
12918         collision with global variable.  Better indentation.  Don't
12919         increment buffer pointer beyond buffer end.  Based on comments
12920         from Paul Eggert <eggert@cs.ucla.edu>.
12921
12922         * lib/base64.h: Indent.
12923
12924 2005-06-28  Simon Josefsson  <jas@extundo.com>
12925
12926         * doc/gnulib.texi (Library version handling): New section.
12927
12928 2005-06-28  Jim Meyering  <jim@meyering.net>
12929
12930         * check-module (find_included_lib_files): Hard-code another
12931         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
12932         but modules/fts-lgpl (correctly) does not list those files.
12933
12934         * modules/canonicalize (Files): Add lib/pathmax.h.
12935
12936 2005-06-25  Simon Josefsson  <jas@extundo.com>
12937
12938         * modules/check-version: New file.
12939
12940 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
12941
12942         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
12943         initializer of struct addrinfo, as an indication that we don't
12944         care how many members the structure has.
12945
12946 2005-06-24  Derek Price  <derek@ximbiot.com>
12947         and Bruno Haible  <bruno@clisp.org>
12948
12949         Remove stat module & update lstat.
12950         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
12951         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
12952         * m4/stat.m4: Remove this file.
12953
12954 2005-06-24  Derek Price  <derek@ximbiot.com>
12955         and Bruno Haible  <bruno@clisp.org>
12956
12957         Remove stat module & update lstat.
12958         * lib/stat.c: Remove this file...
12959         (slash_aware_lstat): ...moving this content and its support...
12960         * lib/lstat.c (rpl_lstat): ...into here.
12961         * lib/lstat.h: New file.
12962
12963 2005-06-24  Derek Price  <derek@ximbiot.com>
12964         and Bruno Haible  <bruno@clisp.org>
12965
12966         Remove stat module & update lstat.
12967         * config/srclist.txt (libc sources): Remove stat.
12968
12969 2005-06-24  Derek Price  <derek@ximbiot.com>
12970         and Bruno Haible  <bruno@clisp.org>
12971
12972         Remove stat module & update lstat.
12973         * MODULES.html.sh (stat): Remove.
12974         * MODULES.html: Regenerated.
12975         * modules/lstat (Description): Correct function name.
12976         (Files): Add "lstat.h".
12977         (Depends-on): Remove stat, add xalloc, stat-macros.
12978         * modules/stat: Remove this file.
12979         (Include): Add "lstat.h", remove <sys/stat.h>.
12980
12981 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
12982
12983         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
12984         (ranged_convert): Don't save conversion in a temporary struct.
12985         This causes a warning with GCC 4.0.0, and anyway in the typical
12986         case it's not worth the extra 100 bytes or so of code.
12987         (ranged_convert, __mktime_internal): When calling a function via a
12988         pointer P, use P () rather than (*P) (), as we now assume C89 or
12989         better.
12990
12991 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
12992
12993         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
12994         "who -r" failed to give output.  Problem reported by Tim Waugh.
12995
12996         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
12997         (xcalloc): Use it to avoid needless tests.
12998         Problem reported by Jim Meyering.
12999
13000 2005-06-20  Derek Price  <derek@ximbiot.com>
13001
13002         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
13003         unnecessary for Autoconfs > 2.59c.
13004
13005 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
13006
13007         * lib/argp.h (__option_is_short): Check upper limit of
13008         __key. Isprint() requires its argument to have the value
13009         of an unsigned char or EOF.
13010
13011 2005-06-16  Jim Meyering  <jim@meyering.net>
13012
13013         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
13014         when either N or S is zero.
13015
13016 2005-06-16  Derek Price  <derek@ximbiot.com>
13017
13018         * m4/bison.m4: Declare YACC & YFLAGS precious.
13019
13020 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
13021
13022         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
13023         multibyte string or pattern, fall back on unibyte matching.
13024         Problem reported by James Youngman.
13025
13026 2005-06-08  Bruno Haible  <bruno@clisp.org>
13027
13028         * modules/csharpcomp: New file.
13029         * MODULES.html.sh (C#): Add csharpcomp.
13030
13031 2005-06-08  Bruno Haible  <bruno@clisp.org>
13032
13033         * m4/csharpcomp.m4: New file, from GNU gettext.
13034
13035 2005-06-08  Bruno Haible  <bruno@clisp.org>
13036
13037         * lib/csharpcomp.h: New file, from GNU gettext.
13038         * lib/csharpcomp.c: New file, from GNU gettext.
13039         * lib/csharpcomp.sh.in: New file, from GNU gettext.
13040
13041 2005-06-08  Bruno Haible  <bruno@clisp.org>
13042
13043         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
13044         warning on mingw.
13045
13046 2005-06-07  Derek Price  <derek@ximbiot.com>
13047
13048         Sync from CVS.
13049         * lib/glob_.h: Indent nested #ifdef.
13050
13051 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
13052
13053         Sync from coreutils.
13054         Use "file name" when talking about file names, instead of "filename"
13055         or "path", as per the GNU coding standards.
13056         * lib/mkdir-p.c: Renamed from makepath.c.
13057         (make_dir_parents): Renamed from make_path.  All callers changed.
13058         * lib/mkdir-p.h: Likewise.  All includers changed.
13059         * lib/filenamecat.c: Renamed from path-concat.c.
13060         (file_name_concat): Renamed from path_concat.  All callers changed.
13061         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
13062         * lib/filenamecat.h: Likewise.  All includers changed.
13063         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
13064         in comments or local variable names.
13065         * lib/basename.c: Likewise.
13066         * lib/canonicalize.c, canonicalize.h: Likewise.
13067         * lib/dirname.c, dirname.h: Likewise.
13068         * lib/euidaccess.c: Likewise.
13069         * lib/exclude.c: Likewise
13070         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
13071         * lib/fsusage.c, fsuage.h: Likewise.
13072         * lib/fts.c, fts_.h: Likewise.
13073         * lib/getcwd.c: Likewise.
13074         * lib/getloadavg.c: Likewise.
13075         * lib/mkstemp.c: Likewise.
13076         * lib/mountlist.c, mountlist.h: Likewise.
13077         * lib/openat.c, openat.h: Likewise.
13078         * lib/readlink-stub.c: Likewise.
13079         * lib/readutmp.c, readutmp.h: Likewise.
13080         * lib/rename.c: Likewise.
13081         * lib/rmdir.c: Likewise.
13082         * lib/same.c: Likewise.
13083         * lib/savedir.c: Likewise.
13084         * lib/stripslash.c: Likewise.
13085         * lib/tempname.c: Likewise.
13086         * lib/xreadlink.c: Likewise.
13087         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
13088         All uses changed.
13089         * lib/exclude.h: Likewise.
13090
13091         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
13092         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
13093         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
13094         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
13095         * lib/pathmax.h: Include <limits.h> unconditionally, since other
13096         files have been getting away with it for years (MORE/BSD 4.3
13097         is extinct now).
13098         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
13099         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
13100
13101         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
13102         Define to 256, not 255, as per modern POSIX.
13103
13104 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
13105
13106         Sync from coreutils.
13107         Use "file name" when talking about file names, instead of "filename"
13108         or "path", as per the GNU coding standards.
13109         * MODULES.html.sh: mkdir-p renamed from makepath.
13110         filenamecat renamed from path-concat.
13111         * modules/filenamecat: Renamed from modules/path-concat.
13112         (Files): filenamecat.h and filenamecat.c renamed from
13113         path-concat.h and path-concat.c.
13114         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
13115         (Include): filenamecat.h, not path-concat.h.
13116         * modules/mkdir-p: Renamed from modules/makepath.
13117         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
13118         makepath.c.
13119         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
13120         (Include): mkdir-p.h, not makepath.h.
13121
13122 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
13123
13124         Sync from coreutils.
13125         * m4/mkdir-p.m4: Renamed from makepath.m4.
13126         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
13127         Rename files from makepath.c to mkdir-p.c, and from
13128         makepath.h to mkdir-p.h.
13129         * m4/filenamecat.m4: Renamed from path-concat.m4.
13130         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
13131         Rename files from path-concat.c to filenamecat.c,
13132         and from path-concat.h to filenamecat.h.
13133         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
13134         "file name" in local variables or comments.
13135         * m4/rename.m4: Likewise.
13136
13137 2005-06-01  Bruno Haible  <bruno@clisp.org>
13138
13139         * modules/csharpexec: New file.
13140         * MODULES.html.sh (C#): New section.
13141
13142 2005-06-01  Bruno Haible  <bruno@clisp.org>
13143
13144         * m4/csharp.m4: New file, from GNU gettext.
13145         * m4/csharpexec.m4: New file, from GNU gettext.
13146
13147 2005-06-01  Bruno Haible  <bruno@clisp.org>
13148
13149         * lib/csharpexec.h: New file, from GNU gettext.
13150         * lib/csharpexec.c: New file, from GNU gettext.
13151         * lib/csharpexec.sh.in: New file, from GNU gettext.
13152
13153 2005-05-31  Derek Price  <derek@ximbiot.com>
13154             Paul Eggert  <eggert@cs.ucla.edu>
13155
13156         Sync from cvs.
13157         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
13158
13159 2005-05-31  Derek Price  <derek@ximbiot.com>
13160             Paul Eggert  <eggert@cs.ucla.edu>
13161
13162         Sync from cvs.
13163         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
13164
13165 2005-05-29  Derek Price  <derek@ximbiot.com>
13166
13167         * config/srclist.txt (glob_.h, glob.c): Add these files.
13168
13169 2005-05-29  Derek Price  <derek@ximbiot.com>
13170
13171         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
13172         * modules/glob: New file.
13173         * modules/getlogin_r: Add link to POSIX spec in description.
13174
13175 2005-05-29  Derek Price  <derek@ximbiot.com>
13176             Paul Eggert  <eggert@cs.ucla.edu>
13177
13178         * m4/glob.m4: New file.
13179
13180 2005-05-29  Derek Price  <derek@ximbiot.com>
13181             Paul Eggert  <eggert@cs.ucla.edu>
13182
13183         * lib/glob_.h, lib/glob.c: New files.
13184
13185 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
13186
13187         * modules/fts (Files): Remove m4/inttypes-pri.m4.
13188         * modules/fts-lgpl (Depends-on): Remove gettext.
13189
13190 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
13191
13192         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
13193         and don't require gt_INTTYPES_PRI.
13194
13195 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
13196
13197         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
13198
13199         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
13200         the configuration hassle isn't worth it.
13201         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
13202         (LONGEST_MODIFIER, PRIuMAX): Remove.
13203
13204 2005-05-27  Bruno Haible  <bruno@clisp.org>
13205
13206         * lib/getlogin_r.h: Remove second include of <stddef.h>.
13207
13208 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
13209
13210         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
13211         _POSIX_PTHREAD_SEMANTICS for Solaris.
13212
13213 2005-05-25  Derek Price  <derek@ximbiot.com>
13214
13215         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
13216
13217 2005-05-25  Derek Price  <derek@ximbiot.com>
13218             Paul Eggert  <eggert@cs.ucla.edu>
13219
13220         * modules/getlogin_r, m4/getlogin_r.m4: New files.
13221         * lib/getlogin_r.c, getlogin_r.h: New files.
13222
13223 2005-05-25  Bruno Haible  <bruno@clisp.org>
13224             Derek Price  <derek@ximbiot.com>
13225
13226         * lib/getlogin_r.h: Simplify API documentation.
13227
13228 2005-05-23  Derek Price  <derek@ximbiot.com>
13229
13230         * modules/minmax (Files): Add m4/minmax.m4.
13231         (configure.ac): Add gl_MINMAX.
13232
13233 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
13234
13235         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
13236         so that unistd-safer.h (GPL'ed code) need not be included.
13237
13238 2005-05-22  Bruno Haible  <bruno@clisp.org>
13239
13240         * m4/minmax.m4: New file.
13241         Based on a patch by Derek Price <derek@ximbiot.com>.
13242
13243 2005-05-22  Bruno Haible  <bruno@clisp.org>
13244
13245         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
13246         (INT64_MIN): Fix definition.
13247         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
13248
13249         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
13250         NEED_SIGNED_INT_TYPES.
13251
13252         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
13253         HAVE_SYSTEM_INTTYPES.
13254
13255 2005-05-22  Bruno Haible  <bruno@clisp.org>
13256
13257         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
13258         Also include <sys/param.h> if it defines MIN, MAX.
13259         Based on a patch by Derek Price <derek@ximbiot.com>.
13260
13261 2005-05-21  Jim Meyering  <jim@meyering.net>
13262
13263         * modules/fts (Files): Add m4/inttypes-pri.m4.
13264         (Depends-on): Add lstat and remove gettext.  Alphabetize.
13265
13266 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
13267
13268         New fts module.
13269         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
13270         (setup_dir, free_dir): New functions.
13271         (enter_dir, leave_dir): Define trivial
13272         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
13273         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
13274         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
13275         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
13276         Move to fts-cycle.c.
13277         (fts_open): Use setup_dir.
13278         (fts_close): Use free_dir.
13279         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
13280         This adds a label and some gotos, but the alternatives were messier.
13281         Check for memory allocation failure when entering a dir.
13282         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
13283         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
13284         (FTS): New member fts_cycle, that is a union that contains the
13285         old active_dir_ht and cycle_state.  All uses changed to mention
13286         fts_cycle.ht and fts_cycle.state.
13287         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
13288         fts.c, with the following changes:
13289         (setup_dir, free_dir): New functions.
13290         (enter_dir): Now returns bool.  Return true if successful, false
13291         if memory exhausted.  All callers changed.
13292         Do not bother partly cleaning up on
13293         memory allocation failure; that is free_dir's job.
13294         However, free ad if hash_insert fails, to avoid memory leak.
13295         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
13296         fts->fts_options to see which union member to use.
13297
13298 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
13299
13300         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
13301         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
13302
13303 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
13304
13305         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
13306
13307 2005-05-20  Jim Meyering  <jim@meyering.net>
13308
13309         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
13310         Now a macro, to pacify GCC.
13311
13312 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
13313
13314         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
13315         of -1.
13316
13317 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
13318
13319         * lib/chown.c (rpl_chown): Return -1 on failure.
13320
13321 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
13322
13323         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
13324         Don't check for stddef.h.
13325         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
13326         don't use its results.
13327         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
13328         since we include them unconditionally.  Don't require
13329         AM_STDBOOL_H, since stdbool is a prerequisite.
13330         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
13331         since we assume C89 or better.
13332         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
13333         as we don't use their results.
13334         Don't check for fchdir, memmove, memset, strrchr, as we use
13335         them unconditionally.
13336         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
13337         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
13338
13339 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
13340
13341         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
13342         Include <stddef.h> unconditionally, since we assume C89 now.
13343         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
13344         * lib/fts.c: Include fts_.h first, to check interface.
13345         Do not include intprops.h; no longer needed.
13346         Include cycle-check.h and hash.h, since fts_.h no longer does.
13347         Remove unnecessary casts of closedir to void.
13348         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
13349         decide whether to decrement nlinks.
13350         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
13351         (FTS): Use struct hash_table * instead of Hash_table, so that
13352         we no longer need to include hash.h here.
13353
13354 2005-05-18  Jim Meyering  <jim@meyering.net>
13355
13356         * modules/dirfd (License): Change to LGPL.  Most of the code
13357         is already in the public domain.
13358
13359 2005-05-18  Jim Meyering  <jim@meyering.net>
13360
13361         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
13362         Reported by Yoann Vandoorselaere.
13363
13364 2005-05-17  Jim Meyering  <jim@meyering.net>
13365
13366         * m4/fts.m4: New file, from coreutils.
13367
13368 2005-05-17  Jim Meyering  <jim@meyering.net>
13369
13370         * lib/fts.c, lib/fts_.h: New files, from coreutils.
13371
13372 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
13373
13374         Sync from coreutils.
13375         * m4/unlinkdir.m4: New file.
13376
13377 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
13378
13379         Sync from coreutils.
13380         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
13381         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
13382         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
13383         White space changes only.
13384         * lib/makepath.c (make_path): Port to hosts where leading "//" is
13385         special.
13386         * lib/yesno.c: Include getline.h, not ctype.h.
13387         (yesno): Don't remove leading white space; POSIX doesn't allow it.
13388         Use getline to remove arbitrary restriction on response length.
13389
13390 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
13391
13392         * config/srclist-update: Spell out "Street" in FSF postal
13393         mail address; this is the style the FSF seems to prefer.
13394
13395         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
13396         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
13397         this updates FSF postal mail address.
13398
13399         Sync from coreutils.
13400         * modules/unlinkdir: New file.
13401         * modules/yesno (Depends-on): Add getline.
13402         * MODULES.html.sh (File system functions): Add unlinkdir.
13403
13404 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
13405
13406         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
13407         lib/strsep.h:
13408         Change the initial comment to refer to GPL, not LGPL.
13409         gnulib-tool will change it to LGPL as needed.
13410
13411         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
13412         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
13413         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
13414         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
13415         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
13416         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
13417         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
13418         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
13419         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
13420         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
13421         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
13422         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
13423         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
13424         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
13425         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
13426         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
13427         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
13428         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
13429         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
13430         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
13431         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
13432         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
13433         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
13434         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
13435         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
13436         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
13437         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
13438         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
13439         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
13440         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
13441         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
13442         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
13443         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
13444         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
13445         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
13446         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
13447         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
13448         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
13449         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
13450         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
13451         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
13452         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
13453         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
13454         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
13455         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
13456         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
13457         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
13458         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
13459         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
13460         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
13461         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
13462         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
13463         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
13464         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
13465         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
13466         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
13467         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
13468         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
13469         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
13470         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
13471         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
13472         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
13473         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
13474         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
13475         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
13476         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
13477         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
13478         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
13479         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
13480         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
13481         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
13482         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
13483         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
13484         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
13485         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
13486         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
13487         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
13488         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
13489         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
13490         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
13491         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
13492         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
13493         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
13494         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
13495         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
13496         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
13497         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
13498         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
13499         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
13500         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
13501         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
13502         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
13503         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
13504         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
13505         lib/yesno.c, lib/yesno.h:
13506         Update FSF postal mail address.
13507
13508 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
13509
13510         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
13511         tests/test-memmem.c, tests/test-stpncpy.c:
13512         Update FSF postal mail address.
13513
13514 2005-05-13  Bruno Haible  <bruno@clisp.org>
13515
13516         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
13517         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
13518         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
13519         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
13520         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
13521         Add support for 64-bit integers in the MSVC compiler.
13522
13523 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
13524
13525         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
13526
13527 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
13528
13529         * gnulib-tool (func_import): Sort and uniquify recommended includes.
13530
13531 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
13532
13533         * doc/getdate.texi (General date syntax): Don't say that date
13534         date --iso-8601=ns generates acceptable dates; it doesn't yet.
13535         Problem reported by Nic Ferrier.
13536
13537 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
13538
13539         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
13540         specified in ai_socktype. Fix invalid ai_protocol
13541         check. ai_protocol is usually set to 0 or depending on
13542         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
13543         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
13544         ai_socktype / ai_protocol in the returned addrinfo structure.
13545
13546 2005-05-10  Simon Josefsson  <jas@extundo.com>
13547
13548         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
13549         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
13550
13551 2005-05-10  Karl Berry  <karl@gnu.org>
13552
13553         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
13554         (from http://www.gnu.org/licenses).
13555         * doc/COPYING.LIB: also rename to COPYING.LESSER.
13556         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
13557         fdl.texi suffices.
13558
13559 2005-05-10  Karl Berry  <karl@gnu.org>
13560
13561         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
13562         (COPYING.DOC): remove.
13563
13564         * config/srclist-update: new FSF address.
13565
13566 2005-05-10  Derek Price  <derek@ximbiot.com>
13567
13568         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
13569         possible.
13570
13571 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
13572             Bruno Haible  <bruno@clisp.org>
13573
13574         * modules/inet_ntop: New file.
13575         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
13576         inet_ntop.
13577
13578 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
13579             Bruno Haible  <bruno@clisp.org>
13580
13581         * m4/inet_ntop.m4: New file.
13582
13583 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
13584             Bruno Haible  <bruno@clisp.org>
13585
13586         * lib/inet_ntop.h: New file.
13587         * lib/inet_ntop.c: New file, from glibc with modifications.
13588
13589 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
13590
13591         * modules/time_r (License): Change to LGPL.
13592         * modules/extensions (License): Change to LGPL.  Actually,
13593         the license is more permissive than that, but currently gnulib-tool
13594         doesn't know how to handle more-permissive licenses.
13595
13596         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
13597         Problem reported by Dave Love.
13598
13599 2005-05-08  Jim Meyering  <jim@meyering.net>
13600
13601         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
13602         blank.
13603
13604 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
13605
13606         * modules/argmatch (Depends-on): Add stdbool.
13607         * modules/backupfile (Depends-on): Likewise.
13608         * modules/chdir-long (Depends-on): Likewise.
13609         * modules/closeout (Depends-on): Likewise.
13610         * modules/cycle-check (Depends-on): Likewise.
13611         * modules/dirname (Depends-on): Likewise.
13612         * modules/fnmatch (Depends-on): Likewise.
13613         * modules/fsusage (Depends-on): Likewise.
13614         * modules/fwriteerror (Depends-on): Likewise.
13615         * modules/getcwd (Depends-on): Likewise.
13616         * modules/getloadavg (Depends-on): Likewise.
13617         * modules/hard-locale (Depends-on): Likewise.
13618         * modules/makepath (Depends-on): Likewise.
13619         * modules/mountlist (Depends-on): Likewise.
13620         * modules/nanosleep (Depends-on): Likewise.
13621         * modules/posixtm (Depends-on): Likewise.
13622         * modules/quotearg (Depends-on): Likewise.
13623         * modules/readtokens (Depends-on): Likewise.
13624         * modules/readtokens0 (Depends-on): Likewise.
13625         * modules/readutmp (Depends-on): Likewise.
13626         * modules/save-cwd (Depends-on): Likewise.
13627         * modules/strftime (Depends-on): Likewise.
13628         * modules/userspec (Depends-on): Likewise.
13629         * modules/utimecmp (Depends-on): Likewise.
13630         * modules/xgetcwd (Depends-on): Likewise.
13631         * modules/xnanosleep (Depends-on): Likewise.
13632         * modules/xstrtod (Depends-on): Likewise.
13633         * modules/yesno (Depends-on): Likewise.
13634
13635 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
13636
13637         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
13638         needless checks.
13639
13640 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
13641
13642         Merge from coreutils.  Among other things,
13643         add bulletproofing for cases where stdin, stdout, or stderr are closed.
13644         * lib/fd-safer.c: New file.
13645         * lib/fcntl-safer.h, open-safer.c: Remove.
13646         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
13647         * lib/dup-safer.c: Include unistd-safer.h first.
13648         Don't include errno.h.
13649         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
13650         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
13651         * lib/file-type.c: Rely on file-type.h change.
13652         * lib/getloadavg.c: Include unistd-safer.h.
13653         (getloadavg): Use safer open.
13654         * lib/getusershell.c: Include "stdio-safer.h".
13655         (getusershell): Use safer fopen.
13656         * lib/long-options.c (long_options): Use NULL rather than 0.
13657         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
13658         'free'.
13659         * lib/modechange.c: Likewise.
13660         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
13661         (MODE_DONE): New constant.
13662         (struct mode_change): Remove 'next' member.
13663         (make_node_op_equals): New function; like the old one of the
13664         same name, except it allocates an array.
13665         (mode_compile, mode_create_from_ref): Use it.
13666         (mode_compile): Allocate result as an array, not a linked list.
13667         Parse octal string ourself, so that we catch mistakes like "+0".
13668         (mode_adjust): Arg is an array, not a linked list.
13669         * lib/modechange.c: Include stat-macros.h, xalloc.h.
13670         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
13671         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
13672         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
13673         Remove.  This is now stat-macros.h's job.
13674         (talloc): Remove.  All callers replaced by xalloc, so that
13675         our invokers don't have to worry about reporting memory failures.
13676         (make_node_op_equals): Remove.
13677         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
13678         New constants.
13679         (struct mode_change): Moved here from modechange.h.
13680         (mode_append_entry): Remove.
13681         (mode_compile): Remove MASKED_OPS arg, since it encouraged
13682         apps to have incorrect behavior.  Use simpler algorithm for head
13683         and tail.  Don't futz with umask; that's now the job of mode_adjust.
13684         Detect more invalid usages rather than having somewhat-random behavior.
13685         Don't insert an "a=" action, as that leads to incorrect behavior.
13686         (mode_compile, mode_create_from_ref): Return NULL on error instead
13687         of an enum, since now there's only one way to have an error.  All
13688         callers changed.
13689         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
13690         at the correct time.  Simplify calculation of "+u" and its ilk.
13691         Don't mishandle "+X".
13692         (mode_free): Remove "register" and localize decls.
13693         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
13694         (struct mode_change): Move to modechange.c; callers don't
13695         need to see this stuff.
13696         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
13697         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
13698         (mode_change, mode_adjust): Reflect the new signatures noted above.
13699         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
13700         that might redefine system include files.
13701         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
13702         (my_usleep): Use NULL rather than (void *) 0.
13703         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
13704         Use siginterrupt to specify that system calls should be interrupted.
13705         (rpl_nanosleep): Move initialization of suspended closer to call of
13706         my_usleep.
13707         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
13708         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
13709         (desirable_utmp_entry): New function.
13710         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
13711         using x2nrealloc, to simplify logic.
13712         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
13713         size calculation.  Do not assume utmp file is a regular file.
13714         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
13715         (READ_UTMP_CHECK_PIDS): New constant.
13716         * lib/save-cwd.c: Include unistd-safer.h.
13717         (save_cwd): Use fd_safer.
13718         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
13719         [!_LIBC] Include "stat-macros.h" instead.
13720         * lib/unistd-safer.h (fd_safer): New decl.
13721
13722 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
13723
13724         * modules/getloadavg (Depends-on): Add unistd-safer.
13725         * modules/getusershell (Depends-on): Add stdio-safer.
13726         * modules/lstat (Depends-on): Remove xalloc.
13727         * modules/mkstemp (Depends-on): Add stat-macros.
13728         * modules/modechange (Depends-on): Remove xstrtol.
13729         Add stat-macros, xalloc.
13730         * modules/save-cwd (Depends-on): Add unistd-safer.
13731         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
13732         * modules/unistd-safer (Files): Add lib/fd-safer.c
13733         (Makefile.am): Remove lib_SOURCES.
13734
13735         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
13736         Remove fcntl-safer; unistd-safer supersedes it.
13737
13738 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
13739
13740         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
13741         AC_HEADER_STAT.
13742         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
13743         (gl_PREREQ_CHOWN): Remove.
13744         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
13745         it.  Don't require AC_HEADER_STAT.
13746         (gl_PREREQ_LSTAT): Remove.
13747         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
13748         Don't require AC_HEADER_STAT.
13749         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
13750         (gl_PREREQ_RMDIR): Remove.
13751         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
13752         mention stat-macros.h or AC_HEADER_STAT, since we'll make
13753         the stat-macros module a prerequisite.
13754         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
13755         * m4/filemode.m4 (gl_FILEMODE): Likewise.
13756         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
13757         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
13758         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
13759         variable names.
13760         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
13761         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
13762         variable prefixes.
13763         * m4/fcntl-safer.m4: Remove.
13764         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
13765         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
13766         Invoke gl_PREREQ_FD_SAFER.
13767         (gl_PREREQ_FD_SAFER): New macro.
13768         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
13769         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
13770         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
13771         Remove duplicate call to AC_LIBOBJ(readutmp).
13772         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
13773
13774         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
13775         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
13776
13777 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
13778
13779         * MODULES.html.sh (Misc): Add byteswap.
13780
13781 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
13782
13783         * modules/getcwd (Depends-on): Add extensions.
13784         * modules/openat (Depends-on): Likewise.
13785
13786 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
13787
13788         * modules/byteswap: New file.
13789
13790 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
13791
13792         * m4/byteswap.m4: New file.
13793
13794 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
13795
13796         * lib/byteswap_.h: New file.
13797
13798 2005-04-25  Karl Berry  <karl@gnu.org>
13799
13800         * m4/gettext.m4: Update from GNU gettext 0.14.4.
13801
13802 2005-04-25  Albert Chin  <china@thewrittenword.com>
13803
13804         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
13805         Toolkit C bug.
13806
13807 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
13808
13809         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
13810         (func_ln_if_changed) Remove forcibly for no error message
13811         in case file does not exist.
13812
13813 2005-04-19  Simon Josefsson  <jas@extundo.com>
13814
13815         * gnulib-tool (Options): Make --symlink mean --symbolic.
13816
13817 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
13818
13819         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
13820
13821 2005-04-16  Simon Josefsson  <jas@extundo.com>
13822
13823         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
13824
13825 2005-04-15  Simon Josefsson  <jas@extundo.com>
13826
13827         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
13828
13829 2005-04-15  Simon Josefsson  <jas@extundo.com>
13830
13831         * gnulib-tool: Rename --symlink to --symbolic.
13832
13833 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
13834
13835         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
13836         symbolic links to files instead of copying/moving.  Add --aux-dir,
13837         specifying directory relative --dir where auxiliary build tools
13838         are placed.
13839
13840 2005-04-14  Bruno Haible  <bruno@clisp.org>
13841
13842         * modules/allocsa (License): Change to LGPL.
13843         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
13844
13845 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
13846
13847         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
13848         that "UTC +1 second" continues to work.  Problem reported
13849         by Dmitry V. Levin.
13850         (relunit_snumber): New rule.
13851         (relunit): Use it.
13852
13853 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
13854
13855         * lib/getdate.y (universal_time_zone_table): New constant.
13856         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
13857         universal_time_zone_table.
13858         (lookup_zone): Prefer universal_time_zone_table to
13859         local_time_zone_table, so that "GMT" time stamps are allowed in
13860         London during the summer.  Problem reported by Ian Abbott.
13861
13862 2005-04-12  Jim Meyering  <jim@meyering.net>
13863
13864         * lib/human.c (humblock): Set *options even when returning due to
13865         xstrtoumax conversion failure.  Thanks to a used-uninitialized
13866         warning from gcc-4.
13867
13868 2005-04-09  Jim Meyering  <jim@meyering.net>
13869
13870         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
13871         -Wuninitialized: initialize tm0.tm_year.
13872
13873 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
13874
13875         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
13876         count, since there's no maximum.  All uses changed.
13877         Add member dsts_seen.
13878         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
13879         not being INT_MAX.
13880         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
13881         Use pc_rels_seen to decide whther a date is absolute.
13882
13883         * lib/getdate.y (number): Don't overwrite year.
13884         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
13885         check.
13886
13887 2005-04-02  Simon Josefsson  <jas@extundo.com>
13888
13889         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
13890         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
13891
13892 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
13893
13894         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
13895         where no absolute path name can be longer than PATH_MAX.
13896
13897 2005-03-27  Jim Meyering  <jim@meyering.net>
13898
13899         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
13900
13901 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
13902
13903         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
13904         "one's complement" -> "ones' complement" in comment, as per Knuth.
13905         "value of type" -> "type or expression" in comment.
13906         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
13907
13908 2005-03-26  Jim Meyering  <jim@meyering.net>
13909
13910         Comment nits.
13911         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
13912         Correct typos: s/or/of/.
13913
13914 2005-03-26  Jim Meyering  <jim@meyering.net>
13915
13916         * modules/check-include-files: Move to ../ and rename to...
13917         * check-module: ...this.
13918
13919 2005-03-25  Jim Meyering  <jim@meyering.net>
13920
13921         * modules/xvasprintf (Files): Add xalloc.h.
13922
13923 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
13924
13925         * modules/gettext (Files): config/config.rpath ->
13926         build-aux/config.rpath
13927         * modules/iconv (Files): Likewise.
13928         Problem reported by Oskar Liljeblad.
13929
13930 2005-03-23  Jim Meyering  <jim@meyering.net>
13931
13932         * modules/check-include-files: New script to check for
13933         missing dependencies, multiple includes, etc.
13934
13935         * modules/c-strtold (Depends-on): Add xalloc.
13936         * modules/c-strtod (Depends-on): Add xalloc.
13937         * modules/hash (Depends-on): Add xalloc.
13938         (Files): Remove lib/xalloc.h.
13939
13940         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
13941         * modules/userspec (Files): Add lib/inttostr.h.
13942
13943 2005-03-23  Jim Meyering  <jim@meyering.net>
13944
13945         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
13946
13947 2005-03-22  Jim Meyering  <jim@meyering.net>
13948
13949         * modules/stat-macros: New module.
13950         * modules/canonicalize, modules/euidaccess, modules/file-type,
13951         * modules/filemode, modules/lchown, modules/makepath,
13952         * modules/rmdir, modules/stat: Depend on new stat-macros module
13953         rather than listing lib/stat-macros.h manually.
13954         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
13955
13956 2005-03-22  Jim Meyering  <jim@meyering.net>
13957
13958         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
13959
13960 2005-03-22  Bruno Haible  <bruno@clisp.org>
13961
13962         * config/srclist.txt: Replace target directory 'config' with
13963         'build-aux'.
13964         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
13965         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
13966         ../build-aux/.
13967
13968 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
13969
13970         * modules/chdir-long (Depends-on): Add mempcpy.
13971
13972         * modules/acl, modules/backupfile, modules/c-strtod,
13973         modules/c-strtold, modules/canon-host, modules/canonicalize,
13974         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
13975         modules/exclude, modules/exitfail, modules/file-type,
13976         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
13977         modules/getdate, modules/getline, modules/getpagesize,
13978         modules/getpass, modules/getugroups, modules/group-member,
13979         modules/hard-locale, modules/hash, modules/human, modules/idcache,
13980         modules/inttostr, modules/long-options, modules/makepath,
13981         modules/md5, modules/memcasecmp, modules/memcoll,
13982         modules/modechange, modules/mountlist, modules/path-concat,
13983         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
13984         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
13985         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
13986         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
13987         modules/strftime, modules/strndup, modules/strverscmp,
13988         modules/timespec, modules/unlocked-io, modules/userspec,
13989         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
13990         modules/yesno:
13991         Remove lib_SOURCES line from Makefile.am section, as this is now
13992         done automatically by the corresponding Autoconf macro.
13993
13994 2005-03-21  Jim Meyering  <jim@meyering.net>
13995
13996         Changes imported from coreutils.
13997
13998         * lib/cycle-check.c: Don't include xalloc.h.
13999
14000         * lib/path-concat.c: Don't include assert.h.
14001         (path_concat): Remove assertion that would have triggered
14002         for ABASE starting with more than one slash.
14003         Reported by Andreas Schwab.
14004
14005         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
14006         properly when ABASE is an absolute file name.
14007         Correct the description of this function.
14008         Include <assert.h>.
14009         Add an assertion and a test driver.
14010         This fixes a bug introduced on 2004-07-02.
14011         Andreas Schwab reported the resulting failure of cp --parents:
14012         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
14013
14014 2005-03-21  Jim Meyering  <jim@meyering.net>
14015
14016         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
14017         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
14018
14019 2005-03-21  Jim Meyering  <jim@meyering.net>
14020         and  Paul Eggert  <eggert@cs.ucla.edu>
14021
14022         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
14023         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
14024         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
14025         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
14026         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
14027         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
14028         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
14029         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
14030         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
14031         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
14032         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
14033         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
14034         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
14035         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
14036         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
14037         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
14038         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
14039         for these modules.
14040
14041 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
14042
14043         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
14044         (which shouldn't happen), generate nothing instead of returning 0
14045         immediately, so that nstrftime (NULL, ...) doesn't return 0.
14046
14047 2005-03-16  Bruno Haible  <bruno@clisp.org>
14048
14049         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
14050         HAVE_LONGLONG_64BIT.
14051
14052 2005-03-16  Bruno Haible  <bruno@clisp.org>
14053
14054         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
14055         HAVE_LONGLONG_64BIT.
14056
14057 2005-03-16  Bruno Haible  <bruno@clisp.org>
14058
14059         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
14060         HAVE_LONGLONG_64BIT.
14061
14062 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
14063
14064         * lib/strftime.c (my_strftime): Prepend space to format so that we can
14065         reliably distinguish strftime failure from empty output on POSIX
14066         hosts.
14067
14068 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
14069
14070         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
14071         (iconv_string): Don't guess a size-zero buffer, as that might cause
14072         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
14073         result would be 'too large', where 'too large' is (heuristically)
14074         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
14075         overflow concerns.  This will prevent some unwanted malloc failures
14076         when the inputs are very large.
14077
14078 2005-03-15  Karl Berry  <karl@gnu.org>
14079
14080         * config/srclist.txt (config.rpath): from gettext.
14081         * config/config.rpath: update.
14082
14083 2005-03-15  Bruno Haible  <bruno@clisp.org>
14084
14085         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
14086         to 'negate'.
14087
14088         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
14089         variable.
14090
14091         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
14092         results.
14093
14094 2005-03-14  Simon Josefsson  <jas@extundo.com>
14095
14096         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
14097         <fx@gnu.org>.
14098
14099 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
14100
14101         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
14102         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
14103         intprops.h.
14104         * lib/strtol.c: Likewise.
14105
14106 2005-03-14  Jim Meyering  <jim@meyering.net>
14107
14108         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
14109         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
14110         to be nonzero so that we (and caller) can detect the difference
14111         between a valid zero-length expansion and an error return, even
14112         when the underlying strftime fails before writing anything into
14113         that location.
14114
14115 2005-03-14  Bruno Haible  <bruno@clisp.org>
14116
14117         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
14118         Update from GNU gettext 0.14.3.
14119
14120 2005-03-10  Jim Meyering  <jim@meyering.net>
14121
14122         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
14123
14124 2005-03-10  Jim Meyering  <jim@meyering.net>
14125
14126         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
14127         so that this module works on systems without fchdir.
14128
14129 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
14130
14131         Factor int-properties macros into a single file, except for
14132         glibc-related files.
14133         * lib/intprops.h: New file.
14134         * lib/getloadavg.c: Include it instead of limits.h.
14135         (INT_STRLEN_BOUND): Remove.
14136         * lib/human.c: Include intprops.h.
14137         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
14138         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
14139         302/1000.
14140         * lib/inttostr.h: Include intprops.h instead of limits.h.
14141         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
14142         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
14143         for consistency with intprops.h.
14144         (time_t_is_integer, twos_complement_arithmetic): Use them.
14145         * lib/sig2str.h: Include <signal.h>, intprops.h.
14146         (INT_STRLEN_BOUND): Remove.
14147         * lib/strftime.c (TYPE_SIGNED): Remove.
14148         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
14149         * lib/strtol.c: Adjust comments to match intprops.h.
14150         * lib/userspec.c: Include intprops.h.
14151         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
14152         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
14153         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
14154         instead of rolling our own expressions.
14155         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
14156
14157         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
14158         instead of int.
14159         (my_strftime): Do not mishandle years close to INT_MAX, by doing
14160         the right thing even if adding 1900 would overflow.  Similarly
14161         for tm_mon + 1 and tm_yday + 1.
14162         Make %Y always equivalent to %C%y, and similarly for %G and %g.
14163         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
14164         (DO_SIGNED_NUMBER): New macro.
14165         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
14166
14167 2005-03-07  Bruno Haible  <bruno@clisp.org>
14168
14169         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
14170
14171 2005-03-07  Bruno Haible  <bruno@clisp.org>
14172
14173         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
14174
14175 2005-03-04  Derek R. Price  <derek@ximbiot.com>
14176
14177         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
14178         (func_import): Only replace files via --import when they have actually
14179         changed.
14180
14181 2005-03-03  Derek R. Price  <derek@ximbiot.com>
14182
14183         * m4/mmap-anon.m4: New file.
14184         * m4/pagealign_alloc.m4: New file.
14185
14186 2005-03-03  Derek R. Price  <derek@ximbiot.com>
14187             Bruno Haible  <bruno@clisp.org>
14188
14189         * modules/pagealign_alloc: New file.
14190         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
14191
14192 2005-03-03  Derek R. Price  <derek@ximbiot.com>
14193             Bruno Haible  <bruno@clisp.org>
14194
14195         * lib/pagealign_alloc.h: New file.
14196         * lib/pagealign_alloc.c: New file.
14197
14198 2005-03-03  Bruno Haible  <bruno@clisp.org>
14199
14200         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
14201         Use an all-permissive copyright notice, recommended by RMS.
14202
14203 2005-03-02  Bruno Haible  <bruno@clisp.org>
14204
14205         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
14206         of AIX, the replacement has to be done only after <string.h> is
14207         included, therefore not in config.h. stpncpy.h does the replacement,
14208         and stpncpy.c uses it.
14209
14210 2005-03-02  Bruno Haible  <bruno@clisp.org>
14211
14212         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
14213         stpncpy.c uses it.
14214
14215 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
14216
14217         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
14218         The workaround isn't strictly needed for POSIX conformance, and
14219         it's too much of a pain to configure and maintain.  We'll ask
14220         people to fix their kernels instead.
14221         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
14222         (NANOSLEEP_BUG_WORKAROUND): Remove.
14223         (xnanosleep): Remove the workaround.
14224
14225 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
14226
14227         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
14228         Reported by Derek Price.
14229         (Include): Add "timespec.h".
14230
14231         * modules/xnanosleep (Depends-on): Remove gethrxtime.
14232
14233 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
14234
14235         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
14236         to detect nanosleep bug.
14237
14238 2005-03-01  Bruno Haible  <bruno@clisp.org>
14239
14240         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
14241
14242 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
14243
14244         * modules/gethrxtime: New file.
14245         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
14246         (Depends-on): Add gethrxtime.
14247         (configure.ac): Add gl_XNANOSLEEP.
14248         (Makefile.am): Remove lib_SOURCES line.
14249
14250 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
14251
14252         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
14253         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
14254
14255 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
14256
14257         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
14258         * lib/timespec.h (gettime): Return void, since it always
14259         succeeds now.  All uses changed.
14260         * lib/gettime.c (gettime) Likewise.
14261         [HAVE_NANOTIME]: Prefer nanotime.
14262         Assume gettimeofday succeeds, as POSIX requires.
14263         Assime time () succeeds, since other code already does.
14264         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
14265         (timespec_subtract): Remove.
14266         (NANOSLEEP_BUG_WORKAROUND): New constant.
14267         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
14268         things considerably.  Use it only on GNU/Linux hosts, since the
14269         workaround shouldn't be needed elsewhere.
14270
14271 2005-02-24  Bruno Haible  <bruno@clisp.org>
14272
14273         * modules/gettext (Files): Add m4/glibc2.m4.
14274
14275 2005-02-24  Bruno Haible  <bruno@clisp.org>
14276
14277         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
14278         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
14279         * m4/progtest.m4:
14280         Update from GNU gettext 0.14.2.
14281         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
14282
14283 2005-02-24  Bruno Haible  <bruno@clisp.org>
14284
14285         * lib/localcharset.c: Update from GNU gettext 0.14.2.
14286         * lib/config.charset: Update from GNU gettext 0.14.2.
14287
14288 2005-02-24  Bruno Haible  <bruno@clisp.org>
14289
14290         * lib/gettext.h: Update from GNU gettext 0.14.2.
14291
14292 2005-02-23  Simon Josefsson  <jas@extundo.com>
14293
14294         * m4/iconvme.m4: New file.
14295
14296 2005-02-23  Jim Meyering  <jim@meyering.net>
14297
14298         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
14299         change.
14300         Thanks to Bruno Haible for catching it.
14301
14302 2005-02-22  Simon Josefsson  <jas@extundo.com>
14303
14304         * modules/iconvme: New file.
14305
14306         * MODULES.html.sh: Add iconvme.
14307
14308 2005-02-22  Simon Josefsson  <jas@extundo.com>
14309
14310         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
14311
14312 2005-02-22  Simon Josefsson  <jas@extundo.com>
14313
14314         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
14315
14316 2005-02-22  Jim Meyering  <jim@meyering.net>
14317
14318         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
14319         s/ifndef/ifdef/.
14320
14321 2005-02-20  Neil Conway  <neilc@samurai.com>
14322
14323         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
14324         returned by OSX/Darwin if the specified buffer is not large
14325         enough for the hostname.
14326
14327 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
14328
14329         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
14330         pass it to _help, otherwise the latter coredumps trying to
14331         dereference state.root_argp.
14332
14333 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
14334
14335         * modules/chdir-long (Depends-on): Add memrchr.
14336         * modules/memrchr (Files): Add lib/memrchr.h.
14337         (Include): "memrchr.h".
14338
14339 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
14340
14341         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
14342
14343 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
14344
14345         * lib/memrchr.h: New file.
14346         * lib/chdir-long.c: Include it.
14347         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
14348         Don't bother including stddef.h.
14349
14350 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
14351
14352         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
14353         inclusion.
14354         Include <sys/types.h>, for dev_t.
14355         (ME_DUMMY, ME_REMOTE): Move from here....
14356         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
14357         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
14358         Dmitry V. Levin.
14359         Include mountlist.h first, to test the interface.
14360
14361 2005-01-29  Bruno Haible  <bruno@clisp.org>
14362
14363         * lib/progname.c (program_name): Initialize.
14364         Needed when linking statically on MacOS X.
14365
14366 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
14367
14368         Sync from coreutils.
14369         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
14370         (Depends-on): Add c-strtod.
14371         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
14372
14373 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
14374
14375         Sync from coreutils.
14376         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
14377
14378         Remove files that are specific to coreutils.
14379         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
14380
14381 2005-01-28  Bruno Haible  <bruno@clisp.org>
14382
14383         * modules/javacomp: New file.
14384         * MODULES.html.sh (Java): Add javacomp.
14385
14386 2005-01-28  Bruno Haible  <bruno@clisp.org>
14387
14388         * m4/javacomp.m4: New file, from GNU gettext.
14389
14390 2005-01-28  Bruno Haible  <bruno@clisp.org>
14391
14392         * lib/javacomp.sh.in: New file, from GNU gettext.
14393         * lib/javacomp.h: New file, from GNU gettext.
14394         * lib/javacomp.c: New file, from GNU gettext.
14395
14396 2005-01-26  Simon Josefsson  <jas@extundo.com>
14397
14398         * lib/gai_strerror.c: Use GPL in header.
14399
14400 2005-01-26  Bruno Haible  <bruno@clisp.org>
14401
14402         * modules/javaexec: New file.
14403         * MODULES.html.sh (Java): Add javaexec.
14404
14405 2005-01-26  Bruno Haible  <bruno@clisp.org>
14406
14407         * m4/javaexec.m4: New file, from GNU gettext.
14408
14409 2005-01-26  Bruno Haible  <bruno@clisp.org>
14410
14411         * lib/javaexec.sh.in: New file, from GNU gettext.
14412         * lib/javaexec.h: New file, from GNU gettext.
14413         * lib/javaexec.c: New file, from GNU gettext.
14414
14415 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
14416
14417         * modules/lchown (Depends-on): Remove lchown.h
14418
14419 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
14420
14421         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
14422         must be defined if the header file was not found, in order
14423         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
14424
14425 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
14426
14427         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
14428         initializers for struct pentry_state.
14429         (__argp_error): Check return value of __asprintf
14430         (__argp_failure): Translate error message
14431
14432         * lib/argp-parse.c: Removed braces around the expansion of N_()
14433
14434 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
14435
14436         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
14437         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
14438         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
14439         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
14440         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
14441         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
14442         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
14443         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
14444         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
14445         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
14446         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
14447         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
14448         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
14449         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
14450         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
14451         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
14452         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
14453         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
14454         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
14455         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
14456         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
14457         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
14458         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
14459         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
14460         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
14461         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
14462         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
14463         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
14464         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
14465         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
14466         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
14467         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
14468         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
14469         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
14470         xstrtol.m4, xstrtoumax.m4, yesno.m4:
14471         Use an all-permissive copyright notice, recommended by RMS.
14472
14473 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
14474
14475         * modules/chdir-long (Depends-on): Remove mempcpy.
14476
14477 2005-01-21  Jim Meyering  <jim@meyering.net>
14478
14479         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
14480         same value as for Solaris 9.
14481
14482         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
14483         component length.  This included changing the parameter to be
14484         of type `char *' rather than `char const *'.
14485         * lib/chdir-long.h (chdir_long): Update prototype.
14486
14487         * lib/openat.c (fdopendir, fstatat): New functions.
14488         * lib/openat.h: Include headers required for use of DIR and struct
14489         stat.
14490         [AT_SYMLINK_NOFOLLOW]: Define.
14491         (fdopendir, fstatat): Add prototypes.
14492
14493 2005-01-21  Bruno Haible  <bruno@clisp.org>
14494
14495         * modules/classpath: New file.
14496         * MODULES.html.sh (Java): Add classpath.
14497
14498 2005-01-21  Bruno Haible  <bruno@clisp.org>
14499
14500         * lib/classpath.h: New file, from GNU gettext.
14501         * lib/classpath.c: New file, from GNU gettext.
14502
14503 2005-01-20  Simon Josefsson  <jas@extundo.com>
14504
14505         * modules/version-etc-fsf: New file.
14506
14507 2005-01-20  Simon Josefsson  <jas@extundo.com>
14508
14509         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
14510         * lib/version-etc.c: Remove version_etc_copyright.
14511         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
14512         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
14513
14514 2005-01-20  Simon Josefsson  <jas@extundo.com>
14515
14516         * lib/base64.h (isbase64): Add.
14517
14518         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
14519         using a unsigned prototype, don't inline.
14520         (base64_decode): Use it.
14521
14522 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
14523
14524         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
14525         it.
14526
14527 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
14528
14529         * lib/save-cwd.c (save_cwd): Remove code to support the case
14530         where fchdir is missing or flaky.
14531
14532 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
14533
14534         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
14535
14536 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
14537
14538         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
14539         AC_LIBSOURCES now does this.
14540         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
14541         with new ullong_max module.
14542
14543 2005-01-19  Bruno Haible  <bruno@clisp.org>
14544
14545         * modules/sh-quote: New file.
14546         * MODULES.html.sh (Executing programs): Add sh-quote.
14547
14548 2005-01-19  Bruno Haible  <bruno@clisp.org>
14549
14550         * lib/sh-quote.h: New file, from GNU gettext.
14551         * lib/sh-quote.c: New file, from GNU gettext.
14552
14553 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
14554
14555         Merge from coreutils.
14556         * m4/ullong_max.m4: New file.
14557         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
14558         (gl_MACROS): Assume localeconv exists.
14559
14560 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
14561
14562         Merge changes from coreutils, as described below in several
14563         changelogs dated today.
14564
14565         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
14566         (O_DIRECTORY): Remove; not needed here, since "." must be
14567         a directory.  All uses removed.
14568         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
14569         universal on Suns, and we also need to test for IRIX.
14570         Revamp code to use 'if' rather than '#if'.
14571         Avoid unnecessary comparison of cwd->desc to 0.
14572
14573         * lib/utimens.c (futimens): Robustify the previous patch, by checking
14574         for known valid error numbers rather than observed invalid ones.
14575
14576 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
14577
14578         * modules/ullong_max: New file.
14579
14580         * modules/chdir-long, modules/openat: New files.
14581         * modules/save-cwd (Depends-on): Depend on chdir-long.
14582         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
14583
14584 2005-01-18  Jim Meyering  <jim@meyering.net>
14585
14586         Merge from coreutils.
14587         * m4/chdir-long.m4, m4/openat.m4: New files.
14588         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
14589         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
14590         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
14591         is sane and DOES follow symlinks.  Besides, testing 20 different
14592         systems found no broken chown implementations.
14593         Prompted by a change in rsync's copy of this macro.
14594         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
14595
14596         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
14597
14598         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
14599         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
14600         NULL-means-set-to-current-time semantics.
14601         Remove temporary file immediately, rather than waiting
14602         for configure's at-exit trap code to do it.
14603
14604 2005-01-18  Jim Meyering  <jim@meyering.net>
14605
14606         * lib/version-etc.c (version_etc_copyright): Update copyright date.
14607
14608         * lib/utimens.c (futimens): Account for the fact that futimes
14609         can also fail with errno == ENOSYS or errno == ENOENT.
14610         Patch from Dmitry V. Levin.
14611
14612         Change the name of the robust chdir function from chdir to chdir_long.
14613         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
14614         (restore_cwd): Use chdir_long, not chdir.
14615         * lib/chdir-long.c: Renamed from chdir.c.
14616         * lib/chdir-long.h: Renamed from chdir.h.
14617         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
14618         Hurd.
14619
14620 2005-01-18  Bruno Haible  <bruno@clisp.org>
14621
14622         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
14623         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
14624         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
14625         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
14626         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
14627         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
14628         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
14629         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
14630         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
14631         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
14632         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
14633         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
14634         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
14635         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
14636         Use an all-permissive copyright notice, recommended by RMS.
14637
14638 2005-01-18  Bob Proulx  <bob@proulx.com>
14639
14640         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
14641         simplify offsetof() macro construct to avoid compile failure with
14642         native HP-UX 11.0 ANSI C compiler.
14643
14644 2005-01-17  Bruno Haible  <bruno@clisp.org>
14645
14646         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
14647         redundant because stpncpy.m4 takes care of it.
14648
14649 2005-01-17  Bruno Haible  <bruno@clisp.org>
14650
14651         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
14652
14653 2005-01-17  Bruno Haible  <bruno@clisp.org>
14654
14655         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
14656         used.
14657
14658 2005-01-17  Bruno Haible  <bruno@clisp.org>
14659
14660         * lib/fwriteerror.h (fwriteerror): Change specification to include
14661         fclose.
14662         * lib/fwriteerror.c: Include <stdbool.h>.
14663         (fwriteerror): At the end, close the file stream. Record whether
14664         stdout was already closed.
14665
14666 2005-01-17  Bruno Haible  <bruno@clisp.org>
14667
14668         * lib/execute.c (environ): Declare if needed.
14669         * lib/pipe.c (environ): Likewise.
14670         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
14671
14672 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
14673
14674         * modules/argp: Depend on vsnprintf
14675
14676 2005-01-10  Jim Meyering  <jim@meyering.net>
14677
14678         * modules/closeout (Depends-on): Add atexit.
14679
14680 2005-01-06  Bruno Haible  <bruno@clisp.org>
14681
14682         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
14683
14684 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
14685
14686         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
14687         definitions to be after all include files, to avoid collisions.
14688         Problem reported by Bob Proulx.
14689
14690 2005-01-04  Jim Meyering  <jim@meyering.net>
14691
14692         Changes imported from coreutils.
14693         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
14694         as the mkstemp template, use a temporary directory and an
14695         8.3-friendly template to avoid trouble on systems like DJGPP.
14696         Reported by Juan M. Guerrero via Stepan Kasal.
14697         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
14698         close. Remove the temporary directory right away, rather than waiting
14699         for configure's at-exit trap code to do it.
14700         Suggestion from Stepan Kasal.
14701
14702 2005-01-01  Simon Josefsson  <jas@extundo.com>
14703
14704         * gnulib-tool: Print #include directives when --import'ing.
14705
14706 2004-12-28  Simon Josefsson  <jas@extundo.com>
14707
14708         * tests/test-base64.c: Include required header files.  Remove
14709         unused variables.
14710
14711 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
14712
14713         * modules/error (Depends-on): Remove gettext.
14714
14715 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
14716
14717         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
14718         not needed.  This removes a dependency on the gettext module.
14719         [defined _LIBC]: Do not include <libintl.h>; not needed.
14720
14721 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
14722
14723         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
14724         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
14725
14726 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
14727
14728         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
14729         HAVE_DECL_STRTOLD.
14730
14731 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
14732
14733         * modules/getdate (Depends-on): Remove alloca-opt.
14734
14735 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
14736
14737         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
14738
14739 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
14740
14741         * lib/argp-parse.c: Include <stddef.h>.
14742         (alignof, alignto): New macros.
14743         (parser_init): Don't assume that void * is aligned sufficiently
14744         for struct option.
14745
14746         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
14747         need to extend the stack.
14748         (YYINITDEPTH): New macro, so that the initial stack isn't overly
14749         large.
14750
14751 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
14752
14753         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
14754
14755 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
14756
14757         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
14758         (2004-10-24) change.  Apparently this was a false alarm.
14759
14760         * modules/getdate: Depend on alloca-opt, not alloca.
14761
14762 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
14763
14764         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
14765         Remove now-obsolete comment about AIX.
14766         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
14767         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
14768         (YYMAXDEPTH): New macro.
14769
14770 2004-12-18  Simon Josefsson  <jas@extundo.com>
14771
14772         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
14773
14774 2004-12-18  Bruno Haible  <bruno@clisp.org>
14775
14776         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
14777
14778 2004-12-18  Bruno Haible  <bruno@clisp.org>
14779
14780         * lib/fatal-signal.c (fatal_signals): Make non-const.
14781         (init_fatal_signals): New function.
14782         (uninstall_handlers, install_handlers): Ignore signals that were set to
14783         SIG_IGN.
14784         (at_fatal_signal): Call init_fatal_signals.
14785         (init_fatal_signal_set): Likewise. Ignore signals that were set to
14786         SIG_IGN.
14787         Reported by Paul Eggert.
14788
14789 2004-12-18  Bruno Haible  <bruno@clisp.org>
14790
14791         * doc/alloca.texi: New file.
14792         * doc/alloca-opt.texi: New file.
14793
14794 2004-12-17  Jim Meyering  <jim@meyering.net>
14795
14796         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
14797         Otherwise, install-sh could exit with improper exit status when
14798         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
14799
14800 2004-12-16  Simon Josefsson  <jas@extundo.com>
14801
14802         * tests/test-base64.c: Add license.
14803
14804 2004-12-15  Stepan Kasal  <address@hidden>
14805
14806         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
14807
14808 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
14809
14810         * modules/getcwd (Files): Add m4/d-ino.m4.
14811         Suggested by Mark D. Baushke.
14812
14813 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
14814
14815         * lib/getdate.y (textint): New member "negative".
14816         (time_zone_hhmm): New function.
14817         Expect 14 shift-reduce conflicts, not 13.
14818         (o_colon_minutes): New rule.
14819         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
14820         (yylex): Set the "negative" member of signed numbers.
14821
14822 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
14823
14824         * doc/getdate.texi (Time of day items, Time zone items):
14825         Describe new formats +00:00, UTC+00:00.
14826
14827 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
14828
14829         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
14830         spurious "-l"s.  Problem reported by Stepan Kasal.
14831
14832 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
14833
14834         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
14835         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
14836
14837 2004-12-04  Simon Josefsson  <jas@extundo.com>
14838
14839         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
14840         Vandoorselaere <yoann@prelude-ids.org>.
14841
14842 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
14843
14844         Changes imported from coreutils.
14845         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
14846         exist.
14847         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
14848
14849 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
14850
14851         Changes imported from coreutils.
14852         * lib/hard-locale.c: Assume <locale.h> exists.
14853         Include "strdup.h".
14854         (GLIBC_VERSION): New macro.
14855         (hard_locale): Assume setlocale exists.
14856         Rewrite to avoid #ifdef.
14857         Use strdup rather than malloc + strcpy.
14858         * lib/human.c: Assume <locale.h> exists.
14859         (human_readable): Assume localeconv exists.
14860
14861 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
14862
14863         * modules/hard-locale (Depends-on): Add strdup.
14864
14865 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
14866
14867         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
14868         convert T2, not T.  (Imported from libc.)
14869
14870 2004-11-30  Simon Josefsson  <jas@extundo.com>
14871
14872         * modules/restrict (License): Change to LGPL.
14873
14874 2004-11-30  Simon Josefsson  <jas@extundo.com>
14875
14876         * m4/restrict.m4: Add copyright and copying conditions.
14877
14878 2004-11-30  Simon Josefsson  <jas@extundo.com>
14879
14880         * m4/base64.m4: New file.
14881
14882 2004-11-30  Simon Josefsson  <jas@extundo.com>
14883
14884         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
14885         base64.
14886
14887         * tests/test-base64.c: New file.
14888
14889         * modules/base64: New file.
14890
14891 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
14892
14893         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
14894         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
14895
14896         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
14897
14898 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
14899
14900         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
14901         (__getcwd.c): Don't restore errno; glibc doesn't.
14902         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
14903         first, falling back to our code only if its results look suspicious.
14904         Ensure that the resulting buffer is only as large as necessary.
14905
14906         * lib/readutmp.c: Include readutmp.h first.
14907         Include <errno.h>, since readutmp.h no longer does that.
14908         * lib/readutmp.h: Don't include <errno.h>,
14909         <sys/param.h>, <time.h>; not needed to establish interface.
14910         (errno): Remove decl.
14911         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
14912         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
14913         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
14914
14915 2004-11-28  Simon Josefsson  <jas@extundo.com>
14916
14917         * lib/base64.h, base64.c: New file.
14918
14919 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
14920
14921         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
14922
14923 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
14924
14925         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
14926         (Depends-on): Remove pathmax, same.  Add mempcpy.
14927         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
14928         (Makefile.am): Append getcwd.h to lib_SOURCES.
14929         (Include): Add getcwd.h.
14930         (Maintainer): Change from Jim Meyering to "all, glibc",
14931         since getdate now uses intended-for-glibc code.
14932         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
14933         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
14934
14935 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
14936
14937         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
14938         HP's ANSI C compiler.
14939         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
14940         Declaring int functions causes warnings on some modern systems and
14941         shouldn't be needed to compile on ancient ones.
14942         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
14943         defined.
14944
14945         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
14946         with the following changes.
14947         (__set_errno): Parenthesize properly.
14948         Include <stdbool.h>.
14949         (MIN, MAX, MATCHING_INO): New macros.
14950         (__getcwd): Define with prototype, not K&R form.
14951         Use heuristics to allocate default buffer on stack if possible.
14952         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
14953         behavior, and to avoid the PATH_MAX limit when computing
14954         ../../../../...
14955         Use MATCHING_INO to compare inode number to file.
14956         Check for arithmetic overflow in size calculations.
14957         Fix bug in reallocation of dot array that caused getcwd to fail
14958         on directories nested deeper than 75.
14959         Be more careful about saving errno on error.
14960         Do not use realloc; use only free+malloc, as this is a bit
14961         more flexible and avoids a needless copy operation.
14962         Do not inspect st_dev and st_ino for symbolic links; POSIX
14963         doesn't specify the latter.
14964         Check for closedir errors.
14965         Avoid needless casts.
14966         Use "#ifdef weak_alias" around weak_alias, to be like other
14967         glibc code.
14968         The following changes to getcwd.c have effect only when used in
14969         gnulib; they have no effect inside glibc proper.
14970         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
14971         as alloca isn't used.
14972         (alloca, __alloca): Likewise.
14973         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
14974         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
14975         unconditionally, as gnulib assumes C89 or better.
14976         Do not include <sys/param.h>.
14977         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
14978         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
14979         better.
14980         (NULL) [!defined NULL]: Remove; we assume C89 or better.
14981         Include <dirent.h> in a way that is compatible with modern Autoconf.
14982         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
14983         New macros, if not already defined.
14984         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
14985         Use "_LIBC", not "defined _LIBC", for consistency.
14986         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
14987         a mempcpy module.
14988         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
14989         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
14990         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
14991         credit only to Jim Meyering and adjust the copyright dates.
14992         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
14993         <stdlib.h>, <unistd.h>, "pathmax.h".
14994         Instead, include "xgetcwd.h" (first) and "getcwd.h".
14995         (INITIAL_BUFFER_SIZE): Remove.
14996         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
14997
14998 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
14999
15000         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
15001         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
15002         Use the _ONCE methods, for efficiency.
15003         Check for fcntl.h.  In test program, include <errno.h>
15004         and <fcntl.h> if available.  Remove old K&R cruft from
15005         test program.  Check for common errors in GNU/Linux,
15006         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
15007         don't do AC_LIBOBJ, as that's getcwd.m4's job.
15008         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
15009         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
15010         name accordingly.
15011         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
15012         accommodate new getcwd.c.
15013         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
15014         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
15015         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
15016         that's all we need now.
15017
15018 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
15019
15020         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
15021         argp-parse.c depends on getopt internals, that means we should
15022         always use our getopt, to be on the safe side.
15023         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
15024         order not to spoil the result of an eventual previous invocation
15025         of gl_GETOPT_SUBSTITUTE.
15026
15027 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
15028
15029         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
15030         redefinition warnings. To avoid them, include the defines
15031         in `#if !defined __need_getopt ... #endif'. The only place
15032         where __getopt_argv_const is used is in definitions
15033         of getopt_long and getopt_long_only below, which are as well
15034         protected by `#ifndef __need_getopt'.
15035         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
15036         __need_getopt after including <stdio.h> and <unistd.h> These
15037         headers might have defined it.
15038
15039 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
15040
15041         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
15042
15043 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
15044
15045         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
15046         (futimens): New function, which uses futimes if available.
15047         (futimens, utimens): Support timespec==NULL, with same semantics
15048         as utime and utimens.
15049         * lib/utimens.h (futimens): New decl.
15050
15051 2004-11-23  Jim Meyering  <jim@meyering.net>
15052
15053         * lib/getopt_.h: Remove trailing blanks.
15054
15055 2004-11-23  Jim Meyering  <jim@meyering.net>
15056
15057         * lib/__fpending.c: Add comment.
15058
15059 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
15060
15061         * modules/canonicalize (Depends-on): Add xreadlink.
15062         Problem reported by James Youngman.
15063
15064 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
15065
15066         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
15067         New macros.
15068         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
15069         optopt): Use them instead of invoking ## directly; otherwise, the
15070         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
15071
15072 2004-11-19  Bruno Haible  <bruno@clisp.org>
15073
15074         * lib/strtok_r.c: Move comments from here...
15075         * lib/strtok_r.h: ... to here.
15076
15077 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
15078
15079         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
15080         implementations that mishandle size_t overflow.
15081
15082 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
15083
15084         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
15085         might fail.  Problem reported by Yoann Vandoorselaere.
15086         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
15087         implementations that mishandle size_t overflow.
15088
15089 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
15090
15091         * modules/canon-host (Depends-on): Add strdup.
15092
15093 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
15094
15095         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
15096
15097 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
15098
15099         * lib/canon-host.c: Include "strdup.h".
15100         (canon_host): Use getaddrinfo if available, so that IPv6 works.
15101         Use strdup instead of malloc/strcpy to duplicate strings.
15102
15103         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
15104         (human_space_before_unit): New constant.
15105         * lib/human.c (human_readable): Support it.
15106
15107         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
15108         (xgetcwd): Set errno correctly when failing.
15109         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
15110         the failure is actually due to a PATH_MAX problem.
15111
15112         Further getopt changes to make it more likely that glibc will
15113         buy the changes back.
15114         * lib/getopt.c (POSIXLY_CORRECT): New constant.
15115         (getopt): Use it, so to preserve glibc semantic
15116         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
15117         when compiling for libc.
15118         * lib/getopt_.h (__getopt_argv_const): Bring it back.
15119         (getopt_long, getopt_long_only): Use it.
15120
15121         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
15122         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
15123         (getopt): Argv is now char * const *, as per standard.
15124         (_getopt_internal_r, _getopt_internal): Argv is now char **,
15125         not char *__getopt_argv_const *.
15126         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
15127         _getopt_long_only_r): Likewise.
15128         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
15129         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
15130         _getopt_long_r, _getopt_long_only_r): Likewise.
15131         * lib/getopt_.h (__getopt_argv_const): Remove.
15132         (getopt): Argv is now char * const *, as per standard.
15133
15134         * lib/getdate.y (tORDINAL): New token.
15135         (day, relunit): Allow it for relative times.
15136         (relative_time_table): Use tORDINAL for ordinals.
15137
15138 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
15139
15140         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
15141         Document that "second" isn't allowed as an ordinal number.
15142
15143 2004-11-16  Jim Meyering  <jim@meyering.net>
15144
15145         * modules/closeout (Depends-on): Add fpending.
15146
15147 2004-11-15  Jim Meyering  <jim@meyering.net>
15148
15149         * lib/closeout.c: Include "__fpending.h" once again.
15150         Include <stdbool.h>.
15151         (close_stdout): Don't fail just because stdout was closed initially,
15152         since some programs don't write to stdout in the normal course of
15153         operation (other than --version and --help), and we don't want this
15154         function to make e.g. `touch file >&-' fail.
15155         But do fail if it was closed and someone has tried to write to it.
15156         E.g., `printf foo >&-' must fail.
15157
15158 2004-11-13  Jim Meyering  <jim@meyering.net>
15159
15160         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
15161
15162 2004-11-12  Simon Josefsson  <jas@extundo.com>
15163
15164         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
15165         small doc fix is still pending.
15166
15167 2004-11-11  Simon Josefsson  <jas@extundo.com>
15168
15169         * modules/strtok_r: New file.
15170
15171         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
15172         strtok_r.
15173
15174 2004-11-11  Simon Josefsson  <jas@extundo.com>
15175
15176         * m4/strtok_r.m4: New file.
15177
15178         * m4/getopt.m4: Replace opterr.
15179
15180 2004-11-11  Simon Josefsson  <jas@extundo.com>
15181
15182         * lib/strtok_r.h, strtok_r.c: New file.
15183
15184 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
15185
15186         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
15187         of replacing opterr, getopt, etc.  This should handle the
15188         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
15189
15190 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
15191
15192         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
15193         we can stop lying to compilers about the constness of argv when we
15194         are compiled outside glibc.
15195         (getopt, getopt_long, getopt_long_only): Use it.
15196         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
15197         _getopt_internal, getopt): Likewise.
15198         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
15199         _getopt_long_only_r): Likewise.
15200         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
15201         _getopt_long_r, _getopt_long_only_r): Likewise.
15202
15203         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
15204         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
15205         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
15206         the other external symbols.
15207         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
15208         declaration, since the above renaming now works around collisions.
15209
15210 2004-11-11  Jim Meyering  <jim@meyering.net>
15211
15212         * lib/linebreak.c: Remove trailing blanks.
15213         * lib/alloca_.h: Likewise.
15214         * lib/acosl.c: Likewise.
15215         * lib/euidaccess.c: Likewise.
15216         * lib/allocsa.h: Likewise.
15217
15218 2004-11-10  Simon Josefsson  <jas@extundo.com>
15219
15220         * m4/getaddrinfo.m4: New file.
15221
15222 2004-11-10  Simon Josefsson  <jas@extundo.com>
15223
15224         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
15225
15226 2004-11-10  Simon Josefsson  <jas@extundo.com>
15227
15228         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
15229         getaddrinfo.
15230
15231         * modules/getaddrinfo: New file.
15232
15233 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
15234
15235         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
15236
15237 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
15238
15239         * lib/mktime.c (SHR): New macro, which is a portable
15240         substitute for >> that should work even on Crays.
15241         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
15242         Problem reported by Mark D. Baushke in
15243         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
15244         * lib/getdate.y (SHR): Likewise.
15245         (tm_diff): Use it.
15246         * lib/strftime.c (SHR): Likewise.
15247         (tm_diff): Use it.
15248         * lib/quotearg.c (struct quoting_options): Use unsigned int for
15249         quote_these_too, so that right shifts are well defined.  All uses
15250         changed.
15251
15252 2004-11-10  Jim Meyering  <jim@meyering.net>
15253
15254         Ensure that no close failure goes unreported.
15255         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
15256         return early when it seems there's nothing to flush.
15257         Don't include __fpending.h.
15258
15259 2004-11-10  Jim Meyering  <jim@meyering.net>
15260
15261         * modules/closeout (Depends-on): Remove fpending.
15262
15263 2004-11-10  Jim Meyering  <jim@meyering.net>
15264
15265         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
15266
15267 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
15268
15269         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
15270         gl_FUNC_STRFTIME.
15271         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
15272         and AC_REQUIRE when possible, to avoid duplicate checks.
15273         Check for <wchar.h>.
15274
15275 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
15276
15277         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
15278
15279 2004-11-09  Bruno Haible  <bruno@clisp.org>
15280
15281         * m4/sockpfaf.m4: New file.
15282
15283 2004-11-05  Bruno Haible  <bruno@clisp.org>
15284
15285         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
15286         Reported by Mark D. Baushke <mdb@cvshome.org>.
15287
15288 2004-11-04  Bruno Haible  <bruno@clisp.org>
15289
15290         2004-09-11  Bruno Haible  <bruno@clisp.org>
15291                 * allocsa.valgrind: New file.
15292         2004-02-06  Bruno Haible  <bruno@clisp.org>
15293                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
15294                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
15295                 Reported by Christopher Seip <chris.seip@hp.com>.
15296
15297 2004-11-04  Bruno Haible  <bruno@clisp.org>
15298
15299         * modules/allocsa (Files): Add lib/allocsa.valgrind.
15300         (Makefile.am): Distribute it.
15301
15302 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
15303
15304         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
15305         with errno == ERANGE if the buffer is too small.
15306         Problem reported by Mark D. Baushke.
15307
15308 2004-11-03  Albert Chin  <china@thewrittenword.com>
15309             Paul Eggert  <eggert@cs.ucla.edu>
15310
15311         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
15312         equivalent, substitute $ac_type for equivalent type rather than
15313         blindly using uint32_t *always* which won't work if uint32_t is not
15314         available.  Define _UINT32_T to work around typedef of uint32_t if
15315         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
15316         2.5.1.
15317
15318 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
15319
15320         * m4/jm-macros.m4: Sync from coreutils.
15321         (gl_MACROS): Check for mbrlen, for pathchk.
15322         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
15323
15324 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
15325
15326         * lib/xreadlink.c (MAXSIZE): New macro.
15327         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
15328         size does not exceed MAXSIZE.  Avoid cast.
15329         As suggested by Mark D. Baushke in
15330         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
15331         if readlink fails with buffer size just under MAXSIZE, try again
15332         with MAXSIZE.
15333
15334 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
15335
15336         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
15337
15338 2004-11-02  Derek R. Price  <derek@ximbiot.com>
15339         and  Paul Eggert  <eggert@cs.ucla.edu>
15340
15341         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
15342         (get_date): Overparenthesize to avoid GCC warning.
15343
15344 2004-11-02  Bruno Haible  <bruno@clisp.org>
15345
15346         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
15347         returns void.
15348
15349 2004-11-02  Bruno Haible  <bruno@clisp.org>
15350
15351         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
15352         function returns void.
15353
15354 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
15355
15356         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
15357         fflush_unlocked, flockfile, funlockfile, funlockfile,
15358         fputs_unlocked, putc_unlocked.
15359
15360 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
15361
15362         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
15363         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
15364         already declared.
15365
15366 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
15367
15368         * modules/getdate (Files): Add doc/getdate.texi.
15369         (Depends-on): Add setenv, xalloc.
15370
15371 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
15372
15373         * lib/getdate.y: Add support for TZ="foo" within a date string.
15374         Fix some bugs near time_t boundaries.  Reject dates with
15375         out-of-range components, e.g., "Sept 31".
15376         Include <stdlib.h>, "setenv.h", "xalloc.h".
15377         (ISDIGIT_LOCALE): Remove; unused.
15378         Note that the TZ and time functions used here are not reentrant.
15379         (mktime_ok, get_tz): New functions.
15380         (TZBUFSIZE): New constant.
15381         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
15382         This requires that we sometimes generate our own TZ="XXX..." setting.
15383
15384 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
15385
15386         * doc/getdate.texi: New file, from coreutils with modifications for
15387         the new TZ parsing.
15388
15389 2004-10-27  Derek R. Price  <derek@ximbiot.com>
15390
15391         * lib/mktime.c (not_equal_tm): Remove redundant check.
15392
15393 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
15394
15395         * modules/regex (lib_SOURCES): Add regex.c.
15396         Reported by James Youngman in
15397         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
15398
15399 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
15400
15401         * lib/getdate.y: Use Bison 1.875 features, and some minor
15402         code cleanups.  This change does not affect semantics.
15403         Don't include <stdlib.h>; no longer needed.
15404         Don't include unlocked-io.h; only the "#if TEST" code uses
15405         stdio, and performance isn't crucial there.
15406         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
15407         Bison 1.875 features as described below.
15408         All uses of "PC." replaced by "pc->".
15409         (YYSTYPE): Add a forward declaration.
15410         (yylex, yyerror): Use full prototypes in forward decls.
15411         Use "%pure-parser" rather than obsolescent "%pure_parser".
15412         Use %parse-param and %lex-param instead of obsolescent
15413         YYPARSE_PARAM and YYLEX_PARAM.
15414         (meridian_table, month_and_day_table, time_units_table,
15415         relative_time_table, time_zone_table, military_table,
15416         lookup_zone, lookup_word, get_date):
15417         Use NULL instead of 0 where appropriate.
15418         (to_hour): Avoid abort (), to avoid a dependency on
15419         stdlib.h.
15420         (yyerror, yylex): Now accepts parser_control * arg.
15421         (main) [TEST]: Use '\0' rather than 0 for char.
15422
15423 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
15424
15425         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
15426
15427 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
15428
15429         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
15430         It's now the caller's responsibility to handle the case where
15431         !HAVE_GETPAGESIZE && !defined getpagesize.
15432
15433         * lib/mktime.c (leapyear): Arg is long int, not int.
15434
15435 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
15436
15437         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
15438
15439 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
15440
15441         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
15442         missing.  Problem reported by James Youngman.
15443
15444 2004-10-16  Simon Josefsson  <jas@extundo.com>
15445
15446         * gnulib-tool: Fix comments.  Fix parse problem.
15447         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
15448
15449 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
15450
15451         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
15452         implementation of getopt_long.  Problem reported by Alexander Taler in:
15453         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
15454
15455 2004-10-15  Bruno Haible  <bruno@clisp.org>
15456
15457         * gnulib-tool: Untabify. Initialize supplied_libname.
15458         (func_usage): More homogenous output.
15459         (func_modules_transitive_closure, func_modules_to_filelist,
15460         func_emit_lib_Makefile_am): New functions.
15461         (func_import): New function, extracted from big case statement. Use
15462         func_get_license, func_modules_transitive_closure,
15463         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
15464         opt_lgpl. Don't use test -a, as it's not portable.
15465         (func_create_testdir): Use func_modules_transitive_closure,
15466         func_modules_to_filelist, func_emit_lib_Makefile_am.
15467
15468 2004-10-15  Bruno Haible  <bruno@clisp.org>
15469
15470         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
15471
15472 2004-10-15  Bruno Haible  <bruno@clisp.org>
15473
15474         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
15475         the portions belonging to each module.
15476         Suggested by Derek Robert Price <derek@ximbiot.com>.
15477
15478 2004-10-12  Simon Josefsson  <jas@extundo.com>
15479
15480         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
15481         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
15482         to real functions.
15483
15484 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
15485
15486         * modules/vsnprintf: New file.
15487
15488 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
15489
15490         * m4/vsnprintf.m4: New file.
15491
15492 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
15493
15494         * lib/vsnprintf.h: New file.
15495         * lib/vsnprintf.c: New file.
15496
15497 2004-10-11  Bruno Haible  <bruno@clisp.org>
15498
15499         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
15500         vsnprintf.
15501
15502 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
15503
15504         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
15505
15506 2004-10-07  Bruno Haible  <bruno@clisp.org>
15507
15508         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
15509         fits into the provided buffer.
15510
15511 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
15512
15513         * lib/diacrit.c, diacrit.h: Add GPL notice.
15514
15515         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
15516         notice.
15517         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
15518         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
15519         This avoids a potential constant-folding bug.
15520
15521 2004-10-05  Bruno Haible  <bruno@clisp.org>
15522
15523         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
15524         for the declaration of strsep.
15525
15526 2004-10-05  Bruno Haible  <bruno@clisp.org>
15527
15528         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
15529
15530 2004-10-04  Simon Josefsson  <jas@extundo.com>
15531
15532         * modules/memmem: New file.
15533         * tests/test-memmem.c: New file.
15534         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
15535
15536 2004-10-04  Simon Josefsson  <jas@extundo.com>
15537
15538         * m4/memmem.m4: New file.
15539
15540 2004-10-04  Simon Josefsson  <jas@extundo.com>
15541
15542         * lib/memmem.h: New file.
15543         * lib/memmem.c: New file, taken from glibc.
15544
15545 2004-10-04  Simon Josefsson  <jas@extundo.com>
15546
15547         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
15548         '#ifdef USE_UNLOCKED_IO'.
15549
15550 2004-10-04  Simon Josefsson  <jas@extundo.com>
15551
15552         * config/srclist.txt: Add memmem from glibc.
15553
15554 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
15555
15556         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
15557
15558         * modules/argmatch, modules/argp, modules/closeout, modules/error,
15559         modules/exclude, modules/getdate, modules/getline,
15560         modules/getndelim2, modules/getpass, modules/getpass-gnu,
15561         modules/getusershell, modules/linebuffer, modules/md5,
15562         modules/mountlist, modules/posixtm, modules/readtokens,
15563         modules/readutmp, modules/regex, modules/sha1,
15564         modules/version-etc, modules/yesno:
15565         Remove dependency on unlocked-io.
15566
15567 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
15568
15569         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
15570
15571         * m4/unlocked-io.m4: Add copyright notice.
15572         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
15573
15574 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
15575
15576         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
15577         * lib/xmalloc.c (xmemdup): Likewise.
15578         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
15579         XFREE): Remove these long-obsolescent macros.
15580         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
15581         * lib/xstrdup.c: Remove.
15582
15583         * lib/regex.c (re_comp): Cast gettext return value to char *,
15584         Problem reported by Martin Neitzel via Mark D. Baushke.
15585
15586 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
15587
15588         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
15589         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
15590         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
15591         regex.c, sha1.c, version-etc.c, yesno.c:
15592         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
15593         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
15594         the includer's responsibility.
15595
15596         Sync from coreutils.
15597
15598         * lib/modechange.c (mode_compile): Don't decrement a pointer that
15599         points to the start of a string, as the C Standard says the
15600         resulting behavior is undefined.
15601
15602         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
15603         simple -> simple_backups, numbered_existing ->
15604         numbered_existing_backups, numbered -> numbered_backups
15605         to avoid shadowing problems.  All uses changed.
15606         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
15607         * lib/backupfile.c (check_extension, numbered_backup):
15608         Rename locals to avoid shadowing 'basename'.
15609         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
15610         once.
15611
15612         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
15613         * lib/.cvsignore: Add getopt.h.
15614
15615 2004-10-04  Bruno Haible  <bruno@clisp.org>
15616
15617         * modules/README: New file.
15618         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
15619         not a module.
15620
15621 2004-10-02  Jim Meyering  <jim@meyering.net>
15622
15623         * lib/dirfd.h, getpagesize.h: Add copyright notice.
15624
15625 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
15626
15627         * modules/strsep: New file.
15628
15629 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
15630
15631         * m4/strsep.m4: New file.
15632
15633 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
15634
15635         * lib/strsep.h: New file.
15636         * lib/strsep.c: New file.
15637
15638 2004-10-01  Simon Josefsson  <jas@extundo.com>
15639
15640         * lib/snprintf.c (snprintf): Handle size==0.
15641
15642 2004-10-01  Simon Josefsson  <jas@extundo.com>
15643             Bruno Haible  <bruno@clisp.org>
15644
15645         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
15646         (snprintf): Declare 'args'.
15647
15648 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
15649
15650         * lib/snprintf.c: Remove comments as to why each header is needed.
15651
15652 2004-10-01  Bruno Haible  <bruno@clisp.org>
15653
15654         * MODULES.html.sh: Add strsep.
15655
15656 2004-09-30  Simon Josefsson  <jas@extundo.com>
15657
15658         * modules/snprintf: New file.
15659
15660 2004-09-30  Simon Josefsson  <jas@extundo.com>
15661
15662         * m4/snprintf.m4: New file.
15663
15664 2004-09-30  Simon Josefsson  <jas@extundo.com>
15665
15666         * lib/snprintf.h, lib/snprintf.c: New files.
15667
15668 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
15669
15670         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
15671         (hol_entry_help): Never translate an empty string.
15672         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
15673         * lib/argp.h (OPTION_NO_TRANS): New option.
15674
15675 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
15676
15677         * modules/argp (Maintainer): Replace Simon Josefsson
15678         by Sergey Poznyakoff.
15679
15680 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
15681
15682         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
15683         changes merged back into glibc.
15684
15685 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
15686
15687         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
15688
15689 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
15690
15691         * lib/xvasprintf.c: Include xalloc.h.
15692         (xvasprintf): Use xalloc_die, not xmalloc_die.
15693
15694 2004-09-29  Bruno Haible  <bruno@clisp.org>
15695
15696         * modules/alloca-opt: New file, derived from modules/alloca.
15697         * modules/allocsa: Depend on alloca-opt instead of alloca.
15698         * modules/setenv: Likewise.
15699         * modules/vasnprintf: Likewise.
15700         * MODULES.html.sh: Add alloca-opt.
15701
15702 2004-09-28  Simon Josefsson  <jas@extundo.com>
15703
15704         * gnulib-tool: New parameter --lgpl, to asseert that modules are
15705         LGPL, and to replace license template from GPL to LGPL.
15706
15707 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
15708
15709         * modules/dummy: Change license to LGPL.
15710
15711 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
15712
15713         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
15714
15715 2004-09-24  Simon Josefsson  <jas@extundo.com>
15716
15717         * modules/minmax (License): Change from GPL to LGPL.
15718
15719 2004-09-23  Simon Josefsson  <jas@extundo.com>
15720
15721         * gnulib-tool (--import): Typo.
15722
15723 2004-09-23  Simon Josefsson  <jas@extundo.com>
15724
15725         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
15726
15727 2004-09-22  Bruno Haible  <bruno@clisp.org>
15728
15729         * modules/*: Add 'License' field.
15730         * gnulib-tool: Accept --extract-license option.
15731         (func_get_license): New function.
15732
15733 2004-09-21  Bruno Haible  <bruno@clisp.org>
15734
15735         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
15736         Reported by Simon Josefsson.
15737
15738 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
15739
15740         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
15741         gl_AC_TYPE_LONG_LONG.
15742
15743 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
15744
15745         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
15746
15747 2004-09-18  Simon Josefsson  <jas@extundo.com>
15748         and  Paul Eggert  <eggert@cs.ucla.edu>
15749
15750         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
15751         calls with autoreconf.  Define GL_LIB.
15752
15753 2004-09-14  Karl Berry  <karl@gnu.org>
15754
15755         * config/srclist.txt: unsync setenv.c, sigh.
15756
15757 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
15758
15759         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
15760         Problem reported by Bruno Haible in:
15761         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
15762
15763 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
15764
15765         * config/srclist.txt: Comment out argp-pvh.c.
15766
15767 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
15768
15769         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
15770         in case some system header has #define'd it.  Problem reported by
15771         Soeren D. Schulze in
15772         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
15773
15774 2004-09-09  Karl Berry  <karl@gnu.org>
15775
15776         * regex.[ch]: delete from the root.  These were supposed to be
15777                 synced with emacs cvs, but this has not happened for about
15778                 a year, and anyway nothing else uses emacs regex.[ch].
15779                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
15780                 lib/regex[.ch] is untouched.
15781
15782 2004-09-09  Bruno Haible  <bruno@clisp.org>
15783
15784         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
15785
15786 2004-09-09  Bruno Haible  <bruno@clisp.org>
15787
15788         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
15789         modifications.
15790         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
15791
15792 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
15793
15794         * modules/xvasprintf: New file.
15795         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
15796
15797 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
15798
15799         * lib/xvasprintf.h: New file.
15800         * lib/xvasprintf.c: New file.
15801         * lib/xasprintf.c: New file.
15802
15803 2004-09-08  Bruno Haible  <bruno@clisp.org>
15804
15805         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
15806
15807 2004-09-08  Bruno Haible  <bruno@clisp.org>
15808
15809         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
15810         length is > INT_MAX.
15811         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
15812         more.
15813
15814 2004-09-08  Bruno Haible  <bruno@clisp.org>
15815
15816         * lib/stdint_.h: New file, taken from GNU clisp.
15817
15818 2004-09-08  Bruno Haible  <bruno@clisp.org>
15819             Oskar Liljeblad  <oskar@osk.mine.nu>
15820
15821         * modules/stdint: New file.
15822         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
15823
15824 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
15825
15826         Import from coreutils.
15827         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
15828         strings on unbounded length.  alloca's performance benefits aren't
15829         that important here.
15830         (V_STRDUP): Remove.
15831         (parse_with_separator): New function, with most of the internals
15832         of the old parse_user_spec.  Allow user to omit both user and group,
15833         for compatibility with FreeBSD.
15834         Clone only the user name, not the entire spec.
15835         Do not set *uid, *gid unless entirely successful.
15836         Avoid memory leak in some failing cases.
15837         Fix regression for USER.GROUP reported by Dmitry V. Levin in
15838         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
15839         (parse_user_spec): Rewrite to use parse_with_separator.
15840
15841 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
15842
15843         * modules/userspec: Don't depend on alloca.
15844
15845 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
15846
15847         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
15848
15849 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
15850
15851         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
15852         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
15853         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
15854
15855 2004-08-16  Simon Josefsson  <jas@extundo.com>
15856
15857         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
15858         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
15859         Add --dry-run for --import.
15860         Let user provided command line parameters override configure.ac
15861         settings.
15862
15863 2004-08-12  Simon Josefsson  <jas@extundo.com>
15864
15865         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
15866         as discussed with Paul Eggert in threads rooted at
15867         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
15868         and
15869         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
15870         Before, the test was empty, and relied on ELIDE_CODE in source
15871         code.)
15872         (gl_PREREQ_GETOPT): New macro.
15873         (gl_GETOPT): Use them.
15874
15875 2004-08-12  Simon Josefsson  <jas@extundo.com>
15876
15877         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
15878         * lib/getopt_.h: Renamed from getopt.h.
15879
15880 2004-08-12  Simon Josefsson  <jas@extundo.com>
15881
15882         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
15883         Change default library name from libfoo to libgnu.
15884         Now, if you have a configure.ac that says:
15885                 gl_SOURCE_BASE(gl)
15886                 gl_M4_BASE(gl/m4)
15887                 gl_MODULES(error getopt etcetera)
15888                 gl_INIT
15889         you can import all you need by running:
15890                 ../gnulib/gnulib-tool --import
15891
15892         * modules/getopt (Files): Rename getopt.h to getopt_.h.
15893         (Makefile.am): Rewrite, use logic from argz.
15894         (Include): Use <getopt.h> instead of "getopt.h".
15895
15896 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
15897
15898         * modules/argp (Files): Add m4/unlocked-io.m4.
15899         (Depends-on): Add extensions.
15900
15901 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
15902
15903         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
15904         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
15905         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
15906         Check for program_invocation_name, program_invocation_short_name,
15907         flockfile, funlockfile, features.h, _getopt_long_only_r.
15908
15909 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
15910
15911         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
15912         its complicated substitute.
15913         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
15914         and program_invocation_name.
15915         (__argp_basename) [!_LIBC]: Remove; the only use was
15916         replaced by its body.
15917         (__argp_short_program_name): Change condition from
15918         !defined __argp_short_program_name to
15919         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
15920         to match argp-namefrob.h.
15921         (__argp_failure): Don't assume strerror_r returns char *.
15922         * lib/argp-parse.c (N_): Define unconditionally.
15923         (argp_default_options): Fill out initializers with 0 to avoid
15924         gcc warnings.
15925
15926 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
15927
15928         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
15929         getopt1.c.
15930
15931 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
15932
15933         Merge from coreutils.
15934
15935         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
15936
15937         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
15938         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
15939
15940 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
15941
15942         Merge from coreutils.
15943
15944         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
15945         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
15946         for Reliant Unix 5.43.
15947
15948         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
15949         (union fooround): Use uintmax_t, not long int.
15950         The rest is a merge from libc:
15951         [defined _LIBC]: Include <shlib-compat.h>.
15952         (_obstack) [defined _LIBC]: Remove after 2.3.4.
15953
15954         * lib/settime.c (settime): Recode to avoid warning with
15955         Sun Forte C 6U2.
15956
15957         * lib/strverscmp.c: Convert to UTF-8.
15958
15959 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
15960
15961         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
15962         m4/uintmax_t.m4.
15963
15964 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
15965
15966         * modules/xalloc-die: New file.
15967         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
15968
15969         * modules/md5 (Files): Add m4/uint32_t.m4.
15970         * modules/sha1: Renamed from modules/sha.
15971         (Files):
15972         Rename lib/sha.h to lib/sha1.h.
15973         Rename lib/sha.c to lib/sha1.c.
15974         Rename m4/sha.m4 to m4/sha1.m4.
15975         (lib_SOURCES): Likewise.
15976         (configure.ac): Rename gl_SHA to gl_SHA1.
15977         (Include): sha.h -> sha1.h.
15978
15979 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
15980
15981         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
15982         * m4/sha1.m4: Renamed from sha.m4.
15983         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
15984
15985 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
15986
15987         * lib/obstack.h (obstack_empty_p):
15988         Don't assume that chunk->contents is suitably aligned.
15989         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
15990         Likewise. Problem reported by Benno in
15991         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
15992
15993         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
15994         readable.  This could be improved further but it'd take some work.
15995
15996 2004-08-08  Simon Josefsson  <jas@extundo.com>
15997
15998         * modules/xgethostname (Depends-on): Remove exit and error (not
15999         used).
16000
16001         * modules/getpass-gnu: Add getpass.h.
16002         (Depends-on): Add stdbool.
16003         * modules/getpass: Add getpass.h.
16004
16005 2004-08-08  Simon Josefsson  <jas@extundo.com>
16006
16007         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
16008         Check getpass declaration.
16009
16010 2004-08-08  Simon Josefsson  <jas@extundo.com>
16011
16012         * lib/xgethostname.c: Don't include error.h (not used).
16013
16014         * lib/getpass.h: Add.
16015         * lib/getpass.c: Include getpass.h first.
16016
16017 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
16018
16019         * lib/xalloc-die.c: New file.
16020         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
16021         All uses removed.
16022         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
16023         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
16024         xalloc-die.c.
16025         (_, N_, xalloc_die): Move to xalloc-die.c.
16026         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
16027         so that we needn't mess with xalloc_msg_memory_exhausted.
16028
16029         * lib/sha1.h: Renamed from sha.h.
16030         (SHA1_H): Renamed from _SHA_H.
16031         (sha1_ctx): Renamed from sha_ctx.
16032         (sha1_init_ctx): Renamed from sha_init_ctx.
16033         (sha1_process_block): Renamed from sha_process_block.
16034         (sha1_process_bytes): Renamed from sha_process_bytes.
16035         (sha1_finish_ctx): Renamed from sha_finish_ctx.
16036         (sha1_read_ctx): Renamed from sha_read_ctx.
16037         (sha1_stream): Renamed from sha_stream.
16038         (sha1_buffer): Renamed from sha_buffer.
16039         * lib/sha1.c: Likewise; renamed from sha.c.
16040         Do not include <sys/types.h>.
16041         Include <stddef.h> rather than <stdlib.h>.
16042
16043 2004-08-08  Bruno Haible  <bruno@clisp.org>
16044
16045         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
16046         FILESYSTEM_PREFIX_LEN.
16047         * lib/progreloc.c: Likewise.
16048         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
16049
16050 2004-08-06  Simon Josefsson  <jas@extundo.com>
16051
16052         * modules/progname (Depends-on): Don't depend on stdbool.
16053
16054 2004-08-06  Simon Josefsson  <jas@extundo.com>
16055
16056         * modules/getsubopt: New file.
16057         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
16058         getsubopt.
16059
16060 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
16061
16062         More merge from coreutils.
16063
16064         * m4/utimens.m4, m4/utimecmp.m4: New files.
16065         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
16066         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
16067         prereq.m4, sha.m4: Import changes from coreutils.
16068
16069 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
16070
16071         More merge from coreutils.
16072         * modules/raise, modules/readtokens0, modules/utimens:
16073         * modules/utimecmp, module/xnanosleep: New files.
16074         * modules/strftime: Add lib/strftime.h.
16075         Change include from <time.h> to "strftime.h".
16076         * modules/yesno: Add lib/yesno.h.
16077         * modules/backupfile: Remove lib/addext.c.
16078         * modules/euidaccess: Add stat-macros.h.
16079         * modules/canonicalize, modules/euidaccess,
16080         modules/filemode, modules/lchown, modules/makepath,
16081         modules/rmdir, modules/stat: Likewise.
16082
16083 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
16084
16085         Merge from tar.
16086         * lib/argp-help.c (make_hol, hol_append): Don't assume that
16087         SIZE_MAX is a valid preprocessor constant.
16088         (__argp_basename): Change from "#ifndef _LIBC"
16089         to "#ifndef __argp_short_program_name", so that
16090         we don't compile these functions for tar.
16091
16092         More merges from coreutils.
16093         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
16094         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
16095         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
16096         * lib/addext.c: Remove; no longer needed.
16097         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
16098         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
16099         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
16100         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
16101         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
16102         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
16103         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
16104         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
16105         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
16106         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
16107         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
16108         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
16109         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
16110         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
16111         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
16112         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
16113         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
16114         Import changes from coreutils.
16115
16116 2004-08-05  Simon Josefsson  <jas@extundo.com>
16117
16118         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
16119
16120 2004-08-05  Simon Josefsson  <jas@extundo.com>
16121
16122         * m4/getsubopt.m4: New file.
16123
16124 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
16125
16126         Merge from coreutils.
16127
16128         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
16129         * m4/getcwd-path-max.m4: New files.
16130
16131         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
16132         FILESYSTEM_PREFIX_LEN ->
16133         FILE_SYSTEM_PREFIX_LEN.
16134         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
16135         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
16136         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
16137         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
16138
16139         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
16140         prerequisite modules now handle the DOS stuff.
16141         Don't check for unistd.h.
16142
16143 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
16144
16145         Merge from coreutils.
16146
16147         * lib/.gdb-history: Remove; this doesn't belong here.
16148
16149         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
16150         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
16151         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
16152         * lib/getcwd.c: New files.
16153
16154         * lib/dirname.h: Include <stdbool.h>.
16155         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
16156         for consistency with POSIX terminology.  All uses changed.
16157         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
16158         (strip_trailing_slashes): Use bool for booleans.
16159         * lib/stripslash.c (strip_trailing_slashes): Likewise.
16160
16161         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
16162         sometimes returns a positive errno value even when it succeeds.
16163         (print_errno_message) [!LIBC]: Fall back on strerror if
16164         __strerror_r fails.
16165
16166         * lib/path-concat.c (mempcpy): Don't define if a system header defines
16167         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
16168         (longest_relative_suffix): New function.
16169         (path_concat): Use it.  Assume first argument is not NULL.
16170         Port to DOS.  Omit redundant separators.
16171         Report an error instead of returning NULL.
16172         Use mempcpy instead of memcpy.
16173         (xpath_concat): Remove: not declared or used.
16174
16175         * lib/same.h: Include <stdbool.h>
16176         (same_name): Return bool, not int.
16177         * lib/same.c (same_name): Likewise.
16178         (errno): Don't declare; we assume C89 or better now.
16179
16180         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
16181         if not already defined.
16182
16183         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
16184         * lib/dup-safer.c (errno): Likewise.
16185
16186 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
16187
16188         Merge from coreutils.
16189         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
16190         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
16191         * modules/path-concat: Don't depend on strdup.
16192
16193 2004-08-03  Simon Josefsson  <jas@extundo.com>
16194
16195         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
16196         * lib/progname.h: Don't include stdbool.h.
16197
16198 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
16199
16200         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
16201         * MODULES.html.sh (func_all_modules): Remove fatal.
16202
16203 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
16204
16205         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
16206
16207 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
16208
16209         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
16210         working.
16211
16212 2004-08-02  Simon Josefsson  <jas@extundo.com>
16213
16214         * lib/getsubopt.h: New file, with comments from Bruno Haible.
16215         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
16216         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
16217
16218 2004-08-01  Simon Josefsson  <jas@extundo.com>
16219
16220         * lib/xgetdomainname.c: Include stdlib.h, for free().
16221
16222 2004-07-19  Bruno Haible  <bruno@clisp.org>
16223
16224         * MODULES.html.sh (func_all_modules): Add dummy.
16225
16226 2004-07-16  Simon Josefsson  <jas@extundo.com>
16227
16228         * modules/dummy: New file.
16229
16230 2004-07-16  Simon Josefsson  <jas@extundo.com>
16231
16232         * lib/dummy.c: New file.
16233
16234 2004-07-16  Bruno Haible  <bruno@clisp.org>
16235
16236         * lib/backupfile.h: Add extern "C" for C++.
16237         * lib/closeout.h: Likewise.
16238         * lib/copy-file.h: Likewise.
16239         * lib/findprog.h: Likewise.
16240         * lib/full-write.h: Likewise.
16241         * lib/pathname.h: Likewise.
16242         * lib/progname.h: Likewise.
16243         * lib/stpcpy.h: Likewise.
16244         * lib/stpncpy.h: Likewise.
16245         * lib/strcase.h: Likewise.
16246         * lib/strstr.h: Likewise.
16247         * lib/xalloc.h: Likewise.
16248
16249         * lib/mbswidth.h: Add extern "C" for C++.
16250         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
16251
16252 2004-07-13  Robert Millan  <robertmh@gnu.org>
16253
16254         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
16255
16256 2004-07-09  Simon Josefsson  <jas@extundo.com>
16257
16258         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
16259         failed without this.)
16260
16261 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
16262
16263         * modules/chown (Files): Add lib/fchown-stub.c, since
16264         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
16265
16266 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
16267
16268         * lib/fchown-stub.c: New file.
16269
16270 2004-06-24  Jim Meyering  <jim@meyering.net>
16271
16272         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
16273
16274 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
16275
16276         * modules/argz: Omit "#include".
16277
16278         * MODULES.html.sh (func_all_modules): Add calloc, to match
16279         2004-06-01 addition of calloc module.
16280
16281 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
16282
16283         * m4/argz.m4: New file, which is autoupdated from libtool.
16284
16285 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
16286
16287         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
16288         libtool.
16289
16290 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
16291
16292         * config/srclist-update: Don't insist on "USA." before the
16293         close-comment, as libtool omits the period and puts the */ on a
16294         separate line.
16295         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
16296         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
16297
16298 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
16299
16300         * modules/argz: New file.
16301         * MODULES.html.sh (func_all_modules): Add argz.
16302
16303 2004-06-12  Jim Meyering  <jim@meyering.net>
16304         and  Paul Eggert  <eggert@cs.ucla.edu>
16305
16306         * modules/hash (Files): Add lib/xalloc.h.
16307         * modules/pipe (Depends-on): Add wait-process.
16308         * modules/stat (Depends-on): Add xalloc.
16309         * modules/userspec (Files): Add lib/userspec.h.
16310         * modules/xstrto
16311
16312         Upgrade from gettext-0.13.
16313         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
16314         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
16315         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
16316
16317 2004-06-10  Jim Meyering  <jim@meyering.net>
16318
16319         * lib/calloc.c: New file.
16320
16321 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
16322
16323         * lib/getdate.y (yylex): Allow space between sign and number.
16324         Problem reported by Dan Jacobson.
16325
16326 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
16327
16328         Merge from coreutils CVS.
16329
16330         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
16331         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
16332         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
16333         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
16334         xstrtol.m4: Fix copyright date and/or serial number.
16335
16336         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
16337         See if we need an fchown replacement.
16338         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
16339         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
16340         and use the replacement function if we detect either defect.
16341
16342         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
16343         gl_UTIMECMP.
16344
16345 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
16346         and  Jim Meyering  <jim@meyering.net>
16347
16348         Merge from coreutils CVS.
16349
16350         * lib/stat-macros.h: New file, with contents from file-type.h
16351         and coreutils' system.h.
16352         * lib/file-type.c: Include "stat-macros.h".
16353         * lib/file-type.h (file_type): Move all macro definitions to new file,
16354         stat-macros.h.
16355
16356         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
16357         Wrap old code with this conditional.
16358         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
16359         function that does not dereference symlinks.
16360         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
16361
16362         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
16363         dependency problems.
16364         (xreadlink): Accept new arg SIZE, for efficiency.
16365         All decls and uses changed.
16366         * lib/xreadlink.h: Include <stddef.h>, for size_t.
16367
16368         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
16369         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
16370
16371         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
16372         sysexits.h.
16373
16374 2004-06-01  Jim Meyering  <jim@meyering.net>
16375
16376         * m4/calloc.m4: New file.
16377
16378 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
16379
16380         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
16381         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
16382         Also, fix a typo in a diagnostic.
16383
16384 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
16385
16386         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
16387         or AC_FUNC_REALLOC.
16388
16389 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
16390
16391         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
16392         macros to be defined.
16393         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
16394         the allocator returns NULL because the requested size is zero.
16395
16396 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
16397
16398         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
16399         var.  Add comment explaining why libc still defines it.  This
16400         merges the following patch from glibc:
16401         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
16402
16403 2004-05-20  Andreas Schwab  <schwab@suse.de>
16404
16405         * m4/free.m4: Replace free if it not known to work, not the other
16406         way round.
16407
16408 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
16409
16410         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
16411         present in glibc since revision 1.1 of this file.
16412         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
16413         obstack_alignment_mask, obstack_alloc, obstack_base,
16414         obstack_blank, obstack_blank_fast, obstack_chunk_size,
16415         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
16416         obstack_grow0, obstack_init, obstack_int_grow,
16417         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
16418         obstack_next_free, obstack_object_size, obstack_ptr_grow,
16419         obstack_ptr_grow_fast, obstack_room): Remove declarations of
16420         nonexistent functions.
16421
16422 2004-05-18  Karl Berry  <karl@gnu.org>
16423
16424         * config/srclist.txt: break link for vasnprintf.c.
16425
16426 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
16427
16428         Port obstack to the AS/400, where pointers are 16 bytes wide and
16429         you cannot cast an integer to a valid pointer.  This patch is
16430         currently waiting to be integrated into glibc; see
16431         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
16432
16433         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
16434         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
16435         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
16436         (struct obstack): temp member is now a union of a pointer and
16437         an integer, instead of an integer.  All integer uses changed.
16438         This does not affect the physical layout of struct obstack,
16439         except on hosts (like the AS/400) where the size or alignment of
16440         void * is greater than that of ptrdiff_t.
16441         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
16442         __STDC__)]: Store temporary in pointer member of union, not
16443         integer member.
16444         * lib/obstack.c: Include <stddef.h>, for offsetof.
16445         (struct fooalign): Remove; it doesn't need a name.
16446         (union fooround): Change double to long double, and add void *.
16447         (DEFAULT_ALIGNMENT): Use offsetof to compute.
16448         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
16449         not a macro.  Hence the values are always int; so remove all
16450         casts-to-int in uses.
16451
16452 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
16453
16454         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
16455         we can get this patch merged into glibc.
16456
16457 2004-05-17  Derek R. Price  <derek@ximbiot.com>
16458             Paul Eggert  <eggert@cs.ucla.edu>
16459
16460         * m4/argp: Depend on alloca.
16461
16462 2004-05-17  Derek R. Price  <derek@ximbiot.com>
16463             Paul Eggert  <eggert@cs.ucla.edu>
16464
16465         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
16466         freecoding.
16467
16468 2004-05-17  Bruno Haible  <bruno@clisp.org>
16469
16470         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
16471         precision that consists of a '.' followed by an empty digit string.
16472         Patch by Tor Lillqvist <tml@iki.fi>.
16473
16474 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
16475
16476         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
16477         for backward compatibility with older code.  We need our own
16478         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
16479         it under some other name, and our alloca.h will define it.
16480
16481 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
16482             Derek Price  <derek@ximbiot.com>
16483
16484         * lib/alloca.c: Include <alloca.h>, to get our interface.
16485         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
16486         include <alloca.h> first.  Use C89 prototype for alloca; this
16487         requires including <stddef.h> for size_t.  Use extern "C" if C++.
16488         Use #elif for simplicity, since we can assume C89 now.
16489         Don't try to source the system alloca.h since it will not be found
16490         and to prevent recursively including its replacement.
16491         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
16492         * lib/regex.c: Likewise.
16493
16494 2004-05-16  Derek Price  <derek@ximbiot.com>
16495             Paul Eggert  <eggert@cs.ucla.edu>
16496
16497         getline cleanup.  This changes the getndelim2 API: both order of
16498         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
16499         no delimiter).
16500
16501         * lib/getline.c: Don't include stddef.h or stdio.h, since our
16502         interface does that.
16503         (getline): Always use getdelim, so that we don't have two
16504         copies of this code.
16505         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
16506         if available.
16507         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
16508         (GETNDELIM2_MAXIMUM): New macro.
16509         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
16510         instead of the old practice of delim2==0.  All callers changed.
16511         Return -1 on overflow, instead of returning junk.
16512         Do not set *linesize unless allocation succeeds.
16513         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
16514         that we include sys/types.h.
16515         * lib/getnline.h: Likewise.
16516         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
16517         (getndelim2): Reorder arguments.
16518         * lib/getnline.c (getnline, getndelim):
16519         Don't discard the NMAX argument.
16520         (getnline): Invoke getndelim, to avoid code duplication.
16521         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
16522         of (size_t) -1 by callers of the getnline family.
16523
16524 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
16525
16526         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
16527         Check for gettimeofday.
16528         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
16529         Check for settimeofday, stime.
16530
16531 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
16532
16533         * lib/nanosleep.c (suspended): Change its type from int to
16534         sig_atomic_t volatile.
16535         (first_call): Make it private to rpl_nanosleep, and have it
16536         be zero initially as that's a bit faster.
16537         (my_usleep): Round up fractional times instead of truncating them,
16538         as this is the usual meaning for 'sleep'.
16539
16540         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
16541         doesn't work.
16542         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
16543         (ENOSYS): Define if not defined.
16544         (settime): Fall back on stime if it exists and settimeofday fails.
16545         But don't bother with fallbacks if a method fails with errno == EPERM.
16546
16547 2004-05-11  Jim Meyering  <jim@meyering.net>
16548
16549         Prior to this change, the save_cwd caller required read access to the
16550         current directory on most systems (ones with the fchdir function).
16551
16552         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
16553         fails, try write-only, and finally, resort to using xgetcwd.
16554
16555 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
16556
16557         * lib/obstack.c, obstack.h: Import changes from libc.
16558
16559 2004-04-28  Bruno Haible  <bruno@clisp.org>
16560
16561         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
16562         also implicitly appends .exe to executables.
16563         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
16564         accepts Windows pathnames.
16565         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
16566         Treat Cygwin like Windows, since it now accepts Windows pathnames.
16567         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
16568         Treat Cygwin like Windows, since it now accepts Windows pathnames.
16569         Reported by Derek Robert Price <derek@ximbiot.com>.
16570
16571 2004-04-21  Karl Berry  <karl@gnu.org>
16572
16573         * config/srclist.txt (localcharset.c): break sync.
16574
16575 2004-04-20  Paul Eggert  <eggert@twinsun.com>
16576
16577         * m4/host-os.m4: Add a copyright notice.
16578
16579 2004-04-20  Jim Meyering  <jim@meyering.net>
16580
16581         Change UTILS_ to gl_ in AC_DEFINE'd names.
16582         Change utils_- and jm_-prefixed variables, too.
16583         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
16584         UTILS_FUNC_MKDIR_TRAILING_SLASH.
16585         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
16586
16587         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
16588         Don't emit trailing blanks.
16589         Also rename jm_-prefixed variables to have gl_ prefix.
16590
16591         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
16592         Also rename jm_-prefixed variables to have gl_ prefix.
16593
16594         * m4/jm-macros.m4: Reflect the renamings.
16595         * m4/prereq.m4: Likewise.
16596
16597 2004-04-20  Jim Meyering  <jim@meyering.net>
16598
16599         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
16600         memory.
16601
16602 2004-04-20  Jim Meyering  <jim@meyering.net>
16603             Bruno Haible  <bruno@clisp.org>
16604
16605         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
16606         memory when realloc fails.
16607
16608 2004-04-19  Jim Meyering  <jim@meyering.net>
16609
16610         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
16611         now that readutmp.c may call `free (0)'.
16612
16613 2004-04-19  Bruno Haible  <bruno@clisp.org>
16614
16615         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
16616         * m4/inttypes_h.m4: Likewise.
16617         * m4/stdint_h.m4: Likewise.
16618         * m4/intmax_t.m4: Likewise.
16619         * m4/uintmax_t.m4: Likewise.
16620
16621 2004-04-18  Jim Meyering  <jim@meyering.net>
16622
16623         * m4/prereq.m4: Don't forbid jm_ prefix.
16624
16625         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
16626         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
16627         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
16628         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
16629         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
16630         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
16631         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
16632         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
16633         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
16634         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
16635         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
16636         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
16637         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
16638         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
16639         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
16640         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
16641         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
16642         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
16643         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
16644
16645 2004-04-18  Jim Meyering  <jim@meyering.net>
16646
16647         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
16648         failure, don't leak memory and do call END_UTMP_ENT.
16649
16650 2004-04-16  Jim Meyering  <jim@meyering.net>
16651
16652         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
16653         coreutils' stat program.
16654         (gl_PREREQ): Don't require jm_PREREQ_STAT.
16655
16656 2004-04-11  Paul Eggert  <eggert@twinsun.com>
16657
16658         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
16659         C89.
16660         (CHAR_BIT): Remove, since we assume C89.
16661         Include <stdint.h> if available, as per current Autoconf CVS advice.
16662
16663 2004-03-31  Jim Meyering  <jim@meyering.net>
16664
16665         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
16666         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
16667         * m4/xalloc.m4: Likewise.
16668
16669 2004-03-30  Paul Eggert  <eggert@twinsun.com>
16670
16671         Merge from coreutils.
16672
16673         * m4/inttostr.m4: New file.
16674         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
16675         Require AM_STDBOOL_H and gl_TIMESPEC instead.
16676         Require gl_CLOCK_TIME.
16677         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
16678
16679 2004-03-30  Paul Eggert  <eggert@twinsun.com>
16680
16681         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
16682         not bool, to be more consistent with Unix conventions.
16683         Suggested by Bruno Haible.
16684
16685         Merge from coreutils.
16686
16687         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
16688         * lib/umaxtostr.c: New files.
16689
16690         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
16691         the usual <time.h> dance.
16692         (get_date): Change signature to support fractional time stamps.
16693         All callers changed.
16694         * lib/getdate.y: Include "getdate.h" first, as we can now
16695         assume C89 and don't need to worry about 'const'.
16696         Similarly, include "unlocked-io.h" near start, not in middle.
16697         Include <limits.h>.
16698         (textint.value): Use long int rather than int.
16699         (textint.digits): Use size_t rather than int.
16700         (BILLION, LOG10_BILLION): New constants.
16701         (parser_control): New member rel_ns.  Members day_ordinal,
16702         time_zone, month, day, hour, minutes, rel_year, rel_month,
16703         rel_day, rel_hour, rel_minutes, rel_seconds
16704         are now long int, not int.  Member seconds is now struct timespec,
16705         not int.  New member timespec_seen.  Members dates_seen, days_seen,
16706         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
16707         not int.
16708         (%union.intval): Now long int, not int.
16709         New member timespec.
16710         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
16711         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
16712         (spec): Now is a timespec or an item list.
16713         (timespec, items): New nonterminals.
16714         (time, rel, relunit, number, get_date):
16715         Add support for fractional seconds.
16716         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
16717         (gmtime, localtime, mktime): Remove decls; not needed with C89.
16718         (to_hour): First arg is now long int, not int.
16719         (to_year): Returns long int, not int.
16720         Don't treat year -70 like 70.
16721         (tm_diff): Returns long int, not int.
16722         (lookup_word): Use bool instead of int when appropriate.
16723         (yylex): Use size_t for count, not int.
16724         Detect overflow when parsing large integer constants.
16725         Add support for fractions.
16726         (get_date): Make pointers 'const' if possible.
16727         Use more-portable code to detect integer overflow.
16728         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
16729         Don't use ctime; it's not reliable if the year has >4 digits.
16730
16731         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
16732         This is for compatibility with BSD.
16733
16734         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
16735         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
16736         From coreutils' system.h.
16737
16738         * lib/userspec.c: Don't include "posixver.h".
16739         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
16740         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
16741         compatible extension.  Simplify code by removing a boolean int
16742         that was always nonzero if a string was nonnull.
16743
16744 2004-03-30  Jim Meyering  <jim@meyering.net>
16745
16746         Merge from coreutils.
16747
16748         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
16749         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
16750         on some systems one must include <grp.h> before it.
16751         Reported by Christian Krackowizer.
16752
16753 2004-03-30  Jim Meyering  <jim@meyering.net>
16754
16755         Merge from coreutils.
16756
16757         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
16758
16759         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
16760         an empty input stream.
16761
16762         * lib/readtokens.c: Include <stdbool.h>.
16763         (readtoken): Use `size_t' rather than int/long.
16764         All callers adjusted.
16765         Use `bool' rather than `int' where appropriate.
16766         Use memset rather than an explicit loop.
16767         Use x2nrealloc rather than xrealloc.
16768         Allow the use of `\0' as a delimiter.
16769         (readtokens): Likewise.
16770         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
16771
16772 2004-03-30  Jim Meyering  <jim@meyering.net>
16773
16774         * m4/realloc.m4: Remove file, since now it does no more than
16775         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
16776         the `configure.ac' section of module/realloc.
16777         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
16778
16779 2004-03-30  Bruno Haible  <bruno@clisp.org>
16780
16781         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
16782         nonnull.
16783
16784 2004-03-29  Paul Eggert  <eggert@twinsun.com>
16785
16786         Merge changes to getloadavg.c from coreutils and Emacs.
16787
16788         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
16789         Define to an expression, not to the empty string.
16790         Include cloexec.h and xalloc.h.
16791         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
16792         Use set_cloexec_flag rather than rolling our own.
16793         * lib/cloexec.c, lib/cloexec.h: New files.
16794
16795 2004-03-29  Paul Eggert  <eggert@twinsun.com>
16796
16797         * m4/cloexec.m4: New file.
16798
16799 2004-03-18  Paul Eggert  <eggert@twinsun.com>
16800
16801         * lib/getopt.h: Sync with libc CVS.
16802
16803 2004-03-18  Paul Eggert  <eggert@twinsun.com>
16804             Bruno Haible  <bruno@clisp.org>
16805
16806         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
16807         mbswidth.
16808
16809 2004-03-18  Paul Eggert  <eggert@twinsun.com>
16810             Bruno Haible  <bruno@clisp.org>
16811
16812         * lib/mbswidth.h: Include <wchar.h> only if
16813         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
16814         <wchar.h>.
16815         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
16816
16817 2004-03-09  Paul Eggert  <eggert@twinsun.com>
16818
16819         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
16820         Sync with libc CVS.
16821         * lib/getopt_int.h: New file, also synced from libc.
16822
16823 2004-03-09  Paul Eggert  <eggert@twinsun.com>
16824
16825         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
16826         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
16827         Bring back getopt.c, getopt.h, getopt1.c.
16828
16829 2004-03-07  Paul Eggert  <eggert@twinsun.com>
16830
16831         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
16832         All uses changed.  Check for sa_sigaction member; this fixes
16833         a bug first reported by Jason Andrade in
16834         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
16835
16836 2004-03-07  Paul Eggert  <eggert@twinsun.com>
16837
16838         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
16839         '#if' expressions.  Unlike the code it replaces, it does not
16840         depend on (defined _SC_PAGESIZE).  However, it does depend on
16841         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
16842         first reported by Jason Andrade in
16843         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
16844
16845 2004-02-25  Simon Josefsson  <jas@extundo.com>
16846
16847         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
16848
16849 2004-02-25  Simon Josefsson  <jas@extundo.com>
16850
16851         * lib/strdup.h: New file.
16852         * lib/strdup.c: Include it.
16853         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
16854         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
16855
16856 2004-02-23  Karl Berry  <karl@gnu.org>
16857
16858         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
16859         (from fencepost.gnu.org:/gd/gnuorg).
16860
16861 2004-02-23  Karl Berry  <karl@gnu.org>
16862
16863         * config/srclistvars.sh (GNUORG) [karl]: redefine.
16864         * config/srclist.txt: add maintain/standards documents.
16865
16866 2004-02-18  Bruno Haible  <bruno@clisp.org>
16867
16868         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
16869         Reported by Derek Robert Price <derek@ximbiot.com>.
16870
16871 2004-02-16  Karl Berry  <karl@gnu.org>
16872
16873         * config/mkinstalldirs, install-sh: update from automake.
16874
16875 2004-02-06  Karl Berry  <karl@gnu.org>
16876
16877         * m4/po.m4: update from gettext 0.14.1.
16878
16879 2004-02-06  Karl Berry  <karl@gnu.org>
16880
16881         * lib/config.charset: update from gettext 0.14.1.
16882
16883 2004-02-05  Paul Eggert  <eggert@twinsun.com>
16884
16885         Add comments and code, prompted by suggestions from Bruno Haible
16886         for sh-quote.
16887         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
16888         describing the enum quoting_style values.
16889         * lib/quotearg.c (quotearg_alloc): New function.
16890         (quotearg_buffer_restyled): Treat lone { and } as special.
16891         Treat = as special.  Work around bug with older shells
16892         that "see" a '\' that is really the 2nd byte of a multibyte char.
16893         Quote empty string with shell_quoting_style.
16894
16895 2004-02-03  Bruno Haible  <bruno@clisp.org>
16896
16897         * m4/pipe.m4: New file, from GNU gettext.
16898
16899 2004-02-03  Bruno Haible  <bruno@clisp.org>
16900
16901         * lib/pipe.h: New file, from GNU gettext.
16902         * lib/pipe.c: New file, from GNU gettext.
16903
16904 2004-01-27  Bruno Haible  <bruno@clisp.org>
16905
16906         * m4/execute.m4: New file, from GNU gettext.
16907
16908 2004-01-27  Bruno Haible  <bruno@clisp.org>
16909
16910         * lib/execute.h: New file, from GNU gettext.
16911         * lib/execute.c: New file, from GNU gettext.
16912         * lib/w32spawn.h: New file, from GNU gettext.
16913
16914 2004-01-24  Paul Eggert  <eggert@twinsun.com>
16915
16916         Merge from diffutils.
16917
16918         * lib/file-type.c (file_type): Add typed memory objects.
16919         * lib/file-type.h (S_TYPEISTMO): New macro.
16920
16921         * lib/c-stack.h (c_stack_action): Remove argv argument.
16922         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
16923         (die): Don't calculate message unless segv_action returns.
16924         (get_stack_location, min_address_from_argv, max_address_from_argv,
16925         volatile stack_base, volatile_stack_size): Remove.
16926         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
16927         that every segmentation violation is a stack overflow.  (Ouch!)
16928         See Debian bug 136249 (still outstanding) for more info about why
16929         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
16930
16931 2004-01-24  Paul Eggert  <eggert@twinsun.com>
16932
16933         Exit-status fix from coreutils.
16934
16935         Use exit_failure consistently in place of EXIT_FAILURE,
16936         so that program exit statuses are consistent on failure.
16937
16938         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
16939         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
16940         * lib/argmatch.h: Comment fix to match the above.
16941         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
16942         Now a macro referring to exit_failure, instead of a separate
16943         variable.  Include "exitfail.h" to get it.
16944         * lib/xstrtol.h: Include "exitfail.h".
16945         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
16946
16947         * lib/long-options.c (parse_long_options): Use prototype
16948         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
16949         for clarity.
16950
16951 2004-01-21  Jim Meyering  <jim@meyering.net>
16952
16953         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
16954         so as not to conflict with a different-sized __mktime_internal
16955         function in GNU libc.
16956         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
16957         Problem building statically-linked `ls' reported by Michael Brunnbauer.
16958
16959 2004-01-20  Karl Berry  <karl@gnu.org>
16960
16961         * config/config.guess: update from config.
16962
16963         * config/srclistvars.sh: GNUWWWLICENSES for karl.
16964
16965 2004-01-20  Bruno Haible  <bruno@clisp.org>
16966
16967         Safer stack allocation.
16968         * lib/setenv.c: Include allocsa.h.
16969         (alloca): Remove fallback definition.
16970         (freea): Remove macro.
16971         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
16972         instead of freea.
16973
16974 2004-01-20  Bruno Haible  <bruno@clisp.org>
16975
16976         * m4/eealloc.m4: New file, from GNU gettext.
16977
16978 2004-01-20  Bruno Haible  <bruno@clisp.org>
16979
16980         * m4/allocsa.m4: New file, from GNU gettext.
16981
16982 2004-01-20  Bruno Haible  <bruno@clisp.org>
16983
16984         * lib/xallocsa.h: New file, from GNU gettext.
16985         * lib/xallocsa.c: New file, from GNU gettext.
16986
16987 2004-01-20  Bruno Haible  <bruno@clisp.org>
16988
16989         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
16990
16991 2004-01-20  Bruno Haible  <bruno@clisp.org>
16992
16993         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
16994         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
16995         specially.
16996
16997 2004-01-20  Bruno Haible  <bruno@clisp.org>
16998
16999         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
17000         patch.
17001
17002 2004-01-20  Bruno Haible  <bruno@clisp.org>
17003
17004         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
17005
17006 2004-01-20  Bruno Haible  <bruno@clisp.org>
17007
17008         * lib/eealloc.h: New file.
17009
17010 2004-01-20  Bruno Haible  <bruno@clisp.org>
17011
17012         * lib/binary-io.h: Avoid warnings on Cygwin.
17013
17014 2004-01-20  Bruno Haible  <bruno@clisp.org>
17015
17016         * lib/allocsa.h: New file, from GNU gettext.
17017         * lib/allocsa.c: New file, from GNU gettext.
17018
17019 2004-01-18  Karl Berry  <karl@gnu.org>
17020
17021         * doc/gpl.texi, doc/lgpl.texi: new files.
17022
17023 2004-01-18  Karl Berry  <karl@gnu.org>
17024
17025         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
17026         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
17027
17028 2004-01-15  Paul Eggert  <eggert@twinsun.com>
17029
17030         Merge from coreutils.
17031
17032         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
17033         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
17034         (gl_DEFAULT_POSIX2_VERSION): Move
17035         the documentation from 'configure' into 'config.hin',
17036         so that 'configure --help' isn't burdened by it and
17037         we don't have to worry about its formatting there.
17038         Reword the documentation so that it's more succinct
17039         and can be run together into a single paragraph.
17040         * m4/same.m4 (gl_SAME): Check for pathconf.
17041
17042 2004-01-15  Paul Eggert  <eggert@twinsun.com>
17043
17044         Merge from coreutils.
17045
17046         * lib/posixver.c: Include posixver.h.
17047
17048         * lib/same.c: Include <stdbool.h>, <limits.h>.
17049         (_POSIX_NAME_MAX): Define if not defined.
17050         (MIN): New macro.
17051         (same_name): If file names are silently truncated, report
17052         that the file names are the same if they are the same after
17053         the silent truncation.
17054
17055         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
17056         conversion function.
17057         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
17058         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
17059         longer needed.
17060
17061 2004-01-15  Jim Meyering  <jim@meyering.net>
17062
17063         Merge from coreutils.
17064
17065         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
17066         if no library is required.
17067         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
17068         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
17069         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
17070         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
17071         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
17072         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
17073         value, $ac_cv_search_crypt, if it's "none required".
17074         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
17075         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
17076         not gl_FUNC_GETLOADAVG.
17077         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
17078         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
17079
17080 2004-01-15  Jim Meyering  <jim@meyering.net>
17081
17082         Merge from coreutils.
17083
17084         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
17085         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
17086         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
17087
17088         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
17089         optional configure-time default.
17090
17091         * lib/version-etc.c (version_etc_copyright): Update copyright date.
17092
17093         * lib/xreadlink.c (xreadlink): Correct outdated comment.
17094
17095 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
17096
17097         Merge from coreutils.
17098
17099         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
17100         value, $ac_cv_search_nanosleep, if it's "none required".
17101
17102 2004-01-14  Paul Eggert  <eggert@twinsun.com>
17103
17104         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
17105         with like-named macro in fnmatch.c.
17106         (EXT): Use an internal constant instead.
17107
17108         Merge fnmatch patches from glibc.
17109         * lib/fnmatch.c (mbsinit): Remove define.
17110         Add libc_hidden_ver (__fnmatch, fnmatch).
17111         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
17112         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
17113
17114 2004-01-14  Karl Berry  <karl@gnu.org>
17115
17116         * config/install-sh: update from automake.
17117
17118 2004-01-13  Karl Berry  <karl@gnu.org>
17119
17120         * config/install-sh: update from automake.
17121
17122 2004-01-09  Karl Berry  <karl@gnu.org>
17123
17124         * config/install-sh: update from automake.
17125
17126 2004-01-05  Karl Berry  <karl@gnu.org>
17127
17128         * config/config.{sub,guess}: update from config.
17129
17130 2003-12-31  Karl Berry  <karl@gnu.org>
17131
17132         * config/depcomp: update from automake.
17133
17134 2003-12-14  Karl Berry  <karl@gnu.org>
17135
17136         * lib/config.charset: update from gettext-runtime.
17137
17138 2003-12-03  Paul Eggert  <eggert@twinsun.com>
17139
17140         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
17141         Bug reported by Alfred M. Szmidt.
17142
17143 2003-12-03  Bruno Haible  <bruno@clisp.org>
17144
17145         * m4/gettext.m4: Upgrade from gettext-0.13.
17146         * m4/po.m4: Upgrade from gettext-0.13.
17147         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
17148         * m4/intmax.m4: New file, from gettext-0.13.
17149         * m4/printf-posix.m4: New file, from gettext-0.13.
17150
17151 2003-11-29  Karl Berry  <karl@gnu.org>
17152
17153         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
17154
17155 2003-11-25  Paul Eggert  <eggert@twinsun.com>
17156             Bruno Haible  <bruno@clisp.org>
17157
17158         * lib/printf-parse.h: Don't include sys/types.h.
17159         (ARG_NONE): New macro.
17160         (char_directive): Change type of *arg_index fields to size_t.
17161         * lib/printf-parse.c: Don't include sys/types.h.
17162         (SSIZE_MAX): Remove macro.
17163         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
17164         Remove unnecessary overflow check.
17165         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
17166         fields.
17167
17168 2003-11-25  Bruno Haible  <bruno@clisp.org>
17169
17170         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
17171
17172 2003-11-25  Bruno Haible  <bruno@clisp.org>
17173
17174         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
17175         gt_TYPE_SSIZE_T.
17176
17177 2003-11-24  Paul Eggert  <eggert@twinsun.com>
17178
17179         * modules/alloca: Remove dependency on xalloc.
17180
17181 2003-11-24  Paul Eggert  <eggert@twinsun.com>
17182
17183         * lib/alloca.c: Remove dependency on xalloc module.
17184         (xalloc_die): Remove.
17185         (memory_full) [!defined emacs]: New macro.
17186         [!defined emacs]: Don't include xalloc.h.
17187         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
17188         address arithmetic overflows.  Change datatypes a bit to avoid
17189         unnecessary casts.
17190
17191 2003-11-22  Jim Meyering  <jim@meyering.net>
17192
17193         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
17194         s/size/size_t/.
17195
17196 2003-11-21  Karl Berry  <karl@gnu.org>
17197
17198         * config/config.{sub,guess}: update from config.
17199
17200 2003-11-18  Karl Berry  <karl@gnu.org>
17201
17202         * config/config.{sub,guess}: update from config.
17203
17204         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
17205
17206 2003-11-17  Paul Eggert  <eggert@twinsun.com>
17207
17208         * README: Mention that S+T cannot overflow if S is the size of
17209         an existing object and T is sufficiently small.
17210
17211 2003-11-17  Jim Meyering  <jim@meyering.net>
17212
17213         On systems without utime and without a utimes function capable of
17214         dealing with a NULL struct utimbuf* argument, this utime replacement
17215         could -- in unusual circumstances -- leak a file descriptor.
17216         * lib/utime.c: Include <unistd.h> and <errno.h>.
17217         (utime_null): Be sure to close `fd' and to preserve errno.
17218         Reported by Geoff Collyer via Arnold Robbins.
17219
17220 2003-11-17  Bruno Haible  <bruno@clisp.org>
17221
17222         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
17223         (Depends-on): Add xsize.
17224
17225 2003-11-17  Bruno Haible  <bruno@clisp.org>
17226
17227         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
17228
17229 2003-11-17  Bruno Haible  <bruno@clisp.org>
17230
17231         * lib/vasnprintf.c (alloca): Remove fallback definition.
17232         (freea): Remove definition.
17233         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
17234         Reported by Paul Eggert.
17235
17236 2003-11-16  Paul Eggert  <eggert@twinsun.com>
17237             Bruno Haible  <bruno@clisp.org>
17238
17239         Protect against address arithmetic overflow.
17240         * lib/printf-args.h: Include stddef.h.
17241         (arguments): Change type of field 'count' to size_t.
17242         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
17243         'unsigned int' where appropriate.
17244         * lib/printf-parse.h: Include sys/types.h.
17245         (char_directive): Change type of *arg_index fields to ssize_t.
17246         (char_directives): Change type of fields 'count', max_*_length to
17247         size_t.
17248         * lib/printf-parse.c: Include sys/types.h and xsize.h.
17249         (SSIZE_MAX): Define fallback value.
17250         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
17251         instead of 'int' where appropriate. Check a_allocated, d_allocated
17252         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
17253         * lib/vasnprintf.c: Include xsize.h.
17254         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
17255         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
17256         overflow. Avoid wraparound when converting a width or precision from
17257         decimal to binary.
17258
17259 2003-11-16  Bruno Haible  <bruno@clisp.org>
17260
17261         Update from GNU gettext.
17262         * lib/printf-parse.c: Generalize to it can be compiled for wide
17263         strings.
17264         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
17265         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
17266         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
17267         SNPRINTF): New macros.
17268         Don't include <alloca.h> if the file is used inside libintl.
17269         (local_wcslen): New function, for Solaris 2.5.1.
17270         (VASNPRINTF): Use it instead of wcslen.
17271
17272 2003-11-16  Bruno Haible  <bruno@clisp.org>
17273
17274         * lib/xsize.h (xmax): New function.
17275         (xsum, xsum3, xsum4): Declare as "pure" functions.
17276
17277 2003-11-12  Paul Eggert  <eggert@twinsun.com>
17278
17279         * modules/xalloc (Files): Undo latest change, since xalloc.h
17280         no longer needs SIZE_MAX or PTRDIFF_MAX.
17281
17282 2003-11-12  Paul Eggert  <eggert@twinsun.com>
17283
17284         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
17285         gl_PTRDIFF_MAX.
17286
17287 2003-11-12  Paul Eggert  <eggert@twinsun.com>
17288
17289         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
17290         "return", to pacify some unknown compiler.  Problem reported
17291         by Joerg Schilling.
17292
17293 2003-11-12  Paul Eggert  <eggert@twinsun.com>
17294
17295         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
17296         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
17297         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
17298         heuristic is just as accurate as far as we know, and it removes a
17299         dependency on size_max.m4 and ptrdiff_max.m4.
17300
17301 2003-11-11  Bruno Haible  <bruno@clisp.org>
17302
17303         * modules/xsize (Files): Add m4/size_max.m4.
17304         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
17305
17306 2003-11-11  Bruno Haible  <bruno@clisp.org>
17307
17308         * m4/size_max.m4: New file.
17309         * m4/ptrdiff_max.m4: New file.
17310         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
17311         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
17312         (gl_XALLOC): Invoke it.
17313
17314 2003-11-11  Bruno Haible  <bruno@clisp.org>
17315
17316         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
17317         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
17318         defined.
17319
17320 2003-11-10  Paul Eggert  <eggert@twinsun.com>
17321
17322         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
17323         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
17324         rejected some allocations of exactly SIZE_MAX - 2 bytes.
17325         From Bruno Haible.
17326         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
17327         not (size_t) -1, since it's defined here.
17328
17329 2003-11-09  Karl Berry  <karl@gnu.org>
17330
17331         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
17332
17333 2003-11-06  Paul Eggert  <eggert@twinsun.com>
17334
17335         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
17336         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
17337         Reject sizes of exactly SIZE_MAX bytes.
17338         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
17339         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
17340
17341 2003-11-05  Bruno Haible  <bruno@clisp.org>
17342
17343         * lib/xsize.h: Include limits.h, to avoid a possible collision with
17344         SIZE_MAX defined in <limits.h> on Solaris.
17345
17346 2003-11-04  Jim Meyering  <jim@meyering.net>
17347
17348         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
17349         variable names, rather than @VAR@.
17350         * modules/poll: Likewise.
17351
17352 2003-11-04  Bruno Haible  <bruno@clisp.org>
17353
17354         * modules/xsize: New file.
17355         * modules/linebreak: Depend on xsize.
17356         * MODULES.html.sh (func_all_modules): Add xsize.
17357
17358 2003-11-04  Bruno Haible  <bruno@clisp.org>
17359
17360         * m4/xsize.m4: New file.
17361
17362 2003-11-04  Bruno Haible  <bruno@clisp.org>
17363
17364         * lib/xsize.h: New file.
17365         * lib/linebreak.c: Include xsize.h.
17366         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
17367         argument for overflow.
17368         Suggested by Paul Eggert.
17369
17370 2003-11-03  Karl Berry  <karl@gnu.org>
17371
17372         * config/config.{guess,sub}: update from config.
17373
17374 2003-11-03  Jim Meyering  <jim@meyering.net>
17375
17376         * modules/userspec (lib_SOURCES): Add userspec.h.
17377         (Include): Add "userspec.h".
17378         Improve description.
17379
17380 2003-11-03  Jim Meyering  <jim@meyering.net>
17381
17382         * lib/userspec.c: Include "userspec.h".
17383         * lib/userspec.h: New file.
17384
17385 2003-11-03  Bruno Haible  <bruno@clisp.org>
17386
17387         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
17388
17389 2003-11-03  Bruno Haible  <bruno@clisp.org>
17390
17391         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
17392         available, to avoid (extremely rare) race condition.
17393         Suggested by Paul Eggert.
17394
17395 2003-11-02  Karl Berry  <karl@gnu.org>
17396
17397         * config/srclist.txt (vasprintf.c): sync broken, sigh.
17398
17399 2003-10-31  Paul Eggert  <eggert@twinsun.com>
17400
17401         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
17402         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
17403         (read_filesystem_list): Set and use me_type_malloced.
17404         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
17405         whatever the type happens to be), for brevity and consistency.
17406         Check for size calculation overflow on Alphas running OSF/1.
17407
17408 2003-10-31  Jim Meyering  <jim@meyering.net>
17409
17410         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
17411
17412         * lib/linebuffer.c: Include <string.h> for declaration of memset.
17413
17414 2003-10-30  Paul Eggert  <eggert@twinsun.com>
17415             Bruno Haible  <bruno@clisp.org>
17416
17417         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
17418         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
17419
17420 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
17421
17422         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
17423         netbsd*-gnu*.  Suggested by Robert Millan.
17424
17425 2003-10-29  Paul Eggert  <eggert@twinsun.com>
17426
17427         * modules/group-member: Depend on stdbool.
17428
17429 2003-10-29  Paul Eggert  <eggert@twinsun.com>
17430
17431         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
17432
17433 2003-10-29  Paul Eggert  <eggert@twinsun.com>
17434
17435         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
17436         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
17437         after the 'gnu' in these cases.  This fixes some bugs in the
17438         previous change, and is based on suggestions by Robert Millan.
17439
17440 2003-10-29  Paul Eggert  <eggert@twinsun.com>
17441
17442         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
17443         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
17444         no longer needed.
17445         * lib/quotearg.c (quotearg_n_options): Use it.
17446         * lib/group-member.c: Include <stdbool.h>.
17447         (free_group_info): Arg is now const *; don't free arg.
17448         (get_group_info): Now returns bool and accepts struct group_info *,
17449         rather than returning a malloc'ed struct group_info *.
17450         All uses changed.  Check for overflow in internal size calculation.
17451
17452         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
17453         rather than xmalloc/xrealloc.
17454         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
17455         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
17456         conformance bug: the old code used a pointer after freeing the
17457         storage that it addressed.
17458         * lib/hash.c (hash_initialize): Simplify the code by using
17459         xalloc_oversized rather than doing it by hand.
17460         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
17461         the buffer preserved.  Use free and xmalloc instead.
17462         * lib/quotearg.c (quotearg_n_options): Likewise.
17463         Use a simpler test for size overflow.  Don't use xalloc_oversized
17464         because unsigned int might be wider than size_t (!); this suggests
17465         that we should switch from unsigned int to size_t for slot numbers.
17466
17467 2003-10-28  Paul Eggert  <eggert@twinsun.com>
17468
17469         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
17470         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
17471         NetBSD kernels.  Requested by Richard Stallman.
17472
17473 2003-10-27  Paul Eggert  <eggert@twinsun.com>
17474
17475         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
17476         to allocate the returned structure.  Do not allocate a subarray,
17477         as x2nrealloc will do that.
17478         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
17479         instead of xnrealloc.
17480         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
17481
17482 2003-10-27  Bruno Haible  <bruno@clisp.org>
17483
17484         * lib/stdbool_.h: Better support for BeOS.
17485
17486 2003-10-26  Paul Eggert  <eggert@twinsun.com>
17487
17488         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
17489         now uses inline.
17490
17491 2003-10-26  Paul Eggert  <eggert@twinsun.com>
17492
17493         * lib/xalloc.h (xalloc_oversized): New static inline function, for
17494         callers that want to do their own size-overflow checking.  Include
17495         <stdbool.h>, since xalloc_oversized returns bool.
17496         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
17497         to use xalloc_oversized.
17498
17499         Add two functions x2realloc, x2nrealloc, for programs that grow
17500         arrays dynamically by doubling their sizes.
17501         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
17502         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
17503         New functions.
17504
17505         Port to C99 semantics for 'inline' of external functions.
17506         Bug reported by Bruno Haible.
17507         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
17508         with the old contents of xnmalloc.
17509         (xnmalloc, xmalloc): Use it.
17510         (xnrealloc_inline): New static inline function,
17511         with the old contents of xnrealloc.
17512         (xnrealloc, xrealloc): Use it.
17513
17514         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
17515         that.
17516
17517 2003-10-26  Karl Berry  <karl@gnu.org>
17518
17519         * config/srclist.txt (COPYING.DOC): no longer available from
17520         /gd/gnuorg; don't know where the ultimate source is.
17521
17522 2003-10-25  Paul Eggert  <eggert@twinsun.com>
17523
17524         Fix several address-calculation bugs in the hash modules,
17525         plus some minor code cleanup.
17526
17527         * lib/hash.h: Include <stdbool.h>, for bool.
17528         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
17529         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
17530         hash_get_n_entries, hash_get_max_bucket_length,
17531         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
17532         hash_rehash): Use size_t rather than unsigned.
17533         * lib/hash.c (struct hash_table, hash_get_n_buckets,
17534         hash_get_n_buckets_used, hash_get_n_entries,
17535         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
17536         hash_get_entries, hash_do_for_each, hash_string, is_prime,
17537         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
17538         Likewise.
17539         (SIZE_MAX): Define if not defined.
17540         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
17541         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
17542         hash_print):
17543         Use const * when possible.
17544         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
17545         (check_tuning): Fix bug: if tuning parameters were very close to
17546         0 or 1, rounding errors could have caused subscript violations.
17547         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
17548         (hash_initialize): Add 'fail:' label
17549         to free table and return NULL, and use it to simplify code.
17550         Use calloc rather than clearing the storage ourself.
17551         (hash_initialize, hash_rehash): Check for arithmetic overflow in
17552         buffer size calculations.
17553         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
17554         Include <stddef.h>, for size_t.
17555         * lib/hash-pjw.c (hash_pjw): Likewise.
17556         Switch to method described by Bruno Haible.
17557         Include <limits.h>, for CHAR_BIT.
17558         (SIZE_BITS): New macro.
17559
17560 2003-10-23  Paul Eggert  <eggert@twinsun.com>
17561
17562         * m4/getline.m4 (AM_FUNC_GETLINE):
17563         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
17564         hosts.  Problem reported by Derek Robert Price in
17565         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
17566         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
17567         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
17568
17569 2003-10-21  Paul Eggert  <eggert@twinsun.com>
17570
17571         * lib/getndelim2.c (getndelim2): When size calculation overflows,
17572         ceiling the allocation at NMAX bytes rather than silently
17573         discarding input bytes before NMAX is reached.  This makes
17574         a difference only if NMAX exceeds SIZE_MAX / 2.
17575
17576         * lib/obstack.c: Merge from glibc.
17577         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
17578         Add libc_hidden_def (_obstack_newchunk).
17579         (_obstack_free) [! defined _LIBC]: Remove.
17580         [defined _LIBC]: Make a strong alias from obstack_free, rather than
17581         a clone of the function body.
17582         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
17583         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
17584
17585         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
17586         glibc.
17587         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
17588         arg to memcpy.
17589
17590         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
17591         (obstack_ptr_grow_fast, obstack_int_grow_fast):
17592         Don't use lvalue casts, as GCC plans to remove support for them
17593         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
17594         was also present in the non-GCC version, indicating that this
17595         code had always been buggy and had never been widely used.
17596         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
17597         Use the fast variant of each macro, rather than copying the
17598         definiens of the fast variant; that way, we'll be more likely to
17599         catch future bugs in the fast variants.
17600
17601 2003-10-20  Bruno Haible  <bruno@clisp.org>
17602
17603         * modules/wait-process: New file.
17604         * MODULES.html.sh (func_all_modules): Add wait-process.
17605
17606 2003-10-20  Bruno Haible  <bruno@clisp.org>
17607
17608         * m4/wait-process.m4: New file.
17609
17610 2003-10-20  Bruno Haible  <bruno@clisp.org>
17611
17612         * lib/wait-process.h: New file, from GNU gettext.
17613         * lib/wait-process.c: New file, from GNU gettext.
17614
17615 2003-10-19  Jim Meyering  <jim@meyering.net>
17616
17617         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
17618         HPUX 10.20.
17619
17620 2003-10-18  Karl Berry  <karl@gnu.org>
17621
17622         * config/config.guess: update from config.
17623
17624 2003-10-16  Paul Eggert  <eggert@twinsun.com>
17625
17626         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
17627         (getgroups): First arg is int, not size_t.
17628         Don't let 'free' mangle errno.
17629
17630 2003-10-16  Paul Eggert  <eggert@twinsun.com>
17631
17632         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
17633
17634 2003-10-16  Karl Berry  <karl@gnu.org>
17635
17636         * config/config.{guess,sub}: update from config.
17637
17638 2003-10-16  Jim Meyering  <jim@meyering.net>
17639
17640         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
17641         memcpy.
17642
17643 2003-10-15  Paul Eggert  <eggert@twinsun.com>
17644
17645         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
17646         (SIZE_MAX): Remove.
17647         (new_exclude, add_exclude_file): Initial size no longer needs to
17648         be a power of 2.
17649         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
17650         our own address arithmetic overflow checking.
17651
17652         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
17653         (fnmatch): Do not alloca more than 2000 wide characters;
17654         instead, use malloc for large buffers.
17655         Check for address arithmetic overflow, and return -1
17656         with errno set to ENOMEM in that case.
17657         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
17658         (NEW_PATTERN): Do not alloca more than 8000 bytes;
17659         instead, return -1.  Check for address arithmetic overflow.
17660
17661 2003-10-14  Paul Eggert  <eggert@twinsun.com>
17662
17663         Handle invalid suffixes and overflow independently, so that
17664         callers can treat them independently as needed.  Fix some bugs in
17665         suffix handling, e.g., "100k@" was not diagnosed as an invalid
17666         suffix for a human-readable blocksize.  The major caller-visible
17667         change is the addition of a new
17668         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
17669         that both overflow and suffix chars were found.
17670
17671         * lib/human.c (humblock): Don't check separately for invalid suffix
17672         char; that is xstrtoumax's job (now that its bug is fixed).
17673         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
17674         INTMAX_MAX]: New macros.
17675         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
17676         TYPE_MAXIMUM): New macros.
17677         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
17678         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
17679         if overflow occurs, as it's what __strtol does and it's more useful
17680         in practice.
17681         (__xstrtol): If __strtol reports some error other than ERANGE,
17682         reflect it to the caller as LONGINT_INVALID.  If it reports
17683         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
17684         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
17685         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
17686         value.
17687         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
17688         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
17689         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
17690         [defined UINTMAX_MAX]: New macros.
17691
17692 2003-10-14  Bruno Haible  <bruno@clisp.org>
17693
17694         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
17695
17696 2003-10-14  Bruno Haible  <bruno@clisp.org>
17697
17698         * m4/sig_atomic_t: New file, from GNU gettext.
17699         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
17700
17701 2003-10-14  Bruno Haible  <bruno@clisp.org>
17702
17703         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
17704         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
17705         Also use volatile where needed.
17706
17707 2003-10-12  Paul Eggert  <eggert@twinsun.com>
17708
17709         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
17710         Change maintainer from Bruno Haible to 'all'.
17711
17712 2003-10-12  Paul Eggert  <eggert@twinsun.com>
17713
17714         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
17715
17716 2003-10-12  Paul Eggert  <eggert@twinsun.com>
17717
17718         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
17719         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
17720         and define in terms of the other primitives.
17721         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
17722         (SIZE_MAX): Define if not already defined.
17723         (array_size_overflow): New function.
17724         (xalloc_die): Abort instead of exiting if 'error' returns.
17725         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
17726         (xmalloc, xrealloc): Use them.
17727         (xcalloc): Check for address arithmetic overflow.
17728         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
17729         a bit faster than strcpy.
17730
17731 2003-10-10  Simon Josefsson  <jas@extundo.com>
17732
17733         * modules/argp (Depends-on): Add restrict and strcase.
17734
17735 2003-10-10  Simon Josefsson  <jas@extundo.com>
17736
17737         * m4/argp.m4: Add AC_C_INLINE.
17738
17739 2003-10-08  Paul Eggert  <eggert@twinsun.com>
17740
17741         Merge getpass from libc, plus a few fixes.
17742
17743         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
17744         Include <stdbool.h>.
17745         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
17746         __fsetlocking to empty.
17747         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
17748         do include <bits/libc-lock.h>.
17749         Do not include <fcntl.h>; not needed.
17750         [_LIBC]: Include <wchar.h>.
17751         (NOTCANCEL_MODE): New macro.
17752         (flockfile, funlockfile) [_LIBC]: New macros.
17753         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
17754         [!_LIBC]: New macros.
17755         (call_fclose): New function.
17756         (getpass): Use it.  Save tty stream separately; this simplifies the
17757         code and makes it more reliable if stdin happens to equal stdout.
17758         Invoke __fsetlocking on tty.
17759         Handle thread cancellation if needed.
17760         Namespace cleanup (use __tcgetattr, __getline).
17761         Use bool for Booleans.
17762         [USE_IN_LIBIO]: Handle wide streams.
17763         [!_LIBC]: Unconditionally do the fseek, since we don't know what
17764         stream might go where.
17765
17766         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
17767         doesn't have to include <stdio.h> before us.
17768         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
17769         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
17770         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
17771         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
17772         if not declared, so that we can use getpass.c code from libc without
17773         rewriting it.
17774         (flockfile, ftrylockfile, funlockfile): New macros.
17775
17776 2003-10-08  Paul Eggert  <eggert@twinsun.com>
17777
17778         * modules/getpass: Depend on stdbool.
17779
17780 2003-10-08  Paul Eggert  <eggert@twinsun.com>
17781
17782         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
17783
17784 2003-10-07  Karl Berry  <karl@gnu.org>
17785
17786         * config/config.{guess,sub}: update from config.
17787
17788 2003-10-06  Jim Meyering  <jim@meyering.net>
17789             Bruno Haible  <bruno@clisp.org>
17790
17791         This lets translators provide better translations for the
17792         "Written by ..." part of --version output.
17793         * lib/version-etc.h: Include stdarg.h.
17794         (version_etc_copyright): Declare as readonly.
17795         (version_etc): Make this function variadic with a NULL-terminated list
17796         of author name strings.
17797         (version_etc_va): New declaration.
17798         * lib/version-etc.c: Include stdarg.h, stdlib.h.
17799         (version_etc_copyright): Declare as readonly.
17800         (version_etc_va): New function. Provide a different translatable string
17801         for each possible number of authors < 10. Abbreviate when there are 10
17802         authors or more.
17803         (version_etc): Make this function variadic. Call version_etc_va.
17804         Suggestion from Gary V. Vaughan.
17805
17806         * lib/long-options.h (parse_long_options): Change prototype: the
17807         authors string is moved to the end and becomes variadic.
17808         * lib/long-options.c: Include stdarg.h.
17809         (parse_long_options): Make this function variadic, too.
17810         Call version_etc_va, not version_etc.
17811
17812 2003-10-06  Bruno Haible  <bruno@clisp.org>
17813
17814         * modules/version-etc-2: Remove file.
17815         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
17816
17817 2003-10-06  Bruno Haible  <bruno@clisp.org>
17818
17819         * modules/fatal-signal: New file.
17820         * MODULES.html.sh (func_all_modules): Add fatal-signal.
17821
17822 2003-10-06  Bruno Haible  <bruno@clisp.org>
17823
17824         * m4/fatal-signal.m4: New file.
17825         * m4/signalblocking.m4: New file, from GNU gettext.
17826
17827 2003-10-06  Bruno Haible  <bruno@clisp.org>
17828
17829         * lib/version-etc-2.h: Remove file.
17830         * lib/version-etc-2.c: Remove file.
17831
17832 2003-10-06  Bruno Haible  <bruno@clisp.org>
17833
17834         * lib/fatal-signal.h: New file, from GNU gettext.
17835         * lib/fatal-signal.c: New file, from GNU gettext.
17836
17837 2003-10-05  Paul Eggert  <eggert@twinsun.com>
17838
17839         * README: Rework advice for preventing empty .o files.
17840         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
17841         not <sys/types.h>.
17842
17843 2003-10-04  Karl Berry  <karl@gnu.org>
17844
17845         * lib/argp*: update from libc.
17846
17847 2003-10-04  Karl Berry  <karl@gnu.org>
17848
17849         * config/config.{guess,sub}: update from config.
17850
17851 2003-10-02  Bruno Haible  <bruno@clisp.org>
17852
17853         * modules/lchown (Include): Add lchown.h.
17854         * modules/time_r (Include): Use "..." syntax.
17855         * modules/xgetdomainname (Include): Add xgetdomainname.h.
17856
17857 2003-10-01  Simon Josefsson  <jas@extundo.com>
17858
17859         * MODULES.html.sh (func_all_modules): Move gethostname from section
17860         'based on' to section 'lacking' POSIX:2001.
17861
17862 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
17863
17864         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
17865         to output mode on the same stream.
17866
17867 2003-09-29  Paul Eggert  <eggert@twinsun.com>
17868
17869         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
17870         Fix arg typo in previous patch.
17871
17872 2003-09-28  Jim Meyering  <jim@meyering.net>
17873
17874         * lib/error.c: Correct cpp indentation.
17875
17876 2003-09-27  Paul Eggert  <eggert@twinsun.com>
17877
17878         * modules/free: New file.
17879
17880 2003-09-27  Paul Eggert  <eggert@twinsun.com>
17881
17882         * m4/free.m4: New file.
17883
17884 2003-09-27  Paul Eggert  <eggert@twinsun.com>
17885
17886         * lib/minmax.h (MIN, MAX)
17887         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
17888         Omit the special code that used __typeof__, since we worry that
17889         it could be more trouble than it's worth.  See:
17890         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
17891         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
17892
17893         * lib/free.c: New file.
17894
17895 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
17896
17897         Trivial fixes to Makefile.am parts of module listings.
17898         * modules/strstr: Append strstr.h to lib_SOURCES.
17899         * modules/strcase: Likewise, for strcase.h.
17900
17901 2003-09-27  Karl Berry  <karl@gnu.org>
17902
17903         * config/mkinstalldirs: update from automake.
17904
17905 2003-09-26  Paul Eggert  <eggert@twinsun.com>
17906
17907         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
17908         (error_tail): Do not loop, reallocating temporary buffer, since
17909         the output cannot contain more wide characters than the input
17910         contains bytes, the size must be big enough already.  This avoids
17911         one potential size overflow calculation.  Check for size overflow
17912         when calculating temporary buffer size.  Free temporary buffer
17913         when done, if it was allocated with malloc; this plugs a memory
17914         leak.  Remove casts from void * to pointers, that are no longer
17915         needed now that we're assuming C89 or better.
17916
17917         Merge error changes from glibc.
17918
17919         * lib/error.c, error.h: Update copyright notice header to match glibc.
17920         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
17921         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
17922         Disable cancellation while printing error.
17923         * lib/error.h: Prepend __ to parameter names.
17924
17925 2003-09-26  Jim Meyering  <jim@meyering.net>
17926
17927         * lib/error.c (error_tail): Move some declarations
17928         into inner scope where the local variables are used.
17929
17930 2003-09-26  Bruno Haible  <bruno@clisp.org>
17931
17932         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
17933         stpncpy().
17934         Don't define stpncpy through config.h; it's now done through stpncpy.h.
17935
17936 2003-09-26  Bruno Haible  <bruno@clisp.org>
17937
17938         * lib/stpncpy.h (gnu_stpncpy): New declaration.
17939         (stpncpy): Define as alias for gnu_stpncpy.
17940         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
17941
17942 2003-09-25  Simon Josefsson  <jas@extundo.com>
17943
17944         * lib/xgetdomainname.h: New file.
17945         * lib/xgetdomainname.c: New file.
17946
17947 2003-09-25  Simon Josefsson  <jas@extundo.com>
17948             Bruno Haible  <bruno@clisp.org>
17949
17950         * modules/getdomainname: New file.
17951         * modules/xgetdomainname: New file.
17952         * MODULES.html.sh (func_all_modules): Add getdomainname,
17953         xgetdomainname.
17954
17955 2003-09-25  Simon Josefsson  <jas@extundo.com>
17956             Bruno Haible  <bruno@clisp.org>
17957
17958         * m4/getdomainname.m4: New file.
17959
17960 2003-09-25  Simon Josefsson  <jas@extundo.com>
17961             Bruno Haible  <bruno@clisp.org>
17962
17963         * lib/getdomainname.h: New file.
17964         * lib/getdomainname.c: New file.
17965
17966 2003-09-25  Karl Berry  <karl@gnu.org>
17967
17968         * lib/argp-fmtstream.c, argp-help.c: update from libc.
17969
17970 2003-09-25  Karl Berry  <karl@gnu.org>
17971
17972         * config/install-sh: update from automake.
17973
17974 2003-09-25  Bruno Haible  <bruno@clisp.org>
17975
17976         * modules/version-etc-2: New file, from modules/version-etc with
17977         modifications.
17978         * MODULES.html.sh (func_all_modules): Add version-etc-2.
17979
17980 2003-09-25  Bruno Haible  <bruno@clisp.org>
17981
17982         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
17983         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
17984
17985 2003-09-24  Simon Josefsson  <jas@extundo.com>
17986
17987         * modules/xgethostname: Add xgethostname.h.
17988
17989 2003-09-24  Paul Eggert  <eggert@twinsun.com>
17990
17991         * lib/linebuffer.c (freebuffer): Don't free the argument, just
17992         the buffer associated with the argument.  Bug reported by
17993         Simon Josefsson.
17994
17995 2003-09-24  Paul Eggert  <eggert@twinsun.com>
17996
17997         * README: Document assumptions that 'int' is at least 32 bits
17998         wide, that integer arithmetic is 2's complement without overflow,
17999         that there are no holes in integer values, that adding sizes of
18000         two nonoverlapping objects can't overflow, and that all-bits-zero
18001         yields scalar zero.  Fix spelling and capitalization typos.
18002
18003 2003-09-19  Karl Berry  <karl@gnu.org>
18004
18005         * lib/argp.h: update from libc.
18006
18007 2003-09-17  Paul Eggert  <eggert@twinsun.com>
18008
18009         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
18010         to avoid spurious warnings like "AC_RUN_IFELSE was called before
18011         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
18012
18013 2003-09-17  Paul Eggert  <eggert@twinsun.com>
18014
18015         * gnulib-tool: Use "test -h", not "test -L", for portability
18016         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
18017         (tags_regexp): Remove, since \| doesn't conform to POSIX.
18018         (sed_extract_prog): Issue s commands one-by-one, rather than
18019         using \| in one s command.
18020
18021 2003-09-16  Paul Eggert  <eggert@twinsun.com>
18022
18023         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
18024         input error, instead of returning NULL the next time we are called
18025         (and therefore losing track of errno).
18026
18027 2003-09-16  Bruno Haible  <bruno@clisp.org>
18028
18029         * gnulib-tool (func_create_testdir): Warn about duplicated
18030         dependencies.
18031
18032 2003-09-15  Paul Eggert  <eggert@twinsun.com>
18033
18034         * modules/argmatch, modules/fatal, modules/obstack,
18035         modules/xalloc, modules/xgethostname: Sort dependencies by
18036         importance, not alphabetically.
18037
18038 2003-09-15  Paul Eggert  <eggert@twinsun.com>
18039
18040         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
18041         fails, so that the caller gets the proper errno.
18042
18043         * lib/readutmp.c (read_utmp): Likewise.
18044         Check for fstat error.  Close stream and free storage
18045         when failing.
18046
18047 2003-09-14  Karl Berry  <karl@gnu.org>
18048
18049         * config/srclist.txt (strdup.c): disable for c89 changes.
18050
18051 2003-09-14  Jim Meyering  <jim@meyering.net>
18052
18053         * lib/getloadavg.c: Correct cpp indentation.
18054         * lib/strdup.c: Likewise.
18055         * lib/vasnprintf.c: Likewise.
18056
18057 2003-09-14  Bruno Haible  <bruno@clisp.org>
18058
18059         * modules/fwriteerror: New file.
18060         * MODULES.html.sh (func_all_modules): Add fwriteerror.
18061
18062 2003-09-14  Bruno Haible  <bruno@clisp.org>
18063
18064         * lib/fwriteerror.h: New file.
18065         * lib/fwriteerror.c: New file.
18066
18067 2003-09-12  Paul Eggert  <eggert@twinsun.com>
18068
18069         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
18070         modules/xgethostname, modules/xalloc: Depend on exit.
18071
18072 2003-09-12  Paul Eggert  <eggert@twinsun.com>
18073
18074         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
18075
18076         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
18077         and AC_MINIX, too, so that their extensions are available.
18078
18079         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
18080         This macro has been superseded by gl_BACKUPFILE.
18081
18082         More patches to assume C89 or better.
18083
18084         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
18085
18086         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
18087         unconditionally.
18088         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
18089         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
18090         Include <string.h>, <stdlib.h> unconditionally.
18091         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
18092         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
18093         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
18094         headers or for string.h.
18095         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
18096         or strtoul.
18097
18098         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
18099         headers.
18100         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
18101         * m4/userspec.m4 (gl_USERSPEC): Likewise.
18102         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
18103         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
18104         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
18105         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
18106         memcpy, memset.
18107         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
18108         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
18109         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
18110         strtol.
18111         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
18112         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
18113         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
18114         strtoul.
18115
18116 2003-09-12  Paul Eggert  <eggert@twinsun.com>
18117
18118         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
18119         * lib/obstack.c [!defined _LIBC]: Likewise.
18120         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
18121         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
18122         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
18123
18124         More changes to assume C89 or better.
18125
18126         * lib/error.c (error_tail): Assume vprintf.
18127
18128         * lib/argmatch.c (getenv): Remove decl.
18129         * lib/progreloc.c (get_full_program_name): Define via prototype.
18130         * lib/setenv.c (clearenv): Likewise.
18131         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
18132         needed.
18133         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
18134         (malloc, memcpy): Remove decls.
18135         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
18136         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
18137         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
18138         (memcpy): Remove macro.
18139         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
18140         (__P): Remove.  All uses removed.
18141         (PTR): Remove.  All uses changed to void *.
18142         (CHAR_BIT, NULL): Remove.
18143         (spaces, zeros, memset_space, memset_zero)
18144         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
18145         Remove.
18146         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
18147         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
18148         Define with prototype.
18149         Remove now-unnecessary prototype decl.
18150         (extra_args_spec): Assume ANSI C.  All uses changed.
18151         (extra_args_spec_iso): Remove.
18152         (my_strftime, emacs_strftimeu): Define via prototype.
18153         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
18154         unconditionally.
18155         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
18156         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
18157         (strtoul, strtol): Remove decls.
18158         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
18159         LONG_MAX): Remove.
18160         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
18161         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
18162         (LOCALE_PARAM_PROTO): New macro.
18163         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
18164         (INTERNAL (strtol), strtol): Define with a prototype.
18165         (PARAMS): Remove.  All uses removed.
18166         * lib/tempname.c: Include <string.h> unconditionally.
18167         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
18168         * lib/xgethostname.c (main): Define with a prototype.
18169         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
18170         Include <stdlib.h> unconditionally.
18171         (calloc, malloc, realloc, free): Remove decls.
18172         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
18173         Include <stdlib.h> unconditionally.  Sort include file names.
18174         (strtod): Remove.
18175         (xstrtod): Define with a prototype.
18176         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
18177         (strtol, strtoul): Remove decls.
18178
18179 2003-09-11  Paul Eggert  <eggert@twinsun.com>
18180
18181         More patches to assume C89 or better.
18182         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
18183         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
18184         string.h, memchr, STDC_HEADERS.
18185
18186 2003-09-11  Paul Eggert  <eggert@twinsun.com>
18187
18188         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
18189         Include <stdlib.h>, <string.h> unconditionally.
18190         Remove now-unnecessary cast to char *.
18191         * lib/strnlen.c: Include <string.h> unconditionally.
18192         * lib/yesno.c (yesno): Define with a prototype.
18193
18194 2003-09-11  Bruno Haible  <bruno@clisp.org>
18195
18196         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
18197
18198 2003-09-10  Jim Meyering  <jim@meyering.net>
18199
18200         * lib/error.c: Correct indentation of cpp directives.
18201
18202 2003-09-10  Bruno Haible  <bruno@clisp.org>
18203
18204         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
18205         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
18206         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
18207         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
18208         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
18209         <stdlib.h> and <string.h> checks.
18210         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
18211         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
18212
18213 2003-09-10  Bruno Haible  <bruno@clisp.org>
18214
18215         * lib/strcspn.c: Include <string.h> unconditionally.
18216         * lib/strpbrk.c: Include <string.h> unconditionally.
18217         * lib/strstr.c: Include <string.h> unconditionally.
18218         * lib/unicodeio.c: Include <string.h> unconditionally.
18219         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
18220         * lib/unsetenv.c: Likewise.
18221         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
18222         * lib/yesno.c: Include <stdlib.h> unconditionally.
18223         (rpmatch): Add prototype.
18224
18225 2003-09-09  Paul Eggert  <eggert@twinsun.com>
18226
18227         More patches to assume C89 or better.
18228         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
18229         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
18230         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
18231         or for string.h.
18232         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
18233         stdlib.h.
18234         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
18235         C headers.
18236         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
18237         string.h.
18238         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
18239         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
18240         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
18241         or for string.h.
18242         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
18243         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
18244         C headers.
18245         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
18246         memcpy.
18247         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
18248         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
18249         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
18250         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
18251         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
18252         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
18253         string.h, free.
18254         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
18255         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
18256         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
18257         C headers, or for string.h.
18258         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
18259         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
18260         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
18261         headers, memory.h, stdlib.h, string.h, strings.h.
18262         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
18263         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
18264         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
18265         strchr.
18266         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
18267         headers, memory.h, string.h.
18268         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
18269         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
18270         free.
18271         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
18272         headers.
18273         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
18274         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
18275         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
18276         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
18277         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
18278
18279 2003-09-09  Paul Eggert  <eggert@twinsun.com>
18280
18281         More K&R removal.
18282
18283         * lib/acosl.c (main): Use a prototype.
18284         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
18285         tanl.c: Likewise.
18286
18287         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
18288
18289         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
18290         (getopt, etopt_long, getopt_long_only, _getopt_internal)
18291         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
18292         with a prototype.
18293         * lib/getopt.c (const): Remove macro.
18294         Include <string.h> unconditionally.
18295         (my_index): Remove; all uses changed to strchr.
18296         (strlen): Remove decl.
18297         (exchange): Remove forward decl; no longer needed.
18298         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
18299         Define with prototype.
18300         * lib/getopt1.c (const): Remove macro.
18301         (getopt_long, getopt_long_only, main): Define with prototype.
18302
18303         * lib/getugroups.c: Include <string.h> unconditionally.
18304
18305         * lib/getusershell.c: Include <stdlib.h> unconditionally.
18306         (getusershell, setusershell, endusershell, readname, main):
18307         Define with prototypes.
18308
18309         * lib/group-member.c: Include group-member.h first.
18310         Include <stdlib.h> unconditionally.
18311
18312         * lib/hard-locale.c: Include hard-locale.h first.
18313         Include <stdlib.h>, <string.h> unconditionally.
18314
18315         * lib/hash.c (free, malloc): Remove decls.
18316         Include <stdlib.h> unconditionally.
18317
18318         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
18319         (getenv): Do not declare.
18320
18321         * lib/idcache.c: Include <string.h> unconditionally.
18322
18323         * lib/long-options.c: Include long-options.h first, to test interface.
18324         Include <stdlib.h> unconditionally.
18325
18326         * lib/makepath.c: Include makepath.h first, to test interface.
18327         Include <stdlib.h> and <string.h> unconditionally.
18328
18329         * lib/linebuffer.c: Include <stdlib.h>.
18330         (free): Remove decl.
18331
18332         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
18333         stddef.h. rpl_malloc returns void *, not char *.
18334         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
18335         prototype.
18336
18337         * lib/md5.h: Include <limits.h> unconditionally.
18338         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
18339         (__P): Remove; all uses removed.
18340         * lib/md5.c: Include "md5.h" first.
18341         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
18342         md5_buffer, md5_process_bytes, md5_process_block):
18343         Define with prototypes.
18344         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
18345         * lib/sha.c: Include "sha.h" first.
18346         Include <stdlib.h>, <string.h> unconditionally.
18347
18348         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
18349         * lib/memcmp.c (__ptr_t): Likewise.
18350         * lib/memrchr.c (__ptr_t): Likewise.
18351         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
18352         Include <string.h> unconditionally.
18353         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
18354         * lib/memchr.c: Include <stdlib.h> unconditionally.
18355         * lib/memchr.c (LONG_MAX): Remove.
18356         * lib/memrchr.c (LONG_MAX): Likewise.
18357         * lib/memchr.c (__memchr): Define via a prototype.
18358         * lib/memrchr.c (__memrchr): Likewise.
18359         * lib/memcmp.c (__P): Remove, and remove all uses.
18360         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
18361         Remove forward decls; no longer needed.
18362         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
18363         Use types required by C89 in prototype.
18364
18365         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
18366         * lib/savedir.c: Likewise.
18367         * lib/mkdir.c (free): Remove decl.
18368         * lib/rmdir.c (rmdir): Define with a prototype.
18369         * lib/savedir.c: Include savedir.h first, to test interface.
18370
18371         * lib/mktime.c (STDC_HEADERS): Remove.
18372         Include <stdlib.h>, <string.h> unconditionally.
18373
18374         * lib/modechange.c: Include <stdlib.h> unconditionally.
18375         (malloc): Remove decl.
18376
18377         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
18378         (free): Remove decl.
18379
18380         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
18381         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
18382         (This type really should be intptr_t, but that's a C99ism.)
18383         (_obstack_memcpy): Remove: all uses changed to memcpy.
18384         Include <string.h> unconditionally.
18385         (struct obstack): Assume __STDC__ for types of members
18386         chunkfun, freefun, extra_arg.
18387         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
18388         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
18389         obstack_begin, obstack_specify_allocation,
18390         obstack_specify_allocation_with_arg, obstack_chunkfun,
18391         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
18392         Remove unprototyped decls and the macros that use them.
18393         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
18394         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
18395         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
18396         (defined __STDC__ && __STDC__)]:
18397         Remove nonprototyped code.
18398         Include <stdlib.h> unconditionally.
18399         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
18400         _obstack_allocated_p, _obstack_free, obstack_free,
18401         _obstack_memory_used, print_and_abort):
18402         Define using prototypes.
18403         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
18404         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
18405         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
18406         obstack_next_free, obstack_object_size, obstack_room) [0]:
18407         Remove unused, unprototyped code.
18408
18409         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
18410
18411         * lib/physmem.c (physmem_total, physmem_available, main): Define
18412         with prototypes.
18413
18414         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
18415         (main): Define with a prototype.
18416
18417         * lib/posixver.c (getenv): Remove decl.
18418
18419         * lib/putenv.c (malloc): Returns void *, not char *.
18420         Include <string.h> unconditionally.
18421         (strchr, memcpy, NULL): Do not define.
18422
18423         * lib/readtokens.c: Include readtokens.h first, to test interface.
18424         Include <stdlib.h>, <string.h> unconditionally.
18425         (init_tokenbuffer): Define with a prototype.
18426
18427         * lib/regex.c (PARAMS): Remove.  All uses removed.
18428         All uses of _RE_ARGS removed, too.
18429         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
18430         unconditionally.
18431         (bzero): Assume memset exists.
18432         (memcmp, memcpy, NULL): Remove.
18433         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
18434         char, or assignments to local vars of type signed char.
18435         (init_syntax_once, PREFIX(extract_number_and_incr),
18436         PREFIX(print_partial_compiled_pattern),
18437         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
18438         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
18439         PREFIX(regex_grow_registers), PREFIX(regex_compile),
18440         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
18441         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
18442         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
18443         wcs_compile_range, byte_compile_range, truncate_wchar,
18444         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
18445         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
18446         count_mbs_length, wcs_re_match_2_internal,
18447         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
18448         PREFIX(alt_match_null_string_p),
18449         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
18450         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
18451         regfree, PREFIX(extract_number)): Define with prototype.  Remove
18452         now-unnecessary declaration, if any.
18453         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
18454         regcomp, regexec):
18455         Remove now-unnecessary casts among pointer types.
18456         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
18457
18458         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
18459         (free): Remove decl.
18460
18461         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
18462
18463         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
18464         (free): Remove decl.
18465
18466         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
18467         * lib/xgetcwd.c: Likewise.
18468
18469         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
18470         (free): Remove decl.
18471
18472         * lib/strchrnul.c (strchrnul): Define with a prototype.
18473         Fix bug: c_in was not converted to char before searching.
18474
18475         The following changes are not K&R related:
18476
18477         * lib/group-member.h: Include <sys/types.h>, so that this file is
18478         self-contained.
18479         * lib/makepath.h: Likewise.
18480
18481         * lib/getusershell.c (readname, default_index, line_size, readname):
18482         Use size_t, not int, for sizes.
18483         (readname): If the size overflows, report an error instead of
18484         looping forever.
18485
18486 2003-09-09  Paul Eggert  <eggert@twinsun.com>
18487
18488         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
18489         libc.
18490
18491 2003-09-09  Paul Eggert  <eggert@twinsun.com>
18492
18493         * README: New section: portability guidelines.
18494
18495 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
18496
18497         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
18498         C89 spec.
18499
18500 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
18501
18502         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
18503
18504 2003-09-08  Paul Eggert  <eggert@twinsun.com>
18505
18506         Assume C89 or better; remove K&R cruft.
18507         A few of these changes were first proposed by Derek Robert Price
18508         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
18509
18510         * lib/addext.c: Include <string.h> unconditionally.
18511         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
18512         Don't declare getenv or malloc.
18513
18514         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
18515         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
18516         (NULL): Remove.
18517         (find_stack_direction, alloca): Use prototypes.
18518
18519         * lib/atexit.c (atexit): Define using a prototype.
18520
18521         * lib/basename.c, dirname.c, stripslash.c:
18522         Include <string.h> unconditionally.
18523
18524         * lib/bcopy.c: Include <stddef.h>.
18525         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
18526
18527         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
18528
18529         * lib/error.h (error, error_at_line, error_print_progname)
18530         [! (defined (__STDC__) && __STDC__)]: Remove decls.
18531         * lib/error.c: Include error.h first, to check interface.
18532         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
18533         (VA_START): Remove; all uses changeed to va_start.
18534         (exit, strerror): Remove decls.
18535         (error_print_progname): Prototype uncondionally.
18536         Don't include <errno.h>; no longer needed.
18537         (private_strerror): Remove.
18538         (error_tail): Always define.
18539         (error, error_at_line): Assume C89 or better; always use prototypes.
18540         * lib/fatal.c: Include "fatal.h" first, to test interface.
18541         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
18542         (VA_START): Remove; all uses changed to va_start.
18543         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
18544         this case.
18545         (exit): Remove decl.
18546         (fatal): Prototype unconditionally.  Assume va_start works.
18547         Abort at end, to pacify gcc.
18548
18549         * lib/euidaccess.c (main): Define with a prototype.
18550
18551         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
18552
18553         * lib/exitfail.c: Include <stdlib.h> unconditionally.
18554
18555         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
18556         prototypes.
18557         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
18558         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
18559         (getenv): Remove decl.
18560         (fnmatch): Define using a prototype.
18561         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
18562         (FCT): Define using a prototype.
18563
18564         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
18565
18566         * lib/gethostname.c: Include <stddef.h>.
18567         (gethostname): Define with prototype.  Length is size_t, not int.
18568
18569 2003-09-08  Paul Eggert  <eggert@twinsun.com>
18570
18571         Assume C89 or better; remove K&R cruft.
18572         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
18573         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
18574         string.h, getenv, malloc.
18575         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
18576         headers.
18577         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
18578         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
18579         do not check for strerror.
18580         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
18581         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
18582         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
18583         do not check for doprnt or vprintf.
18584         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
18585         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
18586
18587 2003-09-08  Paul Eggert  <eggert@twinsun.com>
18588
18589         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
18590         getversion.c should have been removed then, but was accidentally
18591         preserved.
18592
18593         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
18594         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
18595
18596 2003-09-08  Karl Berry  <karl@gnu.org>
18597
18598         * config/config.sub, config.guess, srclistvars.sh: update from savannah
18599                 config, forget about prep.
18600
18601         * config/depcomp, missing: update from automake.
18602
18603 2003-09-07  Paul Eggert  <eggert@twinsun.com>
18604
18605         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
18606         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
18607
18608 2003-09-07  Paul Eggert  <eggert@twinsun.com>
18609
18610         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
18611         copy_tm_result.  Bug reported by Simon Josefsson in
18612         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
18613
18614 2003-09-06  Paul Eggert  <eggert@twinsun.com>
18615
18616         * m4/time_r.m4: New file.
18617         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
18618         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
18619         is. Check for timegm declaration.
18620         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
18621         Do not check for gmtime_r.
18622         Replace mktime if __mktime_internal does not exist and if mktime
18623         hasn't been replaced already.
18624
18625 2003-09-06  Paul Eggert  <eggert@twinsun.com>
18626
18627         * lib/time_r.c, lib/time_r.h: New files.
18628
18629         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
18630         __localtime_r.
18631         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
18632         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
18633
18634         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
18635         __gmtime_r.
18636         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
18637         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
18638         Include <time_r.h>.
18639
18640         * lib/timegm.c: Switch to glibc implementation, with the following
18641         changes:
18642         [defined HAVE_CONFIG_H]: Include <config.h>.
18643         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
18644         (__mktime_internal) [!defined _LIBC]: New decl.
18645         (__gmtime_r) [!defined _LIBC]: New macro and function.
18646         (timegm): Use a prototype, since gnulib assumes C89.
18647         Do not bother declaring tmp to be const, as it's not really usefu.
18648         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
18649         (timegm): Declare only if HAVE_DECL_TIMEGM.
18650
18651 2003-09-06  Paul Eggert  <eggert@twinsun.com>
18652
18653         * MODULES.html.sh (func_all_modules): Add time_r.
18654         * modules/time_r: New file.
18655         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
18656         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
18657
18658 2003-09-03  Paul Eggert  <eggert@twinsun.com>
18659
18660         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
18661         Bug reported by Lute Kamstra in
18662         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
18663
18664         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
18665         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
18666         course with correspondingly smaller numbers for tomorrow and
18667         yesterday.  From Tadayoshi Funaba.  Originally installed into
18668         sh-utils on 1999-08-07, but the patch got lost (I guess during the
18669         coreutils merge?).
18670
18671 2003-08-31  Simon Josefsson  <jas@extundo.com>
18672
18673         * modules/timegm: New file.
18674         * MODULES.html.sh (func_all_modules): Add timegm.
18675
18676 2003-08-31  Simon Josefsson  <jas@extundo.com>
18677
18678         * m4/timegm.m4: New file.
18679
18680 2003-08-31  Simon Josefsson  <jas@extundo.com>
18681
18682         * lib/timegm.h: New file.
18683         * lib/timegm.c: New file.  Based on
18684         wget-1.8.2/src/http.c:mktime_from_utc.
18685
18686 2003-08-31  Karl Berry  <karl@gnu.org>
18687
18688         * lib/argp.h: update from libc.
18689
18690 2003-08-28  Bruno Haible  <bruno@clisp.org>
18691
18692         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
18693         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
18694         followed by '#define fnmatch fnmatch_posix' gives an error.
18695
18696 2003-08-28  Bruno Haible  <bruno@clisp.org>
18697
18698         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
18699         warning on QNX, which defines O_BINARY to 000000.
18700
18701 2003-08-27  Jim Meyering  <jim@meyering.net>
18702
18703         * m4/mkstemp.m4: Require that the system mkstemp be able to create
18704         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
18705         would fail after 32.  Reported by Danny Levinson.  Details here:
18706         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
18707
18708 2003-08-24  Bruno Haible  <bruno@clisp.org>
18709
18710         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
18711         MSVC7 <stdio.h> is included later.
18712
18713 2003-08-22  Simon Josefsson  <jas@extundo.com>
18714
18715         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
18716
18717 2003-08-20  Karl Berry  <karl@gnu.org>
18718
18719         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
18720
18721 2003-08-20  Bruno Haible  <bruno@clisp.org>
18722
18723         * modules/progname: New file.
18724         * MODULES.html.sh (func_all_modules): Add progname.
18725
18726 2003-08-20  Bruno Haible  <bruno@clisp.org>
18727
18728         * lib/progname.h: New file, from GNU gettext.
18729         * lib/progname.c: New file, from GNU gettext.
18730         * lib/progreloc.c: New file, from GNU gettext.
18731
18732 2003-08-19  Jim Meyering  <jim@meyering.net>
18733
18734         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
18735         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
18736
18737 2003-08-19  Bruno Haible  <bruno@clisp.org>
18738
18739         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
18740         more.
18741
18742 2003-08-19  Bruno Haible  <bruno@clisp.org>
18743
18744         * lib/xstrdup.c: Assume <string.h> exists.
18745
18746 2003-08-18  Paul Eggert  <eggert@twinsun.com>
18747
18748         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
18749         in makefile rules.
18750
18751 2003-08-18  Jim Meyering  <jim@meyering.net>
18752
18753         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
18754         * m4/lib-ld.m4: Likewise.
18755
18756 2003-08-18  Jim Meyering  <jim@meyering.net>
18757
18758         * lib/setenv.h: Indent nested cpp directive.
18759         * lib/vasnprintf.c: Remove trailing blanks.
18760
18761 2003-08-17  Simon Josefsson  <jas@extundo.com>
18762
18763         * modules/xstrndup: New file.
18764         * MODULES.html.sh (func_all_modules): Add xstrndup.
18765
18766 2003-08-17  Simon Josefsson  <jas@extundo.com>
18767
18768         * modules/argp: Fix autoconf macro name. Add more dependencies.
18769
18770 2003-08-17  Simon Josefsson  <jas@extundo.com>
18771
18772         * m4/xstrndup.m4: New file.
18773
18774 2003-08-17  Simon Josefsson  <jas@extundo.com>
18775
18776         * m4/argp.m4: New file.
18777
18778 2003-08-17  Simon Josefsson  <jas@extundo.com>
18779             Bruno Haible  <bruno@clisp.org>
18780
18781         * lib/xstrndup.h: New file.
18782         * lib/xstrndup.c: New file.
18783
18784 2003-08-17  Bruno Haible  <bruno@clisp.org>
18785
18786         * modules/strndup (Files, Include): Add lib/strndup.h.
18787
18788 2003-08-17  Bruno Haible  <bruno@clisp.org>
18789
18790         * modules/euidaccess (Files): Add lib/euidaccess.h.
18791
18792 2003-08-17  Bruno Haible  <bruno@clisp.org>
18793
18794         * lib/strndup.h: New file.
18795
18796 2003-08-17  Bruno Haible  <bruno@clisp.org>
18797
18798         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
18799         like AC_GNU_SOURCE.
18800         * modules/extensions (configure.ac): Comment out the invocation of
18801         gl_USE_SYSTEM_EXTENSIONS.
18802
18803 2003-08-16  Paul Eggert  <eggert@twinsun.com>
18804
18805         Merges from coreutils, etc.
18806         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
18807         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
18808         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
18809         fixing a typo.
18810         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
18811         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
18812
18813 2003-08-16  Paul Eggert  <eggert@twinsun.com>
18814
18815         Document merge from coreutils.
18816         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
18817         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
18818         * modules/utime: Add m4/utimes-null.m4.
18819
18820 2003-08-16  Paul Eggert  <eggert@twinsun.com>
18821
18822         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
18823         space, undoing this 2003-08-12 change:
18824         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
18825
18826 2003-08-16  Paul Eggert  <eggert@twinsun.com>
18827
18828         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
18829         strtoul.c from libc, undoing this 2003-08-12 change:
18830         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
18831
18832 2003-08-16  Jim Meyering  <jim@meyering.net>
18833
18834         Merges from coreutils.
18835         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
18836         prefix.  Adjust cache variables similarly.  Create 500 rather than
18837         just 300 files, to exercise bug on Darwin6.5, too.
18838         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
18839         $missing_dir.
18840         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
18841         AM_SYS_POSIX_TERMIOS.
18842         Reported by mkc@mathdogs.com.
18843         Also change use of $am_cv_sys_posix_termios
18844         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
18845         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
18846         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
18847         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
18848         in /proc/mounts until it finds one with matching device number.  This
18849         is unnecessary when the FILE argument *is* a mount point.  No stat call
18850         is necessary in that case.  So, disable the statvfs-testing code on
18851         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
18852         as RedHat bug# 84846.
18853         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
18854         to 1MB, so as not to render systems with no stack size limit (e.g.,
18855         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
18856         Include <unistd.h>.  On some systems,
18857         it is required for the definition of _SC_PAGESIZE.
18858
18859 2003-08-16  Jim Meyering  <jim@meyering.net>
18860
18861         Merge from coreutils.
18862         * lib/xstrtoimax.c: #else #if -> #elif.
18863         * lib/xstrtoumax.c: Likewise.
18864
18865 2003-08-16  Jim Meyering  <jim@meyering.net>
18866
18867         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
18868         * m4/utimes.m4: Removed.
18869         * m4/utimes-null.m4: Renamed from utimes.m4.
18870
18871         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
18872         to 1MB, so as not to render systems with no stack size limit (e.g.,
18873         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
18874         Include <unistd.h>.  On some systems,
18875         it is required for the definition of _SC_PAGESIZE.
18876
18877 2003-08-16  Jim Meyering  <jim@meyering.net>
18878         and Paul Eggert  <eggert@cs.ucla.edu>
18879
18880         Merges from coreutils, etc.
18881
18882         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
18883         using the latest version from cvs.  This avoids problems with #line
18884         directives using a vendor (Sun) compiler.
18885         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
18886         Don't set GETGROUPS_LIB here; now it's
18887         done via getgroups.m4's wrapper function.
18888         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
18889         rather than just in sh-util/configure.in, so that the
18890         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
18891         same.
18892         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
18893         AC_FUNC_GETLOADAVG where to find getloadavg.c.
18894         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
18895         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
18896         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
18897         Remove code that is now done by the newly-required macros.
18898         Append $(EXEEXT) to DF_PROG.
18899         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
18900         Do not invoke or require the following here,
18901         since prereq.m4 or some gnulib .m4 now does this for us:
18902         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
18903         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
18904         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
18905         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
18906         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
18907         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
18908         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
18909         AC_FUNC_OBSTACK.
18910         Do not replace the following functions, as this is now the job
18911         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
18912         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
18913         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
18914         atexit getpass, strdup, getpagesize.
18915         Replace 'raise'.
18916         Do not check for the following functions, as this is now the job
18917         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
18918         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
18919         setregid.
18920         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
18921         Check for sys/sysctl.h.
18922         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
18923         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
18924         of checking for ssize_t ourselves.
18925
18926         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
18927         Require every macro that gnulib/modules/* suggests for us.
18928         (jm_PREREQ_ADDEXT): New macro.
18929         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
18930         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
18931
18932         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
18933         (gl_PHYSMEM): Use it.
18934         Also check for `table' function.
18935         Check for new headers and functions.
18936         Add check for sys/sysmp.h.
18937         With suggestions from Kaveh Ghazi.
18938         Ignore headers that are present but cannot be compiled.  This
18939         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
18940         C 5.4.
18941
18942 2003-08-15  Paul Eggert  <eggert@twinsun.com>
18943
18944         Document merge from coreutils.
18945         * modules/userspec: Depend on posixver.
18946         * modules/strftime: Depend on tzset.
18947
18948 2003-08-15  Paul Eggert  <eggert@twinsun.com>
18949
18950         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
18951         rather than tab, after '#' in shell-script copyright notices.
18952         Suggested by Bruno Haible.
18953
18954 2003-08-15  Paul Eggert  <eggert@twinsun.com>
18955
18956         * config/srclist-update: Use three spaces, rather than tab, after '#'
18957         in shell-script copyright notices.  Suggested by Bruno Haible.
18958         Remove unnecessary parenthesization in regular expression.
18959
18960 2003-08-15  Jim Meyering  <jim@meyering.net>
18961
18962         Merge from coreutils.
18963         * lib/xgethostname.c: Include <stdlib.h>.
18964         (xghostname): Don't exit for anything other than memory-related
18965         failure; just return NULL.
18966         * lib/userspec.c: Include "posixver.h".
18967         (parse_user_spec): Accept `.' as a separator only
18968         in pre-POSIX-200112 mode.
18969         * lib/strtoimax.c: Use #elif rather than #else #if.
18970         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
18971         Remove function, now that we can rely on a working tzset function.
18972         [!_LIBC]: Ensure that the required autoconf test has been run.
18973         [!defined _NL_CURRENT && HAVE_STRFTIME]:
18974         Use underlying_strftime for %r.
18975         * lib/sha.c: Merge in some clean-up and optimization changes from
18976         glibc.
18977         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
18978         Ensure that it is a multiple of 64.
18979         Rearrange loop exit tests so as to avoid performing an
18980         additional fread after encountering an error or EOF.
18981         * lib/realloc.c: Update copyright date.
18982
18983 2003-08-15  Jim Meyering  <jim@meyering.net>
18984         and Paul Eggert  <eggert@twinsun.com>
18985
18986         Merge from coreutils.
18987         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
18988         member but strut utmpx does not.  Needed for AIX 4.3.3.
18989         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
18990
18991 2003-08-15  Jim Meyering  <jim@meyering.net>
18992         and Paul Eggert  <eggert@cs.ucla.edu>
18993
18994         Merges from coreutils, etc.
18995         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
18996         Require gl_FUNC_TZSET_CLOBBER.
18997         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
18998         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
18999         members.
19000
19001 2003-08-14  Paul Eggert  <eggert@twinsun.com>
19002
19003         Help the merge from coreutils.
19004         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
19005         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
19006         * m4/tzset.m4: Use it too.
19007
19008 2003-08-14  Paul Eggert  <eggert@twinsun.com>
19009
19010         * modules/tzset: New file.
19011
19012 2003-08-14  Jim Meyering  <jim@meyering.net>
19013
19014         Merges from coreutils.
19015         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
19016         variable names, rather than @FNMATCH_H@.
19017         * modules/alloca: Likewise for $(ALLOCA_H).
19018
19019         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
19020         the three copies of the literal target, `fnmatch.h'.
19021         * modules/alloca (alloca.h): Likewise.
19022
19023 2003-08-14  Jim Meyering  <jim@meyering.net>
19024
19025         Merge from coreutils.
19026         * m4/tzset.m4: New file.
19027         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
19028         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
19029         otherwise, AIX 5.1 systems would end up using the latter.
19030         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
19031         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
19032         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
19033         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
19034
19035 2003-08-14  Jim Meyering  <jim@meyering.net>
19036
19037         Merge from coreutils.
19038         * lib/obstack.h: Whitespace changes.
19039         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
19040         and xcalloc return values.
19041         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
19042         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
19043         hang on OSF/1 5.1 for DIR on both local and remote file systems.
19044         Reported by (and fix confirmed by) Nelson H. F. Beebe.
19045         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
19046         error from mntctl.
19047         Use mntctl's return value to drive the entry-processing loop, since
19048         we can't rely on the value of the vmt_length member in the last
19049         entry.  On some systems doing so could result in exhausting
19050         virtual memory.  Based in part on a patch from Mike Jetzer.
19051
19052 2003-08-14  Jim Meyering  <jim@meyering.net>
19053         and Paul Eggert  <eggert@twinsun.com>
19054
19055         Merges from coreutils, plus other fixes.
19056         * lib/physmem.c: Merge in portability changes from gcc/libiberty
19057         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
19058         for credits and details.  Thanks to Kaveh Ghazi for helping
19059         to keep these files in sync.
19060         (ARRAY_SIZE): Define it.
19061         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
19062         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
19063         (memcasecmp): Don't assume size_t fits in unsigned int.
19064         Remove casts and duplicate code.
19065         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
19066         (memcpy): Remove definition.
19067         Merge in some clean-up and optimization changes from glibc.
19068         [BLOCKSIZE]: Move definition to top of file.
19069         Ensure that it is a multiple of 64.
19070         Rearrange loop exit tests so as to avoid performing an
19071         additional fread after encountering an error or EOF.
19072         * lib/md5.h (md5_uintptr): Define.
19073         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
19074         return to the initial working directory.  Preserve errno
19075         for caller.
19076         * lib/idcache.c: Include "xalloc.h".
19077         (xmalloc, xrealloc): Remove decls.
19078         (getuser): Remove casts no longer required in C89.
19079         * lib/human.c: Include stdio.h, for sprintf.
19080         * lib/group-member.c: Include "xalloc.h".
19081         (xmalloc, xrealloc): Remove decls.
19082         (get_group_info): Remove casts no longer required in C89.
19083         * lib/getusershell.c (readname): Remove casts no longer required in
19084         C89.
19085         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
19086         * lib/getline.c: Whitespace fix, from coreutils.
19087
19088 2003-08-13  Paul Eggert  <eggert@twinsun.com>
19089
19090         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
19091         Check for isascii.
19092
19093         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
19094         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
19095         Undo previous (whitespace-only) change.
19096
19097 2003-08-13  Paul Eggert  <eggert@twinsun.com>
19098
19099         * lib/exclude.c: Include <ctype.h>
19100         (IN_CTYPE_DOMAIN): New macro.
19101         (is_space): New fn.
19102         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
19103         and empty lines.
19104
19105         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
19106         Undo previous (whitespace-only) change.
19107
19108 2003-08-13  Paul Eggert  <eggert@twinsun.com>
19109
19110         * config/srclist-update: Change update back to the old behavior,
19111         leaving whitespace alone.  Use one 'sed' command rather than a
19112         pipeline.
19113         (fixlicense): Now a variable, not a function.
19114         (remove_trailing_blanks): Remove.
19115         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
19116         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
19117         Undo previous (whitespace-only) change.
19118
19119 2003-08-12  Paul Eggert  <eggert@twinsun.com>
19120
19121         Merge from coreutils.
19122         * modules/euidaccess: Add lib_SOURCES, include for new
19123         file euidaccess.h
19124
19125 2003-08-12  Paul Eggert  <eggert@twinsun.com>
19126
19127         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
19128         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
19129         Normalize leading white space and remove trailing white space.
19130
19131         Merge from coreutils
19132         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
19133
19134         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
19135         0.12.1.  These files are now being upgraded automatically by
19136         ../config/srclist-update.
19137
19138 2003-08-12  Paul Eggert  <eggert@twinsun.com>
19139
19140         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
19141         Normalize leading white space and remove trailing white space.
19142         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
19143         notice, as per ../config/srclist-update.
19144
19145         Merge from coreutils.
19146         * lib/euidaccess.h: New file.
19147         * lib/euidaccess.c: Include it.
19148         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
19149         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
19150         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
19151
19152 2003-08-12  Paul Eggert  <eggert@twinsun.com>
19153
19154         * config/srclist-update: Add copyright notice.
19155         (remove_id_lines, remove_trailing_blanks): New constants.
19156         (fixfile): Use them to normalize spacing a bit in copied files.
19157         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
19158         Normalize leading white space and remove trailing white space.
19159
19160         * config/texinfo.tex: Sync with texinfo.
19161
19162         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
19163         strtoul.c from libc, to merge coreutils whitespace changes.
19164
19165         * config/srclist.txt: Get the following m4 files from gettext:
19166         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
19167         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
19168         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
19169         wint_t.m4.
19170
19171 2003-08-12  Karl Berry  <karl@gnu.org>
19172
19173         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
19174         been made.
19175
19176 2003-08-11  Paul Eggert  <eggert@twinsun.com>
19177
19178         * modules/gnu-source, m4/gnu-source.m4:
19179         Remove; we're assuming Autoconf 2.54 or later now.
19180         Suggested by Bruno Haible.
19181         * MODULES.html.sh (func_all_modules): Remove gnu-source.
19182
19183 2003-08-11  Bruno Haible  <bruno@clisp.org>
19184
19185         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
19186
19187 2003-08-11  Bruno Haible  <bruno@clisp.org>
19188
19189         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
19190         (vasnprintf): Use it instead of wcslen.
19191
19192 2003-08-11  Bruno Haible  <bruno@clisp.org>
19193
19194         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
19195         value to ensure that _Bool promotes to int. Use #define for _Bool when
19196         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
19197
19198 2003-08-10  Karl Berry  <karl@gnu.org>
19199
19200         * lib/regex.h: update from libc (whitespace fix).
19201
19202 2003-08-09  Paul Eggert  <eggert@twinsun.com>
19203
19204         Merge some files from coreutils.  These changes were
19205         originally made by Jim Meyering.
19206         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
19207         many older Unixes require this.
19208         * lib/alloca.c (alloca): Remove cast to argument of free;
19209         no longer needed in C89.
19210         * lib/alloca_.h, regex.h: Fix white space to match
19211         what GNU indent does.
19212
19213 2003-08-09  Paul Eggert  <eggert@twinsun.com>
19214
19215         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
19216         apparently Emacs's Unicode mode got confused before my 2003-08-05
19217         checkin.
19218
19219 2003-08-08  Paul Eggert  <eggert@twinsun.com>
19220
19221         * m4/extensions.m4: New file.
19222         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
19223         Require gl_USE_SYSTEM_EXTENSIONS.
19224         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
19225         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
19226
19227 2003-08-08  Paul Eggert  <eggert@twinsun.com>
19228
19229         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
19230         * modules/extensions, modules/gnu-source: New files.
19231         * modules/timespec, modules/unlocked-io: Depend on extensions.
19232
19233 2003-08-07  Paul Eggert  <eggert@twinsun.com>
19234
19235         * modules/restrict: New file.
19236         * MODULES.html.sh (func_all_modules): Add restrict.
19237         * modules/regex: Depend on restrict.
19238
19239 2003-08-07  Paul Eggert  <eggert@twinsun.com>
19240
19241         * m4/restrict.m4: New file.
19242         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
19243
19244 2003-08-07  Bruno Haible  <bruno@clisp.org>
19245
19246         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
19247         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
19248
19249 2003-08-07  Bruno Haible  <bruno@clisp.org>
19250
19251         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
19252         makes the module 'getndelim2' compatible with the module 'getline'.
19253
19254 2003-08-05  Paul Eggert  <eggert@twinsun.com>
19255
19256         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
19257         byte with "\201" to avoid glitches when editing that source file
19258         with multi-gnome-terminal.
19259
19260 2003-08-05  Paul Eggert  <eggert@twinsun.com>
19261
19262         * lib/bumpalloc.h: Remove.
19263
19264 2003-08-05  Paul Eggert  <eggert@twinsun.com>
19265
19266         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
19267         * modules/bumpalloc: Remove.
19268
19269 2003-08-04  Paul Eggert  <eggert@twinsun.com>
19270
19271         * lib/getloadavg.c: Change copyright notice and spacing to conform to
19272         GNU coding style.
19273
19274         Merge from coreutils.
19275         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
19276         1. From glibc.
19277         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
19278         from Karl Berry, implemented by Jim Meyering.
19279         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
19280         from Dmitry V. Levin.
19281         Remove anachronistic cast of xrealloc.
19282         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
19283         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
19284         type. Otherwise, it wouldn't compile with at least /bin/cc on
19285         ymp-cray-unicos9.0.2.X.
19286         Combine two mostly-identical uses of alloca into one.
19287         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
19288
19289 2003-08-04  Dave Love  <d.love@dl.ac.uk>
19290
19291         [From Emacs.]
19292
19293         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
19294         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
19295         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
19296         obsolete NLIST_NAME_UNION.
19297         [__GNU__]: Undef BSD and FSCALE.
19298         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
19299
19300 2003-08-03  Paul Eggert  <eggert@twinsun.com>
19301
19302         * lib/stdbool_.h (_Bool): Make it signed char, instead of
19303         an enum type, so that it's guaranteed to promote to int.  See:
19304         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
19305
19306 2003-08-03  Karl Berry  <karl@gnu.org>
19307
19308         * config/depcomp: update from automake.
19309
19310 2003-07-31  Paul Eggert  <eggert@twinsun.com>
19311
19312         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
19313         (strerror): Don't assume that a printable int fits in 14 bytes.
19314
19315 2003-07-31  Bruno Haible  <bruno@clisp.org>
19316
19317         * modules/getpass-gnu: New file.
19318         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
19319
19320 2003-07-31  Bruno Haible  <bruno@clisp.org>
19321
19322         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
19323
19324 2003-07-24  Karl Berry  <karl@gnu.org>
19325
19326         * config/missing: update from automake.
19327
19328 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
19329             Bruno Haible  <bruno@clisp.org>
19330
19331         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
19332         * lib/getline.c (getline, getdelim): Likewise.
19333         Remove _GNU_SOURCE define; now it's defined in config.h through
19334         m4/getline.m4.
19335
19336 2003-07-23  Karl Berry  <karl@gnu.org>
19337
19338         * config/config.sub: update from prep.
19339
19340 2003-07-22  Paul Eggert  <eggert@twinsun.com>
19341
19342         * modules/xalloc (Depends-on): Add exitfail.
19343         * modules/xmemcoll: Likewise.
19344
19345 2003-07-22  Paul Eggert  <eggert@twinsun.com>
19346
19347         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
19348         over-parenthesization in macros.
19349
19350         Sync with coreutils.
19351
19352         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
19353         required by C99.
19354
19355         Use `exit_failure' for xalloc and xmemcoll instead of their own
19356         private exit-failure variables.
19357         * lib/xalloc.h (xalloc_exit_failure): Remove.
19358         * lib/xmalloc.c: Likewise.  Include exitfail.h.
19359         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
19360         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
19361         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
19362         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
19363
19364 2003-07-20  Jim Meyering  <jim@meyering.net>
19365
19366         * modules/closeout (Depends-on): Add exitfail.
19367         Suggestion from Bruno Haible.
19368
19369 2003-07-19  Karl Berry  <karl@gnu.org>
19370
19371         * config/config.sub: update from prep.
19372
19373 2003-07-18  Paul Eggert  <eggert@twinsun.com>
19374
19375         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
19376         Remove.
19377         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
19378         to test that it can stand by itself.  Include "exitfail.h".
19379         Clients should set exit_failure instead.
19380         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
19381
19382 2003-07-18  Bruno Haible  <bruno@clisp.org>
19383
19384         * modules/getndelim2: New file.
19385         * modules/getline: Share files with module getndelim2.
19386         * modules/getnline: Depend on getndelim2 instead of sharing files with
19387         it. Add getnline.c to lib_SOURCES.
19388         * MODULES.html.sh (func_all_modules): Add getndelim2.
19389
19390 2003-07-18  Bruno Haible  <bruno@clisp.org>
19391
19392         * m4/getndelim2.m4: New file.
19393         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
19394         invoke gl_PREREQ_GETNDELIM2.
19395         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
19396         gl_PREREQ_GETNDELIM2.
19397         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
19398         gl_GETNDELIM2.
19399
19400 2003-07-18  Bruno Haible  <bruno@clisp.org>
19401
19402         * lib/getndelim2.h: New file.
19403         * lib/getndelim2.c: Make into a module of its own. Include config.h,
19404         getndelim2.h.
19405         (getndelim2): Make non-static. Change return type to ssize_t.
19406         * lib/getline.h: Change argument names.
19407         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
19408         * lib/getnline.c: Include getndelim2.h.
19409
19410 2003-07-18  Andreas Schwab  <schwab@suse.de>
19411
19412         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
19413
19414 2003-07-17  Karl Berry  <karl@gnu.org>
19415
19416         * config/config.sub: update from prep.
19417
19418 2003-07-17  Bruno Haible  <bruno@clisp.org>
19419
19420         * modules/getnline: New file.
19421         * modules/getline: Add lib/getndelim2.c to source file list.
19422         * MODULES.html.sh (func_all_modules): Add getnline.
19423
19424 2003-07-17  Bruno Haible  <bruno@clisp.org>
19425
19426         * m4/getnline.m4: New file.
19427
19428 2003-07-17  Bruno Haible  <bruno@clisp.org>
19429
19430         * m4/Makefile.am.in: Remove file.
19431         * m4/Makefile.am: Remove file.
19432         * m4/Makefile.in: Remove file.
19433
19434 2003-07-17  Bruno Haible  <bruno@clisp.org>
19435
19436         * lib/getnline.h: New file.
19437         * lib/getnline.c: New file.
19438         * lib/getndelim2.c: New file, extracted from getline.c.
19439         (getndelim2): Renamed from getdelim2, with added nmax argument.
19440         * lib/getline.c: Include getndelim2.c.
19441         (getdelim2): Moved out to getndelim2.c.
19442         (getline, getdelim): Update.
19443
19444 2003-07-17  Bruno Haible  <bruno@clisp.org>
19445
19446         * lib/Makefile.am: Remove file.
19447         * lib/Makefile.in: Remove file.
19448
19449 2003-07-17  Bruno Haible  <bruno@clisp.org>
19450
19451         * configure.in: Remove file.
19452         * Makefile.in: Remove file.
19453
19454 2003-07-17  Bruno Haible  <bruno@clisp.org>
19455
19456         * MODULES.html.sh: Put the </BODY> right before </HTML>.
19457
19458 2003-07-16  Karl Berry  <karl@gnu.org>
19459
19460         * config/srclist-update: was running fixlicense twice, which caused
19461                 texinfo.tex to be nullified for some reason.  Simplify,
19462                 $gplsrc is no longer needed as far as I can see?
19463
19464 2003-07-16  Jim Meyering  <jim@meyering.net>
19465
19466         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
19467
19468 2003-07-15  Paul Eggert  <eggert@twinsun.com>
19469
19470         * config/srclist.txt: Get the following files from gettext-runtime/intl
19471         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
19472         ref-del.sin.  From Bruno Haible.
19473         * config/srclist-update (fixfile): Change grep pattern again, since the
19474         previous fix didn't work (there was another trailing $).  Use
19475         '[$]' to escape the $s.
19476
19477 2003-07-15  Karl Berry  <karl@gnu.org>
19478
19479         * lib/vasnprintf.c: update from gettext.
19480
19481 2003-07-15  Karl Berry  <karl@gnu.org>
19482
19483         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
19484         gets expanded when surrounded by '$'.
19485
19486 2003-07-15  Jim Meyering  <jim@meyering.net>
19487
19488         * modules/save-cwd: Don't depend on error.  From Derek Price.
19489
19490 2003-07-15  Jim Meyering  <jim@meyering.net>
19491
19492         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
19493
19494 2003-07-14  Simon Josefsson  <jas@extundo.com>
19495
19496         * modules/mempcpy: New file.
19497         * MODULES.html.sh (func_all_modules): Add mempcpy.
19498
19499 2003-07-14  Simon Josefsson  <jas@extundo.com>
19500
19501         * m4/mempcpy.m4: New file.
19502
19503 2003-07-14  Simon Josefsson  <jas@extundo.com>
19504
19505         * lib/mempcpy.h: New file.
19506         * lib/mempcpy.c: New file.
19507
19508 2003-07-14  Paul Eggert  <eggert@twinsun.com>
19509
19510         * modules/getdate, modules/posixtm: Depend on mktime.
19511
19512 2003-07-14  Paul Eggert  <eggert@twinsun.com>
19513
19514         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
19515         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
19516         unicodeio.c, unicodeio.h, unlocked-io.h:
19517         Switch from LGPL to GPL.
19518
19519 2003-07-14  Paul Eggert  <eggert@twinsun.com>
19520
19521         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
19522         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
19523         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
19524         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
19525         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
19526         updated automatically by ../config/srclist-update.  This changes
19527         their license from LPGL to GPL.
19528
19529 2003-07-14  Paul Eggert  <eggert@twinsun.com>
19530
19531         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
19532         assumed to refer to the root of the most recent stable gettext version.
19533         * config/srclistvars.sh: Add defaults for eggert.
19534         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
19535         Match "This program" as well as "The program".  This is needed
19536         for gettext.
19537
19538 2003-07-14  Jim Meyering  <jim@meyering.net>
19539
19540         Don't emit diagnostics.  Let callers do that.
19541         * lib/save-cwd.c: Don't include "error.h".
19542         (save_cwd): Don't call error.  Ensure that errno is valid
19543         when returning nonzero.
19544
19545         * lib/save-cwd.h (restore_cwd): Update prototype.
19546         * lib/save-cwd.c (restore_cwd): Remove two parameters.
19547         Simplify.  Don't call error upon failure.  Let callers do that.
19548         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
19549         when auditing is enabled.  But don't bother updating the #if.
19550
19551 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
19552
19553         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
19554         it breaks C++ compilation.
19555         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
19556
19557 2003-07-10  Simon Josefsson  <jas@extundo.com>
19558
19559         * modules/strchrnul (Makefile.am): Add strchrnul.h.
19560
19561 2003-07-10  Jim Meyering  <jim@meyering.net>
19562
19563         * m4/clock_time.m4: Remove trailing blank.
19564         * m4/intmax_t.m4: Likewise.
19565
19566 2003-07-10  Jim Meyering  <jim@meyering.net>
19567
19568         * lib/vasnprintf.c: Remove trailing blanks.
19569         Make cpp indentation consistent.
19570
19571 2003-07-09  Paul Eggert  <eggert@twinsun.com>
19572
19573         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
19574         posixver.c, strftime.c, strnlen.c, strverscmp.c:
19575         Switch from LGPL to GPL.
19576
19577 2003-07-09  Paul Eggert  <eggert@twinsun.com>
19578
19579         * config/srclist.txt: Sort sublists.  Add
19580         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
19581         that differ from gnulib for one reason or another; we'd like this list
19582         to be smaller but for now let's document what we have.
19583
19584 2003-07-08  Paul Eggert  <eggert@twinsun.com>
19585
19586         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
19587         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
19588         and sweeter "eval x=$x".
19589         * config/srclist.txt: Get lib/argp* from glibc.
19590
19591 2003-07-07  Paul Eggert  <eggert@twinsun.com>
19592
19593         * lib/mktime.c: Fix some boundary cases and remove need for floating
19594         point.
19595
19596         Issue a compile-time diagnostic if time_t is floating point, or if
19597         two's complement arithmetic is not in effect, or if arithmetic
19598         right shift does not propagate the sign.  These assumptions were
19599         all in the original code but they weren't checked.
19600
19601         (TIME_T_MIDPOINT, verify): New macros.
19602         (__isleap): Remove; it has integer overflow problems.
19603         (leapyear): New function, without those problems.
19604         (ydhms_tm_diff): Remove; splitting into two parts.
19605         (ydhms_diff): New function, containing the arithmetic part of
19606         the old ydhms_tm_diff function.  Issue a compile-time
19607         diagnostic if we are not using C99 integer division.
19608         Avoid casts when possible.
19609         (guess_time_tm): New function, containing the checking part of
19610         the old ydhms_tm_diff function.  Return the new value, rather than
19611         the difference between it and the old.  Accept a new argument T
19612         so that *T specifies the old value.  Check for overflow in the result.
19613
19614         (__mktime_internal): Use a time_t offset, not a long int offset.
19615         This undoes the 2003-06-04 change, which is no longer needed now
19616         that we have better overflow checking.
19617         (localtime_offset): Likewise.
19618
19619         (__mktime_internal): Avoid harmful overflow on hosts where time_t
19620         and long are 64-bit but int is only 32-bit.
19621         (ydhms_diff): Use long int to store year1 and yday1.
19622         Issue a compile-time diagnostic if long int is not wide enough.
19623
19624         (__mktime_internal): Use long int to store adjusted year and yday.
19625         Use plain C rather than preprocessor commands, if that doesn't
19626         affect efficiency.
19627         Check for overflow (and try to repair) after each probe
19628         rather than checking only at the very end.  This avoids some bugs
19629         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
19630         does not equal GMT offset at maximum time).
19631         Use integer to check for overflow rather than floating point; this
19632         is more portable to non-IEEE hosts, and is a tad faster.
19633         When we detect that we are oscillating between two values,
19634         don't check whether tm_isdst has the requested value, since
19635         we already know the answer.  When tm_isdst has the wrong value,
19636         use a different heuristic to find the right one, based on the
19637         extreme values actually observed in practice in tz2003a,
19638         rather than the (overly optimistic) "previous 3 calendar quarters".
19639
19640         (not_equal_tm, print_tm, check_result): Use "const T" rather than
19641         "T const" to accommodate glibc style.
19642         (check_result): Use less-confusing report format.  "long" -> "long int.
19643         (main): Likewise.
19644         Don't loop if the iteration overflows time_t.
19645         Allow a negative step in the iteration.
19646
19647 2003-07-06  Karl Berry  <karl@gnu.org>
19648
19649         * config/depcomp: update from automake.
19650         * config/config.sub: update from prep.
19651
19652 2003-07-03  Karl Berry  <karl@gnu.org>
19653
19654         * config/config.guess: update from prep.
19655
19656 2003-07-01  Paul Eggert  <eggert@twinsun.com>
19657
19658         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
19659         xreadlink.c now includes it unconditionally.
19660
19661 2003-07-01  Paul Eggert  <eggert@twinsun.com>
19662
19663         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
19664         having it depend on HAVE_SYS_TYPES_H.
19665
19666 2003-07-01  Bruno Haible  <bruno@clisp.org>
19667
19668         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
19669         <sys/types.h> should be sufficient.
19670         Reported by Paul Eggert.
19671
19672 2003-06-26  Karl Berry  <karl@gnu.org>
19673
19674         * config/depcomp: update from automake.
19675
19676 2003-06-26  Bruno Haible  <bruno@clisp.org>
19677
19678         * modules/human: Depend on module stdbool.
19679
19680 2003-06-25  Bruno Haible  <bruno@clisp.org>
19681
19682         * modules/readlink: New file.
19683         * modules/xreadlink: Depend on it.
19684         * MODULES.html.sh (func_all_modules): Add readlink.
19685
19686 2003-06-25  Bruno Haible  <bruno@clisp.org>
19687
19688         * m4/readlink.m4: New file.
19689
19690 2003-06-25  Bruno Haible  <bruno@clisp.org>
19691
19692         * lib/readlink.c: New file.
19693
19694 2003-06-22  Karl Berry  <karl@gnu.org>
19695
19696         * config/srclist.txt: update mkinstalldirs from automake.
19697         * config/mkinstalldirs: update.
19698
19699 2003-06-22  Bruno Haible  <bruno@clisp.org>
19700
19701         Portability to mingw32.
19702         * m4/ssize_t.m4: New file, from GNU gettext.
19703         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
19704         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
19705
19706 2003-06-22  Bruno Haible  <bruno@clisp.org>
19707
19708         * modules/safe-read: Add m4/ssize_t.m4.
19709         * modules/xreadlink: Add m4/ssize_t.m4.
19710
19711 2003-06-20  Bruno Haible  <bruno@clisp.org>
19712
19713         Assume C89, so PARAMS isn't needed.
19714         * lib/unicodeio.h (PARAMS): Remove.
19715         * lib/unicodeio.c: Don't use PARAMS.
19716
19717 2003-06-18  Karl Berry  <karl@gnu.org>
19718
19719         * config/config.{guess,sub}: update from prep.
19720
19721 2003-06-18  Jim Meyering  <jim@meyering.net>
19722
19723         Merge changes from coreutils.
19724         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
19725         Remove explicit declarations of xmalloc and realloc.
19726         Include xalloc.h.
19727         (read_utmp): Remove anachronistic cast of xmalloc.
19728
19729 2003-06-17  Paul Eggert  <eggert@twinsun.com>
19730
19731         Assume C89, so PARAMS isn't needed.
19732         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
19733         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
19734         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
19735         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
19736         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
19737         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
19738         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
19739         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
19740         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
19741         lib/xstrtod.h, lib/xstrtol.h: Likewise.
19742         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
19743         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
19744         no longer needed. Anyway, config.h should always be included before any
19745         other file.
19746
19747 2003-06-11  Simon Josefsson  <jas@extundo.com>
19748
19749         * modules/sysexits: New file.
19750         * MODULES.html.sh (func_all_modules): Add sysexits.
19751
19752 2003-06-11  Simon Josefsson  <jas@extundo.com>
19753
19754         * lib/sysexit_.h: New file.
19755
19756 2003-06-11  Derek Price  <derek@ximbiot.com>
19757
19758         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
19759         necessary.
19760
19761 2003-06-11  Bruno Haible  <bruno@clisp.org>
19762
19763         * m4/sysexits.m4: New file.
19764
19765 2003-06-10  Simon Josefsson  <jas@extundo.com>
19766
19767         * lib/argp.h: New file, from glibc.
19768         * lib/argp-ba.c: New file, from glibc.
19769         * lib/argp-eexst.c: New file, from glibc.
19770         * lib/argp-fmtstream.c: New file, from glibc.
19771         * lib/argp-fmtstream.h: New file, from glibc.
19772         * lib/argp-fs-xinl.c: New file, from glibc.
19773         * lib/argp-help.c: New file, from glibc.
19774         * lib/argp-namefrob.h: New file, from glibc.
19775         * lib/argp-parse.c: New file, from glibc.
19776         * lib/argp-pv.c: New file, from glibc.
19777         * lib/argp-pvh.c: New file, from glibc.
19778         * lib/argp-xinl.c: New file, from glibc.
19779
19780 2003-06-10  Simon Josefsson  <jas@extundo.com>
19781
19782         * modules/strchrnul: New file.
19783
19784 2003-06-10  Simon Josefsson  <jas@extundo.com>
19785
19786         * modules/argp: New file.
19787
19788 2003-06-10  Simon Josefsson  <jas@extundo.com>
19789
19790         * m4/strchrnul.m4: New file.
19791
19792 2003-06-10  Simon Josefsson  <jas@extundo.com>
19793
19794         * lib/strchrnul.h: New file.
19795         * lib/strchrnul.c: New file.
19796
19797 2003-06-10  Bruno Haible  <bruno@clisp.org>
19798
19799         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
19800
19801 2003-06-07  Karl Berry  <karl@gnu.org>
19802
19803         * config/config.{guess,sub}: update from prep.
19804
19805 2003-06-07  Jim Meyering  <jim@meyering.net>
19806
19807         * modules/strtod: Use $(...) notation, not @...@ for
19808         AC_REPLACE'd variables.
19809         * modules/localcharset: Likewise.
19810
19811 2003-06-07  Jim Meyering  <jim@meyering.net>
19812
19813         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
19814         in place of my name in the copyright comment.
19815         Remove definition and uses of __P.
19816
19817         From coreutils.
19818         * lib/stat.c: Don't declare xmalloc explicitly.
19819         Instead, include "xalloc.h".
19820         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
19821         xrealloc, and xcalloc return values.
19822         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
19823         Improve comment.
19824         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
19825
19826 2003-06-07  Bruno Haible  <bruno@clisp.org>
19827
19828         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
19829         avoid AC_CONFIG_LINKS.
19830         * modules/fnmatch (Makefile.am): Use explicit creation rule for
19831         fnmatch.h, to avoid AC_CONFIG_LINKS.
19832         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
19833
19834 2003-06-07  Bruno Haible  <bruno@clisp.org>
19835
19836         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
19837         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
19838         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
19839         directory.
19840         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
19841         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
19842         directory.
19843
19844 2003-06-06  Jim Meyering  <jim@meyering.net>
19845
19846         Merge from coreutils.
19847         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
19848         Consolidate declarations and initializations of *_base* locals.
19849
19850         Merge from coreutils.
19851         This avoids a core dump on systems without GNU putenv,
19852         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
19853         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
19854         (unsetenv): New static function, from GNU libc.
19855         (rpl_putenv): Use it.
19856
19857         * lib/modechange.c: Remove trailing blanks.
19858
19859         Merge from coreutils.
19860         * lib/fsusage.c: Remove declaration of statfs.
19861         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
19862
19863         * lib/posixtm.c: Include <stdbool.h> unconditionally.
19864
19865 2003-06-06  Jim Meyering  <jim@meyering.net>
19866
19867         * lib/stdbool_.h: Renamed from stdbool.h.in.
19868
19869 2003-06-06  Jim Meyering  <jim@meyering.net>
19870             Bruno Haible  <bruno@clisp.org>
19871
19872         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
19873         Adjust Makefile.am snippet not to redirect directly to target.
19874         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
19875
19876 2003-06-05  Paul Eggert  <eggert@twinsun.com>
19877
19878         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
19879         mismatch, look in future quarters as well as past.  This fixes a
19880         bug when processing fall-backwards gaps immediately after a long
19881         period of daylight-saving time.
19882
19883         * lib/mktime.c: Assume freestanding C89 or better.
19884         (HAVE_LIMITS_H): Remove.  Assume it's 1.
19885         (__P): Remove; not used.
19886         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
19887         (mktime, not_equal_tm, print_tm, check_result,
19888         main): Use prototypes.  Use const * where appropriate.
19889         (main): Fix typo in testing code that uncovered by above changes.
19890         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
19891
19892 2003-06-04  Paul Eggert  <eggert@twinsun.com>
19893
19894         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
19895         locale.h, localeconv.  This merges changes from coreutils.
19896
19897         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
19898         It can be removed after the next Autoconf is released.
19899         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
19900         needed.
19901
19902 2003-06-04  Paul Eggert  <eggert@twinsun.com>
19903
19904         * lib/mktime.c: Fix Debian bug 177940
19905         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
19906         (localtime_offset): Now long int, not time_t, because we want it
19907         to be guaranteed to be signed.  All uses changed.
19908         (__mktime_internal): If overflow would occur when adding offset,
19909         don't add it.
19910
19911         Merge 'human' changes from coreutils.  Rewrite to support
19912         locale-specific notations like thousands separators.
19913         * lib/human.c: Simplify authorship notice.
19914         Include human.h immediately after config.h.
19915         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
19916         <limits.h>: Do not include, since human.h does.
19917         (SIZE_MAX, UINTMAX_MAX): New macros.
19918         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
19919         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
19920         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
19921         (power_letter): Renamed from suffixes.
19922         (generate_suffix_backwards): Remove.
19923         (adjust_value): Now takes int style (because of human.h changes)
19924         and long double value (for greater precision on some platforms).
19925         (group_number): New function.
19926         (human_readable): Use it.  Use integer options, not enum.
19927         Put the options before the sizes in the arg list.
19928         Support all the new options.
19929         The old human_readable function has been removed;
19930         use inttostr.h instead.
19931         (human_readable, default_block_size, humblock):
19932         Use uintmax_t, not int, for block sizes.
19933         (human_readable_inexact, block_size_types): Remove.
19934         (block_size_opts): New constant.
19935         (human_options): Renamed from human_block_size, with new signature
19936         that allows block sizes up to UINTMAX_MAX.  All callers changed.
19937         * lib/human.h: Add copyright and authorship notice.
19938         Include <limits.h> and <stdbool.h> unconditionally.
19939         (PARAMS): Remove.  All uses removed.
19940         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
19941         (enum human_inexact_style): Remove tag; now a nameless enum.
19942         (human_floor, human_ceiling, human_round_to_even): Now have
19943         values 2, 0, 1 rather than -1, 1, 0.
19944         (human_group_digits, human_suppress_point_zero, human_autoscale,
19945         human_base_1024, human_SI, human_B): New constants.
19946         (human_readable_inexact, human_block_size): Remove.
19947         (human_readable): Size args are now uintmax_t, not int.
19948         (human_options): New decl.
19949
19950         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
19951         unnecessary now that we assume C89 or better.  This change
19952         imported from coreutils.
19953
19954         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
19955         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
19956         in the 2003-05-30 sync from glibc.
19957
19958         .h files should stand alone, but we shouldn't include <sys/types.h>
19959         if we can get away with just <stddef.h>.
19960
19961         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
19962         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
19963         rather than <sys/types.h>, as we merely need size_t.
19964         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
19965         to get size_t.
19966         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
19967         Include <stdio.h>, to get FILE.
19968         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
19969         memcasecmp.h has included <stddef.h> and all we need is size_t.
19970         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
19971         our interface, instead of including <sys/types.h>
19972
19973 2003-06-04  Paul Eggert  <eggert@twinsun.com>
19974
19975         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
19976         now, as glibc mktime is buggy on non-glibc systems.
19977
19978 2003-06-03  Karl Berry  <karl@gnu.org>
19979
19980         * config/config.sub: update from prep.
19981
19982 2003-06-02  Paul Eggert  <eggert@twinsun.com>
19983
19984         [from coreutils]
19985         Fix some minor time-related bugs with POSIX time arguments.
19986         Some valid time stamps were being rejected (notably -1, and
19987         time stamps before 1900 on 64-bit hosts).  And some invalid
19988         time stamps were being accepted, e.g. September 31.
19989
19990         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
19991         that we can return (time_t) -1 successfully.
19992         * lib/posixtm.c: Likewise.
19993         [HAVE_STDBOOL_H]: Include <stdbool.h>.
19994         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
19995         (t): Remove static var.
19996         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
19997         of static var.  All uses changed.
19998         (year): Do not reject years before 1900; they can occur with
19999         64-bit time_t.
20000         (posix_time_parse): Do not check for out-of-range components;
20001         that is now the caller's responsibility, since our checks were
20002         only approximations.
20003         (posixtime): Use mktime to check for out-of-range components,
20004         since it knows them exactly.
20005         If mktime returns (time_t) -1, check whether an error actually occurred
20006         by invoking localtime on -1.
20007         (main) [TEST_POSIXTIME]: Check for input data errors, and report
20008         posixtime failures better.
20009         Improve the test data (in comments only).
20010
20011 2003-06-02  Karl Berry  <karl@gnu.org>
20012
20013         * config/mkinstalldirs (version): new variable.
20014         (--version): new option.
20015         (usage): improve message.
20016
20017 2003-05-30  Karl Berry  <karl@gnu.org>
20018
20019         * lib/mktime.c: update from libc.
20020
20021 2003-05-30  Bruno Haible  <bruno@clisp.org>
20022
20023         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
20024         * config/config.rpath: Upgrade to gettext-0.12.1.
20025
20026 2003-05-30  Bruno Haible  <bruno@clisp.org>
20027
20028         * m4/gettext.m4: Upgrade to gettext-0.12.1.
20029         * m4/nls.m4: New file, from gettext-0.12.1.
20030         * m4/po.m4: New file, from gettext-0.12.1.
20031         * m4/progtest.m4: Upgrade to gettext-0.12.1.
20032
20033 2003-05-30  Bruno Haible  <bruno@clisp.org>
20034
20035         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
20036         * lib/localcharset.h: Likewise.
20037         * lib/localcharset.c: Likewise.
20038
20039 2003-05-29  Karl Berry  <karl@gnu.org>
20040
20041         * config/config.rpath: update from gettext.
20042
20043 2003-05-28  Paul Eggert  <eggert@twinsun.com>
20044
20045         Assume the headers required for C89 freestanding compilers.
20046         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
20047         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
20048         * m4/human.m4 (gl_HUMAN): Likewise.
20049         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
20050         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
20051         * m4/userspec.m4 (gl_USERSPEC): Likewise.
20052         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
20053         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
20054         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
20055
20056 2003-05-28  Paul Eggert  <eggert@twinsun.com>
20057
20058         Assume the headers required for C89 freestanding compilers.
20059         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
20060         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
20061         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
20062         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
20063         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
20064         define, since <limits.h> is guaranteed to do that.
20065         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
20066         * lib/exclude.c: Include <stdbool.h> unconditionally.
20067         * lib/tempname.c: Include <stddef.h> unconditionally.
20068         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
20069         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
20070         <stddef.h> does that.
20071         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
20072         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
20073         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
20074         needed.
20075         * lib/xstrtol.c: Likewise.
20076         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
20077         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
20078
20079         * lib/addext.c (addext): Use assignment rather than cast, to avoid
20080         warnings on some platforms.
20081
20082         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
20083         arbitrarily.
20084
20085 2003-05-26  Jim Meyering  <jim@meyering.net>
20086
20087         Merge in a change from coreutils:
20088         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
20089         that is guaranteed to be `no'.  Use `no_such_member' to indicate
20090         that condition, rather than `-1' which is slightly misleading.
20091         Change the name of the cache variable to have the gl_ prefix.
20092         Prompted by a patch from Richard Dawe for DJGPP.
20093
20094 2003-05-24  Karl Berry  <karl@gnu.org>
20095
20096         * config/config.guess: update from prep.
20097
20098 2003-05-22  Karl Berry  <karl@gnu.org>
20099
20100         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
20101
20102 2003-05-20  Karl Berry  <karl@gnu.org>
20103
20104         * config/config.guess: update from prep.
20105
20106 2003-05-18  Karl Berry  <karl@gnu.org>
20107
20108         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
20109         might actually be set by the user.
20110
20111         * config/depcomp, install-sh, mdate-sh: update from automake.
20112
20113 2003-05-17  Bruno Haible  <bruno@clisp.org>
20114
20115         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
20116         invalid expansion for AC_EGREP_CPP.
20117         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
20118         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
20119         Suggested by Akim Demaille <akim@epita.fr> in
20120         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
20121
20122 2003-05-12  Jim Meyering  <jim@meyering.net>
20123
20124         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
20125         the space-padded-by-default conversion specifiers, %e, %k, %l.
20126
20127 2003-05-12  Bruno Haible  <bruno@clisp.org>
20128
20129         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
20130         the string is longer than 4 KB.
20131
20132 2003-05-11  Karl Berry  <karl@gnu.org>
20133
20134         * config/config.{guess,sub}: update from prep.
20135
20136 2003-05-09  Bruno Haible  <bruno@clisp.org>
20137
20138         * modules/error: Add m4/strerror_r.m4 to file list.
20139
20140 2003-05-03  Bruno Haible  <bruno@clisp.org>
20141
20142         Upgrade to Unicode-4.0.
20143         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
20144         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
20145         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
20146         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
20147         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
20148         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
20149         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
20150         Change width of U+E0100..U+E01EF from 1 to 0.
20151
20152 2003-04-25  Jim Meyering  <jim@meyering.net>
20153
20154         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
20155         of type size_t, not int.
20156
20157 2003-04-25  Bruno Haible  <bruno@clisp.org>
20158
20159         * lib/copy-file.c: Include <stddef.h>, for size_t.
20160
20161 2003-04-21  Paul Eggert  <eggert@twinsun.com>
20162
20163         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
20164         code which expansion is under static control.  Patch imported from
20165         Akim Demaille's patch to Bison; see
20166         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
20167
20168 2003-04-14  Bruno Haible  <bruno@clisp.org>
20169
20170         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
20171
20172 2003-04-11  Jim Meyering  <jim@meyering.net>
20173
20174         Merge changes from Coreutils.
20175
20176         2003-03-22  Jim Meyering  <jim@meyering.net>
20177
20178         * lib/strftime.c (widen): Cast alloca return value to proper type.
20179
20180         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
20181
20182         From GNU libc.
20183         * lib/strftime.c (my_strftime): Handle very large width
20184         specifications for numeric values correctly.  Improve checks for
20185         overflow.
20186
20187         2003-01-19  Jim Meyering  <jim@meyering.net>
20188
20189         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
20190         definitions.
20191         (nl_get_alt_digit) [! defined my_strftime]: Define.
20192         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
20193         _nl_get_alt_digit and _nl_get_walt_digit.
20194
20195         * lib/strftime.c (my_strftime): Merge in locale-related changes from
20196         libc. These changes have no effect outside of _LIBC.
20197
20198 2003-04-10  Bruno Haible  <bruno@clisp.org>
20199
20200         * modules/findprog: New file.
20201         * MODULES.html.sh (func_all_modules): Add it.
20202
20203 2003-04-10  Bruno Haible  <bruno@clisp.org>
20204
20205         * m4/findprog.m4: New file.
20206         * m4/eaccess.m4: New file.
20207
20208 2003-04-10  Bruno Haible  <bruno@clisp.org>
20209
20210         * lib/findprog.h: New file, from GNU gettext.
20211         * lib/findprog.c: New file, from GNU gettext.
20212
20213 2003-04-05  Jim Meyering  <jim@meyering.net>
20214
20215         Merge changes from Coreutils.
20216
20217         * lib/exclude.h (PARAMS): Remove definition and uses.
20218         * lib/exclude.c: Remove uses of `PARAMS'.
20219
20220         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
20221         Add test-cases for DOS filenames. Declare program_name.
20222         (main): Set up program_name.  Patch by Rich Dawe.
20223
20224         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
20225         error from mntctl.
20226         Use mntctl's return value to drive the entry-processing loop, since
20227         we can't rely on the value of the vmt_length member in the last
20228         entry.  On some systems doing so could result in exhausting
20229         virtual memory.  Based in part on a patch from Mike Jetzer.
20230
20231 2003-04-04  Bruno Haible  <bruno@clisp.org>
20232
20233         * modules/linebreak: New file.
20234         * MODULES.html.sh (func_all_modules): Add it.
20235
20236 2003-04-04  Bruno Haible  <bruno@clisp.org>
20237
20238         * m4/linebreak.m4: New file.
20239
20240 2003-04-04  Bruno Haible  <bruno@clisp.org>
20241
20242         * lib/linebreak.h: New file, from GNU gettext.
20243         * lib/linebreak.c: New file, from GNU gettext with slight
20244         modifications.
20245         * lib/lbrkprop.h: New file, from GNU gettext.
20246
20247 2003-04-03  Bruno Haible  <bruno@clisp.org>
20248
20249         * modules/utf8-ucs4: New file.
20250         * modules/utf16-ucs4: New file.
20251         * modules/ucs4-utf8: New file.
20252         * modules/ucs4-utf16: New file.
20253         * MODULES.html.sh (func_all_modules): Add them.
20254
20255 2003-04-03  Bruno Haible  <bruno@clisp.org>
20256
20257         * m4/utf-ucs4.m4: New file.
20258         * m4/ucs4-utf.m4: New file.
20259
20260 2003-04-03  Bruno Haible  <bruno@clisp.org>
20261
20262         * lib/utf8-ucs4.h: New file, from GNU gettext.
20263         * lib/utf16-ucs4.h: New file, from GNU gettext.
20264         * lib/ucs4-utf8.h: New file, from GNU gettext.
20265         * lib/ucs4-utf16.h: New file, from GNU gettext.
20266
20267 2003-04-02  Bruno Haible  <bruno@clisp.org>
20268
20269         * modules/binary-io: New file.
20270         * MODULES.html.sh (func_all_modules): Add it.
20271
20272 2003-04-02  Bruno Haible  <bruno@clisp.org>
20273
20274         * lib/binary-io.h: New file, from GNU gettext.
20275
20276 2003-04-01  Bruno Haible  <bruno@clisp.org>
20277
20278         * modules/pathname: New file.
20279         * MODULES.html.sh (func_all_modules): Add it.
20280
20281 2003-04-01  Bruno Haible  <bruno@clisp.org>
20282
20283         * lib/pathname.h: New file, from GNU gettext.
20284         * lib/concatpath.c: New file, from GNU gettext.
20285
20286 2003-03-30  Bruno Haible  <bruno@clisp.org>
20287
20288         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
20289
20290 2003-03-30  Bruno Haible  <bruno@clisp.org>
20291
20292         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
20293         function chown() doesn't exist.
20294
20295 2003-03-28  Bruno Haible  <bruno@clisp.org>
20296
20297         * modules/copy-file: New file.
20298         * MODULES.html.sh (func_all_modules): Add it.
20299
20300 2003-03-28  Bruno Haible  <bruno@clisp.org>
20301
20302         * m4/copy-file.m4: New file.
20303
20304 2003-03-28  Bruno Haible  <bruno@clisp.org>
20305
20306         * lib/copy-file.h: New file, from GNU gettext.
20307         * lib/copy-file.c: New file, from GNU gettext.
20308
20309 2003-03-18  Jim Meyering  <jim@meyering.net>
20310
20311         * lib/quote.c (quote_n): Fix typo in comment.
20312
20313 2003-03-18  Bruno Haible  <bruno@clisp.org>
20314
20315         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
20316         checking.
20317         * m4/onceonly_2_57.m4: Likewise.
20318
20319 2003-03-17  Bruno Haible  <bruno@clisp.org>
20320
20321         * m4/onceonly.m4: Require autoconf 2.54 or newer.
20322         (m4_quote): Remove macro.
20323         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
20324
20325 2003-03-14  Jim Meyering  <jim@meyering.net>
20326
20327         Merge changes from Coreutils.
20328         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
20329         to be const, in order to avoid warnings.
20330         (obstack_room): Likewise.
20331         (obstack_empty_p): Likewise.
20332
20333 2003-03-14  Bruno Haible  <bruno@clisp.org>
20334
20335         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
20336         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
20337
20338 2003-03-13  Paul Eggert  <eggert@twinsun.com>
20339
20340         Merge changes from Bison.
20341         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
20342         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
20343         when compiling Bison 1.875's `bitset bset = obstack_alloc
20344         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
20345         * lib/hash.c: Include <stdbool.h> unconditionally.
20346
20347 2003-03-13  Paul Eggert  <eggert@twinsun.com>
20348
20349         * m4/onceonly.m4 (m4_quote): New macro.
20350         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
20351         Quote AC_FOREACH variable-expansions properly.
20352
20353 2003-03-13  Paul Eggert  <eggert@twinsun.com>
20354
20355         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
20356
20357 2003-03-09  Paul Eggert  <eggert@twinsun.com>
20358
20359         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
20360         Reported by Bruce Becker; see:
20361         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
20362
20363 2003-03-03  Paul Eggert  <eggert@twinsun.com>
20364             Bruno Haible  <bruno@clisp.org>
20365
20366         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
20367         Reported by John Hughes, see
20368         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
20369
20370 2003-02-20  Bruno Haible  <bruno@clisp.org>
20371
20372         * MODULES.html.sh (func_all_modules): Add poll.
20373
20374 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
20375
20376         * modules/poll: New file.
20377
20378 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
20379
20380         * lib/poll_.h: New file.
20381         * lib/poll.c: New file.
20382
20383 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
20384
20385         * m4/poll.m4: New file.
20386
20387 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
20388
20389         * modules/mathl: New file.
20390
20391 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
20392
20393         * lib/mathl.h: New file.
20394         * lib/acosl.c: New file.
20395         * lib/asinl.c: New file.
20396         * lib/atanl.c: New file.
20397         * lib/ceill.c: New file.
20398         * lib/cosl.c: New file.
20399         * lib/expl.c: New file.
20400         * lib/floorl.c: New file.
20401         * lib/frexpl.c: New file.
20402         * lib/ldexpl.c: New file.
20403         * lib/logl.c: New file.
20404         * lib/sincosl.c: New file.
20405         * lib/sinl.c: New file.
20406         * lib/sqrtl.c: New file.
20407         * lib/tanl.c: New file.
20408         * lib/trigl.c: New file.
20409         * lib/trigl.h: New file.
20410
20411 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
20412
20413         * m4/mathl.m4: New file.
20414
20415 2003-02-18  Bruno Haible  <bruno@clisp.org>
20416
20417         * MODULES.html.sh (func_all_modules): Add mathl.
20418
20419 2003-02-17  Bruno Haible  <bruno@clisp.org>
20420
20421         * modules/mkdtemp: New module.
20422         * MODULES.html.sh (func_all_modules): Add it.
20423
20424 2003-02-17  Bruno Haible  <bruno@clisp.org>
20425
20426         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
20427
20428 2003-02-17  Bruno Haible  <bruno@clisp.org>
20429
20430         * lib/mkdtemp.h: New file, from GNU gettext.
20431         * lib/mkdtemp.c: New file, from GNU gettext.
20432
20433 2003-02-02  Jim Meyering  <jim@meyering.net>
20434
20435         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
20436         e.g. glibc-2.2.93.
20437
20438 2003-01-31  Bruno Haible  <bruno@clisp.org>
20439
20440         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
20441         'rpl_rename'.
20442         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
20443         'rpl_strnlen'.
20444         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
20445         'rpl_strtod'.
20446         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
20447         'rpl_utime'.
20448
20449 2003-01-31  Bruno Haible  <bruno@clisp.org>
20450
20451         * lib/rename.c: #undef rename before defining rpl_rename.
20452         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
20453
20454 2003-01-30  Bruno Haible  <bruno@clisp.org>
20455
20456         * modules/vasnprintf, modules/vasprintf: New modules.
20457         * MODULES.html.sh (func_all_modules): Add them.
20458
20459 2003-01-30  Bruno Haible  <bruno@clisp.org>
20460
20461         * m4/signed.m4: New file, from GNU gettext.
20462         * m4/longdouble.m4: New file, from GNU gettext.
20463         * m4/wchar_t.m4: New file, from GNU gettext.
20464         * m4/wint_t.m4: New file, from GNU gettext.
20465         * m4/vasnprintf.m4: New file.
20466         * m4/vasprintf.m4: New file.
20467
20468 2003-01-30  Bruno Haible  <bruno@clisp.org>
20469
20470         * lib/printf-args.h: New file, from GNU gettext.
20471         * lib/printf-args.c: New file, from GNU gettext.
20472         * lib/printf-parse.h: New file, from GNU gettext.
20473         * lib/printf-parse.c: New file, from GNU gettext.
20474         * lib/vasnprintf.h: New file, from GNU gettext.
20475         * lib/vasnprintf.c: New file, from GNU gettext.
20476         * lib/asnprintf.c: New file, from GNU gettext.
20477         * lib/vasprintf.h: New file, from GNU gettext with modifications.
20478         * lib/vasprintf.c: New file, from GNU gettext.
20479         * lib/asprintf.c: New file, from GNU gettext.
20480
20481 2003-01-29  Bruno Haible  <bruno@clisp.org>
20482
20483         * modules/stpncpy: New module.
20484         * MODULES.html.sh (func_all_modules): Add it.
20485
20486 2003-01-29  Bruno Haible  <bruno@clisp.org>
20487
20488         * m4/stpncpy.m4: New file.
20489
20490 2003-01-29  Bruno Haible  <bruno@clisp.org>
20491
20492         * lib/stpncpy.h: New file, from GNU gettext with modifications.
20493         * lib/stpncpy.c: New file, from GNU gettext with modifications.
20494
20495 2003-01-28  Bruno Haible  <bruno@clisp.org>
20496
20497         * modules/c-ctype: New module.
20498         * MODULES.html.sh (func_all_modules): Add it.
20499
20500 2003-01-28  Bruno Haible  <bruno@clisp.org>
20501
20502         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
20503         Paul Eggert.
20504         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
20505         Paul Eggert.
20506
20507 2003-01-27  Bruno Haible  <bruno@clisp.org>
20508
20509         * modules/xsetenv: New module.
20510         * MODULES.html.sh (func_all_modules): Add it.
20511
20512 2003-01-27  Bruno Haible  <bruno@clisp.org>
20513
20514         * lib/xsetenv.h: New file, from GNU gettext.
20515         * lib/xsetenv.c: New file, from GNU gettext.
20516
20517 2003-01-23  Jim Meyering  <jim@meyering.net>
20518
20519         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
20520         from working on systems without dirfd (at least Irix and OSF1/Tru64).
20521
20522 2003-01-23  Bruno Haible  <bruno@clisp.org>
20523
20524         * modules/minmax: New module.
20525         * MODULES.html.sh (func_all_modules): Add it.
20526
20527 2003-01-23  Bruno Haible  <bruno@clisp.org>
20528
20529         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
20530         Eggert.
20531
20532 2003-01-22  Bruno Haible  <bruno@clisp.org>
20533
20534         * modules/exit: New module.
20535         * MODULES.html.sh (func_all_modules): Add it.
20536
20537 2003-01-22  Bruno Haible  <bruno@clisp.org>
20538
20539         * lib/exit.h: New file, from GNU gettext.
20540
20541 2003-01-19  Bruno Haible  <bruno@clisp.org>
20542
20543         * gnulib-tool: Recognize option --extract-maintainer.
20544         (func_get_maintainer): New function.
20545         * modules/*: Add Maintainer entry.
20546
20547 2003-01-16  Jim Meyering  <jim@meyering.net>
20548
20549         * m4/regex.m4: The `regex' struct is both input and output.
20550         Initialize it before each use.  Patch by Tim Waugh.
20551
20552 2003-01-16  Bruno Haible  <bruno@clisp.org>
20553
20554         * MODULES.html.sh: Add a table of contents. Add the module name as
20555         leftmost column. Add hyperlinks.
20556
20557 2003-01-15  Bruno Haible  <bruno@clisp.org>
20558
20559         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
20560
20561 2003-01-15  Bruno Haible  <bruno@clisp.org>
20562
20563         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
20564         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
20565         suffix.
20566
20567 2003-01-15  Bruno Haible  <bruno@clisp.org>
20568
20569         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
20570
20571 2003-01-15  Bruno Haible  <bruno@clisp.org>
20572
20573         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
20574         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
20575
20576 2003-01-14  Jim Meyering  <jim@meyering.net>
20577
20578         * lib/same.c (same_name): Tweak a comment.
20579
20580 2003-01-14  Bruno Haible  <bruno@clisp.org>
20581
20582         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
20583         when a string comparison is sufficient.
20584
20585 2003-01-14  Bruno Haible  <bruno@clisp.org>
20586
20587         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
20588         'unsigned int'.
20589
20590 2003-01-14  Bruno Haible  <bruno@clisp.org>
20591
20592         * lib/hash-pjw.c: Add comment about low quality of this function.
20593
20594 2003-01-13  Bruno Haible  <bruno@clisp.org>
20595
20596         * modules/stpcpy: Distribute lib/stpcpy.h.
20597         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
20598
20599 2003-01-13  Bruno Haible  <bruno@clisp.org>
20600
20601         * modules/*: Add a description.
20602         * modules/strpbrk: Fix Makefile.am snippet.
20603         * modules/strtoimax: Fix dependencies.
20604         * modules/strtoumax: Likewise.
20605
20606 2003-01-13  Bruno Haible  <bruno@clisp.org>
20607
20608         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
20609         * modules/alloca (Makefile.am): All object files depend on alloca.h.
20610         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
20611
20612 2003-01-13  Bruno Haible  <bruno@clisp.org>
20613
20614         * gnulib-tool (func_create_testdir): Store config/* files in the main
20615         directory.
20616         * config.rpath: Move to ...
20617         * config/config.rpath: ... here.
20618         * modules/gettext: Contains config/config.rpath, not config.rpath.
20619         * modules/iconv: Likewise.
20620
20621 2003-01-12  Paul Eggert  <eggert@twinsun.com>
20622
20623         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
20624         to avoid collisions with libcurses and libreadline.
20625
20626         * m4/getstr.m4: Remove.
20627         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
20628
20629 2003-01-12  Paul Eggert  <eggert@twinsun.com>
20630
20631         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
20632         to avoid collisions with libcurses and libreadline.
20633
20634         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
20635         * lib/getstr.h, getstr.c: Remove.
20636         * lib/getline.c: Include "getline.h", to check interface.
20637         Move body of old getstr.c here: this defines MIN_CHUNK and
20638         declares getdelim2, which is renamed from getstr.
20639         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
20640
20641         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
20642         All uses changed.
20643         * lib/linebuffer.h: Likewise.
20644         (readline): Remove backward-compatibility macro.
20645
20646 2003-01-12  Paul Eggert  <eggert@twinsun.com>
20647
20648         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
20649         to avoid collisions with libcurses and libreadline.
20650         * getstr: Remove.
20651         * MODULES.html.sh: Remove getstr.
20652         * modules/getline: Depend on unlocked-io, not getstr.
20653
20654 2003-01-12  Jim Meyering  <jim@meyering.net>
20655
20656         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
20657
20658 2003-01-10  Bruno Haible  <bruno@clisp.org>
20659
20660         * modules/alloca: Change Makefile.am requirements. Simplify Include
20661         requirements. Add lib/alloca_.h to file list.
20662
20663 2003-01-10  Bruno Haible  <bruno@clisp.org>
20664
20665         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
20666
20667 2003-01-10  Bruno Haible  <bruno@clisp.org>
20668
20669         * lib/alloca_.h: New file.
20670         * lib/getdate.y: Unconditionally include alloca.h.
20671         * lib/makepath.c: Likewise.
20672         * lib/setenv.c: Likewise.
20673         * lib/userspec.c: Likewise.
20674
20675 2003-01-09  Karl Berry  <karl@gnu.org>
20676
20677         * MODULES.html.sh: include `dirname $0` in PATH, to find
20678         gnulib-tool.
20679
20680 2003-01-09  Bruno Haible  <bruno@clisp.org>
20681
20682         * modules/stdbool: Change configure.ac, Makefile.am requirements.
20683         Simplify Include requirements. Add lib/stdbool.h.in to file list.
20684
20685 2003-01-09  Bruno Haible  <bruno@clisp.org>
20686
20687         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
20688
20689 2003-01-09  Bruno Haible  <bruno@clisp.org>
20690
20691         * lib/stdbool.h.in: New file.
20692
20693 2003-01-09  Bruno Haible  <bruno@clisp.org>
20694
20695         * gnulib-tool (func_all_modules): Ignore files ending in ~.
20696         * MODULES.html.sh: Likewise.
20697
20698 2003-01-08  Jim Meyering  <jim@meyering.net>
20699
20700         * lib/full-write.c: Undefine and define-away `const' after inclusion
20701         of errno.h, not before.  Suggestion from Bruno Haible.
20702
20703 2003-01-08  Bruno Haible  <bruno@clisp.org>
20704
20705         * modules/full-read: Depend on full-write.
20706
20707 2003-01-08  Bruno Haible  <bruno@clisp.org>
20708
20709         * lib/safe-read.c: Include specification header first, to ensure its
20710         selfcontainedness.
20711         * lib/full-write.c: Likewise.
20712
20713 2003-01-07  Jim Meyering  <jim@meyering.net>
20714
20715         * lib/full-write.c: Rework so that it may serve to define full_read,
20716         too.
20717         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
20718
20719 2003-01-07  Bruno Haible  <bruno@clisp.org>
20720
20721         * lib/strtoimax.c: Include <stdint.h> as an alternative to
20722         <inttypes.h>.
20723         * lib/xstrtol.h: Likewise.
20724         * lib/xstrtoimax.c: Likewise.
20725         * lib/xstrtoumax.c: Likewise.
20726         * lib/human.h: Likewise.
20727
20728         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
20729         on systems that have <inttypes.h> but not <stdint.h>.
20730
20731 2003-01-07  Bruno Haible  <bruno@clisp.org>
20732
20733         * MODULES.html.sh: Add copyright notice.
20734         (missed_files): Omit CVS directory entries.
20735         (func_module): Make it work with sed-3.02.
20736         * MODULES.txt: Remove file.
20737
20738 2003-01-06  Jim Meyering  <jim@meyering.net>
20739
20740         * lib/version-etc.c: Update year in translatable copyright string.
20741
20742 2003-01-03  Karl Berry  <karl@gnu.org>
20743
20744         * config/config.{guess,sub}: update from prep.
20745
20746 2003-01-02  Karl Berry  <karl@gnu.org>
20747
20748         * doc/COPYING.DOC: belatedly updated to 1.2.
20749
20750 2003-01-01  Karl Berry  <karl@gnu.org>
20751
20752         * gnulib-tool (func_verify_module): report module name $module in
20753         error message, not $1.
20754         * gnulib-tool (create-testdir): don't complain if destdir couldn't
20755         be created, only if it doesn't exist.
20756         * gnulib-tool (last_checkin_date): don't expand the $Date here.
20757
20758 2002-12-31  Paul Eggert  <eggert@twinsun.com>
20759
20760         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
20761
20762 2002-12-31  Paul Eggert  <eggert@twinsun.com>
20763
20764         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
20765         memcmp if strcoll doesn't work.
20766
20767 2002-12-31  Bruno Haible  <bruno@clisp.org>
20768
20769         * lib/utime.c (utime_null): No need to call ftruncate if the file was
20770         nonempty.
20771
20772 2002-12-31  Bruno Haible  <bruno@clisp.org>
20773
20774         * lib/memcoll.c (STRCOLL): New macro.
20775         (memcoll): Use it.
20776
20777 2002-12-31  Bruno Haible  <bruno@clisp.org>
20778
20779         * lib/localcharset.h: New file.
20780         * lib/localcharset.c: Include it.
20781         * lib/unicodeio.c: Likewise.
20782
20783 2002-12-31  Bruno Haible  <bruno@clisp.org>
20784
20785         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
20786         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
20787
20788 2002-12-31  Bruno Haible  <bruno@clisp.org>
20789
20790         * lib/getline.h: Include <stddef.h>, for size_t.
20791
20792         * lib/unicodeio.h: Include <stddef.h>, for size_t.
20793         * lib/unicodeio.c: Don't include <stddef.h>.
20794
20795 2002-12-31  Bruno Haible  <bruno@clisp.org>
20796
20797         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
20798         HAVE_TM_ZONE.
20799
20800 2002-12-24  Karl Berry  <karl@gnu.org>
20801
20802         * config/config.guess: update from prep.
20803
20804 2002-12-24  Bruno Haible  <bruno@clisp.org>
20805
20806         General infrasructure.
20807         * m4/README: Rewritten.
20808         * m4/onceonly.m4: New file.
20809         * m4/onceonly_2_57.m4: New file.
20810
20811         Module atexit.
20812         * m4/atexit.m4: New file.
20813
20814         Module strtod.
20815         * m4/strtod.m4: New file.
20816
20817         Module strtol.
20818         * m4/strtol.m4: New file.
20819
20820         Module strtoul.
20821         * m4/strtoul.m4: New file.
20822
20823         Module memchr.
20824         * m4/memchr.m4: New file.
20825
20826         Module memcmp.
20827         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
20828         (jm_FUNC_MEMCMP): Invoke it.
20829
20830         Module memcpy.
20831         * m4/memcpy.m4: New file.
20832
20833         Module memmove.
20834         * m4/memmove.m4: New file.
20835
20836         Module memset.
20837         * m4/memset.m4: New file.
20838
20839         Module strcspn.
20840         * m4/strcspn.m4: New file.
20841
20842         Module strpbrk.
20843         * m4/strpbrk.m4: New file.
20844
20845         Module strstr.
20846         * m4/strstr.m4: New file.
20847
20848         Module strerror.
20849         * m4/strerror.m4: New file.
20850
20851         Module mktime.
20852         * m4/mktime.m4: Renamed from jm-mktime.m4.
20853         (gl_PREREQ_MKTIME): New macro.
20854         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
20855
20856         Module malloc.
20857         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
20858         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
20859         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
20860
20861         Module realloc.
20862         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
20863         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
20864         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
20865
20866         Module strftime.
20867         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
20868         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
20869         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
20870         gl_TM_GMTOFF.
20871         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
20872
20873         Module xalloc.
20874         * m4/xalloc.m4: New file.
20875
20876         Module alloca.
20877         * m4/alloca.m4: New file.
20878
20879         Module putenv.
20880         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
20881         (jm_FUNC_PUTENV): Invoke it.
20882
20883         Module setenv.
20884         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
20885         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
20886         when invoked twice.
20887         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
20888         gt_FUNC_SETENV.
20889
20890         Module memrchr.
20891         * m4/memrchr.m4: New file.
20892
20893         Module stpcpy.
20894         * m4/stpcpy.m4: New file.
20895
20896         Module strcase.
20897         * m4/strcase.m4: New file.
20898
20899         Module strdup.
20900         * m4/strdup.m4: New file.
20901
20902         Module strnlen.
20903         * m4/strnlen.m4: New file.
20904
20905         Module strndup.
20906         * m4/strndup.m4: New file.
20907
20908         Module xstrtod.
20909         * m4/xstrtod.m4: New file.
20910
20911         Module xstrtol.
20912         * m4/xstrtol.m4: New file.
20913
20914         Module getdate.
20915         * m4/getdate.m4: New file.
20916
20917         Module unlocked-io.
20918         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
20919         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
20920         * m4/jm-glibc-io.m4n: Remove file.
20921
20922         Module long-options.
20923         * m4/long-options.m4: New file.
20924
20925         Module md5.
20926         * m4/md5.m4: New file.
20927
20928         Module sha.
20929         * m4/sha.m4: New file.
20930
20931         Module getstr.
20932         * m4/getstr.m4: New file.
20933
20934         Module getline.
20935         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
20936         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
20937         <sys/types.h>, for size_t. Use the function name gnu_getline, not
20938         simply getline. Infoke gl_PREREQ_GETLINE.
20939
20940         Module obstack.
20941         * m4/obstack.m4: New file.
20942
20943         Module hash.
20944         * m4/hash.m4: New file.
20945
20946         Module readtokens.
20947         * m4/readtokens.m4: New file.
20948
20949         Module strverscmp.
20950         * m4/strverscmp.m4: New file.
20951
20952         Module stdbool.
20953         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
20954         OSF/1.
20955
20956         Module strtoll.
20957         * m4/strtoll.m4: New file.
20958
20959         Module strtoull.
20960         * m4/strtoull.m4: New file.
20961
20962         Module strtoimax.
20963         * m4/strtoimax.m4: New file.
20964
20965         Module strtoumax.
20966         * m4/strtoumax.m4: New file.
20967
20968         Module xstrtoimax.
20969         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
20970         jm_AC_PREREQ_XSTRTOIMAX.
20971         Moved the strtol prerequisites to strtol.m4.
20972         Moved the strtoll prerequisites to strtoll.m4.
20973         Moved the strtoimax prerequisites to strtoimax.m4.
20974
20975         Module xstrtoumax.
20976         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
20977         jm_AC_PREREQ_XSTRTOUMAX.
20978         Moved the strtoul prerequisites to strtoul.m4.
20979         Moved the strtoull prerequisites to strtoull.m4.
20980         Moved the strtoumax prerequisites to strtoumax.m4.
20981
20982         Module chown.
20983         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
20984         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
20985
20986         Module dup2.
20987         * m4/dup2.m4: New file.
20988
20989         Module ftruncate.
20990         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
20991         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
20992
20993         Module getgroups.
20994         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
20995         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
20996
20997         Module gettimeofday.
20998         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
20999         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
21000         gl_PREREQ_GETTIMEOFDAY.
21001
21002         Module mkdir.
21003         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
21004         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
21005
21006         Module mkstemp.
21007         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
21008         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
21009         jm_AC_TYPE_UINTMAX_T.
21010         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
21011
21012         Module stat.
21013         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
21014         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
21015
21016         Module lstat.
21017         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
21018         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
21019
21020         Module timespec.
21021         * m4/timespec.m4 (gl_TIMESPEC): New macro.
21022         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
21023         * m4/st_mtim.m4: Indentation.
21024
21025         Module nanosleep.
21026         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
21027         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
21028         gl_PREREQ_NANOSLEEP.
21029
21030         Module regex.
21031         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
21032         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
21033         (gl_REGEX): New macro.
21034
21035         Module rename.
21036         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
21037         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
21038
21039         Module rmdir.
21040         * m4/rmdir.m4: New file.
21041
21042         Module utime.
21043         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
21044         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
21045         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
21046
21047         Module dirname.
21048         * m4/dirname.m4: New file.
21049
21050         Module getopt.
21051         * m4/getopt.m4: New file.
21052
21053         Module unistd-safer.
21054         * m4/unistd-safer.m4: New file.
21055
21056         Module fnmatch.
21057         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
21058         declaration.
21059         (gl_PREREQ_FNMATCH_EXTRA): New macro.
21060         (gl_FUNC_FNMATCH_POSIX): New macro.
21061         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
21062         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
21063         simply fnmatch.
21064
21065         Module exclude.
21066         * m4/exclude.m4: New file.
21067
21068         Module human.
21069         * m4/human.m4: New file.
21070
21071         Module acl.
21072         * m4/acl.m4: Nop.
21073
21074         Module backupfile.
21075         * m4/backupfile.m4: New file.
21076         * m4/d-ino.m4: Indentation.
21077
21078         Module fsusage.
21079         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
21080         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
21081         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
21082
21083         Module dirfd.
21084         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
21085         requirements.
21086
21087         Module euidaccess.
21088         * m4/euidaccess.m4: New file.
21089
21090         Module file-type.
21091         * m4/file-type.m4: New file.
21092
21093         Module fileblocks.
21094         * m4/fileblocks.m4: New file.
21095
21096         Module filemode.
21097         * m4/filemode.m4: New file.
21098
21099         Module isdir.
21100         * m4/isdir.m4: New file.
21101
21102         Module lchown.
21103         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
21104         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
21105
21106         Module makepath.
21107         * m4/makepath.m4: New file.
21108
21109         Module modechange.
21110         * m4/modechange.m4: New file.
21111
21112         Module mountlist.
21113         * m4/mountlist.m4: New file.
21114         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
21115         Indentation.
21116
21117         Module path-concat.
21118         * m4/path-concat.m4: New file.
21119
21120         Module pathmax.
21121         * m4/pathmax.m4: New file.
21122
21123         Module same.
21124         * m4/same.m4: New file.
21125
21126         Module save-cwd.
21127         * m4/save-cwd.m4: New file.
21128
21129         Module savedir.
21130         * m4/savedir.m4: New file.
21131
21132         Module xgetcwd.
21133         * m4/xgetcwd.m4: New file.
21134         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
21135
21136         Module xreadlink.
21137         * m4/xreadlink.m4: New file.
21138
21139         Module safe-read.
21140         * m4/safe-read.m4: New file.
21141
21142         Module safe-write.
21143         * m4/safe-write.m4: New file.
21144
21145         Module closeout.
21146         * m4/closeout.m4: New file.
21147
21148         Module stdio-safer.
21149         * m4/stdio-safer.m4: New file.
21150
21151         Module getpass.
21152         * m4/getpass.m4: New file.
21153
21154         Module getugroups.
21155         * m4/getugroups.m4: New file.
21156
21157         Module group-member.
21158         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
21159         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
21160
21161         Module idcache.
21162         * m4/idcache.m4: New file.
21163
21164         Module userspec.
21165         * m4/userspec.m4: New file.
21166
21167         Module gettime.
21168         * m4/clock_time.m4: New file.
21169         * m4/gettime.m4: New file.
21170
21171         Module settime.
21172         * m4/settime.m4: New file.
21173
21174         Module posixtm.
21175         * m4/posixtm.m4: New file.
21176
21177         Module gethostname.
21178         * m4/gethostname.m4: New file.
21179
21180         Module canon-host.
21181         * m4/canon-host.m4: New file.
21182
21183         Module gettext.
21184         * m4/codeset.m4: New file, from gettext-0.11.5.
21185         * m4/gettext.m4: New file, from gettext-0.11.5.
21186         * m4/glibc21.m4: New file, from gettext-0.11.5.
21187         * m4/iconv.m4: New file, from gettext-0.11.5.
21188         * m4/intdiv0.m4: New file, from gettext-0.11.5.
21189         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
21190         * m4/inttypes.m4: New file, from gettext-0.11.5.
21191         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
21192         * m4/isc-posix.m4: New file, from gettext-0.11.5.
21193         * m4/lcmessage.m4: New file, from gettext-0.11.5.
21194         * m4/lib-ld.m4: New file, from gettext-0.11.5.
21195         * m4/lib-link.m4: New file, from gettext-0.11.5.
21196         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
21197         * m4/progtest.m4: New file, from gettext-0.11.5.
21198         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
21199         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
21200         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
21201
21202         Module localcharset.
21203         * m4/localcharset.m4: New file.
21204
21205         Module hard-locale.
21206         * m4/hard-locale.m4: New file.
21207
21208         Module mbswidth.
21209         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
21210         onceonly macros.
21211         * m4/mbrtowc.m4: Add comment.
21212
21213         Module memcasecmp.
21214         * m4/memcasecmp.m4: New file.
21215
21216         Module memcoll.
21217         * m4/memcoll.m4: New file.
21218
21219         Module unicodeio.
21220         * m4/unicodeio.m4: New file.
21221
21222         Module rpmatch.
21223         * m4/rpmatch.m4: New file.
21224
21225         Module yesno.
21226         * m4/yesno.m4: New file.
21227
21228         Module exitfail.
21229         * m4/exitfail.m4: New file.
21230
21231         Module c-stack.
21232         * m4/c-stack.m4 (gl_C_STACK): New macro.
21233         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
21234
21235         Module error.
21236         * m4/error.m4 (gl_ERROR): New macro.
21237         (jm_PREREQ_ERROR): Use onceonly macros.
21238
21239         Module fatal.
21240         * m4/fatal.m4: New file.
21241
21242         Module getloadavg.
21243         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
21244         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
21245
21246         Module getpagesize.
21247         * m4/getpagesize.m4: New file.
21248
21249         Module getusershell.
21250         * m4/getusershell.m4: New file.
21251
21252         Module physmem.
21253         * m4/physmem.m4: New file.
21254
21255         Module posixver.
21256         * m4/posixver.m4: New file.
21257
21258         Module quotearg.
21259         * m4/quotearg.m4: New file.
21260
21261         Module quote.
21262         * m4/quote.m4: New file.
21263
21264         Module readutmp.
21265         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
21266
21267         Module sig2str.
21268         * m4/sig2str.m4: New file.
21269
21270         Other.
21271         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
21272         ulonglong.m4.
21273         * m4/intmax_t.m4: New file.
21274         * m4/d-type.m4: Indentation.
21275         * m4/jm-macros.m4: Update.
21276         * m4/prereq.m4 (jm_PREREQ): Update.
21277         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
21278         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
21279         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
21280         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
21281         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
21282         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
21283         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
21284         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
21285         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
21286         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
21287         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
21288         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
21289         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
21290         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
21291         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
21292         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
21293         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
21294         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
21295         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
21296
21297 2002-12-24  Bruno Haible  <bruno@clisp.org>
21298
21299         * MODULES.txt: Update according to m4/ changes.
21300
21301         Module gettext.
21302         * config.rpath: New file, from gettext-0.11.5.
21303
21304         * modules/*: New module descriptions.
21305         * gnulib-tool: New file.
21306         * MODULES.html.sh: New file.
21307
21308 2002-12-21  Karl Berry  <karl@gnu.org>
21309
21310         * doc/fdl.texi: update to version 1.2.
21311
21312 2002-12-19  Karl Berry  <karl@gnu.org>
21313
21314         * config/config.guess: update from prep.
21315
21316 2002-12-18  Bruno Haible  <bruno@clisp.org>
21317
21318         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
21319         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
21320
21321 2002-12-17  Bruno Haible  <bruno@clisp.org>
21322
21323         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
21324         stdlib.h, string.h.
21325
21326 2002-12-17  Bruno Haible  <bruno@clisp.org>
21327
21328         * lib/canon-host.c (strdup): Remove unused declaration.
21329
21330         * lib/fsusage.c: Include full_read.h.
21331         (get_fs_usage): Use full_read instead of safe_read.
21332
21333         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
21334
21335 2002-12-12  Karl Berry  <karl@gnu.org>
21336
21337         * config/config.guess: update from prep.
21338
21339 2002-12-11  Bruno Haible  <bruno@clisp.org>
21340
21341         * m4/setenv.m4: New file, from gettext-0.11.5.
21342
21343 2002-12-11  Bruno Haible  <bruno@clisp.org>
21344
21345         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
21346         not unsetenv().
21347         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
21348         modifications:
21349
21350         2002-12-11  Bruno Haible  <bruno@clisp.org>
21351
21352                 * setenv.c (alloca): Fall back to malloc.
21353                 (freea): New macro.
21354                 (setenv): Use freea() to free memory allocated with alloca().
21355
21356         2002-11-13  Bruno Haible  <bruno@clisp.org>
21357
21358                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
21359                 function declarations.
21360                 * unsetenv.c (unsetenv): Likewise.
21361
21362         2002-03-04  Bruno Haible  <bruno@clisp.org>
21363
21364                 Portability to AIX 4.3.3.
21365                 * unsetenv.c: New file, extracted from setenv.c.
21366                 * setenv.c: Move the unsetenv() function to unsetenv.c.
21367
21368         2001-12-20  Bruno Haible  <bruno@clisp.org>
21369
21370                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
21371                 use malloc instead. For SunOS 4.
21372
21373         2001-12-11  Bruno Haible  <bruno@clisp.org>
21374
21375                 * setenv.c: Declare alloca.
21376                 (compar_fn_t): New typedef.
21377                 (KNOWN_VALUE, STORE_VALUE): Use it.
21378
21379         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
21380         setenv.h.
21381
21382 2002-12-10  Paul Eggert  <eggert@twinsun.com>
21383
21384         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
21385         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
21386         Choose values that are less likely to collide with system fnmatch
21387         options.
21388         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
21389         defined (e.g., a pure POSIX system).
21390         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
21391         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
21392
21393 2002-12-06  Paul Eggert  <eggert@twinsun.com>
21394
21395         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
21396         a pain in practice to deal with generated m4 files.  This change
21397         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
21398
21399         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
21400         and jm-glibc-io.m4, as they are no longer a special case.
21401         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
21402         kludge and the auto-generation stuff.  Check only whether the
21403         functions are declared, not whether they exist, since older hosts
21404         that don't declare the functions can't use the optimization anyway.
21405
21406 2002-12-06  Jim Meyering  <jim@meyering.net>
21407
21408         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
21409
21410         Merge in changes from libc's misc/error.c, in preparation
21411         for the merge of gnulib's changes back into libc.
21412
21413         * lib/error.c (_): Define only if not already defined.
21414         Move definition to follow all #include directives.
21415         Include unlocked-io.h only if !_LIBC.
21416         [_LIBC]: Include <libio/libioP.h>.
21417         [USE_IN_LIBIO]: Include <libio/iolibio.h>
21418         (fflush): Tweak definition to use INTUSE.
21419         (putc): Define.
21420
21421 2002-12-05  Paul Eggert  <eggert@twinsun.com>
21422
21423         * lib/alloca.c [defined emacs]: Include "lisp.h".
21424         (xalloc_die) [defined emacs]: New macro.
21425         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
21426         [! defined emacs]: Include <xalloc.h>.
21427         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
21428         (pointer): Typedef to POINTER_TYPE *.
21429         (malloc): Remove decl; we now always use xmalloc.
21430         (alloca): Use old-style definition, since Emacs needs this.
21431         Check for arithmetic overflow when computing combined size.
21432
21433 2002-12-04  Paul Eggert  <eggert@twinsun.com>
21434
21435         Do not generate unlocked-io.h automatically, since it's easier to
21436         maintain it by hand.
21437
21438         * lib/unlocked-io.h: New file, from GNU diffutils,
21439         but with proper copyright notice and attribution.
21440         * lib/gen-uio: Remove.
21441         * lib/Makefile.am: Add copyright notice.
21442         (libfetish_a_SOURCES): Add unlocked-io.h.
21443         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
21444         (DISTCLEANFILES, io_functions): Remove macros.
21445         (EXTRA_DIST): Remove gen_uio.
21446         (unlocked-io.h): Remove rule.
21447
21448 2002-12-04  Jim Meyering  <jim@meyering.net>
21449
21450         Reflect the fact that stat.c and lstat.c are no longer generated.
21451         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
21452         (DISTCLEANFILES): Likewise.
21453         (EXTRA_DIST): Likewise.
21454         (all_local): Don't depend on stat.c or lstat.c.
21455         (stat.c, lstat.c): Remove rules.
21456         (EXTRA_DIST): Remove xstat.in.
21457
21458         * lib/xstat.in: Remove file.  Contents moved into stat.c.
21459         * lib/stat.c: New file.  Contents mostly from xstat.in.
21460         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
21461         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
21462
21463         * lib/safe-read.c: Rework so that it may serve to define safe_write,
21464         too.
21465         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
21466
21467 2002-12-03  Jim Meyering  <jim@meyering.net>
21468
21469         * lib/safe-read.c, safe-write.c: Change variable names and comments,
21470         but not semantics, to minimize the differences between these two files.
21471         (safe_read): Change comment to mention SAFE_READ_ERROR.
21472
21473         * lib/safe-read.c (IS_EINTR): Define.
21474         (safe_read): Use IS_EINTR in place of in-function cpp directives.
21475
21476 2002-12-02  Jim Meyering  <jim@meyering.net>
21477
21478         * lib/safe-read.c (EINTR): Define.
21479         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
21480         (INT_MAX): Provide fallback.
21481         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
21482
21483         * lib/safe-read.h (SAFE_READ_ERROR): Define.
21484
21485 2002-12-02  Bruno Haible  <bruno@clisp.org>
21486
21487         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
21488         Define, taken from safe-read.c.
21489         (INT_MAX): Provide fallback.
21490         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
21491         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
21492
21493         * lib/safe-read.c (EINTR): Remove definition.
21494         (safe_read): Don't use EINTR if it is absent.
21495
21496 2002-12-01  Jim Meyering  <jim@meyering.net>
21497
21498         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
21499         zero.
21500         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
21501
21502 2002-11-27  Paul Eggert  <eggert@twinsun.com>
21503
21504         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
21505         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
21506         with `if (! (value < limit)) abort ();', for readability.
21507
21508 2002-11-26  Karl Berry  <karl@gnu.org>
21509
21510         * lib/strdup.c: copy from libc again, with jim's ok.
21511         * lib/.cppi-disable: re-add strdup.c
21512
21513 2002-11-25  Karl Berry  <karl@gnu.org>
21514
21515         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
21516         instead of "strtol.c".
21517
21518 2002-11-25  Karl Berry  <karl@gnu.org>
21519
21520         * config/install-sh: update from automake for variable quoting, $0 in
21521         error msgs, etc.
21522
21523         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
21524         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
21525         entry.
21526
21527 2002-11-25  Jim Meyering  <jim@meyering.net>
21528
21529         * lib/mktime.c: Sync from libc, now that it has the latest fix.
21530
21531 2002-11-24  Karl Berry  <karl@gnu.org>
21532
21533         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
21534         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
21535
21536 2002-11-24  Jim Meyering  <jim@meyering.net>
21537
21538         Update from coreutils:
21539
21540         * lib/mktime.c: Merge in changes from libc.
21541
21542         Avoid a link-time failure on some Linux systems.
21543         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
21544         (otherwise).
21545         (__mon_yday): Declare with the STATIC attribute.
21546         (__mktime_internal): Likewise.
21547         Based on a report from Greg Schafer.
21548
21549 2002-11-23  Jim Meyering  <jim@meyering.net>
21550
21551         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
21552         Use `unsigned', not `int', as type of index.
21553
21554         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
21555
21556         * lib/fsusage.c: Remove unneeded parentheses around operands of
21557         `defined'.
21558
21559 2002-11-22  Paul Eggert  <eggert@twinsun.com>
21560
21561         * lib/quotearg.h: Allow multiple inclusion by surrounding with
21562         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
21563         so that we can be included first.
21564         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
21565         * lib/quotearg.c: Include quotearg.h immediately after config.h.
21566         No need to include stddef.h or sys/types.h any more.
21567         Surround local include files with "", not "<>".
21568         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
21569         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
21570         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
21571         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
21572         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
21573         (ISPRINT): Remove; no longer needed now that we assume C89.
21574
21575         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
21576         Preserve errno.
21577
21578         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
21579         quotearg_char): Use SIZE_MAX rather than
21580         (size_t) -1 when we are talking about "infinity".
21581
21582         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
21583
21584 2002-11-22  Paul Eggert  <eggert@twinsun.com>
21585
21586         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
21587         hint that one should use `if (! x) abort ();' rather than `assert
21588         (x);', and anyway it's one less thing to worry about configuring.
21589         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
21590         hash_rehash, hash_insert): Use abort rather than assert.
21591
21592 2002-11-22  Bruno Haible  <bruno@clisp.org>
21593
21594         * lib/safe-read.h: Assume C89. Add comments.
21595         (safe_read): Change return type to size_t.
21596         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
21597         byte counts > SSIZE_MAX correctly.
21598         * lib/safe-write.h: New file.
21599         * lib/safe-write.c: New file.
21600         * lib/full-read.h: New file.
21601         * lib/full-read.c: New file.
21602         * lib/full-write.h: Assume C89. Add comments.
21603         * lib/full-write.c: Include safe-write.h.
21604         (full_write): Rewritten to use safe_write.
21605         Suggested by Jim Meyering and Paul Eggert.
21606
21607 2002-11-21  Jim Meyering  <jim@meyering.net>
21608
21609         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
21610
21611         Merge in changes from the coreutils.
21612
21613         2002-09-25  Paul Eggert  <eggert@twinsun.com>
21614         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
21615         <stdint.h>.
21616         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
21617         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
21618         int.  Work more efficiently if X is the same width as uintmax_t.
21619         Do not compare X to -1, to avoid bogus compiler warning.
21620         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
21621         Don't assume that f_frsize and f_bsize are the same type.
21622
21623         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
21624         warning on FreeBSD.
21625
21626         * lib/makepath.c (make_path): Restore umask *before* creating the final
21627         component.
21628         (make_path): Minor reformatting.
21629
21630         * lib/xmalloc.c: Adjust to work with new autoconf macros,
21631         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
21632         HAVE_MALLOC/HAVE_REALLOC.
21633
21634         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
21635         dummy ones.  At least on GNU/Linux systems, `auto' means something
21636         else.
21637         From Michael Stone.
21638
21639 2002-11-21  Bruno Haible  <bruno@clisp.org>
21640
21641         Remove case insensitive option matching.
21642         * lib/argmatch.h (argcasematch): Remove declaration.
21643         (ARGCASEMATCH): Remove macro.
21644         (__xargmatch_internal): Remove case_sensitive argument.
21645         (XARGMATCH): Update.
21646         (XARGCASEMATCH): Remove macro.
21647         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
21648         case_sensitive argument.
21649         (argcasematch): Remove function.
21650         (__xargmatch_internal): Remove case_sensitive argument.
21651         (main): Use XARGMATCH instead of XARGCASEMATCH.
21652
21653         * lib/xmalloc.c: Change compile-time error message. Add comment about
21654         required autoconf version.
21655
21656 2002-11-20  Paul Eggert  <eggert@twinsun.com>
21657
21658         Merge argmatch cleanups from Bison.  Assume C89.
21659
21660         * lib/argmatch.c: Include config.h here, not in argmatch.h.
21661         Include stdlib.h, for EXIT_FAILURE.
21662         Always include <string.h>, since we assume C89.
21663         (EXIT_FAILURE): Remove pre-C89 bug workaround.
21664         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
21665         Include <stddef.h> instead, since it's all we need for size_t.
21666         (PARAMS): Remove.  All uses removed.
21667         (ARRAY_CARDINALITY): Do not bother to #undef.
21668         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
21669         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
21670         Remove unnecessary parentheses.
21671         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
21672         Insert necessary parentheses.
21673         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
21674         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
21675
21676 2002-11-19  Bruno Haible  <bruno@clisp.org>
21677
21678         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
21679         * lib/mbswidth.h: Include <stddef.h>, for size_t.
21680
21681         * lib/mbswidth.h (PARAMS): Remove macro.
21682         (mbswidth, mbsnwidth): Use ANSI C function declarations.
21683         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
21684
21685         * lib/gcd.h (PARAMS): Remove macro.
21686         (gcd): Use ANSI C function declarations.
21687         * lib/gcd.c (gcd): Likewise.
21688
21689 2002-11-15  Bruno Haible  <bruno@clisp.org>
21690
21691         * lib/strcspn.c: Include <stddef.h>.
21692         (strcspn): Use ANSI C function declaration. Change return type to
21693         size_t. Use NULL.
21694         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
21695         (strpbrk): Use NULL.
21696         * lib/strpbrk.h (PARAMS): Remove macro.
21697         (strpbrk): Use ANSI C function declaration.
21698         * lib/strstr.c: Don't include <sys/types.h>.
21699         * lib/strstr.h (PARAMS): Remove macro.
21700         (strstr): Use ANSI C function declarations.
21701
21702 2002-11-14  Karl Berry  <karl@gnu.org>
21703
21704         * config/mkinstalldirs: `do' on separate line, instead of
21705         `for var; do'.
21706
21707 2002-11-06  Bruno Haible  <bruno@clisp.org>
21708
21709         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
21710         * lib/gcd.c (gcd): Likewise.
21711
21712 2002-11-05  Bruno Haible  <bruno@clisp.org>
21713
21714         * lib/gcd.h: New file, from gettext-0.11.5.
21715         * lib/gcd.c: New file, from gettext-0.11.5.
21716
21717 2002-11-05  Bruno Haible  <bruno@clisp.org>
21718
21719         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
21720         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
21721         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
21722         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
21723
21724         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
21725         <libintl.h>.
21726         * lib/makepath.c: Include gettext.h instead of <locale.h> and
21727         <libintl.h>.
21728
21729         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
21730         * lib/human.c: Include gettext.h instead of <libintl.h>.
21731         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
21732         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
21733         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
21734         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
21735         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
21736         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
21737         (textdomain): Remove definition.
21738         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
21739
21740         * lib/long-options.c: Remove include of <libintl.h> and definition of
21741         _.
21742         * lib/same.c: Remove include of <libintl.h> and definition of _.
21743
21744 2002-11-04  Owen Taylor  <otaylor@redhat.com>
21745
21746         * lib/config.charset: A few additions for Solaris.
21747
21748 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
21749
21750         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
21751         * lib/localcharset.c (locale_charset): Declare as extern "C".
21752
21753 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
21754
21755         * lib/config.charset: msdos in uk_UA uses CP1125.
21756
21757 2002-11-04  Bruno Haible  <bruno@clisp.org>
21758
21759         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
21760         * lib/strcase.h: New file, from GNU gettext-0.11.5.
21761         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
21762         * lib/strstr.h: New file, from GNU gettext-0.11.5.
21763         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
21764
21765 2002-11-04  Bruno Haible  <bruno@clisp.org>
21766
21767         * lib/localcharset.c (locale_charset): Don't return an empty string.
21768
21769 2002-11-04  Bruno Haible  <bruno@clisp.org>
21770
21771         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
21772         aliases.
21773
21774 2002-11-04  Bruno Haible  <bruno@clisp.org>
21775
21776         * lib/config.charset: Update for newest glibc. Add canonical names
21777         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
21778
21779 2002-11-04  Bruno Haible  <bruno@clisp.org>
21780
21781         * lib/config.charset: Add support for NetBSD.
21782
21783 2002-11-04  Bruno Haible  <bruno@clisp.org>
21784
21785         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
21786
21787 2002-11-01  Bruno Haible  <bruno@clisp.org>
21788
21789         * configure.in: Add AC_CONFIG_AUX_DIR call.
21790         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
21791         test/Makefile.
21792         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
21793
21794 2002-09-28  Karl Berry  <karl@gnu.org>
21795
21796         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
21797         installed automake until the next release, since changes have been
21798         made.
21799
21800 2002-09-25  Karl Berry  <karl@gnu.org>
21801
21802         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
21803         * lib/getopt*: copy from libc/posix.
21804         * lib/gettext.h: copy from gettext.
21805         * lib/.cppi-disable: add strdup.c, gettext.h.
21806
21807 2002-09-25  Karl Berry  <karl@gnu.org>
21808
21809         * config/srclist.txt: enable gettext.h check.
21810         * config/config.{guess,sub}: update from prep.
21811         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
21812                 from automake 1.6.3.
21813         See srclist*.
21814
21815 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
21816
21817         * regex.c (PATFETCH): Remove the translating fetch.
21818         (PATFETCH_RAW): Rename to PATFETCH.
21819         (set_image_of_range): New fun.
21820         (SET_RANGE_TABLE_WORK_AREA): Use it.
21821         (regex_compile): Don't translate the pattern chars so eagerly.
21822         Only do it when inserting an `exactn' bytecode or when handling
21823         a char-range.
21824         (mutually_exclusive_p): Avoid empty statement.
21825
21826 2002-07-06  Jim Meyering  <meyering@lucent.com>
21827
21828         * m4/README: Don't mention Makefile.am.in.
21829         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
21830
21831 2002-07-01  Jim Meyering  <meyering@lucent.com>
21832
21833         * lib/c-stack.c: Include sys/time.h.
21834         From Volker Borchert.
21835
21836 2002-06-26  Paul Eggert  <eggert@twinsun.com>
21837
21838         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
21839
21840 2002-06-26  Paul Eggert  <eggert@twinsun.com>
21841
21842         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
21843         New macro.  Use it uniformly instead of
21844         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
21845         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
21846         reported by Vin Shelton.
21847
21848 2002-06-22  Paul Eggert  <eggert@twinsun.com>
21849
21850         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
21851         Do not assume SA_SIGINFO behavior.
21852         Bug reported by Jim Meyering on NetBSD 1.5.2.
21853
21854 2002-06-22  Jim Meyering  <meyering@lucent.com>
21855
21856         * m4/c-stack.m4: New file, from diffutils-2.8.2.
21857         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
21858
21859         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
21860         now that configure.ac uses AC_GNU_SOURCE.
21861         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
21862         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
21863
21864         Update to latest tools.  Suggestions from Paul Eggert.
21865         * m4/stdbool.m4: New file, from diffutils-2.8.2.
21866         * m4/gnu-source.m4: Update from diffutils-2.8.2.
21867         * m4/fnmatch.m4: Likewise.
21868         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
21869         to AC_HEADER_STDBOOL
21870
21871 2002-06-22  Jim Meyering  <meyering@lucent.com>
21872
21873         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
21874         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
21875
21876 2002-06-22  Jim Meyering  <meyering@lucent.com>
21877
21878         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
21879
21880         * lib/exitfail.c, exitfail.h: Likewise.
21881         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
21882
21883         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
21884         of fnmatch.h.
21885         (EXTRA_DIST): Add fnmatch_loop.c.
21886         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
21887
21888         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
21889         * lib/fnmatch.c: Update from diffutils-2.8.2.
21890         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
21891         * lib/fnmatch.h: Remove file.
21892
21893 2002-06-21  Jim Meyering  <meyering@lucent.com>
21894
21895         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
21896         * m4/mbrtowc.m4: Likewise.
21897
21898         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
21899         * m4/mbswidth.m4: Reflect name change:
21900         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
21901         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
21902
21903         * m4/lib-link.m4: Update from gettext-0.11.2.
21904         * m4/gettext.m4: Likewise.
21905
21906         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
21907         From Alfred M. Szmidt.
21908
21909 2002-06-18  Paul Eggert  <eggert@twinsun.com>
21910
21911         * lib/file-type.h: Report an error if neither S_ISREG nor
21912         S_IFREG is defined, instead of using a test specific to glibc
21913         2.2.  This should be safe, since POSIX requires S_ISREG and
21914         Unix Version 7 had S_IFREG.  We don't need to check for
21915         <sys/types.h> since we don't use any symbols that it defines.
21916
21917 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
21918
21919         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
21920         $@-t, so that each temporary file name is unique and valid in the first
21921         8 characters, for operation under DOS.
21922
21923 2002-06-15  Paul Eggert  <eggert@twinsun.com>
21924
21925         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
21926
21927 2002-06-15  Jim Meyering  <meyering@lucent.com>
21928
21929         Work even with DJGPP 2.03, which lacks support for symlinks.
21930         From Richard Dawe.
21931         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
21932         is defined.
21933         * lib/lchown.c (S_ISLNK): Likewise.
21934
21935 2002-06-15  Jim Meyering  <meyering@lucent.com>
21936
21937         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
21938         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
21939         have been included before this file.
21940
21941 2002-06-14  Jim Meyering  <meyering@lucent.com>
21942
21943         * lib/file-type.h: Use the version from diffutils-2.8.2.
21944         * lib/file-type.c: Likewise.
21945
21946 2002-06-07  Jim Meyering  <meyering@lucent.com>
21947
21948         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
21949         They're needed at least for NetBSD 1.5.2.
21950         ($statxfs_includes): Include those same headers.
21951         ($statxfs_includes): Include sys/vfs.h if available.
21952         ($statxfs_includes): Likewise for sys/statvfs.h.
21953         Check for the following members in both structs statfs and statvfs:
21954         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
21955
21956 2002-06-01  Jim Meyering  <meyering@lucent.com>
21957
21958         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
21959         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
21960
21961 2002-05-28  Jim Meyering  <meyering@lucent.com>
21962
21963         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
21964         Reported by Volker Borchert.
21965
21966 2002-05-27  Jim Meyering  <meyering@lucent.com>
21967
21968         Fix a problem seen only on nonconforming systems whereby ls.c's
21969         use of localtime, and then of gettimeofday would cause trouble:
21970         the localtime call used to initialize rpl_gettimeofday's save
21971         mechanism would clobber ls's current local time information so
21972         that in any long listing the first file would always be listed
21973         with date 1970-01-01.  Analysis by Volker Borchert.
21974
21975         * lib/gettimeofday.c (localtime): Undefine.
21976         (rpl_localtime): New function.
21977
21978 2002-05-27  Jim Meyering  <meyering@lucent.com>
21979
21980         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
21981         localtime.
21982
21983         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
21984         use the replacement function; it wouldn't resolve at link time.
21985         Reported by Volker Borchert.
21986
21987 2002-05-22  Jim Meyering  <meyering@lucent.com>
21988
21989         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
21990         file-type.h.
21991         * lib/file-type.h: New file.
21992         * lib/file-type.c (file_type): New file/function.  Extracted from
21993         diffutils.
21994
21995 2002-04-30  Jim Meyering  <meyering@lucent.com>
21996
21997         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
21998
21999 2002-04-29  Paul Eggert  <eggert@twinsun.com>
22000
22001         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
22002
22003 2002-04-29  Paul Eggert  <eggert@twinsun.com>
22004
22005         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
22006         Do not check for alloca.h (no longer used) or stdbool.h (was never
22007         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
22008
22009 2002-04-29  Paul Eggert  <eggert@twinsun.com>
22010
22011         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
22012
22013 2002-04-29  Jim Meyering  <meyering@lucent.com>
22014
22015         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
22016         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
22017         Use AC_FUNC_STRNLEN here instead.
22018
22019         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
22020         With autoconf-2.53a, it's part of AC_PROG_CC.
22021
22022 2002-04-28  Paul Eggert  <eggert@twinsun.com>
22023
22024         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
22025         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
22026
22027 2002-04-28  Paul Eggert  <eggert@twinsun.com>
22028
22029         * lib/sig2str.h, lib/sig2str.c: New files.
22030         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
22031
22032 2002-04-28  Paul Eggert  <eggert@twinsun.com>
22033
22034         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
22035         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
22036         of 127, since 64 is the largest conceivable number for ancient
22037         nonstandard hosts.
22038         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
22039
22040 2002-04-28  Jim Meyering  <meyering@lucent.com>
22041
22042         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
22043
22044 2002-04-24  Jim Meyering  <meyering@lucent.com>
22045
22046         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
22047         (jm_PREREQ): Use it.
22048
22049         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
22050         mach/mach.h fcntl.h.
22051         Check for this function: setlocale.
22052
22053 2002-04-24  Jim Meyering  <meyering@lucent.com>
22054
22055         * lib/gettext.h: New file, from Gettext.
22056         * lib/Makefile.am (INCLUDES): Remove -I../intl.
22057         (libfetish_a_SOURCES): Add gettext.h.
22058
22059 2002-04-16  Jim Meyering  <meyering@lucent.com>
22060
22061         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
22062         ut_pid, ut_id, ut_exit.
22063
22064 2002-04-16  Jim Meyering  <meyering@lucent.com>
22065
22066         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
22067         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
22068         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
22069
22070 2002-04-12  Jim Meyering  <meyering@lucent.com>
22071
22072         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
22073         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
22074         existence of the getmntinfo function.  Needed for Darwin 5.3.
22075
22076         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
22077         This is necessary at least on Darwin 5.3.
22078
22079         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
22080         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
22081         strnlen.o in the library, and that makes some versions of ranlib
22082         object.
22083
22084 2002-04-12  Jim Meyering  <meyering@lucent.com>
22085
22086         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
22087
22088 2002-04-09  Jim Meyering  <meyering@lucent.com>
22089
22090         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
22091         to be more precise.  Rather than saying we're checking whether the
22092         function `works', say what we're testing.
22093         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
22094         Reported by Bruno Haible.
22095
22096 2002-03-10  Jim Meyering  <meyering@lucent.com>
22097
22098         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
22099         Suggestion from Santiago Vila.
22100
22101 2002-03-08  Jim Meyering  <meyering@lucent.com>
22102
22103         * lib/rename.c: Mention that this wrapper is needed also on
22104         mips-dec-ultrix4.4 systems.
22105
22106 2002-03-02  Jim Meyering  <meyering@lucent.com>
22107
22108         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
22109         not HAVE_CLOCK_SETTIME.
22110
22111 2002-02-27  Paul Eggert  <eggert@twinsun.com>
22112
22113         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
22114         Check for clock_settime.
22115
22116 2002-02-27  Paul Eggert  <eggert@twinsun.com>
22117
22118         * lib/nanosleep.h: Rename to....
22119         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
22120
22121         * lib/gettime.c: New file.
22122         * lib/settime.c: New file.
22123         * lib/stime.c: Remove.
22124
22125         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
22126         timespec.h.  Remove nanosleep.h.
22127
22128 2002-02-25  Paul Eggert  <eggert@twinsun.com>
22129
22130         * m4/acl.m4: New file.
22131         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
22132         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
22133
22134 2002-02-25  Paul Eggert  <eggert@twinsun.com>
22135
22136         * lib/acl.c, lib/acl.h: New files.
22137         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
22138
22139 2002-02-24  Jim Meyering  <meyering@lucent.com>
22140
22141         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
22142         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
22143         cause trouble.  Reported by Nelson Beebe.
22144
22145 2002-02-23  Paul Eggert  <eggert@twinsun.com>
22146
22147         * lib/path-concat.c (xpath_concat): Reorder code to pacify
22148         compilers that don't know that xalloc_die never returns.
22149
22150 2002-02-20  Jim Meyering  <meyering@lucent.com>
22151
22152         * lib/getdate.c: Regenerate using bison-1.33.
22153
22154 2002-02-17  Jim Meyering  <meyering@lucent.com>
22155
22156         * config/config.guess (main): Don't use `head -1'; it's no longer
22157         portable. Use `sed 1q' instead.
22158
22159 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
22160
22161         * m4/codeset.m4: Upgrade to gettext-0.11.
22162         * m4/gettext.m4: Upgrade to gettext-0.11.
22163         * m4/glibc21.m4: Upgrade to gettext-0.11.
22164         * m4/iconv.m4: Upgrade to gettext-0.11.
22165         * m4/isc-posix.m4: Upgrade to gettext-0.11.
22166         * m4/lcmessage.m4: Upgrade to gettext-0.11.
22167         * m4/lib-ld.m4: New file, from gettext-0.11.
22168         * m4/lib-link.m4: New file, from gettext-0.11.
22169         * m4/lib-prefix.m4: New file, from gettext-0.11.
22170         * m4/progtest.m4: Upgrade to gettext-0.11.
22171
22172 2002-02-15  Paul Eggert  <eggert@twinsun.com>
22173
22174         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
22175         (jm_PREREQ): Use it.
22176
22177 2002-02-15  Paul Eggert  <eggert@twinsun.com>
22178
22179         * lib/posixver.c, lib/posixver.h: New files.
22180         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
22181
22182 2002-02-02  Paul Eggert  <eggert@twinsun.com>
22183             Bruno Haible  <bruno@clisp.org>
22184
22185         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
22186         (fwrite_success_callback): New declaration.
22187         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
22188         print_unicode_char. Call failure callback instead of error.
22189         (fwrite_success_callback): New function.
22190         (exit_failure_callback): New function.
22191         (fallback_failure_callback): New function.
22192         (print_unicode_char): Call unicode_to_mb.
22193
22194 2002-01-26  Jim Meyering  <meyering@lucent.com>
22195
22196         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
22197         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
22198
22199 2002-01-26  Jim Meyering  <meyering@lucent.com>
22200
22201         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
22202
22203 2002-01-22  Paul Eggert  <eggert@twinsun.com>
22204
22205         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
22206
22207 2002-01-22  Jim Meyering  <meyering@lucent.com>
22208
22209         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
22210         Otherwise, some versions of automake would omit the rule that makes
22211         Makefile from Makefile.in.
22212
22213 2002-01-21  Paul Eggert  <eggert@twinsun.com>
22214
22215         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
22216         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
22217         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
22218         (memcoll): Set errno to zero if there is no error.
22219
22220         * lib/quotearg.c (quotearg_buffer_restyled):
22221         Fix bug with quoting buffers containing NUL when backslashing escapes.
22222         This bug was exposed by the other changes in this patch.
22223         (quotearg_n_options): New arg ARGSIZE.
22224         All callers changed.
22225         (quoting_options_from_style): New function.
22226         (quotearg_n_style): Use it.
22227         (quotearg_n_style_mem): New function.
22228
22229         * lib/quotearg.h (quotearg_n_style_mem): New function.
22230
22231 2002-01-19  Jim Meyering  <meyering@lucent.com>
22232
22233         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
22234         Remove useless quotes: DF_PROG="df".
22235         * m4/strnlen.m4: New file.
22236
22237 2002-01-16  Paul Eggert  <eggert@twinsun.com>
22238
22239         * lib/backupfile.c (ISDIGIT): Comment fix.
22240         * lib/getdate.y (ISDIGIT): Likewise.
22241         * lib/posixtm.c (ISDIGIT, year): Likewise.
22242         * lib/strverscmp.c (ISDIGIT): Likewise.
22243         * lib/userspec.c (ISDIGIT): Likewise.
22244
22245 2002-01-16  Jim Meyering  <meyering@lucent.com>
22246
22247         * lib/getdate.y: Add three semicolons, each just before a closing
22248         brace. Bison (as of version 1.31) no longer papers over that mistake.
22249
22250 2002-01-05  Jim Meyering  <meyering@lucent.com>
22251
22252         * lib/version-etc.c (version_etc_copyright): Update copyright year.
22253
22254 2001-12-19  Paul Eggert  <eggert@twinsun.com>
22255
22256         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
22257         not silently exit merely because the output buffer happens to
22258         have nothing pending.
22259
22260 2001-12-18  Paul Eggert  <eggert@twinsun.com>
22261
22262         See the big note in ../ChangeLog.
22263         * lib/human.c (suffixes): Prefer K to k for 1024.
22264         (generate_suffix_backwards): New function.
22265         (human_readable_inexact): Use it.
22266         * lib/xstrtol.c (__xstrtol): If there is no number but there
22267         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
22268         Accept 'K' as well as 'k'.
22269
22270 2001-12-15  Jim Meyering  <meyering@lucent.com>
22271
22272         * lib/regex.h (__restrict_arr): Update from libc.
22273
22274         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
22275         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
22276         (STREQ): Define.
22277
22278 2001-12-14  Jim Meyering  <meyering@lucent.com>
22279
22280         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
22281         Suggestion from Bruno Haible.
22282
22283 2001-12-10  Jim Meyering  <meyering@lucent.com>
22284
22285         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
22286         xrealloc, Instead, include "xalloc.h".
22287         (initbuffer): Don't cast xmalloc return value to char*.
22288         (readline): Reword comment.
22289         Don't cast xrealloc return value to char*
22290         Return NULL, not 0.
22291
22292 2001-12-09  Jim Meyering  <meyering@lucent.com>
22293
22294         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
22295         about `signed and unsigned type in conditional expression'.
22296         * lib/posixtm.c (posix_time_parse): Likewise.
22297
22298         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
22299
22300         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
22301         to avoid a pedantic warning.
22302
22303         * lib/getstr.c: Don't include assert.h.
22304         (getstr): Remove warning-evoking assertions.
22305         Return -1 if offset parameter is out of bounds.
22306         Change the type of a local from int to size_t.
22307
22308         * lib/strftime.c (my_strftime_localtime_r): Include this function
22309         definition in the `#if ! HAVE_TM_GMTOFF' block.
22310
22311         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
22312         Include xalloc.h instead.
22313
22314 2001-12-02  Jim Meyering  <meyering@lucent.com>
22315
22316         * lib/tempname.c: Don't declare getenv, thus reverting the change of
22317         2001-11-18.  It's no longer necessary, now that stdlib.h is always
22318         included.
22319
22320         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
22321         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
22322
22323 2001-11-30  Akim Demaille  <akim@epita.fr>
22324
22325         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
22326         before being defined.
22327
22328 2001-11-27  Paul Eggert  <eggert@twinsun.com>
22329
22330         * lib/quotearg.h (quotearg_n, quotearg_n_style):
22331         First arg is int, not unsigned.
22332         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
22333         (SIZE_MAX, UINT_MAX): New macros.
22334         (quotearg_n_options): Abort if N is negative.
22335         Avoid overflow check on hosts where size_t is 64 bits and int
22336         is 32 bits, as overflow is impossible there.
22337         Fix off-by-one typo that caused unnecessary reallocation.
22338
22339 2001-11-27  Jim Meyering  <meyering@lucent.com>
22340
22341         * lib/tempname.c: Merge with version from libc.
22342         * lib/regex.c: Likewise.
22343
22344         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
22345         systems for which STDC_HEADERS is 0, it was not included, resulting in
22346         a warning about an integer-to-pointer conversion problem with getenv.
22347         Reported by Volker Borchert.
22348
22349 2001-11-26  Jim Meyering  <meyering@lucent.com>
22350
22351         * lib/gtod.h: Remove file.
22352         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
22353         * lib/gettimeofday.c: Don't include gtod.h.
22354         (GTOD_init): Remove function.
22355         (rpl_gettimeofday): Do its job here instead, rather than aborting.
22356         Suggestion from Volker Borchert.
22357
22358 2001-11-23  Jim Meyering  <meyering@lucent.com>
22359
22360         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
22361         it.
22362         * lib/hash.c (struct hash_table): Define it here instead.
22363
22364 2001-11-22  Jim Meyering  <meyering@lucent.com>
22365
22366         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
22367
22368 2001-11-20  Jim Meyering  <meyering@lucent.com>
22369
22370         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
22371         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
22372
22373 2001-11-19  Jim Meyering  <meyering@lucent.com>
22374
22375         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
22376         directory.  Use "conftestXXXXXX" as the template.
22377         Suggestion from Paul Eggert.
22378
22379         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
22380         immediately, so the test doesn't mistakenly hit the max-open-files
22381         limit.
22382
22383 2001-11-18  Paul Eggert  <eggert@twinsun.com>
22384
22385         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
22386         (TEMPORARIES): New macro.
22387         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
22388         removes an artificial limitation (e.g. HP-UX 10.20, where
22389         TMP_MAX is 17576).
22390
22391 2001-11-18  Jim Meyering  <meyering@lucent.com>
22392
22393         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
22394
22395 2001-11-18  Jim Meyering  <meyering@lucent.com>
22396
22397         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
22398         on SunOS 4.
22399
22400         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
22401         files will be created before anything else.
22402
22403 2001-11-17  Paul Eggert  <eggert@twinsun.com>
22404
22405         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
22406         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
22407
22408 2001-11-17  Jim Meyering  <meyering@lucent.com>
22409
22410         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
22411         Prompted by a report from Bob Proulx.
22412
22413         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
22414         Instead, require UTILS_FUNC_MKSTEMP.
22415
22416 2001-11-17  Jim Meyering  <meyering@lucent.com>
22417
22418         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
22419         Now, that's done as part of AC_FUNC_STRTOD.
22420
22421 2001-11-17  Jim Meyering  <meyering@lucent.com>
22422
22423         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
22424         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
22425         rather than group writable.  Patch by Juan F. Codagnone.
22426
22427         * lib/readtokens.c: Remove explicit declarations of xmalloc and
22428         xrealloc, Instead, include "xalloc.h".
22429
22430         * lib/mountlist.c: Include unlocked-io.h after all system headers.
22431         Remove explicit declarations of xmalloc, xrealloc,
22432         and xstrdup.  Instead, include "xalloc.h".
22433
22434         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
22435         unlocked-io.h.
22436         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
22437         Likewise.
22438         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
22439
22440         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
22441         Reported by Padraig Brady.
22442
22443         * lib/mkstemp.c: #undef mkstemp.
22444         Include config.h.
22445         (rpl_mkstemp): Rename from mkstemp.
22446         Protoize.
22447
22448 2001-11-16  Jim Meyering  <meyering@lucent.com>
22449
22450         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
22451         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
22452         determine the amount of total physical memory, use pstat_getstatic.
22453         HPUX-11 doesn't define _SC_PHYS_PAGES.
22454         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
22455         If sysconf couldn't be used to determine the amount of available
22456         physical memory, use both pstat_getstatic and pstat_getdynamic.
22457         Based on a patch from Bob Proulx.
22458
22459 2001-11-10  Jim Meyering  <meyering@lucent.com>
22460
22461         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
22462         (jm_PREREQ): Use it.
22463
22464 2001-11-09  Jim Meyering  <meyering@lucent.com>
22465
22466         * m4/jm-macros.m4: Require autoconf-2.52f.
22467         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
22468         Use these AC_-prefixed names, not the AM_-prefixed ones.
22469
22470         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
22471
22472 2001-11-05  Jim Meyering  <meyering@lucent.com>
22473
22474         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
22475
22476 2001-11-04  Jim Meyering  <meyering@lucent.com>
22477
22478         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
22479         $DEFS.
22480
22481 2001-11-03  Jim Meyering  <meyering@lucent.com>
22482
22483         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
22484         of AC_DEFUN.
22485
22486         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
22487         know the name of the variable in the macro definition.
22488
22489 2001-11-03  Jim Meyering  <meyering@lucent.com>
22490
22491         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
22492         in argmatch_to_argument call.
22493
22494         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
22495         argument.
22496
22497         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
22498         e.g., a fault due to an attempt to free a NULL pointer.
22499
22500 2001-11-01  Jim Meyering  <meyering@lucent.com>
22501
22502         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
22503         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
22504
22505 2001-11-01  Jim Meyering  <meyering@lucent.com>
22506
22507         * lib/dirfd.c, lib/dirfd.h: New files.
22508         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
22509
22510         * lib/hash.c (hash_print) [TESTING]: Clean up.
22511
22512 2001-10-22  Paul Eggert  <eggert@twinsun.com>
22513
22514         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
22515         to avoid a warning if -Wall.
22516
22517 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
22518
22519         * README: New file
22520         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
22521         (per RMS's instructions, this is now the canonical source)
22522         * lgpl/, gpl/: New directories.
22523
22524 2001-10-21  Paul Eggert  <eggert@twinsun.com>
22525
22526         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
22527
22528 2001-10-21  Jim Meyering  <meyering@lucent.com>
22529
22530         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
22531         this code would end up calling gettext even in packages built
22532         with --disable-nls.
22533         * lib/getopt.c (_): Likewise.
22534         * lib/regex.c (_): Likewise.
22535
22536 2001-10-20  Paul Eggert  <eggert@twinsun.com>
22537
22538         * m4/error.m4 (jm_PREREQ_ERROR):
22539         Do not invoke AC_CHECK_FUNCS with strerror_r, as
22540         AC_FUNC_STRERROR_R does that.
22541         Check for strerror declaration.
22542
22543         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
22544         are supposed to have them these days.
22545         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
22546         Merge changes from latest Autoconf CVS.
22547         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
22548         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
22549         POSIX decided to standardize on the int flavor of strerror_r.
22550
22551 2001-10-20  Paul Eggert  <eggert@twinsun.com>
22552
22553         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
22554         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
22555         Use strerror_r that is only a macro, even if it is not a function.
22556         (strerror): Check for HAVE_DECL_STRERROR before declaring.
22557         (private_strerror): Use prototypes, not old-style function definition.
22558         (print_errno_message): New function.
22559         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
22560         char*-flavored one.
22561         (error_tail, error, error_at_line): Use it.
22562
22563 2001-10-11  Jim Meyering  <meyering@lucent.com>
22564
22565         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
22566         and quote_n (1, ... to avoid clobbering a buffer.
22567
22568 2001-10-05  Jim Meyering  <meyering@lucent.com>
22569
22570         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
22571         hash-pjw.h.
22572         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
22573         * lib/hash-pjw.h: New file.
22574
22575 2001-09-30  Jim Meyering  <meyering@lucent.com>
22576
22577         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
22578         `struct fsstat' has the `f_fstypename' member.
22579         Use that to define FS_TYPE, which is now used to make
22580         the getfsstat link test tighter.
22581
22582 2001-09-30  Jim Meyering  <meyering@lucent.com>
22583
22584         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
22585         Include <sys/ucred.h>, for Apple Darwin.
22586         Include sys/mount.h and sys/fs_types.h only if available.
22587         (FS_TYPE): Define.
22588         (read_filesystem_list): Use FS_TYPE.
22589
22590 2001-09-29  Paul Eggert  <eggert@twinsun.com>
22591
22592         * lib/exclude.c (excluded_filename): 0 -> false, since it's
22593         a boolean context.
22594
22595 2001-09-29  Jim Meyering  <meyering@lucent.com>
22596
22597         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
22598         [one-argument getmntent function]): Include stdio.h before mntent.h.
22599         SunOS 4.1.x needs it for the declaration of `FILE'.
22600         Patch by Volker Borchert.
22601
22602         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
22603         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
22604         sys/fs_types.h, and make the link-test for getfsstat guard #include
22605         directives with appropriate #if HAVE_*_H tests so that we can
22606         detect getfsstat on Apple Darwin1.3.7 systems.
22607         Reported by Nelson Beebe.
22608         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
22609
22610 2001-09-28  Paul Eggert  <eggert@twinsun.com>
22611
22612         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
22613         #defines strtoimax.  Also treat the other strto* functions
22614         like strtoimax.
22615
22616         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
22617         Check for strtoul and strtoumax,
22618         as those declarations are made even in the signed case.
22619         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
22620         Likewise, for strtol and strtoimax.
22621
22622 2001-09-28  Paul Eggert  <eggert@twinsun.com>
22623
22624         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
22625         #defines strtoimax.  Also treat the other strto* functions
22626         like strtoimax.
22627
22628         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
22629         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
22630         (strtoimax, strtoumax): Do not declare if already defined as a macro.
22631
22632 2001-09-26  Jim Meyering  <meyering@lucent.com>
22633
22634         Most macros in unlocked-io.h had the wrong number of arguments.
22635         * lib/gen-uio: New script.
22636         (USE_UNLOCKED_IO): Define to 1 if not already defined.
22637         * lib/unlocked-io.hin: Remove file.
22638         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
22639         rather than trying to embed it here.
22640         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
22641         Reported by Padraig Brady.
22642
22643 2001-09-25  Volker Borchert  <bt@teknon.de>
22644
22645         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
22646         `result'.
22647
22648 2001-09-24  Jim Meyering  <meyering@lucent.com>
22649
22650         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
22651
22652 2001-09-23  Jim Meyering  <meyering@lucent.com>
22653
22654         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
22655         instead of the mere test for existence of mntent.h.  The latter
22656         would get a false-positive on AIX 3.4 systems.
22657         In the outer getmntent if-block, don't die if neither of the getmntent
22658         tests succeeds.  Instead, just fall through and continue with the
22659         remaining tests.
22660
22661 2001-09-23  Jim Meyering  <meyering@lucent.com>
22662
22663         * lib/mountlist.c: Remove useless parentheses in #if directives.
22664         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
22665         the deprecated MOUNTED symbol is no longer defined in mntent.h.
22666
22667 2001-09-22  Jim Meyering  <meyering@lucent.com>
22668
22669         * m4/gettext.m4: New file.  From gettext.
22670         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
22671         * m4/progtest.m4: Likewise
22672         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
22673         * m4/glibc21.m4: Likewise.
22674
22675         * m4/libintl.m4: Remove.  No longer used.
22676
22677 2001-09-22  Jim Meyering  <meyering@lucent.com>
22678
22679         * lib/localcharset.c: Update from latest gettext.
22680         * lib/config.charset: Likewise.
22681
22682 2001-09-20  Jim Meyering  <meyering@lucent.com>
22683
22684         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
22685         strtoimax.
22686         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
22687         strtoumax.
22688
22689 2001-09-20  Jim Meyering  <meyering@lucent.com>
22690
22691         * lib/xstrtol.c (strtoimax): Guard declaration with
22692         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
22693         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
22694         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
22695         (strtoumax): Likewise, for completeness (it wasn't necessary).
22696
22697 2001-09-17  Paul Eggert  <eggert@twinsun.com>
22698
22699         * lib/strtoimax.c (HAVE_LONG_LONG):
22700         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
22701         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
22702         to work around bug in IBM C compiler.
22703
22704 2001-09-17  Jim Meyering  <meyering@lucent.com>
22705
22706         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
22707         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
22708         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
22709         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
22710         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
22711         whenever the right hand side need not be expanded by the shell.
22712
22713 2001-09-16  Paul Eggert  <eggert@twinsun.com>
22714
22715         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
22716         library.  It's not correct, as some older glibcs are buggy.
22717         fnmatch wasn't fixed until glibc 2.2.
22718
22719         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
22720         special shell magic here.
22721
22722 2001-09-16  Jim Meyering  <meyering@lucent.com>
22723
22724         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
22725         * m4/jm-macros.m4: Require it.
22726
22727 2001-09-16  Jim Meyering  <meyering@lucent.com>
22728
22729         * lib/mkdir.c: New file.
22730
22731 2001-09-15  Jim Meyering  <meyering@lucent.com>
22732
22733         * m4/jm-macros.m4: Check for help2man.
22734
22735 2001-09-11  Jim Meyering  <meyering@lucent.com>
22736
22737         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
22738         The body, by Paul Eggert, was moved here from configure.in.
22739         * m4/jm-macros.m4: Require UTILS_HOST_OS.
22740
22741 2001-09-04  Paul Eggert  <eggert@twinsun.com>
22742
22743         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
22744         (jm_PREREQ): Use it.
22745
22746 2001-09-04  Paul Eggert  <eggert@twinsun.com>
22747
22748         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
22749         Use ssize_t, not int, to store result of readlink.
22750         Check for ssize_t overflow as well as size_t overflow,
22751         as POSIX says the result of readlink is implementation-defined
22752         when ssize_t overflows.
22753         Remove unnecessary cast to char*.
22754         Use free+malloc instead of realloc, as the storage doesn't need
22755         to be preserved and it's clearer and can be more efficient that way.
22756         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
22757         * lib/xreadlink.h (xreadlink): Update prototype.
22758
22759 2001-09-04  Paul Eggert  <eggert@twinsun.com>
22760
22761         * lib/xgetcwd.c: Revert some of the previous change; intead,
22762         fix the HAVE_GETCWD_NULL code to behave more like the
22763         !HAVE_GETCWD_NULL code used to.
22764
22765         Include "xalloc.h".
22766         (xgetcwd): Do not return NULL when memory is exhausted; instead,
22767         invoke xalloc_die.
22768
22769 2001-09-03  Paul Eggert  <eggert@twinsun.com>
22770
22771         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
22772         sys/param.h, as pathmax.h includes them.
22773
22774 2001-09-03  Paul Eggert  <eggert@twinsun.com>
22775
22776         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
22777         (jm_PREREQ_XGETCWD): New macro.
22778
22779         * m4/getcwd.m4: New file.
22780
22781 2001-09-03  Paul Eggert  <eggert@twinsun.com>
22782
22783         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
22784         like the HAVE_GETCWD_NULL code.
22785         Include pathmax.h if not HAVE_GETCWD.
22786         Do not include xalloc.h.
22787         (INITIAL_BUFFER_SIZE): New symbol.
22788         Do not use xmalloc / xrealloc, since the caller is responsible for
22789         handling errors.  Preserve errno around `free' during failure.
22790         Do not overrun buffer when using getwd.
22791
22792 2001-09-03  Paul Eggert  <eggert@twinsun.com>
22793
22794         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
22795         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
22796         getcwd (NULL, 0).
22797
22798 2001-09-03  Paul Eggert  <eggert@twinsun.com>
22799
22800         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
22801         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
22802         spotted by Jim Meyering.
22803
22804 2001-09-03  Jim Meyering  <meyering@lucent.com>
22805
22806         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
22807         failure.
22808
22809 2001-09-02  Jim Meyering  <meyering@lucent.com>
22810
22811         * lib/error.c: Update from GNU libc.
22812
22813 2001-09-01  Jim Meyering  <meyering@lucent.com>
22814
22815         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
22816         Used by df.
22817
22818 2001-09-01  Jim Meyering  <meyering@lucent.com>
22819
22820         * lib/xreadlink.c: New file.
22821         * lib/xreadlink.h: New file.
22822         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
22823         xreadlink.h.
22824
22825         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
22826         doesn't conflict with sparc Solaris 7's definition in
22827         /usr/include/sys/int_types.h.
22828
22829         * lib/exclude.c: Use `""', not `<>' to #include non-system header
22830         files.
22831         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
22832         and strncasecmp as r-values.  Unixware didn't have declarations.
22833
22834 2001-08-31  Paul Eggert  <eggert@twinsun.com>
22835
22836         * lib/xstrtol.h: Add copyright notice.
22837         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
22838         LONGINT_INVALID_SUFFIX_CHAR.
22839
22840 2001-08-31  Paul Eggert  <eggert@twinsun.com>
22841
22842         * lib/xstrtol.c (strtoimax): New decl.
22843
22844 2001-08-31  Paul Eggert  <eggert@twinsun.com>
22845
22846         * lib/xgetcwd.c: Don't include pathmax.h.
22847         Include stdlib.h and unistd.h if available.
22848         Include xalloc.h.
22849         (xmalloc, xstrdup, free): Remove decls.
22850         (xgetcwd): Don't assume sizes fit in unsigned.
22851         Check for overflow when computing sizes.
22852         Simplify reallocation code.
22853
22854 2001-08-31  Paul Eggert  <eggert@twinsun.com>
22855
22856         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
22857         a directory's st_size can have an arbitrary value, so the old
22858         usage could waste an arbitrary amount of memory.  All uses
22859         changed.
22860         * lib/savedir.h: Update prototype.
22861
22862 2001-08-31  Paul Eggert  <eggert@twinsun.com>
22863
22864         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
22865
22866         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
22867         old strtoimax.c.
22868
22869         Also, make the following further changes to make this file's
22870         configuration more similar to that of strtol.c:
22871         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
22872         (strtoumax, uintmax_t, strtoull, strtol): Remove.
22873         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
22874         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
22875         changed to signed values.
22876
22877         And make the following changes as well:
22878         Fix copyright notice, as 1999 was missing.
22879         (verify): New macro.
22880         (strtoimax): Check sizes at compile-time, not run-time.
22881         Prefer strtol to strtoll if both work.
22882         (main): Remove; it was not that useful and was a pain to maintain.
22883
22884         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
22885
22886 2001-08-31  Jim Meyering  <meyering@lucent.com>
22887
22888         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
22889         Use an initial, malloc'd, buffer of length 128 rather than
22890         a statically allocated one of length 1024.
22891
22892 2001-08-30  Paul Eggert  <eggert@twinsun.com>
22893
22894         Simplify code, partly by assuming autoconf 2.52 semantics.
22895
22896         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
22897
22898         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
22899         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
22900         All uses removed.
22901         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
22902         Move AC_REQUIRE to next-to-top level, to avoid confusion.
22903         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
22904         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
22905         jm_AC_HEADER_INTTYPES_H.
22906         * m4/jm-macros.m4 (jm_MACROS): Likewise.
22907
22908         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
22909
22910         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
22911         Quote first arg of AC_DEFUN.
22912         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
22913         since they are needed to parse the include file even if we need
22914         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
22915         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
22916         but with opposite signedness.
22917
22918 2001-08-30  Paul Eggert  <eggert@twinsun.com>
22919
22920         Merge 'exclude' changes from tar 1.13.22.
22921         This fixes one or two unlikely storage allocation overflow bugs,
22922         but doesn't change user-visible behavior otherwise.
22923
22924 2001-08-30  Paul Eggert  <eggert@twinsun.com>
22925
22926         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
22927         (jm_PREREQ_EXCLUDE): New macro.
22928
22929 2001-08-30  Paul Eggert  <eggert@twinsun.com>
22930
22931         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
22932         tm to be declared.
22933
22934 2001-08-30  Paul Eggert  <eggert@twinsun.com>
22935
22936         * lib/hash.c: Remove '2001' from copyright notice.
22937
22938 2001-08-30  Paul Eggert  <eggert@twinsun.com>
22939
22940         * lib/full-write.h: New file.
22941         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
22942         * lib/full-write.c: Correct credits, as cccp.c no longer
22943         exists and anyway it was so heavily changed from the old cccp
22944         code as to be unrecognizable.  Include full-write.h.
22945         (full_write) Return size_t, with short writes meaning failure.
22946         All callers changed.  This fixes a bug with large buffers
22947         on 64-bit hosts.
22948         * lib/utime.c: Include full-write.h.
22949
22950 2001-08-30  Paul Eggert  <eggert@twinsun.com>
22951
22952         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
22953         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
22954         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
22955         Include if available.
22956         (<xalloc.h>): Include
22957         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
22958         (verify): New macro.  Use it to verify that EXCLUDE macros do not
22959         collide with FNM macros.
22960         (struct patopts): New struct.
22961         (struct exclude): Use it, as exclude patterns now come with options.
22962         (new_exclude): Support above changes.
22963         (new_exclude, add_exclude_file):
22964         Initial size must now be a power of two to simplify overflow checking.
22965         (free_exclude, fnmatch_no_wildcards): New function.
22966         (excluded_filename): No longer requires options arg, as the options
22967         are determined by add_exclude.  Now returns bool, not int.
22968         (excluded_filename, add_exclude):
22969         Add support for the fancy new exclusion options.
22970         (add_exclude, add_exclude_file): Now takes int options arg.
22971         Check for arithmetic overflow when computing sizes.
22972         (add_exclude_file): xrealloc might modify errno, so don't
22973         realloc until after errno might be used.
22974
22975         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
22976         New macros.
22977         (free_exclude): New decl.
22978         (add_exclude, add_exclude_file): Now takes int options arg.
22979         (excluded_filename): No longer requires options arg, as the options
22980         are determined by add_exclude.  Now returns bool, not int.
22981
22982 2001-08-30  Paul Eggert  <eggert@twinsun.com>
22983
22984         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
22985
22986 2001-08-27  Jim Meyering  <meyering@lucent.com>
22987
22988         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
22989
22990         * lib/version-etc.c (N_): Remove definition.
22991         Revert most of last change.
22992         Instead, simply don't mark the `Copyright...' string for translation.
22993         Based on advice from Paul Eggert.
22994
22995         * lib/strtoxmax.c: Tweak comment.
22996
22997 2001-08-26  Jim Meyering  <meyering@lucent.com>
22998
22999         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
23000
23001         * m4/xstrtoimax.m4: New file.
23002         * m4/xstrtoumax.m4: Add comments explaining why we
23003         AC_REPLACE_FUNCS(strtol).
23004
23005 2001-08-26  Jim Meyering  <meyering@lucent.com>
23006
23007         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
23008         of copyright with `%s' so translators don't get an untranslated
23009         message in 2002.
23010         (COPYRIGHT_YEAR): Define.
23011         (version_etc): Use fprintf rather than fputs.
23012         Suggestion from Ulrich Drepper.
23013
23014         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
23015
23016         * lib/strtoll.c: New file, from GNU libc.
23017         * lib/xstrtoimax.c: New file.
23018
23019         * lib/xstrtol.h: Add xstrtoimax.
23020         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
23021         * lib/strtoimax.c: New file.  Likewise, but first define
23022         STRTOUXMAX_SIGNED.
23023
23024         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
23025         ...
23026         * lib/strtoxmax.c: ... then renamed to this.
23027
23028 2001-08-18  Paul Eggert  <eggert@twinsun.com>
23029
23030         * m4/inttypes.m4: Add AC_PREREQ(2.13).
23031         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
23032         (jm_AC_TYPE_INTMAX_T): New macro.
23033         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
23034
23035         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
23036
23037         * m4/longlong.m4: Renamed from ulonglong.m4.
23038         * m4/inttypes.m4: Renamed from inttypes_h.m4.
23039         * m4/uintmax_t.m4: Removed.
23040
23041 2001-08-13  Paul Eggert  <eggert@twinsun.com>
23042
23043         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
23044         Port to Solaris 8, where 'sed' requires a space after the 'r'
23045         command, and where sh dislikes "$/".  Clean up the spacing a bit.
23046         Redirect output to $tmp just once.
23047
23048 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
23049
23050         * lib/addext.c (<errno.h>): Include.
23051         (errno): Declare if not defined.
23052         (addext): Work correctly when pathconf returns -1 and leaves
23053         errno alone because there is no limit.  Also, work even if
23054         pathconf returns a value greater than SIZE_MAX.
23055
23056 2001-08-12  Jim Meyering  <meyering@lucent.com>
23057
23058         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
23059         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
23060         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
23061         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
23062         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
23063         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
23064         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
23065         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
23066         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
23067         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
23068         utime.m4, utimes.m4, xstrtoumax.m4:
23069         Quote the first argument in each use of AC_DEFUN.
23070
23071 2001-08-12  Jim Meyering  <meyering@lucent.com>
23072
23073         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
23074         Simply `return getcwd (NULL, 0);'.
23075         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
23076         Use 1300 as initial value for length, not PATH_MAX.
23077
23078         * lib/pathmax.h: Clean up cpp syntax.
23079
23080 2001-08-12  Jim Meyering  <meyering@lucent.com>
23081
23082         * lib/gettimeofday.c: New file.
23083         * lib/gtod.h: New file.
23084         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
23085
23086 2001-08-05  Jim Meyering  <meyering@lucent.com>
23087
23088         * m4/jm-macros.m4: Require autoconf-2.52.
23089
23090 2001-08-04  Jim Meyering  <meyering@lucent.com>
23091
23092         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
23093         stmt, to get in sync with glibc.
23094
23095 2001-08-03  Paul Eggert  <eggert@twinsun.com>
23096
23097         The following changes are from gettext 0.10.39 as maintained by
23098         Bruno Haible.
23099
23100         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
23101         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
23102         with inverted sense.  All uses changed.
23103
23104         * lib/mbswidth.c: Don't include <limits.h>.
23105         Include <stdlib.h> and <string.h> unconditionally.
23106         (iswcntrl, mbsinit, ISCNTRL): New macros.
23107         (mbsnwidth): Use K&R style function declarations.
23108         Don't bother checking for MB_LEN_MAX == 1, since the compiler
23109         can optimize it when MB_CUR_MAX == 1.
23110         The width of control characters is zero, not 1.
23111
23112 2001-08-03  Paul Eggert  <eggert@twinsun.com>
23113
23114         The following changes are from gettext 0.10.39 as maintained by
23115         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
23116
23117         * m4/codeset.m4: Upgrade to serial AM1.
23118         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
23119         all uses changed.  Quote first arg of AC_DEFUN.
23120         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
23121
23122         * m4/iconv.m4: Upgrade to serial AM2.
23123         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
23124         Add --with-libconv-prefix.
23125         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
23126         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
23127         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
23128         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
23129         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
23130
23131         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
23132         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
23133         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
23134         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
23135         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
23136         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
23137         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
23138         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
23139         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
23140
23141         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
23142         string.h any more.
23143
23144         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
23145         not the default value.
23146
23147         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
23148         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
23149         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
23150         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
23151         Also check for iswcntrl, used for wcwidth fallback.
23152         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
23153         to Autoconf 2.13.
23154
23155 2001-08-03  Jim Meyering  <meyering@lucent.com>
23156
23157         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
23158         as it was in the original.  Reported by Paul Eggert.
23159
23160 2001-07-16  Jim Meyering  <meyering@lucent.com>
23161
23162         * m4/gettimeofday.m4: New file.
23163         Prompted by a report from Bernhard Baehr.
23164
23165 2001-07-15  Jim Meyering  <meyering@lucent.com>
23166
23167         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
23168         stuff. Now it's in ../Makefile.cfg.
23169
23170 2001-07-15  Jim Meyering  <meyering@lucent.com>
23171
23172         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
23173         (BUILT_SOURCES): Add unlocked-io.h.
23174         (io_functions): Define.
23175         (unlocked-io.h): New rule.
23176         (DISTCLEANFILES): Add unlocked-io.h.
23177         (all-local): Depend on unlocked-io.h, to ensure it is created.
23178
23179         * lib/unlocked-io.hin: New file
23180
23181         * lib/regex.c: Update from glibc.
23182
23183 2001-07-05  Jim Meyering  <meyering@lucent.com>
23184
23185         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
23186         recommendation.
23187         (libfetish_a_SOURCES): Put all .h files here instead.
23188         Remove a thus-exposed (better checks in automake) duplicate and
23189         two unnecessary .h files.
23190
23191 2001-07-04  Jim Meyering  <meyering@lucent.com>
23192
23193         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
23194         that generates jm-glibc-io.m4 so that it doesn't trigger any make
23195         distcheck failure.
23196
23197 2001-07-02  Jim Meyering  <meyering@lucent.com>
23198
23199         The following changes were prompted by suggestions from Bruno Haible.
23200
23201         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
23202         is now generated.
23203         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
23204         definition of EXTRA_DIST.
23205         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
23206         ensure that the generated file is created/updated whenever the list
23207         of $(unlocked_functions) is changed.
23208         (jm-glibc-io.m4): New rule.
23209         (unlocked-io.h): New rule -- currently unused.
23210
23211 2001-06-24  Jim Meyering  <meyering@lucent.com>
23212
23213         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
23214         unmatched right bracket, rather than kludging it with an extra,
23215         falsely-matching quote in a comment.  Patch by Akim Demaille.
23216
23217 2001-06-11  Jim Meyering  <meyering@lucent.com>
23218
23219         * lib/regex.c: Update from GNU libc.
23220
23221 2001-05-27  Jim Meyering  <meyering@lucent.com>
23222
23223         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
23224         Check for ut_type in struct utmp.
23225
23226 2001-05-27  Jim Meyering  <meyering@lucent.com>
23227
23228         * lib/readutmp.h (UT_TYPE): Define.
23229
23230 2001-05-24  Jim Meyering  <meyering@lucent.com>
23231
23232         * lib/argmatch.c: Include "quote.h".
23233         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
23234         quote function.  Reported by Göran Uddeborg.
23235
23236 2001-05-22  Jim Meyering  <meyering@lucent.com>
23237
23238         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
23239         now that we use the package-supplied version unconditionally.
23240         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
23241
23242 2001-05-21  Jim Meyering  <meyering@lucent.com>
23243
23244         * m4/regex.m4: Change a couple backticks to single quotes to avoid
23245         shell syntax errors.
23246
23247 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
23248
23249         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
23250
23251 2001-05-20  Paul Eggert  <eggert@twinsun.com>
23252
23253         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
23254         Don't bother to check library strftime, since
23255         we'll be using our own my_strftime function anyway.
23256         Define my_strftime instead of strftime.
23257
23258 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
23259
23260         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
23261         which is not yet declared.
23262
23263 2001-05-15  Jim Meyering  <meyering@lucent.com>
23264
23265         * m4/regex.m4: Use proper quoting so brackets appear in the test
23266         program.
23267         Reported by, and with help from, Bruno Haible.
23268
23269 2001-05-13  Jim Meyering  <meyering@lucent.com>
23270
23271         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
23272         undefined.
23273
23274 2001-05-11  Paul Eggert  <eggert@twinsun.com>
23275
23276         dirname code cleanup.  base_name now behaves more compatibly
23277         with POSIX basename when given file names that have trailing
23278         slashes, and similarly for dir_name.  Add new primitives
23279         base_len and dir_len.  Put the directory-name-related decls
23280         into dirname.h.
23281
23282         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
23283         * lib/backupfile.c (base_name): Likewise.
23284         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
23285         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
23286         * lib/makepath.c (strip_trailing_slashes): Likewise.
23287         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
23288         ISSLASH): Likewise.
23289         * lib/rename.c (strip_trailing_slashes): Likewise.
23290         * lib/same.c (base_name): Likewise.
23291         * lib/stripslash.c (ISSLASH): Likewise.
23292
23293         * lib/addext.c: Include <dirname.h> after size_t is defined.
23294         * lib/backupfile.c: Likewise.
23295
23296         * lib/addext.c (addext): Use base_len to trim redundant
23297         trailing slashes instead of doing it ourselves.
23298         But do not trim the last slash if it is not redundant.
23299
23300         * lib/backupfile.c (find_backup_file_name,
23301         max_backup_version): Use base_len instead of rolling it ourselves.
23302         Handle the case of "" and (on DOS) "C:" correctly.
23303
23304         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
23305         needed. Include <string.h>, <dirname.h>.
23306         (base_name): Allow file names ending in slashes, other than names
23307         that are all slashes.  In this case, return the basename followed
23308         by the slashes.  This is more general, and can be used in places
23309         where the original base_name purposely had an assertion failure.
23310         (base_len): New function.
23311
23312         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
23313         Do not include <assert.h>; no longer needed.
23314         Include xalloc.h.
23315         (memrchr): Remove decl.
23316         (dir_name_r): Remove.
23317         (dir_len): Renamed from dirlen.  All callers changed.
23318         Rewrite in terms of base_name, for simplicity and consistency.
23319         (dir_name): Never return NULL.  All callers changed.
23320         Do not include <stdlib.h> in test program; no longer needed.
23321         return 0; is fine for test program.
23322
23323         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
23324         New macros.
23325         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
23326
23327         * lib/path-concat.c (path_concat): Use base_len to compute
23328         base length, not strlen; this means we cannot rely on memcpy
23329         to null-terminate.
23330
23331         * lib/same.c (STREQ): Remove.
23332         (same_name): Handle the case where the basename ends in trailing '/'.
23333
23334         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
23335         a slash was stripped.  Do not strip the last slash after a
23336         file system prefix.
23337
23338 2001-05-11  Paul Eggert  <eggert@twinsun.com>
23339
23340         * lib/Makefile.am (libfetish_a_SOURCES):
23341         Add strftime.c, since we now compile it on all hosts.
23342
23343         * lib/strftime.c (my_strftime):
23344         Define to nstrftime if emacs, but only if my_strftime is not defined.
23345         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
23346         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
23347         Add one more extra argument: a nanoseconds value.
23348         All uses changed.
23349         (ns): New macro.
23350         (my_strftime function): Add %N format.
23351         (emacs_strftimeu): Renamed from emacs_strftime,
23352         with extra ut argument.
23353
23354 2001-05-09  Paul Eggert  <eggert@twinsun.com>
23355
23356         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
23357
23358 2001-04-21  Jim Meyering  <meyering@lucent.com>
23359
23360         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
23361         doesn't interfere.
23362
23363 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
23364
23365         * m4/ftruncate.m4: Check for chsize.
23366         Link with ftruncate.o unconditionally if ftruncate is missing.
23367         This was required when cross-compiling to i586-mingw32msvc.
23368
23369 2001-04-08  Jim Meyering  <meyering@lucent.com>
23370
23371         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
23372         recomputed; that's necessary when the offset spans a DST transition.
23373         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
23374
23375 2001-04-02  Jim Meyering  <meyering@lucent.com>
23376
23377         * lib/regex.h, regex.c: Update from GNU libc.
23378
23379 2001-03-24  Jim Meyering  <meyering@lucent.com>
23380
23381         * m4/jm-macros.m4: Require autoconf-2.49d.
23382
23383 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
23384
23385         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
23386
23387 2001-03-19  Paul Eggert  <eggert@twinsun.com>
23388
23389         * lib/version-etc.c (version_etc_copyright): Update to 2001.
23390
23391 2001-03-17  Jim Meyering  <meyering@lucent.com>
23392
23393         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
23394         now that the version in autoconf is equivalent.
23395         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
23396
23397         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
23398         Suggestion from Akim Demaille.
23399
23400         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
23401         (jm_PREREQ_TEMPNAME): New function.
23402
23403 2001-03-16  Paul Eggert  <eggert@twinsun.com>
23404
23405         * lib/tempname.c (uint64_t): Define to uintmax_t if
23406         not defined, and if UINT64_MAX is not defined.
23407         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
23408         Reported by John David Anglin.
23409
23410 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
23411
23412         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
23413         resolve alias if codeset is empty.
23414         * lib/config.charset (BeOS): Use wildcard syntax.
23415
23416 2001-03-13  Jim Meyering  <meyering@lucent.com>
23417
23418         * lib/path-concat.c (path_concat)
23419         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
23420         concatenating e.g., `C:' and `foo'.
23421         From Bruno Haible.
23422
23423 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
23424
23425         * lib/localcharset.c (locale_charset): Don't use
23426         setlocale(LC_CTYPE,NULL). Don't return NULL.
23427         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
23428
23429 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
23430
23431         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
23432         support for DOS/DJGPP.
23433
23434 2001-03-01  Paul Eggert  <eggert@twinsun.com>
23435
23436         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
23437         lacks mkstemp.  Compile our own tempname.c if we compile our own
23438         mkstemp.c, as mkstemp relies on tempname.
23439
23440 2001-03-01  Jim Meyering  <meyering@lucent.com>
23441
23442         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
23443         AH_VERBATIM really does output its argument verbatim.
23444
23445 2001-02-28  Paul Eggert  <eggert@twinsun.com>
23446
23447         * lib/Makefile.am (libfetish_a_SOURCES):
23448         Add dup-safer.c, fopen-safer.c.
23449         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
23450
23451         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
23452         * lib/unistd-safer.h: New files.
23453
23454 2001-02-25  Paul Eggert  <eggert@twinsun.com>
23455
23456         The mkstemp replacement is taken from glibc 2.2.2, with some
23457         portability fixes for use outside glibc, as follows:
23458
23459         * lib/tempname.c (struct_stat64): New macro.
23460         (direxists, __gen_tempname): Use it.
23461         This avoids a portability problem with Solaris 8.
23462
23463         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
23464         (<stddef.h>, <stdint.h>, <string.h>):
23465         Include only if STDC_HEADERS || _LIBC.
23466         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
23467         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
23468         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
23469         (__set_errno): Define this macro if <errno.h> doesn't.
23470         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
23471         Define these macros if <stdio.h> doesn't.
23472         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
23473         Define these macros if <sys/stat.h>
23474         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
23475         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
23476         __xstat64): Define if not _LIBC.
23477         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
23478         (__gen_tempname): Invoke gettimeofday only if
23479         HAVE_GETTIMEOFDAY || _LIBC;
23480         otherwise, fall back on plain "time".
23481         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
23482
23483         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
23484
23485         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
23486
23487 2001-02-18  Paul Eggert  <eggert@twinsun.com>
23488
23489         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
23490
23491 2001-02-17  Paul Eggert  <eggert@twinsun.com>
23492
23493         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
23494         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
23495         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
23496         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
23497
23498 2001-02-17  Paul Eggert  <eggert@twinsun.com>
23499
23500         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
23501         Remove workaround macros for hosts that have mbrtowc but not
23502         mbstate_t, as we now insist on proper declarations for both
23503         before using mbrtowc.
23504
23505 2001-02-17  Jim Meyering  <meyering@lucent.com>
23506
23507         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
23508         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
23509         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
23510         UnixWare 7.1.1.
23511
23512         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
23513         rather than AC_CACHE_VAL.
23514
23515 2001-02-17  Jim Meyering  <meyering@lucent.com>
23516
23517         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
23518         around included file name.
23519
23520         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
23521
23522         * lib/strftime.c: Update from GNU libc (the only changes were to
23523         comments).
23524
23525 2001-02-17  Jim Meyering  <meyering@lucent.com>
23526
23527         * lib/regex.c: Update from libc.
23528
23529 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
23530
23531         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
23532         clash.
23533
23534 2001-02-16  Paul Eggert  <eggert@twinsun.com>
23535
23536         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
23537         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
23538         Reported by Mark Hounschell via Paul Eggert.
23539
23540 2001-02-07  Jim Meyering  <meyering@lucent.com>
23541
23542         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
23543
23544 2001-02-05  Jim Meyering  <meyering@lucent.com>
23545
23546         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
23547         it includes the patch required for `large file' support with at least
23548         HP-UX's 10.20 /bin/cc.
23549
23550 2001-02-03  Jim Meyering  <meyering@lucent.com>
23551
23552         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
23553         AS_IF, now that it works once again (mysteriously).
23554         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
23555
23556 2001-01-30  Jim Meyering  <meyering@lucent.com>
23557
23558         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
23559         * m4/chown.m4: Rename conftestchown to conftest.chown.
23560         * m4/rename.m4: s/conftestdir/conftest.d1/ and
23561         s/conftestdir2/conftest.d2/.
23562         * m4/utimes.m4: s/conftestdata/conftest.data/
23563         Inspired by Pavel Roskin's change in autoconf.
23564
23565 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
23566
23567         * lib/config.charset: Update for FreeBSD 4.2.
23568
23569 2001-01-27  Jim Meyering  <meyering@lucent.com>
23570
23571         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
23572         a use of AS_IF.
23573         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
23574
23575 2001-01-26  Jim Meyering  <meyering@lucent.com>
23576
23577         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
23578         quotearg.c includes it.
23579
23580 2001-01-26  Jim Meyering  <meyering@lucent.com>
23581
23582         * lib/quotearg.c: Include stddef.h.
23583         * lib/quote.c: Include stddef.h.
23584         Reported by Axel Kittenberger.
23585
23586         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
23587         line in double quotes so that it evokes a better diagnostic.
23588         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
23589         Reported by Axel Kittenberger.
23590
23591 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
23592
23593         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
23594         as if it was a `charset'.
23595
23596 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
23597
23598         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
23599         has const.
23600
23601 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
23602
23603         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
23604         to avoid a warning.  Add back 'const' to inptr.
23605
23606 2001-01-20  Jim Meyering  <meyering@lucent.com>
23607
23608         Be sure that headers are checked before used in code compiled
23609         for the type checks.
23610         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
23611         In place of that, invoke jm_CHECK_ALL_TYPES.
23612         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
23613         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
23614         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
23615         The check for ssize_t was mistakenly run before the test for unistd.h.
23616
23617         The configure-time check for stdbool.h was missing.
23618         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
23619         (jm_PREREQ_HASH): New function.
23620
23621 2001-01-17  Jim Meyering  <meyering@lucent.com>
23622
23623         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
23624         for autoconf-2.49c.
23625         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
23626
23627 2001-01-16  Jim Meyering  <meyering@lucent.com>
23628
23629         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
23630         From Bruno Haible.
23631
23632 2001-01-14  Jim Meyering  <meyering@lucent.com>
23633
23634         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
23635         foo and bar.  Create conftestdir/ in the script, not in the C code.
23636         Remove directories in the script, not in the C code.
23637         Remove conftestdir{,2} before trying to create the directory.
23638         Make the entire configure script fail if the mkdir fails.
23639
23640 2001-01-14  Jim Meyering  <meyering@lucent.com>
23641
23642         * lib/rename.c: New file.  From Volker Borchert.
23643         Include stdlib.h, string.h or strings.h, and xalloc.h.
23644         Use strip_trailing_slashes rather than open-coding it.
23645
23646 2001-01-03  Paul Eggert  <eggert@twinsun.com>
23647
23648         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
23649
23650 2001-01-03  Jim Meyering  <meyering@lucent.com>
23651
23652         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
23653         of local `inptr' to avoid warning with some system declarations of
23654         iconv.
23655
23656 2001-01-02  Volker Borchert  <bt@teknon.de>
23657
23658         * m4/rename.m4: New file.
23659         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
23660
23661 2001-01-01  Jim Meyering  <meyering@lucent.com>
23662
23663         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
23664         even on systems with utmpx.h.  It's necessary for the declaration of
23665         utmp's ut_user member.  Reported by Andreas Jaeger.
23666
23667         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
23668         available. They are required for the declarations of getgrgid and
23669         getpwuid resp.
23670         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
23671         Reported by Andreas Jaeger.
23672
23673 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
23674
23675         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
23676         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
23677         so `make install' also works in VPATH builds.
23678
23679 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
23680
23681         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
23682         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
23683         can be used in subdirectories.
23684
23685 2000-12-29  Paul Eggert  <eggert@twinsun.com>
23686
23687         * lib/modechange.c: Do not assume that mode_t uses the
23688         traditional octal encoding.  E.g. "chmod 1 FOO" should set
23689         the other-execute bit of FOO even if S_IXOTH != 1.
23690
23691         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
23692         WOTH, XOTH, ALLM): New macros.
23693         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
23694          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
23695         Use them.
23696         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
23697         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
23698         (mode_compile):
23699         No need to use uintmax_t; unsigned long is long enough.
23700         Don't bother to get suffix since we don't use it.
23701
23702 2000-12-26  Jim Meyering  <meyering@lucent.com>
23703
23704         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
23705         better with autoheader.
23706
23707 2000-12-24  Jim Meyering  <meyering@lucent.com>
23708
23709         * lib/hash.c (is_prime): Return explicit boolean values.
23710         (hash_get_first): Return NULL to appease Irix5.6's 89.
23711         Reported by Nelson Beebe.
23712
23713 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
23714
23715         * lib/localcharset.c (locale_charset): Add support for Win32.
23716
23717 2000-12-18  Paul Eggert  <eggert@twinsun.com>
23718
23719         * lib/physmem.h, lib/physmem.c: New files.
23720
23721         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
23722         (noinst_HEADERS): Add physmem.h.
23723
23724         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
23725         't' for compatibility with Solaris 8 sort.
23726
23727 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
23728
23729         * lib/config.charset: Add support for BeOS.
23730
23731 2000-12-17  Jim Meyering  <meyering@lucent.com>
23732
23733         * m4/dos.m4 (jm_AC_DOS): New file and macro.
23734         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
23735
23736 2000-12-16  Jim Meyering  <meyering@lucent.com>
23737
23738         This bug had a serious impact on chown: `chown N:M FILE' (for integer
23739         N and M) would have treated it like `chown N:N FILE'.
23740
23741         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
23742
23743 2000-12-16  Jim Meyering  <meyering@lucent.com>
23744
23745         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
23746         SHELLS_FILE to a file name that's useful on djgpp systems.
23747         Include stdlib.h.
23748         (ADDITIONAL_DEFAULT_SHELLS): Define.
23749         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
23750         Based mostly on a patch from Prashant TR.
23751
23752 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
23753
23754         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
23755         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
23756         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
23757
23758 2000-12-08  Andreas Schwab  <schwab@suse.de>
23759
23760         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
23761         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
23762
23763 2000-12-07  Jim Meyering  <meyering@lucent.com>
23764
23765         * lib/stripslash.c (ISSLASH): Define.
23766         (strip_trailing_slashes): Use ISSLASH rather than comparing against
23767         `/'.
23768         From Prashant TR.
23769
23770         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
23771         (dir_name_r): Declare this function as static.
23772         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
23773         manifest itself on a name containing a mix of slashes and
23774         backslashes.
23775         Make this function work with names starting with a DOS-style
23776         drive letter and colon prefix.
23777         (dir_name): Append `.' if necessary.
23778         Based mostly on patches from Prashant TR and Eli Zaretskii.
23779
23780         * lib/dirname.h (dir_name_r): Remove prototype.
23781
23782 2000-12-06  Paul Eggert  <eggert@twinsun.com>
23783
23784         * m4/off_t-format.m4: Remove this file.
23785         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
23786
23787 2000-12-06  Jim Meyering  <meyering@lucent.com>
23788
23789         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
23790         replacement strtoull, we may well need the replacement strtoul, too.
23791         Check for declarations of strtoul and strtoull.
23792         Check for strtol.  Mainly as a cue to cause automake to include
23793         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
23794         Check for limits.h -- strtol.c needs it.
23795
23796 2000-12-05  Jim Meyering  <meyering@lucent.com>
23797
23798         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
23799
23800 2000-12-04  Jim Meyering  <meyering@lucent.com>
23801
23802         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
23803         Also include memory.h, stdlib.h, unistd.h if appropriate.
23804         Reported by Andreas Jaeger (conflicting declaration of malloc).
23805
23806 2000-12-02  Jim Meyering  <meyering@lucent.com>
23807
23808         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
23809         * m4/jm-macros.m4 (jm_MACROS): require it.
23810
23811 2000-12-02  Jim Meyering  <meyering@lucent.com>
23812
23813         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
23814
23815 2000-12-01  Paul Eggert  <eggert@twinsun.com>
23816
23817         * lib/memrchr.c: Include <config.h> before any system include file.
23818
23819 2000-11-30  Jim Meyering  <meyering@lucent.com>
23820
23821         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
23822
23823 2000-11-30  Jim Meyering  <meyering@lucent.com>
23824
23825         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
23826
23827 2000-11-29  Paul Eggert  <eggert@twinsun.com>
23828
23829         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
23830
23831 2000-11-26  Jim Meyering  <meyering@lucent.com>
23832
23833         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
23834
23835 2000-11-22  Paul Eggert  <eggert@twinsun.com>
23836
23837         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
23838         size of (size_t) -1; it's not portable.
23839
23840 2000-11-17  Jim Meyering  <meyering@lucent.com>
23841
23842         * lib/strstr.c: Update from GNU libc.
23843
23844 2000-11-17  Akim Demaille  <akim@epita.fr>
23845
23846         * lib/obstack.h: Formatting changes.
23847         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
23848         prevent type checking.
23849         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
23850         cast the value to (void *): assigning a `foo *' to a `void *'
23851         variable is valid.
23852         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
23853
23854 2000-11-16  Jim Meyering  <meyering@lucent.com>
23855
23856         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
23857
23858 2000-11-11  Jim Meyering  <meyering@lucent.com>
23859
23860         * lib/error.c: Add a couple #includes, merging from GNU libc version.
23861
23862 2000-11-10  Jim Meyering  <meyering@lucent.com>
23863
23864         * lib/obstack.h: Update from GNU libc.
23865         * lib/obstack.c: Likewise.
23866
23867 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
23868
23869         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
23870
23871 2000-11-06  Paul Eggert  <eggert@twinsun.com>
23872
23873         * lib/getusershell.c (setusershell): Use rewind rather than
23874         fseek/fseeko, to avoid configuration hassles with fseeko.
23875         Don't bother opening SHELLS_FILE if shellstream is NULL;
23876         it's not necessary.
23877
23878 2000-11-05  Jim Meyering  <meyering@lucent.com>
23879
23880         * lib/makepath.h (make_dir): Declare.
23881         * lib/makepath.c (make_dir): Remove `static' attribute.
23882         Tweak a comment.
23883
23884 2000-11-04  Jim Meyering  <meyering@lucent.com>
23885
23886         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
23887
23888 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
23889
23890         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
23891         last one in a bucket, advance to the next bucket.
23892
23893 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
23894
23895         * lib/fnmatch.c: Do not comment out all the code if we are using
23896         the GNU C library, because in some cases we are replacing buggy
23897         code in the GNU C library itself.
23898
23899 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
23900
23901         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
23902         (regex_compile): Catch bogus \(\1\).
23903
23904 2000-10-30  Paul Eggert  <eggert@twinsun.com>
23905
23906         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
23907         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
23908         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
23909
23910 2000-10-30  Paul Eggert  <eggert@twinsun.com>
23911
23912         * lib/error.h, getline.h, modechange.h:
23913         Remove "2000" from Copyright line, as the file hasn't been
23914         changed this year other than in the copyright notice.
23915
23916         * lib/xalloc.h: Add "2000" to Copyright line, as this file
23917         was changed this year.
23918
23919 2000-10-29  Jim Meyering  <meyering@lucent.com>
23920
23921         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
23922         renaming.
23923         * m4/ls-mntd-fs.m4: Likewise
23924
23925 2000-10-29  Jim Meyering  <meyering@lucent.com>
23926
23927         * lib/xstat.in: Fix grammar in comment.
23928
23929 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
23930
23931         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
23932         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
23933         doesn't define __restrict_arr.
23934
23935 2000-10-28  Jim Meyering  <meyering@lucent.com>
23936
23937         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
23938         (jm_PREREQ_MEMCHR): New function.
23939
23940 2000-10-28  Jim Meyering  <meyering@lucent.com>
23941
23942         * lib/memchr.c: Update from libc.
23943         Adjust for portability:
23944         [HAVE_STDLIB_H]: Include stdlib.h.
23945         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
23946         Undef __memchr, too.
23947         [!weak_alias]: Define __memchr to memchr.
23948
23949         * lib/regex.c: Update from libc.
23950         * lib/regex.h: Likewise.
23951         * lib/getopt1.c: Likewise.
23952         * lib/memcmp.c: Likewise.
23953
23954         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
23955         Avoid using fseek, when possible -- it's broken by design.
23956         Patch by Ulrich Drepper.
23957
23958 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
23959
23960         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
23961         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
23962         Giving in to popular pressure to shut up the compiler with casts.
23963
23964 2000-10-26  Jim Meyering  <meyering@lucent.com>
23965
23966         * lib/strftime.c: Update from libc.
23967
23968 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
23969
23970         * regex.c: More `unsigned char' -> `re_char' changes.
23971         Also change several `int' into `re_wchar_t'.
23972         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
23973         (PUSH_FAILURE_POINTER): Don't cast any more.
23974         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
23975         We want GCC to complain, since this piece of code makes
23976         re_match non-reentrant, which *should* be fixed.
23977         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
23978         (EXTEND_BUFFER): Use RETALLOC.
23979         (SET_LIST_BIT): Don't cast.
23980         (re_wchar_t): New type.
23981         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
23982         that those two functions will always properly return.
23983         (IMMEDIATE_QUIT_CHECK): Cast to void.
23984         (analyse_first): Use recursion rather than an explicit stack.
23985         (re_compile_fastmap): Can't fail anymore.
23986         (re_search_2): Don't check re_compile_fastmap for failure.
23987         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
23988         Now also sets the new value (passed in a new argument).
23989         (re_match_2_internal): Use it.
23990         Also, use a new var `reg' of type size_t when looping through regs
23991         rather than reuse the inappropriate `mcnt'.
23992
23993 2000-10-25  Jim Meyering  <meyering@lucent.com>
23994
23995         * lib/obstack.c: Update from libc.
23996
23997 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
23998
23999         * regex.c (regex_compile): Change the way of handling a range from
24000         a char less than 256 to a char not less than 256.
24001
24002 2000-10-24  Andrew Innes  <andrewi@gnu.org>
24003
24004         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
24005         NT-Emacs only.
24006         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
24007         so that re_search functions only quit when callers expect them to.
24008
24009 2000-10-23  Jim Meyering  <meyering@lucent.com>
24010
24011         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
24012         wrong.  That set_locale call must not have any side effects.
24013         From Paul Eggert.
24014
24015 2000-10-22  Jim Meyering  <meyering@lucent.com>
24016
24017         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
24018         [CYCLIC]: Remove now-unused definition.
24019
24020         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
24021         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
24022         Suggestion from Ulrich Drepper.
24023
24024 2000-10-21  Jim Meyering  <meyering@lucent.com>
24025
24026         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
24027         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
24028         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
24029
24030 2000-10-21  Jim Meyering  <meyering@lucent.com>
24031
24032         * lib/dirname.c (memrchr): Declare if necessary.
24033         (dir_name): Remove the restriction that there be no
24034         trailing slashes.  Now, this code skips past them, effectively
24035         ignoring them.
24036         [TEST_DIRNAME] (main): New unit tests.
24037
24038         * lib/memrchr.c: New file from GNU libc.
24039         Undef __memrchr, too.
24040         [!weak_alias]: Define __memrchr to memrchr.
24041         Guard weak_alias use with `#ifdef weak_alias'.
24042
24043 2000-10-21  Jim Meyering  <meyering@lucent.com>
24044
24045         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
24046         (dir_name): Use dir_name_r.
24047         * lib/dirname.h (dir_name_r): Declare it.
24048
24049 2000-10-17  Jim Meyering  <meyering@lucent.com>
24050
24051         * lib/quote.h (PARAMS): Define and use.
24052         Reported by Akim Demaille.
24053
24054         * lib/getopt.c: Update from libc.
24055
24056 2000-10-16  Jim Meyering  <meyering@lucent.com>
24057
24058         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
24059         setlocale.
24060         From Jan Fedak.
24061
24062 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
24063
24064         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
24065
24066 2000-09-25  Jim Meyering  <meyering@lucent.com>
24067
24068         * lib/md5.h (rol): Define (from GnuPG).
24069
24070         * lib/sha.c: Give credit (GnuPG) where due.
24071         (M): Use rol rather than open-coding it.
24072         Add a FIXME comment.
24073
24074 2000-09-21  Jim Meyering  <meyering@lucent.com>
24075
24076         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
24077         Reported by Michael Stone.
24078
24079 2000-09-20  Jim Meyering  <meyering@lucent.com>
24080
24081         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
24082         (noinst_HEADERS): Add sha.h.
24083         Based on code from Scott G. Miller and from GnuPG.
24084
24085 2000-09-18  Jim Meyering  <meyering@lucent.com>
24086
24087         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
24088         LIBS. Otherwise, everyone ends up linking with -lelf for some
24089         configurations.
24090         Reported by Mike Stone.
24091
24092 2000-09-15  Jim Meyering  <meyering@lucent.com>
24093
24094         * lib/regex.c: Update from libc.
24095
24096 2000-09-10  Jim Meyering  <meyering@lucent.com>
24097
24098         * lib/getopt.c (_getopt_internal): Update from glibc.
24099
24100 2000-09-09  Jim Meyering  <meyering@lucent.com>
24101
24102         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
24103         think it should be used as a general replacement for isascii.
24104         * lib/fnmatch.c: Likewise.
24105         * lib/mbswidth.c: Likewise
24106         * lib/regex.c: Likewise.
24107
24108         Don't use atoi.
24109         * lib/userspec.c: Include sys/param.h and limits.h.
24110         Include xstrtol.h.
24111         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
24112         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
24113         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
24114         UID, GID.  Check range.
24115
24116 2000-09-06  Jim Meyering  <meyering@lucent.com>
24117
24118         * lib/getopt.c (_getopt_internal): Update from glibc.
24119
24120 2000-08-30  Jim Meyering  <meyering@lucent.com>
24121
24122         * lib/strftime.c: Merge in changes from GNU libc.
24123
24124 2000-08-26  Jim Meyering  <meyering@lucent.com>
24125
24126         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
24127         * m4/fpending.m4: New file.
24128
24129 2000-08-26  Jim Meyering  <meyering@lucent.com>
24130
24131         * lib/closeout.c: Include "__fpending.h".
24132         (close_stdout_status): Return right away if there's nothing to flush.
24133
24134         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
24135         * lib/__fpending.c: New file.
24136         * lib/__fpending.h: New file.
24137
24138 2000-08-20  Jim Meyering  <meyering@lucent.com>
24139
24140         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
24141         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
24142         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
24143
24144 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
24145
24146         Improve fileutils installation on systems where running
24147         programs (like install) can't be unlinked.
24148         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
24149         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
24150
24151 2000-08-07  Paul Eggert  <eggert@twinsun.com>
24152
24153         Standardize on "memory exhausted" instead of "Memory exhausted"
24154         or "virtual memory exhausted".
24155         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
24156         "virtual memory exhausted".
24157         * lib/same.c (same_name): Invoke xalloc_die instead of printing
24158         our own message.
24159         * lib/userspec.c (parse_user_spec): Likewise.
24160         * lib/bumpalloc.h: comment fix
24161         * lib/same.c, userspec.c: Include xalloc.h.
24162
24163         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
24164         not char *const and pointing to a constant array.
24165         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
24166         (xrealloc): Comment fix.
24167
24168         * lib/userspec.c (parse_user_spec):
24169         Don't translate a message until just before returning,
24170         to avoid unnecessary translation.
24171
24172 2000-08-07  Jim Meyering  <meyering@lucent.com>
24173
24174         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
24175         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
24176         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
24177         getgroups.c, gethostname.c, getopt.h, group-member.c,
24178         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
24179         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
24180         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
24181         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
24182         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
24183         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
24184         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
24185         yesno.c: Back out Copyright date changes for each file with no change
24186         this year.  This eases coordination with other programs using the same
24187         source code modules.  From Paul Eggert.
24188
24189 2000-08-06  Paul Eggert  <eggert@twinsun.com>
24190
24191         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
24192         not char, for compatibility with glibc 2.1.3 strftime.c.
24193
24194 2000-08-03  Greg McGary  <greg@mcgary.org>
24195
24196         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
24197         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
24198         (EXTEND_BUFFER): Use them.
24199
24200 2000-08-01  Jim Meyering  <meyering@lucent.com>
24201
24202         * lib/dirname.c (ISSLASH): Define.
24203         (BACKSLASH_IS_PATH_SEPARATOR): Define.
24204         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
24205         both `\' and `/' may be use as path separators.
24206         Based on a patch from Prashant TR.
24207
24208 2000-07-31  Paul Eggert  <eggert@twinsun.com>
24209
24210         * lib/quotearg.c (quotearg_n_options): Don't make the initial
24211         slot vector a constant, since it might get modified.
24212
24213 2000-07-31  Jim Meyering  <meyering@lucent.com>
24214
24215         * lib/xmalloc.c: Use `virtual memory exhausted', not
24216         `Memory exhausted'.
24217         * lib/obstack.c (print_and_abort): Likewise.
24218
24219 2000-07-30  Paul Eggert  <eggert@twinsun.com>
24220
24221         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
24222         buffer, so that the caller can always quote one small
24223         component of a "memory exhausted" message in slot 0.
24224         From a suggestion by Jim Meyering.
24225
24226 2000-07-30  Jim Meyering  <meyering@lucent.com>
24227
24228         * lib/makepath.c (make_path): Quote the other instance, too.
24229
24230         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
24231         (STATIC_BUF_SIZE): Define.
24232         (quotearg_n_options): Use only statically allocated storage when
24233         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
24234         than STATIC_BUF_SIZE.
24235
24236 2000-07-29  Jim Meyering  <meyering@lucent.com>
24237
24238         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
24239         * lib/dirname.c (dir_name): Likewise.
24240
24241         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
24242         `/'.
24243
24244         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
24245         (dir_name): Assert that there are no trailing slashes.
24246
24247 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
24248
24249         * lib/mbswidth.h (mbswidth): Add a flags argument.
24250         (mbswidth): New declaration.
24251         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
24252         * lib/mbswidth.c (mbswidth): Add a flags argument.
24253         (mbsnwidth): New function.
24254
24255 2000-07-24  Jim Meyering  <meyering@lucent.com>
24256
24257         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
24258
24259 2000-07-23  Paul Eggert  <eggert@twinsun.com>
24260
24261         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
24262
24263 2000-07-23  Paul Eggert  <eggert@twinsun.com>
24264
24265         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
24266         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
24267         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
24268         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
24269         invoke multibyte primitives.
24270
24271 2000-07-23  Paul Eggert  <eggert@twinsun.com>
24272
24273         * lib/quotearg.c:
24274         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
24275         so that mbstate_t is always defined.
24276
24277         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
24278         be 1 in at least one GCC installation, and this configuration
24279         error is likely to be common.  Ignoring MB_LEN_MAX hurts
24280         performance on hosts that have mbrtowc but have only unibyte
24281         locales, but I assume these hosts are rare.
24282
24283 2000-07-23  Paul Eggert  <eggert@twinsun.com>
24284
24285         * lib/mbswidth.c (_XOPEN_SOURCE):
24286         Don't define; this causes problems on Solaris 7.
24287         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
24288
24289 2000-07-23  Jim Meyering  <meyering@lucent.com>
24290
24291         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
24292         too: getgrgid, getpwuid, getuid.
24293
24294 2000-07-23  Jim Meyering  <meyering@lucent.com>
24295
24296         * lib/basename.c (base_name): Add an assertion.
24297
24298 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
24299
24300         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
24301         shadow its mbsinit function.
24302
24303 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
24304
24305         * lib/mbswidth.h: New file.
24306         * lib/mbswidth.c: New file.
24307         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
24308         (noinst_HEADERS): Add mbswidth.h.
24309
24310 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
24311
24312         * lib/config.charset: Add support for FreeBSD. Improve support for
24313         HP-UX and IRIX 6.
24314
24315 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
24316
24317         * m4/mbswidth.m4: New file.
24318         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
24319
24320 2000-07-15  Jim Meyering  <meyering@lucent.com>
24321
24322         * lib/makepath.c: Include quote.h.
24323         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
24324         corresponding argument in a `quote (...)' call.
24325         Give better diagnostics.
24326
24327         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
24328         (noinst_HEADERS): Add quote.h.
24329
24330         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
24331         from tar's src/misc.c.
24332         * lib/quote.h: New file.  Prototypes for same.
24333
24334 2000-07-14  Paul Eggert  <eggert@twinsun.com>
24335
24336         From a suggestion by Bruno Haible.
24337         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
24338         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
24339         to decide whether to define the BeOS workaround macro;
24340         this adjusts to the change to AC_MBSTATE_T.
24341
24342 2000-07-14  Jim Meyering  <meyering@lucent.com>
24343
24344         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
24345         jm_AC_TYPE_UINTMAX_T.
24346
24347 2000-07-13  Paul Eggert  <eggert@twinsun.com>
24348
24349         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
24350
24351         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
24352         quotearg_buffer_restyled): Add support for
24353         clocale_quoting_style.  Undo previous change to
24354         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
24355         and "{RIGHT QUOTATION MARK}" msgids.
24356
24357 2000-07-10  Paul Eggert  <eggert@twinsun.com>
24358
24359         From a suggestion by Bruno Haible.
24360         * m4/mbstate_t.m4 (AC_MBSTATE_T):
24361         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
24362         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
24363         and mbstate_t, to a single-part test that simply defines mbstate_t.
24364         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
24365         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
24366
24367 2000-07-10  Jim Meyering  <meyering@lucent.com>
24368
24369         * m4/strerror_r.m4: Mirror the correction made in autoconf.
24370
24371         * m4/gnu-source.m4: Output to confdefs.h directly.
24372         Suggestion from Akim Demaille.
24373
24374 2000-07-09  Paul Eggert  <eggert@twinsun.com>
24375
24376         The old behavior of quoting `like this' doesn't look good with
24377         newer, ISO-style fonts.  See:
24378         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
24379
24380         Instead, quote "like this" by default.  Let the translator
24381         tailor the locale-specific quoting behavior by providing
24382         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
24383
24384         * lib/quotearg.c (N_): New macro.
24385         (gettext_default): New function.
24386         (quotearg_buffer_restyled): Use
24387         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
24388         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
24389
24390 2000-07-09  Jim Meyering  <meyering@lucent.com>
24391
24392         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
24393         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
24394
24395         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
24396         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
24397
24398 2000-07-09  Jim Meyering  <meyering@lucent.com>
24399
24400         * lib/Most files: Update copyright dates to include 2000.
24401
24402 2000-07-08  Jim Meyering  <meyering@lucent.com>
24403
24404         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
24405         if not defined.
24406         (xgethostname): Remove now-unnecessary #ifdef.
24407         Move declaration of `err' into loop where it's used.
24408
24409 2000-07-05  Paul Eggert  <eggert@twinsun.com>
24410         and Bruno Haible  <haible@clisp.cons.org>
24411
24412         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
24413         only if the test for an object-type mbstate_t fails.  This
24414         prevents us from mistakenly reporting that mbstate_t is a
24415         system object type after we "#define mbstate_t int" to work
24416         around its lack.
24417
24418 2000-07-05  Paul Eggert  <eggert@twinsun.com>
24419         and Bruno Haible  <haible@clisp.cons.org>
24420
24421         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
24422
24423 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
24424
24425         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
24426         to strerror_r.
24427         Include <ctype.h> for use of isalpha.
24428
24429 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
24430
24431         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
24432         by allocating a larger buffer. Test the gethostname return value for
24433         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
24434         returns an error and ENAMETOOLONG isn't defined.
24435
24436 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
24437
24438         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
24439         dimension.
24440
24441 2000-07-04  Jim Meyering  <meyering@lucent.com>
24442
24443         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
24444         of the deprecated AC_CHECKING.
24445
24446 2000-07-04  Jim Meyering  <meyering@lucent.com>
24447
24448         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
24449         Reported by Bruno Haible.
24450
24451 2000-07-04  Jim Meyering  <meyering@lucent.com>
24452
24453         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
24454         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
24455         lacks mbrtowc.
24456
24457 2000-07-03  Paul Eggert  <eggert@twinsun.com>
24458
24459         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
24460         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
24461
24462 2000-07-03  Paul Eggert  <eggert@twinsun.com>
24463         and Bruno Haible  <haible@clisp.cons.org>
24464
24465         * lib/quotearg.c (mbrtowc):
24466         Assign to *pwc, and return 1 only if result is nonzero.
24467         (iswprint): Use ISPRINT when substituting our own mbrtowc.
24468
24469 2000-07-03  Jim Meyering  <meyering@lucent.com>
24470
24471         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
24472
24473 2000-07-03  Jim Meyering  <meyering@lucent.com>
24474
24475         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
24476         This is necessary to get a definition of e.g., UTMP_FILE on
24477         HP-UX 10.20.
24478         From Bob Proulx.
24479
24480 2000-07-02  Jim Meyering  <meyering@lucent.com>
24481
24482         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
24483
24484         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
24485         AC_LIBOBJ(function_name).
24486         * m4/chown.m4: Likewise.
24487         * m4/fnmatch.m4: Likewise.
24488         * m4/ftruncate.m4: Likewise.
24489         * m4/getgroups.m4: Likewise.
24490         * m4/getline.m4: Likewise.
24491         * m4/group-member.m4: Likewise.
24492         * m4/jm-macros.m4: Likewise.
24493         * m4/lstat.m4: Likewise.
24494         * m4/malloc.m4: Likewise.
24495         * m4/memcmp.m4: Likewise.
24496         * m4/nanosleep.m4: Likewise.
24497         * m4/putenv.m4: Likewise.
24498         * m4/realloc.m4: Likewise.
24499         * m4/regex.m4: Likewise.
24500         * m4/stat.m4: Likewise.
24501         * m4/strftime.m4: Likewise.
24502
24503 2000-07-02  Jim Meyering  <meyering@lucent.com>
24504
24505         * lib/quotearg.c (mbstate_t): Don't define here.
24506
24507 2000-07-02  Jim Meyering  <meyering@lucent.com>
24508
24509         * lib/nanosleep.c (SIGCONT): Define if not already defined.
24510
24511 2000-07-01  Jim Meyering  <meyering@lucent.com>
24512
24513         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
24514
24515 2000-07-01  Jim Meyering  <meyering@lucent.com>
24516
24517         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
24518         problem.
24519
24520 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
24521
24522         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
24523         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
24524
24525 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
24526
24527         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
24528         per change in ../m4/ls-mntd-fs.m4.
24529         (read_filesystem_list): Ignore symbolic links.
24530
24531 2000-06-29  Jim Meyering  <meyering@lucent.com>
24532
24533         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
24534         for declaration of strcmp.
24535
24536         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
24537
24538         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
24539         Avoid warning by casting result to `char *' to remove `const'.
24540
24541 2000-06-28  Jim Meyering  <meyering@lucent.com>
24542
24543         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
24544         included by quotearg.c, for which we perform this test.  From
24545         Bruno Haible.
24546
24547 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
24548
24549         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
24550         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
24551         <utmpx.h> exists, put readutmp.o into LIBOBJS.
24552
24553 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
24554
24555         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
24556
24557 2000-06-26  Paul Eggert  <eggert@twinsun.com>
24558
24559         savedir now sets errno on failure and invokes xmalloc to get memory.
24560         Fix a couple of other minor bugs while we're at it.
24561
24562         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
24563         (NAMLEN): Remove macro.
24564         (malloc, realloc): Remove decls.
24565         (stpcpy): Likewise.
24566         ("xalloc.h"): Include.
24567         (NAME_SIZE_DEFAULT): New macro.
24568         (savedir): Use xmalloc / xrealloc to allocate memory.
24569         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
24570         Skip "" directory entries.
24571         Use strlen to calculate directory entry length, since the old method
24572         is rarely used these days and isn't worth supporting.
24573         Don't use a pointer after freeing it.
24574         Check for integer overflow when calculating allocation size.
24575         Use memcpy to copy entries, instead of stpcpy.
24576         Set errno properly when returning NULL.
24577         Check for readdir error.
24578
24579 2000-06-26  Jim Meyering  <meyering@lucent.com>
24580
24581         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
24582
24583 2000-06-25  Jim Meyering  <meyering@lucent.com>
24584
24585         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
24586         Linux header bug when _XOPEN_SOURCE is defined to 500.
24587
24588 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
24589
24590         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
24591         deficiency.
24592
24593 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
24594
24595         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
24596         Include xalloc.h.
24597         Don't include <stdlib.h>.  Don't declare malloc, realloc.
24598
24599 2000-06-24  Jim Meyering  <meyering@lucent.com>
24600
24601         * m4/strerror_r.m4: Revive this file -- to try out an experimental
24602         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
24603         for which strerror does return char*, but which lacks a conveniently
24604         accessible declaration of the function.  If the compile-test says
24605         strerror_r doesn't work, then resort to a `run'-test that works on
24606         BeOS and segfaults on DEC Unix.
24607
24608 2000-06-24  Jim Meyering  <meyering@lucent.com>
24609
24610         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
24611
24612 2000-06-23  Paul Eggert  <eggert@twinsun.com>
24613
24614         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
24615         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
24616
24617 2000-06-23  Paul Eggert  <eggert@twinsun.com>
24618
24619         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
24620         (mbrtowc, mbstate_t): Define substitutes if
24621         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
24622         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
24623         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
24624
24625 2000-06-23  Jim Meyering  <meyering@lucent.com>
24626
24627         * m4/afs.m4: Add missing AC_MSG_RESULT.
24628         Reported by Bruno Haible.
24629
24630         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
24631         Suggestion from Bruno Haible.
24632
24633 2000-06-23  Jim Meyering  <meyering@lucent.com>
24634
24635         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
24636
24637 2000-06-21  Jim Meyering  <meyering@lucent.com>
24638
24639         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
24640
24641 2000-06-21  Jim Meyering  <meyering@lucent.com>
24642
24643         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
24644         (noinst_HEADERS): Add getstr.h.
24645
24646         * lib/getline.c (getstr): Move into a separate file.
24647         * lib/getstr.c (getstr): New file, extracted from getline.c, with
24648         the following changes: new parameter, delim2; both delim[12]
24649         parameters have type `int', not `char'.  The latter would lose
24650         with 8-bit delimiters.
24651         * lib/getstr.h: New file.
24652
24653 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
24654
24655         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
24656         than 1024, return a memory chunk of least possible size, instead
24657         of size PATH_MAX + 2. In the loop, increment the size proportionally.
24658         Use free/xmalloc instead of xrealloc to avoid copying for very long
24659         paths.
24660
24661 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
24662
24663         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
24664         the empty string.
24665
24666 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
24667
24668         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
24669         address, not strdup.  Include <stdlib.h> and don't declare free().
24670
24671 2000-06-19  Jim Meyering  <meyering@lucent.com>
24672
24673         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
24674
24675 2000-06-18  Jim Meyering  <meyering@lucent.com>
24676
24677         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
24678
24679         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
24680         `checking whether...' message to be consistent with that of the
24681         lstat test.
24682
24683 2000-06-18  Jim Meyering  <meyering@lucent.com>
24684
24685         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
24686         Besides, these days every porting target provides a mkdir function.
24687
24688         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
24689         needed. (this snippet comes from src/system.h).
24690
24691 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
24692
24693         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
24694
24695 2000-06-15  Paul Eggert  <eggert@twinsun.com>
24696
24697         * lib/human.c (adjust_value): New function.
24698         (human_readable_inexact): Apply rounding style even when
24699         printing approximate values.
24700
24701 2000-06-14  Paul Eggert  <eggert@twinsun.com>
24702
24703         * lib/human.c (human_readable_inexact): Allow an input block
24704         size that is not a multiple of the output block size, and vice versa.
24705         Reported by Piergiorgio Sartor.
24706
24707 2000-06-14  Paul Eggert  <eggert@twinsun.com>
24708
24709         * lib/getdate.y (get_date): Apply relative times after time
24710         zone indicator, not before.  Reported by Todd A. Jacobs.
24711
24712 2000-06-13  Jim Meyering  <meyering@lucent.com>
24713
24714         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
24715
24716         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
24717
24718 2000-06-12  Paul Eggert  <eggert@twinsun.com>
24719
24720         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
24721
24722 2000-06-12  Jim Meyering  <meyering@lucent.com>
24723
24724         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
24725         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
24726         optional argument.
24727         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
24728         the optional argument, `lib'.
24729
24730 2000-06-08  Jim Meyering  <meyering@lucent.com>
24731
24732         * m4/largefile.m4: Remove file (now that it's part of autoconf).
24733
24734 2000-06-04  Paul Eggert  <eggert@twinsun.com>
24735
24736         Rewrite largefile configuration so that we don't need to run
24737         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
24738         AC_CANONICAL_HOST in configure.in -- jmm]
24739
24740         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
24741         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
24742         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
24743         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
24744         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
24745         All uses changed.
24746         Instead of inspecting the output of getconf, try to compile the
24747         test program without and with the macro definition.
24748         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
24749         for getconf.  Instead, check for the needed flags by compiling
24750         test programs.
24751
24752 2000-06-04  Paul Eggert  <eggert@twinsun.com>
24753
24754         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
24755
24756 2000-06-04  Jim Meyering  <meyering@lucent.com>
24757
24758         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
24759         SunOS 4.1.4 for which gid_t is an unsigned type.
24760
24761 2000-06-03  Jim Meyering  <meyering@lucent.com>
24762
24763         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
24764         now that autoconf requires that.
24765
24766         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
24767         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
24768         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
24769
24770 2000-06-03  Jim Meyering  <meyering@lucent.com>
24771
24772         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
24773
24774 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
24775
24776         * m4/glibc21.m4: New file.
24777         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
24778
24779 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
24780
24781         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
24782         newer, don't install charset.alias.
24783         * lib/config.charset: Change the Linux/glibc rules so they become empty
24784         on glibc-2.1 or newer.
24785
24786 2000-06-02  Jim Meyering  <meyering@lucent.com>
24787
24788         * lib/mountlist.c: Back out last change.  Instead, do this...
24789         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
24790         me_dummy member using the same `ignore'-testing code.
24791         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
24792         fs_type strings.
24793         From Mark D. Roth.
24794
24795 2000-05-29  Jim Meyering  <meyering@lucent.com>
24796
24797         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
24798         mounts with the `ignore' attribute.  Based on a patch from
24799         Mark D. Roth.
24800
24801 2000-05-28  Jim Meyering  <meyering@lucent.com>
24802
24803         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
24804         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
24805         * m4/stat.m4: Likewise.
24806         * m4/lstat.m4: Likewise.
24807         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
24808
24809         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
24810         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
24811
24812 2000-05-26  Jim Meyering  <meyering@lucent.com>
24813
24814         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
24815
24816 2000-05-24  Jim Meyering  <meyering@lucent.com>
24817
24818         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
24819         autoconf requires that.
24820         * m4/lib-check.m4: Likewise.
24821         * m4/jm-macros.m4: Likewise.
24822         * m4/strftime.m4: Likewise.
24823
24824         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
24825         AC_CHECK_DECLS, now that autoconf requires that.
24826
24827 2000-05-22  Jim Meyering  <meyering@lucent.com>
24828
24829         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
24830         * m4/lstat.m4: Likewise.
24831
24832 2000-05-22  Jim Meyering  <meyering@lucent.com>
24833
24834         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
24835
24836 2000-05-20  Jim Meyering  <meyering@lucent.com>
24837
24838         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
24839         (jm_PREREQ): Use it.
24840
24841 2000-05-18  Jim Meyering  <meyering@lucent.com>
24842
24843         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
24844         back, too, since it may have been modified by allocate_entry.
24845         (hash_delete): Rewrite to use neither the assignment operator
24846         nor the comma operator in an if-expression.
24847
24848 2000-05-15  Paul Eggert  <eggert@twinsun.com>
24849
24850         * lib/closeout.c:
24851         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
24852         Remove; no longer needed.
24853         "quotearg.h": Add include.
24854         (file_name): Do not bother to explicitly initialize to NULL; it's less
24855         efficient on some hosts.
24856         (close_stdout_status): Remove test as to whether stdout was already
24857         closed; it breaks for the case "echo x | sort >&-".
24858         Quote file name colons.
24859         Do not assume that _("write error") lacks format strings.
24860
24861 2000-05-15  Jim Meyering  <meyering@lucent.com>
24862
24863         * lib/version-etc.c (version_etc_copyright): Update the copyright
24864         string used in all --version output.
24865
24866 2000-05-14  Jim Meyering  <meyering@lucent.com>
24867
24868         * lib/closeout.c (close_stdout_set_file_name): New function.
24869         (close_stdout_status): Use new file-scoped global.
24870         Return right away if fstat says the stdout file descriptor is invalid.
24871         * lib/closeout.h (close_stdout_set_file_name): Declare.
24872
24873 2000-05-10  Jim Meyering  <meyering@lucent.com>
24874
24875         * lib/closeout.c [default_exit_status]: New file-scoped variable.
24876         (close_stdout_set_status): New function.
24877         * lib/closeout.h (close_stdout_set_status): Declare.
24878
24879 2000-05-09  Jim Meyering  <meyering@lucent.com>
24880
24881         * m4/gettext.m4: Rename this...
24882         * m4/libintl.m4: ...to this.
24883
24884 2000-05-08  Jim Meyering  <meyering@lucent.com>
24885
24886         * lib/long-options.c: Don't include closeout.h.
24887         (parse_long_options): Don't call close_stdout for --version.
24888
24889 2000-05-06  Paul Eggert  <eggert@twinsun.com>
24890
24891         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
24892         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
24893         2.1.3 bug.  This avoids a clash when files like regex.c define
24894         _GNU_SOURCE.
24895
24896 2000-05-06  Jim Meyering  <meyering@lucent.com>
24897
24898         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
24899         (AC_REPLACE_FUNCS): Add strnlen.
24900
24901         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
24902         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
24903
24904         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
24905         AC_SEARCH_LIBS call for nanosleep.
24906         (LIB_NANOSLEEP): Set and AC_SUBST.
24907
24908 2000-05-06  Jim Meyering  <meyering@lucent.com>
24909
24910         * lib/strnlen.c: Undefine __strnlen and strnlen.
24911         [!weak_alias]: Define __strnlen to strnlen.
24912
24913         * lib/atexit.c: New file, from libiberty.
24914
24915 2000-05-06  Jim Meyering  <meyering@lucent.com>
24916
24917         * lib/closeout.c (close_stdout_status): Also check for errors on the
24918         stderr stream.
24919
24920 2000-05-05  Jim Meyering  <meyering@lucent.com>
24921
24922         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
24923         AC_SEARCH_LIBS call for clock_gettime.
24924         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
24925
24926         * m4/search-libs.m4: Update from autoconf.
24927
24928         su doesn't work on Solaris 2.6.
24929         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
24930         <shadow.h>.  Reported by Dragos Harabor.
24931
24932 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
24933
24934         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
24935         memcpy instead of xmalloc, xrealloc, path_concat.
24936         (locale_charset): Treat empty environment variables as absent.
24937         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
24938
24939 2000-05-04  Jim Meyering  <meyering@lucent.com>
24940
24941         * lib/getopt.c: Update from glibc.
24942         * lib/obstack.c: Likewise.
24943         * lib/obstack.h: Likewise.
24944         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
24945         file
24946
24947         * lib/regex.h: Likewise.
24948         * lib/strndup.c: Likewise.
24949         * lib/strnlen.c: New file, from glibc.
24950
24951 2000-05-03  Jim Meyering  <meyering@lucent.com>
24952
24953         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
24954
24955 2000-05-02  Paul Eggert  <eggert@twinsun.com>
24956
24957         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
24958         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
24959         compile-time test, rather than inspecting host and OS, to
24960         decide whether to define _LARGEFILE_SOURCE.
24961
24962 2000-05-01  Jim Meyering  <meyering@lucent.com>
24963
24964         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
24965
24966         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
24967         Based on a patch from Bruno Haible.
24968
24969 2000-05-01  Jim Meyering  <meyering@lucent.com>
24970
24971         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
24972
24973 2000-04-29  Jim Meyering  <meyering@lucent.com>
24974
24975         * lib/path-concat.c: Declare strdup only if it's not defined.
24976         * lib/canon-host.c: Likewise.
24977
24978 2000-04-28  Jim Meyering  <meyering@lucent.com>
24979
24980         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
24981         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
24982         is included first, then limits.h is included by locale.h by libintl.h.
24983         From John David Anglin.
24984
24985 2000-04-25  Jim Meyering  <meyering@lucent.com>
24986
24987         * lib/makepath.c (S_IRWXUGO): Define.
24988         (make_path): Always perform explicit chmod if MODE specifies any
24989         of the `special' permission bits.  Prompted by a bug report against
24990         install from Mate Wierdl and Joost van Baal.
24991
24992 2000-04-18  Jim Meyering  <meyering@lucent.com>
24993
24994         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
24995         (jm_PREREQ): Use it.
24996
24997 2000-04-18  Jim Meyering  <meyering@lucent.com>
24998
24999         * lib/README: New file.
25000
25001         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
25002         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
25003
25004 2000-04-17  Jim Meyering  <meyering@lucent.com>
25005
25006         Get it right :-)
25007         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
25008         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
25009         Suggestion from Akim Demaille.
25010
25011 2000-04-17  Jim Meyering  <meyering@lucent.com>
25012
25013         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
25014         the definition of it to rpl_strftime also defined-away the system's
25015         declaration.
25016
25017 2000-04-15  Jim Meyering  <meyering@lucent.com>
25018
25019         Use `C' to denote so-called `contiguous' files, the same way
25020         that tar does.
25021         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
25022         (ftypelet): Use S_ISCTG.
25023         From Michael Deutschmann.
25024
25025 2000-04-14  Jim Meyering  <meyering@lucent.com>
25026
25027         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
25028         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
25029         clobbered.
25030
25031 2000-04-14  Jim Meyering  <meyering@lucent.com>
25032
25033         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
25034
25035 2000-04-13  Jim Meyering  <meyering@lucent.com>
25036
25037         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
25038         AH_VERBATIM to insert required #ifndef into config.h.in.
25039         Suggestion from Akim Demaille.
25040
25041 2000-04-12  Jim Meyering  <meyering@lucent.com>
25042
25043         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
25044         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
25045         Christian Krackowizer.
25046
25047         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
25048         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
25049         (AC_SYS_LARGEFILE): Require.
25050         (AM_C_PROTOTYPES): Require.
25051
25052 2000-04-08  Jim Meyering  <meyering@lucent.com>
25053
25054         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
25055         names don't conflict.  Reported by Eli Zaretskii.
25056
25057 2000-04-07  Jim Meyering  <meyering@lucent.com>
25058
25059         * lib/putenv.c: Move inclusion of errno.h so it follows that of
25060         sys/types.h, to work around system header problems on AIX 3.2.5.
25061         From Bruno Haible.
25062
25063 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
25064
25065         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
25066         bug.  Deal with the different error behavior of Irix iconv.
25067
25068 2000-04-05  Paul Eggert  <eggert@twinsun.com>
25069
25070         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
25071         IRIX if the installer said otherwise.
25072
25073 2000-04-05  Jim Meyering  <meyering@lucent.com>
25074
25075         Portability tweaks required for ultrix4.3.
25076         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
25077         (jm_CHECK_DECLS): Add getutent to the list of functions.
25078         (_jm_DECL_HEADERS): Add utmpx.h.
25079         From John David Anglin.
25080
25081         * m4/strftime.m4: Back out the 2000-04-02 change.
25082         Instead of that change, simply undefine putenv in the test program.
25083
25084 2000-04-05  Jim Meyering  <meyering@lucent.com>
25085
25086         Portability tweaks required for ultrix4.3.
25087         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
25088         getutent.
25089         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
25090         * lib/canon-host.c: Declare strdup.
25091         * lib/path-concat.c: Likewise.
25092         From John David Anglin.
25093
25094 2000-04-04  Jim Meyering  <meyering@lucent.com>
25095
25096         Be more DOS 8.3-friendly.
25097         * lib/ref-add.sin: Renamed from ref-add.sed.in.
25098         * lib/ref-del.sin: Renamed from ref-del.sed.in.
25099         * lib/Makefile.am: Reflect renaming.
25100         Reported by Eli Zaretskii.
25101
25102         Use a temporary file name that won't clash with `charset.alias'
25103         in the DOS 8.3 name space.
25104         * lib/Makefile.am (charset_tmp): Define.
25105         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
25106         (uninstall-local): Likewise.
25107         Reported by Eli Zaretskii.
25108
25109 2000-04-03  Jim Meyering  <meyering@lucent.com>
25110
25111         * m4/gettext.m4: Fix typo in comment.
25112
25113         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
25114         textutils/configure.in).  Suggestion from Paul Eggert.
25115         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
25116
25117 2000-04-02  Paul Eggert  <eggert@twinsun.com>
25118
25119         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
25120         variable in the shell rather than using putenv, which isn't
25121         portable.  This avoids the configure-time inter-test dependency
25122         on the potentially-renamed putenv function.
25123
25124 2000-03-30  Paul Eggert  <eggert@twinsun.com>
25125
25126         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
25127         before checking struct stat.st_blksize, so that
25128         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
25129
25130 2000-03-29  Paul Eggert  <eggert@twinsun.com>
25131
25132         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
25133         since strftime.c uses HAVE_STRFTIME to decide whether to use
25134         the underlying strftime.
25135
25136 2000-03-29  Paul Eggert  <eggert@twinsun.com>
25137
25138         * lib/time/strftime.c (my_strftime): Make sure we call the system
25139         strftime, not ourselves, when invoking the underlying strftime.
25140
25141 2000-03-24  Jim Meyering  <meyering@lucent.com>
25142
25143         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
25144         (charset_alias): Define.
25145         (install-exec-local): Factor out common code.
25146         (uninstall-local): Split lines longer than 80.
25147         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
25148         (SUFFIXES): Define.
25149         (.sed.in.sed): New rule.  Don't redirect directly to $@.
25150         (CLEANFILES): Add ref-add.sed and ref-del.sed.
25151
25152 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
25153
25154         * lib/config.charset: Output a line containing "Packages using this
25155         file".
25156         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
25157         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
25158         ref-del.sed): New rules.
25159
25160 2000-03-17  Jim Meyering  <meyering@lucent.com>
25161
25162         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
25163         Otherwise, include <strings.h>
25164
25165 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
25166
25167         * lib/unicodeio.c (utf8_wctomb): New function.
25168         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
25169         format instead of in UCS-4 with platform dependent endianness.
25170
25171 2000-03-10  Jim Meyering  <meyering@lucent.com>
25172
25173         * m4/lib-check.m4: Look for getspnam in -lgen, too.
25174         From Marco Franzen.
25175
25176 2000-03-07  Paul Eggert  <eggert@twinsun.com>
25177
25178         * lib/savedir.c (savedir): Work even if directory size is
25179         negative; this can happen with some screwy NFS configurations.
25180
25181 2000-03-06  Jim Meyering  <meyering@lucent.com>
25182
25183         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
25184         if it's NULL (because we ran out of memory).  From Bruno Haible.
25185
25186 2000-03-05  Jim Meyering  <meyering@lucent.com>
25187
25188         * lib/localcharset.c ("path-concat.h"): Include.
25189         (get_charset_aliases): Use path_concat instead of ANSI string
25190         concatenation.
25191
25192         * lib/unicodeio.h (PARAMS): Define.
25193         Use it to guard prototype.
25194
25195 2000-03-04  Jim Meyering  <meyering@lucent.com>
25196
25197         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
25198         for lib/localcharset.c.
25199
25200 2000-03-04  Jim Meyering  <meyering@lucent.com>
25201
25202         * lib/Makefile.am (install-exec-local): Create $(libdir) before
25203         installing into it.
25204         (uninstall-local): Uncomment this rule so `make distcheck' works
25205         once again.
25206
25207         * lib/unicodeio.c (<errno.h>): Include it.
25208         (errno): Declare if not defined.
25209
25210         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
25211
25212         * lib/config.charset: New version, incorporating remarks from a linux
25213         i18n mailing list.  From Bruno Haible.
25214
25215 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
25216
25217         * m4/codeset.m4: New file.
25218         * m4/iconv.m4: New file.
25219         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
25220
25221 2000-03-03  Jim Meyering  <meyering@lucent.com>
25222
25223         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
25224
25225 2000-03-02  Jim Meyering  <meyering@lucent.com>
25226
25227         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
25228         the messages come out on separate lines.
25229
25230         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
25231         rather than jm_CHECK_DECLARATIONS.
25232         * m4/decl.m4: Remove now-unused file.
25233
25234         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
25235         geteuid.
25236
25237 2000-03-02  Jim Meyering  <meyering@lucent.com>
25238
25239         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
25240
25241 2000-03-01  Jim Meyering  <meyering@lucent.com>
25242
25243         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
25244         * lib/unicodeio.c: Likewise.
25245
25246 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
25247
25248         * lib/config.charset: New file.
25249         * lib/localcharset.c: New file.
25250         * lib/unicodeio.h, lib/unicodeio.c: New files.
25251         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
25252         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
25253         (noinst_HEADERS): Add unicodeio.h.
25254         (all-local, install-exec-local, charset.alias): New targets.
25255
25256 2000-02-28  Paul Eggert  <eggert@twinsun.com>
25257
25258         * lib/quotearg.c (ALERT_CHAR): New macro.
25259         (quotearg_buffer_restyled): Use it.
25260
25261 2000-02-27  Jim Meyering  <meyering@lucent.com>
25262
25263         * m4/check-decl.m4: Add getenv to the list.
25264
25265 2000-02-27  Jim Meyering  <meyering@lucent.com>
25266
25267         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
25268         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
25269
25270         * lib/backupfile.c: Guard inclusion of stdlib.h with
25271         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
25272         Declare malloc if needed.
25273
25274         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
25275         `#ifndef HAVE_DECL..'
25276         now that autoconf always defines the HAVE_DECL_ symbols.
25277         * lib/human.c: Likewise.
25278         * lib/same.c: Likewise.
25279         * lib/strtoumax.c: Likewise.
25280
25281         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
25282         declaration check was not run.
25283         * lib/hash.c: Likewise.
25284         * lib/human.c: Likewise.
25285         * lib/same.c: Likewise.
25286         * lib/strtoumax.c: Likewise.
25287
25288         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
25289         `.', then first look up the entire `.'-containing string as a login
25290         name.
25291
25292 2000-02-23  Jim Meyering  <meyering@lucent.com>
25293
25294         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
25295         in place of my hack.
25296
25297 2000-02-18  Paul Eggert  <eggert@twinsun.com>
25298
25299         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
25300         (textint): New typedef.
25301         (parser_control): Member year changed from int to textint.
25302         All uses changed.
25303         (YYSTYPE): Removed; replaced by %union with int and textint members.
25304         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
25305         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
25306         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
25307         (tSNUMBER, tUNUMBER): Now of type <textintval>.
25308         (date, number, to_year): Use width of number in digits, not its value,
25309         to determine whether it's a 2-digit year, or a 2-digit time.
25310         (yylex): Store number of digits of numeric tokens.
25311         Reported by John Kendall.
25312
25313         (parser_control): Changed from struct parser_control to typedef (for
25314         consistency).  All uses changed.
25315
25316         (tID): Removed; not used.
25317         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
25318
25319 2000-02-14  Paul Eggert  <eggert@twinsun.com>
25320
25321         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
25322         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
25323
25324 2000-02-12  Jim Meyering  <meyering@lucent.com>
25325
25326         * lib/userspec.c (ISDIGIT): Define it.
25327         (isdigit): Remove definition.
25328         (is_number): Use ISDIGIT, not isdigit.
25329         <libintl.h>: Include.
25330         (_ and N_): Define.
25331         (parse_user_spec): Mark translatable strings.
25332
25333 2000-02-10  Jim Meyering  <meyering@lucent.com>
25334
25335         With these changes, nanosleep.[ch] are finally enough like the other
25336         lib/* replacement files to compile on a few more losing systems.
25337
25338         * lib/nanosleep.h: Don't include config.h.
25339         Remove prototype from declaration of nanosleep.
25340         (PARAMS): Remove now-unneeded definition.
25341         * lib/nanosleep.c: #undef nanosleep.
25342         (rpl_nanosleep): Rename from nanosleep.
25343
25344 2000-02-10  Jim Meyering  <meyering@lucent.com>
25345
25346         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
25347         gnu_nanosleep to rpl_nanosleep.
25348
25349 2000-02-09  Jim Meyering  <meyering@lucent.com>
25350
25351         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
25352         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
25353
25354 2000-02-08  Akim Demaille  <akim@epita.fr>
25355
25356         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
25357         `[' and `]' and remove uses of `changequote'.
25358         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
25359         (AC_SYS_LARGEFILE): Likewise.
25360         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
25361         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
25362         of changequote.
25363         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
25364         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
25365         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
25366         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
25367
25368 2000-02-05  Jim Meyering  <meyering@lucent.com>
25369
25370         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
25371         Remove explicit use of AC_HEADER_TIME.  It is required by
25372         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
25373         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
25374         in autoconf whereby the expansion of the latter ended up preceding
25375         the expansion of its prerequisite, AC_HEADER_TIME.
25376         Reported by Volker Borchert.
25377
25378 2000-02-03  Jim Meyering  <meyering@lucent.com>
25379
25380         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
25381
25382 2000-02-03  Jim Meyering  <meyering@lucent.com>
25383
25384         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
25385         rather than with `#if HAVE_UTMPNAME'.
25386
25387 2000-02-02  Jim Meyering  <meyering@lucent.com>
25388
25389         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
25390         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
25391         Reported by Eli Zaretskii.
25392
25393 2000-02-01  Jim Meyering  <meyering@lucent.com>
25394
25395         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
25396
25397 2000-01-31  Jim Meyering  <meyering@lucent.com>
25398
25399         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
25400         functions.  Add the time.h and sys/time.h headers along with the
25401         AC_REQUIRE'ment of AC_HEADER_TIME.
25402
25403 2000-01-31  Jim Meyering  <meyering@lucent.com>
25404
25405         * lib/nanosleep.h (nanosleep): Guard declaration with
25406         `#if ! HAVE_DECL_NANOSLEEP'.
25407         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
25408         the declaration in that vendor's sys/timers.h.
25409         Reported by Christian Krackowizer.
25410
25411         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
25412         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
25413         (ISPRINT): Likewise.
25414         Reported by Tom Tromey.
25415
25416 2000-01-30  Jim Meyering  <meyering@lucent.com>
25417
25418         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
25419
25420         * m4/prereq.m4 (utmp_includes): Define.
25421         Check for ut_user and ut_name members in both struct utmpx
25422         and struct utmp.
25423
25424 2000-01-30  Jim Meyering  <meyering@lucent.com>
25425
25426         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
25427         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
25428         header files where only utmpx.ut_user is declared.
25429
25430         * lib/readutmp.h (UT_USER): Define.
25431
25432 2000-01-29  Jim Meyering  <meyering@lucent.com>
25433
25434         * m4/lib-check.m4: New file containing library-related checks from
25435         fileutils and sh-utils (textutils had none).
25436
25437 2000-01-28  Jim Meyering  <meyering@lucent.com>
25438
25439         * m4/perl.m4: Change format of warning message to look more like that
25440         from the missing script.  Suggestion from François Pinard.
25441
25442 2000-01-25  Jim Meyering  <meyering@lucent.com>
25443
25444         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
25445         well as time.h in the compile check.
25446         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
25447         Fix typo in cross-compiling case: s/yes/no/.
25448
25449 2000-01-23  Jim Meyering  <meyering@lucent.com>
25450
25451         * m4/jm-macros.m4: Move df-related tests here from
25452         fileutils/configure.in
25453
25454         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
25455         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
25456
25457         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
25458         s/space/ac_fsusage_space/.
25459         (jm_FILE_SYSTEM_USAGE): Take two parameters.
25460
25461         * m4/ftruncate.m4: New file (derived from part of
25462         fileutils/configure.in).
25463         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
25464         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
25465
25466         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
25467         AC_SUBST these here, rather than just in sh-util/configure.in, so
25468         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
25469         all the same.
25470         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
25471         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
25472         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
25473         (AC_SUBST(POW_LIBM)): Likewise.
25474         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
25475
25476 2000-01-23  Jim Meyering  <meyering@lucent.com>
25477
25478         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
25479         obstack.c.
25480
25481 2000-01-22  Jim Meyering  <meyering@lucent.com>
25482
25483         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
25484
25485         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
25486
25487         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
25488         configure.in
25489         (AC_CHECK_HEADERS): Likewise for sh-utils.
25490         (AC_CHECK_HEADERS): Likewise for textutils.
25491         Merge the three lists of headers.
25492
25493         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
25494         from fileutils' configure.in.
25495
25496         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
25497         code. Moved tests into their own function (_jm_DECL_HEADERS) in
25498         check-decl.m4.
25499
25500         * m4/check-decl.m4: Use #if rather than #ifdef.
25501         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
25502         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
25503         (_jm_DECL_HEADERS): Define new function.
25504         (jm_CHECK_DECLARATIONS): Require it.
25505
25506 2000-01-22  Jim Meyering  <meyering@lucent.com>
25507
25508         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
25509         [! HAVE_DECL_STRTOULL]: Declare strtoull.
25510         Required for some AIX systems.  Reported by Christian Krackowizer.
25511         [TESTING] (main): New function.
25512
25513         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
25514         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
25515         letters.
25516
25517         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
25518         iswprint.
25519
25520         * lib/strverscmp.c (ISDIGIT): Define.
25521         (strverscmp): Use ISDIGIT, not isdigit.
25522
25523 2000-01-19  Jim Meyering  <meyering@lucent.com>
25524
25525         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
25526         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
25527         defines `struct timespec' in <sys/time.h>
25528
25529         * m4/c-bs-a.m4: Remove uses of changequote altogether.
25530         Thanks to Akim for explaining.
25531
25532 2000-01-17  Paul Eggert  <eggert@twinsun.com>
25533
25534         * lib/nanosleep.c (nanosleep):
25535         Don't use SA_INTERRUPT to decide whether to call sigaction, as
25536         POSIX.1 doesn't require SA_INTERRUPT and some systems
25537         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
25538         it's been part of POSIX.1 since day 1 (in 1988).
25539
25540 2000-01-17  Jim Meyering  <meyering@lucent.com>
25541
25542         * lib/interlock: Remove unused file.  Reported by François Pinard.
25543
25544 2000-01-16  Paul Eggert  <eggert@twinsun.com>
25545
25546         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
25547         alert, backslash, formfeed, and vertical tab unnecessarily in
25548         shell quoting style.
25549
25550 2000-01-16  Jim Meyering  <meyering@lucent.com>
25551
25552         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
25553         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
25554         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
25555         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
25556
25557 2000-01-16  Jim Meyering  <meyering@lucent.com>
25558
25559         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
25560         because the latter didn't work.
25561
25562 2000-01-15  Jim Meyering  <meyering@lucent.com>
25563
25564         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
25565         (AC_REPLACE_FUNCS): Add memcpy and memset.
25566         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
25567         Add strpbrk.
25568         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
25569
25570 2000-01-12  Jim Meyering  <meyering@lucent.com>
25571
25572         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
25573         (jm_PREREQ): Use it.
25574         (jm_PREREQ_READUTMP): New macro.
25575         (jm_PREREQ): Use it.
25576
25577 2000-01-11  Paul Eggert  <eggert@twinsun.com>
25578
25579         Quote multibyte characters correctly.
25580         * m4/c-bs-a.m4: New file.
25581         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
25582         (jm_PREREQ): Use it.
25583
25584 2000-01-11  Paul Eggert  <eggert@twinsun.com>
25585
25586         * m4/uintmax_t.m4: Port to autoconf 2.13.
25587
25588 2000-01-08  Jim Meyering  <meyering@ascend.com>
25589
25590         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
25591         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
25592
25593 2000-01-04  Jim Meyering  <meyering@ascend.com>
25594
25595         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
25596         jm_STRUCT_DIRENT_D_TYPE.
25597         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
25598         jm_STRUCT_DIRENT_D_INO.
25599         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
25600         jm_STRUCT_UTIMBUF.
25601         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
25602         renamings.
25603         * m4/utime.m4: Likewise.
25604
25605         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
25606         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
25607
25608 2000-01-03  Paul Eggert  <eggert@twinsun.com>
25609
25610         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
25611         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
25612
25613 2000-01-02  Jim Meyering  <meyering@ascend.com>
25614
25615         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
25616         remember if this is necessary.
25617
25618 1999-12-26  Jim Meyering  <meyering@ascend.com>
25619
25620         * m4/jm-macros.m4: Use it here.
25621         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
25622
25623 1999-12-23  Jim Meyering  <meyering@ascend.com>
25624
25625         * m4/jm-macros.m4: Check for clock_gettime (moved from
25626         fileutils/configure.in)
25627         Check for gettimeofday.
25628
25629 1999-12-20  Jim Meyering  <meyering@ascend.com>
25630
25631         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
25632         autoconf-2.14a-1999-12-20.
25633
25634 1999-12-19  Jim Meyering  <meyering@ascend.com>
25635
25636         * m4/lstat-slash.m4: New file.
25637         * m4/jm-macros.m4: Use the new macro:
25638         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
25639
25640 1999-12-07  Jim Meyering  <meyering@ascend.com>
25641
25642         * m4/perl.m4: Require that File::Compare be available, too.
25643         Too many systems seem to lack it.
25644
25645         * m4/strftime.m4: Add checks for most of the cpp macros tested in
25646         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
25647
25648 1999-11-18  Paul Eggert  <eggert@twinsun.com>
25649
25650         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
25651         problem with the QNX 4.25 shell, which doesn't propagate exit
25652         status of failed commands inside shell assignments.
25653
25654 1999-11-17  Jim Meyering  <meyering@ascend.com>
25655
25656         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
25657
25658 1999-11-07  Jim Meyering  <meyering@ascend.com>
25659
25660         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
25661
25662 1999-11-06  Jim Meyering  <meyering@ascend.com>
25663
25664         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
25665         * m4/jm-macros.m4 (jm_MACROS): Use it here.
25666
25667 1999-11-05  Jim Meyering  <meyering@ascend.com>
25668
25669         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
25670         configure.in of textutils, fileutils, and sh-utils into this one
25671         (shared between those packages) file.
25672         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
25673         AC_STRUCT_ST_BLKSIZE.
25674
25675 1999-11-03  Jim Meyering  <meyering@ascend.com>
25676
25677         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
25678         of AC_CHECK_TYPE checks includes unistd.h.
25679         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
25680         Suggestion from Akim Demaille.
25681
25682 1999-10-30  Jim Meyering  <meyering@ascend.com>
25683
25684         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
25685         m4-quoted string.
25686         * m4/ls-mntd-fs.m4: Likewise.
25687         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
25688         * m4/jm-winsz1.m4: Likewise.
25689
25690         * m4/const.m4: Remove file, since the fix made it into the experimental
25691         version of autoconf.
25692         * m4/mktime.m4: Likewise.
25693
25694         * m4/check-type.m4: Remove file, now that the latest version of
25695         AC_CHECK_TYPE takes a third arg to specify additional #includes.
25696
25697         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
25698         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
25699         AC_CHECK_TYPE.
25700
25701 1999-10-04  Jim Meyering  <meyering@ascend.com>
25702
25703         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
25704
25705 1999-09-22  Paul Eggert  <eggert@twinsun.com>
25706
25707         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
25708         2.95.1 bug with HP-UX 10.20.
25709
25710 1999-09-17  Jim Meyering  <meyering@ascend.com>
25711
25712         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
25713         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
25714         due to missing strdup (against sh-utils-2.0).
25715
25716 1999-08-29  Jim Meyering  <meyering@ascend.com>
25717
25718         * m4/jm-macros.m4: Require jm_BISON.
25719         * m4/bison.m4: New file.
25720
25721 1999-08-17  Paul Eggert  <eggert@twinsun.com>
25722
25723         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
25724         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
25725
25726 1999-08-05  Jim Meyering  <meyering@ascend.com>
25727
25728         * m4/getline.m4: Rename test file from conftestdata to conftest.data
25729         to avoid conflicts with `conftest' on 8+3 filesystems.
25730         Suggestion from Eli Zaretskii.
25731
25732 1999-08-04  Jim Meyering  <meyering@ascend.com>
25733
25734         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
25735         fileutils and sh-utils (textutils's getline test was inadequate).
25736         (AM_FUNC_GETLINE): Run this test.
25737         (AC_CHECK_FUNCS): Check for getdelim.
25738         Reported by Bob Proulx.
25739
25740 1999-08-02  Jim Meyering  <meyering@ascend.com>
25741
25742         * m4/jm-macros.m4: Add a comment.
25743
25744 1999-08-01  Paul Eggert  <eggert@twinsun.com>
25745
25746         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
25747         <inttypes.h> defines strtoumax as a macro (and not as a
25748         function).
25749
25750 1999-08-01  Paul Eggert  <eggert@twinsun.com>
25751
25752         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
25753         that we can shift, multiply and divide unsigned long long
25754         values; Ultrix cc can't do it.
25755
25756 1999-08-01  Paul Eggert  <eggert@twinsun.com>
25757
25758         * m4/mktime.m4: New file, which is a preview of what should appear
25759         in the next public autoconf release.
25760
25761 1999-08-01  Paul Eggert  <eggert@twinsun.com>
25762
25763         * m4/lfs.m4: Remove this file.
25764         * m4/largefile.m4: New file.  It contains the old contents of
25765         lfs.m4, except that all names with prefix AC_LFS have been
25766         changed to use the prefix AC_SYS_LARGEFILE instead, to be
25767         compatible with future autoconf versions.  Also, some minor m4
25768         quoting problems have been fixed.
25769
25770 1999-08-01  Paul Eggert  <eggert@twinsun.com>
25771
25772         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
25773         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
25774         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
25775         and simplify the shell code.
25776
25777 1999-08-01  Jim Meyering  <meyering@ascend.com>
25778
25779         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
25780         m4.
25781
25782 1999-07-20  Jim Meyering  <meyering@ascend.com>
25783
25784         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
25785
25786 1999-07-15  Jim Meyering  <meyering@ascend.com>
25787
25788         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
25789
25790 1999-05-22  Jim Meyering  <meyering@ascend.com>
25791
25792         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
25793
25794 1999-05-20  Jim Meyering  <meyering@ascend.com>
25795
25796         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
25797         Add a colon after each `then' in case $4 is empty.
25798
25799 1999-05-16  Jim Meyering  <meyering@ascend.com>
25800
25801         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
25802
25803 1999-05-10  Jim Meyering  <meyering@ascend.com>
25804
25805         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
25806
25807         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
25808         AC_FUNC_MKTIME.
25809
25810 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
25811
25812         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
25813
25814 1999-05-04  Paul Eggert  <eggert@twinsun.com>
25815
25816         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
25817         not CPPFLAGS, so that linking works correctly in IRIX.
25818
25819 1999-04-30  Paul Eggert  <eggert@twinsun.com>
25820
25821         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
25822
25823 1999-04-20  Paul Eggert  <eggert@twinsun.com>
25824
25825         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
25826         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
25827         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
25828         jm_AC_TYPE_UNSIGNED_LONG_LONG.
25829         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
25830
25831         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
25832
25833 1999-04-20  Jim Meyering  <meyering@ascend.com>
25834
25835         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
25836         AC_REPLACE xstroull if necessary.  From Paul Eggert.
25837         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
25838
25839 1999-04-18  Jim Meyering  <meyering@ascend.com>
25840
25841         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
25842         * m4/jm-macros.m4: Use it.
25843
25844 1999-04-06  Jim Meyering  <meyering@ascend.com>
25845
25846         * m4/strftime.m4: Remove test for %f.
25847
25848 1999-03-29  Jim Meyering  <meyering@ascend.com>
25849
25850         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
25851         superset of the AC_TYPE_* checks in the textutils, fileutils,
25852         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
25853         AC_TYPE_PID_T.
25854
25855 1999-03-28  Jim Meyering  <meyering@ascend.com>
25856
25857         * m4/jm-macros.m4: Define GNU_PACKAGE here.
25858         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
25859         replaced e.g., in the *.sh files of the sh-utils.
25860
25861 1999-03-20  Jim Meyering  <meyering@ascend.com>
25862
25863         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
25864         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
25865         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
25866
25867 1999-03-19  Jim Meyering  <meyering@ascend.com>
25868
25869         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
25870
25871 1999-03-12  Jim Meyering  <meyering@ascend.com>
25872
25873         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
25874
25875 1999-03-07  Jim Meyering  <meyering@ascend.com>
25876
25877         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
25878         declared.
25879
25880 1999-02-17  Jim Meyering  <meyering@ascend.com>
25881
25882         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
25883         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
25884
25885 1999-02-07  Jim Meyering  <meyering@ascend.com>
25886
25887         * m4/group-member.m4: New file -- extracted from sh-utils'
25888         configure.in.
25889
25890         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
25891         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
25892
25893 1999-02-06  Jim Meyering  <meyering@ascend.com>
25894
25895         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
25896         * m4/fnmatch.m4: Likewise.
25897         * m4/getgroups.m4: Likewise.
25898         * m4/lstat.m4: Likewise.
25899         * m4/malloc.m4: Likewise.
25900         * m4/putenv.m4: Likewise.
25901         * m4/realloc.m4: Likewise.
25902         * m4/regex.m4: Likewise.
25903         * m4/stat.m4: Likewise.
25904         * m4/strftime.m4: Likewise.
25905         Suggestion from Alain Magloire.
25906
25907         * m4/chown.m4: Use `.$ac_objext', not `.o'.
25908         * m4/fnmatch.m4: Likewise.
25909         * m4/getgroups.m4: Likewise.
25910         * m4/getline.m4: Likewise.
25911         * m4/lstat.m4: Likewise.
25912         * m4/malloc.m4: Likewise.
25913         * m4/memcmp.m4: Likewise.
25914         * m4/putenv.m4: Likewise.
25915         * m4/realloc.m4: Likewise.
25916         * m4/regex.m4: Likewise.
25917         * m4/stat.m4: Likewise.
25918         * m4/strftime.m4: Likewise.
25919         Suggestion from Alain Magloire.
25920
25921         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
25922         an argument.
25923
25924         * m4/regex.m4: Add a run-time Test for proper operation of
25925         re_compile_pattern.
25926
25927 1999-01-31  Jim Meyering  <meyering@ascend.com>
25928
25929         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
25930
25931 1999-01-30  Jim Meyering  <meyering@ascend.com>
25932
25933         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
25934
25935         * m4/jm-mktime.m4: Make this a wrapper around the official
25936         AM_FUNC_MKTIME rather than my private copy, now that the official one
25937         is up to date.
25938         * m4/mktime.m4: Remove file.
25939
25940         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
25941         * m4/uptime.m4: Likewise.
25942         * m4/uintmax_t.m4: Likewise.
25943
25944 1999-01-28  Jim Meyering  <meyering@ascend.com>
25945
25946         * m4/jm-macros.m4: Use jm_AFS.
25947         * m4/afs.m4: New file (from fileutils' configure.in).
25948
25949         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
25950         * m4/chown.m4: Likewise.
25951         * m4/d-ino.m4: Likewise.
25952         * m4/d-type.m4: Likewise.
25953         * m4/fnmatch.m4: Likewise.
25954         * m4/getgroups.m4: Likewise.
25955         * m4/gettext.m4: Likewise.
25956         * m4/jm-mktime.m4: Likewise.
25957         * m4/jm-winsz2.m4: Likewise.
25958         * m4/lcmessage.m4: Likewise.
25959         * m4/ls-mntd-fs.m4: Likewise.
25960         * m4/malloc.m4: Likewise.
25961         * m4/memcmp.m4: Likewise.
25962         * m4/putenv.m4: Likewise.
25963         * m4/realloc.m4: Likewise.
25964         * m4/st_mtim.m4: Likewise.
25965         * m4/strftime.m4: Likewise.
25966
25967 1999-01-16  Jim Meyering  <meyering@ascend.com>
25968
25969         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
25970         (ARGMATCH_DIE_DECL): Define.
25971
25972 1999-01-12  Jim Meyering  <meyering@ascend.com>
25973
25974         * m4/Makefile.am.in: Rewrite to avoid using fmt.
25975         Reported by Lars Hecking.
25976
25977 1999-01-10  Jim Meyering  <meyering@ascend.com>
25978
25979         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
25980         gross kludge.
25981         * m4/inttypes_h.m4: Likewise.
25982         * m4/lstat.m4: Likewise.
25983         * m4/malloc.m4: Likewise.
25984         * m4/readdir.m4: Likewise.
25985         * m4/realloc.m4: Likewise.
25986         * m4/st_dm_mode.m4: Likewise.
25987         * m4/stat.m4: Likewise.
25988         * m4/utimbuf.m4: Likewise.
25989         * m4/utimes.m4: Likewise.
25990
25991         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
25992         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
25993         comments in config.h.in are meaningful.
25994
25995         * m4/jm-macros.m4: Require autoconf-2.13 here.
25996
25997         * m4/regex.m4: By default, don't use the included regex.c on systems
25998         with glibc 2.  Suggestion from Uli Drepper.
25999
26000 1999-01-02  Jim Meyering  <meyering@ascend.com>
26001
26002         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
26003
26004 1998-12-18  Jim Meyering  <meyering@ascend.com>
26005
26006         * m4/Makefile.am.in (Makefile.am): Simplify rule.
26007         Based on a suggestion from Lars Hecking.
26008
26009 1998-11-16  Paul Eggert  <eggert@twinsun.com>
26010
26011         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
26012
26013 1998-11-16  Jim Meyering  <meyering@ascend.com>
26014
26015         * m4/lfs.m4: Double-quote the `uname...` expression.
26016
26017 1998-11-14  Jim Meyering  <meyering@ascend.com>
26018
26019         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
26020         * m4/stat.m4: Likewise.
26021
26022 1998-11-03  Jim Meyering  <meyering@ascend.com>
26023
26024         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
26025         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
26026
26027 1998-10-18  Jim Meyering  <meyering@ascend.com>
26028
26029         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
26030
26031 1998-10-17  Jim Meyering  <meyering@ascend.com>
26032
26033         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
26034         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
26035         calls for those previously hard-coded headers.  Instead, take a new
26036         parameter.
26037         (jm_CHECK_DECLARATIONS): Reflect interface change.
26038         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
26039         (jm_CHECK_DECL_LOCALTIME_R): New macro.
26040
26041         * m4/mktime.m4: Test for spring-forward gap before long-running test.
26042
26043 1998-10-14  Jim Meyering  <meyering@ascend.com>
26044
26045         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
26046         instead of "TZ=America/Vancouver".  From Paul Eggert.
26047
26048 1998-10-11  Jim Meyering  <meyering@ascend.com>
26049
26050         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
26051         This adds a test for a recently added compatibility fix for mktime.c.
26052         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
26053
26054 1998-09-27  Jim Meyering  <meyering@ascend.com>
26055
26056         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
26057
26058         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
26059         ../configure.in, including a change from Gordon Matzigkeit to allow
26060         cross-compiling for the Hurd.
26061
26062         * m4/glibc.m4: New file/macro to test for the GNU C Library
26063         versions 1 and 2.  From Gordon Matzigkeit.
26064         Indent.
26065
26066 1998-09-21  Jim Meyering  <meyering@ascend.com>
26067
26068         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
26069
26070 1998-08-18  Paul Eggert  <eggert@twinsun.com>
26071
26072         Port nanosecond-resolution times to UnixWare 2.1.2 and
26073         pedantic Solaris 2.6.
26074
26075         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
26076         AC_STRUCT_ST_MTIM.
26077         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
26078         Generate name of ns member, instead of just 1 or undef.
26079         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
26080
26081 1998-08-15  Jim Meyering  <meyering@ascend.com>
26082
26083         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
26084         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
26085         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
26086         instead of jm_TYPE_SSIZE_T.
26087
26088 1998-08-12  Jim Meyering  <meyering@ascend.com>
26089
26090         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
26091
26092 1998-08-02  Jim Meyering  <meyering@ascend.com>
26093
26094         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
26095         in acconfig.h manually.
26096
26097 1998-07-31  Paul Eggert  <eggert@twinsun.com>
26098
26099         * m4/st_mtim.m4: New file.
26100
26101 1998-07-28  Jim Meyering  <meyering@ascend.com>
26102
26103         * m4/utimes.m4: Undef stat.
26104
26105 1998-07-25  Jim Meyering  <meyering@ascend.com>
26106
26107         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
26108         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
26109
26110 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
26111
26112         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
26113         uid and gid actually remain unchanged.
26114
26115 1998-07-07  Jim Meyering  <meyering@ascend.com>
26116
26117         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
26118
26119 1998-07-04  Jim Meyering  <meyering@ascend.com>
26120
26121         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
26122         to prove that this macro can be used in packages without regex.c.
26123
26124 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
26125
26126         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
26127         is to be used.
26128
26129 1998-07-03  Jim Meyering  <meyering@ascend.com>
26130
26131         * m4/gettext.m4: Add -lintl if it's found to be necessary.
26132
26133         * m4/gettext.m4: New file -- from gettext-0.10.35.
26134         * m4/lcmessage.m4: Likewise.
26135         * m4/progtest.m4: Likewise.
26136
26137         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
26138         * m4/jm-macros.m4: Require the new macro.
26139
26140 1998-06-29  Jim Meyering  <meyering@ascend.com>
26141
26142         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
26143         for the definition of NGROUPS (used in a system header included
26144         by sys/mount.h).
26145
26146 1998-06-28  Jim Meyering  <meyering@ascend.com>
26147
26148         * m4/ls-mntd-fs.m4: New file.
26149         * m4/fstypename.m4: New file.
26150
26151         * m4/jm-macros.m4: Require the new macro.
26152         * m4/jm-glibc-io.m4: New file.
26153
26154 1998-05-19  Jim Meyering  <meyering@ascend.com>
26155
26156         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
26157         * m4/lchown.m4: New file.
26158
26159         * m4/Makefile.am.in: New file.
26160         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
26161
26162 1998-05-14  Jim Meyering  <meyering@ascend.com>
26163
26164         * m4/Makefile.am (EXTRA_DIST): Add them.
26165         * m4/jm-macros.m4: New file.
26166         * m4/utimbuf.m4: New file.
26167
26168 1998-05-12  Jim Meyering  <meyering@ascend.com>
26169
26170         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
26171
26172 1998-05-11  Jim Meyering  <meyering@ascend.com>
26173
26174         * m4/isc-posix.m4: New file.
26175
26176 1998-05-10  Jim Meyering  <meyering@ascend.com>
26177
26178         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
26179
26180 1998-05-09  Jim Meyering  <meyering@ascend.com>
26181
26182         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
26183         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
26184         with automake.
26185
26186         * m4/ssize_t.m4: New file.
26187         * m4/mktime.m4: Remove file -- the new automake has this now.
26188
26189 1998-04-26  Jim Meyering  <meyering@ascend.com>
26190
26191         * m4/assert.m4: New file.
26192         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
26193
26194 1998-04-05  Jim Meyering  <meyering@ascend.com>
26195
26196         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
26197         (jm_PREREQ): Use it here.
26198
26199 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
26200
26201         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
26202         in acconfig.h.
26203
26204 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
26205
26206         * m4/prereq.m4: New file.
26207         * m4/error.m4: New file.
26208         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
26209
26210 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
26211
26212         * m4/getline.m4: Don't set am_cv_func_working_getline before the
26213         cache-check for the same variable -- that defeated the purpose of
26214         the test; the test program was never run.  This was a problem only
26215         on systems with losing getline functions -- HP-UX 10.20 is one.
26216         Reported by Bjorn Helgaas.
26217
26218 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
26219
26220         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
26221
26222 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
26223
26224         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
26225
26226         * m4/const.m4: New file.  Use an initializer in this declaration
26227         typedef int charset[2]; const charset x;
26228         Reported by Bob Glickstein.
26229
26230 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
26231
26232         * m4/chown.m4: Fix reversed types on -1 args to chown.
26233         From Kaveh Ghazi.
26234
26235 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
26236
26237         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
26238         Add lseek and memchr.
26239
26240         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
26241         T.E.Dickey <dickey@clark.net> said that some older preprocessors
26242         have a 20-character limit on names.
26243
26244 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
26245
26246         * m4/inttypes_h.m4: New file.
26247         * m4/uintmax_t.m4: New file.
26248         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
26249
26250 Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
26251   Free Software Foundation, Inc.
26252 Copying and distribution of this file, with or without modification,
26253 are permitted provided the copyright notice and this notice are preserved.