New module 'mbscasestr'. Reduced goal of 'strcasestr'.
[gnulib.git] / ChangeLog
1 2007-02-04  Bruno Haible  <bruno@clisp.org>
2
3         New module mbscasestr, reduced goal of strcasestr.
4         * modules/mbscasestr: New file.
5         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
6         (mbscasestr): Renamed from strcasestr.
7         * lib/strcasestr.c: Don't include mbuiter.h.
8         (strcasestr): Remove support for multibyte locales.
9         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
10         Change the conditional link warning.
11         (mbscasestr): New declaration.
12         * m4/mbscasestr.m4: New file.
13         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
14         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
15         REPLACE_STRCASESTR.
16         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
17         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
18         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
19         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
20         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
21         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
22
23 2007-02-04  Bruno Haible  <bruno@clisp.org>
24
25         Simplify handling of strncasecmp.
26         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
27         the conditional link warning.
28         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
29         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
30         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
31         * modules/strcase (configure.ac): Don't invoke
32         gl_STRING_MODULE_INDICATOR.
33         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
34
35 2007-02-04  Bruno Haible  <bruno@clisp.org>
36
37         New module mbscasecmp, reduced goal of strcasecmp.
38         * modules/mbscasecmp: New file.
39         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
40         (mbscasecmp): Renamed from strcasecmp.
41         * lib/strcasecmp.c: Don't include mbuiter.h.
42         (strcasecmp): Remove support for multibyte locales.
43         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
44         Change the conditional link warning.
45         (mbscasecmp): New declaration.
46         * m4/mbscasecmp.m4: New file.
47         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
48         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
49         REPLACE_STRCASECMP.
50         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
51         GNULIB_MBSCASECMP.
52         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
53         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
54         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
55
56 2007-02-04  Bruno Haible  <bruno@clisp.org>
57
58         New module mbsstr. Remove module strstr.
59         * modules/mbsstr: New file.
60         * modules/strstr: Remove file.
61         * lib/mbsstr.c: Renamed from lib/strstr.c.
62         (mbsstr): Renamed from strstr.
63         * lib/string_.h (strstr): Remove declaration. Change the conditional
64         link warning.
65         (mbsstr): New declaration.
66         * m4/mbsstr.m4: New file.
67         * m4/strstr.m4: Remove file.
68         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
69         REPLACE_STRSTR.
70         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
71         Don't initialize GNULIB_STRSTR.
72         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
73         substitute GNULIB_STRSTR and REPLACE_STRSTR.
74         * MODULES.html.sh (Internationalization functions): Add mbsstr.
75         (Support for systems lacking ANSI C 89): Remove strstr.
76
77 2007-02-04  Bruno Haible  <bruno@clisp.org>
78
79         New module mbsrchr.
80         * modules/mbsrchr: New file.
81         * lib/mbsrchr.c: New file.
82         * lib/string_.h (strrchr): Add a conditional link warning.
83         (mbsrchr): New declaration.
84         * m4/mbsrchr.m4: New file.
85         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
86         GNULIB_MBSRCHR.
87         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
88         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
89
90 2007-02-04  Bruno Haible  <bruno@clisp.org>
91
92         New module mbschr.
93         * modules/mbschr: New file.
94         * lib/mbschr.c: New file.
95         * lib/string_.h (strchr): Add a conditional link warning.
96         (mbschr): New declaration.
97         * m4/mbschr.m4: New file.
98         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
99         GNULIB_MBSCHR.
100         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
101         * MODULES.html.sh (Internationalization functions): Add mbschr.
102
103 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
104
105         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
106
107         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
108
109 2007-02-04  Bruno Haible  <bruno@clisp.org>
110
111         New module description section 'configure.ac-early'.
112         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
113         (func_get_autoconf_early_snippet): New function.
114         (func_import, func_create_testdir): Use it. Remove special cases for
115         modules 'extensions' and 'lock'.
116         * modules/extensions (configure.ac-early): Require
117         gl_USE_SYSTEM_EXTENSIONS.
118         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
119
120 2007-02-04  Bruno Haible  <bruno@clisp.org>
121
122         Make use of gcj-4.3's -fsource and -ftarget option.
123         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
124         and if so try the options -fsource and -ftarget.
125         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
126         source_version, ftarget_option, target_version arguments.
127         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
128         (is_envjavac_oldgcj_14_14_usable): Renamed from
129         is_envjavac_gcj_14_14_usable.
130         (is_envjavac_oldgcj_14_13_usable): Renamed from
131         is_envjavac_gcj_14_13_usable.
132         (is_gcj_present): Update.
133         (is_gcj_43, is_gcj43_usable): New functions.
134         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
135         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
136         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
137         try the options -fsource and -ftarget.
138
139 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
140
141         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
142         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
143         larger value.
144
145 2007-02-03  Jim Meyering  <jim@meyering.net>
146
147         Give tools a better chance to allocate space for very large buffers.
148         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
149
150         Make pwd and readlink work also when run with an unreadable parent dir
151         on systems with openat support.
152         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
153         provided getcwd function, even when we have openat support.
154         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
155
156 2007-02-02  Bruno Haible  <bruno@clisp.org>
157
158         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
159         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
160         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
161         portability problems if one of these functions is only used on specific
162         platforms.
163         Reported by Paul Eggert.
164
165 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
166
167         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
168         is causing more trouble than it's curing.
169         * lib/regex_internal.h (__mempcpy): Remove.
170         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
171         (and make the code a tad smaller to boot).
172         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
173
174 2007-02-02  Jim Meyering  <jim@meyering.net>
175
176         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
177         section, not in the Makefile.am: one.
178
179 2007-02-02  Eric Blake  <ebb9@byu.net>
180
181         * lib/strchrnul.c: Always include config.h first.
182
183         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
184         gnulib strstr is not necessary here.
185
186 2007-02-02  Simon Josefsson  <simon@josefsson.org>
187
188         * m4/socklen.m4: Fix typo.
189
190 2007-02-02  Eric Blake  <ebb9@byu.net>
191
192         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
193         * modules/netinet_in (Makefile.am): Likewise.
194
195 2007-02-01  Bruno Haible  <bruno@clisp.org>
196
197         * lib/string_.h (GL_LINK_WARNING): New macro.
198         (strcasecmp, strstr, strcasestr): If provided by the system,
199         conditionally define as a macro that leads to a warning instead of to
200         an error.
201         (strncasecmp): Conditionally define as a macro that leads to a warning.
202
203 2007-02-01  Jim Meyering  <jim@meyering.net>
204
205         Give tools a better chance to allocate space for very large buffers.
206         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
207
208 2007-02-01  Karl Berry  <karl@gnu.org>
209
210         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
211
212 2007-02-01  Bruno Haible  <bruno@clisp.org>
213
214         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
215         renamings.
216
217 2007-02-01  Eric Blake  <ebb9@byu.net>
218
219         * modules/regex (Depends-on): Revert dependence on mempcpy.
220         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
221         module's definition of mempcpy.
222         Reported by Paul Eggert.
223
224 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
225
226         * lib/string_.h: If the gnulib module XYZ is not present, undefine
227         the symbol XYZ before redefining it.  This fixes a problem with
228         programs that don't use XYZ, when compiled on systems that define
229         XYZ to something else.
230
231 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
232
233         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
234         occurs when "mkdir -m foo" creates a setgid directory that is (1)
235         writeable to group or other and (2) is intended to have a special
236         mode bit that is set or cleared.  In such a case, the directory
237         should be neither group- nor other-writeable until the special
238         mode bits are right.
239
240 2007-01-31  Eric Blake  <ebb9@byu.net>
241
242         * modules/mountlist (Depends-on): Add strstr.
243
244         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
245         bug.
246         * modules/string (Makefile.am): Remove redundant replacement.
247         * modules/regex (Depends-on): Add mempcpy.
248
249 2007-01-31  Bruno Haible  <bruno@clisp.org>
250
251         New module description field 'Link'.
252         * gnulib-tool (func_usage): Document --extract-link-directive.
253         (sed_extract_prog): Recognize 'Link' directive.
254         (func_get_link_directive): New function.
255         (func_import): Show summary of link directives.
256         Handle --extract-link-directive option.
257         * modules/acl (Link): New section.
258         * modules/clock-time (Link): New section.
259         * modules/euidaccess (Link): New section.
260         * modules/gettext (Link): New section.
261         * modules/iconv (Link): New section.
262         * modules/lock (Link): New section.
263         * modules/nanosleep (Link): New section.
264         * modules/readline (Link): New section.
265
266 2007-01-27  Bruno Haible  <bruno@clisp.org>
267
268         Enforce the use of gnulib modules for unportable <string.h> functions.
269         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
270         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
271         (gl_HEADER_STRING_H_BODY): Require it.
272         * lib/string_.h: If the gnulib module XYZ is not present, redefine
273         the symbol XYZ to one that gives a link error.
274         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
275         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
276         * modules/mempcpy (configure.ac): Likewise.
277         * modules/memrchr (configure.ac): Likewise.
278         * modules/stpcpy (configure.ac): Likewise.
279         * modules/stpncpy (configure.ac): Likewise.
280         * modules/strcase (configure.ac): Likewise.
281         * modules/strcasestr (configure.ac): Likewise.
282         * modules/strchrnul (configure.ac): Likewise.
283         * modules/strdup (configure.ac): Likewise.
284         * modules/strndup (configure.ac): Likewise.
285         * modules/strnlen (configure.ac): Likewise.
286         * modules/strpbrk (configure.ac): Likewise.
287         * modules/strsep (configure.ac): Likewise.
288         * modules/strstr (configure.ac): Likewise.
289         * modules/strtok_r (configure.ac): Likewise.
290
291 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
292
293         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
294
295 2007-01-30  Jim Meyering  <jim@meyering.net>
296
297         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
298
299 2007-01-29  Bruno Haible  <bruno@clisp.org>
300
301         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
302         * lib/execute.c: Likewise.
303         * lib/pipe.c: Likewise.
304         * lib/printf-args.h: Likewise.
305         * lib/printf-args.c: Likewise.
306         * lib/printf-parse.c: Likewise.
307         * lib/vasnprintf.c: Likewise.
308
309 2007-01-29  Eric Blake  <ebb9@byu.net>
310
311         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
312         declaration.
313
314 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
315
316         * lib/strptime.h (strptime): Use 'restrict' for args where
317         POSIX requires this.
318         * lib/strptime.c (strptime): Likewise.
319         Change license notice from LGPL to GPL, since gnulib-tool will
320         change this as needed.
321         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
322         defined.
323         Include "strptime.h" first, to check interface.
324         Do not #undef _LIBC and _NL_CURRENT.
325         Do not include <stdlib.h>; no longer needed.
326         Include "time_r.h" and declare ptime_locale_status
327         only if _LIBC is not defined.
328         (__P): Remove unused macro.
329         (match_string): Bring back glibc version, but use it only if _LIBC
330         is defined.
331         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
332         Remove unnecessary assertion and abort() call.
333         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
334         * m4/strptime.m4: Fix serial number comment.
335         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
336         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
337         (Depends-on): Add time_r.
338
339 2007-01-29  Bruno Haible  <bruno@clisp.org>
340
341         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
342         strptime.
343         * modules/strptime (Depends-on): Add stdbool.
344         * lib/strptime.h: Include <time.h> always. Add comments.
345
346 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
347
348         * modules/strptime: New file.
349         * lib/strptime.h: New file.
350         * lib/strptime.c: New file.
351         * m4/strptime.m4: New file.
352
353 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
354
355         * MODULES.html.sh: New module mpsort.
356         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
357
358         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
359         a circularity problem with HP-UX ia64 reported by Bob Proulx in
360         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
361         All uses changed.
362         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
363         All uses changed.
364         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
365         to _Restrict_.
366         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
367         the parameter matches the prototype.
368
369 2007-01-28  Jim Meyering  <jim@meyering.net>
370
371         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
372         sys/time.h here, reverting that part of the previous patch:
373         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
374
375 2007-01-28  Bruno Haible  <bruno@clisp.org>
376
377         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
378         value of $(SYS_TIME_H).
379         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
380         remove it conditionally, too. [added by Jim Meyering]
381         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
382         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
383         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
384         GETTIMEOFDAY_REPLACEMENT to 1.
385
386 2007-01-28  Bruno Haible  <bruno@clisp.org>
387
388         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
389         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
390         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
391         Set UNISTD_H instead of UNISTD_H2.
392         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
393
394 2007-01-28  Bruno Haible  <bruno@clisp.org>
395
396         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
397         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
398
399 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
400
401         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
402         (func_create_testdir): Ensure C locale for `grep' and `tr'
403         character ranges.
404         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
405         ACLOCAL_AMFLAGS parsing state machine.
406
407 2007-01-27  Bruno Haible  <bruno@clisp.org>
408
409         * modules/unistr/base: Update.
410
411 2007-01-27  Bruno Haible  <bruno@clisp.org>
412
413         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
414         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
415         * modules/unistr/u32-mbtouc-unsafe: Renamed from
416         modules/unistr/u32-mbtouc.
417         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
418         * lib/unistr.h: Update.
419         * lib/linebreak.c: Update.
420         * modules/unistr/u32-mbtouc: Renamed from
421         modules/unistr/u32-mbtouc-safe.
422         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
423         * lib/unistr.h: Update.
424         * lib/unistr/u32-to-u8.c: Update.
425         * lib/unistr/u32-to-u16.c: Update.
426
427 2007-01-27  Bruno Haible  <bruno@clisp.org>
428
429         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
430         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
431         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
432         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
433         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
434         * modules/unistr/u16-mbtouc-unsafe: Renamed from
435         modules/unistr/u16-mbtouc.
436         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
437         * lib/unistr.h: Update.
438         * lib/linebreak.c: Update.
439         * modules/linebreak: Update.
440         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
441         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
442         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
443         * modules/unistr/u16-mbtouc: Renamed from
444         modules/unistr/u16-mbtouc-safe.
445         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
446         * lib/unistr.h: Update.
447         * lib/unistr/u16-to-u8.c: Update.
448         * modules/unistr/u16-to-u8: Update.
449         * lib/unistr/u16-to-u32.c: Update.
450         * modules/unistr/u16-to-u32: Update.
451
452 2007-01-27  Bruno Haible  <bruno@clisp.org>
453
454         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
455         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
456         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
457         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
458         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
459         * modules/unistr/u8-mbtouc-unsafe: Renamed from
460         modules/unistr/u8-mbtouc.
461         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
462         * lib/unistr.h: Update.
463         * lib/striconveh.c: Update.
464         * modules/striconveh: Update.
465         * lib/linebreak.c: Update.
466         * modules/linebreak: Update.
467         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
468         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
469         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
470         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
471         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
472         * lib/unistr.h: Update.
473         * lib/striconveh.c: Update.
474         * modules/striconveh: Update.
475         * lib/unistr/u8-to-u16.c: Update.
476         * modules/unistr/u8-to-u16: Update.
477         * lib/unistr/u8-to-u32.c: Update.
478         * modules/unistr/u8-to-u32: Update.
479
480 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
481
482         Sync from Libtool.
483         * lib/argz.c: Do not include strings.h nor memory.h, include
484         string.h unconditionally.  Patch by Simon Josefsson.
485
486 2007-01-27  Bruno Haible  <bruno@clisp.org>
487
488         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
489         from gl_HEADER_STRING_H_BODY.
490         (gl_HEADER_STRING_H_BODY): Require it.
491         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
492         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
493         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
494         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
495         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
496         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
497         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
498         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
499         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
500         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
501         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
502         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
503         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
504         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
505         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
506
507 2007-01-27  Bruno Haible  <bruno@clisp.org>
508
509         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
510         check_PROGRAMS into noinst_PROGRAMS.
511         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
512         check_PROGRAMS in this case.
513         (func_import): Set for_test to false.
514         (func_create_testdir): Set for_test to true.
515
516 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
517             Bruno Haible  <bruno@clisp.org>
518
519         * modules/strcasestr (Files): Remove lib/strcasestr.h.
520         (Depends-on): Add string.
521         (Includes): Use <string.h> instead of strcasestr.h.
522         * modules/string (Makefile.am): Also substitute the value of
523         REPLACE_STRCASESTR.
524         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
525         assume strcasestr is declared in <string.h> not <strings.h>. Also
526         set REPLACE_STRCASESTR.
527         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
528         REPLACE_STRCASESTR.
529         * lib/strcasestr.h: Remove file.
530         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
531         * lib/string_.h (strcasestr): New declaration.
532
533 2007-01-27  Bruno Haible  <bruno@clisp.org>
534
535         * lib/string_.h: Use 'extern'.
536
537 2007-01-27  Jim Meyering  <jim@meyering.net>
538
539         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
540         of set-but-not-used local, "q".
541
542         * lib/mempcpy.c: Include <config.h> before <string.h>.
543         This fixes a compilation error on HP-UX, due to the system's
544         "restrict"-using mempcpy prototype.
545
546 2007-01-26  Bruno Haible  <bruno@clisp.org>
547
548         Small optimization.
549         * lib/javacomp.c: Include c-strstr.h.
550          (is_envjavac_gcj): Use c_strstr instead of strstr.
551         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
552
553 2007-01-26  Bruno Haible  <bruno@clisp.org>
554
555         * MODULES.html.sh (Unicode string functions): Add the new modules.
556
557         * modules/uniconv/u32-strconv-to-locale: New file.
558         * lib/uniconv/u32-strconv-to-locale.c: New file.
559
560         * modules/uniconv/u16-strconv-to-locale: New file.
561         * lib/uniconv/u16-strconv-to-locale.c: New file.
562
563         * modules/uniconv/u8-strconv-to-locale: New file.
564         * lib/uniconv/u8-strconv-to-locale.c: New file.
565
566         * modules/uniconv/u32-strconv-from-locale: New file.
567         * lib/uniconv/u32-strconv-from-locale.c: New file.
568
569         * modules/uniconv/u16-strconv-from-locale: New file.
570         * lib/uniconv/u16-strconv-from-locale.c: New file.
571
572         * modules/uniconv/u8-strconv-from-locale: New file.
573         * lib/uniconv/u8-strconv-from-locale.c: New file.
574
575         * modules/uniconv/u32-strconv-to-enc: New file.
576         * lib/uniconv/u32-strconv-to-enc.c: New file.
577         * modules/uniconv/u32-strconv-to-enc-tests: New file.
578         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
579
580         * modules/uniconv/u16-strconv-to-enc: New file.
581         * lib/uniconv/u16-strconv-to-enc.c: New file.
582         * lib/uniconv/u-strconv-to-enc.h: New file.
583         * modules/uniconv/u16-strconv-to-enc-tests: New file.
584         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
585
586         * modules/uniconv/u8-strconv-to-enc: New file.
587         * lib/uniconv/u8-strconv-to-enc.c: New file.
588         * modules/uniconv/u8-strconv-to-enc-tests: New file.
589         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
590
591         * modules/uniconv/u32-strconv-from-enc: New file.
592         * lib/uniconv/u32-strconv-from-enc.c: New file.
593         * modules/uniconv/u32-strconv-from-enc-tests: New file.
594         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
595
596         * modules/uniconv/u16-strconv-from-enc: New file.
597         * lib/uniconv/u16-strconv-from-enc.c: New file.
598         * modules/uniconv/u16-strconv-from-enc-tests: New file.
599         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
600
601         * modules/uniconv/u8-strconv-from-enc: New file.
602         * lib/uniconv/u8-strconv-from-enc.c: New file.
603         * lib/uniconv/u-strconv-from-enc.h: New file.
604         * modules/uniconv/u8-strconv-from-enc-tests: New file.
605         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
606
607         * modules/uniconv/u32-conv-from-enc: New file.
608         * lib/uniconv/u32-conv-from-enc.c: New file.
609         * modules/uniconv/u32-conv-from-enc-tests: New file.
610         * tests/uniconv/test-u32-conv-from-enc.c: New file.
611
612         * modules/uniconv/u16-conv-from-enc: New file.
613         * lib/uniconv/u16-conv-from-enc.c: New file.
614         * lib/uniconv/u-conv-from-enc.h: New file.
615         * modules/uniconv/u16-conv-from-enc-tests: New file.
616         * tests/uniconv/test-u16-conv-from-enc.c: New file.
617
618         * modules/uniconv/u8-conv-from-enc: New file.
619         * lib/uniconv/u8-conv-from-enc.c: New file.
620         * modules/uniconv/u8-conv-from-enc-tests: New file.
621         * tests/uniconv/test-u8-conv-from-enc.c: New file.
622
623         * modules/uniconv/base: New file.
624         * lib/uniconv.h: New file.
625
626 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
627
628         * doc/gnulib-tool.texi (Initial import): Update to match current
629         behavior with strdup module.
630         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
631         * lib/memmem.h: Remove; all uses removed.  This is now done
632         by <string.h>.
633         * lib/mempcpy.h: Likewise.
634         * lib/memrchr.h: Likewise.
635         * lib/stpcpy.h: Likewise.
636         * lib/stpncpy.h: Likewise.
637         * lib/strcase.h: Likewise.
638         * lib/strchrnul.h: Likewise.
639         * lib/strdup.h: Likewise.
640         * lib/strndup.h: Likewise.
641         * lib/strnlen.h: Likewise.
642         * lib/strpbrk.h: Likewise.
643         * lib/strsep.h: Likewise.
644         * lib/strstr.h: Likewise.
645         * lib/strtok_r.h: Likewise.
646         * lib/string_.h: New file.
647         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
648         Rely on <string.h> instead.
649         * lib/canon-host.c: Likewise.
650         * lib/chdir-long.c: Likewise.
651         * lib/concatpath.c: Likewise.
652         * lib/exclude.c: Likewise.
653         * lib/fchdir.c: Likewise.
654         * lib/getaddrinfo.c: Likewise.
655         * lib/getcwd.c: Likewise.
656         * lib/getsubopt.c: Likewise.
657         * lib/glob.c: Likewise.
658         * lib/hard-locale.c: Likewise.
659         * lib/iconvme.c: Likewise.
660         * lib/javacomp.c: Likewise.
661         * lib/mempcpy.c: Likewise.
662         * lib/memrchr.c: Likewise.
663         * lib/regex_internal.h: Likewise.
664         * lib/stpncpy.c: Likewise.
665         * lib/strcasecmp.c: Likewise.
666         * lib/strchrnul.c: Likewise.
667         * lib/strdup.c: Likewise.
668         * lib/striconv.c: Likewise.
669         * lib/striconveh.c: Likewise.
670         * lib/striconveha.c: Likewise.
671         * lib/strncasecmp.c: Likewise.
672         * lib/strndup.c: Likewise.
673         * lib/strnlen.c: Likewise.
674         * lib/strsep.c: Likewise.
675         * lib/strstr.c: Likewise.
676         * lib/strtok_r.c: Likewise.
677         * lib/userspec.c: Likewise.
678         * lib/w32spawn.h: Likewise.
679         * lib/xstrndup.c: Likewise.
680         * lib/mountlist.c (strstr): Remove decl.
681         * m4/string_h.m4: New file.
682         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
683         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
684         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
685         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
686         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
687         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
688         Set REPLACE_STRCASECMP if necessary.
689         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
690         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
691         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
692         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
693         HAVE_DECL_STRDUP if necessary.
694         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
695         since gl_FUNC_STRNDUP does that now.
696         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
697         Check for decl here...
698         (gl_PREREQ_STRNLEN): ... not here.
699         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
700         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
701         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
702         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
703         necessary.
704         * modules/string: New file.
705         * modules/memmem (Files): Remove special-purpose include file.
706         (Depends-on): Add string.
707         (Include): Include <string.h>, not the removed file.
708         * modules/mempcpy: Likewise.
709         * modules/memrchr: Likewise.
710         * modules/stpcpy: Likewise.
711         * modules/stpncpy: Likewise.
712         * modules/strcase: Likewise.
713         * modules/strchrnul: Likewise.
714         * modules/strdup: Likewise.
715         * modules/strndup: Likewise.
716         * modules/strnlen: Likewise.
717         * modules/strpbrk: Likewise.
718         * modules/strsep: Likewise.
719         * modules/strstr: Likewise.
720         * modules/strtok_r: Likewise.
721         * tests/test-dirname.c: Don't include "strdup.h", since
722         <string.h> now suffices.
723         * tests/test-memmem.c: Don't include "memmem.h", since
724         <string.h> now suffices.
725
726 2007-01-25  Bruno Haible  <bruno@clisp.org>
727
728         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
729         *resultp is 0.
730
731         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
732         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
733         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
734         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
735
736         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
737         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
738         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
739         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
740         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
741         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
742
743 2007-01-24  Bruno Haible  <bruno@clisp.org>
744
745         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
746         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
747         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
748         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
749         gl_FUNC_FTS_CORE.
750         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
751         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
752         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
753         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
754         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
755         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
756         gl_FUNC_FCHOWNAT.
757         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
758         gl_FUNC_STRFTIME.
759         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
760         Reported by Ralf Wildenhues.
761
762 2007-01-24  Bruno Haible  <bruno@clisp.org>
763
764         Drop AC_REQUIRE calls that are redundant with the module dependencies.
765         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
766         gl_GETADDRINFO.
767         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
768         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
769         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
770
771 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
772
773         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
774         Don't use 'exit'; just return from 'main'.
775         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
776
777         * lib/fnmatch_.h: Readjust white space and comments to match
778         glibc, to avoid spurious diffs.
779
780 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
781
782         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
783         2004-12-01 change by Jakub Jelinek, since this code won't compile
784         if !LIBC.  Problem reported by Bob Proulx.
785
786 2007-01-23  Bruno Haible  <bruno@clisp.org>
787
788         * lib/striconveh.c: Include c-strcaseeq.h.
789         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
790         * modules/striconveh (Depends-on): Add c-strcaseeq.
791
792 2007-01-23  Bruno Haible  <bruno@clisp.org>
793
794         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
795
796         * modules/c-strcaseeq: New file.
797         * lib/c-strcaseeq.h: New file.
798
799         * modules/streq: New file.
800         * lib/streq.h: New file.
801
802 2007-01-23  Bruno Haible  <bruno@clisp.org>
803
804         * modules/striconveha-tests: New file.
805         * tests/test-striconveha.c: New file.
806
807         * lib/striconveha.h: Include <stdbool.h>.
808         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
809         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
810         (mem_iconveha_notranslit): Renamed from mem_iconveha.
811         (mem_iconveha): New function.
812         (str_iconveha_notranslit): Renamed from str_iconveha.
813         (str_iconveha): New function.
814         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
815         c-strcase.
816
817 2007-01-23  Bruno Haible  <bruno@clisp.org>
818
819         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
820         encodings without forgiving before trying any encoding with handler.
821         (str_iconveha): Try all encodings without forgiving before trying any
822         encoding with handler.
823
824 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
825
826         Import the following changes from libc.
827
828         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
829
830         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
831
832         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
833
834         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
835         normal_bracket label.
836
837         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
838
839         [BZ #361]
840         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
841         to normal_bracket after fetching the next character.
842
843 2007-01-22  Bruno Haible  <bruno@clisp.org>
844
845         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
846         argument.
847         * lib/striconveh.c (iconv_carefully_1): New function.
848         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
849         argument.
850         (str_cd_iconveh): Update.
851         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
852         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
853         * tests/test-striconveh.c (MAGIC): New macro.
854         (new_offsets): New function.
855         (main): Test call with and without offsets.
856
857 2007-01-22  Bruno Haible  <bruno@clisp.org>
858
859         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
860         * modules/sys_select (Makefile.am): Likewise.
861         * modules/sys_socket (Makefile.am): Likewise.
862         * modules/sys_time (Makefile.am): Likewise.
863
864 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
865
866         * modules/gettimeofday (License): Change from GPL to LGPL, since
867         gettimeofday is a library function.
868
869 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
870
871         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
872
873 2007-01-21  Bruno Haible  <bruno@clisp.org>
874
875         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
876
877 2007-01-21  Bruno Haible  <bruno@clisp.org>
878
879         * modules/striconveha: New file.
880         * lib/striconveha.h: New file.
881         * lib/striconveha.c: New file.
882         * MODULES.html.sh (Internationalization functions): Add striconveha.
883         * lib/striconv.c (str_iconv): Optimize the case of an empty input
884         string.
885         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
886
887 2007-01-21  Bruno Haible  <bruno@clisp.org>
888
889         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
890         * lib/striconveh.c (str_iconveh): Likewise.
891
892 2007-01-21  Bruno Haible  <bruno@clisp.org>
893
894         * lib/striconveh.h (mem_iconveh): New declaration.
895         * lib/striconveh.c (mem_iconveh): New function.
896         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
897
898 2007-01-21  Bruno Haible  <bruno@clisp.org>
899
900         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
901
902         * lib/striconveh.h (mem_cd_iconveh): Change specification.
903         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
904         original result buffer.
905         (str_cd_iconveh): Update.
906         * tests/test-striconveh.c (main): Update.
907
908         * lib/striconv.h (mem_cd_iconv): Change specification.
909         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
910         result buffer.
911         (str_cd_iconv): Update.
912         * tests/test-striconv.c (main): Update.
913
914 2007-01-21  Bruno Haible  <bruno@clisp.org>
915
916         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
917
918 2007-01-20  Jim Meyering  <jim@meyering.net>
919
920         * lib/userspec.c (parse_with_separator): If a user or group string
921         starts with "+", skip the corresponding name-to-ID look-up, since
922         such a look-up must fail: user and group names may not include "+".
923
924 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
925
926         * lib/poll.c: Include sys/time.h and time.h unconditionally,
927         since we now assume the sys_time module.
928         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
929         check for sys/time.h; no longer needed.
930         * modules/poll (Depends-on): Depend on sys_time.
931
932 2007-01-18  Bruno Haible  <bruno@clisp.org>
933
934         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
935         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
936
937         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
938         gettimeofday.
939
940         * tests/test-gettimeofday.c: Include <time.h>.
941         (dummy): Remove variable.
942
943         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
944         gl_HEADER_SYS_TIME_H.
945         (gl_HEADER_SYS_TIME_H): New macro.
946
947         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
948         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
949         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
950         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
951         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
952         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
953         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
954         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
955         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
956         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
957         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
958
959         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
960         last change; it caused a compilation error when cross-compiling to
961         Cygwin.
962
963 2007-01-18  Jim Meyering  <jim@meyering.net>
964
965         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
966         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
967         than the race-prone "test -d sys || mkdir sys".
968         (configure.ac): Use AC_PROG_MKDIR_P.
969         * modules/sys_select: Likewise.
970         * modules/sys_socket: Likewise.
971         * modules/sys_time: Likewise.
972
973 2007-01-18  Eric Blake  <ebb9@byu.net>
974
975         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
976         replace gettimeofday.
977         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
978         name, to avoid infinite recursion.
979
980 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
981
982         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
983         module sys_time.
984         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
985         assume timespec.h defines struct timeval.
986         * lib/settime.c: Likewise.
987         * lib/utimens.c: Likewise.
988         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
989         since we now assume the gettimeofday module.
990         * lib/tempname.c (__gen_tempname): Likewise.
991         * lib/gettimeofday.h: Remove.
992         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
993         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
994         Include <time.h>, for 'time()'.
995         (localtime_buffer_addr): Also use this workaround if
996         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
997         to simplify the uses.  All uses changed.
998         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
999         that #undef is inside {}, and 'const' follows type name consistently.
1000         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
1001         (gettimeofday): Do not use the maximum possible value for
1002         tv->tv_usec, since that might break usages other than ls.c.
1003         Instead, we'll leave ls.c alone.  This undoes today's patch
1004         by Bruno.  Add a compile-time warning for 1s-clock resolution;
1005         we've never observed the problem but might as well keep the
1006         canary.
1007         * lib/nanosleep.c: Include timespec.h first, for interface check.
1008         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
1009         now assume the sys_time module.
1010         * lib/tempname.c: Likewise.
1011         * lib/timespec.h: Likewise.
1012         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
1013         needed.
1014         * lib/strftime.c: Likewise.
1015         * lib/timespec.h: Likewise.
1016         * lib/posixtm.c: Include posixtm.h first, for interface check.
1017         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
1018         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
1019         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
1020         * lib/sys_time_.h: New file.
1021         * lib/timespec.h (struct timespec): Use long int, not long.
1022         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
1023         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
1024         Remove obsolescent call to AC_HEADER_TIME.
1025         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
1026         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
1027         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
1028         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
1029         Likewise.
1030         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
1031         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
1032         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
1033         into the sys_time module.  Check for gettimeofday just once.
1034         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
1035         for gettimeofday signature to just check the signature.  Merely
1036         compile it, since linking doesn't test signature.  Improve test for
1037         whether gettimeofday.o is actually needed.
1038         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
1039         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
1040         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
1041         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
1042         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
1043         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
1044         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
1045         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
1046         than worrying about sys/time.h.
1047         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
1048         Don't bother worrying about TIME_WITH_SYS_TIME.
1049         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
1050         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
1051         * m4/sys_time_h.m4: New file.
1052         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
1053         Don't include sys/time.h.  Return from main rather than exiting.
1054         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
1055         all uses changed.
1056         * modules/gethrxtime (Depends-on): Add sys_time.
1057         * modules/gettime (Depends-on): Likewise.
1058         * modules/gettimeofday (Depends-on): Likewise.
1059         * modules/nanosleep (Depends-on): Likewise.
1060         * modules/settime (Depends-on): Likewise.
1061         * modules/tempname (Depends-on): Likewise.
1062         * modules/utimens (Depends-on): Likewise.
1063         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
1064         (Include:) Change back to <sys/time.h>.
1065         (Maintainer:) Add self.
1066         * modules/sys_time: New file.
1067         * modules/tempname (Depends-on): Add gettimeofday.
1068         * tests/test-gettimeofday.c: Include <sys/time.h>
1069         rather than gettimeofday.h.
1070
1071 2007-01-17  Bruno Haible  <bruno@clisp.org>
1072
1073         * gnulib-tool (func_get_license): Revert last patch. Instead, let
1074         the license default to GPL.
1075         (func_create_testdir): Don't complain if a module is LGPL and its
1076         tests module depends on GPLed modules.
1077
1078 2007-01-17  Bruno Haible  <bruno@clisp.org>
1079
1080         * lib/gettimeofday.c (gettimeofday): Add code for the case
1081         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
1082         maximum possible value for tv->tv_usec, rather than the minimum one.
1083
1084 2005-10-08  Martin Lambers  <marlam@marlam.de>
1085 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
1086 2007-01-16  Bruno Haible  <bruno@clisp.org>
1087
1088         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
1089         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
1090         gl_FUNC_GETTIMEOFDAY.
1091         (Include): Add gettimeofday.h.
1092         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
1093         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
1094         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
1095         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
1096         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
1097         * lib/gettimeofday.h: New file.
1098         * lib/gettimeofday.c: Include <sys/timeb.h>.
1099         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
1100         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
1101         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
1102         fall back on time().
1103
1104         * tests/test-gettimeofday.c: New file.
1105         * modules/gettimeofday-tests: New file.
1106
1107 2007-01-16  Eric Blake  <ebb9@byu.net>
1108
1109         * modules/fnmatch (Depends-on): Depend on wchar.
1110         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
1111         * m4/fnmatch.m4: Likewise.
1112         * modules/mbchar (Makefile.am): Assume <wchar.h>.
1113         * m4/mbchar.m4: Likewise.
1114         * modules/mbswidth (Depends-on): Depend on wchar.
1115         * lib/mbswidth.c: Assume <wchar.h>.
1116         * m4/mbswidth.m4: Likewise.
1117         * modules/quotearg (Depends-on): Depend on wchar.
1118         * lib/quotearg.c: Assume <wchar.h>.
1119         * m4/quotearg.m4: Likewise.
1120         * modules/regex (Depends-on): Depend on wchar.
1121         * lib/regex_internal.h: Assume <wchar.h>.
1122         * m4/regex.m4: Likewise.
1123         * modules/stdint (Depends-on): Depend on wchar.
1124         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
1125         * m4/stdint.m4: Likewise.
1126         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
1127         * modules/strftime (Depends-on): Depend on wchar.
1128         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
1129         * modules/strtol (Depends-on): Depend on wchar.
1130         * lib/strtol.c: Assume <wchar.h>.
1131         * modules/wcwidth (Depends-on): Depend on wchar.
1132         * lib/wcwidth.h: Assume <wchar.h>.
1133         * m4/wcwidth.m4: Likewise.
1134
1135 2007-01-16  Bruno Haible  <bruno@clisp.org>
1136
1137         * modules/csharpexec-script: New, created from...
1138         * modules/csharpexec: ... this.
1139
1140 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
1141
1142         * modules/javaexec-script: New, created from...
1143         * modules/javaexec: ... this.
1144
1145 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
1146
1147         * modules/poll (Dependencies): Add sys_select.
1148
1149 2007-01-15  Jim Meyering  <jim@meyering.net>
1150
1151         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
1152         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
1153         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
1154         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
1155
1156 2007-01-15  Bruno Haible  <bruno@clisp.org>
1157
1158         * modules/striconveh: New file.
1159         * lib/striconveh.h: New file.
1160         * lib/striconveh.c: New file.
1161         * MODULES.html.sh (Internationalization functions): Add striconveh.
1162
1163         * modules/striconveh-tests: New file.
1164         * tests/test-striconveh.c: New file.
1165
1166 2007-01-15  Bruno Haible  <bruno@clisp.org>
1167
1168         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
1169         not from GNU libiconv or GNU libc.
1170
1171 2007-01-15  Bruno Haible  <bruno@clisp.org>
1172
1173         * doc/gnulib-intro.texi (Copyright): Explain the different license
1174         terms for module descriptions, autoconf macros, tests, documentation.
1175
1176 2007-01-14  Bruno Haible  <bruno@clisp.org>
1177
1178         * modules/striconv-tests: New file.
1179         * tests/test-striconv.c: New file.
1180
1181 2007-01-14  Bruno Haible  <bruno@clisp.org>
1182
1183         * modules/iconv-tests: New file.
1184         * tests/test-iconv.c: New file.
1185
1186 2007-01-14  Bruno Haible  <bruno@clisp.org>
1187
1188         * gnulib-tool (func_get_license): For test modules, use the license of
1189         the main module.
1190
1191 2007-01-14  Bruno Haible  <bruno@clisp.org>
1192
1193         * modules/iconv (Include): Clarify that <iconv.h> can only be included
1194         if iconv is found to exist.
1195
1196 2007-01-14  Bruno Haible  <bruno@clisp.org>
1197
1198         * modules/c-ctype-tests: New file.
1199         * tests/test-c-ctype.c: New file.
1200
1201 2007-01-14  Bruno Haible  <bruno@clisp.org>
1202
1203         * modules/binary-io-tests: New file.
1204         * tests/test-binary-io.sh: New file.
1205         * tests/test-binary-io.c: New file.
1206
1207 2007-01-14  Bruno Haible  <bruno@clisp.org>
1208
1209         * modules/array-oset-tests: New file.
1210         * tests/test-array_oset.c: New file.
1211
1212 2007-01-14  Bruno Haible  <bruno@clisp.org>
1213
1214         * modules/array-list-tests: New file.
1215         * tests/test-array_list.c: New file.
1216
1217 2007-01-14  Bruno Haible  <bruno@clisp.org>
1218
1219         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
1220         and make.
1221         Reported by Simon Josefsson in
1222         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
1223
1224 2007-01-14  Bruno Haible  <bruno@clisp.org>
1225
1226         * modules/allocsa-tests: New file.
1227         * tests/test-allocsa.c: New file.
1228
1229 2007-01-14  Bruno Haible  <bruno@clisp.org>
1230
1231         * modules/fchdir (Depends-on): Add absolute-header.
1232         * modules/unistd (Depends-on): Likewise.
1233
1234 2006-12-30  Bruno Haible  <bruno@clisp.org>
1235
1236         * modules/fchdir: New file.
1237         * modules/unistd (Files): Add lib/unistd_.h.
1238         (Makefile.am): Generate unistd.h from unistd_.h.
1239         * lib/fchdir.c: New file.
1240         * lib/dirent_.h: New file.
1241         * lib/unistd_.h: New file.
1242         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
1243         * m4/fchdir.m4: New file.
1244         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
1245         (gl_HEADER_UNISTD): Invoke it.
1246         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
1247         function.
1248         * lib/backupfile.c (opendir, closedir): Undefine.
1249         * lib/chown.c (open, close): Undefine.
1250         * lib/clean-temp.c (open, close): Undefine.
1251         * lib/copy-file.c (open, close): Undefine.
1252         * lib/execute.c (open, close): Undefine.
1253         * lib/fsusage.c (open, close): Undefine.
1254         * lib/gc-gnulib.c (open, close): Undefine.
1255         * lib/getcwd.c (opendir, closedir): Undefine.
1256         * lib/glob.c (opendir, closedir): Undefine.
1257         * lib/javacomp.c (open, close): Undefine.
1258         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
1259         * lib/openat-proc.c (open, close): Undefine.
1260         * lib/pagealign_alloc.c (open, close): Undefine.
1261         * lib/pipe.c (open, close): Undefine.
1262         * lib/progreloc.c (open, close): Undefine.
1263         * lib/savedir.c (opendir, closedir): Undefine.
1264         * lib/utime.c (open, close): Undefine.
1265         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
1266
1267 2007-01-10  Bruno Haible  <bruno@clisp.org>
1268
1269         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
1270
1271 2007-01-12  Eric Blake  <ebb9@byu.net>
1272
1273         Provide a robust <wchar.h>.  Further simplifications are now
1274         possible in other modules, but not included here.
1275         * modules/wchar: New module.
1276         * m4/wchar.m4: New file.
1277         * lib/wchar_.h: Likewise.
1278         * modules/mbchar (Depends-on): Depend on wchar, as the first use
1279         of the new module.
1280         * MODULES.html.sh (Extended multibyte and wide character utilities):
1281         New section.
1282
1283 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
1284
1285         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
1286         to a reasonable default for memory allocation.
1287         (xreadlink): Don't allocate a huge buffer, to work around a buggy
1288         file system that reports garbage st_size values for symlinks.
1289         Problem reported by Liyang Hu.
1290
1291 2007-01-11  Simon Josefsson  <simon@josefsson.org>
1292
1293         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
1294         Emacs .#* auto-save files).
1295
1296 2007-01-11  Bruno Haible  <bruno@clisp.org>
1297
1298         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
1299         directory.
1300
1301 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
1302
1303         Use @...@ consistently in lib/wctype_.h.
1304         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
1305         on it being set to 1 or 0.
1306         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
1307         go back to AC_SUBSTing it.
1308         * modules/wctype (Makefile.am): Undo previous change.
1309
1310 2007-01-10  Eric Blake  <ebb9@byu.net>
1311
1312         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
1313         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
1314         * modules/wctype (Makefile.am): Likewise.
1315         Reported by Chris McGuire.
1316
1317 2007-01-10  Jim Meyering  <jim@meyering.net>
1318
1319         fts.c: a small readability/maintainability improvement
1320         * lib/fts.c (fts_read): Make this code slightly more readable and
1321         maintainable by hoisting the "sp->fts_cur = p" assignments to
1322         immediately follow the statements that set P.  Derived from
1323         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
1324
1325 2007-01-10  Eric Blake  <ebb9@byu.net>
1326
1327         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
1328         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
1329         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
1330         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
1331         Reported by Chris McGuire.
1332
1333 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1334
1335         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
1336         in sed script.
1337
1338 2007-01-09  Bruno Haible  <bruno@clisp.org>
1339
1340         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
1341         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
1342         variables.
1343         (func_module): Use them.
1344
1345 2007-01-09  Bruno Haible  <bruno@clisp.org>
1346
1347         * modules/unistr/base: New file.
1348         * lib/unistr.h: New file.
1349
1350         * modules/unistr/u8-to-u16: New file.
1351         * lib/unistr/u8-to-u16.c: New file.
1352
1353         * modules/unistr/u8-to-u32: New file.
1354         * lib/unistr/u8-to-u32.c: New file.
1355
1356         * modules/unistr/u16-to-u8: New file.
1357         * lib/unistr/u16-to-u8.c: New file.
1358
1359         * modules/unistr/u16-to-u32: New file.
1360         * lib/unistr/u16-to-u32.c: New file.
1361
1362         * modules/unistr/u32-to-u8: New file.
1363         * lib/unistr/u32-to-u8.c: New file.
1364
1365         * modules/unistr/u32-to-u16: New file.
1366         * lib/unistr/u32-to-u16.c: New file.
1367
1368         * modules/unistr/u8-check: New file.
1369         * modules/unistr/u16-check: New file.
1370         * modules/unistr/u32-check: New file.
1371         * lib/unistr/u8-check.c: New file.
1372         * lib/unistr/u16-check.c: New file.
1373         * lib/unistr/u32-check.c: New file.
1374
1375         * modules/unistr/u8-chr: New file.
1376         * modules/unistr/u16-chr: New file.
1377         * modules/unistr/u32-chr: New file.
1378         * lib/unistr/u8-chr.c: New file.
1379         * lib/unistr/u16-chr.c: New file.
1380         * lib/unistr/u32-chr.c: New file.
1381
1382         * modules/unistr/u8-cmp: New file.
1383         * modules/unistr/u16-cmp: New file.
1384         * modules/unistr/u32-cmp: New file.
1385         * lib/unistr/u8-cmp.c: New file.
1386         * lib/unistr/u16-cmp.c: New file.
1387         * lib/unistr/u32-cmp.c: New file.
1388
1389         * modules/unistr/u8-cpy: New file.
1390         * modules/unistr/u16-cpy: New file.
1391         * modules/unistr/u32-cpy: New file.
1392         * lib/unistr/u8-cpy.c: New file.
1393         * lib/unistr/u16-cpy.c: New file.
1394         * lib/unistr/u32-cpy.c: New file.
1395         * lib/unistr/u-cpy.h: New file.
1396
1397         * modules/unistr/u8-cpy-alloc: New file.
1398         * modules/unistr/u16-cpy-alloc: New file.
1399         * modules/unistr/u32-cpy-alloc: New file.
1400         * lib/unistr/u8-cpy-alloc.c: New file.
1401         * lib/unistr/u16-cpy-alloc.c: New file.
1402         * lib/unistr/u32-cpy-alloc.c: New file.
1403         * lib/unistr/u-cpy-alloc.h: New file.
1404
1405         * modules/unistr/u8-endswith: New file.
1406         * modules/unistr/u16-endswith: New file.
1407         * modules/unistr/u32-endswith: New file.
1408         * lib/unistr/u8-endswith.c: New file.
1409         * lib/unistr/u16-endswith.c: New file.
1410         * lib/unistr/u32-endswith.c: New file.
1411         * lib/unistr/u-endswith.h: New file.
1412
1413         * modules/unistr/u8-mblen: New file.
1414         * modules/unistr/u16-mblen: New file.
1415         * modules/unistr/u32-mblen: New file.
1416         * lib/unistr/u8-mblen.c: New file.
1417         * lib/unistr/u16-mblen.c: New file.
1418         * lib/unistr/u32-mblen.c: New file.
1419
1420         * modules/unistr/u8-mbtouc: New file.
1421         * modules/unistr/u16-mbtouc: New file.
1422         * modules/unistr/u32-mbtouc: New file.
1423         * lib/unistr/u8-mbtouc.c: New file.
1424         * lib/unistr/u16-mbtouc.c: New file.
1425         * lib/unistr/u32-mbtouc.c: New file.
1426
1427         * modules/unistr/u8-mbtouc-safe: New file.
1428         * modules/unistr/u16-mbtouc-safe: New file.
1429         * modules/unistr/u32-mbtouc-safe: New file.
1430         * lib/unistr/u8-mbtouc-safe.c: New file.
1431         * lib/unistr/u16-mbtouc-safe.c: New file.
1432         * lib/unistr/u32-mbtouc-safe.c: New file.
1433
1434         * modules/unistr/u8-move: New file.
1435         * modules/unistr/u16-move: New file.
1436         * modules/unistr/u32-move: New file.
1437         * lib/unistr/u8-move.c: New file.
1438         * lib/unistr/u16-move.c: New file.
1439         * lib/unistr/u32-move.c: New file.
1440         * lib/unistr/u-move.h: New file.
1441
1442         * modules/unistr/u8-next: New file.
1443         * modules/unistr/u16-next: New file.
1444         * modules/unistr/u32-next: New file.
1445         * lib/unistr/u8-next.c: New file.
1446         * lib/unistr/u16-next.c: New file.
1447         * lib/unistr/u32-next.c: New file.
1448
1449         * modules/unistr/u8-prev: New file.
1450         * modules/unistr/u16-prev: New file.
1451         * modules/unistr/u32-prev: New file.
1452         * lib/unistr/u8-prev.c: New file.
1453         * lib/unistr/u16-prev.c: New file.
1454         * lib/unistr/u32-prev.c: New file.
1455
1456         * modules/unistr/u8-set: New file.
1457         * modules/unistr/u16-set: New file.
1458         * modules/unistr/u32-set: New file.
1459         * lib/unistr/u8-set.c: New file.
1460         * lib/unistr/u16-set.c: New file.
1461         * lib/unistr/u32-set.c: New file.
1462         * lib/unistr/u-set.h: New file.
1463
1464         * modules/unistr/u8-startswith: New file.
1465         * modules/unistr/u16-startswith: New file.
1466         * modules/unistr/u32-startswith: New file.
1467         * lib/unistr/u8-startswith.c: New file.
1468         * lib/unistr/u16-startswith.c: New file.
1469         * lib/unistr/u32-startswith.c: New file.
1470         * lib/unistr/u-startswith.h: New file.
1471
1472         * modules/unistr/u8-stpcpy: New file.
1473         * modules/unistr/u16-stpcpy: New file.
1474         * modules/unistr/u32-stpcpy: New file.
1475         * lib/unistr/u8-stpcpy.c: New file.
1476         * lib/unistr/u16-stpcpy.c: New file.
1477         * lib/unistr/u32-stpcpy.c: New file.
1478         * lib/unistr/u-stpcpy.h: New file.
1479
1480         * modules/unistr/u8-stpncpy: New file.
1481         * modules/unistr/u16-stpncpy: New file.
1482         * modules/unistr/u32-stpncpy: New file.
1483         * lib/unistr/u8-stpncpy.c: New file.
1484         * lib/unistr/u16-stpncpy.c: New file.
1485         * lib/unistr/u32-stpncpy.c: New file.
1486         * lib/unistr/u-stpncpy.h: New file.
1487
1488         * modules/unistr/u8-strcat: New file.
1489         * modules/unistr/u16-strcat: New file.
1490         * modules/unistr/u32-strcat: New file.
1491         * lib/unistr/u8-strcat.c: New file.
1492         * lib/unistr/u16-strcat.c: New file.
1493         * lib/unistr/u32-strcat.c: New file.
1494         * lib/unistr/u-strcat.h: New file.
1495
1496         * modules/unistr/u8-strchr: New file.
1497         * modules/unistr/u16-strchr: New file.
1498         * modules/unistr/u32-strchr: New file.
1499         * lib/unistr/u8-strchr.c: New file.
1500         * lib/unistr/u16-strchr.c: New file.
1501         * lib/unistr/u32-strchr.c: New file.
1502
1503         * modules/unistr/u8-strcmp: New file.
1504         * modules/unistr/u16-strcmp: New file.
1505         * modules/unistr/u32-strcmp: New file.
1506         * lib/unistr/u8-strcmp.c: New file.
1507         * lib/unistr/u16-strcmp.c: New file.
1508         * lib/unistr/u32-strcmp.c: New file.
1509
1510         * modules/unistr/u8-strcpy: New file.
1511         * modules/unistr/u16-strcpy: New file.
1512         * modules/unistr/u32-strcpy: New file.
1513         * lib/unistr/u8-strcpy.c: New file.
1514         * lib/unistr/u16-strcpy.c: New file.
1515         * lib/unistr/u32-strcpy.c: New file.
1516         * lib/unistr/u-strcpy.h: New file.
1517
1518         * modules/unistr/u8-strcspn: New file.
1519         * modules/unistr/u16-strcspn: New file.
1520         * modules/unistr/u32-strcspn: New file.
1521         * lib/unistr/u8-strcspn.c: New file.
1522         * lib/unistr/u16-strcspn.c: New file.
1523         * lib/unistr/u32-strcspn.c: New file.
1524         * lib/unistr/u-strcspn.h: New file.
1525
1526         * modules/unistr/u8-strdup: New file.
1527         * modules/unistr/u16-strdup: New file.
1528         * modules/unistr/u32-strdup: New file.
1529         * lib/unistr/u8-strdup.c: New file.
1530         * lib/unistr/u16-strdup.c: New file.
1531         * lib/unistr/u32-strdup.c: New file.
1532         * lib/unistr/u-strdup.h: New file.
1533
1534         * modules/unistr/u8-strlen: New file.
1535         * modules/unistr/u16-strlen: New file.
1536         * modules/unistr/u32-strlen: New file.
1537         * lib/unistr/u8-strlen.c: New file.
1538         * lib/unistr/u16-strlen.c: New file.
1539         * lib/unistr/u32-strlen.c: New file.
1540         * lib/unistr/u-strlen.h: New file.
1541
1542         * modules/unistr/u8-strmblen: New file.
1543         * modules/unistr/u16-strmblen: New file.
1544         * modules/unistr/u32-strmblen: New file.
1545         * lib/unistr/u8-strmblen.c: New file.
1546         * lib/unistr/u16-strmblen.c: New file.
1547         * lib/unistr/u32-strmblen.c: New file.
1548
1549         * modules/unistr/u8-strmbtouc: New file.
1550         * modules/unistr/u16-strmbtouc: New file.
1551         * modules/unistr/u32-strmbtouc: New file.
1552         * lib/unistr/u8-strmbtouc.c: New file.
1553         * lib/unistr/u16-strmbtouc.c: New file.
1554         * lib/unistr/u32-strmbtouc.c: New file.
1555
1556         * modules/unistr/u8-strncat: New file.
1557         * modules/unistr/u16-strncat: New file.
1558         * modules/unistr/u32-strncat: New file.
1559         * lib/unistr/u8-strncat.c: New file.
1560         * lib/unistr/u16-strncat.c: New file.
1561         * lib/unistr/u32-strncat.c: New file.
1562         * lib/unistr/u-strncat.h: New file.
1563
1564         * modules/unistr/u8-strncmp: New file.
1565         * modules/unistr/u16-strncmp: New file.
1566         * modules/unistr/u32-strncmp: New file.
1567         * lib/unistr/u8-strncmp.c: New file.
1568         * lib/unistr/u16-strncmp.c: New file.
1569         * lib/unistr/u32-strncmp.c: New file.
1570
1571         * modules/unistr/u8-strncpy: New file.
1572         * modules/unistr/u16-strncpy: New file.
1573         * modules/unistr/u32-strncpy: New file.
1574         * lib/unistr/u8-strncpy.c: New file.
1575         * lib/unistr/u16-strncpy.c: New file.
1576         * lib/unistr/u32-strncpy.c: New file.
1577         * lib/unistr/u-strncpy.h: New file.
1578
1579         * modules/unistr/u8-strnlen: New file.
1580         * modules/unistr/u16-strnlen: New file.
1581         * modules/unistr/u32-strnlen: New file.
1582         * lib/unistr/u8-strnlen.c: New file.
1583         * lib/unistr/u16-strnlen.c: New file.
1584         * lib/unistr/u32-strnlen.c: New file.
1585         * lib/unistr/u-strnlen.h: New file.
1586
1587         * modules/unistr/u8-strpbrk: New file.
1588         * modules/unistr/u16-strpbrk: New file.
1589         * modules/unistr/u32-strpbrk: New file.
1590         * lib/unistr/u8-strpbrk.c: New file.
1591         * lib/unistr/u16-strpbrk.c: New file.
1592         * lib/unistr/u32-strpbrk.c: New file.
1593         * lib/unistr/u-strpbrk.h: New file.
1594
1595         * modules/unistr/u8-strrchr: New file.
1596         * modules/unistr/u16-strrchr: New file.
1597         * modules/unistr/u32-strrchr: New file.
1598         * lib/unistr/u8-strrchr.c: New file.
1599         * lib/unistr/u16-strrchr.c: New file.
1600         * lib/unistr/u32-strrchr.c: New file.
1601
1602         * modules/unistr/u8-strspn: New file.
1603         * modules/unistr/u16-strspn: New file.
1604         * modules/unistr/u32-strspn: New file.
1605         * lib/unistr/u8-strspn.c: New file.
1606         * lib/unistr/u16-strspn.c: New file.
1607         * lib/unistr/u32-strspn.c: New file.
1608         * lib/unistr/u-strspn.h: New file.
1609
1610         * modules/unistr/u8-strstr: New file.
1611         * modules/unistr/u16-strstr: New file.
1612         * modules/unistr/u32-strstr: New file.
1613         * lib/unistr/u8-strstr.c: New file.
1614         * lib/unistr/u16-strstr.c: New file.
1615         * lib/unistr/u32-strstr.c: New file.
1616         * lib/unistr/u-strstr.h: New file.
1617
1618         * modules/unistr/u8-strtok: New file.
1619         * modules/unistr/u16-strtok: New file.
1620         * modules/unistr/u32-strtok: New file.
1621         * lib/unistr/u8-strtok.c: New file.
1622         * lib/unistr/u16-strtok.c: New file.
1623         * lib/unistr/u32-strtok.c: New file.
1624         * lib/unistr/u-strtok.h: New file.
1625
1626         * modules/unistr/u8-uctomb: New file.
1627         * modules/unistr/u16-uctomb: New file.
1628         * modules/unistr/u32-uctomb: New file.
1629         * lib/unistr/u8-uctomb.c: New file.
1630         * lib/unistr/u16-uctomb.c: New file.
1631         * lib/unistr/u32-uctomb.c: New file.
1632
1633         * MODULES.html.sh (Unicode string functions): Add the new modules.
1634
1635 2007-01-08  Bruno Haible  <bruno@clisp.org>
1636
1637         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
1638         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
1639         subdirectories.
1640
1641 2007-01-08  Karl Berry  <karl@gnu.org>
1642
1643         * doc/error.texi: mention that main() fns must set program_name
1644         when progname is used.
1645
1646 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
1647
1648         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
1649         WCTYPE_H is empty, for the benefit of builds from non-distclean
1650         directories.  Problem reported by Eric Blake in
1651         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
1652
1653 2007-01-08  Bruno Haible  <bruno@clisp.org>
1654
1655         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
1656         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
1657         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
1658         PROVIDE_CANONICALIZE_FILENAME_MODE.
1659         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
1660
1661 2007-01-08  Bruno Haible  <bruno@clisp.org>
1662
1663         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
1664         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
1665         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
1666         * lib/fts.c: Likewise.
1667         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
1668
1669 2006-12-25  Bruno Haible  <bruno@clisp.org>
1670
1671         * modules/utf8-ucs4-safe: New file.
1672         * lib/utf8-ucs4-safe.h: New file.
1673         * lib/unistr/utf8-ucs4-safe.c: New file.
1674
1675         * modules/utf16-ucs4-safe: New file.
1676         * lib/utf16-ucs4-safe.h: New file.
1677         * lib/unistr/utf16-ucs4-safe.c: New file.
1678
1679         * MODULES.html.sh (Unicode string functions): Add the new modules.
1680
1681 2007-01-08  Bruno Haible  <bruno@clisp.org>
1682
1683         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
1684         (Depends-on): Add unitypes.
1685         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
1686         (u8_mbtouc_aux): Move out to separate file.
1687         (u8_mbtouc): Use ucs4_t, uint8_t types.
1688         * lib/unistr/utf8-ucs4.c: New file.
1689
1690         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
1691         (Depends-on): Add unitypes.
1692         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
1693         (u16_mbtouc_aux): Move out to separate file.
1694         (u16_mbtouc): Use ucs4_t, uint16_t types.
1695         * lib/unistr/utf16-ucs4.c: New file.
1696
1697         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
1698         (Depends-on): Add unitypes.
1699         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
1700         (u8_uctomb_aux): Move out to separate file.
1701         (u8_uctomb): Use ucs4_t, uint8_t types.
1702         * lib/unistr/ucs4-utf8.c: New file.
1703
1704         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
1705         (Depends-on): Add unitypes.
1706         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
1707         (u16_uctomb_aux): Move out to separate file.
1708         (u16_uctomb): Use ucs4_t, uint16_t types.
1709         * lib/unistr/ucs4-utf16.c: New file.
1710
1711 2006-12-25  Bruno Haible  <bruno@clisp.org>
1712
1713         * modules/unitypes: New file.
1714         * lib/unitypes.h: New file.
1715         * MODULES.html.sh (func_all_modules): New section "Unicode string
1716         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
1717         this section. Add unitypes.
1718
1719 2007-01-08  Bruno Haible  <bruno@clisp.org>
1720
1721         Avoid variable names that conflict with those from libtool.
1722         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
1723         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
1724         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
1725         library_names_spec to acl_library_names_spec, hardcode_* to
1726         acl_hardcode_*.
1727         Reported by Ralf Wildenhues.
1728
1729 2007-01-08  Bruno Haible  <bruno@clisp.org>
1730
1731         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
1732         definition.
1733         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
1734         definition.
1735         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
1736         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
1737         definition.
1738         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
1739         definition.
1740         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
1741         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
1742         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
1743         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
1744         definition.
1745         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
1746         definition.
1747         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
1748         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
1749         GC_USE_<algorithm>.
1750         * lib/gc-libgcrypt.c: Likewise.
1751         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
1752         * modules/gc-arctwo (configure.ac): Likewise.
1753         * modules/gc-des (configure.ac): Likewise.
1754         * modules/gc-hmac-md5 (configure.ac): Likewise.
1755         * modules/gc-hmac-sha1 (configure.ac): Likewise.
1756         * modules/gc-md2 (configure.ac): Likewise.
1757         * modules/gc-md4 (configure.ac): Likewise.
1758         * modules/gc-md5 (configure.ac): Likewise.
1759         * modules/gc-random (configure.ac): Likewise.
1760         * modules/gc-rijndael (configure.ac): Likewise.
1761         * modules/gc-sha1 (configure.ac): Likewise.
1762
1763 2007-01-08  Bruno Haible  <bruno@clisp.org>
1764
1765         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
1766         macro definition.
1767         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
1768         definition.
1769         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
1770         definition.
1771         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
1772         * modules/fcntl-safer (configure.ac): Likewise.
1773         * modules/fopen-safer (configure.ac): Likewise.
1774         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
1775         GNULIB_FWRITEERROR macro definition.
1776
1777 2007-01-08  Bruno Haible  <bruno@clisp.org>
1778
1779         * m4/gnulib-common.m4: New file.
1780         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
1781         (func_get_filelist): Add m4/gnulib-common.m4.
1782
1783 2007-01-08  Bruno Haible  <bruno@clisp.org>
1784
1785         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
1786         command.
1787
1788 2007-01-08  Jim Meyering  <jim@meyering.net>
1789
1790         Use a more robust test for a "can't happen" condition.
1791         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
1792         narrowed the st_size value.  Presuming the "can't happen" condition
1793         is true, that narrowing could conceivably convert an invalid st_size
1794         value into a valid one.  Instead, use a change based on Matthew
1795         Woehlke's original patch.
1796
1797         Slight readability improvement: use an assert-like macro
1798         in place of literal "abort ()" uses.
1799         * lib/fts.c (fts_assert): Define.
1800         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
1801         Use this macro instead of a bare 'abort'.
1802
1803 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
1804
1805         Don't worry about using IRIX 5.3's wctype.h broken definitions;
1806         simply work around them.
1807         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
1808         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
1809         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before declaring.
1810         Don't bother to define as macros, since the standard doesn't require it.
1811         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
1812         longer worry about IRIX 5.3.
1813         (HAVE_WCTYPE_CTMP_BUG): Remove.
1814
1815 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
1816
1817         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
1818         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
1819         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
1820         Problems reported by Georg Schwarz for IRIX 5.3.
1821
1822         * gnulib-tool (autoconf_minversion): Take the maximum version number
1823         found, not the minimum.  Problem reported by James Youngman.
1824
1825 2007-01-03  Karl Berry  <karl@gnu.org>
1826
1827         * doc/error.texi: new file, explaining interaction with progname.
1828         * doc/gnulib.texi: include it.  Update copyright.
1829
1830 2007-01-03  Simon Josefsson  <simon@josefsson.org>
1831
1832         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
1833         AC_CANONICAL_HOST, to improve autobuild outputs.
1834
1835 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
1836             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
1837
1838         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
1839         sockets, server sockets, and other file descriptors.  Count errors
1840         to compute the return value.  Reorder the code a bit to be easier
1841         to follow.  Don't set event bits that were not requested (except
1842         POLLERR and POLLHUP).
1843
1844 2007-01-01  Bruno Haible  <bruno@clisp.org>
1845
1846         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
1847
1848 2007-01-03  Jim Meyering  <jim@meyering.net>
1849
1850         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
1851
1852 2007-01-02  Bruno Haible  <bruno@clisp.org>
1853
1854         * modules/settime (Include): Require timespec.h.
1855         * modules/nanosleep (Include): Likewise.
1856
1857 2007-01-01  Bruno Haible  <bruno@clisp.org>
1858
1859         * gnulib-tool (func_emit_copyright_notice): Bump year.
1860         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
1861
1862 2007-01-01  Bruno Haible  <bruno@clisp.org>
1863
1864         Improve support for OpenBSD.
1865         * build-aux/config.rpath (libname_spec): Export.
1866         (library_names_spec): New variable. Export.
1867         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
1868         library_names_spec from the config.rpath output. Locate shared library
1869         through the name pattern in library_names_spec.
1870
1871 2007-01-01  Eric Blake  <ebb9@byu.net>
1872
1873         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
1874
1875 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
1876
1877         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
1878         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
1879         assume the C locale, and avoid an "eval" that could cause trouble.
1880         Problem with SORT reported by Bob Proulx.
1881
1882         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
1883         Define.  Trivial patch from Henning Nielsen Lund, originally
1884         sent to bug-grep@gnu.org today.
1885
1886 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
1887
1888         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
1889         struct stat.  Problem reported by Henning Nielsen Lund.
1890         * lib/acl.c: Include acl.h first, to check interface.  Don't
1891         bother to include sys/types.h and sys/stat.h again.
1892
1893 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
1894
1895         Import the following change from libc; problem reported by
1896         Sven Verdoolaege.
1897
1898         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
1899
1900         [BZ #1373]
1901         * lib/argp.h: Remove __NTH for __argp_usage inline function.
1902
1903 2006-12-28  Jim Meyering  <jim@meyering.net>
1904
1905         * build-aux/announce-gen: Do not assume that the package
1906         builds any of tar.gz, tar.bz2, and .xdelta files.
1907         Suggestion from Simon Josefsson.
1908
1909 2006-12-28  Simon Josefsson  <simon@josefsson.org>
1910
1911         * modules/announce-gen: New file.
1912
1913 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
1914
1915         * lib/mbchar.h: Just include <wctype.h>; the wctype module
1916         handles its gotchas now.
1917         * lib/mbswidth.c: Likewise.
1918         * lib/wcwidth.h: Likewise.
1919         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
1920         and iswcntrl; the wctype module does this stuff now.
1921         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
1922         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
1923         * modules/mbchar (Depends-on): Add wctype.
1924         * modules/mbswidth (Depends-on): Likewise.
1925         * modules/wcwidth (Depends-on): Likewise.
1926
1927 2006-12-27  Eric Blake  <ebb9@byu.net>
1928
1929         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
1930         module uses more than what <wctype.h> is required to provide.
1931
1932 2006-12-26  Eric Blake  <ebb9@byu.net>
1933
1934         * gnulib-tool (sed_extract_prog): Avoid space-tab.
1935
1936 2006-12-26  Eric Blake  <ebb9@byu.net>
1937
1938         * modules/absolute-header: New module.
1939         * modules/fcntl (Depends-on): Depend on it.
1940         * modules/inttypes (Depends-on): Likewise.
1941         * modules/stdint (Depends-on): Likewise.
1942         * modules/sys_stat (Depends-on): Likewise.
1943         * modules/wctype (Depends-on): Likewise.
1944         * MODULES.html.sh (Support for building libraries and
1945         executables): Document it.
1946
1947 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
1948
1949         * gnulib-tool (SED): Remove, undoing previous change.
1950         The problem was that it broke coreutils on Solaris, because
1951         "sed --posix" leaked into a makefile.
1952         (sed): New alias, if 'alias' and GNU sed.
1953
1954 2006-12-24  Jim Meyering  <jim@meyering.net>
1955
1956         Work around an fchownat bug in glibc-2.4:
1957         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
1958         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
1959         in spite of the -P option.
1960         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
1961         New macros.
1962         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
1963         * modules/openat (Files): Add lib/fchownat.c.
1964         * lib/openat.c (fchownat): Don't define here.  Move to...
1965         * lib/fchownat.c: ...this new file.
1966
1967 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
1968
1969         Fix bug reported by Bruno Haible in
1970         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
1971         where quotearg.c didn't compile on Mac OS X 10.2 because it
1972         lacks <wchar.h> and wint_t.
1973         * lib/wctype_.h (__wctype_wint_t): New type.
1974         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
1975         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
1976         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
1977         Arg is now of type __wctype_wint_t, not wint_t.
1978         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
1979         substitute HAVE_WINT_T.
1980         * modules/wctype (Files): Add m4/wint_t.m4.
1981         (wctype.h): Substitute HAVE_WINT_T.
1982
1983 2006-12-23  Bruno Haible  <bruno@clisp.org>
1984
1985         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
1986
1987 2006-12-23  Bruno Haible  <bruno@clisp.org>
1988
1989         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
1990         S_ISLNK.
1991         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
1992         mingw.
1993
1994 2006-12-22  Bruno Haible  <bruno@clisp.org>
1995
1996         * lib/copy-file.c: Include acl.h.
1997         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
1998         Close the file descriptors only after being done with copy_acl.
1999         * modules/copy-file (Depends-on): Add acl.
2000
2001 2006-12-22  Bruno Haible  <bruno@clisp.org>
2002
2003         * gnulib-tool (SED): New variable.
2004         Use $SED instead of sed everywhere.
2005
2006 2006-12-22  Bruno Haible  <bruno@clisp.org>
2007
2008         * modules/no-c++: New file.
2009         * m4/no-c++.m4: New file.
2010         * MODULES.html.sh (Support for building libraries and executables):
2011         Add no-c++.
2012
2013 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
2014
2015         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
2016         Include <limits.h>, and use its INT_MAX to rewrite the
2017         j loop so that it does not overflow 'int'.  Problem reported by
2018         Ralf Wildenhues in
2019         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
2020         Play it safe by shifting left by 1 rather than multiplying by 2,
2021         as GCC is less likely to optimize this away when the value
2022         is signed (when it assumes overflow leads to undefined behavior).
2023         Also, don't assume time_t uses two's complement.
2024
2025 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
2026
2027         * MODULES.html.sh: New module wctype.
2028         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
2029         * lib/fnmatch.c: Don't bother to include <wchar.h> before
2030         <wctype.h>, since the new wctype module should fix this.
2031         * lib/quotearg.c: Include <wctype.h> unconditionally, since
2032         the wctype module should arrange for it.
2033         * lib/regex_internal.h: Likewise.
2034         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
2035         since the wctype module should handle this now.
2036         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
2037         * modules/fnmatch (Depends-on): Add wctype.
2038         * modules/quotearg (Depends-on): Likewise.
2039         * modules/regex (Depends-on): Likewise.
2040
2041 2006-12-19  Bruno Haible  <bruno@clisp.org>
2042
2043         * lib/strdup.h [C++]: Wrap definitions in extern "C".
2044         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
2045
2046 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2047
2048         * modules/savewd (Depends-on): Fix dependency on fcntl.
2049
2050 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
2051
2052         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
2053         conforms to C99, rather than relying on the user's environment
2054         setting of STDINT_H.
2055
2056 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
2057         and Eric Blake  <ebb9@byu.net>
2058
2059         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
2060         This is more consistent with the other defines here.
2061         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
2062         Port to z/OS.  Problem reported by Paul Gilmartin.
2063         Change local vars to use gl_ prefix rather than ac_.
2064         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
2065         with other defines.
2066         * modules/double-slash-root: New module.
2067         * modules/dirname (Files): Remove m4/double-slash-root.m4.
2068         (Depends-on): Add double-slash-root.
2069         * MODULES.html.sh (File system functions): Mention new module.
2070
2071 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
2072
2073         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
2074         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
2075         This is for the benefit of gzip, which doesn't do i18n.
2076
2077 2006-12-12  Jim Meyering  <jim@meyering.net>
2078
2079         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
2080         Reported by Andreas Schwab <schwab@suse.de>.
2081
2082 2006-12-12  Bruno Haible  <bruno@clisp.org>
2083
2084         Merge these changes.
2085         2006-09-05  Bruno Haible  <bruno@clisp.org>
2086         * lib/iconvme.c (iconv_string): No need to save and restore errno when
2087         iconv_alloc succeeded.
2088         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
2089         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
2090         test for " && dest " at the end - dest is always != NULL there. Call
2091         iconv with 4xNULL arguments initially, to reset the state. Call iconv
2092         with 2xNULL arguments, also to flush the state storage. Handle the
2093         IRIX iconv behaviour. Realloc the final result, to throw away unused
2094         memory.
2095
2096 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
2097
2098         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
2099         and fchmodat unconditionally, since glibc 2.4 has them.
2100         Problem reported by Arkadiusz Miskiewicz.
2101
2102 2006-12-10  Bruno Haible  <bruno@clisp.org>
2103
2104         * gnulib-tool (func_import): Show the include files only for those
2105         modules that are copied and specified.
2106         Reported by Karl Berry.
2107
2108 2006-12-08  Jim Meyering  <jim@meyering.net>
2109
2110         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
2111         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
2112
2113         * build-aux/announce-gen: Add two new options, both optional:
2114         --bootstrap-tools=TOOL_LIST
2115               a comma-separated list of tools, e.g.,
2116               autoconf,automake,bison,gnulib
2117         --gnulib-snapshot-date=DATE
2118               if gnulib is in the bootstrap tool list,
2119               then report this as the snapshot date.
2120               If not specified, use the current date/time.
2121               If you specify a date here, be sure it's UTC.
2122
2123 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2124
2125         * tests/test-argp-2.sh: Fix test to match actual output.
2126         (func_compare): Fix sed script to be portable.
2127
2128 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
2129
2130         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
2131         workaround for this case.  It is not autoconfigured now; offhand
2132         it's hard to see how to autoconfigure it.
2133
2134 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
2135
2136         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
2137         a directory that is about to be chowned.  Such a directory's
2138         initial file permissions should permit the owner only and this
2139         should not be changed until after the chown, since the group and
2140         other bits would be incorrect if they granted permission before
2141         the chown.
2142
2143         Fix porting problem for iswctype reported by Georg Schwarz in:
2144         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
2145         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
2146         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
2147         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
2148         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
2149
2150 2006-12-03  Jim Meyering  <jim@meyering.net>
2151
2152         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
2153         p->fts_statp may not yet be defined.
2154         (fts_read): Instead, set it in the caller, once p->fts_statp is
2155         sure to be defined, and corresponds to a top-level directory.
2156         This bug made du -x fail.  Here's the coreutils test case:
2157         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
2158         Reported by Mike Frysinger.
2159
2160 2006-12-01  Jim Meyering  <jim@meyering.net>
2161
2162         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
2163         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
2164         Reported by Simon Josefsson.
2165
2166 2006-11-30  Jim Meyering  <jim@meyering.net>
2167
2168         * m4/warning.m4: Use the all-permissive copyright notice
2169         recommended by RMS (rather than LGPL).
2170         * m4/vararrays.m4: Likewise.
2171         * m4/flexmember.m4: Likewise.
2172
2173 2006-11-29  Bruno Haible  <bruno@clisp.org>
2174
2175         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
2176         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
2177         using +=.
2178         Reported by Simon Josefsson <simon@josefsson.org>.
2179
2180 2006-11-28  James Youngman <jay@gnu.org>
2181
2182         * README: Advise users that they might find the bug-gnulib@gnu.org
2183         and autotools-announce@gnu.org mailing lists useful.
2184
2185 2006-11-28  Bruno Haible  <bruno@clisp.org>
2186
2187         * m4/ptrdiff_max.m4: Remove file.
2188
2189 2006-11-21  Bruno Haible  <bruno@clisp.org>
2190
2191         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
2192         _AC_COMPUTE_INT.
2193         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
2194         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
2195         _AC_COMPUTE_INT.
2196         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
2197         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
2198         _AC_COMPUTE_INT.
2199         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
2200
2201 2006-11-28  Jim Meyering  <jim@meyering.net>
2202
2203         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
2204         warning from "gcc -Wshadow" about shadowing the builtin.
2205
2206 2006-11-27  Bruno Haible  <bruno@clisp.org>
2207
2208         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
2209         _AC_COMPUTE_INT.
2210         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
2211
2212 2006-11-27  Bruno Haible  <bruno@clisp.org>
2213             Paul Eggert  <eggert@cs.ucla.edu>
2214
2215         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
2216
2217 2006-11-26  Bruno Haible  <bruno@clisp.org>
2218
2219         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
2220         noinst_LTLIBRARIES.
2221
2222 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
2223             Bruno Haible  <bruno@clisp.org>
2224
2225         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
2226         if compiling with "gcc -ansi".
2227
2228 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
2229
2230         Fix some incompatibilities with gcc -ansi -pedantic.
2231         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
2232         if compiling pedantically with GCC, unless it's C99 or later.
2233         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
2234         it mishandles gcc -ansi -pedantic as well.
2235         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
2236         if gcc -pedantic.
2237         * lib/regexec.c (check_node_accept_bytes): Don't use auto
2238         initializers for struct if -pedantic, unless it's C99 or later.
2239
2240 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
2241
2242         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
2243         Don't close an fd more than once. Identical atimes indicate
2244         success, not failure.
2245
2246 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
2247
2248         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
2249
2250 2006-11-23  Jim Meyering  <jim@meyering.net>
2251
2252         * build-aux/announce-gen: New file.  From coreutils.
2253
2254 2006-11-22  Jim Meyering  <jim@meyering.net>
2255
2256         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
2257         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
2258         (fts_read): Use a temporary to narrow the overused st_size member
2259         before using it in a switch statement.  Reported by Matthew Woehlke.
2260
2261         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
2262         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
2263
2264 2006-11-20  Bruno Haible  <bruno@clisp.org>
2265
2266         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
2267         changequote instead of pairs of brackets.
2268         Reported by Andreas Schwab <schwab@suse.de>.
2269
2270 2006-11-21  Jim Meyering  <jim@meyering.net>
2271
2272         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
2273         so as to remain compatible with older compilers.
2274         Patch from Michael Deutschmann.
2275
2276 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
2277
2278         * MODULES.html.sh (File system functions): Add openat.
2279
2280         * lib/openat.h (rpl_fstatat): New macro, if
2281         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
2282         (fstatat): Define to rpl_fstatat under the same conditions,
2283         unless COMPILING_FSTATAT.
2284         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
2285         seems to have the bug.
2286         * lib/fstatat.c: New file.
2287         * modules/openat (Files): Add it.
2288
2289 2006-11-20  Bruno Haible  <bruno@clisp.org>
2290
2291         * Makefile: New file.
2292
2293 2006-11-20  Jim Meyering  <jim@meyering.net>
2294
2295         The beginnings of syntax-related checks for gnulib.
2296         * lib/Makefile: New file.
2297         * lib/t-idcache: New script.  Ensure that the two halves of
2298         idcache.c stay in sync.
2299
2300         * lib/idcache.c: Adjust comments in user- and group- portions to
2301         be more accurate, and to be consistent with one another.
2302
2303 2006-11-20  Jim Meyering  <jim@meyering.net>
2304
2305         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
2306         continue using the flexible array member (thus, this module performs
2307         half as many malloc calls), with the addition that...
2308         (getgroup, getuser): Consistently record a non-match via an empty
2309         "name" string, and map an empty string match to a NULL return value.
2310         * modules/idcache (Depends-on): Re-add flexmember.
2311
2312         * lib/idcache.c (getuser): Remove all uses of the register keyword.
2313         (getuidbyname, getgroup, getgidbyname): Likewise.
2314
2315         Use cleaner syntax: NULL rather than 0.
2316         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
2317
2318 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
2319
2320         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
2321         It mishandled the case where the group was missing.
2322         Problem reported by Greg Schafer.
2323         * modules/idcache: Likewise.
2324
2325 2006-11-18  Jim Meyering  <jim@meyering.net>
2326
2327         * check-module (%exempt_header): Add exception for some
2328         conditionally-included headers.
2329
2330         * modules/i-ring (Depends-on): Add verify.
2331         (License): Change to LGPL.
2332
2333 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
2334
2335         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
2336         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
2337         and inttostr.h.  Use snprintf rather than uinttostr, so that
2338         LGPLed code doesn't depend on GPLed.
2339
2340 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
2341
2342         * modules/inline (License): Change from GPL to LGPL.
2343
2344 2006-11-17  Jim Meyering  <jim@meyering.net>
2345
2346         * modules/d-type (License): Switch to LGPL.
2347
2348 2006-11-15  Bruno Haible  <bruno@clisp.org>
2349
2350         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
2351
2352 2006-11-15  Eric Blake  <ebb9@byu.net>
2353
2354         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
2355         the module dependency.
2356
2357 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
2358             Bruno Haible  <bruno@clisp.org>
2359
2360         * gnulib-tool (func_create_testdir): Add license consistency check.
2361
2362 2006-11-15  Eric Blake  <ebb9@byu.net>
2363
2364         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
2365         random "(cached)" in configure output.
2366
2367 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2368
2369         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
2370         test for conforming inttypes.h is both announced and cached.
2371
2372         * MODULES.html.sh (seen_modules, seen_files): New variables.
2373         (func_module): Rewrite to use a few less gnulib-tool and sed
2374         invocations.  Avoid a couple of quadratic algorithms for ...
2375         (missed_modules, missed_files): ... these, with ...
2376         (func_append, func_tmpdir): ... these new functions, from
2377         gnulib-tool.  Analogously, install traps for cleanup.
2378
2379         * tests/test-gc.c (main): Remove unused variables.
2380         * tests/test-read-file.c: Include stdlib.h, for 'free'.
2381
2382 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
2383
2384         * modules/inttostr (License): Change to LGPL.
2385
2386 2006-11-14  Eric Blake  <ebb9@byu.net>
2387
2388         * modules/tempname (License): Change to LGPL.
2389
2390 2006-11-14  Eric Blake  <ebb9@byu.net>
2391
2392         * doc/functions.texi (Function Portability): *printf functions on
2393         Cygwin now understand all POSIX size specifiers.
2394
2395 2006-11-14  Bruno Haible  <bruno@clisp.org>
2396
2397         * modules/c-ctype (License): Change to LGPL.
2398
2399 2006-11-12  Bruno Haible  <bruno@clisp.org>
2400
2401         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
2402         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
2403         for GNOME libraries, for which the include files are installed in
2404         subdirectories of $prefix/include.
2405
2406 2006-11-12  Bruno Haible  <bruno@clisp.org>
2407
2408         * m4/lib-link.m4: Require at least autoconf-2.54.
2409         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
2410         name to underscores for the --with option.
2411
2412 2006-11-13  Bruno Haible  <bruno@clisp.org>
2413
2414         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
2415         the tests directory.
2416         Reported by Ralf Wildenhues.
2417
2418 2006-11-13  Bruno Haible  <bruno@clisp.org>
2419
2420         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
2421         (func_emit_initmacro_end): Undo the override here.
2422         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
2423         Works around the famous automake error in coreutils.
2424
2425 2006-11-13  Eric Blake  <ebb9@byu.net>
2426
2427         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
2428         element, not its node.
2429
2430 2006-11-12  Bruno Haible  <bruno@clisp.org>
2431
2432         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
2433         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
2434
2435 2006-11-12  Bruno Haible  <bruno@clisp.org>
2436
2437         * gnulib-tool: New option --local-symlink.
2438         (func_usage): Document it.
2439         (lsymbolic): New variable.
2440         (func_import, func_create_testdir): If --symlink was not specified,
2441         test whether --local-symlink was specified and the file comes from
2442         the local_gnulib_dir.
2443
2444 2006-11-12  Bruno Haible  <bruno@clisp.org>
2445
2446         * gnulib-tool (func_ln): New function.
2447         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
2448
2449 2006-11-12  Bruno Haible  <bruno@clisp.org>
2450
2451         Finish support for source files in subdirectories.
2452         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
2453         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
2454         AUTOMAKE_OPTIONS.
2455         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
2456
2457 2006-11-12  Bruno Haible  <bruno@clisp.org>
2458
2459         * gnulib-tool (func_get_automake_snippet): Synthesize also an
2460         EXTRA_lib_SOURCES augmentation.
2461         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
2462
2463 2006-11-12  Jim Meyering  <jim@meyering.net>
2464
2465         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
2466         file descriptors.  This also averts a failure on systems with
2467         native openat support when a traversed directory lacks "x" access.
2468         * lib/fts_.h: Include "i-ring.h"
2469         (struct FTS) [fts_fd_ring]: New member.
2470         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
2471         (FCHDIR): Add parentheses.
2472         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
2473         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
2474         When descending, rather than simply closing the previous
2475         fts_cwd_fd value, push that file descriptor onto the ring.
2476         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
2477         (fts_open): Initialize the new fd_ring member.
2478         (fts_close): Clear the ring.
2479         (fts_safe_changedir): When possible, use our new fd_ring to skip
2480         the diropen and fstat and dev/ino comparison that would normally
2481         accompany a virtual `chdir ("..")'.
2482
2483         * modules/fts (Depends-on): Add i-ring.
2484         * modules/i-ring: New module.
2485         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
2486         * m4/i-ring.m4: New file.
2487
2488 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2489
2490         * gnulib-tool (func_create_testdir): Fix replacement of
2491         `build-aux' in configure.ac.  Run autotools in gltests
2492         subdirectory.
2493         (func_create_testdir, func_create_megatestdir, test): There is
2494         no need for '--force' in most autotool invocations in a new
2495         tree.  Actually fail the whole test if any of the tools, or the
2496         configure or make stages fail.
2497
2498         Sync from Automake.
2499         * build-aux/gnupload: Revert last change.  Add pointer to upload
2500         instructions of the GNU Maintenance Instructions.
2501         Suggestion by Karl Berry.
2502
2503 2006-11-10  Jim Meyering  <jim@meyering.net>
2504
2505         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
2506
2507 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
2508
2509         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
2510         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
2511         (bind_textdomain_codeset) [! ENABLE_NLS]:
2512         Evaluate all the arguments.  That way, callers get compatible behavior
2513         if the arguments have side effects.  Also, it avoids some GCC
2514         diagnostics in some cases; Joel E. Denny reported problems when Bison
2515         was configured with --enable-gcc-warnigs.
2516
2517 2006-11-10  Jim Meyering  <jim@meyering.net>
2518
2519         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
2520         relevant options in CFLAGS (like -O, -fno-inline) are taken into
2521         account.
2522
2523 2006-11-10  Jim Meyering  <jim@meyering.net>
2524
2525         * modules/inline: New file/module.
2526         * modules/xalloc (Files): Remove m4/inline.m4.
2527         (Depends-on): Add inline, instead.
2528         * modules/oset: Likewise.
2529         * modules/list: Likewise.
2530
2531 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
2532
2533         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
2534         Problem reported by Matthew Woehlke.
2535
2536 2006-11-09  Bruno Haible  <bruno@clisp.org>
2537
2538         * lib/tempname.c (gen_tempname): Remove variant that invokes
2539         __gen_tempname.
2540         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
2541         __gen_tempname.
2542
2543 2006-11-08  Bruno Haible  <bruno@clisp.org>
2544
2545         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
2546         to 'yes' instead of 'cross-compiling'.
2547
2548 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
2549
2550         * lib/quotearg.h (quotearg_free): New decl.
2551         * lib/quotearg.c (quotearg_free): New function.
2552         (slot0, nslots, slotvec0, slotvec):
2553         Now file-scope so that quotearg_free can get at them.
2554
2555 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2556
2557         Sync from Automake.
2558         * build-aux/gnupload: Add missing 'gnu' to example URL.
2559         Report by Karl Berry.
2560
2561 2006-11-08  Bruno Haible  <bruno@clisp.org>
2562
2563         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
2564         Suggested by Paul Eggert.
2565
2566 2006-11-08  Jim Meyering  <jim@meyering.net>
2567
2568         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
2569         It's already included if !_LIBC.
2570         (fts_safe_changedir): Add a comment.
2571
2572 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
2573
2574         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
2575         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
2576         Matthew Woehlke.
2577
2578         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
2579         definitions up, to avoid colliding with change below.
2580         (static_inline) [HAVE_INLINE]: New macro.
2581         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
2582         Provide extern decls when !HAVE_INLINE.  Do not define unless
2583         static_inline is defined, either by us or by xmalloc.c.  Use
2584         static_inline rather than static inline.
2585         (XCALLOC): Optimize sizeof(T) = 1 case.
2586         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
2587
2588 2006-11-07  Bruno Haible  <bruno@clisp.org>
2589
2590         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
2591         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
2592         AC_C_INLINE.
2593         * modules/xalloc (Files): Add m4/inline.m4.
2594
2595 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2596
2597         * README: Fix typo.
2598         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
2599         (Miscellanous Notes): ...from this.
2600
2601 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
2602
2603         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
2604         Mention that offsetof should be used instead of sizeof.
2605         From Bruno Haible.
2606
2607 2006-11-07  Bruno Haible  <bruno@clisp.org>
2608
2609         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
2610
2611 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
2612
2613         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
2614         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
2615         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
2616         (gl_tree_add_before, gl_tree_add_after):
2617         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
2618         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
2619         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
2620         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
2621         (gl_linked_add_after, gl_linked_add_at): Likewise.
2622         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
2623         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
2624         (gl_tree_add_before, gl_tree_add_after): Likewise.
2625         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
2626         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
2627         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
2628
2629 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2630
2631         * lib/gl_oset.h: Use C comment style, not C++ comment style.
2632
2633 2006-11-06  Bruno Haible  <bruno@clisp.org>
2634
2635         * m4/inline.m4: New file.
2636         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
2637         * modules/list (Files): Add m4/inline.m4.
2638         * modules/oset (Files): Likewise.
2639
2640 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
2641
2642         * lib/idcache.c: Include <stddef.h>, for offsetof.
2643         (struct userid.name): Change from char * to a flexible array member.
2644         All uses changed.
2645         * modules/idcache (Depends-on): Add flexmember.
2646
2647         * MODULES.html.sh (Core language properties): New module flexmember.
2648         * modules/flexmember, m4/flexmember.m4: New files.
2649
2650         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
2651         inline functions that are identical with the old xnmalloc_inline,
2652         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
2653         that we can avoid some unnecessary integer multiplications and
2654         divisions in the common case where the element size is known at
2655         compile time.
2656         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
2657         needed.
2658         (xnboundedmalloc): Remove.
2659         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
2660         arguments, for consistency with rest of this header.
2661         (xcharalloc): Rewrite using XNMALLOC.
2662         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
2663         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
2664         versions have been moved to lib/xalloc.h and renamed to be the
2665         non-*_inline versions.
2666         (xmalloc, xrealloc): Implement without reference to the xnmalloc
2667         and xnrealloc functions, since those functions are now inline and
2668         now call us.
2669         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
2670         renaming described above.
2671         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
2672         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
2673         captures the dependency in AC_C_INLINE.
2674
2675         New module canonicalize-lgpl, proposed by Charles Wilson in
2676         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
2677         with a few small changes afterwards.
2678         * MODULES.html.sh (File system functions): New module
2679         canonicalize-lgpl.
2680         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
2681         and canonicalize_file_name.
2682         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
2683         * modules/canonicalize-lgpl: New files.
2684
2685 2006-11-05  Bruno Haible  <bruno@clisp.org>
2686
2687         * gnulib-tool (func_import, func_create_testdir): Create directories
2688         also for files in subdirectories of lib/.
2689
2690 2006-11-05  Bruno Haible  <bruno@clisp.org>
2691
2692         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
2693         ANSI C compliant.
2694
2695 2006-11-03  Bruno Haible  <bruno@clisp.org>
2696
2697         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
2698         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
2699         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
2700         (xnboundedmalloc): New inline function.
2701         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
2702         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
2703         xmalloc.
2704         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
2705         xmalloc.
2706         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
2707         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
2708         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
2709         xmalloc.
2710         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
2711         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
2712         xmalloc.
2713         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
2714         gl_tree_add_after): Use XMALLOC instead of xmalloc.
2715         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
2716         xmalloc.
2717         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
2718         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
2719         gl_tree_add_after): Use XMALLOC instead of xmalloc.
2720         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
2721         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
2722         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
2723         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
2724
2725 2006-11-03  Bruno Haible  <bruno@clisp.org>
2726
2727         * lib/c-ctype.h [C++]: Define functions without name mangling.
2728         * lib/fwriteerror.h [C++]: Likewise.
2729         * lib/gcd.h [C++]: Likewise.
2730         * lib/linebreak.h [C++]: Likewise.
2731
2732 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
2733
2734         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
2735         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
2736         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
2737         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
2738         Check for functions and headers just once.
2739         Check for declaration of canonicalize_file_name.
2740         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
2741
2742 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
2743
2744         * gnulib-tool (func_import): Fix typo in actioncmd.
2745
2746 2006-11-02  Bruno Haible  <bruno@clisp.org>
2747
2748         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
2749         newline sequence in the Makefile.am snippet as a space, like "make"
2750         does.
2751         Reported by Roger Persson <perrog@gmail.com>.
2752
2753 2006-11-01  Bruno Haible  <bruno@clisp.org>
2754
2755         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
2756         already declared in <string.h>.
2757         * lib/strcase.h (strncasecmp): Don't declare it if yes.
2758
2759 2006-11-01  Bruno Haible  <bruno@clisp.org>
2760
2761         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
2762         * lib/strcase.h: Include <string.h>.
2763         (strcasecmp): Define to rpl_strcasecmp here.
2764
2765 2006-11-01  Bruno Haible  <bruno@clisp.org>
2766
2767         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
2768
2769 2006-11-01  Eric Blake  <ebb9@byu.net>
2770
2771         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
2772
2773         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
2774
2775 2006-10-29  Bruno Haible  <bruno@clisp.org>
2776
2777         Make it compile in C++ mode.
2778         * lib/full-write.c (full_rw): Add a cast.
2779
2780 2006-11-01  Bruno Haible  <bruno@clisp.org>
2781
2782         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
2783         be POSIX compliant.
2784         Reported by Roger Persson <perrog@gmail.com>.
2785
2786 2006-11-01  Eric Blake  <ebb9@byu.net>
2787
2788         * lib/getopt_.h: Fix comments.
2789
2790 2006-10-31  Eric Blake  <ebb9@byu.net>
2791
2792         * modules/tmpdir (Depends-on): Add sys_stat.
2793         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
2794         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
2795         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
2796         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
2797         tempname.
2798
2799 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
2800
2801         Avoid some C++ diagnostics reported by Bruno Haible.
2802         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
2803         xmalloc.
2804         (quotearg_alloc): Use xcharalloc rather than xmalloc.
2805         (struct slotvec): Move to top level.
2806         (quotearg_n_options): Rewrite to avoid xmalloc.
2807         * lib/xalloc.h (xcharalloc): New function.
2808         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
2809         [defined __cplusplus]: Add function template that provides result
2810         type propagation.  This part of the change is from Bruno Haible.
2811
2812 2006-10-29  Bruno Haible  <bruno@clisp.org>
2813
2814         Make it compile in C++ mode.
2815         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
2816         * lib/strnlen1.c (strnlen1): Cast memchr result.
2817         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
2818         * lib/clean-temp.c (string_equals, string_hash): Add casts.
2819         (create_temp_dir): Rename local variable 'template'.
2820         (compile_csharp_using_sscli): Add cast.
2821         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
2822         * lib/findprog.c (find_in_path): Likewise.
2823         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
2824         * lib/wait-process.c (register_slave_subprocess): Likewise.
2825
2826 2006-10-22  Bruno Haible  <bruno@clisp.org>
2827
2828         * modules/tsearch: New file.
2829         * lib/tsearch.h: New file.
2830         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
2831         * m4/tsearch.m4: New file.
2832         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
2833
2834 2006-10-29  Eric Blake  <ebb9@byu.net>
2835
2836         * lib/arcfour.c: Assume config.h.
2837         * lib/arctwo.c: Likewise.
2838         * lib/base64.c: Likewise.
2839         * lib/check-version.c: Likewise.
2840         * lib/crc.c: Likewise.
2841         * lib/des.c: Likewise.
2842         * lib/gc-gnulib.c: Likewise.
2843         * lib/gc-libgcrypt.c: Likewise.
2844         * lib/gc-pbkdf2-sha1.c: Likewise.
2845         * lib/getaddrinfo.c: Likewise.
2846         * lib/getdelim.c: Likewise.
2847         * lib/getline.c: Likewise.
2848         * lib/hmac-md5.c: Likewise.
2849         * lib/hmac-sha1.c: Likewise.
2850         * lib/iconvme.c: Likewise.
2851         * lib/md2.c: Likewise.
2852         * lib/md4.c: Likewise.
2853         * lib/memxor.c: Likewise.
2854         * lib/read-file.c: Likewise.
2855         * lib/readline.c: Likewise.
2856         * lib/rijndael-alg-fst.c: Likewise.
2857         * lib/rijndael-api-fst.c: Likewise.
2858         * lib/xgetdomainname.c: Likewise.
2859
2860 2006-10-28  Eric Blake  <ebb9@byu.net>
2861
2862         * lib/xstrndup.c: Assume config.h.
2863
2864 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
2865
2866         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
2867         stat-macros.h is now for our own macros, whereas stat_h is for
2868         macros in the <sys/stat.h> name space.
2869         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
2870         (STAT_MACROS_H): Remove.
2871         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
2872         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
2873         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
2874         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
2875         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
2876         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
2877         Move these macros to ...
2878         * lib/stat_.h: here.  Don't include stat-macros.h.
2879         * lib/canonicalize.c: Don't include stat-macros.h.
2880         * lib/chown.c: Likewise.
2881         * lib/euidaccess.c: Likewise.
2882         * lib/file-type.c: Likewise.
2883         * lib/filemode.c: Likewise.
2884         * lib/glob.c: Likewise.
2885         * lib/isapipe.c: Likewise.
2886         * lib/lchown.c: Likewise.
2887         * lib/lstat.c: Likewise.
2888         * lib/mkdir-p.c: Likewise.
2889         * lib/rmdir.c: Likewise.
2890         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
2891         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
2892         unless mkdir isn't declared, to speed up 'configure'.
2893         Always create sys/stat.h, since it's unlikely any real sys/stat.h
2894         would define all the S_* symbols.
2895         * modules/canonicalize (Depends-on):
2896         Depend on sys_stat, not stat-macros.
2897         * modules/chown: Likewise.
2898         * modules/euidaccess: Likewise.
2899         * modules/filemode: Likewise.
2900         * modules/file-type: Likewise.
2901         * modules/glob: Likewise.
2902         * modules/isapipe: Likewise.
2903         * modules/lchown: Likewise.
2904         * modules/lstat: Likewise.
2905         * modules/mkancesdirs: Likewise.
2906         * modules/rmdir: Likewise.
2907         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
2908         * modules/modechange: Likewise.
2909         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
2910         (configure.ac): Remove gl_STAT_MACROS.
2911         * modules/sys_stat (Depends-on): Remove stat-macros.
2912
2913 2006-10-27  Bruno Haible  <bruno@clisp.org>
2914
2915         * m4/signed.m4: Remove file.
2916         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
2917         invocation.
2918         * modules/vasnprintf (Files): Remove m4/signed.m4.
2919
2920 2006-10-27  Bruno Haible  <bruno@clisp.org>
2921
2922         Update to GNU gettext 0.16.
2923         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
2924         m4/inttypes-h.m4, m4/signed.m4.
2925         * m4/gettext.m4: Update to GNU gettext 0.16.
2926         * m4/intl.m4: New file, from GNU gettext.
2927         * m4/intldir.m4: New file, from GNU gettext.
2928         * config/srclist.txt: Update
2929
2930 2006-10-27  Eric Blake  <ebb9@byu.net>
2931
2932         * MODULES.html.sh: Document tempname.
2933         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
2934         dependencies.
2935         (Files): Move lib/tempname.c...
2936         * modules/tempname: ...to this new module.
2937         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
2938         (gl_PREREQ_TEMPNAME): Move...
2939         * m4/tempname.m4: ...to this new file.
2940         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
2941         * modules/sys_stat (Depends-on): Add stat-macros.
2942         * lib/stat_.h (includes): Pick up stat macros.
2943         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
2944         if stat macros are broken.
2945         * lib/tempname.c (includes): No need to include "stat-macros.h".
2946         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
2947         (direxists, __path_search) [!_LIBC]: Don't compile these in
2948         gnulib; the tmpdir module covers that.
2949         * lib/tempname.h: New file.
2950
2951 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
2952
2953         * COPYING: Explain how gnulib-tool converts licence headers.
2954         Almost all wording by Eric Blake.
2955
2956 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
2957
2958         * lib/mbchar.h (is_basic_table): Make read-only.
2959         * lib/mbchar.c (is_basic_table): Likewise.
2960         Reported by John Darrington.
2961
2962 2006-10-25  Bruno Haible  <bruno@clisp.org>
2963
2964         * lib/progname.h (set_program_name): Undefine before defining.
2965
2966 2006-10-25  Bruno Haible  <bruno@clisp.org>
2967
2968         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
2969         false for non-gcc C++ compilers.
2970         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
2971
2972 2006-10-24  Bruno Haible  <bruno@clisp.org>
2973
2974         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
2975         iconv implementations like Irix iconv.
2976
2977 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
2978
2979         * modules/vararrays: New file.
2980         * m4/vararrays.m4: New file, taken from diffutils.
2981         * MODULES.html.sh: New module vararrays.
2982
2983 2006-10-24  Karl Berry  <karl@gnu.org>
2984
2985         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
2986         Don't call GNU Unix.
2987
2988 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2989
2990         * users.txt: Add Libtool.
2991
2992         Sync from Libtool:
2993
2994         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
2995
2996         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
2997         to gnulib's policy of including config.h unconditionally.
2998
2999 2006-10-24  Bruno Haible  <bruno@clisp.org>
3000
3001         * modules/wcwidth (Files): Add m4/wint_t.m4.
3002         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
3003         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
3004
3005 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
3006
3007         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
3008         to pacify GCC with some -W flags enabled.  Problem reported by
3009         Bruno Haible.
3010
3011 2006-10-24  Jim Meyering  <jim@meyering.net>
3012
3013         * MODULES.html.sh: Remove uinttostr.  It's not a module.
3014         Reported by Karl Berry.
3015
3016 2006-10-23  Bruno Haible  <bruno@clisp.org>
3017
3018         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
3019
3020 2006-10-24  Bruno Haible  <bruno@clisp.org>
3021
3022         * lib/gl_list.h: Use C comment style, not C++ comment style.
3023
3024 2006-10-23  Eric Blake  <ebb9@byu.net>
3025
3026         * lib/getaddrinfo.c (includes): Add missing include.
3027
3028 2006-10-23  Bruno Haible  <bruno@clisp.org>
3029             Paul Eggert  <eggert@cs.ucla.edu>
3030
3031         Ability to rename obstack_free.
3032         * lib/obstack.h (__obstack_free): New macro. Declare instead of
3033         obstack_free.
3034         (obstack_free): Invoke the __obstack_free macro.
3035         * lib/obstack.c (obstack_free): Use __obstack_free macro.
3036
3037 2006-10-23  Bruno Haible  <bruno@clisp.org>
3038             Paul Eggert  <eggert@cs.ucla.edu>
3039
3040         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
3041         __argc, __argv from the declaration. (They are defined as macros on
3042         mingw.)
3043
3044 2006-10-22  Bruno Haible  <bruno@clisp.org>
3045
3046         * doc/gnulib-intro.texi: New file.
3047         * doc/gnulib.texi: Include it.
3048
3049 2006-10-21  Bruno Haible  <bruno@clisp.org>
3050
3051         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
3052         "Introduction", "Miscellanous Notes", "Particular Modules".
3053
3054 2006-10-21  Bruno Haible  <bruno@clisp.org>
3055
3056         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
3057         Change mostlyclean-local rule to avoid sh syntax error from bash
3058         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
3059
3060 2006-10-23  Jim Meyering  <jim@meyering.net>
3061
3062         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
3063         in place of snprintf.
3064
3065         * modules/inttostr (Files): Add lib/uinttostr.c.
3066         * lib/uinttostr.c (inttostr): New file/function.
3067         * lib/inttostr.h (uinttostr): Declare.
3068         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
3069         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
3070         Add uinttostr.
3071         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
3072
3073 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
3074
3075         * lib/canonicalize.c (ELOOP): Define if not already defined.
3076         Problem reported by Bruno Haible in
3077         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
3078
3079 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
3080
3081         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
3082         Problem reported by Perry Smith and Ville Laurikari.
3083
3084         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
3085         uses.
3086
3087 2006-10-19  Bruno Haible  <bruno@clisp.org>
3088
3089         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
3090         for mingw.
3091
3092 2006-10-19  Bruno Haible  <bruno@clisp.org>
3093
3094         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
3095         Needed for mingw.
3096
3097 2006-10-19  Bruno Haible  <bruno@clisp.org>
3098
3099         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
3100
3101 2006-10-19  Bruno Haible  <bruno@clisp.org>
3102
3103         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
3104         it.
3105
3106 2006-10-19  Bruno Haible  <bruno@clisp.org>
3107
3108         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
3109         invocation.
3110
3111 2006-10-19  Bruno Haible  <bruno@clisp.org>
3112
3113         * gnulib-tool (func_create_testdir): Don't include ftruncate and
3114         mountlist by default.
3115
3116 2006-10-16  Bruno Haible  <bruno@clisp.org>
3117
3118         * lib/c-strstr.c: Include c-strstr.h.
3119
3120 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
3121
3122         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
3123         in a slash.
3124
3125 2006-10-18  Bruno Haible  <bruno@clisp.org>
3126
3127         * lib/lock.h [C++]: Wrap definitions in extern "C".
3128
3129 2006-10-18  Bruno Haible  <bruno@clisp.org>
3130
3131         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
3132         gl_LIBOBJS list.
3133
3134 2006-10-18  Bruno Haible  <bruno@clisp.org>
3135
3136         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
3137
3138 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
3139
3140         * lib/xstrtol.h: Include gettext.h.
3141         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
3142         Problem reported by Eric Blake.
3143         * modules/xstrtol (Depends-on): Add gettext-h.
3144
3145 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
3146
3147         * lib/strftime.c (advance): New macro.
3148         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
3149         incomplete type, so you can't add 0 to it.  Problem and patch
3150         reported by Eelco Dolstra for dietlibc.
3151
3152 2006-10-18  Jim Meyering  <jim@meyering.net>
3153
3154         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
3155         type for a local, and rename it: s/up/user_proc/.
3156
3157 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
3158
3159         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
3160         READ_UTMP_USER_PROCESS.
3161         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
3162
3163 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
3164
3165         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
3166         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
3167
3168 2006-10-17  Eric Blake  <ebb9@byu.net>
3169
3170         * lib/sigprocmask.c (sigprocmask): Fix typo.
3171
3172         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
3173
3174         * modules/clean-temp (Makefile.am): Don't add to make output...
3175         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
3176         config.h.
3177
3178 2006-10-17  Bruno Haible  <bruno@clisp.org>
3179
3180         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
3181         differently if DEFAULT_TEXT_DOMAIN is set.
3182
3183 2006-10-16  Bruno Haible  <bruno@clisp.org>
3184
3185         * lib/clean-temp.c: Include fwriteerror.h.
3186
3187 2006-10-16  Bruno Haible  <bruno@clisp.org>
3188
3189         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
3190
3191 2006-10-16  Bruno Haible  <bruno@clisp.org>
3192
3193         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
3194         * lib/sigprocmask.h: Include <sys/types.h>.
3195         (sigset_t): Use the system's definition if present.
3196
3197 2006-10-17  Eric Blake  <ebb9@byu.net>
3198
3199         * lib/xvasprintf.c (includes): Assume config.h.
3200         * lib/xasprintf.c (includes): Likewise.
3201
3202 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
3203
3204         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
3205         at least as wide as intmax_t.
3206
3207 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
3208
3209         (Imported from Automake.)
3210         * build-aux/gnupload: Update to version 1.1 of directive file.
3211
3212 2006-10-16  Eric Blake  <ebb9@byu.net>
3213
3214         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
3215         match Automake 1.10a.
3216
3217 2006-10-14  Bruno Haible  <bruno@clisp.org>
3218
3219         * modules/sigprocmask: New file.
3220         * lib/sigprocmask.h: New file.
3221         * lib/sigprocmask.c: New file.
3222         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
3223         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
3224         request sigprocmask.o.
3225         (gl_PREREQ_SIGPROCMASK): New macro.
3226         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
3227         (Depends-on): Add sigprocmask.
3228         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
3229         gt_SIGNALBLOCKING. Test for 'raise' only once.
3230         * lib/fatal-signal.c: Include sigprocmask.h.
3231         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
3232         unblock_fatal_signals): Define always.
3233         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
3234         sigprocmask.
3235
3236 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
3237
3238         Sync from Automake.
3239         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
3240         which incorrectly sets the mode of an existing destination
3241         directory.  In some cases the unpatched install-sh could do the
3242         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
3243         system.  We hope this is rare in practice, but it's clearly worth
3244         fixing.  Problem reported by Alex Unleashed in
3245         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
3246         Also, don't bother to check for -m bugs unless we're using -m;
3247         suggested by Stepan Kasal.
3248
3249 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3250
3251         Sync from Automake.
3252         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
3253         `-c' flag, so they appear at the same position as in %FASTDEP%
3254         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
3255         which ignores unknown options only after the first non-option.
3256         Bug report against M4 by Nelson H. F. Beebe.
3257
3258 2006-10-13  Jim Meyering  <jim@meyering.net>
3259
3260         Fix a bug in yesterday's change.
3261         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
3262         p->fts_statp->st_dev would be used uninitialized.
3263         Ensures that we always call fts_stat on the very first entry.
3264         Miklos Szeredi reported that find -xdev stopped working.
3265
3266 2006-10-12  Bruno Haible  <bruno@clisp.org>
3267
3268         * gnulib-tool (func_get_automake_snippet): Append an automatically
3269         computed EXTRA_DIST augmentation.
3270         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
3271         * modules/alloca-opt (Makefile.am): Likewise.
3272         * modules/allocsa (Makefile.am): Likewise.
3273         * modules/arcfour (Makefile.am): Likewise.
3274         * modules/arctwo (Makefile.am): Likewise.
3275         * modules/argmatch (Makefile.am): Likewise.
3276         * modules/argz (Makefile.am): Likewise.
3277         * modules/atexit (Makefile.am): Likewise.
3278         * modules/backupfile (Makefile.am): Likewise.
3279         * modules/byteswap (Makefile.am): Likewise.
3280         * modules/c-strtod (Makefile.am): Likewise.
3281         * modules/c-strtold (Makefile.am): Likewise.
3282         * modules/calloc (Makefile.am): Likewise.
3283         * modules/canon-host (Makefile.am): Likewise.
3284         * modules/canonicalize (Makefile.am): Likewise.
3285         * modules/chdir-long (Makefile.am): Likewise.
3286         * modules/chdir-safer (Makefile.am): Likewise.
3287         * modules/check-version (Makefile.am): Likewise.
3288         * modules/chown (Makefile.am): Likewise.
3289         * modules/cloexec (Makefile.am): Likewise.
3290         * modules/close-stream (Makefile.am): Likewise.
3291         * modules/closeout (Makefile.am): Likewise.
3292         * modules/crc (Makefile.am): Likewise.
3293         * modules/csharpexec (Makefile.am): Likewise.
3294         * modules/cycle-check (Makefile.am): Likewise.
3295         * modules/des (Makefile.am): Likewise.
3296         * modules/dev-ino (Makefile.am): Likewise.
3297         * modules/dirfd (Makefile.am): Likewise.
3298         * modules/dirname (Makefile.am): Likewise.
3299         * modules/dup2 (Makefile.am): Likewise.
3300         * modules/eealloc (Makefile.am): Likewise.
3301         * modules/error (Makefile.am): Likewise.
3302         * modules/euidaccess (Makefile.am): Likewise.
3303         * modules/exclude (Makefile.am): Likewise.
3304         * modules/exitfail (Makefile.am): Likewise.
3305         * modules/fcntl-safer (Makefile.am): Likewise.
3306         * modules/fcntl (Makefile.am): Likewise.
3307         * modules/file-type (Makefile.am): Likewise.
3308         * modules/fileblocks (Makefile.am): Likewise.
3309         * modules/filemode (Makefile.am): Likewise.
3310         * modules/filenamecat (Makefile.am): Likewise.
3311         * modules/fnmatch (Makefile.am): Likewise.
3312         * modules/fopen-safer (Makefile.am): Likewise.
3313         * modules/fpending (Makefile.am): Likewise.
3314         * modules/fprintftime (Makefile.am): Likewise.
3315         * modules/free (Makefile.am): Likewise.
3316         * modules/fsusage (Makefile.am): Likewise.
3317         * modules/ftruncate (Makefile.am): Likewise.
3318         * modules/fts (Makefile.am): Likewise.
3319         * modules/gc-arcfour (Makefile.am): Likewise.
3320         * modules/gc-des (Makefile.am): Likewise.
3321         * modules/gc-hmac-md5 (Makefile.am): Likewise.
3322         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
3323         * modules/gc-md4 (Makefile.am): Likewise.
3324         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
3325         * modules/gc-sha1 (Makefile.am): Likewise.
3326         * modules/gc (Makefile.am): Likewise.
3327         * modules/getaddrinfo (Makefile.am): Likewise.
3328         * modules/getcwd (Makefile.am): Likewise.
3329         * modules/getdelim (Makefile.am): Likewise.
3330         * modules/getdomainname (Makefile.am): Likewise.
3331         * modules/getgroups (Makefile.am): Likewise.
3332         * modules/gethostname (Makefile.am): Likewise.
3333         * modules/gethrxtime (Makefile.am): Likewise.
3334         * modules/getline (Makefile.am): Likewise.
3335         * modules/getloadavg (Makefile.am): Likewise.
3336         * modules/getlogin_r (Makefile.am): Likewise.
3337         * modules/getndelim2 (Makefile.am): Likewise.
3338         * modules/getopt (Makefile.am): Likewise.
3339         * modules/getpagesize (Makefile.am): Likewise.
3340         * modules/getpass-gnu (Makefile.am): Likewise.
3341         * modules/getpass (Makefile.am): Likewise.
3342         * modules/getsubopt (Makefile.am): Likewise.
3343         * modules/gettime (Makefile.am): Likewise.
3344         * modules/gettimeofday (Makefile.am): Likewise.
3345         * modules/getugroups (Makefile.am): Likewise.
3346         * modules/getusershell (Makefile.am): Likewise.
3347         * modules/glob (Makefile.am): Likewise.
3348         * modules/group-member (Makefile.am): Likewise.
3349         * modules/hard-locale (Makefile.am): Likewise.
3350         * modules/hash (Makefile.am): Likewise.
3351         * modules/hmac-md5 (Makefile.am): Likewise.
3352         * modules/hmac-sha1 (Makefile.am): Likewise.
3353         * modules/human (Makefile.am): Likewise.
3354         * modules/idcache (Makefile.am): Likewise.
3355         * modules/imaxabs (Makefile.am): Likewise.
3356         * modules/imaxdiv (Makefile.am): Likewise.
3357         * modules/inet_ntop (Makefile.am): Likewise.
3358         * modules/inet_pton (Makefile.am): Likewise.
3359         * modules/intprops (Makefile.am): Likewise.
3360         * modules/inttostr (Makefile.am): Likewise.
3361         * modules/inttypes (Makefile.am): Likewise.
3362         * modules/isapipe (Makefile.am): Likewise.
3363         * modules/javaversion (Makefile.am): Likewise.
3364         * modules/lchmod (Makefile.am): Likewise.
3365         * modules/lchown (Makefile.am): Likewise.
3366         * modules/localcharset (Makefile.am): Likewise.
3367         * modules/long-options (Makefile.am): Likewise.
3368         * modules/lstat (Makefile.am): Likewise.
3369         * modules/malloc (Makefile.am): Likewise.
3370         * modules/mathl (Makefile.am): Likewise.
3371         * modules/mbchar (Makefile.am): Likewise.
3372         * modules/md2 (Makefile.am): Likewise.
3373         * modules/md4 (Makefile.am): Likewise.
3374         * modules/md5 (Makefile.am): Likewise.
3375         * modules/memcasecmp (Makefile.am): Likewise.
3376         * modules/memchr (Makefile.am): Likewise.
3377         * modules/memcmp (Makefile.am): Likewise.
3378         * modules/memcoll (Makefile.am): Likewise.
3379         * modules/memcpy (Makefile.am): Likewise.
3380         * modules/memmem (Makefile.am): Likewise.
3381         * modules/memmove (Makefile.am): Likewise.
3382         * modules/mempcpy (Makefile.am): Likewise.
3383         * modules/memrchr (Makefile.am): Likewise.
3384         * modules/memset (Makefile.am): Likewise.
3385         * modules/memxor (Makefile.am): Likewise.
3386         * modules/mkancesdirs (Makefile.am): Likewise.
3387         * modules/mkdir-p (Makefile.am): Likewise.
3388         * modules/mkdir (Makefile.am): Likewise.
3389         * modules/mkdtemp (Makefile.am): Likewise.
3390         * modules/mkstemp (Makefile.am): Likewise.
3391         * modules/mktime (Makefile.am): Likewise.
3392         * modules/modechange (Makefile.am): Likewise.
3393         * modules/mountlist (Makefile.am): Likewise.
3394         * modules/nanosleep (Makefile.am): Likewise.
3395         * modules/obstack (Makefile.am): Likewise.
3396         * modules/openat (Makefile.am): Likewise.
3397         * modules/pagealign_alloc (Makefile.am): Likewise.
3398         * modules/pathmax (Makefile.am): Likewise.
3399         * modules/physmem (Makefile.am): Likewise.
3400         * modules/poll (Makefile.am): Likewise.
3401         * modules/posixtm (Makefile.am): Likewise.
3402         * modules/posixver (Makefile.am): Likewise.
3403         * modules/putenv (Makefile.am): Likewise.
3404         * modules/quote (Makefile.am): Likewise.
3405         * modules/quotearg (Makefile.am): Likewise.
3406         * modules/raise (Makefile.am): Likewise.
3407         * modules/read-file (Makefile.am): Likewise.
3408         * modules/readline (Makefile.am): Likewise.
3409         * modules/readlink (Makefile.am): Likewise.
3410         * modules/readtokens (Makefile.am): Likewise.
3411         * modules/readutmp (Makefile.am): Likewise.
3412         * modules/realloc (Makefile.am): Likewise.
3413         * modules/regex (Makefile.am): Likewise.
3414         * modules/rename-dest-slash (Makefile.am): Likewise.
3415         * modules/rename (Makefile.am): Likewise.
3416         * modules/rijndael (Makefile.am): Likewise.
3417         * modules/rmdir (Makefile.am): Likewise.
3418         * modules/rpmatch (Makefile.am): Likewise.
3419         * modules/safe-read (Makefile.am): Likewise.
3420         * modules/safe-write (Makefile.am): Likewise.
3421         * modules/same-inode (Makefile.am): Likewise.
3422         * modules/same (Makefile.am): Likewise.
3423         * modules/save-cwd (Makefile.am): Likewise.
3424         * modules/savedir (Makefile.am): Likewise.
3425         * modules/setenv (Makefile.am): Likewise.
3426         * modules/settime (Makefile.am): Likewise.
3427         * modules/sha1 (Makefile.am): Likewise.
3428         * modules/sig2str (Makefile.am): Likewise.
3429         * modules/snprintf (Makefile.am): Likewise.
3430         * modules/stat-macros (Makefile.am): Likewise.
3431         * modules/stat-time (Makefile.am): Likewise.
3432         * modules/stdbool (Makefile.am): Likewise.
3433         * modules/stdint (Makefile.am): Likewise.
3434         * modules/stdlib-safer (Makefile.am): Likewise.
3435         * modules/stpcpy (Makefile.am): Likewise.
3436         * modules/stpncpy (Makefile.am): Likewise.
3437         * modules/strcase (Makefile.am): Likewise.
3438         * modules/strcasestr (Makefile.am): Likewise.
3439         * modules/strchrnul (Makefile.am): Likewise.
3440         * modules/strcspn (Makefile.am): Likewise.
3441         * modules/strdup (Makefile.am): Likewise.
3442         * modules/strerror (Makefile.am): Likewise.
3443         * modules/strftime (Makefile.am): Likewise.
3444         * modules/strndup (Makefile.am): Likewise.
3445         * modules/strnlen (Makefile.am): Likewise.
3446         * modules/strpbrk (Makefile.am): Likewise.
3447         * modules/strsep (Makefile.am): Likewise.
3448         * modules/strstr (Makefile.am): Likewise.
3449         * modules/strtod (Makefile.am): Likewise.
3450         * modules/strtoimax (Makefile.am): Likewise.
3451         * modules/strtok_r (Makefile.am): Likewise.
3452         * modules/strtol (Makefile.am): Likewise.
3453         * modules/strtoll (Makefile.am): Likewise.
3454         * modules/strtoul (Makefile.am): Likewise.
3455         * modules/strtoull (Makefile.am): Likewise.
3456         * modules/strtoumax (Makefile.am): Likewise.
3457         * modules/strverscmp (Makefile.am): Likewise.
3458         * modules/sys_socket (Makefile.am): Likewise.
3459         * modules/sys_stat (Makefile.am): Likewise.
3460         * modules/sysexits (Makefile.am): Likewise.
3461         * modules/time_r (Makefile.am): Likewise.
3462         * modules/timegm (Makefile.am): Likewise.
3463         * modules/timespec (Makefile.am): Likewise.
3464         * modules/tmpfile-safer (Makefile.am): Likewise.
3465         * modules/trim (Makefile.am): Likewise.
3466         * modules/unistd-safer (Makefile.am): Likewise.
3467         * modules/unlinkdir (Makefile.am): Likewise.
3468         * modules/unlocked-io (Makefile.am): Likewise.
3469         * modules/userspec (Makefile.am): Likewise.
3470         * modules/utime (Makefile.am): Likewise.
3471         * modules/utimecmp (Makefile.am): Likewise.
3472         * modules/utimens (Makefile.am): Likewise.
3473         * modules/vasnprintf (Makefile.am): Likewise.
3474         * modules/vasprintf (Makefile.am): Likewise.
3475         * modules/vsnprintf (Makefile.am): Likewise.
3476         * modules/xalloc (Makefile.am): Likewise.
3477         * modules/xgetcwd (Makefile.am): Likewise.
3478         * modules/xnanosleep (Makefile.am): Likewise.
3479         * modules/xreadlink (Makefile.am): Likewise.
3480         * modules/xstrtod (Makefile.am): Likewise.
3481         * modules/xstrtol (Makefile.am): Likewise.
3482         * modules/xstrtold (Makefile.am): Likewise.
3483         * modules/yesno (Makefile.am): Likewise.
3484         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
3485
3486 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
3487
3488         * modules/error (Makefile.am): Distribute files through
3489         EXTRA_DIST, not lib_SOURCES.
3490
3491 2006-10-12  Eric Blake  <ebb9@byu.net>
3492
3493         * modules/error (Makefile.am): Distribute files in /lib.
3494         * modules/obstack (Makefile.am): Likewise.
3495
3496 2006-10-12  Bruno Haible  <bruno@clisp.org>
3497
3498         * modules/acl (Makefile.am): Distribute all files in lib/ through
3499         EXTRA_DIST.
3500         * modules/arcfour (Makefile.am): Likewise.
3501         * modules/arctwo (Makefile.am): Likewise.
3502         * modules/argmatch (Makefile.am): Likewise.
3503         * modules/argz (Makefile.am): Likewise.
3504         * modules/atexit (Makefile.am): Likewise.
3505         * modules/backupfile (Makefile.am): Likewise.
3506         * modules/c-strtod (Makefile.am): Likewise.
3507         * modules/c-strtold (Makefile.am): Likewise.
3508         * modules/calloc (Makefile.am): Likewise.
3509         * modules/canon-host (Makefile.am): Likewise.
3510         * modules/canonicalize (Makefile.am): Likewise.
3511         * modules/chdir-long (Makefile.am): Likewise.
3512         * modules/chdir-safer (Makefile.am): Likewise.
3513         * modules/check-version (Makefile.am): Likewise.
3514         * modules/chown (Makefile.am): Likewise.
3515         * modules/cloexec (Makefile.am): Likewise.
3516         * modules/close-stream (Makefile.am): Likewise.
3517         * modules/closeout (Makefile.am): Likewise.
3518         * modules/crc (Makefile.am): Likewise.
3519         * modules/cycle-check (Makefile.am): Likewise.
3520         * modules/des (Makefile.am): Likewise.
3521         * modules/dirfd (Makefile.am): Likewise.
3522         * modules/dirname (Makefile.am): Likewise.
3523         * modules/dup2 (Makefile.am): Likewise.
3524         * modules/euidaccess (Makefile.am): Likewise.
3525         * modules/exclude (Makefile.am): Likewise.
3526         * modules/exitfail (Makefile.am): Likewise.
3527         * modules/fcntl-safer (Makefile.am): Likewise.
3528         * modules/file-type (Makefile.am): Likewise.
3529         * modules/fileblocks (Makefile.am): Likewise.
3530         * modules/filemode (Makefile.am): Likewise.
3531         * modules/filenamecat (Makefile.am): Likewise.
3532         * modules/fnmatch (Makefile.am): Likewise.
3533         * modules/fopen-safer (Makefile.am): Likewise.
3534         * modules/fpending (Makefile.am): Likewise.
3535         * modules/fprintftime (Makefile.am): Likewise.
3536         * modules/free (Makefile.am): Likewise.
3537         * modules/fsusage (Makefile.am): Likewise.
3538         * modules/ftruncate (Makefile.am): Likewise.
3539         * modules/fts (Makefile.am): Likewise.
3540         * modules/gc (Makefile.am): Likewise.
3541         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
3542         * modules/getaddrinfo (Makefile.am): Likewise.
3543         * modules/getcwd (Makefile.am): Likewise.
3544         * modules/getdelim (Makefile.am): Likewise.
3545         * modules/getdomainname (Makefile.am): Likewise.
3546         * modules/getgroups (Makefile.am): Likewise.
3547         * modules/gethostname (Makefile.am): Likewise.
3548         * modules/gethrxtime (Makefile.am): Likewise.
3549         * modules/getline (Makefile.am): Likewise.
3550         * modules/getloadavg (Makefile.am): Likewise.
3551         * modules/getlogin_r (Makefile.am): Likewise.
3552         * modules/getopt (Makefile.am): Likewise.
3553         * modules/getpass (Makefile.am): Likewise.
3554         * modules/getpass-gnu (Makefile.am): Likewise.
3555         * modules/getsubopt (Makefile.am): Likewise.
3556         * modules/gettime (Makefile.am): Likewise.
3557         * modules/gettimeofday (Makefile.am): Likewise.
3558         * modules/getugroups (Makefile.am): Likewise.
3559         * modules/getusershell (Makefile.am): Likewise.
3560         * modules/glob (Makefile.am): Likewise.
3561         * modules/group-member (Makefile.am): Likewise.
3562         * modules/hard-locale (Makefile.am): Likewise.
3563         * modules/hash (Makefile.am): Likewise.
3564         * modules/hmac-md5 (Makefile.am): Likewise.
3565         * modules/hmac-sha1 (Makefile.am): Likewise.
3566         * modules/human (Makefile.am): Likewise.
3567         * modules/idcache (Makefile.am): Likewise.
3568         * modules/imaxabs (Makefile.am): Likewise.
3569         * modules/imaxdiv (Makefile.am): Likewise.
3570         * modules/inet_ntop (Makefile.am): Likewise.
3571         * modules/inet_pton (Makefile.am): Likewise.
3572         * modules/inttostr (Makefile.am): Likewise.
3573         * modules/isapipe (Makefile.am): Likewise.
3574         * modules/lchown (Makefile.am): Likewise.
3575         * modules/long-options (Makefile.am): Likewise.
3576         * modules/lstat (Makefile.am): Likewise.
3577         * modules/malloc (Makefile.am): Likewise.
3578         * modules/mathl (Makefile.am): Likewise.
3579         * modules/mbchar (Makefile.am): Likewise.
3580         * modules/md2 (Makefile.am): Likewise.
3581         * modules/md4 (Makefile.am): Likewise.
3582         * modules/md5 (Makefile.am): Likewise.
3583         * modules/memcasecmp (Makefile.am): Likewise.
3584         * modules/memchr (Makefile.am): Likewise.
3585         * modules/memcmp (Makefile.am): Likewise.
3586         * modules/memcoll (Makefile.am): Likewise.
3587         * modules/memcpy (Makefile.am): Likewise.
3588         * modules/memmem (Makefile.am): Likewise.
3589         * modules/memmove (Makefile.am): Likewise.
3590         * modules/mempcpy (Makefile.am): Likewise.
3591         * modules/memrchr (Makefile.am): Likewise.
3592         * modules/memset (Makefile.am): Likewise.
3593         * modules/memxor (Makefile.am): Likewise.
3594         * modules/mkancesdirs (Makefile.am): Likewise.
3595         * modules/mkdir (Makefile.am): Likewise.
3596         * modules/mkdir-p (Makefile.am): Likewise.
3597         * modules/mkdtemp (Makefile.am): Likewise.
3598         * modules/mkstemp (Makefile.am): Likewise.
3599         * modules/mktime (Makefile.am): Likewise.
3600         * modules/modechange (Makefile.am): Likewise.
3601         * modules/mountlist (Makefile.am): Likewise.
3602         * modules/nanosleep (Makefile.am): Likewise.
3603         * modules/openat (Makefile.am): Likewise.
3604         * modules/pagealign_alloc (Makefile.am): Likewise.
3605         * modules/physmem (Makefile.am): Likewise.
3606         * modules/poll (Makefile.am): Likewise.
3607         * modules/posixtm (Makefile.am): Likewise.
3608         * modules/posixver (Makefile.am): Likewise.
3609         * modules/putenv (Makefile.am): Likewise.
3610         * modules/quote (Makefile.am): Likewise.
3611         * modules/quotearg (Makefile.am): Likewise.
3612         * modules/raise (Makefile.am): Likewise.
3613         * modules/read-file (Makefile.am): Likewise.
3614         * modules/readline (Makefile.am): Likewise.
3615         * modules/readlink (Makefile.am): Likewise.
3616         * modules/readtokens (Makefile.am): Likewise.
3617         * modules/readutmp (Makefile.am): Likewise.
3618         * modules/realloc (Makefile.am): Likewise.
3619         * modules/regex (Makefile.am): Likewise.
3620         * modules/rename (Makefile.am): Likewise.
3621         * modules/rename-dest-slash (Makefile.am): Likewise.
3622         * modules/rijndael (Makefile.am): Likewise.
3623         * modules/rmdir (Makefile.am): Likewise.
3624         * modules/rpmatch (Makefile.am): Likewise.
3625         * modules/safe-read (Makefile.am): Likewise.
3626         * modules/safe-write (Makefile.am): Likewise.
3627         * modules/same (Makefile.am): Likewise.
3628         * modules/save-cwd (Makefile.am): Likewise.
3629         * modules/savedir (Makefile.am): Likewise.
3630         * modules/setenv (Makefile.am): Likewise.
3631         * modules/settime (Makefile.am): Likewise.
3632         * modules/sha1 (Makefile.am): Likewise.
3633         * modules/sig2str (Makefile.am): Likewise.
3634         * modules/snprintf (Makefile.am): Likewise.
3635         * modules/stdlib-safer (Makefile.am): Likewise.
3636         * modules/stpcpy (Makefile.am): Likewise.
3637         * modules/stpncpy (Makefile.am): Likewise.
3638         * modules/strcase (Makefile.am): Likewise.
3639         * modules/strcasestr (Makefile.am): Likewise.
3640         * modules/strchrnul (Makefile.am): Likewise.
3641         * modules/strcspn (Makefile.am): Likewise.
3642         * modules/strdup (Makefile.am): Likewise.
3643         * modules/strerror (Makefile.am): Likewise.
3644         * modules/strftime (Makefile.am): Likewise.
3645         * modules/strndup (Makefile.am): Likewise.
3646         * modules/strnlen (Makefile.am): Likewise.
3647         * modules/strpbrk (Makefile.am): Likewise.
3648         * modules/strsep (Makefile.am): Likewise.
3649         * modules/strstr (Makefile.am): Likewise.
3650         * modules/strtod (Makefile.am): Likewise.
3651         * modules/strtoimax (Makefile.am): Likewise.
3652         * modules/strtok_r (Makefile.am): Likewise.
3653         * modules/strtol (Makefile.am): Likewise.
3654         * modules/strtoll (Makefile.am): Likewise.
3655         * modules/strtoul (Makefile.am): Likewise.
3656         * modules/strtoull (Makefile.am): Likewise.
3657         * modules/strtoumax (Makefile.am): Likewise.
3658         * modules/strverscmp (Makefile.am): Likewise.
3659         * modules/time_r (Makefile.am): Likewise.
3660         * modules/timegm (Makefile.am): Likewise.
3661         * modules/tmpfile-safer (Makefile.am): Likewise.
3662         * modules/unistd-safer (Makefile.am): Likewise.
3663         * modules/unlinkdir (Makefile.am): Likewise.
3664         * modules/userspec (Makefile.am): Likewise.
3665         * modules/utime (Makefile.am): Likewise.
3666         * modules/utimecmp (Makefile.am): Likewise.
3667         * modules/utimens (Makefile.am): Likewise.
3668         * modules/vasnprintf (Makefile.am): Likewise.
3669         * modules/vasprintf (Makefile.am): Likewise.
3670         * modules/vsnprintf (Makefile.am): Likewise.
3671         * modules/xalloc (Makefile.am): Likewise.
3672         * modules/xgetcwd (Makefile.am): Likewise.
3673         * modules/xnanosleep (Makefile.am): Likewise.
3674         * modules/xreadlink (Makefile.am): Likewise.
3675         * modules/xstrtod (Makefile.am): Likewise.
3676         * modules/xstrtol (Makefile.am): Likewise.
3677         * modules/xstrtold (Makefile.am): Likewise.
3678         * modules/yesno (Makefile.am): Likewise.
3679
3680 2006-10-12  Jim Meyering  <jim@meyering.net>
3681
3682         * m4/getloadavg.m4: Revert the change below.
3683
3684         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
3685         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
3686         fail with a symlink, which is what coreutils' ./bootstrap now
3687         creates by default.
3688
3689 2006-10-12  Bruno Haible  <bruno@clisp.org>
3690
3691         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
3692         mingw.
3693         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
3694         MSVC and mingw explicitly.
3695
3696 2006-10-11  Simon Josefsson  <jas@extundo.com>
3697             Bruno Haible  <bruno@clisp.org>
3698
3699         Add support for multiple gnulib-tool invocations in the scope of a
3700         single configure.ac file.
3701         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
3702         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
3703         with the same contents as the _LIBADD variable.
3704         (func_emit_initmacro_start, func_emit_initmacro_end,
3705         func_emit_initmacro_done): New functions.
3706         (func_import, func_create_testdir): Invoke them. Allow the identifiers
3707         gl_LIBOBJS and gl_LTLIBOBJS.
3708
3709 2006-10-11  Bruno Haible  <bruno@clisp.org>
3710
3711         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
3712         (func_create_testdir): Don't create po/Makefile.am, don't invoke
3713         autoreconf. Instead, invoke autopoint explicitly but move back the
3714         *.m4 files from gnulib.
3715
3716 2006-10-11  Bruno Haible  <bruno@clisp.org>
3717
3718         * gnulib-tool (func_usage): Make module names after --create-testdir
3719         optional.
3720         (func_create_testdir): If no module was specified, use nearly all
3721         modules.
3722
3723 2006-10-12  Jim Meyering  <jim@meyering.net>
3724
3725         Big performance improvement for fts-based tools that use FTS_NOSTAT.
3726         Avoid spurious inode-mismatch problems on non-POSIX file systems.
3727         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
3728         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
3729         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
3730         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
3731         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
3732         (fts_set_stat_required): New function.
3733         (fts_open): Defer the calls to fts_stat, if possible or requested.
3734         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
3735         into fts_stat itself.
3736         (fts_read): Perform any required (deferred) fts_stat call.
3737         (fts_build): Likewise, for the directory we're about to open and read.
3738         In the readdir loop, carefully decide whether each entry will require
3739         an eventual call to fts_stat, using dirent.d_type info if available.
3740         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
3741         a command line argument into this function.  Update all callers.
3742         Map a return value of FTS_DOT to FTS_D for a command line argument.
3743         * modules/fts (Depends-on): Add d-type.  Alphabetize.
3744         Thanks to Miklos Szeredi for his tenacity and for the initial
3745         bug report about "find" failing on a FUSE-based file system.
3746
3747         * lib/fts.c (fts_open): Use consistent indentation.
3748
3749 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
3750
3751         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
3752         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
3753         reported by Jim Meyering.  All uses of cache variables renamed
3754         to match Autoconf's.
3755         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
3756         the other one.
3757
3758         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
3759         Fix misspelling in diagnostic.
3760
3761 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
3762
3763         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
3764         defined.  Problem reported by Matthew Woehlke.
3765
3766         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
3767         Add support for Tandem NonStop R series.
3768         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
3769         Use new macro.
3770
3771         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
3772         (has_trailing_slash): Omit size arg; all callers changed.
3773         Omit 'inline', since it doesn't help performance and we'd
3774         need to configure it.
3775         Don't count //, ///, etc. as having a trailing slash.
3776         As a side effect, this removes a C99ism reported by Matthew Woehlke.
3777         (rpl_rename_dest_slash): On failure, use rename's errno rather
3778         than (in some cases) an incorrect or junk errno.
3779         Simplify code by removing need to compute length; this does
3780         cause it to make two passes instead of one over the file name,
3781         but it's worth it.
3782
3783         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
3784         change, since Autoconf's version may no longer be appropriate now
3785         that we are using CVS Autoconf's version.  Add support for Tandem.
3786
3787 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
3788             Bruno Haible  <bruno@clisp.org>
3789
3790         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
3791         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
3792         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
3793         gl_AC_TYPE_LONG_LONG.
3794
3795         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
3796         instead of HAVE_LONG_LONG.
3797         * lib/printf-args.c (printf_fetchargs): Likewise.
3798         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
3799         * lib/vasnprintf.c (VASNPRINTF): Likewise.
3800         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
3801         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
3802         gl_AC_TYPE_LONG_LONG.
3803
3804 2006-10-11  Bruno Haible  <bruno@clisp.org>
3805
3806         * m4/longlong.m4: Add comments.
3807         * m4/ulonglong.m4: Likewise.
3808
3809 2006-10-10  Bruno Haible  <bruno@clisp.org>
3810
3811         Make it possible to #define stpcpy, strdup to aliases.
3812         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
3813         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
3814
3815 2006-10-10  Bruno Haible  <bruno@clisp.org>
3816
3817         Make it possible to #define gcd to an alias.
3818         * lib/gcd.c: Include config.h.
3819
3820 2006-10-10  Bruno Haible  <bruno@clisp.org>
3821
3822         Make it possible to #define c_isascii to an alias.
3823         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
3824         defined. Undefine the macros before defining them, to avoid gcc
3825         warnings.
3826         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
3827         define NO_C_CTYPE_MACROS early.
3828
3829 2006-10-10  Bruno Haible  <bruno@clisp.org>
3830
3831         Make it possible to #define set_program_name to an alias.
3832         * lib/progname.c: Don't undefine set_program_name; instead, undefine
3833         ENABLE_RELOCATABLE early.
3834
3835 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
3836
3837         Port to Tandem NSK OSS, which has 64-bit signed int but at most
3838         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
3839         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
3840         More generally, don't assume that 64-bit signed int is available
3841         if unsigned int is, and vice versa.
3842         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
3843         unsigned symbols, not on their signed counterparts.
3844         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
3845         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
3846         (UINT64_C, UINTMAX_C):
3847         Likewise.
3848         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
3849         unsigned counterparts.
3850         (Have_long_long, Unsigned): New macros.
3851         (Int): Renamed from INT.
3852         (strtoimax): Use the new macros.
3853         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
3854         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
3855         * modules/inttypes (inttypes.h): Substitute
3856         HAVE_UNSIGNED_LONG_LONG_INT.
3857         * modules/stdint (stdint.h): Likewise.
3858         (Files): Add m4/ulonglong.m4.
3859
3860 2006-10-10  Bruno Haible  <bruno@clisp.org>
3861
3862         Fix a gcc -Wshadow warning.
3863         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
3864         to 'bucket'.
3865         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
3866         gl_linked_indexof_from_to): Likewise.
3867         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
3868         Likewise.
3869         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
3870         Likewise.
3871         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
3872         Reported by Eric Blake.
3873
3874 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
3875
3876         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
3877         for NetBSD.  Problem reported by Bruno Haible.
3878
3879 2006-10-09  Jim Meyering  <jim@meyering.net>
3880
3881         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
3882         Patch from Bruno Haible.
3883
3884 2006-10-09  Jim Meyering  <jim@meyering.net>
3885
3886         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
3887         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
3888         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
3889
3890 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
3891
3892         Don't include <config.h> twice; this doesn't work in some cases,
3893         e.g., when config.h has "#define intmax_t long long int" and
3894         we include <config.h>, <inttypes.h>, <config.h> in that order.
3895         Problem reported by Matthew Woehlke in:
3896         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
3897         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
3898         * lib/fts-cycle.c: Don't include config.h.
3899         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
3900         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
3901         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
3902         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
3903         inttypes.h.
3904         * lib/xstrtoumax.c: Likewise.
3905         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
3906         __strtol and the like, so that this module is more like its siblings.
3907         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
3908         Remove; no longer needed now that we assume gnulib inttypes.h.
3909
3910 2006-10-08  Bruno Haible  <bruno@clisp.org>
3911
3912         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
3913         option.
3914
3915 2006-10-07  Jim Meyering  <jim@meyering.net>
3916
3917         * modules/inttypes (inttypes.h): Revert what seems to have been
3918         an inadvertent part of today's change: use "|", not "/" in the
3919         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
3920
3921 2006-10-07  Bruno Haible  <bruno@clisp.org>
3922
3923         * modules/sublist: New file.
3924
3925 2006-10-07  Bruno Haible  <bruno@clisp.org>
3926
3927         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
3928         * modules/argz (argz.h): Likewise.
3929         * modules/arpa_inet (arpa/inet.h): Likewise.
3930         * modules/byteswap (byteswap.h): Likewise.
3931         * modules/configmake (configmake.h): Likewise.
3932         * modules/fcntl (fcntl.h): Likewise.
3933         * modules/fnmatch (fnmatch.h): Likewise.
3934         * modules/getopt (getopt.h): Likewise.
3935         * modules/glob (glob.h): Likewise.
3936         * modules/inttypes (inttypes.h): Likewise.
3937         * modules/netinet_in (netinet/in.h): Likewise.
3938         * modules/poll (poll.h): Likewise.
3939         * modules/stdbool (stdbool.h): Likewise.
3940         * modules/stdint (stdint.h): Likewise.
3941         * modules/sys_select (sys/select.h): Likewise.
3942         * modules/sys_socket (sys/socket.h): Likewise.
3943         * modules/sys_stat (sys/stat.h): Likewise.
3944         * modules/sysexits (sysexits.h): Likewise.
3945         * modules/unistd (unistd.h): Likewise.
3946         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
3947         Add a "DO NOT EDIT" comment to the generated file.
3948         (func_import): Likewise for gnulib-comp.m4.
3949
3950 2006-10-07  Bruno Haible  <bruno@clisp.org>
3951
3952         * lib/gl_sublist.h: New file.
3953         * lib/gl_sublist.c: New file.
3954
3955 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
3956
3957         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
3958         name (relative to the original working directory) and the file
3959         name component (relative to the temporary working directory).  All
3960         callers changed.
3961         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
3962         * lib/mkdir-p.c (make_dir_parents): Likewise.
3963         * lib/mkdir-p.h (make_dir_parents): Likewise.
3964
3965 2006-10-06  Eric Blake  <ebb9@byu.net>
3966
3967         Define several macros for use by the clean-temp module.
3968         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
3969         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
3970         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
3971
3972         * lib/clean-temp.h (close_stream_temp): New declaration.
3973         * lib/clean-temp.c (includes): Pull in headers according to what
3974         other modules are in use.
3975         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
3976
3977 2006-10-06  Bruno Haible  <bruno@clisp.org>
3978
3979         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
3980         instead of fopen, fwriteerror.
3981
3982 2006-10-06  Bruno Haible  <bruno@clisp.org>
3983
3984         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
3985         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
3986         int.
3987         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
3988         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
3989         Return an error indicator.
3990         Suggested by Eric Blake.
3991
3992 2006-10-06  Bruno Haible  <bruno@clisp.org>
3993
3994         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
3995         Reported by Eric Blake.
3996
3997 2006-10-06  Bruno Haible  <bruno@clisp.org>
3998
3999         * modules/closeout (Description): Mention stderr too.
4000
4001 2006-10-06  Bruno Haible  <bruno@clisp.org>
4002         and Paul Eggert  <eggert@cs.ucla.edu>
4003
4004         * lib/closeout.c (close_stdout): Also close stderr.
4005         * lib/closeout.h: Update comment.
4006
4007 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
4008
4009         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
4010         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
4011         * lib/dirchownmod.c: Include lchown.h.
4012         * lib/lchown.c: Don't include files that lchown.h now includes.
4013         Don't declare chown, since lchown.h now does that.
4014         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
4015         (lchown): Define to rpl_chown if lchown is declared but
4016         does not exist.  Declare using a prototype if lchown is not
4017         declared.  Add a copyright notice.
4018         * lib/mkstemp.h: Include <unistd.h>.
4019         * lib/openat.c: Include lchown.h.
4020
4021         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
4022         we now test for that separately.
4023         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
4024         rather than O_NOFOLLOW, when testing whether it's possible to
4025         avoid a race condition reliably.
4026         * lib/savewd.c (savewd_chdir): Likewise.
4027
4028         Remove macros that are no longer needed now that stdint.h is
4029         reliable.
4030         * lib/fsusage.c (UINTMAX_MAX): Remove.
4031         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
4032         * lib/utimecmp.c (SIZE_MAX): Remove.
4033
4034         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
4035
4036         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
4037         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
4038         O_NOATIME works.
4039
4040 2006-10-05  Bruno Haible  <bruno@clisp.org>
4041
4042         * lib/gl_list.h (gl_sortedlist_search_from_to,
4043         gl_sortedlist_indexof_from_to): New declarations.
4044         (gl_list_implementation): New fields sortedlist_search_from_to,
4045         sortedlist_indexof_from_to.
4046         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
4047         inline functions.
4048         * lib/gl_list.c (gl_sortedlist_search_from_to,
4049         gl_sortedlist_indexof_from_to): New functions.
4050         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
4051         function.
4052         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
4053         (gl_array_sortedlist_search_from_to): New function.
4054         (gl_array_list_implementation): Update.
4055         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
4056         function.
4057         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
4058         (gl_carray_sortedlist_search_from_to): New function.
4059         (gl_carray_list_implementation): Update.
4060         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
4061         gl_linked_sortedlist_indexof_from_to): New functions.
4062         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
4063         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
4064         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
4065         gl_tree_sortedlist_indexof_from_to): New functions.
4066         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
4067         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
4068         Update.
4069         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
4070         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
4071         Update.
4072
4073 2006-10-05  Bruno Haible  <bruno@clisp.org>
4074
4075         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
4076         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
4077         (struct gl_list_implementation): Add fields search_from_to,
4078         indexof_from_to. Remove fields search, indexof.
4079         (gl_list_search): Use the search_from_to method.
4080         (gl_list_search_from, gl_list_search_from_to): New functions.
4081         (gl_list_indexof): Use the indexof_from_to method.
4082         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
4083         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
4084         (gl_list_search_from, gl_list_search_from_to): New functions.
4085         (gl_list_indexof): Use the indexof_from_to method.
4086         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
4087         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
4088         gl_array_indexof. Add start_index, end_index arguments.
4089         (gl_array_search_from_to): Renamed from gl_array_search. Add
4090         start_index, end_index arguments.
4091         (gl_array_remove, gl_array_list_implementation): Update.
4092         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
4093         gl_carray_indexof. Add start_index, end_index arguments.
4094         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
4095         start_index, end_index arguments.
4096         (gl_carray_remove, gl_carray_list_implementation): Update.
4097         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
4098         gl_linked_search. Add start_index, end_index arguments.
4099         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
4100         start_index, end_index arguments.
4101         (gl_linked_remove): Update.
4102         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
4103         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
4104         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
4105         field to 'size_t'.
4106         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
4107         gl_tree_search. Add start_index, end_index arguments.
4108         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
4109         start_index, end_index arguments.
4110         (gl_tree_remove): Update.
4111         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
4112         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
4113         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
4114         function.
4115         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
4116         gl_tree_search. Add start_index, end_index arguments.
4117         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
4118         start_index, end_index arguments.
4119         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
4120         Update.
4121         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
4122
4123 2006-10-05  Bruno Haible  <bruno@clisp.org>
4124
4125         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
4126
4127         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
4128         fwriteerror_temp): New declarations.
4129         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
4130         (descriptors): New variable.
4131         (cleanup): First, close the descriptors.
4132         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
4133         fclose_temp, fwriteerror_temp): New functions.
4134
4135 2006-10-04  Jim Meyering  <jim@meyering.net>
4136
4137         * lib/fts.c (fts_open): Tiny comment change.
4138
4139 2006-10-04  Bruno Haible  <bruno@clisp.org>
4140
4141         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
4142         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
4143         gl_LOCK_BODY.
4144         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
4145         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
4146         gl_LOCK_EARLY_BODY.
4147         (gl_LOCK): Require gl_LOCK_BODY.
4148
4149 2006-10-04  Bruno Haible  <bruno@clisp.org>
4150
4151         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
4152         (gl_oset_search_atleast): New declaration.
4153         (struct gl_oset_implementation): Add field 'search_atleast'.
4154         (gl_oset_search_atleast): New inline function.
4155         * lib/gl_oset.c (gl_oset_search_atleast): New function.
4156         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
4157         (gl_array_oset_implementation): Update.
4158         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
4159         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
4160         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
4161
4162 2006-10-04  Bruno Haible  <bruno@clisp.org>
4163
4164         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
4165
4166 2006-10-03  Bruno Haible  <bruno@clisp.org>
4167
4168         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
4169         from gl_avltreehash_list_implementation.
4170
4171 2006-10-03  Bruno Haible  <bruno@clisp.org>
4172
4173         * lib/gl_oset.c (gl_oset_add): Fix return type.
4174
4175 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
4176
4177         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
4178
4179 2006-10-02  Eric Blake  <ebb9@byu.net>
4180
4181         * modules/strnlen (Depends-on): Add extensions.
4182
4183 2006-10-02  Eric Blake  <ebb9@byu.net>
4184
4185         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
4186         definition in 2.60+.
4187
4188 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
4189
4190         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
4191         checks.
4192
4193 2006-10-02  Bruno Haible  <bruno@clisp.org>
4194
4195         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
4196         to the AUTOMAKE_OPTIONS.
4197         Reported by Jim Meyering.
4198
4199 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
4200
4201         Work around bug in Solaris 10 /proc file system:
4202         /proc/self/fd/NNN/.. isn't the parent directory of
4203         the directory whose file descriptor is NNN.  This needs to
4204         be worked around at run time, not compile time, since a
4205         program might be built on Solaris 8, where things work, and
4206         run on Solaris 10.
4207         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
4208         to use the following interface instead:
4209         (OPENAT_BUFFER_SIZE): New macro.
4210         (openat_proc_name): New function.
4211         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
4212         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
4213         Likewise.
4214         * lib/openat-proc.c: New file.
4215         * modules/openat (Files): Add lib/openat-proc.c.
4216         (Depends-on): Add same-inode, stdbool.
4217         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
4218
4219 2006-09-29  Bruno Haible  <bruno@clisp.org>
4220
4221         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
4222         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
4223         argument. Set stdout_closed before testing for ferror, not after.
4224         (fwriteerror, fwriteerror_no_ebadf): New functions.
4225
4226 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4227
4228         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
4229
4230 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
4231
4232         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
4233         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
4234
4235 2006-09-28  Jim Meyering  <jim@meyering.net>
4236
4237         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
4238         Include <unistd.h>.
4239
4240 2006-09-28  Bruno Haible  <bruno@clisp.org>
4241
4242         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
4243         * modules/linkedhash-list (Depends-on): Likewise.
4244         * modules/rbtreehash-list (Depends-on): Likewise.
4245
4246 2006-09-28  Bruno Haible  <bruno@clisp.org>
4247
4248         * lib/strndup.h: Simplify the redefinition of strndup.
4249         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
4250         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
4251
4252 2006-09-28  Bruno Haible  <bruno@clisp.org>
4253
4254         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
4255         * lib/gl_linkedhash_list.c: Likewise.
4256         * lib/gl_rbtreehash_list.c: Likewise.
4257
4258 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
4259
4260         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
4261         getaddrinfo.
4262
4263         * lib/__fpending.h: Don't include <stdio_ext.h> unless
4264         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
4265         it causes <stdio_ext.h> to cause a compile-time error.
4266         Problem reported by Nelson H. F. Beebe.
4267         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
4268         of HAVE_DECL___PENDING.
4269
4270         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
4271         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
4272         declaration.
4273
4274 2006-09-27  Jim Meyering  <jim@meyering.net>
4275
4276         This file could end up with a definition for a function
4277         named __strndup, rather than rpl_strndup on a system with
4278         incomplete weak_alias support.
4279         * lib/strndup.c (strndup): Rename from __strndup.
4280         Remove #defines that used to map __strndup to strndup.
4281         Don't use K&R prototypes.
4282         Remove LIBC-related code, since this file is not sync'd with glibc.
4283         * lib/strndup.h: Revamp, accordingly.
4284         * m4/strndup.m4: Modernize.
4285
4286 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
4287
4288         * modules/savewd (Depends-on): Add 'raise'.
4289         * lib/savewd.c: Include <signal.h>, for 'raise'.
4290
4291 2006-09-26  Jim Meyering  <jim@meyering.net>
4292
4293         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
4294         when we detect Darwin 8.7.0's acl_get_file bug.
4295         Rearrange to perform the new (below) run-test while $LIBS
4296         contains any acl-related library.  Set USE_ACL at the end.
4297         (gl_ACL_GET_FILE): New function.
4298
4299 2006-09-26  Eric Blake  <ebb9@byu.net>
4300
4301         * lib/verror.c: Include <config.h> unconditionally.
4302
4303 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
4304
4305         * modules/clock-time (Maintainer): Add self.
4306         * modules/getlogin_r (Depends-on): Add extensions.
4307
4308 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4309
4310         * modules/clock-time: New module.
4311         * modules/nanosleep (Depends-on): Add clock-time.
4312         * modules/gethrxtime (Depends-on): Likewise.
4313         * modules/gettime (Depends-on): Likewise.
4314         * modules/settime (Depends-on): Likewise.
4315
4316         * modules/fts-lgpl: Depend on openat.
4317         * modules/mkancesdirs: Depend on savewd.
4318         * modules/mkdir-p: Likewise.
4319
4320 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4321
4322         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
4323
4324         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
4325         `gl_have_arbitrary_file_name_length_limit' to
4326         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
4327         actually works between configure runs.
4328
4329 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4330             Bruno Haible  <bruno@clisp.org>
4331
4332         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
4333
4334 2006-09-25  Jim Meyering  <jim@meyering.net>
4335
4336         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
4337         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
4338
4339 2006-09-25  Eric Blake  <ebb9@byu.net>
4340
4341         * gnulib-tool (func_import, func_create_testdir): Fix typos in
4342         exec's in 2006-09-18 patch when shuffling fds.
4343
4344 2006-09-25  Bruno Haible  <bruno@clisp.org>
4345
4346         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
4347         Reported by Jim Meyering.
4348
4349 2006-09-24  Jim Meyering  <jim@meyering.net>
4350
4351         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
4352         compare a pointer against a literal "0".  That caused failures with
4353         at least HP-UX's hpcc.
4354
4355 2006-09-22  Simon Josefsson  <jas@extundo.com>
4356
4357         * modules/gc-sha1:
4358         * modules/gc-md4:
4359         * modules/gc-hmac-sha1:
4360         * modules/gc-hmac-md5:
4361         * modules/gc-des:
4362         * modules/gc-arcfour: Distribute more files.
4363
4364 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4365
4366         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
4367         (gl_linked_iterator_from_to): Initialize struct completely.
4368         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
4369         (gl_tree_iterator_from_to): Likewise
4370         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
4371         * lib/gl_array_list.c [lint] (gl_array_iterator)
4372         (gl_array_iterator_from_to): Likewise.
4373         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
4374         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
4375         (gl_carray_iterator_from_to): Likewise.
4376
4377         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
4378         * lib/md4.c (md4_process_block): Remove unused variable.
4379         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
4380         parentheses for clarity.
4381
4382 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4383
4384         * modules/bison-i18n (Depends-on): Add gettext.
4385
4386 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4387
4388         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
4389         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
4390         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
4391         also add missing comma that caused broken test.
4392         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
4393         stdlib.h, for `abort'.
4394         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
4395         variables.
4396         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
4397         include unistd.h if present, for `rmdir'.
4398         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
4399         variables.
4400         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
4401         in the process include standard headers for prototypes.
4402         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
4403         gets declared on GNU/Linux.
4404         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
4405         unistd.h, for `rmdir'.
4406         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
4407
4408         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
4409         always true.
4410         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
4411
4412         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
4413
4414 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4415
4416         * gnulib-tool (func_version): Create output all at once.  This
4417         may help avoid triggering unnecessary SIGPIPEs, and at any
4418         rate it doesn't hurt.
4419
4420 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4421             Bruno Haible  <bruno@clisp.org>
4422
4423         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
4424         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
4425         * m4/signed.m4 (bh_C_SIGNED): Likewise.
4426
4427         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
4428         (gl_FUNC_VASPRINTF): Invoke it.
4429
4430 2006-09-22  Bruno Haible  <bruno@clisp.org>
4431
4432         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
4433         getloadavg.c as first argument.
4434
4435 2006-09-22  Bruno Haible  <bruno@clisp.org>
4436
4437         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
4438         at the beginning of the gl_INIT macro.
4439         * modules/getloadavg (configure.ac): Pass $gl_source_base to
4440         gl_GETLOADAVG.
4441
4442 2006-09-22  Bruno Haible  <bruno@clisp.org>
4443
4444         * gnulib-tool (func_create_megatestdir): Don't include the config-h
4445         module.
4446         Suggested by Ralf Wildenhues.
4447
4448 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
4449
4450         Import this patch from libc:
4451
4452         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
4453
4454         * lib/regex_internal.c (re_string_reconstruct): Handle
4455         offset < pstr->valid_raw_len && pstr->offsets_needed case.
4456         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
4457         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
4458         re_string_context_at.
4459
4460         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
4461         now requires it.
4462         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
4463         gl_REGEX now does it for us.
4464         (gl_REGEX): Add test taken from
4465         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
4466
4467         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
4468         Check that large offsets work.  Modernize Autoconf usages.
4469         Prefer "yes" to mean a good thing rather than a bad.
4470         Don't put "#define mkstemp" in config.h, as this might interfere
4471         with standard system headers that "#define mkstemp mkstemp64".
4472
4473         * modules/mkstemp (Depends-on): Add extensions, so that
4474         mkstemp is visible on some platforms.
4475         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
4476         (Include): Change to "mkstemp.h" from <stdlib.h>.
4477         (Files): Add mkstemp.h.
4478
4479         * lib/mkstemp.h: New file, since some standard headers
4480         #define mkstemp.
4481         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
4482         Include "mkstemp.h".
4483         Make the _LIBC code resemble glibc original more,
4484         e.g., use K&R style.
4485         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
4486         (mkstemp): Remove, since mkstemp.h does this for us.
4487         * lib/stdlib--.h: Include mkstemp.h.
4488
4489         Import this patch from libc:
4490
4491         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
4492
4493         * lib/tempname.c (__gen_tempname): Change attempts_min
4494         into a macro.  Use preprocessor to decide how to initialize
4495         attempts [Coverity CID 67].
4496
4497 2006-09-20  Bruno Haible  <bruno@clisp.org>
4498
4499         * lib/mkdtemp.c: Import from libc.
4500         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
4501                 * sysdeps/posix/tempname.c (__gen_tempname): Change
4502                 attempts_min into a macro.  Use preprocessor to decide how to
4503                 initialize attempts [Coverity CID 67].
4504         2001-11-27  Paul Eggert  <eggert@twinsun.com>
4505                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
4506                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
4507
4508 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4509
4510         * gnulib-tool (func_exit): New function, to allow to pass the
4511         exit status portably through the trap.  Use everywhere.
4512         (--help, --version): Signal a write error.
4513         (trap): catch SIGPIPE, for write errors.
4514         Exit at the end of the trap, with the correct exit status.
4515
4516 2006-09-19  Karl Berry  <karl@gnu.org>
4517
4518         * doc/gnulib.texi: note about the license texinfo files.
4519
4520 2006-09-19  Eric Blake  <ebb9@byu.net>
4521
4522         * gnulib-tool: Avoid space-tab.
4523
4524 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
4525
4526         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
4527         that prevented coreutils 6.1 from building.  Problem reported
4528         by Petter Reinholdtsen.
4529
4530 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
4531
4532         * gnulib-tool (avoidlist): Fix typo that broke options like
4533         --avoid=lock that are used by coreutils bootstrap.
4534
4535 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
4536
4537         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
4538         more systematically.
4539
4540 2006-09-18  Jim Meyering  <jim@meyering.net>
4541
4542         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
4543
4544 2006-09-18  Bruno Haible  <bruno@clisp.org>
4545
4546         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
4547
4548 2006-09-18  Bruno Haible  <bruno@clisp.org>
4549
4550         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
4551         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
4552         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
4553         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
4554         * m4/gettext.m4: Require autoconf >= 2.52.
4555         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
4556         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
4557         of gl_cv_header_inttypes_h.
4558
4559 2006-09-18  Bruno Haible  <bruno@clisp.org>
4560
4561         * lib/javaversion.c: Include configmake.h.
4562
4563 2006-09-18  Bruno Haible  <bruno@clisp.org>
4564
4565         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
4566         avoid that the while loops be executed in a subshell.
4567
4568 2006-09-18  Bruno Haible  <bruno@clisp.org>
4569
4570         * MODULES.html.sh (func_module): Break long lines.
4571         Suggested by Bruce Korb <bkorb@gnu.org>.
4572
4573 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4574
4575         Speed up by a factor of 1.12.
4576         * gnulib-tool (nl): New variable.
4577         (func_import): Rewrite include directive extraction to only read each
4578         directive once.
4579
4580 2006-09-17  Bruno Haible  <bruno@clisp.org>
4581
4582         * modules/javaversion (Makefile.am): Remove DEFS setting.
4583         (Depends-on): Add configmake, for PKGDATADIR definition.
4584
4585 2006-09-17  Bruno Haible  <bruno@clisp.org>
4586
4587         * gnulib-tool (func_create_testdir): Rewrite all files at once.
4588
4589 2006-09-17  Bruno Haible  <bruno@clisp.org>
4590
4591         * gnulib-tool (func_append): New function, stolen from libtool.m4.
4592         (func_modules_transitive_closure, func_modules_add_dummy,
4593         func_modules_to_filelist, func_import, func_create_testdir,
4594         func_create_megatestdir, ...): Use it wherever possible.
4595         Suggested by Ralf Wildenhues.
4596
4597 2006-09-16  Karl Berry  <karl@gnu.org>
4598
4599         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
4600         to avoid sectioning errors.
4601         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
4602         [ifinfo]: blank line after @center-ed titles.
4603         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
4604         Spell FSF address consistently with others.
4605         (These changes approved by rms.)
4606
4607 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4608
4609         Speed up by a factor of 1.61.
4610         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
4611         already checked module names again.
4612
4613 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4614
4615         Speed up by a factor of 1.13.
4616         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
4617         for new_files, and the input to func_add_or_update.
4618
4619 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4620
4621         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
4622         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
4623
4624 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
4625
4626         * modules/mkancesdirs (Depends-on): Add fcntl.
4627         * modules/savewd: New file.
4628         * MODULES.html.sh (File system functions): Add savewd.
4629
4630         * modules/configmake (Makefile.am): Add support for the
4631         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
4632
4633 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
4634
4635         * m4/savewd.m4: New file.
4636
4637 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
4638
4639         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
4640         (dirchownmod): New arg FD.  All callers changed.
4641         Use FD rather than opening the directory ourself, as opening is
4642         now the caller's responsibility.
4643         * lib/dirchownmod.h: Likewise.
4644         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
4645         hosts that require <sys/types.h> before <sys/stat.h>.  Include
4646         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
4647         (test_dir): Remove.
4648         (mkancesdirs): Return length of prefix of FILE that has already
4649         been made, or -2 if there is a child doing the work.  Redo
4650         algorithm so that it is O(N) rather than O(N**2).  Optimize away
4651         ".", and treat ".." specially since it might stray back into
4652         already-created areas.  Use a subprocess if necessary.  New arg
4653         WD; all users changed.  MAKE_DIR function should now return 1
4654         if it creates a directory that is not readable.  Return -2 if
4655         a child process is spun off.
4656         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
4657         Adjust signature to match code.
4658         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
4659         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
4660         all users changed.
4661         * lib/savewd.c, lib/savewd.h: New files.
4662
4663 2006-09-15  Jim Meyering  <jim@meyering.net>
4664
4665         * modules/rename-dest-slash: New module.
4666         * MODULES.html.sh (posix_compat): Add it here.
4667
4668         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
4669
4670 2006-09-15  Jim Meyering  <jim@meyering.net>
4671
4672         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
4673         file.
4674
4675         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
4676
4677 2006-09-15  Jim Meyering  <jim@meyering.net>
4678
4679         * lib/rename-dest-slash.c (has_trailing_slash): Use
4680         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
4681         (rpl_rename_dest_slash): Perform the cheaper trailing slash
4682         test before testing whether SRC is a directory.
4683         Suggestions from Bruno Haible.
4684
4685         Avoid a warning about an unused variable.
4686         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
4687         into the #ifdef block where it's used.
4688
4689         * lib/rename-dest-slash.c: New file.
4690
4691 2006-09-14  Bruno Haible  <bruno@clisp.org>
4692
4693         * lib/allocsa.c: Include <config.h> unconditionally.
4694         * lib/asnprintf.c: Likewise.
4695         * lib/asprintf.c: Likewise.
4696         * lib/c-strcasecmp.c: Likewise.
4697         * lib/c-strcasestr.c: Likewise.
4698         * lib/c-strncasecmp.c: Likewise.
4699         * lib/c-strstr.c: Likewise.
4700         * lib/classpath.c: Likewise.
4701         * lib/clean-temp.c: Likewise.
4702         * lib/concatpath.c: Likewise.
4703         * lib/copy-file.c: Likewise.
4704         * lib/csharpcomp.c: Likewise.
4705         * lib/csharpexec.c: Likewise.
4706         * lib/execute.c: Likewise.
4707         * lib/fatal-signal.c: Likewise.
4708         * lib/findprog.c: Likewise.
4709         * lib/fwriteerror.c: Likewise.
4710         * lib/gl_array_list.c: Likewise.
4711         * lib/gl_array_oset.c: Likewise.
4712         * lib/gl_avltree_list.c: Likewise.
4713         * lib/gl_avltree_oset.c: Likewise.
4714         * lib/gl_avltreehash_list.c: Likewise.
4715         * lib/gl_carray_list.c: Likewise.
4716         * lib/gl_linked_list.c: Likewise.
4717         * lib/gl_linkedhash_list.c: Likewise.
4718         * lib/gl_list.c: Likewise.
4719         * lib/gl_oset.c: Likewise.
4720         * lib/gl_rbtree_list.c: Likewise.
4721         * lib/gl_rbtree_oset.c: Likewise.
4722         * lib/gl_rbtreehash_list.c: Likewise.
4723         * lib/imaxabs.c: Likewise.
4724         * lib/imaxdiv.c: Likewise.
4725         * lib/javacomp.c: Likewise.
4726         * lib/javaexec.c: Likewise.
4727         * lib/javaversion.c: Likewise.
4728         * lib/linebreak.c: Likewise.
4729         * lib/localcharset.c: Likewise.
4730         * lib/lock.c: Likewise.
4731         * lib/mbchar.c: Likewise.
4732         * lib/mbswidth.c: Likewise.
4733         * lib/mkdtemp.c: Likewise.
4734         * lib/pipe.c: Likewise.
4735         * lib/printf-args.c: Likewise.
4736         * lib/printf-parse.c: Likewise.
4737         * lib/progname.c: Likewise.
4738         * lib/progreloc.c: Likewise.
4739         * lib/readlink.c: Likewise.
4740         * lib/sh-quote.c: Likewise.
4741         * lib/stpcpy.c: Likewise.
4742         * lib/stpncpy.c: Likewise.
4743         * lib/strcasecmp.c: Likewise.
4744         * lib/strcasestr.c: Likewise.
4745         * lib/strcspn.c: Likewise.
4746         * lib/striconv.c: Likewise.
4747         * lib/strncasecmp.c: Likewise.
4748         * lib/strnlen1.c: Likewise.
4749         * lib/strstr.c: Likewise.
4750         * lib/strtok_r.c: Likewise.
4751         * lib/tls.c: Likewise.
4752         * lib/tmpdir.c: Likewise.
4753         * lib/unicodeio.c: Likewise.
4754         * lib/unsetenv.c: Likewise.
4755         * lib/vasnprintf.c: Likewise.
4756         * lib/vasprintf.c: Likewise.
4757         * lib/wait-process.c: Likewise.
4758         * lib/xallocsa.c: Likewise.
4759         * lib/xsetenv.c: Likewise.
4760         * lib/xstriconv.c: Likewise.
4761
4762 2006-09-13  Simon Josefsson  <jas@extundo.com>
4763
4764         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
4765         that internally, suggested by Ralf Wildenhues
4766         <Ralf.Wildenhues@gmx.de>.
4767
4768 2006-09-13  Simon Josefsson  <jas@extundo.com>
4769
4770         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
4771         @LIBOBJS@.
4772         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4773
4774 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
4775
4776         * lib/_fpending.c: Include <config.h> unconditionally, since we no
4777         longer worry about uses that don't define HAVE_CONFIG_H.
4778         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
4779         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
4780         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
4781         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
4782         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
4783         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
4784         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
4785         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
4786         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
4787         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
4788         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
4789         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
4790         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
4791         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
4792         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
4793         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
4794         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
4795         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
4796         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
4797         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
4798         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
4799         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
4800         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
4801         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
4802         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
4803         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
4804         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
4805         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
4806         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
4807         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
4808         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
4809         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
4810         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
4811         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
4812         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
4813         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
4814         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
4815         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
4816         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
4817         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
4818         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
4819         Likewise.
4820
4821 2006-09-13  Eric Blake  <ebb9@byu.net>
4822
4823         * lib/getopt.c: Fix typo in last commit.
4824
4825 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
4826
4827         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
4828         dgettext.
4829
4830 2006-09-12  Jim Meyering  <jim@meyering.net>
4831
4832         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
4833         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
4834         Reported by Nelson H. F. Beebe.
4835
4836 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
4837
4838         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
4839         program_invocation_name and program_invocation_short_name are
4840         initialized.
4841         * lib/argp-namefrob.h: Move declarations of program_invocation_name
4842         and program_invocation_short_name to argp.h, so they are visible
4843         to user programs.
4844         * lib/argp.h: Likewise
4845
4846 2006-09-10  Bruno Haible  <bruno@clisp.org>
4847
4848         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
4849         m4/inttypes_h.m4, m4/uintmax_t.m4.
4850
4851 2006-09-10  Bruno Haible  <bruno@clisp.org>
4852
4853         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
4854         gl_AC_TYPE_UINTMAX_T.
4855
4856 2006-09-10  Bruno Haible  <bruno@clisp.org>
4857
4858         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
4859
4860 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
4861
4862         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
4863         convention.  Text proposed by Bruno Haible.
4864         (struct argp_option): Document the use of N_() wrappers.
4865
4866         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
4867         '\v', and translate the two parts separately, instead of feeding
4868         the whole string to gettext.  This allows to exclude
4869         '\v' from the strings visible to the translator by writing doc
4870         strings as N_("..") "\v" N_("..").
4871
4872 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
4873
4874         * config/srclist.txt: Undo latest change; the bug was fixed.
4875
4876 2006-09-09  Bruno Haible  <bruno@clisp.org>
4877
4878         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
4879         assignments if building a library without libtool.
4880         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
4881         in func_emit_lib_Makefile_am.
4882         (func_import): When building a static library libfoo.a, arrange to
4883         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
4884         (func_create_testdir): Likewise.
4885         * modules/gc (configure.ac, Makefile.am): If building statically,
4886         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
4887         * modules/iconvme (configure.ac, Makefile.am): Likewise.
4888         * modules/striconv (configure.ac, Makefile.am): Likewise.
4889         Based on a suggestion by Ralf Wildenhues.
4890
4891 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
4892
4893         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
4894         Check for unistd.h too, since Autoconf doesn't assume POSIX.
4895         Also:
4896
4897         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
4898         Add year_2050_test to catch glibc bug 2821
4899         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
4900
4901         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
4902         Prefer #ifdef to #if.
4903
4904         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
4905         Return from 'main' instead of calling 'exit'.
4906
4907 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
4908
4909         * lib/mktime.c (guess_time_tm): Fix bug where mktime
4910         returned the maximum time_t value rather than (time_t) -1.
4911         Problem originally reported by William Bardwell
4912         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
4913
4914         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
4915         Moved to here ...
4916         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
4917         ... from here.
4918
4919 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
4920
4921         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
4922         2821 is fixed.
4923
4924 2006-09-08  Jim Meyering  <jim@meyering.net>
4925
4926         Don't make generated files read-only.  That would bother too many
4927         people.  However, do retain the ability to work when targets are
4928         read-only: remove the destination and temporary files before writing
4929         them (when generated via sed or echo), or by using the -f option for
4930         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
4931         * modules/alloca-opt, modules/argz, modules/arpa_inet:
4932         * modules/byteswap, modules/configmake, modules/fcntl:
4933         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
4934         * modules/localcharset, modules/netinet_in, modules/poll:
4935         * modules/stdbool, modules/stdint, modules/sys_select:
4936         * modules/sys_socket, modules/sys_stat, modules/sysexits:
4937
4938 2006-09-08  Jim Meyering  <jim@meyering.net>
4939
4940         Avoid new build failure on FreeBSD 6.0.
4941         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
4942         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
4943         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
4944
4945 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4946
4947         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
4948
4949 2006-09-07  Jim Meyering  <jim@meyering.net>
4950
4951         Fix global typo in last change: use chmod u-w, not chmod u-x.
4952         Spotted by Paul Eggert and Bruce Korb.
4953         * modules/alloca-opt, modules/argz, modules/arpa_inet:
4954         * modules/byteswap, modules/configmake, modules/fcntl:
4955         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
4956         * modules/localcharset, modules/netinet_in, modules/poll:
4957         * modules/stdbool, modules/stdint, modules/sys_select:
4958         * modules/sys_socket, modules/sys_stat, modules/sysexits:
4959
4960 2006-09-06  Jim Meyering  <jim@meyering.net>
4961
4962         Make generated files be read-only.
4963         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
4964         Ensure that each generated file is now read-only.
4965         * modules/argz: Likewise.
4966         * modules/arpa_inet: Likewise.
4967         * modules/byteswap: Likewise.
4968         * modules/configmake: Likewise.
4969         * modules/fcntl: Likewise.
4970         * modules/fnmatch: Likewise.
4971         * modules/getopt: Likewise.
4972         * modules/glob: Likewise.
4973         * modules/inttypes: Likewise.
4974         * modules/netinet_in: Likewise.
4975         * modules/poll: Likewise.
4976         * modules/stdbool: Likewise.
4977         * modules/stdint: Likewise.
4978         * modules/sys_select: Likewise.
4979         * modules/sys_socket: Likewise.
4980         * modules/sys_stat: Likewise.
4981         * modules/sysexits: Likewise.
4982         * modules/localcharset: Same as above, but continue using temporary
4983         file named "t-$@" (why different?) rather than the "$@-t" used
4984         everywhere else.
4985
4986         * modules/sysexits (Makefile.am): Replace literal occurrences
4987         of "sysexit.h" more readable, and more consistent, "$@".
4988
4989 2006-09-06  Bruno Haible  <bruno@clisp.org>
4990
4991         * modules/striconv: New file.
4992         * modules/xstriconv: New file.
4993         * MODULES.html.sh (Internationalization functions): Add striconv,
4994         xstriconv.
4995
4996 2006-09-06  Bruno Haible  <bruno@clisp.org>
4997
4998         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
4999         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
5000         not using libtool correctly.
5001
5002 2006-09-06  Bruno Haible  <bruno@clisp.org>
5003
5004         * lib/striconv.h: New file.
5005         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
5006         iconvstring.c.
5007         * lib/xstriconv.h: New file.
5008         * lib/xstriconv.c: New file.
5009
5010 2006-09-06  Bruno Haible  <bruno@clisp.org>
5011
5012         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
5013         lib_..._LDFLAGS.
5014
5015 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5016
5017         * lib/argz_.h: Sync from Libtool.
5018
5019         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
5020                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5021
5022         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
5023
5024 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
5025
5026         * modules/trim: New file.
5027
5028 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
5029
5030         * lib/trim.h: New file.
5031         * lib/trim.c: New file.
5032
5033 2006-09-05  Bruno Haible  <bruno@clisp.org>
5034
5035         * MODULES.html.sh (String handling): Add trim.
5036
5037 2006-09-04  Karl Berry  <karl@gnu.org>
5038
5039         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
5040         until next release.
5041
5042 2006-09-03  Bruno Haible  <bruno@clisp.org>
5043
5044         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
5045         correctly.
5046
5047 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
5048
5049         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
5050         not gl_GETLOADAVG.  Omit unneeded semicolons.
5051         Problems reported by Ralf Wildenhues in
5052         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
5053         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
5054         at the end, which is the usual gnulib style.
5055
5056         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
5057         of doing all the work ourselves.
5058         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
5059         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
5060
5061 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
5062
5063         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
5064         Problem reported by Ralf Wildenhues in
5065         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
5066
5067         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
5068         HAVE_STRUCT_STATFS_F_FSTYPENAME.
5069
5070 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
5071
5072         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
5073         yesterday's patch by changing test -n to test -z.
5074
5075 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
5076
5077         * modules/getloadavg (Files): Add m4/getloadavg.m4.
5078         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
5079         the former is now obsolescent.
5080
5081         * modules/chdir-long (Depends-on): Add fcntl.
5082
5083 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
5084
5085         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
5086         obsolescent, and programs should use gnulib instead.
5087         * m4/getloadavg.m4: New file, with contents taken from Autoconf
5088         but with prefixes changed.
5089
5090 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
5091
5092         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
5093         or stdbool.h, because they might not exist while configuring.
5094
5095         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
5096         Don't include unistd.h or limits.h; not needed, since chdir-long.h
5097         does that for us.
5098         (O_DIRECTORY): Remove.
5099
5100 2006-08-31  Eric Blake  <ebb9@byu.net>
5101
5102         * gnulib-tool: Don't let emacs change spaces to TAB.
5103
5104 2006-08-31  Bruno Haible  <bruno@clisp.org>
5105
5106         * gnulib-tool: When calling func_import more than once, do it in a
5107         subshell.
5108         Reported by Eric Blake <ebb9@byu.net>.
5109
5110 2006-08-31  Bruno Haible  <bruno@clisp.org>
5111
5112         * gnulib-tool (nl): Remove variable.
5113         (sed_transform_lib_file): Use more robust test for config-h module.
5114         (func_import): Fix typo in 2006-08-25 patch.
5115
5116 2006-08-31  Bruno Haible  <bruno@clisp.org>
5117
5118         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
5119         specified, augment Makefile.am variables instead of assigning them.
5120
5121 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
5122
5123         Work around a bug in both the Linux and SunOS 64-bit kernels:
5124         nanosleep mishandles sleeps for longer than 2**31 seconds.
5125         Problem reported by Frank v Waveren in
5126         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
5127         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
5128         Check for nanosleep bug.
5129         (LIB_NANOSLEEP): Append clock_gettime library if needed.
5130
5131 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
5132
5133         Work around a bug in both the Linux and SunOS 64-bit kernels:
5134         nanosleep mishandles sleeps for longer than 2**31 seconds.
5135         Problem reported by Frank v Waveren in
5136         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
5137         * lib/nanosleep.c (BILLION): New constant.
5138         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
5139         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
5140         implementation.
5141
5142 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
5143
5144         * modules/nanosleep (Depends-on): Add gettime.
5145
5146 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
5147         and Simon Josefsson  <jas@extundo.com>
5148         and Oskar Liljeblad  <oskar@osk.mine.nu>
5149
5150         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
5151         * gnulib-tool (func_import): New license type 'unmodifiable license
5152         text'.
5153         * modules/fdl: Use it.  Longer description.
5154         * module/gpl, module/lgpl: New files.
5155
5156 2006-08-30  Jim Meyering  <jim@meyering.net>
5157
5158         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
5159         shadowing the parameter.
5160
5161 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5162
5163         Sync from Libtool:
5164
5165         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5166
5167         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
5168         sharing with gnulib.  Report by Eric Blake.
5169
5170 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
5171
5172         * modules/isapipe: New file.
5173         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
5174
5175 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
5176
5177         * modules/configmake (Makefile.am): Add a comment, and omit
5178         the CONFIGMAKE_ prefix from generated macro names.  Suggested
5179         by Bruno Haible.
5180
5181 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
5182
5183         * m4/isapipe.m4: New file.
5184
5185 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
5186
5187         * lib/isapipe.c, lib/isapipe.h: New files.
5188
5189 2006-08-29  Jim Meyering  <jim@meyering.net>
5190
5191         * modules/configmake (Makefile.am): Make configmake.h depend on
5192         Makefile.  Otherwise, a stale configmake.h could hang around.
5193
5194 2006-08-29  Eric Blake  <ebb9@byu.net>
5195
5196         * lib/error.c (error_at_line, print_errno_message): Match libc, after
5197         resolution of upstream bug 3044.
5198
5199 2006-08-29  Bruno Haible  <bruno@clisp.org>
5200
5201         * modules/localcharset (Depends-on): Add configmake.
5202         (Makefile.am): Remove setting of LIBDIR through DEFS.
5203
5204 2006-08-29  Bruno Haible  <bruno@clisp.org>
5205
5206         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
5207         defined.
5208
5209 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
5210
5211         * modules/fcntl: New file.
5212         * modules/chdir-safer (Depends-on): Add fcntl.
5213         * modules/fts: Likewise.
5214         * modules/mkdir-p: Likewise.
5215
5216         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
5217         This undoes the most recent change, since we're now addressing the
5218         problem in a different way.
5219
5220         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
5221         into output, since the output might be called Makefile.am even
5222         if $makefile_name is something different.
5223         (func_import): Use $makefile_am rather than
5224         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
5225         empty.
5226
5227         * modules/inttypes (Files): Add m4/inttypes-h.m4.
5228
5229 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
5230
5231         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
5232         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
5233         recent change to stdint.m4, since we're now addressing the problem in a
5234         different way.
5235
5236 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
5237
5238         * m4/fcntl_h.m4: New file.
5239
5240 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
5241
5242         * lib/fcntl_.h: New file.
5243         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
5244         the fcntl module.
5245         * lib/dirchownmod.c: Likewise.
5246         * lib/fts.c: Likewise.
5247
5248         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
5249         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
5250         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
5251         just before including <inttypes.h>, to avoid circular inclusion.
5252
5253 2006-08-28  Jim Meyering  <jim@meyering.net>
5254
5255         * doc/visibility.texi: Actually read and correct the grammar of the
5256         sentence affected by yesterday's change.
5257
5258 2006-08-28  Eric Blake  <ebb9@byu.net>
5259
5260         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
5261         needs wrapper.
5262
5263 2006-08-28  Eric Blake  <ebb9@byu.net>
5264
5265         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
5266
5267 2006-08-28  Eric Blake  <ebb9@byu.net>
5268
5269         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
5270
5271 2006-08-28  Bruno Haible  <bruno@clisp.org>
5272
5273         * modules/c-strstr: New file, from GNU gettext.
5274         * MODULES.html.sh (String handling): Add c-strstr.
5275
5276 2006-08-28  Bruno Haible  <bruno@clisp.org>
5277
5278         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
5279         macros.
5280         Reported by Eric Blake.
5281
5282 2006-08-28  Bruno Haible  <bruno@clisp.org>
5283
5284         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
5285         (VASNPRINTF): Return a string of length > INT_MAX without failing.
5286         * lib/vasprintf.c: Include errno.h, limits.h.
5287         (EOVERFLOW): New fallback definition.
5288         (vasprintf): Test here whether the string length is > INT_MAX.
5289         * lib/vsnprintf.c: Include errno.h, limits.h.
5290         (EOVERFLOW): New fallback definition.
5291         (vsnprintf): Fix bug when generated string was too long for the buffer.
5292         Test here whether the string length is > INT_MAX.
5293
5294 2006-08-28  Bruno Haible  <bruno@clisp.org>
5295
5296         * lib/inttypes_.h (SCNX*): Remove definitions.
5297         Reported by Eric Blake.
5298
5299 2006-08-28  Bruno Haible  <bruno@clisp.org>
5300
5301         * lib/c-strstr.h: New file, from GNU gettext.
5302         * lib/c-strstr.c: New file, from GNU gettext.
5303
5304 2006-08-28  Bruno Haible  <bruno@clisp.org>
5305
5306         * gnulib-tool: Reorder some statements.
5307
5308 2006-08-28  Bruno Haible  <bruno@clisp.org>
5309
5310         * gnulib-tool: New option --makefile-name.
5311         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
5312         $makefile_name.
5313         (func_import): Write $makefile_name to the cache file, and read it from
5314         there unless explicitly specified. Use $makefile_name as file name
5315         instead of Makefile.am. Adjust the recommendations accordingly.
5316
5317 2006-08-28  Bruno Haible  <bruno@clisp.org>
5318
5319         * gnulib-tool (func_verify_module): Check against misapplying patch.
5320
5321 2006-08-28  Bruno Haible  <bruno@clisp.org>
5322
5323         * gnulib-tool (func_relativize, func_relconcat): New functions.
5324         Give an error if --local-dir is given with --update.
5325         Remove trailing slashes from $local_gnulib_dir.
5326         (func_import): Store the relativized $local_gnulib_dir in
5327         gnulib-cache.m4, and read it from there if not specified explicitly.
5328
5329 2006-08-28  Bruno Haible  <bruno@clisp.org>
5330
5331         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
5332         is the current directory. Respect also $local_gnulib_dir.
5333
5334 2006-08-28  Bruno Haible  <bruno@clisp.org>
5335             Simon Josefsson  <jas@extundo.com>
5336
5337         BeOS portability.
5338         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
5339
5340 2006-08-27  Jim Meyering  <jim@meyering.net>
5341
5342         * doc/visibility.texi: Remove duplicate word: "pointer".
5343
5344 2006-08-26  Bruno Haible  <bruno@clisp.org>
5345
5346         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
5347         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
5348         (Makefile.am): Create inttypes.h from inttypes_.h.
5349         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
5350
5351         * modules/imaxabs: New file.
5352
5353         * modules/imaxdiv: New file.
5354
5355 2006-08-26  Bruno Haible  <bruno@clisp.org>
5356
5357         * m4/inttypes.m4: New file.
5358         * m4/_inttypes_h.m4: Remove file.
5359         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
5360         PRI_MACROS_BROKEN.
5361         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
5362
5363         * m4/imaxabs.m4: New file.
5364
5365         * m4/imaxdiv.m4: New file.
5366
5367 2006-08-26  Bruno Haible  <bruno@clisp.org>
5368
5369         * lib/inttypes_.h: New file.
5370         * lib/inttypes.h: Remove file.
5371         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
5372
5373         * lib/imaxabs.c: New file.
5374
5375         * lib/imaxdiv.c: New file.
5376
5377 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
5378
5379         New config-h module, so that "make" output needn't be cluttered
5380         by -DHAVE_CONFIG_H.
5381         * MODULES.html.sh (Support for building libraries and executables):
5382         Add config-h.
5383         * modules/config-h: New file.
5384         * gnulib-tool (nl, sed_transform_lib_file): New vars.
5385         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
5386         the config-h module is used.
5387
5388         New configmake module, so that "make" output needn't be cluttered
5389         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
5390         * MODULES.html.sh (Support for building libraries and executables):
5391         Add configmake.
5392         * modules/configmake: New file.
5393
5394 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
5395
5396         * m4/config-h.m4: New file.
5397
5398 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
5399
5400         * config/srclist.txt: Add elisp-comp.
5401
5402 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
5403
5404         * MODULES.html.sh (Support for building libraries and executables):
5405         Add elisp-comp.
5406         * build-aux/elisp-comp: New file.
5407         * modules/elisp-comp: New file.
5408
5409 2006-08-24  Bruno Haible  <bruno@clisp.org>
5410
5411         * gnulib-tool (func_create_testdir): Use non-default values of
5412         sourcebase and m4base.
5413
5414 2006-08-24  Bruno Haible  <bruno@clisp.org>
5415
5416         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
5417         HTML structure.
5418
5419 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
5420
5421         * modules/openat (Depends-on): Add lchown.
5422
5423 2006-08-23  Bruno Haible  <bruno@clisp.org>
5424
5425         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
5426         of gl_LOCK_EARLY instead of gl_LOCK.
5427
5428 2006-08-23  Bruno Haible  <bruno@clisp.org>
5429
5430         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
5431         on OSF/1 to no.
5432         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
5433
5434 2006-08-23  Bruno Haible  <bruno@clisp.org>
5435
5436         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
5437         as unusable.
5438
5439         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
5440         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
5441         (gl_LOCK): New macro.
5442
5443 2006-08-22  Simon Josefsson  <jas@extundo.com>
5444
5445         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
5446         to md5 module.
5447
5448 2006-08-22  Simon Josefsson  <jas@extundo.com>
5449
5450         * MODULES.html.sh: Add "Support for maintaining and release
5451         projects".
5452
5453         * build-aux/gnupload: New file, from coreutils.
5454
5455 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
5456
5457         Avoid the need for AC_LIBSOURCES in m4 macros.
5458         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
5459         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
5460         * modules/check-version (EXTRA_DIST): Add check-version.h.
5461         * modules/crc (EXTRA_DIST): Add crc.h.
5462         * modules/des (EXTRA_DIST): Add des.h.
5463         * modules/gc (EXTRA_DIST): Add gc.h.
5464         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
5465         * modules/getline (EXTRA_DIST): Add getline.h.
5466         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
5467         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
5468         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
5469         * modules/md2 (EXTRA_DIST): Add md2.h.
5470         * modules/md4 (EXTRA_DIST): Add md4.h.
5471         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
5472         * modules/read-file (EXTRA_DIST): Add read-file.h.
5473         * modules/readline (EXTRA_DIST): Add readline.h.
5474         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
5475         rijndael-api-fst.h.
5476
5477 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
5478
5479         * m4/rijndael.m4 (gl_ARCFOUR):
5480         * m4/arctwo.m4 (gl_ARCTWO):
5481         * m4/check-version.m4 (gl_CHECK_VERSION):
5482         * m4/crc.m4 (gl_CRC):
5483         * m4/des.m4 (gl_DES):
5484         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
5485         * m4/gc.m4 (gl_GC):
5486         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
5487         * m4/getline.m4 (gl_FUNC_GETLINE):
5488         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
5489         * m4/hmac-md5.m4 (gl_HMAC_MD5):
5490         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
5491         * m4/md2.m4 (gl_MD2):
5492         * m4/md4.m4 (gl_MD4):
5493         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
5494         * m4/read-file.m4 (gl_FUNC_READ_FILE):
5495         * m4/readline.m4 (gl_FUNC_READLINE):
5496         * m4/rijndael.m4 (gl_RIJNDAEL):
5497         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
5498         to get the necessary .h files and whatnot.
5499
5500 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
5501
5502         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
5503         gnulib rather than the other way around.
5504         * config/srclistvars.sh (COREUTILS): Remove.
5505
5506 2006-08-22  Jim Meyering  <jim@meyering.net>
5507
5508         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
5509
5510         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
5511
5512 2006-08-22  Eric Blake  <ebb9@byu.net>
5513
5514         * modules/regexprops-generic: New file.
5515         * MODULES.html.sh (Support for building documentation): List it.
5516
5517 2006-08-22  Eric Blake  <ebb9@byu.net>
5518
5519         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
5520         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
5521         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
5522         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
5523
5524 2006-08-22  Bruno Haible  <bruno@clisp.org>
5525
5526         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
5527         and lib_LTLIBRARIES like the other lib_* variables.
5528
5529 2006-08-22  Bruno Haible  <bruno@clisp.org>
5530
5531         * build-aux/x-to-1.in: New file, from GNU gettext.
5532
5533 2006-08-22  Bruno Haible  <bruno@clisp.org>
5534
5535         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
5536         <utmpx.h> exists.
5537
5538 2006-08-22  Bruno Haible  <bruno@clisp.org>
5539
5540         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
5541         <utmpx.h> exists.
5542
5543 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
5544
5545         BeOS portability.
5546         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
5547         exist.
5548         Problem reported by Bruno Haible.
5549
5550 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
5551
5552         Avoid the need for AC_LIBSOURCES in m4 macros.
5553         * modules/acl (EXTRA_DIST): Add acl.h.
5554         * modules/argmatch (Files): Add m4/argmatch.m4.
5555         (configure.ac): Add gl_ARGMATCH.
5556         (EXTRA_DIST): Renamed from lib_SOURCES, for
5557         consistency with the other modules.  Remove argmatch.c.
5558         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
5559         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
5560         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
5561         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
5562         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
5563         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
5564         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
5565         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
5566         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
5567         * modules/closeout (EXTRA_DIST): Add closeout.h.
5568         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
5569         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
5570         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
5571         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
5572         dirname.h; remove basename.c and stripslash.c.
5573         * modules/exclude (EXTRA_DIST): Add exclude.h.
5574         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
5575         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
5576         * modules/file-type (EXTRA_DIST): Add file-type.h.
5577         * modules/filemode (EXTRA_DIST): Add filemode.h.
5578         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
5579         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
5580         * modules/fpending (EXTRA_DIST): Add __fpending.h.
5581         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
5582         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
5583         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
5584         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
5585         * modules/getdate (EXTRA_DIST): Add getdate.c.
5586         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
5587         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
5588         * modules/getpass (EXTRA_DIST): Add getpass.h.
5589         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
5590         * modules/group-member (EXTRA_DIST): Add group-member.h.
5591         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
5592         * modules/hash (EXTRA_DIST): Add hash.h.
5593         * modules/human (EXTRA_DIST): Add human.h.
5594         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
5595         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
5596         * modules/lchown (EXTRA_DIST): Add lchown.h.
5597         * modules/long-options (EXTRA_DIST): Add long-options.h.
5598         * modules/lstat (EXTRA_DIST): Add lstat.h.
5599         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
5600         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
5601         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
5602         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
5603         * modules/memxor (EXTRA_DIST): Add memxor.h.
5604         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
5605         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
5606         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
5607         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
5608         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
5609         * modules/physmem (EXTRA_DIST): Add physmem.h.
5610         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
5611         * modules/posixver (EXTRA_DIST): Add posixver.h.
5612         * modules/quote (EXTRA_DIST): Add quote.h.
5613         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
5614         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
5615         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
5616         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
5617         regex_internal.h regexec.c.
5618         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
5619         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
5620         * modules/same (EXTRA_DIST): Add same.h.
5621         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
5622         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
5623         * modules/savedir (EXTRA_DIST): Add savedir.h.
5624         * modules/sha1 (EXTRA_DIST): Add sha1.h.
5625         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
5626         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
5627         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
5628         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
5629         * modules/strdup (EXTRA_DIST): Add strdup.h.
5630         * modules/strftime (EXTRA_DIST): Add strftime.h.
5631         * modules/strndup (EXTRA_DIST): Add strndup.h.
5632         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
5633         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
5634         * modules/time_r (EXTRA_DIST): Add time_r.h.
5635         * modules/timespec (EXTRA_DIST): Add timespec.h.
5636         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
5637         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
5638         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
5639         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
5640         * modules/userspec (EXTRA_DIST): Add userspec.h.
5641         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
5642         * modules/utimens (EXTRA_DIST): Add utimens.h.
5643         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
5644         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
5645         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
5646         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
5647         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
5648         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
5649         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
5650         * modules/yesno (EXTRA_DIST): Add yesno.h.
5651
5652 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
5653
5654         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
5655
5656         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
5657         * m4/dev-ino.m4, same-inode.m4: Remove.
5658
5659         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
5660         * m4/acl.m4 (AC_FUNC_ACL):
5661         * m4/backupfile.m4 (gl_BACKUPFILE):
5662         * m4/c-strtod.m4 (gl_C99_STRTOLD):
5663         * m4/canon-host.m4 (gl_CANON_HOST):
5664         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
5665         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
5666         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
5667         * m4/cloexec.m4 (gl_CLOEXEC):
5668         * m4/close-stream.m4 (gl_CLOSE_STREAM):
5669         * m4/closeout.m4 (gl_CLOSEOUT):
5670         * m4/dirfd.m4 (gl_FUNC_DIRFD):
5671         * m4/dirname.m4 (gl_DIRNAME):
5672         * m4/exclude.m4 (gl_EXCLUDE):
5673         * m4/exitfail.m4 (gl_EXITFAIL):
5674         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
5675         * m4/file-type.m4 (gl_FILE_TYPE):
5676         * m4/filemode.m4 (gl_FILEMODE):
5677         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
5678         * m4/fpending.m4 (gl_FUNC_FPENDING):
5679         * m4/fprintftime.m4 (gl_FPRINTFTIME):
5680         * m4/fts.m4 (gl_FUNC_FTS):
5681         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
5682         * m4/getdate.m4 (gl_GETDATE):
5683         * m4/gethrxtime.m4 (gl_GETHRXTIME):
5684         * m4/getpagesize.m4 (gl_GETPAGESIZE):
5685         * m4/getpass.m4 (gl_FUNC_GETPASS):
5686         * m4/gettime.m4 (gl_GETTIME):
5687         * m4/getugroups.m4 (gl_GETUGROUPS):
5688         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
5689         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
5690         * m4/hard-locale.m4 (gl_HARD_LOCALE):
5691         * m4/hash.m4 (gl_HASH):
5692         * m4/idcache.m4 (gl_IDCACHE):
5693         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
5694         * m4/lchown.m4 (gl_FUNC_LCHOWN):
5695         * m4/long-options.m4 (gl_LONG_OPTIONS):
5696         * m4/lstat.m4 (gl_FUNC_LSTAT):
5697         * m4/md5.m4 (gl_MD5):
5698         * m4/memcasecmp.m4 (gl_MEMCASECMP):
5699         * m4/memcoll.m4 (gl_MEMCOLL):
5700         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
5701         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
5702         * m4/memxor.m4 (gl_MEMXOR):
5703         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
5704         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
5705         * m4/modechange.m4 (gl_MODECHANGE):
5706         * m4/mountlist.m4 (gl_MOUNTLIST):
5707         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
5708         * m4/openat.m4 (gl_FUNC_OPENAT):
5709         * m4/pathmax.m4 (gl_PATHMAX):
5710         * m4/physmem.m4 (gl_PHYSMEM):
5711         * m4/posixtm.m4 (gl_POSIXTM):
5712         * m4/posixver.m4 (gl_POSIXVER):
5713         * m4/quote.m4 (gl_QUOTE):
5714         * m4/quotearg.m4 (gl_QUOTEARG):
5715         * m4/readtokens.m4 (gl_READTOKENS):
5716         * m4/readutmp.m4 (gl_READUTMP):
5717         * m4/regex.m4 (gl_REGEX):
5718         * m4/safe-read.m4 (gl_SAFE_READ):
5719         * m4/safe-write.m4 (gl_SAFE_WRITE):
5720         * m4/same.m4 (gl_SAME):
5721         * m4/save-cwd.m4 (gl_SAVE_CWD):
5722         * m4/savedir.m4 (gl_SAVEDIR):
5723         * m4/settime.m4 (gl_SETTIME):
5724         * m4/sha1.m4 (gl_SHA1):
5725         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
5726         * m4/stat-macros.m4 (gl_STAT_MACROS):
5727         * m4/stat-time.m4 (gl_STAT_TIME):
5728         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
5729         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
5730         * m4/strdup.m4 (gl_FUNC_STRDUP):
5731         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
5732         * m4/strndup.m4 (gl_FUNC_STRNDUP):
5733         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
5734         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
5735         * m4/time_r.m4 (gl_TIME_R):
5736         * m4/timespec.m4 (gl_TIMESPEC):
5737         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
5738         * m4/unlinkdir.m4 (gl_UNLINKDIR):
5739         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
5740         * m4/userspec.m4 (gl_USERSPEC):
5741         * m4/utimecmp.m4 (gl_UTIMECMP):
5742         * m4/utimens.m4 (gl_UTIMENS):
5743         * m4/xalloc.m4 (gl_XALLOC):
5744         * m4/xgetcwd.m4 (gl_XGETCWD):
5745         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
5746         * m4/xreadlink.m4 (gl_XREADLINK):
5747         * m4/xstrtod.m4 (gl_XSTRTOD):
5748         * m4/yesno.m4 (gl_YESNO):
5749         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
5750         to get the necessary .h files and whatnot.
5751
5752 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
5753             Bruno Haible  <bruno@clisp.org>
5754
5755         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
5756         /bin/sh understanding of '!' conditional negation.
5757
5758 2006-08-21  Jim Meyering  <jim@meyering.net>
5759
5760         * modules/openat (Depends-on): Really alphabetize.
5761
5762         * modules/acl (Depends-on): Add error and quote.
5763
5764         * check-module (find_included_lib_files): Add at-func.c to the
5765         ok-to-include-more-than-once white list.
5766
5767         * modules/openat (Depends-on): Add lstat.  Alphabetize.
5768
5769 2006-08-21  Bruno Haible  <bruno@clisp.org>
5770
5771         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
5772         Emit a pkgdata_DATA variable only if some snippets add contents to it.
5773         Reported by Martin Lambers <marlam@marlam.de>.
5774
5775 2006-08-21  Bruno Haible  <bruno@clisp.org>
5776
5777         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
5778         specify an installation location, don't emit a noinst_LIBRARIES or
5779         noinst_LTLIBRARIES assignment.
5780
5781 2006-08-21  Bruno Haible  <bruno@clisp.org>
5782
5783         BeOS portability.
5784         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
5785         BeOS has mbrtowc() but no <wctype.h>.
5786
5787 2006-08-21  Bruno Haible  <bruno@clisp.org>
5788
5789         BeOS portability.
5790         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
5791         exist.
5792
5793 2006-08-21  Bruno Haible  <bruno@clisp.org>
5794
5795         BeOS portability.
5796         * lib/mbchar.h: Include <wctype.h> only if it exists.
5797
5798 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
5799
5800         Remove files that are no longer needed by their respective modules.
5801         * m4/obstack.m4: Remove.
5802         * m4/strerror_r.m4: Remove.
5803         * m4/uint32_t.m4: Remove.
5804         * m4/uintptr_t.m4: Remove.
5805         * m4/ullong_max.m4: Remove.
5806         * m4/xstrtoimax.m4: Remove.
5807         * m4/xstrtoumax.m4: Remove.
5808
5809         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
5810         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
5811         dependencies now capture this.
5812
5813         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
5814         Do not use AC_LIBSOURCES, since gnulib modules now do this.
5815         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
5816         * m4/human.m4 (gl_HUMAN): Likewise.
5817         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
5818         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
5819
5820         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
5821
5822         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
5823         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
5824         stdint.
5825         * m4/human.m4 (gl_HUMAN): Likewise.
5826         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
5827         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
5828         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
5829         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
5830         * m4/xstrtol (gl_XSTRTOL): Likewise.
5831
5832         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
5833         AC_TYPE_LONG_LONG_INT.
5834         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
5835         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
5836         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
5837         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
5838
5839         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
5840         on stdbool.
5841
5842         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
5843         (gl_PREREQ_XSTRTOUL): Remove.
5844
5845         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
5846
5847         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
5848         mode.
5849
5850 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
5851
5852         Add and change modules to make it easier for coreutils to use
5853         gnulib-tool.
5854         * modules/backupfile (Files): Remove m4/d-ino.m4.
5855         (Depends-on): Add d-ino.
5856         * modules/cycle-check (Depends-on): Add stdint.
5857         (lib_SOURCES): Add cycle-check.h.
5858         * modules/d-ino: New module.
5859         * modules/d-type: New module.
5860         * modules/error (Files): Remove m4/strerror_r.m4.
5861         * modules/filemode (Files): Add m4/st_dm_mode.m4.
5862         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
5863         m4/inttypes_h.m4, m4/uintmax_t.m4.
5864         (Depends-on): Add stdint.
5865         (lib_SOURCES): Add fsusage.h.
5866         * modules/getcwd (Files): Remove d-ino.m4.
5867         (Depends-on): Add d-ino.
5868         * modules/getndelim2 (Depends-on): Add stdint.
5869         * modules/glob (Files): Remove m4/d-type.m4.
5870         (Depends-on): Add d-type.
5871         * modules/host-os: New module.
5872         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
5873         m4/inttypes_h.m4, m4/uintmax_t.m4.
5874         * Depends-on: Add stdint.
5875         (lib_SOURCES): Add human.h.
5876         * modules/inttostr (Files): Remove m4/intmax_t.m4,
5877         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
5878         m4/uintmax_t.m4, m4/ulonglong.m4.
5879         (Depends-on): Add stdint.
5880         (EXTRA_DIST): Add inttostr.h.
5881         * modules/lchmod: New module.
5882         * modules/link-follow: New module.
5883         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
5884         (Depends-on): Add lchmod.
5885         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
5886         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
5887         (Depends-on): Add stdint.
5888         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
5889         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
5890         (Depends-on): Add stdint.
5891         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
5892         * modules/perl: New module.
5893         * modules/regex (Depends-on): Add stdint.
5894         * modules/rmdir-errno: New module.
5895         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
5896         m4/intmax_t.m4.
5897         (Depends-on): Add stdint.
5898         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
5899         m4/uintmax_t.m4.
5900         (Depends-on): Add stdint.
5901         * modules/unlink-busy: New module.
5902         * modules/utimecmp (Depends-on): Add stdint.
5903         * modules/uptime: New module.
5904         * modules/winsz-ioctl: New module.
5905         * modules/winsz-termios: New module.
5906         * modules/xnanosleep (Depends-on): Add nanosleep.
5907         * modules/ullong_max: Remove.
5908         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
5909         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
5910         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
5911         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
5912         (Depends-on): Add inttypes.
5913         (lib_SOURCES): Add xstrtol.h.
5914         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
5915         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
5916         * MODULES.html.sh: Move 'assert' into the assert section.
5917         Move 'dummy' into the linking section.
5918         Remove ullong_max.
5919         Add section for compatibility checks for POSIX:2001 functions,
5920         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
5921         winsz-ioctl, and winsz-termios into it.
5922         Add lchmod.
5923         Add top-level Misc section and put host-os, perl, and uptime
5924         into it.
5925
5926 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
5927
5928         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
5929         now assume the stdint module.  Do not include inttypes.h.
5930         * lib/fsusage.h: Likewise.
5931         * lib/getndelim2.c: Likewise.
5932         * lib/human.h: Likewise.
5933         * lib/inttostr.h: Likewise.
5934         * lib/obstack.c: Likewise.
5935         * lib/regex_internal.h: Likewise.
5936         * lib/tempname.c: Likewise.
5937         * lib/utimecmp.c: Likewise.
5938         * lib/xstrtol.h: Likewise.
5939
5940         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
5941
5942         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
5943         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
5944         * lib/xtime.h: Likewise.
5945
5946 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
5947
5948         * modules/openat (Files): Add lib/fchmodat.c.
5949         Fixes problem reported by Jay Youngman.
5950
5951 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
5952
5953         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
5954         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
5955
5956 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
5957             Bruno Haible  <bruno@clisp.org>
5958
5959         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
5960         and is a script that invokes bison. Tighten the code. Add comments.
5961
5962 2006-08-18  Jim Meyering  <jim@meyering.net>
5963
5964         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
5965         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
5966         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
5967         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
5968
5969 2006-08-18  Bruno Haible  <bruno@clisp.org>
5970
5971         * modules/bison-i18n: New file.
5972         * MODULES.html.sh (Internationalization functions): Add it.
5973
5974 2006-08-18  Bruno Haible  <bruno@clisp.org>
5975
5976         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
5977         sys/statvfs.h. When getmntinfo was found, check its declaration and
5978         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
5979
5980 2006-08-18  Bruno Haible  <bruno@clisp.org>
5981
5982         * m4/bison-i18n.m4: New file, from bison.
5983
5984 2006-08-18  Bruno Haible  <bruno@clisp.org>
5985
5986         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
5987         (ME_DUMMY): Treat "kernfs" as a dummy.
5988         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
5989
5990 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
5991
5992         Update from coreutils.
5993
5994         2006-08-15  Jim Meyering  <jim@meyering.net>
5995
5996         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
5997
5998         2006-01-17  Jim Meyering  <jim@meyering.net>
5999
6000         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
6001
6002         2006-01-11  Jim Meyering  <jim@meyering.net>
6003
6004         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
6005         Check for the lchmod function.
6006
6007 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
6008
6009         Update from coreutils.
6010
6011         * lib/__fpending.h: Add copyright notice.
6012         * lib/fprintftime.h: Likewise.
6013         * lib/savedir.c: Use (C) in copyright notice.
6014         * lib/savedir.h: Likewise.
6015
6016         2006-08-15  Jim Meyering  <jim@meyering.net>
6017
6018         * lib/at-func.c: New file, with the logic of all emulated at-functions.
6019         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
6020         in support of the EXPECTED_ERRNO macro.
6021         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
6022         definitions.  Instead, define the appropriate symbols and include
6023         "at-func.c".
6024         * lib/mkdirat.c (mkdirat): Likewise.
6025         * lib/fchmodat.c (fchmodat): Likewise.
6026         (ENOSYS): Remove definition.
6027         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
6028         it.  Don't include "unistd--.h" -- it wasn't ever used.
6029
6030         2006-01-17  Jim Meyering  <jim@meyering.net>
6031
6032         Rewrite fts.c not to change the current working directory,
6033         by using openat, fstatat, fdopendir, etc..
6034
6035         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
6036         (HAVE_OPENAT_SUPPORT): Define.
6037         [_LIBC] (fchdir): Don't undef or define; no longer used.
6038         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
6039         Now, this `function' always succeeds, and consumes its file descriptor
6040         parameter -- so callers must not close such FDs.  Update callers.
6041         (diropen_fd, opendirat, cwd_advance_fd): New functions.
6042         (diropen): Add parameter, SP.  Adjust all callers.
6043         Implement using diropen_fd, rather than open.
6044         (fts_open): Initialize new member, fts_cwd_fd.
6045         Remove fts_rft-setting code.
6046         (fts_close): Close fts_cwd_fd, if necessary.
6047         (__opendir2): Define in terms of opendir or opendirat,
6048         depending on whether the FST_NOCHDIR flag is set.
6049         (fts_build): Since fts_safe_changedir consumes its FD, and since
6050         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
6051         and close the dup'd file descriptor upon failure.
6052         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
6053         (fts_safe_changedir): Tweak semantics to reflect that this function
6054         now calls cwd_advance_fd and hence consumes its FD argument.
6055         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
6056         [struct FTS] (fts_rft): Remove now-unused member.
6057         [struct FTS] (fts_cycle.state): Improve comment.
6058
6059         * lib/openat.c (openat_needs_fchdir): New function.
6060         * lib/openat.h (openat_needs_fchdir): Declare it.
6061
6062 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
6063
6064         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
6065         Problem and fix reported by Pádraig Brady in
6066         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
6067
6068 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
6069
6070         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
6071
6072 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
6073
6074         * lib/memcoll.c (memcoll): Optimize for the common case where the
6075         arguments are bytewise equal.
6076
6077 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
6078
6079         * doc/regexprops-generic.texi: Add a copyright notice.
6080
6081 2006-08-15  Bruno Haible  <bruno@clisp.org>
6082
6083         * modules/tmpdir (License): Change to LGPL.
6084
6085 2006-08-15  Bruno Haible  <bruno@clisp.org>
6086
6087         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
6088         module.
6089
6090 2006-08-14  Simon Josefsson  <jas@extundo.com>
6091
6092         * config/srclist.txt: Add gnupload.
6093
6094 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
6095
6096         Change copyright notice from LGPL 2 to GPL 2, since that's the
6097         standard form used in the gnulib repository.
6098         * tests/test-lock.c: Likewise.
6099         * tests/test-stdint.c: Likewise.
6100         * tests/test-tls.c: Likewise.
6101
6102         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
6103         prelude-manager.  User shorter URLs for GNU projects, without '?'.
6104         Add copyright notice.
6105
6106         * check-module: Add copyright notice.  Output a copyright
6107         notice if "--version" is specified.
6108         * modules/COPYING: New file.
6109         * tests/test-getaddrinfo.c: Add copyright notice.
6110         * tests/test-verify.c: Likewise.
6111
6112 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
6113
6114         Change copyright notice from LGPL 2 to GPL 2, since that's the
6115         standard form used in the gnulib repository.
6116         * lib/lock.c: LGPL -> GPL.
6117         * lib/lock.h: Likewise.
6118         * lib/strnlen1.c: Likewise.
6119         * lib/strnlen1.h: Likewise.
6120         * lib/tls.c: Likewise.
6121         * lib/tls.h: Likewise.
6122         * lib/tmpdir.c: Likewise.
6123
6124         * lib/TODO: Remove; this belongs only in coreutils.
6125
6126 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
6127
6128         Add copyright notices to long-enough files that lack them, since
6129         otherwise the files aren't clearly free.  Use the same notice that
6130         getdate.texi already uses.
6131         * doc/alloca-opt.texi: Add copyright notice.
6132         * doc/alloca.texi: Likewise.
6133         * doc/ctime.texi: Likewise.
6134         * doc/functions.texi: Likewise.
6135         * doc/gcd.texi: Likewise.
6136         * doc/gnulib-tool.texi: Likewise.
6137         * doc/inet_ntoa.texi: Likewise.
6138         * doc/visibility.texi: Likewise.
6139
6140         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
6141         * doc/quote.texi: Add copyright notice.
6142
6143         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
6144         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
6145         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
6146         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
6147         is now obsolete, and give a pointer to the Sun list.
6148         Add copyright notice.
6149
6150 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
6151
6152         * config/srclistvars.sh: Add copyright notice.
6153
6154 2006-08-14  Eric Blake  <ebb9@byu.net>
6155
6156         Import the following change from libc:
6157
6158         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
6159
6160         Upstream bug 2997.
6161         * lib/misc/error.c: Add space between program name and message if file
6162         name is missing.
6163
6164 2006-08-12  Karl Berry  <karl@gnu.org>
6165
6166         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
6167         remove, these originate in gnulib now.
6168
6169 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6170
6171         * doc/Makefile (standards.info standards.html standards.dvi):
6172         Also depend on make-stds.texi.
6173
6174 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
6175
6176         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
6177         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
6178
6179         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
6180         in wchar_t.  Problem reported by Eric Blake.
6181
6182         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
6183         LEN is smaller than SIZE.  Suggested by Bruno Haible.
6184         Also, help the compiler to keep LEN in a register.
6185
6186 2006-08-11  Eric Blake  <ebb9@byu.net>
6187
6188         * users.txt: Sort.  Add tar.
6189
6190 2006-08-11  Bruno Haible  <bruno@clisp.org>
6191
6192         * users.txt: New file.
6193
6194 2006-08-11  Bruno Haible  <bruno@clisp.org>
6195
6196         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
6197         before <wchar.h>. Needed for OSF/1 and BSD/OS.
6198
6199 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
6200
6201         * modules/snprintf (Depends-on): Remove minmax.
6202         (Maintainer): Add self and Bruno.
6203
6204 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
6205
6206         * lib/.cppi-disable: Add snprintf.h, socket_.h.
6207         * lib/snprintf.c: Include <errno.h> and <limits.h>.
6208         (EOVERFLOW): Define if the system does not.
6209         Do not include "minmax.h"; it wasn't used.
6210         (snprintf): Don't assume size_t promotes to an unsigned type.
6211         Fix bug when generated string was too long for the buffer: the
6212         buffer's contents are supposed to be the initial prefix of the
6213         output.  Don't assume vasnprintf returns EOVERFLOW if the size
6214         exceeds INT_MAX; do the check ourselves.
6215
6216         Import the following changes from libc:
6217
6218         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
6219
6220         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
6221         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
6222         set wc to the byte which couldn't be converted.
6223         (re_string_reconstruct): Don't clear valid_raw_len before calling
6224         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
6225         tip_context using re_string_context_at.
6226
6227         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
6228
6229         * lib/posix/regex.h: g++ still cannot handled [restrict].
6230
6231         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
6232
6233         * lib/posix/regex.h: Remove special handling for VMS.
6234
6235 2006-08-10  Jim Meyering  <jim@meyering.net>
6236
6237         * modules/same-inode: New module.
6238         * modules/dev-ino: New module.
6239         * modules/cycle-check: Depend on these modules, rather than simply
6240         including their .h files.
6241         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
6242         required via m4/cycle-check.m4.
6243         * modules/same: Depend on new same-inode module, rather than
6244         including same-inode.h.
6245         * modules/chdir-safer: New file.
6246
6247         * modules/chown (Depends-on): Add stat-macros.
6248
6249 2006-08-10  Jim Meyering  <jim@meyering.net>
6250
6251         * m4/cycle-check.m4: New file.
6252         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
6253         * m4/dev-ino.m4, m4/same-inode.m4: New files.
6254
6255 2006-08-10  Eric Blake  <ebb9@byu.net>
6256
6257         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
6258         in from original proposal.
6259
6260 2006-08-10  Eric Blake  <ebb9@byu.net>
6261         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6262
6263         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
6264         namespace.
6265
6266 2006-08-10  Bruno Haible  <bruno@clisp.org>
6267
6268         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
6269         as well.
6270
6271 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
6272
6273         Sync from coreutils.
6274
6275         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
6276
6277         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
6278         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
6279
6280 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
6281
6282         * modules/restrict: Remove; no longer needed now that we assume
6283         Autoconf 2.59 or later.
6284         * MODULES.html.sh: Remove 'restrict'.
6285         * modules/argp (Depends-on): Remove 'restrict'.
6286         * modules/base64 (Depends-on): Likewise.
6287         * modules/gc (Depends-on): Likewise.
6288         * modules/getaddrinfo (Depends-on): Likewise.
6289         * modules/glob (Depends-on): Likewise.
6290         * modules/inet_ntop (Depends-on): Likewise.
6291         * modules/inet_pton (Depends-on): Likewise.
6292         * modules/memxor (Depends-on): Likewise.
6293         * modules/regex (Depends-on): Likewise.
6294         * modules/strtok_r (Depends-on): Likewise.
6295         * modules/time_r (Depends-on): Likewise.
6296
6297 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
6298
6299         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
6300         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
6301         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
6302         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
6303         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
6304         * m4/memxor.m4 (gl_MEMXOR): Likewise.
6305         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
6306         gl_C_RESTRICT replaced by AC_C_RESTRICT.
6307
6308         Merge from coreutils.
6309         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
6310         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
6311         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
6312         * m4/time_r.m4 (gl_TIME_R): Likewise.
6313
6314 2006-08-09  Karl Berry  <karl@gnu.org>
6315
6316         * config/srclist.txt: no more gettext-tools, per Bruno.
6317
6318 2006-08-08  Eric Blake  <ebb9@byu.net>
6319
6320         * modules/verror: New module.
6321         * MODULES.html.sh: Document it.
6322
6323 2006-08-08  Eric Blake  <ebb9@byu.net>
6324
6325         * lib/verror.h, lib/verror.c: New files.
6326
6327 2006-08-08  Eric Blake  <ebb9@byu.net>
6328
6329         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
6330         verror_at_line output complies with GNU Coding Standards even when
6331         file is NULL.
6332
6333 2006-08-07  Bruno Haible  <bruno@clisp.org>
6334
6335         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
6336         versions of AIX.
6337         Reported by Ralf Wildenhues.
6338
6339 2006-08-07  Bruno Haible  <bruno@clisp.org>
6340
6341         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
6342         in an AC_DEFUN. Needed so that the autoconf snippets can use
6343         AC_REQUIRE.
6344
6345 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6346
6347         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
6348         Initialize pkgdata_DATA.
6349         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
6350         overriding it.
6351
6352 2006-08-06  Eric Blake  <ebb9@byu.net>
6353
6354         * lib/error.h: Fold in some upstream changes from glibc.
6355         * lib/error.c: Likewise.
6356
6357 2006-08-04  Bruno Haible  <bruno@clisp.org>
6358
6359         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
6360         Make the mostlyclean-local rule depend on mostlyclean-generic.
6361         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
6362
6363 2006-07-31  Bruno Haible  <bruno@clisp.org>
6364
6365         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
6366         <stdlib.h>, <string.h>.
6367
6368 2006-07-30  Bruno Haible  <bruno@clisp.org>
6369
6370         * modules/readlink (License): Change to LGPL.
6371
6372 2006-07-30  Bruno Haible  <bruno@clisp.org>
6373
6374         * modules/javaversion (Makefile.am): Distribute javaversion.java and
6375         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
6376         set PKGDATADIR to point to it.
6377
6378 2006-07-30  Bruno Haible  <bruno@clisp.org>
6379
6380         * modules/csharpexec (configure.ac): Comment out macro invocation.
6381         * modules/javaexec (configure.ac): Likewise.
6382         * modules/javacomp-script (configure.ac): Likewise.
6383
6384         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
6385
6386 2006-07-30  Bruno Haible  <bruno@clisp.org>
6387
6388         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
6389         linked-list.
6390
6391 2006-07-30  Bruno Haible  <bruno@clisp.org>
6392
6393         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
6394
6395 2006-07-30  Bruno Haible  <bruno@clisp.org>
6396
6397         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
6398         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
6399         get removed.
6400
6401 2006-07-29  Bruno Haible  <bruno@clisp.org>
6402
6403         Make it possible for gnulib-tool to work with locally modified or
6404         augmented gnulib repositories.
6405         * gnulib-tool (func_usage): Document --local-dir option.
6406         (local_gnulib_dir): New variable.
6407         Handle --local-dir option.
6408         (func_lookup_file): New function.
6409         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
6410         (func_get_description, func_get_filelist, func_get_description,
6411         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
6412         func_get_automake_snippet, func_get_include_directive,
6413         func_get_license, func_get_maintainer): Use func_lookup_file.
6414         (func_import, func_create_testdir): Use func_lookup_file.
6415
6416 2006-07-29  Bruno Haible  <bruno@clisp.org>
6417
6418         * modules/setenv (Depends-on): Add unistd.
6419
6420 2006-07-29  Bruno Haible  <bruno@clisp.org>
6421
6422         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
6423
6424 2006-07-29  Bruno Haible  <bruno@clisp.org>
6425
6426         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
6427
6428 2006-07-29  Bruno Haible  <bruno@clisp.org>
6429
6430         * gnulib-tool (import, update): If there is no Makefile.am, look at
6431         aclocal.m4, instead of bailing out.
6432
6433 2006-07-29  Bruno Haible  <bruno@clisp.org>
6434
6435         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
6436         Categorize the options by when they are useful.
6437
6438 2006-07-29  Bruno Haible  <bruno@clisp.org>
6439
6440         * gnulib-tool (func_usage): Document option --no-libtool.
6441         Handle option --no-libtool.
6442         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
6443         for changed semantics of $libtool variable.
6444         (func_import): Likewise. If libtool is not used, show this through
6445         an option --no-libtool.
6446         (func_create_testdir): Update.
6447
6448 2006-07-29  Bruno Haible  <bruno@clisp.org>
6449
6450         * gnulib-tool (func_import): Extend error message about missing
6451         --doc-base.
6452
6453 2006-07-29  Bruno Haible  <bruno@clisp.org>
6454
6455         * gnulib-tool (func_import): Don't create the $docbase directory if
6456         there is no file to store there.
6457
6458 2006-07-29  Bruno Haible  <bruno@clisp.org>
6459
6460         * gnulib-tool (autoconf_minversion): If a --dir option is given and
6461         relevant, look for configure.ac there, not in the current directory.
6462         Also use a simple search for AC_PREREQ, not "autoconf --trace".
6463
6464 2006-07-29  Bruno Haible  <bruno@clisp.org>
6465
6466         * gnulib-tool (SORT): New variable.
6467         (func_usage): Undocument --assume-autoconf option.
6468         Remove --assume-autoconf option handling.
6469         (autoconf_minversion): Determine from the contents of configure.ac.
6470         (func_import): Remove autoconf_minversion handling.
6471         Suggested by Eric Blake.
6472
6473 2006-07-29  Bruno Haible  <bruno@clisp.org>
6474
6475         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
6476
6477 2006-07-29  Bruno Haible  <bruno@clisp.org>
6478
6479         * config/srclist.txt (*setenv.[ch]): Remove rules.
6480
6481 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
6482
6483         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
6484
6485 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
6486
6487         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
6488         arpa/inet.h.
6489
6490 2006-07-28  Simon Josefsson  <jas@extundo.com>
6491
6492         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
6493         * modules/inet_pton (Depends-on): Likewise.
6494
6495 2006-07-28  Simon Josefsson  <jas@extundo.com>
6496
6497         * m4/netinet_in_h.m4: New file.
6498
6499 2006-07-28  Simon Josefsson  <jas@extundo.com>
6500
6501         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
6502         #include's.
6503
6504 2006-07-28  Simon Josefsson  <jas@extundo.com>
6505
6506         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
6507         #include's.
6508
6509 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
6510
6511         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
6512         setgid on directories only if they set these bits.
6513         * lib/modechange.h: Remove obsolete comment about masks.
6514
6515 2006-07-28  Eric Blake  <ebb9@byu.net>
6516
6517         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
6518         macro expansion.
6519
6520 2006-07-28  Bruno Haible  <bruno@clisp.org>
6521
6522         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
6523
6524 2006-07-28  Bruno Haible  <bruno@clisp.org>
6525
6526         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
6527
6528 2006-07-28  Bruno Haible  <bruno@clisp.org>
6529
6530         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
6531         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
6532         Define fallbacks.
6533         Avoids link error on FreeBSD 4.x.
6534         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
6535
6536         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
6537         encoding.
6538         * lib/mbswidth.c (iswcntrl): Likewise.
6539
6540 2006-07-27  Bruno Haible  <bruno@clisp.org>
6541
6542         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
6543         test.
6544
6545 2006-07-27  Bruno Haible  <bruno@clisp.org>
6546
6547         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
6548         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
6549         defined.
6550
6551 2006-07-26  Eric Blake  <ebb9@byu.net>
6552
6553         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
6554
6555 2006-07-26  Eric Blake  <ebb9@byu.net>
6556
6557         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
6558         like mingw that lack mkstemp.
6559         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
6560         avoid compilation warning on mingw.
6561
6562 2006-07-26  Bruno Haible  <bruno@clisp.org>
6563
6564         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
6565         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
6566         INT_FAST*_MIN, INTPTR_MIN.
6567
6568 2006-07-25  Bruno Haible  <bruno@clisp.org>
6569
6570         * modules/version-etc (Depends-on): Add stdarg.
6571
6572 2006-07-25  Bruno Haible  <bruno@clisp.org>
6573
6574         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
6575         complex commands.
6576
6577 2006-07-25  Bruno Haible  <bruno@clisp.org>
6578
6579         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
6580         defined in <stdarg.h> or config.h.
6581
6582 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
6583
6584         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
6585         (gl_STDIO_SAFER): Remove.
6586
6587 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
6588
6589         * MODULES.html.sh (File stream based Input/Output):
6590         Add fopen-safer, tmpfile-safer; remove stdio-safer.
6591         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
6592         * modules/fopen-safer, modules/tmpfile-safer: New files.
6593         * modules/stdio-safer: Remove.
6594
6595 2006-07-24  Bruno Haible  <bruno@clisp.org>
6596
6597         * modules/tmpdir: New file.
6598         * MODULES.html.sh (File system functions): Add it.
6599
6600 2006-07-24  Bruno Haible  <bruno@clisp.org>
6601
6602         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
6603         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
6604
6605 2006-07-24  Bruno Haible  <bruno@clisp.org>
6606
6607         * modules/clean-temp: New file.
6608
6609 2006-07-24  Bruno Haible  <bruno@clisp.org>
6610
6611         * m4/tmpdir.m4: New file, from GNU gettext.
6612
6613 2006-07-24  Bruno Haible  <bruno@clisp.org>
6614
6615         * lib/tmpdir.h: New file, from GNU gettext.
6616         * lib/tmpdir.c: New file, from GNU gettext.
6617
6618 2006-07-24  Bruno Haible  <bruno@clisp.org>
6619
6620         * lib/clean-temp.h: New file, from GNU gettext.
6621         * lib/clean-temp.c: New file, from GNU gettext.
6622
6623 2006-07-23  Eric Blake  <ebb9@byu.net>
6624
6625         * modules/stdio-safer (Files): Add tmpfile-safer.c.
6626         (Depends-on): Add binary-io.
6627
6628 2006-07-23  Eric Blake  <ebb9@byu.net>
6629
6630         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
6631
6632 2006-07-23  Eric Blake  <ebb9@byu.net>
6633
6634         * lib/tmpfile-safer.c: New file.
6635         * lib/stdio-safer.h (fopen_safer): Add prototype.
6636         * lib/stdio--.h (tmpfile): Make safer.
6637
6638 2006-07-23  Bruno Haible  <bruno@clisp.org>
6639
6640         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
6641         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
6642         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
6643         gl_linked_remove_at): Use it.
6644
6645 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
6646         and Simon Josefsson <jas@extundo.com>
6647
6648         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
6649
6650         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
6651
6652 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
6653
6654         * modules/close-stream: New file.
6655         * modules/closeout (Description): Make it clear that it exits
6656         with a diagnostic on error.
6657         (Depends-on): Add close-stream.  Remove fpending, stdbool.
6658         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
6659
6660 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
6661
6662         * m4/close-stream.m4: New file.
6663
6664 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
6665
6666         * lib/close-stream.c, lib/close-stream.h: New files.
6667
6668 2006-07-22  Bruno Haible  <bruno@clisp.org>
6669
6670         Merge from GNU gettext 0.15.
6671
6672         2006-05-01  Bruno Haible  <bruno@clisp.org>
6673
6674                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
6675
6676         2006-07-22  Bruno Haible  <bruno@clisp.org>
6677
6678                 * modules/javaversion: New file.
6679                 * MODULES.html.sh (Java): Add javaversion.
6680
6681         2006-03-12  Bruno Haible  <bruno@clisp.org>
6682
6683                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
6684
6685         2005-12-04  Bruno Haible  <bruno@clisp.org>
6686
6687                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
6688                 (untested).
6689
6690         2006-06-21  Bruno Haible  <bruno@clisp.org>
6691
6692                 Avoid warnings from recent versions of mcs.
6693                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
6694                 -o, -L, -r any more. Use options documented since mcs-1.0
6695                 instead. Similarly for -g.
6696
6697         2005-12-04  Bruno Haible  <bruno@clisp.org>
6698
6699                 * build-aux/csharpcomp.sh.in: Suffix for resources is
6700                 .resources, not .resource.
6701
6702         2005-07-09  Bruno Haible  <bruno@clisp.org>
6703
6704                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
6705                 add a .dll suffix.
6706                 Reported by Mark Junker <mjscod@gmx.de>.
6707
6708         2006-07-22  Bruno Haible  <bruno@clisp.org>
6709
6710                 * modules/gettext: Upgrade to gettext-0.15.
6711                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
6712                 m4/visibility.m4.
6713                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
6714
6715 2006-07-22  Bruno Haible  <bruno@clisp.org>
6716
6717         Merge from GNU gettext 0.15.
6718
6719         2006-03-25  Bruno Haible  <bruno@clisp.org>
6720
6721                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
6722
6723         2006-07-21  Bruno Haible  <bruno@clisp.org>
6724
6725                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
6726                 "1.1".
6727
6728         2006-05-09  Bruno Haible  <bruno@clisp.org>
6729
6730                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
6731                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
6732                 for the conftestver execution.
6733
6734         2006-05-01  Bruno Haible  <bruno@clisp.org>
6735
6736                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
6737                 optional target-version argument. Verify that the compiler
6738                 groks source of the specified source-version, or add -source
6739                 option as necessary. Verify that the compiler produces
6740                 bytecode in the specified target-version, or add -target and
6741                 -source options as necessary. Make the result of the test
6742                 available as variable CONF_JAVAC. Also log error output in
6743                 config.log.
6744
6745         2006-03-11  Bruno Haible  <bruno@clisp.org>
6746
6747                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
6748
6749         2006-05-09  Bruno Haible  <bruno@clisp.org>
6750
6751                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
6752                 CLASSPATH_SEPARATOR to a semicolon.
6753
6754         2006-03-12  Bruno Haible  <bruno@clisp.org>
6755
6756                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
6757                 available as variable CONF_JAVA, for subsequent autoconf
6758                 tests. Also log error output in config.log.
6759
6760         2006-07-19  Bruno Haible  <bruno@clisp.org>
6761
6762                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
6763                 that getline works on glibc2 systems. Needed to avoid trouble
6764                 in relocatable.c.
6765                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
6766
6767         2005-12-04  Bruno Haible  <bruno@clisp.org>
6768
6769                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
6770                 launcher (untested).
6771
6772         2005-12-04  Bruno Haible  <bruno@clisp.org>
6773
6774                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
6775
6776         2006-07-22  Bruno Haible  <bruno@clisp.org>
6777
6778                 * gettext.m4: Update from GNU gettext-0.15.
6779                 * nls.m4: Likewise.
6780                 * po.m4: Likewise.
6781                 * inttypes-pri.m4: Likewise.
6782                 * inttypes-h.m4: Renamed from inttypes.m4.
6783                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
6784
6785 2006-07-22  Bruno Haible  <bruno@clisp.org>
6786
6787         Merge from GNU gettext 0.15.
6788
6789         2005-07-05  Bruno Haible  <bruno@clisp.org>
6790
6791                 * printf-args.c (printf_fetchargs): Work around broken
6792                 definition of wint_t on mingw.
6793
6794         2005-02-12  Bruno Haible  <bruno@clisp.org>
6795
6796                 * xallocsa.h: Add extern "C" for C++.
6797
6798         2006-05-17  Bruno Haible  <bruno@clisp.org>
6799
6800                 Cygwin portability.
6801                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
6802
6803         2006-04-30  Bruno Haible  <bruno@clisp.org>
6804
6805                 * progreloc.c: Include <mach-o/dyld.h> if available.
6806                 (find_executable): Use _NSGetExecutablePath when possible.
6807
6808         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
6809
6810                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
6811                 function.
6812
6813         2005-12-29  Bruno Haible  <bruno@clisp.org>
6814
6815                 * progreloc.c (set_program_name_and_installdir): Fix
6816                 compilation error.
6817
6818         2005-12-04  Bruno Haible  <bruno@clisp.org>
6819
6820                 Cygwin portability.
6821                 * progreloc.c: Include <windows.h> also on Cygwin.
6822                 (find_executable): Add support for Cygwin.
6823                 (set_program_name_and_installdir): Handle also platforms with
6824                 nonempty EXEEXT.
6825
6826         2006-07-11  Bruno Haible  <bruno@clisp.org>
6827
6828                 * javacomp.c: Fix a comment.
6829                 Reported by Jim Meyering.
6830
6831         2006-04-30  Bruno Haible  <bruno@clisp.org>
6832
6833                 * javacomp.h (compile_java_class): Add source_version,
6834                 target_version arguments.
6835                 * javacomp.c: Rewritten to choose only a compiler that
6836                 respects the specified source_version and target_version.
6837
6838         2006-06-27  Bruno Haible  <bruno@clisp.org>
6839
6840                 Assume correct S_ISDIR macro.
6841                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
6842
6843         2006-07-22  Bruno Haible  <bruno@clisp.org>
6844
6845                 * javaversion.h: New file, from GNU gettext.
6846                 * javaversion.c: New file, from GNU gettext.
6847                 * javaversion.java: New file, from GNU gettext.
6848                 * javaversion.class: New file, from GNU gettext.
6849
6850         2006-05-17  Bruno Haible  <bruno@clisp.org>
6851
6852                 Cygwin portability.
6853                 * javaexec.c (execute_java_class): Test for jview program
6854                 also on Cygwin.
6855
6856         2006-04-09  Bruno Haible  <bruno@clisp.org>
6857
6858                 * fatal-signal.c: Don't include string.h.
6859                 (at_fatal_signal): Use a copying loop instead of memcpy.
6860
6861         2005-12-04  Bruno Haible  <bruno@clisp.org>
6862
6863                 * csharpexec.c: Add support for 'clix' launcher (untested).
6864                 (execute_csharp_using_sscli): New function.
6865                 (execute_csharp_program): Call it.
6866
6867         2006-06-21  Bruno Haible  <bruno@clisp.org>
6868
6869                 Avoid warnings from recent versions of mcs.
6870                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
6871                 -o, -L, -r any more. Use options documented since mcs-1.0
6872                 instead. Similarly for -g.
6873
6874         2005-07-09  Bruno Haible  <bruno@clisp.org>
6875
6876                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
6877                 add a .dll suffix.
6878                 Reported by Mark Junker <mjscod@gmx.de>.
6879
6880         2006-06-17  Bruno Haible  <bruno@clisp.org>
6881
6882                 * config.charset: Update for NetBSD 3.0.
6883
6884         2006-05-17  Bruno Haible  <bruno@clisp.org>
6885
6886                 Cygwin portability.
6887                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
6888
6889         2006-05-16  Bruno Haible  <bruno@clisp.org>
6890
6891                 * localcharset.c [CYGWIN]: Include <windows.h>.
6892                 (get_charset_aliases): For Cygwin, return the same CPxxx
6893                 aliases list as under WIN32.
6894                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
6895                 the environment variables. Fall back to GetACP().
6896
6897         2006-04-05  Bruno Haible  <bruno@clisp.org>
6898
6899                 * config.charset: Update Juan Manuel Guerrero's address.
6900
6901         2005-02-12  Bruno Haible  <bruno@clisp.org>
6902
6903                 * allocsa.h: Add extern "C" for C++.
6904
6905         2005-02-10  Bruno Haible  <bruno@clisp.org>
6906
6907                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
6908                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
6909
6910         2006-07-22  Bruno Haible  <bruno@clisp.org>
6911
6912                 * gettext.h: Update to GNU gettext-0.15.
6913
6914 2006-07-22  Bruno Haible  <bruno@clisp.org>
6915
6916         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
6917         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
6918         lib-prefix.m4, longdouble.m4, ssize_t.m4.
6919
6920 2006-07-21  Eric Blake  <ebb9@byu.net>
6921
6922         * modules/stdlib-safer: New file.
6923         * MODULES.html.sh (File stream based Input/Output): Add
6924         stdlib-safer.
6925
6926 2006-07-21  Eric Blake  <ebb9@byu.net>
6927
6928         * lib/stdlib-safer.h: New file from coreutils, required by
6929         stdlib--.h.
6930
6931 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
6932
6933         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
6934
6935 2006-07-20  Bruno Haible  <bruno@clisp.org>
6936
6937         * gnulib-tool: Recognize new option --assume-autoconf.
6938         (autoconf_minversion): New variable.
6939         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
6940
6941 2006-07-20  Bruno Haible  <bruno@clisp.org>
6942
6943         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
6944
6945 2006-07-19  Derek R. Price  <derek@ximbiot.com>
6946
6947         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
6948         Reindent and repaginate.
6949
6950 2006-07-19  Derek Price  <derek@ximbiot.com>
6951
6952         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
6953         Correct grammar.
6954
6955 2006-07-17  Bruno Haible  <bruno@clisp.org>
6956
6957         * modules/list: New file.
6958         * modules/array-list: New file.
6959         * modules/carray-list, modules/carray-list-tests: New files.
6960         * modules/linked-list, modules/linked-list-tests: New files.
6961         * modules/avltree-list, modules/avltree-list-tests: New files.
6962         * modules/rbtree-list, modules/rbtree-list-tests: New files.
6963         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
6964         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
6965         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
6966         * modules/oset: New file.
6967         * modules/array-oset: New file.
6968         * modules/avltree-oset, modules/avltree-oset-tests: New files.
6969         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
6970         * tests/test-carray_list.c: New file.
6971         * tests/test-linked_list.c: New file.
6972         * tests/test-avltree_list.c: New file.
6973         * tests/test-rbtree_list.c: New file.
6974         * tests/test-linkedhash_list.c: New file.
6975         * tests/test-avltreehash_list.c: New file.
6976         * tests/test-rbtreehash_list.c: New file.
6977         * tests/test-avltree_oset.c: New file.
6978         * tests/test-rbtree_oset.c: New file.
6979         * MODULES.html.sh (Container data structures): New section.
6980
6981 2006-07-17  Bruno Haible  <bruno@clisp.org>
6982
6983         * m4/gl_list.m4: New file.
6984
6985 2006-07-17  Bruno Haible  <bruno@clisp.org>
6986
6987         * lib/gl_list.h: New file.
6988         * lib/gl_list.c: New file.
6989         * lib/gl_array_list.h: New file.
6990         * lib/gl_array_list.c: New file.
6991         * lib/gl_carray_list.h: New file.
6992         * lib/gl_carray_list.c: New file.
6993         * lib/gl_linked_list.h: New file.
6994         * lib/gl_linked_list.c: New file.
6995         * lib/gl_anylinked_list1.h: New file.
6996         * lib/gl_anylinked_list2.h: New file.
6997         * lib/gl_avltree_list.h: New file.
6998         * lib/gl_avltree_list.c: New file.
6999         * lib/gl_anyavltree_list1.h: New file.
7000         * lib/gl_anyavltree_list2.h: New file.
7001         * lib/gl_rbtree_list.h: New file.
7002         * lib/gl_rbtree_list.c: New file.
7003         * lib/gl_anyrbtree_list1.h: New file.
7004         * lib/gl_anyrbtree_list2.h: New file.
7005         * lib/gl_anytree_list1.h: New file.
7006         * lib/gl_anytree_list2.h: New file.
7007         * lib/gl_linkedhash_list.h: New file.
7008         * lib/gl_linkedhash_list.c: New file.
7009         * lib/gl_anyhash_list1.h: New file.
7010         * lib/gl_anyhash_list2.h: New file.
7011         * lib/gl_avltreehash_list.h: New file.
7012         * lib/gl_avltreehash_list.c: New file.
7013         * lib/gl_rbtreehash_list.h: New file.
7014         * lib/gl_rbtreehash_list.c: New file.
7015         * lib/gl_anytreehash_list1.h: New file.
7016         * lib/gl_anytreehash_list2.h: New file.
7017
7018         * lib/gl_oset.h: New file.
7019         * lib/gl_oset.c: New file.
7020         * lib/gl_array_oset.h: New file.
7021         * lib/gl_array_oset.c: New file.
7022         * lib/gl_avltree_oset.h: New file.
7023         * lib/gl_avltree_oset.c: New file.
7024         * lib/gl_rbtree_oset.h: New file.
7025         * lib/gl_rbtree_oset.c: New file.
7026         * lib/gl_anytree_oset.h: New file.
7027
7028 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
7029
7030         * m4/mkancesdirs.m4: New file.
7031         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
7032         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
7033         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
7034         it.
7035
7036 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
7037
7038         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
7039         * lib/mkancesdirs.h: New files.
7040         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
7041         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
7042         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
7043         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
7044         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
7045         callers changed.  Revamp internals significantly, by not
7046         attempting to create directories that are temporarily more
7047         permissive than the final results.  Do not attempt to use
7048         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
7049         This removes some race conditions, fixes some bugs, and simplifies
7050         things.  Use new dirchownmod function to do owner and mode changes.
7051         * lib/mkdir-p.h: Likewise.
7052         * lib/modechange.c (octal_to_mode): New function.
7053         (struct mode_change): New member mentioned.
7054         (make_node_op_equals): New arg mentioned.  All callers changed.
7055         (mode_compile): Keep track of which mode bits the user has explicitly
7056         mentioned.
7057         (mode_adjust): New arg DIR, so that we implement the X op correctly.
7058         New arg PMODE_BITS, to keep track of which mode bits the user
7059         mentioned; it treats S_ISUID and S_ISGID speciall.
7060         All callers changed.
7061         * lib/modechange.h: Likewise.
7062
7063 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
7064
7065         * MODULES.html.sh: Add mkancestors.
7066         * modules/mkancesdirs: New module.
7067         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
7068         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
7069         The chdir-safer and afs files are now orphans; I'll remove them
7070         unless someone speaks up.
7071         Add lib/dirchownmod.c, lib/dirchownmod.h.
7072         (Depends-on): Remove alloca, chown, save-cwd, dirname.
7073         Add lchown, mkancesdirs.
7074         (Maintainer): Add self.
7075
7076 2006-07-15  Karl Berry  <karl@gnu.org>
7077
7078         * gnulib-tool: help message wording/arrangement.
7079
7080 2006-07-14  Simon Josefsson  <jas@extundo.com>
7081
7082         * doc/gnulib.texi (Libtool and Windows): New section.
7083
7084 2006-07-12  Simon Josefsson  <jas@extundo.com>
7085
7086         * modules/gendocs (License): Fix license, approved by Karl.
7087
7088 2006-07-12  Eric Blake  <ebb9@byu.net>
7089
7090         * MODULES.html.sh: Add gendocs.
7091
7092 2006-07-11  Eric Blake  <ebb9@byu.net>
7093
7094         * modules/fdl: New module, to install doc/fdl.texi.
7095         * MODULES.html.sh: Add new section for documentation modules.
7096         * gnulib-tool: Avoid space-tab.
7097         (--doc-base): New option, to manage files from doc.
7098
7099 2006-07-11  Eric Blake  <ebb9@byu.net>
7100
7101         * m4/absolute-header.m4: Fix comments to match recent change.
7102
7103 2006-07-11  Eric Blake  <ebb9@byu.net>
7104
7105         * gnulib-tool: List --doc-base before --tests-base.
7106
7107 2006-07-11  Derek R. Price  <derek@ximbiot.com>
7108
7109         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
7110
7111 2006-07-11  Bruno Haible  <bruno@clisp.org>
7112
7113         * README: Mention where to put documentation.
7114
7115 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7116
7117         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
7118
7119 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
7120
7121         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
7122         to stdint.m4.
7123
7124 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
7125
7126         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
7127         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
7128         "no/such/file/stdint.h" when there is no such file, so that
7129         the resulting C code can be parsed by dodgy compilers.
7130         Problems reported by Bob Proulx.
7131
7132 2006-07-10  Derek R. Price  <derek@ximbiot.com>
7133
7134         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
7135         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
7136         macros into the GNU _D_EXACT_NAMLEN.
7137         * lib/savedir.c:  Likewise.
7138         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
7139
7140 2006-07-10  Derek R. Price  <derek@ximbiot.com>
7141         and Paul Eggert  <eggert@cs.ucla.edu>
7142
7143         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
7144         * m4/savedir.m4:
7145         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
7146         macros into the GNU _D_EXACT_NAMLEN.
7147
7148 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
7149
7150         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
7151         around the absolute name, to work around a problem with the HP-UX
7152         11.23 native C compiler, reported by Bob Proulx.
7153
7154 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
7155
7156         * doc/maintain.texi, make-stds.texi: Sync from
7157         <http://savannah.gnu.org/projects/gnustandards>.
7158
7159 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
7160
7161         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
7162
7163 2006-07-09  Jim Meyering  <jim@meyering.net>
7164
7165         * m4/glob.m4: Remove a doubled word in a comment.
7166
7167 2006-07-09  Jim Meyering  <jim@meyering.net>
7168
7169         * lib/argp-pv.c: Remove a doubled word in a comment.
7170         * lib/check-version.c (check_version): Likewise.
7171         * lib/javacomp.c (compile_java_class): Likewise.
7172
7173 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
7174
7175         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
7176         for the benefit of people using Autoconf 2.60.  If you want to
7177         support older Autoconf versions you can copy m4/onceonly_2_57.m4
7178         (or m4/onceonly.m4, if pre-2.57) manually.
7179
7180 2006-07-08  Jim Meyering  <jim@meyering.net>
7181
7182         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
7183         comment.
7184         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
7185         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
7186         comment.
7187
7188 2006-07-08  Jim Meyering  <jim@meyering.net>
7189
7190         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
7191
7192 2006-07-07  Simon Josefsson  <jas@extundo.com>
7193
7194         * tests/test-crc.c: Change expected crc value, the test vector
7195         were probably computed using the old broken crc.c?
7196
7197 2006-07-06  Simon Josefsson  <jas@extundo.com>
7198
7199         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
7200         now the canonical place for the M4 file).
7201
7202         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
7203         from the sys_socket dependency now.
7204
7205         * modules/inet_pton (Files): Ditto.
7206
7207         * modules/inet_ntop (Files): Ditto.
7208
7209 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
7210
7211         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
7212         not gl_PREREQ_GETUSERSHELL.
7213
7214 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7215
7216         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
7217         with only one argument, for Autoconf 2.60.
7218         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
7219         expand to nothing, so add a shell command to avoid syntax error.
7220         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
7221
7222 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7223
7224         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
7225
7226 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
7227
7228         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
7229         no longer needed.  Check for isblank decl.
7230         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
7231         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
7232         of existence.
7233
7234 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
7235
7236         * lib/getloadavg.c: Use __VMS, not VMS.
7237         * lib/getopt.c: Likewise.
7238         * lib/getpagesize.h: Likewise.
7239         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
7240         and probably does not work.
7241
7242 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
7243
7244         * lib/.cppi-disable: Add wcwidth.
7245         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
7246         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
7247         (ISGRAPH): Remove.  All uses changed to isgraph.
7248         (FOLD) [!defined _LIBC]: Remove special case.
7249         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
7250         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
7251         HAVE_ISBLANK.
7252         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
7253         case.
7254
7255 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
7256
7257         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
7258         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
7259         brackets.  Other minor changes to suppress some compiler
7260         warnings.
7261
7262 2006-07-06  Derek R. Price  <derek@ximbiot.com>
7263         and Paul Eggert  <eggert@cs.ucla.edu>
7264
7265         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
7266         of invoking obsolescent AC_HEADER_DIRENT macro.
7267         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
7268         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
7269         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
7270         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
7271         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
7272         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
7273         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
7274         * m4/readdir.m4: Remove; no longer needed.
7275
7276 2006-07-06  Derek R. Price  <derek@ximbiot.com>
7277         and Paul Eggert  <eggert@cs.ucla.edu>
7278
7279         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
7280         Don't worry about this obsolete case any more.
7281         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
7282         directories.
7283         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
7284         worry about this obsolete case any more.
7285         * lib/fts.c: Likewise.
7286         * lib/getcwd.c: Likewise.
7287         * lib/glob.h: Likewise.
7288         * lib/savedir.c: Likewise.
7289
7290 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
7291
7292         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
7293         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
7294         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
7295         needed.
7296         All uses removed.
7297         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
7298         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
7299         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
7300         needed.
7301         * m4/getdate.m4 (gl_GETDATE): Likewise.
7302         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
7303         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
7304         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
7305         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
7306         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
7307         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
7308         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
7309         needed.
7310
7311 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
7312
7313         * lib/memcasecmp.c: Include <limits.h>.
7314         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
7315         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
7316         Don't assume isdigit succeeds only on '0' through '9'.
7317
7318 2006-07-05  Eric Blake  <ebb9@byu.net>
7319
7320         * modules/getaddrinfo (Depends-on): Add snprintf.
7321
7322 2006-07-05  Eric Blake  <ebb9@byu.net>
7323
7324         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
7325         to avoid 'header present but could not be compiled' on cygwin.
7326
7327 2006-07-05  Eric Blake  <ebb9@byu.net>
7328
7329         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
7330         missing from netdb.h.
7331         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
7332
7333 2006-07-05  Derek R. Price  <derek@ximbiot.com>
7334
7335         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
7336         no longer needed.
7337         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
7338         * m4/getdate.m4 (gl_GETDATE): Likewise.
7339         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
7340         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
7341         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
7342         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
7343         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
7344
7345 2006-07-05  Derek R. Price  <derek@ximbiot.com>
7346
7347         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
7348         All uses of is_space replaced by isspace.
7349         * lib/exit.h: Don't talk about STDC_HEADERS.
7350         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
7351         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
7352         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
7353         replaced by isprint etc.
7354         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
7355         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
7356         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
7357         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
7358         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
7359         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
7360
7361 2006-07-05  Bruno Haible  <bruno@clisp.org>
7362
7363         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
7364         the function exists, before testing against AIX.
7365         Reported by Martin Lambers <marlam@marlam.de>.
7366
7367 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
7368
7369         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
7370         From Mark D. Baushke.
7371
7372 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
7373
7374         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
7375         to the absolute name, not just one, to bypass Sun C 5.8's
7376         "warning: #include of /usr/include/... may be non-portable".
7377
7378 2006-07-04  Eric Blake  <ebb9@byu.net>
7379
7380         * modules/dirname-tests: New test module.
7381         * tests/test-dirname.c: New file, replacing dirname.c
7382         TEST_DIRNAME section that was recently deleted.
7383
7384 2006-07-04  Bruno Haible  <bruno@clisp.org>
7385
7386         Assume ANSI C header files and <ctype.h> functions.
7387         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
7388         (mbsnwidth): Use isprint, iscntrl instead.
7389
7390 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
7391
7392         Merge from coreutils.
7393         * MODULES.html.sh: Add xstrtold.
7394         * modules/xstrtold: New file.
7395         * modules/cycle-check (Files): Add lib/same-inode.h.
7396         * modules/dirname (Files): Add m4/double-slash-root.m4.
7397         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
7398         * modules/mkdir-p (Files): Add lib/same-inode.h.
7399         * modules/same (Files): Add lib/same-inode.h.
7400
7401 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
7402
7403         * m4/absolute-header.m4: Renamed from full-header-path.m4.
7404         This is to keep the terminology clean; POSIX talks about
7405         "absolute pathnames", not "full pathnames", but the GNU
7406         Coding Standards say to use "path" for something else;
7407         so use "absolute" to keep both sides happy.
7408         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
7409         Set gl_absolute_header, not gl_full_header_path.
7410         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
7411         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
7412         All uses changed.
7413
7414         Merge from coreutils.
7415
7416         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
7417
7418         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
7419         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
7420         want to require the building of c-strtod.o.
7421         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
7422         needs -lm directly.
7423         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
7424
7425         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
7426
7427         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
7428         --as-needed option if available.  Problem reported by Albert Chin in
7429         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
7430         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
7431         cc merely issues a bunch of annoying warnings for --as-needed
7432         (this problem was reported by Bob Proulx).  Also, try linking with
7433         -lm to detect a bug in binutils 2.16 (this problem was reported
7434         by Ralf Wildenhues).
7435
7436         2006-06-18  Jim Meyering  <jim@meyering.net>
7437
7438         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
7439         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
7440         macro.
7441         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
7442         also check for glibc-2.4's abort-inducing bug.
7443
7444         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
7445         Low-probability clean-up should be to use rmdir to get rid of
7446         the just-created directory, not unlink.
7447
7448         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
7449         configure fail, and request a bug report to inform us about it.
7450         Add a comment that, barring reports to the contrary, in 2007 we'll
7451         assume ftruncate is universally available.
7452
7453         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
7454
7455         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
7456
7457         2006-03-12  Jim Meyering  <jim@meyering.net>
7458
7459         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
7460         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
7461         * m4/same.m4 (gl_SAME): Likewise.
7462         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
7463
7464         2006-03-11  Eric Blake  <ebb9@byu.net>
7465
7466         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
7467         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
7468         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
7469         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
7470
7471 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
7472
7473         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
7474         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
7475         reported by Mark D. Baushke, one in
7476         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
7477
7478         Merge from coreutils.
7479
7480         * lib/.cppi-disable: Add stdint_.h.
7481         * lib/.cvsignore: Add stdint.h.
7482
7483         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
7484
7485         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
7486         both double and long double versions.
7487         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
7488         * lib/xstrtold.c: New file.
7489         * lib/xstrtod.h (xstrtold): New decl.
7490
7491         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
7492
7493         * lib/filemode.c (setst): Remove.
7494         (strmode): Rewrite to avoid setst.  This makes the code shorter,
7495         (arguably) clearer, and the generated code is a bit smaller on my
7496         Debian GNU/Linux stable x86 host.
7497
7498         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
7499
7500         * lib/filemode.c: Include "filemode.h" first, to test the interface.
7501         Assume that filemode.h includes sys/types.h and sys/stat.h.
7502         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
7503         (ftypelet): Reorder to put common cases first, for efficiency.
7504         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
7505         to do 'M'.
7506         (strmode): Renamed from mode_string, and now stores 12 bytes instead
7507         of 10, for compatibility with FreeBSD.  All callers changed.
7508         (filemodestring): Now stores 12 bytes instead of 10, and sets file
7509         types that can't be deduced solely from st_mode.  First arg is now a
7510         const pointer.
7511         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
7512         (strmode): Renamed from mode_string.
7513         (filemodestring): New decl.
7514         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
7515         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
7516         needed.
7517         (S_ISPORT, S_ISWHT): New macros, if not already defined.
7518
7519         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
7520
7521         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
7522         fsusage.h now does that.  Include fsusage.h first, to test interface.
7523         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
7524         at most one method (the old code could have generated decls that
7525         didn't conform to C89, not that this was ever exercised).
7526         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
7527
7528         2006-03-19  Jim Meyering  <jim@meyering.net>
7529
7530         Work even in a chroot where d_ino values for entries in "/"
7531         don't match the stat.st_ino values for the same names.
7532         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
7533         number, iterate through all entries again, using lstat instead.
7534         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
7535         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
7536
7537         * lib/getcwd.c (__getcwd): Clarify a comment.
7538         Use memcpy in place of a call to strcpy.
7539
7540         2006-03-12  Jim Meyering  <jim@meyering.net>
7541
7542         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
7543         matches that of the current directory (which we're about to chdir ".."
7544         out of), then save the dev-ino of the parent, instead.
7545
7546         * lib/same-inode.h (SAME_INODE): New file/macro.
7547         * lib/chdir-safer.c (SAME_INODE): Remove definition.
7548         Include "same-inode.h", instead.
7549         * lib/same.c: Likewise.
7550         * lib/cycle-check.h: Include "same-inode.h".
7551         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
7552         * lib/cycle-check.c (SAME_INODE): Remove definition.
7553         * lib/root-dev-ino.h: Include "same-inode.h".
7554
7555         2006-03-11  Eric Blake  <ebb9@byu.net>
7556
7557         * lib/same.c (same_name): s/base_name/last_component/
7558         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
7559         * lib/filenamecat.c (file_name_concat): Likewise.
7560
7561         2006-03-11  Eric Blake  <ebb9@byu.net>,
7562                     Paul Eggert  <eggert@cs.ucla.edu>
7563
7564         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
7565         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
7566         drive prefix.
7567         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
7568         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
7569         (last_component): New method.
7570         * lib/dirname.c (dir_len): Determine when drive letters need a
7571         subsequent slash.  Preserve // when it is special.
7572         (dir_name): Don't append dot when drive letter is absolute.
7573         [TEST_DIRNAME]: Move into a full-blown gnulib test.
7574         * lib/basename.c (base_name): New semantics - malloc the result.
7575         Preserve // when it is special.  Preserve relative files that look
7576         like drive letters.
7577         (base_len): Preserve // when it is special.
7578         (last_component): New method, similar to old base_name semantics.
7579         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
7580         base_name.  Strip redundant slashes from ///.
7581
7582 2006-07-03  Jim Meyering  <jim@meyering.net>
7583
7584         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
7585         macro is used before the first cycle_check call.
7586
7587 2006-07-03  Eric Blake  <ebb9@byu.net>
7588
7589         * modules/dirname (Depends-on): Add xstrndup.
7590
7591 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
7592
7593         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
7594         test cases, so that config.log is a bit easier to follow.
7595
7596 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
7597
7598         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
7599         both are 64 bits, since this seems to be the tradition, and this
7600         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
7601         we ever run into a host that prefers long long to long in this
7602         case, we'll need another configure-time test.  Problem reported by
7603         Jim Meyering.
7604
7605 2006-07-02  Eric Blake  <ebb9@byu.net>
7606
7607         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
7608
7609 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
7610
7611         * modules/inttypes (Depends-on): No longer depends on stdint.
7612         * modules/stdint (Description): Say more about assumptions.
7613         Say that the fast types might differ.  Say macros are used.
7614         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
7615         (Makefile.am): Revise list of substituted symbols to match
7616         new stdint.m4.
7617         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
7618         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
7619         * tests/test-stdint.c (verify_same_types)
7620         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
7621         the code conforms to C99/C89.
7622         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
7623         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
7624
7625 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
7626
7627         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
7628         but fix a bug, by requiring at least 64 bits.
7629         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
7630         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
7631         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
7632         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
7633
7634         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
7635         changes.  Make 2.59 a prerequisite.  Check and substitute for
7636         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
7637         inttypes.h.  Do not use special include files; just use the
7638         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
7639         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
7640         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
7641         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
7642         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
7643         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
7644         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
7645         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
7646         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
7647         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
7648         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
7649         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
7650         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
7651         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
7652         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
7653         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
7654         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
7655         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
7656         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
7657         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
7658         WINT_MAX.  Check for C99 conformance more strictly, by detecting
7659         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
7660         not check for things that C99 does not require, e.g., int8_t.  If
7661         a test isn't needed unless <stdint.h> isn't working, and is
7662         unlikely to be needed for any other reason, then don't do it
7663         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
7664         size_t, since we assume C89 freestanding at least.  Do not check
7665         for sig_atomic_t, wchar_t, or wint_t, since the code now does
7666         the right thing even if the types are not defined.  Instead use:
7667         (gl_STDINT_TYPE_PROPERTIES): New macro.
7668         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
7669         testing whether <sys/types.h> clashes, as Autoconf does this for
7670         us now.  All uses removed.
7671         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
7672         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
7673         (gl_CHECK_TYPE_SAME):
7674         Remove; no longer needed.
7675         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
7676         exists, since we'll return 0 anyway in that case.
7677         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
7678
7679 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
7680
7681         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
7682         possible collision with system files.
7683         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
7684         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
7685         WCHAR_MIN and WCHAR_MAX in this case.
7686         (<stddef.h>): Do not include; no longer needed.
7687         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
7688         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
7689         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
7690         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
7691         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
7692         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
7693         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
7694         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
7695         !defined(__c99))]: Include in this case too, since it's harmless
7696         now.
7697         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
7698         dangerous to do so.
7699         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
7700         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
7701         (_STDINT_MIN, _STDINT_MAX): New macros.
7702         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
7703         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
7704         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
7705         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
7706         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
7707         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
7708         macros, not typedefs; this simplifies things quite a bit.
7709         Use long int for all types narrower than int64_t.
7710         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
7711         Define in terms of long long int or int64_t or long int,
7712         not int64_t or int32_t.  This saves some compile-time testing.
7713         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
7714         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
7715         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
7716         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
7717         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
7718         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
7719         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
7720         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
7721         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
7722         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
7723         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
7724         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
7725         undef any previous version and define our own version, for
7726         simplicity and consistency with the new macros for types.
7727         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
7728         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
7729         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
7730         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
7731         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
7732         @WINT_T_SUFFIX@ to keep things simple here.
7733         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
7734         Simplify by assuming typical 8/16/32/64 host, since we're
7735         already doing that elsewhere anyway.
7736         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
7737         and assume long long int is 64 bits if available.  This
7738         speeds up 'configure'.
7739
7740 2006-07-01  Eric Blake  <ebb9@byu.net>
7741
7742         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
7743         Reported by Andreas Buening.
7744
7745 2006-07-01  Eric Blake  <ebb9@byu.net>
7746
7747         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
7748
7749 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
7750
7751         * lib/getaddrinfo.c: fixed typo
7752
7753 2006-06-29  Jim Meyering  <jim@meyering.net>
7754
7755         * modules/strftime (Maintainer): Add my name, since with the
7756         FPRINTFTIME changes strftime.c has forked from glibc.
7757
7758 2006-06-29  Eric Blake  <ebb9@byu.net>
7759
7760         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
7761
7762 2006-06-29  Eric Blake  <ebb9@byu.net>
7763
7764         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
7765
7766 2006-06-29  Eric Blake  <ebb9@byu.net>
7767
7768         * lib/stat_.h: New file.
7769
7770 2006-06-29  Eric Blake  <ebb9@byu.net>
7771
7772         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
7773         unused static function.
7774
7775 2006-06-29  Eric Blake  <ebb9@byu.net>
7776
7777         * doc/functions.texi (Function Portability): Document missing lstat
7778         on mingw.
7779
7780 2006-06-29  Eric Blake  <ebb9@byu.net>
7781
7782         * MODULES.html.sh: Add sys_stat.
7783         * modules/sys_stat: New module.
7784         * modules/mkstemp (Depends-on): Add sys_stat.
7785
7786 2006-06-29  Derek R. Price  <derek@ximbiot.com>
7787
7788         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
7789
7790 2006-06-29  Derek R. Price  <derek@ximbiot.com>
7791
7792         * m4/c-bs-a.m4: Removed.
7793
7794 2006-06-29  Derek R. Price  <derek@ximbiot.com>
7795
7796         * lib/strftime.c: Assume strftime() exists.
7797
7798 2006-06-29  Derek Price  <derek@ximbiot.com>
7799
7800         * modules/c-bs-a: Removed - \a is C89.
7801         * MODULES.html.sh: Remove c-bs-a.
7802
7803 2006-06-29  Bruno Haible  <bruno@clisp.org>
7804
7805         * modules/wcwidth (License): Change to LGPL.
7806
7807 2006-06-28  Simon Josefsson  <jas@extundo.com>
7808
7809         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
7810         on _WIN32.
7811
7812         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
7813         getnameinfo.
7814
7815 2006-06-28  Simon Josefsson  <jas@extundo.com>
7816
7817         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
7818
7819 2006-06-28  Simon Josefsson  <jas@extundo.com>
7820
7821         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
7822         functions there.  It will succeed on Windows XP, but on Windows
7823         2000 and (presumably) earlier, it will fail, and use the internal
7824         re-implementation.
7825         (use_win32_p): New function.
7826         (getaddrinfo): Use strtoul on servname, to support numeric ports.
7827         Support AI_NUMERICSERV to disable getservbyname.
7828         (getnameinfo): New function, only supports
7829         NI_NUMERICHOST|NI_NUMERICSERV for now.
7830
7831         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
7832         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
7833         getnameinfo.
7834
7835 2006-06-28  Eric Blake  <ebb9@byu.net>
7836
7837         * modules/wcwidth: New file.
7838         * modules/mbchar (Depends-on): Add wcwidth.
7839         * modules/mbswidth (Depends-on): Add wcwidth.
7840         * MODULES.html.sh: Add wcwidth.
7841
7842 2006-06-28  Eric Blake  <ebb9@byu.net>
7843
7844         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
7845         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
7846
7847 2006-06-28  Eric Blake  <ebb9@byu.net>
7848
7849         * lib/xvasprintf.h: Fix comments.
7850
7851 2006-06-28  Eric Blake  <ebb9@byu.net>
7852
7853         * lib/mbchar.h (wcwidth): Include wcwidth.h.
7854         * lib/mbswidth.c (wcwidth): Move from here...
7855         * lib/wcwidth.h: ...to this new file.
7856
7857 2006-06-28  Derek R. Price  <derek@ximbiot.com>
7858
7859         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
7860
7861         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
7862         it's obsolete.
7863         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
7864
7865 2006-06-28  Derek R. Price  <derek@ximbiot.com>
7866
7867         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
7868         Autoconf 2.60 says this stuff was obsolete.
7869
7870 2006-06-28  Bruno Haible  <bruno@clisp.org>
7871
7872         * modules/wcwidth (Files): Add m4/wchar_t.m4.
7873
7874 2006-06-28  Bruno Haible  <bruno@clisp.org>
7875
7876         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
7877         gt_TYPE_WCHAR_T.
7878
7879 2006-06-28  Bruno Haible  <bruno@clisp.org>
7880
7881         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
7882         declaration for wcwidth.
7883         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
7884
7885 2006-06-28  Bruno Haible  <bruno@clisp.org>
7886
7887         * lib/mkdtemp.c [MINGW]: Include <io.h>.
7888         (mkdir): Define using _mkdir.
7889
7890 2006-06-28  Bruno Haible  <bruno@clisp.org>
7891
7892         * lib/getaddrinfo.h: Fix POSIX URL.
7893         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
7894         _WIN32.
7895         (use_win32_p): Make static.
7896         (getaddrinfo): Reject service name if it is empty or does not consist
7897         solely of decimal digits, or if its value is > 65535.
7898         (getnameinfo): Remove useless casts.
7899
7900 2006-06-27  Simon Josefsson  <jas@extundo.com>
7901
7902         * modules/sys_select: New file, suggested by Bruno Haible, Paul
7903         Eggert and Martin Lambers.
7904
7905 2006-06-27  Simon Josefsson  <jas@extundo.com>
7906
7907         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
7908         Eggert and Martin Lambers.
7909
7910 2006-06-27  Bruno Haible  <bruno@clisp.org>
7911
7912         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
7913         result to 0, not to empty.
7914         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
7915
7916 2006-06-27  Bruno Haible  <bruno@clisp.org>
7917
7918         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
7919
7920 2006-06-26  Simon Josefsson  <jas@extundo.com>
7921
7922         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
7923         present.
7924
7925 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
7926
7927         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
7928         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
7929         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
7930
7931 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
7932
7933         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
7934
7935 2006-06-26  Bruno Haible  <bruno@clisp.org>
7936
7937         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
7938
7939 2006-06-26  Bruno Haible  <bruno@clisp.org>
7940
7941         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
7942
7943 2006-06-26  Bruno Haible  <bruno@clisp.org>
7944
7945         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
7946         SGI C compiler in pre-C99 mode.
7947         Suggested by Mark D. Baushke and Larry Jones.
7948
7949 2006-06-26  Bruno Haible  <bruno@clisp.org>
7950
7951         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
7952         WCHAR_MAX.
7953         Reported by Mark D. Baushke and Larry Jones.
7954
7955 2006-06-26  Bruno Haible  <bruno@clisp.org>
7956
7957         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
7958         in pre-C99 mode.
7959         Suggested by Mark D. Baushke and Larry Jones.
7960
7961 2006-06-23  Simon Josefsson  <jas@extundo.com>
7962             Bruno Haible  <bruno@clisp.org>
7963
7964         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
7965         Emit mostlyclean-local rule.
7966         (func_emit_tests_Makefile_am): Likewise.
7967         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
7968
7969 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
7970
7971         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
7972
7973 2006-06-23  Bruno Haible  <bruno@clisp.org>
7974
7975         * tests/test-stdint.c: Update to match ISO C 99 Technical
7976         Corrigendum 1.
7977
7978 2006-06-23  Bruno Haible  <bruno@clisp.org>
7979
7980         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
7981
7982 2006-06-23  Bruno Haible  <bruno@clisp.org>
7983
7984         * lib/stdint_.h: Treat IRIX like OpenBSD.
7985
7986 2006-06-23  Bruno Haible  <bruno@clisp.org>
7987
7988         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
7989         ISO C 99 Technical Corrigendum 1.
7990
7991 2006-06-22  Simon Josefsson  <jas@extundo.com>
7992
7993         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
7994         MinGW.
7995
7996 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
7997
7998         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
7999         needed.  Some compiler complained about some of them.  Problem reported
8000         by Larry Jones in
8001         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
8002
8003 2006-06-21  Simon Josefsson  <jas@extundo.com>
8004
8005         * tests/test-getaddrinfo.c: New file.
8006
8007         * modules/getaddrinfo-tests: New file.
8008
8009         * MODULES.html.sh: Add inet_pton.
8010
8011         * modules/inet_pton: New file.
8012
8013 2006-06-21  Simon Josefsson  <jas@extundo.com>
8014
8015         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
8016         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
8017         of using the (limited) gnulib implementation on Windows XP.
8018
8019         * m4/inet_pton.m4: New file.
8020
8021 2006-06-21  Simon Josefsson  <jas@extundo.com>
8022
8023         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
8024         variable.
8025
8026         * lib/socket_.h: Don't define WINVER.
8027
8028         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
8029         slightly modified to work in gnulib.
8030
8031 2006-06-21  Simon Josefsson  <jas@extundo.com>
8032
8033         * doc/gnulib.texi (Windows sockets): Add.
8034
8035 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
8036
8037         * lib/read-file.c (fread_file): Start with buffer allocation of
8038         0 bytes rather than 1 byte; this simplifies the code.
8039         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
8040         code to free buffer and save/restore errno.
8041         (internal_read_file): Remove unused local.
8042
8043 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
8044
8045         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
8046         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
8047         Problem reported by Denis Excoffier in
8048         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
8049
8050 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
8051
8052         * modules/sys_socket, modules/socklen: Include sys/types since
8053         FreeBSD 4.x's sys/socket.h needs it.
8054
8055 2006-06-19  Simon Josefsson  <jas@extundo.com>
8056
8057         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
8058
8059 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
8060
8061         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
8062
8063 2006-06-19  Bruno Haible  <bruno@clisp.org>
8064
8065         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
8066         and FULL_PATH_INTTYPES_H in angle brackets.
8067         Reported by Mark D. Baushke <mdb@gnu.org>.
8068
8069 2006-06-17  Eric Blake  <ebb9@byu.net>
8070
8071         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
8072         errno.
8073
8074 2006-06-17  Bruno Haible  <bruno@clisp.org>
8075
8076         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
8077         <sys/inttypes.h>.
8078
8079 2006-06-17  Bruno Haible  <bruno@clisp.org>
8080
8081         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
8082         whether errno is declared. Assume <errno.h> declares errno.
8083
8084 2006-06-17  Bruno Haible  <bruno@clisp.org>
8085
8086         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
8087
8088 2006-06-17  Bruno Haible  <bruno@clisp.org>
8089
8090         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
8091         problem on Solaris 2.5.1.
8092
8093 2006-06-16  Eric Blake  <ebb9@byu.net>
8094
8095         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
8096         * lib/unicodeio.c [!defined errno]: Likewise.
8097         * lib/strtol.c [!defined errno]: Likewise.
8098         * lib/strtod.c [!defined errno]: Likewise.
8099
8100 2006-06-15  Eric Blake  <ebb9@byu.net>
8101
8102         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
8103
8104 2006-06-15  Eric Blake  <ebb9@byu.net>
8105
8106         * config/srclist.txt (ssize_t.m4): Lose sync.
8107
8108 2006-06-15  Bruno Haible  <bruno@clisp.org>
8109
8110         * modules/stdint (Files): Include m4/full-header-path.m4,
8111         m4/size_max.m4, m4/wchar_t.m4.
8112         (Makefile.am): Many more substitutions.
8113         * modules/stdint-tests: New file.
8114         * tests/test-stdint.c: New file.
8115
8116 2006-06-15  Bruno Haible  <bruno@clisp.org>
8117
8118         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
8119         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
8120         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
8121         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
8122         gl_CHECK_TYPE_SAME): New macros.
8123
8124 2006-06-15  Bruno Haible  <bruno@clisp.org>
8125
8126         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
8127
8128 2006-06-15  Bruno Haible  <bruno@clisp.org>
8129
8130         * lib/stdint_.h: Rewritten to be fully auto-configured.
8131         Fixes bug on HP-UX/IA64.
8132
8133 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
8134
8135         * lib/getdate.y (__attribute__): Don't define if already defined.
8136         Problem reported by Larry Jones.
8137         * lib/utimens.c (__attribute__): Likewise.
8138
8139 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
8140
8141         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
8142         reported by Andreas Schwab.
8143
8144 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8145             Bruno Haible  <bruno@clisp.org>
8146
8147         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
8148         check for the declaration of strnlen and a run test that exposes the
8149         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
8150         rpl_strndup.
8151
8152 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8153             Bruno Haible  <bruno@clisp.org>
8154
8155         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
8156
8157 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8158
8159         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
8160         compile test, for Tru64 4.0D.
8161
8162 2006-05-28  Karl Berry  <karl@gnu.org>
8163
8164         * config/srclist.txt (printf-args.c): lose sync.
8165
8166 2006-05-26  Martin Lambers  <marlam@marlam.de>
8167
8168         * lib/getpass.c: Updates the test for the native W32 API, and adds
8169         missing includes, thus fixing compilation warnings.
8170
8171 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
8172
8173         * lib/exclude.c (exclude_fnmatch): New function.
8174         (excluded_file_name): Call exclude_fnmatch.
8175         * lib/exclude.h (excluded_file_name): New prototype
8176
8177 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
8178
8179         * lib/tempname.c (small_open, large_open): New macros.
8180         (__open, __open64) [!_LIBC]: Remove.
8181         (__gen_tempname): Use small_open and large_open instead of __open
8182         and __open64.  This fixes a portability bug on HP-UX 11.11i
8183         reported by Simon Wing-Tang in
8184         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
8185
8186 2006-05-24  Bruno Haible  <bruno@clisp.org>
8187
8188         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
8189         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
8190         Reported by Thorsten Maerz <torte@netztorte.de> via
8191         Aaron Stone <aaron@serendipity.cx>.
8192
8193 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
8194
8195         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
8196         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
8197         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
8198         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
8199         not really conditional on the cache.
8200         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
8201
8202 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
8203
8204         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
8205         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
8206         (my_usleep): Don't mishandle maximum value.
8207
8208 2006-05-19  Jim Meyering  <jim@meyering.net>
8209
8210         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
8211
8212 2006-05-17  Bruno Haible  <bruno@clisp.org>
8213
8214         Cygwin portability.
8215         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
8216
8217 2006-05-17  Bruno Haible  <bruno@clisp.org>
8218
8219         * lib/stdint_.h: Fix recognition of Cygwin.
8220
8221 2006-05-15  Bruno Haible  <bruno@clisp.org>
8222
8223         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
8224         on libtool patch by Ralf Wildenhues.
8225
8226 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
8227
8228         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
8229         test for C99 conformance; (bool) 0.5 is an integer constant
8230         expression, but (bool) -0.5 is not.  Problem reported by Fedor
8231         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
8232
8233 2006-05-11  Simon Josefsson  <jas@extundo.com>
8234
8235         * m4/xvasprintf.m4: Fix obvious typo.
8236
8237 2006-05-11  Jim Meyering  <jim@meyering.net>
8238
8239         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
8240         James Lemley.
8241
8242 2006-05-10  Simon Josefsson  <jas@extundo.com>
8243
8244         * lib/md4.c: Typo fix, update copyright years.
8245         (K1, K2): Don't use L because it turn computations into 64-bit on
8246         64-bit platforms.
8247
8248 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
8249
8250         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
8251         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
8252         unwanted sign propagation, e.g., on hosts with 64-bit int.
8253         There still are some problems with reeelly weird theoretical hosts
8254         (e.g., 33-bit int) but it's not worth worrying about now.
8255         * lib/sha1.c (rol): Likewise.
8256         (K1, K2, K3, K4): Remove unnecessary L suffix.
8257
8258 2006-05-10  Bruno Haible  <bruno@clisp.org>
8259
8260         * lib/des.c: Cast to avoid warnings.
8261
8262 2006-05-09  Bruno Haible  <bruno@clisp.org>
8263
8264         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
8265         (Depends-on): Depend also on xsize, stdarg.
8266         (configure.ac): Add gl_XVASPRINTF.
8267
8268 2006-05-09  Bruno Haible  <bruno@clisp.org>
8269
8270         * m4/xvasprintf.m4: New file.
8271
8272 2006-05-09  Bruno Haible  <bruno@clisp.org>
8273
8274         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
8275         (EOVERFLOW): Define fallback value.
8276         (xstrcat): New function.
8277         (xvasprintf): Recognize the special case of a string concatenation.
8278
8279 2006-05-08  Eric Blake  <ebb9@byu.net>
8280
8281         * gnulib-tool (func_version): Base copyright year on CVS date.
8282         (func_emit_copyright_notice): New function.
8283         (func_emit_lib_Makefile_am): Use it.
8284         (func_emit_tests_Makefile_am): Likewise.
8285         (func_import): Likewise.
8286
8287 2006-05-08  Bruno Haible  <bruno@clisp.org>
8288
8289         * modules/stdarg: New file.
8290         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
8291
8292 2006-05-08  Bruno Haible  <bruno@clisp.org>
8293
8294         * m4/stdarg.m4: New file, from GNU gettext.
8295
8296 2006-05-08  Bruno Haible  <bruno@clisp.org>
8297
8298         * config/srclist.txt (build-aux/config.rpath): different from latest
8299         release.
8300
8301 2006-05-08  Bruno Haible  <bruno@clisp.org>
8302
8303         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
8304
8305 2006-05-05  Jim Meyering  <jim@meyering.net>
8306
8307         * m4/warning.m4: New file, derived from bison's file by the same name.
8308
8309 2006-05-03  Bruno Haible  <bruno@clisp.org>
8310
8311         * lib/stdint_.h: Shorter URL.
8312         * lib/inttypes.h: Likewise.
8313
8314 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
8315
8316         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
8317
8318 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
8319
8320         * lib/verify.h: Document the internals better.  Most of this change
8321         was written by Bruno Haible.
8322
8323 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
8324
8325         * doc/verify.texi: New file, partly based on a proposal by
8326         Bruno Haible.
8327
8328 2006-05-02  Bruno Haible  <bruno@clisp.org>
8329
8330         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
8331         test from here...
8332         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
8333
8334 2006-04-29  Bruno Haible  <bruno@clisp.org>
8335
8336         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
8337         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
8338
8339 2006-04-29  Bruno Haible  <bruno@clisp.org>
8340
8341         * gnulib-tool: Make --update option actually work.
8342
8343 2006-04-29  Bruno Haible  <bruno@clisp.org>
8344
8345         * doc/gcd.texi: New file.
8346         * doc/gnulib.texi: Include it.
8347
8348 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
8349
8350         * lib/getdate.y (get_date): When adding relative date, start with the
8351         initial time, not with the result of the first mktime call.
8352
8353 2006-04-25  Bruno Haible  <bruno@clisp.org>
8354
8355         * gnulib-tool (func_import): Output the include directives in three
8356         blocks, sorted separately.
8357         Reported by Ben Pfaff <blp@cs.stanford.edu>.
8358
8359 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
8360
8361         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
8362         to define main with arguments, for C++.  Reported by Eric Blake.
8363         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
8364         Prefer 'int main ()' to 'int main (void)', for C++.
8365         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
8366         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
8367         for 'main', for C99 and C++.
8368
8369 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
8370
8371         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
8372         Don't assume that exit status -1 is valid.
8373         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
8374         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
8375         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
8376         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
8377         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
8378         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
8379         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
8380         functions can be used without declaring them, or that you can
8381         exit with status -1.
8382         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
8383
8384 2006-04-24  Karl Berry  <karl@gnu.org>
8385
8386         * config/srclist.txt (longdouble.m4): sync lost.
8387
8388 2006-04-24  Eric Blake  <ebb9@byu.net>
8389
8390         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
8391
8392 2006-04-24  Bruno Haible  <bruno@clisp.org>
8393
8394         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
8395         poll() implementation in AIX.
8396         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8397
8398 2006-04-24  Bruno Haible  <bruno@clisp.org>
8399
8400         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
8401         assigned exactly once.
8402
8403 2006-04-23  Claudio Fontana  <claudio@gnu.org>
8404             Bruno Haible  <bruno@clisp.org>
8405
8406         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
8407         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
8408         for AM_CPPFLAGS.
8409
8410 2006-04-23  Bruno Haible  <bruno@clisp.org>
8411
8412         * modules/copy-file: Depend on unistd.
8413         * modules/execute: Likewise.
8414         * modules/fatal-signal: Likewise.
8415         * modules/findprog: Likewise.
8416         * modules/mkdtemp : Likewise.
8417         * modules/pipe: Likewise.
8418         * modules/wait-process: Likewise.
8419
8420 2006-04-23  Bruno Haible  <bruno@clisp.org>
8421
8422         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
8423         condition was already detected.
8424         Reported by Ben Pfaff <blp@cs.stanford.edu>.
8425
8426 2006-04-23  Bruno Haible  <bruno@clisp.org>
8427
8428         * lib/copy-file.c: Include <unistd.h> unconditionally.
8429         * lib/execute.c: Likewise.
8430         * lib/fatal-signal.c: Likewise.
8431         * lib/findprog.c: Likewise.
8432         * lib/mkdtemp.c: Likewise.
8433         * lib/pipe.h: Likewise.
8434         * lib/pipe.c: Likewise.
8435         * lib/wait-process.h: Likewise.
8436
8437 2006-04-23  Bruno Haible  <bruno@clisp.org>
8438
8439         * gnulib-tool (func_usage): Fix --import description. Document
8440         --update.
8441         (func_import): Create temporary file in a temporary directory, if
8442         --dry-run is specified. Silence errors from 'grep' when there are no
8443         m4 files in $m4dir.
8444         (func_create_testdir): Silence errors from 'grep' when there are no
8445         m4 files in $m4dir.
8446         Reported by Karl Berry <karl@freefriends.org>.
8447
8448 2006-04-20  Bruno Haible  <bruno@clisp.org>
8449
8450         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
8451         one argument, so that the code will be portable to Autoconf 2.60.
8452         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
8453         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
8454         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
8455
8456 2006-04-19  Derek Price  <derek@ximbiot.com>
8457             Eric Blake  <ebb9@byu.net>
8458
8459         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
8460         rather than "/full/path.h".  Update comment to match.  Shorten &
8461         generalize m4_translit call via AS_TR_CPP.
8462
8463 2006-04-19  Derek Price  <derek@ximbiot.com>
8464             Eric Blake  <ebb9@byu.net>
8465
8466         * lib/inttypes.h: Correct grammar in comment.
8467
8468 2006-04-18  Derek Price  <derek@ximbiot.com>
8469             Paul Eggert  <eggert@cs.ucla.edu>
8470
8471         * modules/inttypes: New file.
8472         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
8473
8474 2006-04-18  Derek Price  <derek@ximbiot.com>
8475             Paul Eggert  <eggert@cs.ucla.edu>
8476
8477         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
8478         New files.
8479
8480 2006-04-18  Derek Price  <derek@ximbiot.com>
8481             Paul Eggert  <eggert@cs.ucla.edu>
8482
8483         * lib/inttypes.h: New file.
8484         * lib/strtoimax.c: Assume <inttypes.h>.
8485
8486 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
8487
8488         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
8489         isn't mounted.  Problem reported by Kir Kolyshkin.
8490
8491 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
8492
8493         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
8494         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
8495         Derek R. Price.
8496         * lib/regex.h (RE_DUP_MAX): Update comment to match current
8497         implementation.
8498
8499 2006-04-12  Eric Blake  <ebb9@byu.net>
8500
8501         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
8502         is now done automatically by the corresponding Autoconf macro.
8503
8504 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
8505
8506         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
8507         time_r.h.
8508
8509 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
8510
8511         Merge regex changes from libc, removing some of our
8512         POSIX-conformance changes that were rejected and redoing them in a
8513         less-intrusive way.
8514
8515         * lib/regcomp.c (re_compile_internal, init_dfa):
8516         Length arg is now size_t, not Idx.  All uses changed.
8517         (peek_token): Forward decl now says internal_function.
8518         (__re_error_msgid, __re_error_msgid_idx):
8519         Now static rather than extern with attribute_hidden.
8520         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
8521         For some reason libc prefers K&R style defns for external functions.
8522         (regerror) [!defined _LIBC]: Likewise.
8523         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
8524         (seek_collating_symbol_entry, lookup_collation_sequence_value):
8525         (build_range_exp, build_collating_symbol):
8526         Use K&R-style defn.
8527         (re_compile_fastmap): Use '\0' to memset, not 0.
8528         (utf8_sb_map): Make the calculations more obvious.
8529         (init_dfa, parse_bracket_exp, build_charclass_op):
8530         Call calloc and cast result, as glibc does.
8531         (init_word_char, fetch_token, peek_token, peek_token_bracket):
8532         (build_range_exp, build_collating_symbol):
8533         Now internal functions.
8534
8535         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
8536
8537         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
8538         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
8539         Don't depend on VMS; depend on __VMS instead, for POSIX
8540         namespace cleanness.
8541         (regoff_t): Define to ssize_t, not long int.
8542
8543         Remove the REG_ macros named below.  Instead, make the old names
8544         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
8545         __USE_GNU_REGEX.
8546         (REG_BACKSLASH_ESCAPE_IN_LISTS):
8547         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
8548         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
8549         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
8550         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
8551         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
8552         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
8553         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
8554         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
8555         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
8556         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
8557         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
8558         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
8559         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
8560         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
8561         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
8562         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
8563         (REG_NREGS):
8564         Remove.  All uses replaced by the old RE_* names.
8565         (RE_BACKSLASH_ESCAPE_IN_LISTS):
8566         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
8567         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
8568         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
8569         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
8570         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
8571         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
8572         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
8573         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
8574         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
8575         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
8576         Don't bother having these macros be independent of each others'
8577         values, since they no longer exist in the POSIX name space.
8578
8579         Rename the following member names back to their old names,
8580         unless !__USE_GNU_REGEX.  All uses changed back.
8581         (buffer): Renamed from re_buffer.
8582         (allocated): Renamed from re_allocated.
8583         (used): Renamed from re_used.
8584         (syntax): Renamed from re_syntax.
8585         (fastmap): Renamed from re_fastmap.
8586         (translate): Renamed from re_translate.
8587         (can_be_null): Renamed from re_can_be_null.
8588         (regs_allocated): Renamed from re_regs_allocated.
8589         (fastmap_accurate): Renamed from re_fastmap_accurate.
8590         (no_sub): Renamed from re_no_sub.
8591         (not_bol): Renamed from re_not_bol.
8592         (not_eol): Renamed from re_not_eol.
8593         (newline_anchor): Renamed from re_newline_anchor.
8594         (num_regs): Renamed from rm_num_regs.
8595         (start): Renamed from rm_start.
8596         (end): Renamed from rm_end.
8597
8598         (free_state): Move up a bit.
8599
8600         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
8601         #define to be empty.
8602         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
8603         when that is what is intended.
8604         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
8605         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
8606         (MAX): New macro.
8607         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
8608         All uses changed back to re_malloc, etc.  It's now the caller's
8609         responsibility to check for overflow; all callers changed.
8610         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
8611         (re_x2nrealloc): Remove.
8612         (free_state): Remove decl.
8613
8614         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
8615         (re_set_registers, re_exec):
8616         Use K&R-style defn.
8617
8618         2006-01-31  Roland McGrath  <roland@redhat.com>
8619
8620         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
8621         Reported by Mike Frysinger <vapier@gentoo.org>.
8622
8623         2006-01-15  Andreas Jaeger  <aj@suse.de>
8624
8625         [BZ #1950]
8626         * lib/regex_internal.c (re_string_reconstruct): Adjust for
8627         build_wcs_upper_buffer change.
8628         (build_wcs_upper_buffer): Change return type.
8629
8630         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
8631
8632         * lib/regex_internal.h: Include <stdint.h> if available.
8633
8634         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
8635
8636         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
8637
8638         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
8639
8640         * lib/regcomp.c: Adjust for changed secondary hash function.
8641
8642         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
8643
8644         * lib/regex.h: Pretty printing.
8645         Clean up namespace a bit.
8646
8647         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
8648
8649         * lib/regexec.c (update_cur_sifted_state, check_arrival,
8650         check_arrival_add_next_nodes): Avoid using uninitialized variable.
8651
8652         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
8653                     Ulrich Drepper  <drepper@redhat.com>
8654
8655         [BZ #1302]
8656         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
8657         changed.
8658         (bitset_word_t): Renamed from bitset_word.  All uses changed.
8659
8660         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
8661
8662         [BZ #281]
8663         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
8664         * lib/regcomp.c: Remove unnecessary uses of
8665         unsigned RE_TRANSLATE_TYPE.
8666         * lib/regex_internal.h: Likewise.
8667         * lib/regex_internal.c: Likewise.
8668         * lib/regexec.c: Likewise.
8669         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
8670
8671         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
8672
8673         * lib/regexec.c (find_recover_state): Remove unnecessary
8674         initialization.
8675         (transit_state_bkref): Make DFA a const pointer.
8676         (get_subexp): Likewise.
8677         (check_arrival): Likewise.
8678         (update_cur_sifted_state): Likewise.
8679         (re_search_internal): Likewise.
8680         (prune_impossible_nodes): Likewise.
8681         (acquire_init_state_context): Likewise.
8682         (proceed_next_node): Likewise.
8683         (set_regs): Likewise.
8684         (free_fail_stack_return): Likewise.
8685         (check_arrival_expand_ecl): Mark DFA parameter as const.
8686         (check_arrival_expand_ecl_sub): Likewise.
8687         (check_subexp_limits): Likewise.
8688         (sub_epsilon_src_nodes):  Likewise.
8689         (add_epsilon_src_nodes):  Likewise.
8690         (merge_state_array): Likewise.
8691         (update_regs): Likewise.
8692         (build_trtable): Likewise.
8693         (sift_states_backward): Mark MCTX parameter as const.
8694         (build_sifted_states): Likewise.
8695         (update_cur_sifted_state): Likewise.
8696         (sift_states_mkref): Likewise.
8697         (check_arrival_expand_ecl): Mark eclosure as const.
8698         (check_dst_limits_calc_pos_1): Likewise.
8699         * lib/regex_internal.h (re_match_context_t): Make dfa a const
8700         pointer.
8701
8702         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
8703
8704         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
8705         (transit_state_sb): Likewise.
8706         (transit_state_mb): Likewise.
8707         (sift_states_iter_mb): Likewise.
8708         (check_arrival_add_next_nodes): Likewise.
8709         (check_node_accept_bytes): Change first parameter to pointer-to-const.
8710         [_LIBC] (re_search_2_stub): Use mempcpy.
8711
8712         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
8713         mbrtowc for very simple UTF-8 case.
8714
8715         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
8716         a pointer-to-const.
8717         (re_acquire_state_context): Likewise.
8718         * lib/regex_internal.h: Adjust prototypes.
8719
8720         * lib/regex.c: Prevent using C++ compilers.
8721
8722         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
8723         (re_acquire_state_context): Likewise.
8724
8725 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
8726
8727         * modules/regex (Depends-on): Add ssize_t.
8728
8729 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
8730
8731         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
8732         translation table.
8733
8734 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
8735
8736         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
8737
8738 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
8739             Bruno Haible  <bruno@clisp.org>
8740
8741         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
8742         <sys/types.h> and <inttypes.h>.
8743
8744 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8745
8746         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
8747         `__error_t_defined', so argp.h will not typedef the former.
8748
8749 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
8750
8751         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
8752         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
8753         glibc names.  Even if glibc is changed to conform to POSIX, the
8754         traditional names will be available anyway, since regex depends on
8755         the extensions module.  Also, fix a longstanding typo in the
8756         implementation of Spencer ERE test #75 from grep 2.3.  Problems
8757         reported by Emanuele Giaquinta.  Also, change sense of cached
8758         variable, so that the message makes sense.
8759
8760 2006-03-24  Simon Josefsson  <jas@extundo.com>
8761
8762         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
8763         including some doc fixes.
8764         (base64_encode_alloc): Fix +1 bug on allocation failures.
8765
8766 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8767
8768         * lib/base64.c (base64_encode): Do not read past end of array with
8769         unsanitized input on systems with CHAR_BIT > 8.
8770
8771 2006-03-24  Eric Blake  <ebb9@byu.net>
8772
8773         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
8774
8775 2006-03-22  Karl Berry  <karl@gnu.org>
8776
8777         * config/srclist.txt (*setenv.[ch]): get from coreutils.
8778         * config/srclistvars.sh (COREUTILS): new var.
8779
8780 2006-03-17  Jim Meyering  <jim@meyering.net>
8781
8782         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
8783         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
8784
8785 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
8786
8787         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
8788         no longer needs it.  Instead, check that regoff_t is as least
8789         as wide as ptrdiff_t.
8790
8791         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
8792         so that our regex.h stays compatible with the installed regex.
8793         This is helpful for installers who configure --without-included-regex.
8794         Problem reported by Emanuele Giaquinta.
8795
8796 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
8797
8798         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
8799         Typedef to long int, not to off_, as POSIX will likely change
8800         in that direction.
8801
8802 2006-03-15  Eric Blake  <ebb9@byu.net>
8803
8804         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
8805
8806 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
8807
8808         * lib/argp-help.c (validate_uparams): Fix typo
8809         * lib/argp-parse.c (argp_default_options): Consistently begin help
8810         messages with a lowercase letter.
8811
8812 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
8813
8814         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
8815         overrun buffers and shouldn't be used (much as gets shouldn't be
8816         used).
8817         * lib/time_r.c (asctime_r, ctime_r): Likewise.
8818
8819 2006-03-08  Simon Josefsson  <jas@extundo.com>
8820
8821         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
8822         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8823
8824 2006-03-08  Simon Josefsson  <jas@extundo.com>
8825
8826         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
8827         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8828
8829 2006-03-08  Simon Josefsson  <jas@extundo.com>
8830
8831         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
8832         signal that configure disabled the device.
8833
8834 2006-03-08  Simon Josefsson  <jas@extundo.com>
8835
8836         * build-aux/maint.mk: Fix refresh-po, to handle no translated
8837         languages.
8838
8839 2006-03-07  Simon Josefsson  <jas@extundo.com>
8840
8841         * modules/getopt (Depends-on): Add unistd.
8842
8843         * modules/unistd: New file.
8844
8845 2006-03-07  Simon Josefsson  <jas@extundo.com>
8846
8847         * modules/gc-random: New file.
8848
8849 2006-03-07  Simon Josefsson  <jas@extundo.com>
8850
8851         * m4/unistd_h.m4: New file.
8852
8853 2006-03-07  Simon Josefsson  <jas@extundo.com>
8854
8855         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
8856         test to be side-effect free by storing the result in the cache
8857         variable gl_cv_lib_readline, and moving the assignment of
8858         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
8859         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8860
8861 2006-03-07  Simon Josefsson  <jas@extundo.com>
8862
8863         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
8864         error on missing devices (the functions will return an error).
8865
8866         * m4/gc.m4: Move random stuff to gc-random.m4
8867
8868 2006-03-07  Simon Josefsson  <jas@extundo.com>
8869
8870         * lib/unistd_.h: New file.
8871
8872 2006-03-07  Simon Josefsson  <jas@extundo.com>
8873
8874         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
8875
8876 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
8877
8878         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
8879         Problem reported by Juan Manuel Guerrero.
8880
8881 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
8882
8883         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
8884         the unistd module.
8885         * lib/getlogin_r.c: Likewise.
8886         * lib/getlogin_r.h: Likewise.
8887         * lib/glob.c: Likewise.
8888         * lib/pagealign_alloc.c: Likewise.
8889         * lib/unistd_.h: Remove; no longer needed.
8890
8891 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
8892
8893         * MODULES.html.sh (Support for systems lacking POSIX:2001):
8894         Add unistd.
8895         * modules/c-stack (Depends-on): Add unistd.
8896         * modules/getlogin_r: Likewise.
8897         * modules/glob: Likewise.
8898         * modules/pagealign_alloc: Likewise.
8899         * modules/unistd (Files): Remove lib/unistd_.h.
8900         (EXTRA_DIST): Remove.
8901         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
8902         need unistd_.h.
8903         (MOSTLYCLEANFILES): Remove unistd.h-t.
8904
8905 2006-03-03  Simon Josefsson  <jas@extundo.com>
8906
8907         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
8908
8909 2006-03-03  Simon Josefsson  <jas@extundo.com>
8910
8911         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
8912         libidn and bison.
8913
8914 2006-03-03  Simon Josefsson  <jas@extundo.com>
8915
8916         * build-aux/maint.mk: Add indent target.
8917
8918 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
8919
8920         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
8921         our replacement poll.h in any case, to avoid a differing
8922         declaration from a system header.  Seen on AIX.
8923
8924 2006-03-01  Simon Josefsson  <jas@extundo.com>
8925
8926         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
8927         <kasal@ucw.cz>.
8928
8929 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
8930
8931         * modules/gettime (Depends-on): Add extensions module.
8932         * modules/nanosleep (Depends-on): Likewise.
8933         * modules/settime (Depends-on): Likewise.
8934
8935 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
8936
8937         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
8938         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
8939         pedantically.
8940         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
8941         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
8942
8943         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
8944         not "==".  Reported by Ralf Wildenhues.
8945
8946 2006-03-01  Karl Berry  <karl@gnu.org>
8947
8948         * doc/Copyright/request-*: new files, synced from gnuorg.
8949
8950 2006-03-01  Karl Berry  <karl@gnu.org>
8951
8952         * config/srclist.txt (Copyright/*): new entries.
8953
8954 2006-02-28  Simon Josefsson  <jas@extundo.com>
8955
8956         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
8957
8958 2006-02-27  Simon Josefsson  <jas@extundo.com>
8959
8960         * lib/base64.h: Indent #define's.  From Jim Meyering
8961         <jim@meyering.net>.
8962
8963 2006-02-27  Jim Meyering  <jim@meyering.net>
8964
8965         Revert the change of 2006-02-24, so these files can continue
8966         to be sync'd from gettext.
8967         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
8968         of `config.h'.
8969
8970 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
8971
8972         * modules/intprops: New file.
8973         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
8974         Add intprops.
8975         * modules/getloadavg (Files): Remove lib/intprops.h.
8976         (Depends-on): Add intprops.
8977         * modules/human: Likewise.
8978         * modules/inttostr: Likewise.
8979         * modules/openat: Likewise.
8980         * modules/sig2str: Likewise.
8981         * modules/userspec: Likewise.
8982         * modules/utimecmp: Likewise.
8983         * modules/xnanosleep: Likewise.
8984         * modules/xstrtol: Likewise.
8985
8986 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
8987
8988         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
8989         * modules/lock-tests (TESTS): Use $(EXEEXT).
8990         * modules/tls-tests: Likewise.
8991         * modules/argp-tests: Likewise.
8992         (check_PROGRAMS): New var, replacing...
8993         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
8994
8995 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8996
8997         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
8998         `config.h'.
8999
9000 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
9001
9002         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
9003
9004 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9005
9006         Sync from coreutils.
9007         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
9008         gl_CHDIR_SAFER.
9009
9010 2006-02-22  Jim Meyering  <jim@meyering.net>
9011
9012         Sync from coreutils.
9013         * m4/chdir-safer.m4: New file.
9014
9015 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
9016
9017         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
9018         AT_FDCWD exceeds INT_MAX.
9019         * lib/openat.h (AT_FDCWD): Likewise.
9020
9021 2006-02-17  Eric Blake  <address@hidden>
9022
9023         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
9024
9025 2006-02-16  Simon Josefsson  <jas@extundo.com>
9026
9027         * modules/getaddrinfo (Depends-on): Add sys_socket.
9028
9029 2006-02-15  Simon Josefsson  <jas@extundo.com>
9030
9031         * build-aux/maint.mk: Add dsyntax-check rule.
9032
9033 2006-02-15  Eric Blake  <ebb9@byu.net>
9034
9035         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
9036         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
9037         'present but cannot compile' warnings on cygwin.
9038         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
9039         use ws2tcpip.h if sys/socket.h works.
9040         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
9041         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
9042
9043 2006-02-14  Simon Josefsson  <jas@extundo.com>
9044
9045         * modules/maintainer-makefile (Files): Rename.
9046
9047         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
9048         and (the local) Makefile.cfg to maint-cfg.mk.
9049
9050         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
9051         to the latter.
9052
9053         * modules/maintainer-makefile: New module.
9054
9055         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
9056         severaly stripped to make it possible to build it up from scratch
9057         with reliable tests.
9058
9059         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
9060         fixes to permit overriding the default actions when configure and
9061         makefile are not available.
9062
9063 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
9064
9065         Sync from coreutils.
9066         * modules/lstat (Depends-on): Don't depend on xalloc.
9067         (License): Change from GPL to LGPL, since this is now simply a
9068         replacement for a libc function.
9069
9070 2006-02-14  Jim Meyering  <jim@meyering.net>
9071
9072         Sync from coreutils.
9073
9074         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
9075         failure on deficient systems, and simplify gnulib lgpl dependencies.
9076         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
9077         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
9078
9079         * lib/xalloc-die.c: Remove unused definition of N_.
9080
9081 2006-02-14  Jim Meyering  <jim@meyering.net>
9082
9083         Sync from coreutils.
9084         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
9085         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
9086         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
9087         double-quote uses of that variable, to accommodate the rare case in
9088         which getmntent is available in none of the libraries checked.  This
9089         happens at least on FreeBSD 5.0.
9090
9091 2006-02-13  Simon Josefsson  <jas@extundo.com>
9092
9093         * gnulib-tool (Usage): Fix --import, from
9094         karl@freefriends.org (Karl Berry).
9095
9096 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
9097
9098         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
9099
9100 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
9101
9102         * lib/argp-namefrob.h: Restore changes accidentally lost during the
9103         "autoupdate" on 2005-12-12.
9104
9105 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
9106
9107         * modules/closeout (Depends-on): Remove atexit.
9108
9109 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
9110
9111         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
9112         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
9113
9114 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
9115
9116         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
9117         __EXTENSIONS__ if this causes compilation to fail.  Problem
9118         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
9119         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
9120
9121 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
9122
9123         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
9124         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
9125         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
9126         All uses changed.
9127
9128 2006-01-26  Simon Josefsson  <jas@extundo.com>
9129
9130         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
9131         prototype is visible on mingw32.
9132
9133         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
9134         for mingw32.
9135
9136         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
9137         mingw32).
9138
9139 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
9140
9141         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
9142         attempt to open for write; this always fails, at least on POSIX
9143         hosts.  This reinstates the 2006-01-09 change, which was
9144         inadvertently removed.
9145
9146 2006-01-26  Bruno Haible  <bruno@clisp.org>
9147
9148         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
9149         Reported by Paul Eggert.
9150
9151 2006-01-26  Bruno Haible  <bruno@clisp.org>
9152             Paul Eggert  <eggert@cs.ucla.edu>
9153
9154         * lib/stdbool_.h (_Bool)
9155         [(! (defined __cplusplus || defined __BEOS__)
9156           && !defined __GNUC__
9157           && !(defined __HP_cc || defined __xlc__
9158                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
9159                || defined __sgi))]:
9160         #define to signed char in these cases too; this simplifies
9161         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
9162         etc., separately) and makes it more conservative.
9163
9164 2006-01-25  Simon Josefsson  <jas@extundo.com>
9165
9166         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
9167         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
9168         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
9169
9170 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
9171
9172         * lib/argp-namefrob.h: Bugfix. Remove stray #
9173
9174 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
9175
9176         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
9177         so that we test the test.
9178         Check for yet another HP-UX cc bug involving *bool |= bool.
9179
9180 2006-01-25  Karl Berry  <karl@gnu.org>
9181
9182         * config/srclist.txt (vasnprintf.c): sync lost.
9183
9184 2006-01-25  Jim Meyering  <jim@meyering.net>
9185
9186         Sync from the stable (b5) branch of coreutils:
9187
9188         * lib/fts.c (fts_children): Don't let close() clobber errno from
9189         failed fchdir().
9190
9191         * lib/fts.c (fts_stat): When following a symlink-to-directory,
9192         don't necessarily interpret stat-fails+lstat-succeeds as indicating
9193         a dangling symlink.  That can also happen at least for ELOOP.
9194         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
9195         FYI, this bug predates the inclusion of fts.c in coreutils.
9196
9197         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
9198         in their own block, so pre-c99 compilers don't object.
9199
9200         Avoid the double-free (first in fts_read, second in fts_close) that
9201         would occur when an `active' directory is made inaccessible (e.g.,
9202         via chmod a-x) during a traversal.
9203         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
9204         before returning.  Reproduce this failure by
9205         mkdir -p a/b; cd a; chmod a-x . b
9206         Reported by Stavros Passas.
9207
9208 2006-01-25  Jim Meyering  <jim@meyering.net>
9209
9210         * lib/fileblocks.c: Remove more useless parentheses.
9211         * lib/readutmp.h: Likewise.
9212
9213 2006-01-25  Bruno Haible  <bruno@clisp.org>
9214
9215         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
9216         warnings.
9217         Reported by Paul Eggert.
9218
9219 2006-01-25  Bruno Haible  <bruno@clisp.org>
9220
9221         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
9222         rid of a trap command. For Solaris sh.
9223         Reported by Mark D. Baushke <mdb@gnu.org>.
9224
9225 2006-01-24  Simon Josefsson  <jas@extundo.com>
9226
9227         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
9228         Bruno.
9229
9230 2006-01-24  Karl Berry  <karl@gnu.org>
9231
9232         * config/srclist.txt (argp-namefrob.h): sync lost.
9233
9234 2006-01-24  Jim Meyering  <jim@meyering.net>
9235
9236         * modules/openat (Files): Add lib/intprops.h.
9237         From Mark D. Baushke.
9238
9239 2006-01-24  Jim Meyering  <jim@meyering.net>
9240
9241         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
9242         Reported by Mark D. Baushke.
9243
9244 2006-01-24  Jim Meyering  <jim@meyering.net>
9245
9246         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
9247
9248 2006-01-24  Bruno Haible  <bruno@clisp.org>
9249
9250         * modules/strnlen (Maintainer): Change from glibc to all.
9251
9252 2006-01-24  Bruno Haible  <bruno@clisp.org>
9253
9254         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
9255         Patch by Paul Eggert.
9256
9257 2006-01-24  Bruno Haible  <bruno@clisp.org>
9258
9259         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
9260         already has it.
9261         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
9262         2005-11-26.
9263
9264         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
9265         'signed char' to avoid problems with the built-in _Bool type.
9266         Reported by Paul Eggert on 2005-11-26.
9267
9268 2006-01-24  Bruno Haible  <bruno@clisp.org>
9269
9270         * gnulib-tool (func_import): Avoid constructing complicated sed
9271         expressions inside backquote.
9272         Report and solution by Mark D. Baushke <mdb@gnu.org>.
9273
9274 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
9275
9276         These changes imported from libc.
9277         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
9278         test and two separate function calls.
9279         * lib/strndup.c (__strndup): Add libc_hidden_def.
9280
9281 2006-01-23  Simon Josefsson  <jas@extundo.com>
9282
9283         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
9284         Remove the test_*_SOURCES variable: automake infers it by default.
9285         * modules/tls-tests: Likewise.
9286
9287 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
9288
9289         Work around porting bugs reported by Dieter in
9290         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
9291         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
9292         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
9293         Include "getopt.h" first, to check interface.
9294         (getenv): Declare only if defined HAVE_DECL_GETENV &&
9295         !HAVE_DECL_GETENV.
9296         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
9297         (__strndup): Revert to K&R-style function dfns, the glibc style.
9298         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
9299         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
9300         Include strnlen.h first, to get prototype properly.
9301         (strnlen): Renamed from __strnlen.
9302         Remove weak alias.
9303
9304 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
9305
9306         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
9307
9308 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
9309
9310         * config/srclist.txt: Adjust to reflect glibc reorganization.
9311         This affects only comments.
9312
9313 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
9314
9315          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
9316          Reported by Bruce Korb <bkorb@gnu.org>.
9317
9318 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
9319
9320         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
9321         to pacify gcc -Wswitch-default.
9322
9323 2006-01-22  Bruno Haible  <bruno@clisp.org>
9324
9325         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
9326         temporary buffer for sprintf, take into account the precision also
9327         for 'd', 'i', 'u', 'o', 'x', 'X'.
9328
9329 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
9330
9331         * modules/argp-tests: New module
9332         * tests/test-argp.c: New file
9333         * tests/test-argp-2.sh: New file
9334
9335 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
9336
9337         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
9338         (__argp_base_name): Removed
9339         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
9340         typo.
9341         (__argp_base_name): Provide macro definition or extern declaration
9342         depending on the configuration
9343
9344 2006-01-20  Simon Josefsson  <jas@extundo.com>
9345
9346         * modules/inet_ntop (Depends-on): Depend on sys_socket.
9347
9348 2006-01-20  Simon Josefsson  <jas@extundo.com>
9349
9350         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
9351
9352 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
9353
9354         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
9355         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
9356         Suggested by Bruno Haible.
9357
9358 2006-01-20  Karl Berry  <karl@gnu.org>
9359
9360         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
9361         until changes propagate, I guess.
9362
9363 2006-01-19  Simon Josefsson  <jas@extundo.com>
9364
9365         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
9366
9367 2006-01-19  Simon Josefsson  <jas@extundo.com>
9368
9369         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
9370
9371 2006-01-19  Simon Josefsson  <jas@extundo.com>
9372
9373         * gnulib-tool: Set check_PROGRAMS.
9374
9375         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
9376         modules/des-tests, modules/gc-arcfour-tests,
9377         modules/gc-arctwo-tests, modules/gc-des-tests,
9378         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
9379         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
9380         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
9381         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
9382         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
9383         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
9384         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
9385         test_*_SOURCES.
9386
9387 2006-01-18  Simon Josefsson  <jas@extundo.com>
9388
9389         * modules/socklen (Depends-on): Depend on sys_socket.
9390
9391 2006-01-18  Simon Josefsson  <jas@extundo.com>
9392
9393         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
9394         modules/des-tests, modules/gc-arcfour-tests,
9395         modules/gc-arctwo-tests, modules/gc-des-tests,
9396         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
9397         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
9398         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
9399         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
9400         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
9401         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
9402         $(EXEEXT) to automake TESTS variable, for mingw32.
9403
9404 2006-01-17  Simon Josefsson  <jas@extundo.com>
9405
9406         * modules/socklen (Include): Need sys/socket.h.
9407
9408 2006-01-17  Bruno Haible  <bruno@clisp.org>
9409
9410         * modules/ssize_t (Include): Add <sys/types.h>.
9411
9412 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
9413
9414         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
9415         it's not portable and it doesn't work with cross-compiles.
9416         Problem reported by Bruno Haible.  Fix missing-$ typo in
9417         'test "gl_cv_ignore_unused_libraries" ...' that prevented
9418         -zignore from being used with Sun's C compiler.
9419
9420 2006-01-12  Simon Josefsson  <jas@extundo.com>
9421
9422         * lib/base64.c: Fix warning, reported by Bruno Haible
9423         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
9424
9425 2006-01-12  Bruno Haible  <bruno@clisp.org>
9426
9427         * modules/ldd: New file.
9428         * build-aux/ldd.sh.in: New file.
9429         * MODULES.html.sh (Support for building libraries and executables): Add
9430         ldd.
9431
9432 2006-01-12  Bruno Haible  <bruno@clisp.org>
9433
9434         * m4/ldd.m4: New file.
9435
9436 2006-01-12  Bruno Haible  <bruno@clisp.org>
9437
9438         * gnulib-tool (func_import, func_create_testdir): Don't go into an
9439         endless loop while replacing $auxdir with build-aux.
9440
9441 2006-01-11  Simon Josefsson  <jas@extundo.com>
9442
9443         * lib/stdint_.h (SIZE_MAX): Add missing (.
9444
9445 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
9446
9447         Sync from coreutils.
9448         * lib/md5.c: Fix commentary typos.
9449         (alignof, UNALIGNED_P): No need for a GCC-specific version.
9450         * lib/md5.h (__attribute__): Remove; unused.
9451         * lib/sha1.c: Fix commentary to match md5 better.
9452         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
9453         so that we don't need to worry about alignment.  All uses changed.
9454         This merges the 2005-10-28 md5 change into sha1.
9455
9456 2006-01-11  Jim Meyering  <jim@meyering.net>
9457
9458         Sync from coreutils.
9459         * lib/md5.c (OP): Fix spacing.
9460
9461 2006-01-11  Bruno Haible  <bruno@clisp.org>
9462
9463         Ensure automatic ordering between gl_LOCK and gl_ARGP.
9464         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
9465         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
9466
9467 2006-01-11  Bruno Haible  <bruno@clisp.org>
9468
9469         Ensure automatic ordering between gl_LOCK and gl_ARGP.
9470         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
9471         the "early" section as well.
9472
9473 2006-01-11  Bruno Haible  <bruno@clisp.org>
9474
9475         Avoid "ar: no archive members specified" error on MacOS X.
9476         * gnulib-tool (func_modules_add_dummy): New function.
9477         (func_import, func_create_testdir): Invoke it.
9478
9479 2006-01-11  Bruno Haible  <bruno@clisp.org>
9480
9481         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
9482         with $auxdir in AC_CONFIG_FILES statements.
9483
9484 2006-01-11  Bruno Haible  <bruno@clisp.org>
9485
9486         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
9487         Initialize also noinst_HEADERS to empty.
9488
9489 2006-01-11  Bruno Haible  <bruno@clisp.org>
9490
9491         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
9492         variables.
9493         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
9494         autoreconf.
9495
9496 2006-01-11  Bruno Haible  <bruno@clisp.org>
9497
9498         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
9499         overridable by the user.
9500         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9501
9502 2006-01-10  Simon Josefsson  <jas@extundo.com>
9503
9504         * modules/sys_socket: New file.
9505
9506 2006-01-10  Simon Josefsson  <jas@extundo.com>
9507
9508         * m4/sys_socket_h.m4: New file.
9509
9510 2006-01-10  Simon Josefsson  <jas@extundo.com>
9511
9512         * lib/socket_.h: New file.
9513
9514 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
9515
9516         * modules/readutmp (Maintainer): Add myself.
9517
9518 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
9519
9520         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
9521         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
9522         People who are still concerned with buggy memcmp implementations
9523         can invoke gl_FUNC_MEMCMP themselves.
9524
9525 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
9526
9527         * lib/regex_internal.h (BITSET_WORD_BITS):
9528         Work around a bug in 64-bit PGC (before version 6.1-2), where the
9529         preprocessor mishandles large unsigned values as if they were signed.
9530         Problem reported by Claudio Fontana in
9531         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
9532
9533 2006-01-10  Jim Meyering  <jim@meyering.net>
9534
9535         Avoid the double-free (first in fts_read, second in fts_close) that
9536         would occur when an `active' directory is made inaccessible (e.g.,
9537         via chmod a-x) during a traversal.
9538         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
9539         before returning.  Reproduce this failure by
9540         mkdir -p a/b; cd a; chmod a-x . b
9541         Reported by Stavros Passas.
9542
9543         Sync from coreutils.
9544         * lib/sha1.c: Tweak grammar in a comment.
9545
9546 2006-01-10  Jim Meyering  <jim@meyering.net>
9547
9548         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
9549         Patch by Joerg Sonnenberger.
9550
9551 2006-01-10  Bruno Haible  <bruno@clisp.org>
9552
9553         * modules/readutmp: Depend on module free.
9554         * modules/strtok_r: Depend on module restrict.
9555
9556 2006-01-10  Bruno Haible  <bruno@clisp.org>
9557
9558         * modules/gettext (configure.ac): Add an invocation of
9559         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
9560
9561 2006-01-10  Bruno Haible  <bruno@clisp.org>
9562
9563         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
9564         Reported by Werner Lemberg <wl@gnu.org>.
9565
9566 2006-01-10  Bruno Haible  <bruno@clisp.org>
9567
9568         * lib/localcharset.c: Update from GNU gettext.
9569
9570 2006-01-10  Bruno Haible  <bruno@clisp.org>
9571
9572         * lib/argp.h (__const): Remove macro. Use const instead.
9573         * lib/argp-fmtstream.h (__const): Likewise.
9574         * lib/glob_.h (__const): Remove macro.
9575         * lib/glob-libc.h: Use const instead of __const.
9576
9577 2006-01-10  Bruno Haible  <bruno@clisp.org>
9578
9579         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
9580         variable.
9581         Needed to avoid an automake error regarding the 'gettext' module.
9582
9583 2006-01-09  Simon Josefsson  <jas@extundo.com>
9584
9585         * modules/inet_ntop (Depends-on): Add restrict.
9586
9587 2006-01-09  Simon Josefsson  <jas@extundo.com>
9588
9589         * modules/gc-rijndael-tests (License): Put under LGPL.
9590
9591         * modules/gc-des-tests (License): Likewise.
9592
9593         * modules/gc-arcfour-tests (License): Likewise.
9594
9595         * modules/gc-arctwo-tests (License): Likewise.
9596
9597         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
9598
9599         * modules/gc-hmac-sha1-tests (Files): Likewise.
9600
9601         * modules/gc-hmac-md5-tests (License): Likewise.
9602
9603         * modules/gc-sha1-tests (License): Likewise.
9604
9605         * modules/gc-md5-tests (License): Likewise.
9606
9607         * modules/gc-md4-tests (License): Likewise.
9608
9609         * modules/gc-md2-tests (License): Likewise.
9610
9611         * modules/gc-tests (License): Likewise.
9612
9613         * modules/des-tests (License): Likewise.
9614
9615         * modules/md4-tests (License): Likewise.
9616
9617         * modules/md2-tests (License): Likewise.
9618
9619 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
9620
9621         Sync from coreutils:
9622
9623         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
9624         * modules/lib-ignore: New file.
9625         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
9626         chdir-safer.m4, lchmod.m4.
9627         * modules/openat: Add mkdirat.c, openat-priv.h.
9628
9629 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
9630
9631         Sync from coreutils.
9632         * m4/lib-ignore.m4: New file.
9633         * m4/lchmod.m4: New file.
9634
9635 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
9636
9637         Sync from coreutils.
9638         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
9639         for write access: POSIX says that must fail.
9640         * lib/fts.c (diropen): Likewise.
9641         * lib/save-cwd.c (save_cwd): Likewise.
9642         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
9643         well, for minor improvements on hosts that lack O_DIRECTORY.
9644         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
9645         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
9646         Fall back on chown if open failed with EACCES.
9647
9648         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
9649         Report an error at compile-time if only a 1-second nominal clock
9650         resolution is found.
9651
9652         * lib/lchmod.h: New file.
9653         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
9654         (make_dir_parents): Use lchown rather than chown, and
9655         lchmod rather than chmod.
9656
9657         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
9658         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
9659         "proc" reported by n0dalus.
9660
9661         * lib/mountlist.c: Include <limits.h>.
9662         (dev_from_mount_options)
9663         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
9664         New function.  It no longer assumes "dev=" has the System V meaning
9665         on Linux (since it doesn't).  It also parses "dev=" more carefully.
9666         (read_file_system_list)
9667         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
9668         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
9669         dev= in that case.
9670
9671         * lib/posixtm.h (PDS_PRE_2000): New macro.
9672         * lib/posixtm.c (year): Arg is now syntax_bits rather than
9673         allow_century.  All usages changed.  Reject dates outside the range
9674         1969-1999 if PDS_PRE_2000 is used.
9675
9676 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
9677
9678         Sync from coreutils.
9679         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
9680         (Time of day items): Mention the possibility of leap seconds.
9681         Problem reported by Dr. David Alan Gilbert.
9682
9683 2006-01-09  Jim Meyering  <jim@meyering.net>
9684
9685         Sync from coreutils.
9686
9687         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
9688
9689         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
9690
9691         * lib/modechange.c (mode_compile): Reject an invalid mode string
9692         that starts with an octal digit.  From Andreas Gruenbacher.
9693
9694         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
9695         and dup to open_safer and dup_safer, respectively.
9696         (openat_permissive): Fix typo in comment.
9697
9698         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
9699         "gettext.h"; either no longer needed or are guaranteed by openat.h.
9700         (_): Remove; no longer needed.
9701         (openat): Renamed from rpl_openat; no need for rpl_openat
9702         since openat.h renames openat for us.
9703         Replace most of the body with a call to openat_permissive,
9704         to avoid duplicate code.
9705         Port to (probably hypothetical) environments were mode_t is
9706         wider than int.
9707         (openat_permissive): Require mode arg, so that we can check
9708         types better.  Put it just after flags.  Change cwd failure
9709         indicator from pointer-to-bool to pointer-to-errno-value.
9710         All callers changed.
9711         Invoke openat_save_fail and/or openat_restore_fail if
9712         cwd_errno is null, so that openat can call us.
9713         (openat_permissive, fdopendir, fstatat, unlinkat):
9714         Simplify errno handling to avoid some duplicate code,
9715         as it's OK to set errno on success.
9716         * lib/openat.h: Revamp code so that function macros depend on
9717         __OPENAT_PREFIX only, not also on AT_FDCWD.
9718         (openat_ro): Remove.  Caller changed to use openat_permissive.
9719         (openat_permissive): Now a macro, if not a function.
9720         (openat_restore_fail, openat_save_fail): Now always functions,
9721         since mkdirat needs them even if __OPENAT_PREFIX is defined.
9722
9723         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
9724         and openat.c.
9725         * lib/mkdirat.c: Include openat-priv.h.
9726         Remove definitions of macros defined therein.
9727         * lib/openat.c: Likewise.
9728
9729         * lib/mkdirat.c (mkdirat): New file and function.
9730         * lib/openat.h (mkdirat): Declare.
9731
9732         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
9733
9734         * lib/openat.h (openat_permissive): Declare.
9735         (openat_ro): Define.
9736
9737         * lib/openat.c (EXPECTED_ERRNO): New macro.
9738         (openat_permissive): New function -- used in remove.c rewrite.
9739         (all functions): Set errno just before returning, only if there
9740         was an actual failure.
9741         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
9742
9743         Emulate openat-family functions using Linux's procfs, if possible.
9744         Idea and some code based on Ulrich Drepper's glibc changes.
9745
9746         * lib/openat.c: (BUILD_PROC_NAME): New macro.
9747         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
9748         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
9749         before falling back on save_cwd and restore_cwd.
9750         (fdopendir, fstatat, unlinkat): Likewise.
9751
9752         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
9753         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
9754
9755         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
9756         as second argument to va_arg.  Otherwise, some versions of gcc
9757         warn that `if this code is reached, the program will abort'.
9758
9759 2006-01-09  Jim Meyering  <jim@meyering.net>
9760
9761         Sync from coreutils.
9762         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
9763         Require openat-priv.h.
9764
9765 2006-01-09  Bruno Haible  <bruno@clisp.org>
9766
9767         * modules/strnlen (Include): Use strnlen.h.
9768
9769 2006-01-09  Bruno Haible  <bruno@clisp.org>
9770
9771         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
9772
9773 2006-01-09  Bruno Haible  <bruno@clisp.org>
9774
9775         * lib/sysexit_.h (EX_OK): New macro.
9776         Suggested by Martin Lambers <marlam@marlam.de>.
9777
9778 2006-01-09  Bruno Haible  <bruno@clisp.org>
9779
9780         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
9781         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
9782
9783 2006-01-09  Bruno Haible  <bruno@clisp.org>
9784
9785         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
9786         numbers.
9787
9788 2006-01-09  Bruno Haible  <bruno@clisp.org>
9789
9790         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
9791         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
9792         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
9793         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
9794
9795 2006-01-09  Bruno Haible  <bruno@clisp.org>
9796
9797         * build-aux/javacomp.sh.in: New file, moved from lib/.
9798         * modules/javacomp-script (Files): Update.
9799         (configure.ac): Add AC_CONFIG_FILES invocation.
9800         (EXTRA_DIST): Remove variable.
9801
9802         * build-aux/javaexec.sh.in: New file, moved from lib/.
9803         * modules/javaexec (Files): Update.
9804         (configure.ac): Add AC_CONFIG_FILES invocation.
9805         (EXTRA_DIST): Remove javaexec.sh.in.
9806
9807         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
9808         * modules/csharpcomp-script (Files): Update.
9809         (configure.ac): Add AC_CONFIG_FILES invocation.
9810         (EXTRA_DIST): Remove variable.
9811
9812         * build-aux/csharpexec.sh.in: New file, moved from lib/.
9813         * modules/csharpexec (Files): Update.
9814         (configure.ac): Add AC_CONFIG_FILES invocation.
9815         (EXTRA_DIST): Remove csharpexec.sh.in.
9816
9817 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
9818
9819         Sync from coreutils.
9820
9821         Add POSIX ACL support
9822         * lib/acl.h (copy_acl, set_acl): Add declarations.
9823         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
9824         systems other than Linux.
9825         (chmod_or_fchmod): New function: use fchmod when possible,
9826         and chmod otherwise.
9827         (file_has_acl): Add a POSIX ACL implementation, with a
9828         Linux-specific subcase.
9829         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
9830         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
9831         acls are unsupported.
9832         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
9833         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
9834         are unsupported.
9835
9836 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
9837
9838         Sync from coreutils.
9839         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
9840
9841 2006-01-07  Bruno Haible  <bruno@clisp.org>
9842
9843         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
9844         gl_EARLY.
9845
9846 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
9847
9848         * lib/strftime.c (tzname): Don't declare if it is already #defined.
9849         Problem reported for Mingw by Mark Junker.
9850
9851 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
9852
9853         * README: Gnulib normally doesn't generate a tarball.
9854
9855 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
9856
9857         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
9858         long int, not int, for nanosecond counts, so that people who are
9859         used to POSIX struct timespec won't be surprised.  Reported by Jim
9860         Meyering.
9861
9862 2005-12-28  Bruno Haible  <bruno@clisp.org>
9863
9864         * build-aux/config.rpath: Update from GNU gettext.
9865
9866 2005-12-16  Jim Meyering  <jim@meyering.net>
9867
9868         * modules/fprintftime: New module.
9869         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
9870
9871 2005-12-16  Jim Meyering  <jim@meyering.net>
9872
9873         * m4/fprintftime.m4: New file.
9874
9875 2005-12-16  Jim Meyering  <jim@meyering.net>
9876
9877         * lib/fprintftime.c, lib/fprintftime.h: New files.
9878
9879 2005-12-15  Simon Josefsson  <jas@extundo.com>
9880
9881         * modules/socklen (configure.ac): Fix M4 macro name, to align with
9882         new m4/socklen.m4.
9883
9884 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
9885
9886         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
9887         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
9888
9889 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
9890
9891         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
9892         * lib/argp-help.c (fill_in_uparams): Check if the constructed
9893         struct uparams is valid. Fall back to the default values if it is
9894         not.
9895
9896 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
9897
9898         * modules/argp (Files): Add argp-pin.c
9899         (Depends-on): dirname
9900         (lib_SOURCES): Add argp-pin.c
9901
9902 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
9903
9904         * m4/argp.m4:  Check if program_invocation_name and
9905         program_invocation_short_name are declared and define appropriate
9906         macros if they are not.
9907
9908 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
9909
9910         * lib/argp-help.c (__argp_base_name): New function
9911         (__argp_short_program_name): Rewrite using __argp_base_name
9912         * lib/argp-namefrob.h: Define program_invocation_name and
9913         program_invocation_short_name if requested
9914         (__argp_base_name): Add prototype
9915         * lib/argp-parse.c (argp_def): Use gettext wrappers
9916         (argp_default_parser): Use __argp_base_name
9917         * lib/argp-pin.c: New file. Defines program_invocation_name and
9918         program_invocation_short_name on systems that lack them.
9919
9920 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
9921
9922         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
9923         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
9924         porting problem reported by Georg Schwarz in
9925         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
9926
9927 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
9928
9929         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
9930         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
9931         porting problem reported by Georg Schwarz in
9932         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
9933
9934 2005-12-05  Bruno Haible  <bruno@clisp.org>
9935
9936         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
9937         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
9938         Reported by Mark Junker <mjscod@gmx.de>.
9939
9940 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
9941
9942         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
9943         Use implementation from Albert Chin, with some
9944         comments/corrections by Stepan Kasal and myself.
9945
9946 2005-12-02  Bruno Haible  <bruno@clisp.org>
9947
9948         * gnulib-tool (func_import): Accept GPLed build tool modules when
9949         --lgpl is given.
9950         * modules/csharpcomp-script: New file.
9951         * modules/csharpcomp: Depend on it.
9952         * modules/javacomp-script: New file.
9953         * modules/javacomp: Depend on it.
9954         Suggested by Simon Josefsson.
9955
9956 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
9957
9958         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
9959         statement, to work around an HP-UX 10.20 compiler bug reported by
9960         Peter O'Gorman.
9961
9962 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
9963
9964         * modules/savedir (Depends-on): Add openat.
9965
9966 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
9967
9968         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
9969         (uintmax_t) [defined uintmax_t]: Do not declare.
9970         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
9971         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
9972         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
9973         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
9974         sake of portability to weird hosts that C allows (though we don't
9975         know of any practical examples).
9976
9977         * lib/savedir.h (fdsavedir): New decl.
9978         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
9979         contains most of the former guts of savedir.
9980         (savedir): Use savedirstream.
9981         Include "openat.h".
9982
9983 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
9984
9985         * modules/obstack (Files): Add m4/ulonglong.m4.
9986         Problem reported by Davide Angelocola.
9987
9988 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
9989
9990         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
9991         coreutils no longer futzes with rounding modes.
9992
9993 2005-11-14  Jim Meyering  <jim@meyering.net>
9994
9995         * lib/mkstemp-safer.c: Include <config.h>, required for possible
9996         replacement of mkstemp.
9997
9998 2005-11-10  Simon Josefsson  <jas@extundo.com>
9999
10000         * lib/readline.c: Remove EOL.
10001
10002 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
10003
10004         * modules/gethrxtime (Depends-on): Add gettime.
10005
10006 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
10007
10008         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
10009         or gettimeofday; no longer needed.
10010
10011 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
10012
10013         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
10014         time business.
10015         (gethrxtime) [! (HAVE_NANOUPTIME
10016         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
10017         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
10018         our own approximation.
10019
10020 2005-11-08  Eric Blake  <ebb9@byu.net>
10021
10022         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
10023
10024 2005-11-08  Eric Blake  <ebb9@byu.net>
10025
10026         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
10027
10028 2005-11-04  Bruno Haible  <bruno@clisp.org>
10029
10030         * gnulib-tool: Implement --update mode.
10031
10032 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
10033
10034         Fix porting problem reported by Theodoros V. Kalamatianos.
10035         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
10036         Don't assume that futimes failing means we must fail.
10037
10038 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
10039
10040         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
10041         variables to suggest the intended function of the PATH_MAX check.
10042
10043 2005-10-30  Kean Johnston  <jkj@sco.com>
10044
10045         Trivial changes to support SCO systems.
10046         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
10047         as PATH_MAX.
10048         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
10049         where __ptr is null when no I/O is pending.
10050
10051 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
10052
10053         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
10054         leave errno alone.  Problem reported by Dmitry V. Levin.
10055
10056 2005-10-28  Simon Josefsson  <jas@extundo.com>
10057
10058         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
10059         Test more.
10060
10061         * tests/test-gc-md2.c, tests/test-md2.c: New files.
10062
10063         * modules/md2, modules/md2-tests: New files.
10064
10065 2005-10-28  Simon Josefsson  <jas@extundo.com>
10066
10067         * m4/inet_ntop.m4: More tests.
10068
10069         * m4/gc-md2.m4, md2.m4: New file.
10070
10071 2005-10-28  Simon Josefsson  <jas@extundo.com>
10072
10073         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
10074         "restrict" keywords, as per POSIX.  Protect the function
10075         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
10076         Don't use K&R prototypes.  Check the sprintf return values.
10077         Re-define EAFNOSUPPORT if not present.  Indent.
10078
10079         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
10080         suggested by Bruno Haible <bruno@clisp.org>.
10081
10082         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
10083
10084         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
10085
10086         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
10087         libgcrypt).
10088
10089         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
10090
10091         * lib/md2.h, lib/md2.c: New files.
10092
10093 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
10094
10095         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
10096         errno alone.  Problem reported by Frederic Jolliton.
10097
10098 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
10099
10100         * modules/verify (License): Change from GPL to LGPL.  This is a
10101         tiny module and there are apparently near-equivalents that are
10102         under the BSD license.
10103
10104 2005-10-24  Simon Josefsson  <jas@extundo.com>
10105
10106         * modules/sha1: Relicense to LGPL.
10107
10108 2005-10-24  Simon Josefsson  <jas@extundo.com>
10109
10110         * lib/md4.h: Shrink buffer size, now that we changed the type.
10111
10112 2005-10-23  Simon Josefsson  <jas@extundo.com>
10113
10114         * gnulib-tool (func_import): Fix --tests-base.
10115
10116 2005-10-22  Simon Josefsson  <jas@extundo.com>
10117
10118         * modules/arcfour (Depends-on): Need stdint.
10119
10120 2005-10-22  Simon Josefsson  <jas@extundo.com>
10121
10122         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
10123         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
10124
10125 2005-10-22  Simon Josefsson  <jas@extundo.com>
10126
10127         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
10128         suggested by Bruno Haible <bruno@clisp.org>.
10129
10130 2005-10-22  Simon Josefsson  <jas@extundo.com>
10131
10132         * lib/crc.h: Include stddef.h, for size_t.
10133
10134 2005-10-22  Simon Josefsson  <jas@extundo.com>
10135
10136         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
10137         arcfour_context struct (simplify test vector testing in GNU
10138         Shishi).
10139
10140 2005-10-21  Simon Josefsson  <jas@extundo.com>
10141
10142         * modules/des, modules/des-tests: New files.
10143
10144         * modules/gc-des, modules/gc-des-tests: New files.
10145
10146         * tests/test-des.c, tests/test-gc-des.c: New file.
10147
10148 2005-10-21  Simon Josefsson  <jas@extundo.com>
10149
10150         * modules/arctwo, modules/arctwo-tests: New files.
10151
10152         * tests/test-arctwo.c: New file.
10153
10154         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
10155
10156         * tests/test-gc-arctwo.c: New file.
10157
10158 2005-10-21  Simon Josefsson  <jas@extundo.com>
10159
10160         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
10161         Bruno Haible <bruno@clisp.org>.
10162
10163         * m4/gc-des.m4: New file.
10164
10165 2005-10-21  Simon Josefsson  <jas@extundo.com>
10166
10167         * m4/arctwo.m4: New file.
10168
10169         * m4/gc-arctwo.m4: New file.
10170
10171 2005-10-21  Simon Josefsson  <jas@extundo.com>
10172
10173         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
10174         block.
10175
10176 2005-10-21  Simon Josefsson  <jas@extundo.com>
10177
10178         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
10179         <bruno@clisp.org>.
10180
10181         * lib/hmac-sha1.c (hmac_sha1): Likewise.
10182
10183         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
10184         Bruno Haible <bruno@clisp.org>.
10185
10186         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
10187         <bruno@clisp.org>.
10188
10189 2005-10-21  Simon Josefsson  <jas@extundo.com>
10190
10191         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
10192
10193 2005-10-21  Simon Josefsson  <jas@extundo.com>
10194
10195         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
10196
10197 2005-10-21  Simon Josefsson  <jas@extundo.com>
10198
10199         * lib/des.h, lib/des.c: New files.
10200
10201         * lib/gc-gnulib.c: Support DES.c
10202
10203 2005-10-21  Simon Josefsson  <jas@extundo.com>
10204
10205         * lib/arctwo.h, lib/arctwo.c: New files.
10206
10207         * lib/gc-gnulib.c: Support ARCTWO.
10208
10209 2005-10-21  Simon Josefsson  <jas@extundo.com>
10210
10211         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
10212         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10213
10214 2005-10-21  Simon Josefsson  <jas@extundo.com>
10215
10216         * gnulib-tool (func_import, func_create_testdir): Define automake
10217         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
10218         Makefile.am snippet),
10219         suggested by Bruno Haible <bruno@clisp.org>.
10220
10221         * modules/gc (Makefile.am): Use it.
10222
10223 2005-10-21  Bruno Haible  <bruno@clisp.org>
10224
10225         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
10226         patch.
10227
10228 2005-10-19  Simon Josefsson  <jas@extundo.com>
10229
10230         * tests/test-gc-rijndael.c: New file.
10231
10232         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
10233
10234 2005-10-19  Simon Josefsson  <jas@extundo.com>
10235
10236         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
10237         interface too.
10238
10239 2005-10-19  Simon Josefsson  <jas@extundo.com>
10240
10241         * tests/test-gc-arcfour.c: New file.
10242
10243         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
10244
10245 2005-10-19  Simon Josefsson  <jas@extundo.com>
10246
10247         * modules/gc-md4, modules/gc-md4-tests: New file.
10248
10249         * tests/test-gc-md4.c: New file.
10250
10251 2005-10-19  Simon Josefsson  <jas@extundo.com>
10252
10253         * m4/gc-md4.m4: New file.
10254
10255 2005-10-19  Simon Josefsson  <jas@extundo.com>
10256
10257         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
10258         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
10259         <kasal@ucw.cz>.
10260
10261 2005-10-19  Simon Josefsson  <jas@extundo.com>
10262
10263         * m4/gc-arcfour.m4: New file.
10264
10265         * m4/gc-rijndael.m4: New file.
10266
10267 2005-10-19  Simon Josefsson  <jas@extundo.com>
10268
10269         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
10270
10271 2005-10-19  Simon Josefsson  <jas@extundo.com>
10272
10273         * lib/gc-gnulib.c: Support ARCFOUR.
10274
10275 2005-10-19  Simon Josefsson  <jas@extundo.com>
10276
10277         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
10278         support.
10279
10280         * lib/gc.h: Add ECB enum type.
10281
10282         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
10283
10284 2005-10-18  Simon Josefsson  <jas@extundo.com>
10285
10286         * tests/test-md5.c: New file.
10287
10288         * modules/md5-tests: New file.
10289
10290 2005-10-18  Simon Josefsson  <jas@extundo.com>
10291
10292         * tests/test-md4.c: New file.
10293
10294         * modules/md4, modules/md4-tests: New files.
10295
10296 2005-10-18  Simon Josefsson  <jas@extundo.com>
10297
10298         * m4/md4.m4: New file.
10299
10300 2005-10-18  Simon Josefsson  <jas@extundo.com>
10301
10302         * lib/md4.h, lib/md4.c: New files, based on md5.?.
10303
10304 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
10305
10306         * gnulib-tool (func_create_testdir): Omit the second check whether
10307         BUILT_SOURCES in nonempty.
10308
10309 2005-10-17  Simon Josefsson  <jas@extundo.com>
10310
10311         * tests/test-rijndael.c: New file.
10312
10313 2005-10-17  Simon Josefsson  <jas@extundo.com>
10314
10315         * modules/sha1: Depend on stdint instead of md5.
10316
10317         * modules/md5: Depend on stdint, remove uint32_t.
10318
10319 2005-10-17  Simon Josefsson  <jas@extundo.com>
10320
10321         * modules/gc-sha1-tests: New file.
10322
10323         * tests/test-gc-sha1.c: New file.
10324
10325 2005-10-17  Simon Josefsson  <jas@extundo.com>
10326
10327         * m4/md5.m4: Remove call to uint32_t.m4.
10328
10329 2005-10-17  Simon Josefsson  <jas@extundo.com>
10330
10331         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
10332
10333         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
10334         md5.h.
10335
10336         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
10337
10338         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
10339
10340 2005-10-17  Simon Josefsson  <jas@extundo.com>
10341
10342         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
10343
10344 2005-10-17  Simon Josefsson  <jas@extundo.com>
10345
10346         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
10347
10348 2005-10-17  Simon Josefsson  <jas@extundo.com>
10349
10350         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
10351
10352         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
10353
10354 2005-10-17  Bruno Haible  <bruno@clisp.org>
10355
10356         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
10357         that it can also be used in a test.
10358
10359 2005-10-16  Bruno Haible  <bruno@clisp.org>
10360
10361         * gnulib-tool (func_emit_tests_Makefile_am): Also define
10362         TESTS_ENVIRONMENT, so that individual tests can augment it.
10363
10364         * gnulib-tool (func_create_testdir): Use an intermediate target for
10365         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
10366         macros, like $(ALLOCA_H), which cannot be passed through the command
10367         line.
10368
10369 2005-10-15  Simon Josefsson  <jas@extundo.com>
10370
10371         * modules/rijndael-tests: New file.
10372
10373         * modules/rijndael: New file.
10374
10375 2005-10-15  Simon Josefsson  <jas@extundo.com>
10376
10377         * m4/rijndael.m4: New file.
10378
10379 2005-10-15  Simon Josefsson  <jas@extundo.com>
10380
10381         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
10382
10383         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
10384
10385 2005-10-14  Simon Josefsson  <jas@extundo.com>
10386
10387         * tests/test-arcfour.c: New file.
10388
10389         * modules/arcfour, modules/arcfour-tests: New files.
10390
10391 2005-10-14  Simon Josefsson  <jas@extundo.com>
10392
10393         * m4/arcfour.m4: New file.
10394
10395 2005-10-14  Simon Josefsson  <jas@extundo.com>
10396
10397         * lib/arcfour.h, lib/arcfour.c: New files.
10398
10399 2005-10-14  Roland McGrath  <roland@redhat.com>
10400
10401         Import from libc.  [BZ #1331]
10402         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
10403         macro argument.
10404         Reported by Matej Vela <vela@debian.org>.
10405
10406 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
10407
10408         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
10409         include <wchar.h>; no longer needed.
10410
10411 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
10412
10413         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
10414
10415 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
10416         and  Ulrich Drepper  <drepper@redhat.com>
10417
10418         Import from libc.
10419         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
10420         instead of inline stream orientation test and two separate
10421         function calls.  Pay no attention to USE_IN_LIBIO.
10422
10423 2005-10-13  Simon Josefsson  <jas@extundo.com>
10424
10425         * modules/gc-hmac-md5-tests: New file.
10426
10427         * tests/test-gc-hmac-sha1.c: New file.
10428
10429         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
10430
10431         * modules/gc-hmac-md5-tests: New file.
10432
10433         * tests/test-gc-md5.c: New file.
10434
10435         * modules/gc-md5-tests: New file.
10436
10437 2005-10-13  Simon Josefsson  <jas@extundo.com>
10438
10439         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
10440         Move memory allocation outside of loop.
10441
10442 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
10443
10444         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
10445         intermediate directory is in a read-only file system.  Problem
10446         reported by Eric Blake.
10447
10448 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
10449
10450         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
10451
10452 2005-10-12  Simon Josefsson  <jas@extundo.com>
10453
10454         * tests/test-hmac-sha1.c: New file.
10455
10456         * modules/hmac-sha1-tests: New file.
10457
10458         * modules/hmac-sha1: New file.
10459
10460 2005-10-12  Simon Josefsson  <jas@extundo.com>
10461
10462         * modules/gc-sha1: New file.
10463
10464 2005-10-12  Simon Josefsson  <jas@extundo.com>
10465
10466         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
10467
10468         * tests/test-gc-pbkdf2-sha1.c: New file.
10469
10470 2005-10-12  Simon Josefsson  <jas@extundo.com>
10471
10472         * modules/gc-md5, modules/gc-hmac-md5: New files.
10473
10474         * modules/gc (Files): Remove md5, memxor and hmac files.
10475
10476 2005-10-12  Simon Josefsson  <jas@extundo.com>
10477
10478         * m4/gc-pbkdf2-sha1.m4: New file.
10479
10480         * m4/gc-hmac-sha1.m4: New file.
10481
10482         * m4/gc-sha1: New file.
10483
10484         * m4/hmac-sha1.m4: New file.
10485
10486 2005-10-12  Simon Josefsson  <jas@extundo.com>
10487
10488         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
10489
10490         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
10491
10492 2005-10-12  Simon Josefsson  <jas@extundo.com>
10493
10494         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
10495         suggested by Bruno Haible <bruno@clisp.org>.
10496
10497 2005-10-12  Simon Josefsson  <jas@extundo.com>
10498
10499         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
10500
10501 2005-10-12  Simon Josefsson  <jas@extundo.com>
10502
10503         * lib/gc-pbkdf2-sha1.c: New file.
10504
10505         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
10506
10507 2005-10-12  Simon Josefsson  <jas@extundo.com>
10508
10509         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
10510
10511         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
10512
10513 2005-10-12  Simon Josefsson  <jas@extundo.com>
10514
10515         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
10516         GC_USE_HMAC_MD5, respectively.
10517
10518         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
10519         (gc_md5): Fix typo.
10520
10521         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
10522
10523         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
10524
10525         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
10526
10527 2005-10-12  Bruno Haible  <bruno@clisp.org>
10528
10529         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
10530         Reported by Stepan Kasal <kasal@ucw.cz>.
10531
10532 2005-10-11  Simon Josefsson  <jas@extundo.com>
10533
10534         * tests/test-crc.c: New file.
10535
10536         * modules/crc, modules/crc-tests: New files.
10537
10538 2005-10-11  Simon Josefsson  <jas@extundo.com>
10539
10540         * m4/crc.m4: New file.
10541
10542 2005-10-11  Simon Josefsson  <jas@extundo.com>
10543
10544         * lib/gc.h: Add gc_hash and gc_hash_buffer.
10545
10546         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
10547
10548         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
10549
10550 2005-10-11  Simon Josefsson  <jas@extundo.com>
10551
10552         * lib/crc.h, lib/crc.c: New files.
10553
10554         * lib/gc.h (gc_hash_buffer): Add doc.
10555
10556 2005-10-11  Bruno Haible  <bruno@clisp.org>
10557
10558         * modules/c-strcasestr: New file.
10559         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
10560
10561 2005-10-11  Bruno Haible  <bruno@clisp.org>
10562
10563         * modules/c-strcase: New file.
10564         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
10565
10566 2005-10-11  Bruno Haible  <bruno@clisp.org>
10567
10568         * lib/strcasecmp.c: Include limits.h.
10569         (strcasecmp): Avoid integer overflow on exotic platforms.
10570         * lib/strncasecmp.c: Include limits.h.
10571         (strncasecmp): Avoid integer overflow on exotic platforms.
10572         Reported by Paul Eggert.
10573
10574 2005-10-11  Bruno Haible  <bruno@clisp.org>
10575
10576         * lib/c-strcasestr.h: New file, from GNU gettext.
10577         * lib/c-strcasestr.c: New file, from GNU gettext.
10578
10579 2005-10-11  Bruno Haible  <bruno@clisp.org>
10580
10581         * lib/c-strcase.h: New file, from GNU gettext.
10582         * lib/c-strcasecmp.c: New file, from GNU gettext.
10583         * lib/c-strncasecmp.c: New file, from GNU gettext.
10584
10585 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
10586
10587         * modules/mempcpy (License): GPL -> LGPL.
10588         * modules/strchrnul (License): Likewise.
10589         * modules/sysexits (License): Likewise.
10590
10591 2005-10-08  Simon Josefsson  <jas@extundo.com>
10592
10593         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
10594
10595 2005-10-07  Simon Josefsson  <jas@extundo.com>
10596
10597         * m4/memxor.m4: Remove gl_C_RESTRICT call.
10598
10599 2005-10-06  Simon Josefsson  <jas@extundo.com>
10600
10601         * tests/test-hmac-md5.c: New file.
10602
10603         * modules/hmac-md5-tests: New file.
10604
10605         * modules/hmac-md5: New file.
10606
10607 2005-10-06  Simon Josefsson  <jas@extundo.com>
10608
10609         * m4/hmac-md5.m4: New file.
10610
10611         * m4/memxor.m4: Require gl_C_RESTRICT.
10612
10613 2005-10-06  Simon Josefsson  <jas@extundo.com>
10614
10615         * lib/memxor.c (memxor): Avoid casts and warnings.
10616
10617 2005-10-06  Simon Josefsson  <jas@extundo.com>
10618
10619         * lib/hmac-md5.c: New file.
10620
10621         * lib/hmac.h: New file.
10622
10623 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
10624
10625         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
10626         promotes to int, not unsigned int, to catch the AIX 5.3
10627         compiler bug.
10628
10629 2005-10-05  Simon Josefsson  <jas@extundo.com>
10630
10631         * modules/memxor: New file.
10632
10633         * modules/iconv (Files): Move config.rpath to havelib, it is used
10634         there.
10635
10636         * modules/havelib (Files): Add config.rpath.
10637
10638 2005-10-05  Simon Josefsson  <jas@extundo.com>
10639
10640         * m4/memxor.m4: New file.
10641
10642 2005-10-05  Simon Josefsson  <jas@extundo.com>
10643
10644         * lib/memxor.c (memxor): Fix compiler error.
10645
10646         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
10647         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
10648
10649         * lib/memxor.h, lib/memxor.c: New files.
10650
10651         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
10652         we assume all systems have it, suggested by Jim Meyering
10653         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
10654         any systems lack sys/socket.h; mingw32 is known to lack it, but we
10655         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
10656         same reasons.
10657
10658 2005-10-05  Simon Josefsson  <jas@extundo.com>
10659
10660         * config/srclist.txt: Add glibc bug 1423 for md5.h.
10661
10662 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
10663
10664         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
10665         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
10666         needed, since the source code now assumes these .h files.
10667
10668 2005-10-05  Derek Price  <derek@ximbiot.com>
10669
10670         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
10671
10672 2005-10-05  Bruno Haible  <bruno@clisp.org>
10673
10674         * modules/stdint (License): Change to LGPL.
10675
10676 2005-10-04  Simon Josefsson  <jas@extundo.com>
10677
10678         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
10679         D. Baushke" <mdb@gnu.org>.
10680
10681 2005-10-04  Bruno Haible  <bruno@clisp.org>
10682
10683         * lib/verify.h (verify_true): Provide alternative definition for C++.
10684
10685 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
10686
10687         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
10688         (SSIZE_MAX): New macro, if not already defined.
10689         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
10690         than 2 GiB.
10691
10692 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
10693
10694         Sync from coreutils.
10695         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
10696         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
10697         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
10698         ULLONG_MAX doesn't work with 2.7.2.1.
10699
10700 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
10701
10702         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
10703         From Ben Pfaff.
10704
10705         * modules/exclude (Depends-on): Depend on verify.
10706         * modules/strtoimax (Depends-on): Likewise.
10707         * modules/utimecmp (Depends-on): Likewise.
10708
10709 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
10710
10711         * lib/exclude.c: Include verify.h.
10712         (verify): Remove.  All callers changed to use verify.h's version.
10713         * lib/strtoimax.c: Likewise.
10714         * lib/utimecmp.c: Likewis.e
10715
10716         Sync from coreutils.
10717         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
10718         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
10719         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
10720         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
10721         bother returning ENOSYS if settimeofday or stime fails; just let
10722         them return whatever errno they want to return.
10723         * lib/utimens.c: Include unistd.h, for dup2.
10724         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
10725         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
10726
10727 2005-10-02  Jim Meyering  <jim@meyering.net>
10728
10729         Sync from coreutils.
10730         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
10731         from glibc-2.2.5 that fails for read-only files.
10732
10733 2005-10-02  Jim Meyering  <jim@meyering.net>
10734
10735         Sync from coreutils.
10736         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
10737         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
10738         `#if HAVE_CONFIG_H'.
10739         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
10740         Remove AT_FDCWD test.
10741         Do not consume the fd unless successful.
10742         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
10743         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
10744         block, so that we don't even try to compile it if settimeofday is
10745         available.  This works around a compilation failure on OSF1 V5.1,
10746         due to stime requiring a `long int*' while tv_sec is `int'.
10747
10748 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
10749
10750         Sync from coreutils.
10751         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
10752         against `yes', rather than just testing for nonempty.
10753
10754 2005-10-01  Simon Josefsson  <jas@extundo.com>
10755
10756         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
10757         and Darwin.
10758
10759         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
10760         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
10761         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
10762         freeaddrinfo and gai_strerror are declared by the POSIX headers.
10763         Check if struct addrinfo is declared.
10764
10765 2005-10-01  Simon Josefsson  <jas@extundo.com>
10766
10767         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
10768         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
10769         AI_* and EAI_* definitions.  Protect function declarations.
10770
10771 2005-10-01  Jim Meyering  <jim@meyering.net>
10772
10773         Sync from coreutils.
10774
10775         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
10776         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
10777         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
10778         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
10779         in the inet and nsl libraries.  Required on Solaris 5.7.
10780
10781 2005-10-01  Jim Meyering  <jim@meyering.net>
10782
10783         Sync from coreutils.
10784         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
10785         in the inet and nsl libraries.  Required on Solaris 5.7.
10786
10787 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
10788
10789         * lib/getdelim.c (getdelim): Remove unused variables.
10790
10791 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
10792
10793         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
10794         so that the code works even with ancient cpp.  Portability problem
10795         with GCC 2.7.2.1 reported by Thomas M.Ott.
10796
10797 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
10798
10799         * modules/regex (Depends-on): Add strcase.
10800
10801         * modules/gethostname (Licence): Change from GPL to LGPL, since
10802         gethostname.c is a trivial implementation of a standard library
10803         function.
10804         * modules/poll (License): Change from GPL to LGPL, since it's
10805         derived from LGPL code.
10806
10807 2005-09-27  Jim Meyering  <jim@meyering.net>
10808
10809         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
10810         HAVE_CONFIG_H.
10811
10812         * lib/intprops.h (signed_type_or_expr__): Define.
10813         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
10814         for unsigned types.
10815
10816 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
10817
10818         * lib/verify.h (verify_expr): Remove, replacing with:
10819         (verify_true): New macro that returns true instead of void.
10820         (verify_type__): Remove.
10821         (verify): Use verify_true rather than verify_type__.
10822
10823 2005-09-26  Bruno Haible  <bruno@clisp.org>
10824
10825         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
10826         is necessary.
10827         (lib_SOURCES): Remove mbchar.c.
10828         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
10829         (Files): Add m4/mbrtowc.m4.
10830         * modules/mbiter: Likewise.
10831         * modules/mbuiter: Likewise.
10832
10833 2005-09-26  Bruno Haible  <bruno@clisp.org>
10834
10835         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
10836         compile mbchar.c if they are not both present.
10837         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
10838         * m4/mbiter.m4 (gl_MBITER): Likewise.
10839         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
10840         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
10841         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
10842
10843 2005-09-25  Jim Meyering  <jim@meyering.net>
10844
10845         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
10846         also uses socklen_t.
10847
10848 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
10849
10850         * lib/utimens.c (ENOSYS): Define if not already defined.
10851         (futimens): Support having a null PATH if the file descriptor
10852         is nonnegative.
10853
10854         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
10855         Remove.
10856         (__attribute): Define to empty unless GCC 3.1 or later.
10857         This works around a core dump on OpenBSD 3.4, which has GCC
10858         2.95.3, which dumps core when given __attribute__(()).  It also
10859         simplifies other tests, since we really don't want to bother with
10860         worrying about which ancient version of GCC supported what.
10861         Original problem reported by Yoann Vandoorselaere, with part of
10862         the fix suggested by Derek Price.
10863
10864 2005-09-24  Jim Meyering  <jim@meyering.net>
10865
10866         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
10867         so we can once again use a positive bitfield width of 1 -- now we
10868         don't have to explain why we were using a bitfield width of 2.
10869
10870 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
10871
10872         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
10873         and similarly for the other external symbols.  Problem reported
10874         by James Gallager.
10875
10876         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
10877         bug reported by Jim Meyering.
10878
10879         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
10880         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
10881         not needed, since socklen is a prerequisite module.
10882
10883 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
10884
10885         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
10886         Problem reported by Eric Blake.
10887         (getaddrinfo): Initialize se so that it's not garbage.
10888         Redo internal storage allocation so that it doesn't make unportable
10889         assumptions about alignment.
10890         Fix a memory leak.
10891
10892         * lib/utimens.c (futimens): Use futimesat if available.
10893         Prefer it to futimes since it doesn't have the futimes bug.
10894
10895         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
10896         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
10897         Instead, declare a function that returns a pointer to an array,
10898         and use verify_type__ to declare the size of the array.
10899         Problem and germ of a solution reported by Bruno Haible.
10900         (verify_type__): Use 2, not 1, for bitfield size, to avoid
10901         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
10902
10903 2005-09-23  Jim Meyering  <jim@meyering.net>
10904
10905         Sync from coreutils.
10906         Correct build failure (socklen_t not defined) on at least
10907         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
10908         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
10909
10910 2005-09-23  Jim Meyering  <jim@meyering.net>
10911
10912         * modules/getaddrinfo (Depends-on): Add socklen.
10913
10914 2005-09-23  Bruno Haible  <bruno@clisp.org>
10915
10916         * tests/test-verify.c: New file.
10917
10918 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
10919
10920         Sync from coreutils.
10921
10922         * modules/argmatch (Depends-on): Add verify.
10923         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
10924         unistd-safer.
10925         * modules/save-cwd (Depends-on): Likewise.
10926
10927         * modules/openat (Files): Add lib/openat-die.c.
10928         (Depends-on): Remove error, exitfail.
10929         Add dirname.
10930
10931         * modules/verify: New file.
10932         * MODULES.html.sh (Diagnostics <assert.h>): New section,
10933         with "verify" module.
10934
10935 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
10936
10937         Sync from coreutils.
10938
10939         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
10940         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
10941         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
10942         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
10943         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
10944         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
10945         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
10946         Don't bother checking for string.h, stdlib.h, unistd.h.
10947         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
10948         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
10949         module's job.
10950         * m4/jm-macros.m4 (gl_MACROS): Likewise.
10951         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
10952
10953         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
10954         (gl_GETDATE): Use it.
10955
10956         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
10957
10958 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
10959
10960         Sync from coreutils.
10961
10962         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
10963         stat-time.h.
10964         * lib/argmatch.h: Include verify.h
10965         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
10966         (ARGMATCH_ASSERT): Remove; unused.
10967         * lib/canonicalize.c: Assume STDC_HEADERS.
10968         * lib/exclude.c: Include "strcase.h".
10969         * lib/regex_internal.h [!defined _LIBC]: Likewise.
10970         * lib/getusershell.c: Include stdio--.h rather than stdio.h
10971         and stdio-safer.h.
10972         (getusershell): Call fopen, not fopen_safer.
10973         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
10974         Do not include unistd-safer.h.
10975         (save_cwd): Don't call fd_safer; no longer needed
10976         now that we include fcntl--.h.
10977
10978         * lib/getdate.y (relative_time): New type.
10979         (RELATIVE_TIME_0): New constant.
10980         (parser_control): Use relative_time instead of doing it ourselves.
10981         (%union): Add new relative_time rel member.
10982         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
10983         Now typeless.
10984         (relunit, relunit_snumber): Now of type rel.
10985         (zone, rel, relunit, get_date): Adjust to above changes.
10986
10987         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
10988         Do not include unistd-safer.h.
10989         (getloadavg): Don't call fd_safer; no longer needed
10990         now that we include fcntl--.h.
10991
10992         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
10993         (make_dir_parents): Treat ENOSYS like EEXIST.
10994
10995         Improve quality of diagnostics on restore_cwd failure.
10996         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
10997         (make_dir_parents): Last arg is now int * (for errno), not bool *.
10998         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
10999         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
11000         each time through the loop.  Do not diagnose restore_cwd failure;
11001         that is the caller's job (and perhaps the caller does not care).
11002
11003         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
11004         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
11005         If the file already exists but is not a directory, don't bother
11006         to try to make its parents.
11007         Close potential file descriptor leak if we can't chdir("/") (!).
11008         Don't always return true if chdir($PWD) fails; return true only
11009         if the requested action was done successfully (except for the
11010         chdir($PWD)).
11011         Don't log final directory unless we actually made it.
11012         Refactor to avoid duplicate code to fix up permissions.
11013         Don't attempt to fix up parent permissions if chdir($PWD) fails.
11014
11015         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
11016         to make it a bit faster and (I hope) clearer.
11017         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
11018         Fix bug in formats like %2N.
11019
11020         * lib/verify.h: New file.
11021
11022 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
11023
11024         Sync from coreutils.
11025         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
11026
11027 2005-09-22  Jim Meyering  <jim@meyering.net>
11028
11029         Sync from coreutils.
11030
11031         * m4/lstat.m4 (gl_FUNC_LSTAT):
11032         Use AC_LIBSOURCES to require lstat.c and lstat.h.
11033         Remove obsolete comment.
11034         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
11035         * m4/xstrtod.m4: Likewise.
11036
11037         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
11038
11039 2005-09-22  Jim Meyering  <jim@meyering.net>
11040
11041         Sync from coreutils.
11042
11043         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
11044
11045         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
11046         the .tm_year member, since otherwise gcc-4.0 would now warn about
11047         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
11048
11049         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
11050         order to avoid an unsuppressible warning from gcc on 64-bit systems.
11051
11052         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
11053         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
11054         when run in a time zone for which daylight savings time is in effect
11055         for the starting date.
11056
11057         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
11058         stop us from restricting permissions of just-created absolute-named
11059         directories.
11060         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
11061         to restore initial working directory.
11062         * lib/mkdir-p.c (make_dir_parents): New parameter:
11063         different_working_dir, to tell caller if/when we change the working
11064         directory and are unable to return to the initial one.
11065         * lib/mkdir-p.h (make_dir_parents): Update prototype.
11066         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
11067         `return false'.  This fixes a bug introduced on 2004-07-30.
11068
11069         * lib/openat.c (fdopendir): Be sure to close the supplied
11070         file descriptor before returning.  This makes our replacement
11071         implementation a little closer to Solaris's, where fdopendir
11072         ties the file descriptor to the returned DIR* pointer.
11073         * lib/openat.c (unlinkat): New function.
11074         * lib/openat.h (unlinkat): Add prototype.
11075         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
11076         (openat_restore_fail): Rename from openat_restore_die.
11077         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
11078
11079         Provide an alternative to exiting immediately upon save_cwd or
11080         restore_cwd failure.  Now, an application can arrange e.g.,
11081         to perform a longjump in that case.
11082         * lib/openat.c: Include dirname.h.
11083         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
11084         (rpl_openat, fdopendir, fstatat): Call openat_save_die
11085         and openat_restore_die rather than calling error directly.
11086         Don't include "error.h" or "exitfail.h"; they're no longer needed.
11087
11088         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
11089         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
11090         define.
11091
11092         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
11093         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
11094                             int utc, int nanoseconds);
11095         Background:
11096         date should not have to allocate a megabyte of virtual memory to
11097         handle a format argument like +%1048575T.  When implemented with
11098         strftime, it must allocate such a buffer, use strftime to fill it
11099         in, print it, then free it.
11100         With fprintftime, it simply prints everything and exits.
11101         With no need for memory allocation, that's one fewer way to fail.
11102         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
11103         optional field width, not before, so we accept %9:z, not %:9z.
11104         (my_strftime): Be sure to use L_('x') for literals.
11105
11106         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
11107         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
11108         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
11109         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
11110         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
11111         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
11112         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
11113         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
11114         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
11115         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
11116         * lib/xgethostname.c, lib/xreadlink.c:
11117         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
11118
11119         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
11120         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
11121         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
11122         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
11123         and don't include <sys/file.h>).
11124
11125 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
11126
11127         Sync from coreutils.
11128
11129         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
11130         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
11131         [!LDAV_DONE]: Avoid unused variable warning.
11132
11133 2005-09-21  Bruno Haible  <bruno@clisp.org>
11134
11135         * lib/unicodeio.h (unicode_to_mb): New declaration.
11136
11137 2005-09-20  Derek Price  <derek@ximbiot.com>
11138
11139         * lib/getaddrinfo.c: Don't include <netdb.h> included from
11140         getaddrinfo.h.
11141
11142 2005-09-20  Bruno Haible  <bruno@clisp.org>
11143
11144         * gnulib-tool: Remove trailing slashes from the values specified for
11145         --source-base, --m4-base, --tests-base, --aux-dir.
11146         Suggested by Simon Josefsson <jas@extundo.com>.
11147
11148 2005-09-20  Bruno Haible  <bruno@clisp.org>
11149
11150         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
11151         func_modules_to_filelist, func_import, func_create_testdir): Make all
11152         sorting results locale-independent, so that gnulib-cache.m4 doesn't
11153         change when gnulib-tool is invoked in a different locale.
11154
11155 2005-09-19  Simon Josefsson  <jas@extundo.com>
11156
11157         * m4/socklen.m4: Fix typo.
11158
11159 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11160
11161         Use a consistent style for including <config.h>.
11162         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
11163         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
11164         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
11165         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
11166         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
11167         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
11168         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
11169         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
11170         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
11171         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
11172         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
11173         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
11174         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
11175         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
11176         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
11177         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
11178         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
11179         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
11180         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
11181         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
11182         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
11183         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
11184         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
11185         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
11186         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
11187         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
11188         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
11189         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
11190         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
11191         lib/xstrtoumax.c, lib/yesno.c:
11192         Standardize inclusion of config.h.
11193         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
11194         lib/inttostr.h:  Removed inclusion of config.h from header files.
11195         * lib/inttostr.c:  Adjusted in-tree users.
11196         * lib/timespec.h: Remove superfluous warning to include config.h.
11197         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
11198         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
11199         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
11200         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
11201         config.h with HAVE_CONFIG_H.
11202
11203 2005-09-19  Jim Meyering  <jim@meyering.net>
11204
11205         * modules/pathmax (License): Change to LGPL.
11206
11207 2005-09-19  Derek Price  <derek@ximbiot.com>
11208
11209         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
11210
11211 2005-09-19  Bruno Haible  <bruno@clisp.org>
11212
11213         * gnulib-tool (import): Provide default for --tests-base.
11214
11215 2005-09-19  Bruno Haible  <bruno@clisp.org>
11216
11217         * doc/quote.texi: New file, extracted from gnulib.texi.
11218         * doc/ctime.texi: New file, extracted from gnulib.texi.
11219         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
11220         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
11221         * doc/gnulib.texi: Include them.
11222
11223 2005-09-18  Bruno Haible  <bruno@clisp.org>
11224
11225         Portability fix.
11226         * gnulib-tool (func_readlink): New function.
11227         (func_ln_if_changed): Use it.
11228
11229 2005-09-18  Bruno Haible  <bruno@clisp.org>
11230
11231         * gnulib-tool: Support --with-tests also with --import.
11232         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
11233         (func_import): Use variables $testsbase and $inctests. Emit a
11234         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
11235         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
11236         SUBDIRS += $testsdir.
11237         (func_create_testdir): Update.
11238
11239 2005-09-18  Bruno Haible  <bruno@clisp.org>
11240
11241         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
11242         instead of $dry_run.
11243         (func_cp_if_changed, func_mv_if_changed): Remove functions.
11244         (func_ln_if_changed): Don't handle dry-run here.
11245         (func_import): In dry-run mode, detect more precisely which actions
11246         would be performed, and don't use "...ing" verbs.
11247
11248 2005-09-18  Bruno Haible  <bruno@clisp.org>
11249
11250         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
11251         (func_import): Use join on two temporary files instead of three nested
11252         loops, in order to determine which files are new or old.
11253
11254 2005-09-18  Bruno Haible  <bruno@clisp.org>
11255
11256         * gnulib-tool (func_import): Comment out code that spits out the
11257         new files with --dry-run.
11258
11259 2005-09-18  Bruno Haible  <bruno@clisp.org>
11260
11261         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
11262
11263 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
11264
11265         * lib/stat-time.h: New file.
11266         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
11267         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
11268         in a different way.
11269         (timespec_cmp): New function.
11270         * lib/utimecmp.c: Include stat-time.h.
11271         (SYSCALL_RESOLUTION): Depend on whether various struct stat
11272         members exist, not on the obsolescent ST_MTIM_NSEC.
11273         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
11274
11275 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
11276
11277         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
11278
11279 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
11280
11281         * MODULES.html.sh (File system functions): Add stat-time.
11282         * modules/stat-time: New file.
11283         * modules/timespec (Files): Remove m4/st_mtim.m4; this
11284         is now done in a different way, by the stat-time module.
11285         * modules/utimecmp (Depends-on): Add stat-time.
11286
11287 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
11288
11289         * m4/st_mtim.m4: Remove.  Superseded by...
11290         * m4/stat-time.m4: New file.
11291         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
11292         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
11293
11294 2005-09-15  Derek Price  <derek@ximbiot.com>
11295
11296         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
11297
11298 2005-09-15  Derek Price  <derek@ximbiot.com>
11299
11300         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
11301         * lib/regex_internal.c: Ditto, using this...
11302         (__GNUC_PREREQ): ...new macro.
11303         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
11304         using...
11305         (__GNUC_PREREQ): ...this new macro.
11306
11307         * lib/strstr.h: Include string.h. Define strstr as a macro here.
11308
11309 2005-09-15  Derek Price  <derek@ximbiot.com>
11310             Paul Eggert  <eggert@cs.ucla.edu>
11311
11312         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
11313         changes, consolidating in...
11314         * lib/regex_internal.h: ...this file.
11315
11316 2005-09-13  Jim Meyering  <jim@meyering.net>
11317
11318         * lib/canon-host.c: Filter through gnu indent and reword comments
11319         slightly.
11320         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
11321
11322 2005-09-13  Derek Price  <derek@ximbiot.com>
11323
11324         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
11325         failure.
11326         Reported by Jim Meyering  <jim@meyering.net>.
11327
11328 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
11329
11330         * lib/base64.c: Typo.
11331         (base64_encode): Put b64str in initialized data section.
11332
11333 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
11334
11335         Merge glibc and coreutils changes into gnulib, plus a few
11336         extra fixes.
11337         * lib/md5.c: Use #error rather than a string.
11338         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
11339         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
11340         (__attribute__): Define to empty for non recent-GCC.
11341         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
11342         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
11343         Renamed from their non-__ counterparts, with new macros replacing
11344         them if not _LIBC.  Add __THROW attribute.
11345         (rol): Remove.
11346         (struct md5_ctx): Align buffer if using GCC.
11347         * lib/sha1.h (struct sha1_ctx): Likewise.
11348         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
11349         The old name was backwards.
11350         (NOTSWAP): Remove; not used.
11351         (rol): New macro, moved here from md5.h.
11352         (sha1_process_block): Remove a FIXME that doesn't make sense.
11353
11354 2005-09-12  Derek Price  <derek@ximbiot.com>
11355
11356         Return usable errors from canon-host.
11357         * lib/canon-host.h: New file.
11358         * lib/canon-host.c (canon_host): Wrap...
11359         (canon_host_r): ...this new function, which now relies exclusively on
11360         getaddrinfo.
11361         (ch_strerror): New function.
11362         (last_cherror): New global.
11363         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
11364         interface.
11365         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
11366         void *.
11367         (freeaddrinfo): Free ai->ai_canonname when set.
11368
11369 2005-09-12  Derek Price  <derek@ximbiot.com>
11370
11371         Make canon-host require getaddrinfo.
11372         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
11373         AC_LIBSOURCE canon-host.h.  Call...
11374         (gl_PREREQ_CANON_HOST): ...this new function, which requires
11375         gl_GETADDRINFO.
11376         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
11377
11378 2005-09-12  Derek Price  <derek@ximbiot.com>
11379
11380         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
11381         LGPL.
11382         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
11383
11384 2005-09-12  Derek Price  <derek@ximbiot.com>
11385
11386         * lib/gai_strerror.c: Include config.h when available.  Include
11387         getaddrinfo.h before other headers to test interface.
11388         Reported by Larry Jones <lawrence.jones@ugs.com>.
11389
11390 2005-09-12  Derek Price  <derek@ximbiot.com>
11391             Paul Eggert  <eggert@cs.ucla.edu>
11392
11393         * modules/glob (Files): Add glob-libc.h.
11394
11395 2005-09-12  Derek Price  <derek@ximbiot.com>
11396             Paul Eggert  <eggert@cs.ucla.edu>
11397
11398         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
11399         glob_.h, glob-libc.h.
11400         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
11401
11402 2005-09-12  Derek Price  <derek@ximbiot.com>
11403             Paul Eggert  <eggert@cs.ucla.edu>
11404
11405         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
11406         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
11407         protecting things that should be done only in gnulib contexts.
11408         * lib/glob_.h: New file, containing only the glob things needed for
11409         gnulib.
11410         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
11411         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
11412         (glob, globfree, glob_pattern_p): Now defined simply in terms of
11413         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
11414         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
11415         and to respect the namespace rules better.
11416
11417 2005-09-08  Simon Josefsson  <jas@extundo.com>
11418
11419         * modules/socklen: New file.
11420
11421 2005-09-08  Simon Josefsson  <jas@extundo.com>
11422
11423         * m4/socklen.m4: New file.
11424
11425 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
11426
11427         * modules/utimens (Files): Add m4/utimbuf.m4, since
11428         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
11429         Reported by Sergey Poznyakoff.
11430
11431 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
11432
11433         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
11434         definitions, since that's the preferred style in glibc.
11435         Fix a minor spacing issue, and update copyright notice to match
11436         glibc's.
11437
11438 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
11439
11440         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
11441
11442 2005-09-06  Simon Josefsson  <jas@extundo.com>
11443
11444         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
11445         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
11446
11447 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
11448
11449         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
11450         warning.
11451
11452 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
11453
11454         * config/srclist.txt: Add glibc bug 1302.
11455
11456 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
11457
11458         Change bitset word type from unsigned int to unsigned long int,
11459         as this has better performance on typical 64-bit hosts.
11460         Port bitset code to hosts with unusual word sizes.
11461         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
11462         (build_collating_symbol):
11463         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
11464         argument is a bitset.  This is merely a style issue, but it makes
11465         it clearer that an entire array is expected.
11466         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
11467         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
11468         Port to the case where bitset_word is not the same as unsigned int.
11469         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
11470         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
11471         Likewise.
11472         * lib/regexec.c (check_dst_limits_calc_pos_1,
11473         check_subexp_matching_top):
11474         (build_trtable, group_nodes_into_DFAstates):
11475         Likewise.
11476         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
11477         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
11478         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
11479         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
11480         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
11481         * lib/regcomp.c (optimize_subexps, lower_subexp):
11482         Work even if bitset_word has holes in its bitwise representation.
11483         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
11484         * lib/regexec.c (check_dst_limits_calc_pos_1,
11485         check_subexp_matching_top):
11486         Likewise.
11487         * lib/regex_internal.c (re_string_reconstruct):
11488         Don't assume UCHAR_MAX == 255.
11489         * lib/regex_internal.h (bitset_set_all): Likewise.
11490         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
11491         All uses changed.
11492         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
11493         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
11494         All uses changed.
11495         (BITSET_WORD_MAX): New macro.
11496         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
11497         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
11498         (bitset_empty, bitset_copy):
11499         Prefer sizeof (bitset) to multiplying it out ourselves.
11500         (bitset_not_merge): Remove; unused.
11501         (bitset_contain): Return bool, not unsigned int with one bit on.
11502         All callers changed.
11503         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
11504         alignment than re_node_set; do this by defining a new internal
11505         type struct dests_alloc and using it to allocate memory.
11506
11507 2005-09-05  Bruno Haible  <bruno@clisp.org>
11508
11509         * gnulib-tool (func_import): Fix comparison in handling of symbolic
11510         links.
11511
11512 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
11513
11514         * modules/size_max (Makefile.am): Add size_max.h
11515
11516 2005-09-04  Derek Price  <derek@ximbiot.com>
11517
11518         * gnulib-tool (func_import): Fix reversed $symbolic logic.
11519
11520 2005-09-03  Simon Josefsson  <jas@extundo.com>
11521
11522         * gnulib-tool: Fix typo.
11523
11524 2005-09-03  Simon Josefsson  <jas@extundo.com>
11525
11526         * config/srclist.txt: Add glibc bug 1293.
11527
11528 2005-09-03  Derek Price  <derek@ximbiot.com>
11529
11530         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
11531         From Larry Jones <lawrence.jones@ugs.com>.
11532
11533 2005-09-02  Simon Josefsson  <jas@extundo.com>
11534
11535         * modules/socklen: New file.
11536
11537 2005-09-02  Simon Josefsson  <jas@extundo.com>
11538
11539         * modules/havelib: New module.
11540
11541         * modules/gettext, modules/iconv, modules/lock, modules/readline:
11542         Use havelib.
11543
11544 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
11545
11546         Check for arithmetic overflow when calculating sizes, to prevent
11547         some buffer-overflow issues.  These patches are conservative, in the
11548         sense that when I couldn't determine whether an overflow was possible,
11549         I inserted a run-time check.
11550         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
11551         macros.
11552         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
11553         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
11554         (re_xnrealloc, re_x2nrealloc): New inline functions.
11555         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
11556         parse_bracket_exp):
11557         (build_equiv_class, build_charclass): Check for arithmetic overflow
11558         in size expression calculations.
11559         * lib/regex_internal.c (re_string_realloc_buffers):
11560         (build_wcs_upper_buffer, re_node_set_add_intersect):
11561         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
11562         (re_dfa_add_node, register_state): Likewise.
11563         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
11564         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
11565         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
11566         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
11567
11568 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
11569
11570         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
11571         m4/ulonglong.m4.  Problem reported by Martin Lambers.
11572
11573 2005-09-02  Bruno Haible  <bruno@clisp.org>
11574
11575         Support for lib vs. lib64 distinction on biarch platforms.
11576         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
11577         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
11578         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
11579
11580 2005-09-02  Bruno Haible  <bruno@clisp.org>
11581
11582         * gnulib-tool (import): In the other first-use case, provide defaults
11583         as well.
11584
11585 2005-09-02  Bruno Haible  <bruno@clisp.org>
11586
11587         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
11588         patches not yet found in the latest gettext release.
11589
11590 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
11591
11592         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
11593         to avoid a collision with bits/local_lim.h in glibc.
11594         All uses changed.  Problem reported by Dmitry V. Levin in
11595         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
11596
11597         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
11598         bugs in int versus size_t comparisons.
11599         (re_string_context_at): Fix bug where the code assumed that
11600         Idx is signed.
11601
11602         Use bool where appropriate.
11603         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
11604         All callers changed.
11605         (calc_eclosure_iter): Likewise, for ROOT arg.
11606         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
11607         (build_charclass_op): Likewise, for NON_MATCH arg.
11608         * lib/regex_internal.c (re_string_allocate, re_string_construct):
11609         (re_string_construct_common): Likewise, for ICASE arg.
11610         * lib/regexec.c (re_search_2_stub, re_search_stub):
11611         Likewise, for RET_LEN arg.
11612         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
11613         (set_regs): Likewise, for FL_BACKTRACK arg.
11614         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
11615         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
11616         (calc_eclosure_iter, parse_bracket_exp):
11617         Use bool for internal variables that are booleans.
11618         * lib/regexec.c (re_search_internal, check_matching,
11619         proceed_next_node):
11620         (set_regs, build_sifted_states, sift_states_bkref):
11621         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
11622         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
11623         (find_collation_sequence_value):
11624         Likewise.
11625         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
11626         (re_node_set_compare):
11627         Return bool, not int. All callers changed.
11628         * lib/regexec.c (check_halt_node_context, check_dst_limits):
11629         (build_trtable, check_node_accept): Likewise.
11630         * lib/regex_internal.h: Include stdbool.h.
11631
11632         Fix bugs uncovered when converting to bool.
11633         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
11634         failure instead of charging ahead blindly.
11635         * lib/regex_internal.c (register_state): Likewise.
11636         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
11637         for freeing internal storage.
11638         (group_nodes_into_DFA_states): Use unsigned int, not int, for
11639         bitset pieces used as boolean, to avoid undefined behavior
11640         on hosts that do int overflow checking.
11641
11642 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
11643
11644         * config/srclist.txt: Add glibc bugs 1285-1287.
11645
11646 2005-09-01  Jim Meyering  <jim@meyering.net>
11647
11648         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
11649         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
11650         Require gl_STAT_MACROS, too.
11651
11652 2005-09-01  Bruno Haible  <bruno@clisp.org>
11653
11654         * gnulib-tool (import): In the first-use case, provide defaults.
11655
11656 2005-09-01  Bruno Haible  <bruno@clisp.org>
11657
11658         * gnulib-tool (func_import): Remove the .tmp files.
11659
11660 2005-09-01  Bruno Haible  <bruno@clisp.org>
11661
11662         * gnulib-tool (func_import): Fix handling of symbolic links.
11663
11664 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
11665
11666         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
11667         old glibc regex code mishandles strings longer than 2**31 bytes.
11668         This patch fixes this when the regex code is used in gnulib
11669         (i.e., outside glibc).
11670
11671         This patch should not affect the use of the regex code inside
11672         glibc.  No doubt this problem also needs to be handled for glibc
11673         as well, but the result will be an incompatible change to the
11674         glibc ABI, and the old ABI will have to be supported too.  That
11675         can be the the subject for another patch.
11676
11677         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
11678         governing whether the rest of this patch is active.  By default,
11679         the macro is disabled and the patch has no effect.
11680         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
11681         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
11682         (struct re_pattern_buffer, re_search, re_search_2, re_match):
11683         (re_match_2, re_set_registers): Use the new types.
11684         * lib/regex_internal.h (Idx, re_hashval_t): New types.
11685         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
11686         New macros.
11687         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
11688         (re_string_context_at, bin_tree_t, re_dfastate_t):
11689         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
11690         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
11691         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
11692         (re_string_char_size_at, re_string_wchar_at):
11693         (re_string_elem_size_at):
11694         Use the new types and macros to port to 64-bit hosts.
11695         Use unsigned types for internal values, so that the code
11696         mostly works even for arrays larger than SSIZE_MAX.
11697         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
11698         (search_duplicated_node, calc_eclosure_iter, fetch_number):
11699         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
11700         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
11701         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
11702         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
11703         (calc_inveclosure, parse_dup_op, build_range_exp):
11704         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
11705         (fetch_number, create_token_tree, mark_opt_subexp):
11706         Likewise.
11707         * lib/regex_internal.c (re_string_construct_common,
11708         create_ci_newstate):
11709         (create_cd_newstate, re_string_allocate, re_string_construct):
11710         (re_string_realloc_buffers, build_wcs_upper_buffer):
11711         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
11712         (re_string_reconstruct, re_string_peek_byte_case):
11713         (re_string_fetch_byte_case, re_string_context_at):
11714         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
11715         (re_node_set_init_copy, re_node_set_add_intersect):
11716         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
11717         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
11718         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
11719         (re_acquire_state, re_acquire_state_context, register_state):
11720         Likewise.
11721         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
11722         search_cur_bkref_entry):
11723         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
11724         (re_search_internal, re_search_2_stub, re_search_stub)
11725         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
11726         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
11727         (update_cur_sifted_state, check_dst_limits):
11728         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
11729         (check_subexp_limits, sift_states_bkref, merge_state_array):
11730         (check_subexp_matching_top, get_subexp, get_subexp_sub):
11731         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
11732         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
11733         (expand_bkref_cache, check_node_accept_bytes):
11734         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
11735         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
11736         (acquire_init_state_context, check_halt_node_context):
11737         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
11738         (sift_states_backward, clean_state_log_if_needed):
11739         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
11740         (find_recover_state, transit_state_sb, transit_state_mb):
11741         (transit_state_bkref, build_trtable, match_ctx_clean):
11742         Likewise.
11743         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
11744         to work around an assumption that REG_MISSING is negative.
11745
11746         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
11747         (seek_collating_symbol_entry) [defined _LIBC]:
11748         (lookup_collation_sequence_value) [defined _LIBC]:
11749         (build_range_exp, build_collating_symbol) [defined _LIBC]:
11750         Use prototypes rather than old-style function definitions.
11751         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
11752         (transit_state_sb) [0]:
11753         (find_collation_sequence_value) [defined _LIBC]: Likewise.
11754
11755         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
11756         rm_eo.
11757
11758         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
11759         (optimize_subexps, lower_subexp):
11760         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
11761         since the signed shift might overflow.  Use 1u<<31 instead.
11762         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
11763         Likewise.
11764         * lib/regexec.c (check_dst_limits_calc_pos_1,
11765         check_subexp_matching_top): Likewise.
11766
11767         * lib/regcomp.c (optimize_subexps, lower_subexp):
11768         Use CHAR_BIT rather than 8, for clarity.
11769         * lib/regexec.c (check_dst_limits_calc_pos_1):
11770         (check_subexp_matching_top): Likewise.
11771         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
11772         have to worry about portability issues when shifting it left.
11773         Remove no-longer-needed test for table_size > 0.
11774         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
11775         in a word, as the resulting behavior is undefined.
11776         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
11777         in one case, a <= should have been an <, and in another case the
11778         whole test was missing.
11779         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
11780         the standard name CHAR_BIT.
11781         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
11782         this is not true on one's complement and signed-magnitude hosts.
11783
11784         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
11785         next_last_offset.
11786         (struct re_dfa_t): Remove unused member states_alloc.
11787         * lib/regcomp.c (init_dfa): Don't initialize unused members.
11788
11789 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
11790
11791         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
11792         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
11793         and large-file glibc and in 32-bit large-file Solaris.
11794
11795 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
11796
11797         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
11798         lengths fit in regoff_t; this isn't true if regoff_t is the same
11799         width as size_t.
11800         * lib/regex.c (re_search_internal): 5th arg is LAST_START
11801         (= START + RANGE) instead of RANGE.  This avoids overflow
11802         problems when regoff_t is the same width as size_t.
11803         All callers changed.
11804         (re_search_2_stub): Check for overflow when adding the
11805         sizes of the two strings.
11806         (re_search_stub): Check for overflow when adding START
11807         to RANGE; if it occurs, substitute the extreme value.
11808
11809 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
11810
11811         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
11812
11813 2005-08-31  Jim Meyering  <jim@meyering.net>
11814
11815         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
11816         a pointer-to-const.
11817         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
11818         (register_state): Likewise.
11819         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
11820         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
11821         (group_nodes_into_DFAstates): Likewise.
11822
11823 2005-08-31  Jim Meyering  <jim@meyering.net>
11824
11825         * check-module: Add a FIXME comment.
11826
11827 2005-08-31  Eric Blake  <ebb9@byu.net>
11828
11829         * modules/unistd-safer (Files): Add unistd--.h.
11830         * modules/stdio-safer (Files): Add stdio--.h.
11831
11832 2005-08-31  Derek Price  <derek@ximbiot.com>
11833
11834         * lib/getdelim.c (getdelim): Return EOF on EOF.
11835         Reported by Larry Jones <lawrence.jones@ugs.com>.
11836
11837 2005-08-31  Bruno Haible  <bruno@clisp.org>
11838
11839         Avoid unnecessary diffs in the generated lib/Makefile.am.
11840         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
11841         the generated files.
11842         (func_import): Don't set cmd.
11843
11844 2005-08-31  Bruno Haible  <bruno@clisp.org>
11845
11846         * lib/strstr.c: Include <stddef.h>, for NULL.
11847         * lib/strcasestr.c: Likewise.
11848         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
11849
11850 2005-08-31  Bruno Haible  <bruno@clisp.org>
11851
11852         * gnulib-tool: New option --macro-prefix.
11853         (func_import): Use macro_prefix.
11854         (import): Handle option --macro-prefix.
11855
11856 2005-08-31  Bruno Haible  <bruno@clisp.org>
11857
11858         * gnulib-tool (import): Rename most ac_* variables to cached_*.
11859         Also use new variables cached_lgpl, cached_libtool.
11860
11861 2005-08-31  Bruno Haible  <bruno@clisp.org>
11862
11863         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
11864         always instantiating them.
11865
11866 2005-08-31  Bruno Haible  <bruno@clisp.org>
11867
11868         * gnulib-tool (func_import): Read the previous cached settings
11869         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
11870         earlier added by gnulib but are now dropped. Warn when a gnulib file
11871         overwrites a non-gnulib file.
11872
11873 2005-08-31  Bruno Haible  <bruno@clisp.org>
11874
11875         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
11876         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
11877         projects that don't keep autogenerated files in CVS. Put into
11878         actioncmd only the specified modules, not the transitive closure.
11879
11880 2005-08-31  Bruno Haible  <bruno@clisp.org>
11881
11882         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
11883         Create directories that shall be filled.
11884         (import): Don't look for gl_* macros in configure.ac. Recurse across
11885         all directories containing a gnulib-cache.m4 files, if meaningful.
11886
11887 2005-08-31  Bruno Haible  <bruno@clisp.org>
11888
11889         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
11890         (import): Set seen_libtool when we see gl_LIBTOOL.
11891
11892 2005-08-31  Bruno Haible  <bruno@clisp.org>
11893
11894         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
11895         declaration macro definitions from generated gnulib.m4.
11896
11897 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
11898
11899         * lib/iconvme.h: Add prototype for iconv_alloc.
11900
11901 2005-08-29  Simon Josefsson  <jas@extundo.com>
11902
11903         * lib/iconvme.c: Fix errno.
11904
11905 2005-08-29  Bruno Haible  <bruno@clisp.org>
11906
11907         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
11908         that it works when the directory contains spaces.
11909
11910 2005-08-29  Bruno Haible  <bruno@clisp.org>
11911
11912         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
11913
11914 2005-08-29  Bruno Haible  <bruno@clisp.org>
11915
11916         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
11917         Emit more advice.
11918
11919 2005-08-29  Bruno Haible  <bruno@clisp.org>
11920         and Stepan Kasal  <kasal@ucw.cz>
11921
11922         * check-module: If more parameters are given, check each of them
11923         separately; add more exceptions, as noted by Jim Meyering.
11924         (check_module): New procedure.
11925         (%exempt_header): Now contains all exceptions.
11926
11927 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
11928
11929         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
11930
11931 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
11932
11933         * lib/iconvme.c: Split iconv_string into iconv_alloc.
11934
11935 2005-08-28  Bruno Haible  <bruno@clisp.org>
11936
11937         * m4/gnulib-tool.m4: New file.
11938
11939 2005-08-27  Jim Meyering  <jim@meyering.net>
11940
11941         * modules/unistd-safer (Files): Add pipe-safer.c.
11942         * modules/fcntl-safer (Files): Add creat-safer.c.
11943
11944 2005-08-27  Jim Meyering  <jim@meyering.net>
11945
11946         * m4/stdlib-safer.m4: New file.  From coreutils.
11947         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
11948         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
11949         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
11950         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
11951         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
11952
11953 2005-08-27  Jim Meyering  <jim@meyering.net>
11954
11955         * lib/fopen-safer.c: Merge minor changes from coreutils.
11956         * lib/dup-safer.c: Likewise.
11957         * lib/fd-safer.c: Likewise.
11958
11959         Merge from coreutils.
11960         * lib/stdio--.h: New file.
11961         * lib/stdlib--.h: New file.
11962         * lib/mkstemp-safer.c: New file.
11963
11964         GNU tar needs these.
11965         * lib/pipe-safer.c: New file.
11966         * lib/creat-safer.c: New file.
11967         * lib/fcntl--.h (creat): Define to creat_safer.
11968         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
11969         * lib/unistd--.h (pipe): Define to pipe_safer.
11970         * lib/unistd-safer.h: Declare pipe_safer.
11971
11972 2005-08-26  Simon Josefsson  <jas@extundo.com>
11973
11974         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
11975         Haible <bruno@clisp.org>.
11976
11977 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
11978
11979         * lib/regex_internal.h: Remove all references to
11980         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
11981         or better.
11982         (bitset_not, bitset_merge, bitset_not_merge):
11983         (bitset_mask, re_string_allocate, re_string_construct):
11984         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
11985         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
11986         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
11987         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
11988         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
11989         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
11990         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
11991         (re_acquire_state_context):
11992         Remove unnecessary forward decls.
11993         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
11994         Put __attribute at function definition,
11995         now that the function decl has been removed.
11996         * lib/regex_internal.c (re_string_peek_byte_case):
11997         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
11998         Likewise.
11999
12000 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
12001
12002         * m4/regex.m4: Add AC_PREREQ(2.50).
12003         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
12004
12005 2005-08-25  Simon Josefsson  <jas@extundo.com>
12006
12007         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
12008         __fsetlocking.
12009
12010 2005-08-25  Simon Josefsson  <jas@extundo.com>
12011
12012         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
12013         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
12014         GLIBC specific code.
12015
12016 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
12017
12018         Make regex safe for g++.  This fixes one real bug (an "err"
12019         that should have been "*err").  g++ problem reported by
12020         Sam Steingold.
12021         * lib/regex_internal.h (re_calloc): New macro, consistent with
12022         re_malloc etc.  All callers of calloc changed to use re_calloc.
12023         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
12024         not int.  All callers changed.
12025         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
12026         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
12027         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
12028         (find_recover_state): Change "err" to "*err"; this fixes what
12029         appears to be a real bug.
12030         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
12031         versus int.
12032
12033 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
12034
12035         * modules/regex (Depends-on): Add malloc, since the code
12036         assumes that !malloc(0) means failure.
12037
12038 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
12039
12040         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
12041
12042         alloca modernization/simplification for regex.
12043         * lib/regex.c: Remove portability cruft for alloca.  This no longer
12044         needs to be at the start of the file, and can be moved into
12045         regex_internal.h and simplified.
12046         * lib/regex_internal.h: Include <alloca.h>.
12047         (__libc_use_alloca) [!defined _LIBC]: New macro.
12048         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
12049         now works outside glibc.
12050
12051 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
12052
12053         * config/srclist.txt: Add glibc bugs 1241, 1245.
12054
12055 2005-08-25  Jim Meyering  <jim@meyering.net>
12056
12057         * lib/open-safer.c: Include <config.h>.
12058         Otherwise, we'd lose LARGEFILE support in any file using
12059         e.g. "fcntl--.h"
12060
12061 2005-08-25  Bruno Haible  <bruno@clisp.org>
12062
12063         * m4/minmax.m4: Require autoconf 2.52.
12064         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
12065         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
12066         alternatives of translit over the alphabet.
12067         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
12068
12069 2005-08-24  Simon Josefsson  <jas@extundo.com>
12070
12071         * tests/test-getpass.c: New file.
12072
12073 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
12074
12075         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
12076         for GNU regex features.
12077
12078 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
12079
12080         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
12081         * lib/regex.h (regerror): Likewise.
12082
12083         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
12084         requires this.  (The code never needed it.)
12085
12086         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
12087         All uses of recently-renamed identifiers changed to use the new,
12088         POSIX-compliant names.  The code will build and run just fine
12089         without these changes, but it's better to eat our own dog food
12090         and use the standard-conforming names.
12091
12092         * lib/regex.h: Fix a multitude of POSIX name space violations.
12093         These changes have an effect only for programs that define
12094         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
12095         do not change anything for programs compiled in the normal way.
12096         Also, there is no effect on the ABI.
12097
12098         (_REGEX_SOURCE): New macro.
12099         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
12100         defined and _GNU_SOURCE is not; this fixes a name space violation.
12101
12102         Rename the following macros to obey POSIX requirements.
12103         The old names are still visible as macros if _REGEX_SOURCE is defined.
12104         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
12105         RE_BACKSLASH_ESCAPE_IN_LISTS.
12106         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
12107         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
12108         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
12109         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
12110         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
12111         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
12112         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
12113         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
12114         (REG_INTERVALS): renamed from RE_INTERVALS.
12115         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
12116         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
12117         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
12118         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
12119         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
12120         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
12121         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
12122         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
12123         RE_UNMATCHED_RIGHT_PAREN_ORD.
12124         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
12125         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
12126         (REG_DEBUG): renamed from RE_DEBUG.
12127         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
12128         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
12129         unusual, since we can't clash with the POSIX REG_ICASE.
12130         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
12131         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
12132         (REG_NO_SUB): renamed from RE_NO_SUB.
12133         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
12134         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
12135         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
12136         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
12137         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
12138         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
12139         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
12140         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
12141         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
12142         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
12143         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
12144         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
12145         RE_SYNTAX_POSIX_MINIMAL_BASIC.
12146         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
12147         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
12148         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
12149         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
12150         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
12151         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
12152         (REG_FIXED): Renamed from REGS_FIXED.
12153         (REG_NREGS): Renamed from RE_NREGS.
12154
12155         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
12156         of other REG_* macros, since POSIX says the user is allowed to
12157         #undef these macros selectively.
12158
12159         (reg_errcode_t): Update comment stating what other tables need
12160         to be consistent.
12161
12162         Rename the following enum values to obey POSIX requirements.
12163         The old names are still visible as macros.
12164         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
12165         is not defined, since GNU is supposed to be a superset of POSIX as
12166         much as possible, and since we want reg_errcode_t to be a signed
12167         type for implementation consistency.
12168         (_REG_NOERROR): Renamed from REG_NOERROR.
12169         (_REG_NOMATCH): Renamed from REG_NOMATCH.
12170         (_REG_BADPAT): Renamed from REG_BADPAT.
12171         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
12172         (_REG_ECTYPE): Renamed from REG_ECTYPE.
12173         (_REG_EESCAPE): Renamed from REG_EESCAPE.
12174         (_REG_ESUBREG): Renamed from REG_ESUBREG.
12175         (_REG_EBRACK): Renamed from REG_EBRACK.
12176         (_REG_EPAREN): Renamed from REG_EPAREN.
12177         (_REG_EBRACE): Renamed from REG_EBRACE.
12178         (_REG_BADBR): Renamed from REG_BADBR.
12179         (_REG_ERANGE): Renamed from REG_ERANGE.
12180         (_REG_ESPACE): Renamed from REG_ESPACE.
12181         (_REG_BADRPT): Renamed from REG_BADRPT.
12182         (_REG_EEND): Renamed from REG_EEND.
12183         (_REG_ESIZE): Renamed from REG_ESIZE.
12184         (_REG_ERPAREN): Renamed from REG_ERPAREN.
12185         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
12186         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
12187         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
12188         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
12189
12190         (_REG_RE_NAME, _REG_RM_NAME): New macros.
12191         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
12192         changed.  But support the old name if the new one is not defined
12193         and if _REGEX_SOURCE.
12194
12195         Change the following member names in struct re_pattern_buffer.
12196         The old names are still supported if !_REGEX_SOURCE.
12197         The new names are always supported, regardless of _REGEX_SOURCE.
12198         (re_buffer): Renamed from buffer.
12199         (re_allocated): Renamed from allocated.
12200         (re_used): Renamed from used.
12201         (re_syntax): Renamed from syntax.
12202         (re_fastmap): Renamed from fastmap.
12203         (re_translate): Renamed from translate.
12204         (re_can_be_null): Renamed from can_be_null.
12205         (re_regs_allocated): Renamed from regs_allocated.
12206         (re_fastmap_accurate): Renamed from fastmap_accurate.
12207         (re_no_sub): Renamed from no_sub.
12208         (re_not_bol): Renamed from not_bol.
12209         (re_not_eol): Renamed from not_eol.
12210         (re_newline_anchor): Renamed from newline_anchor.
12211
12212         Change the following member names in struct re_registers.
12213         The old names are still supported if !_REGEX_SOURCE.
12214         The new names are always supported, regardless of _REGEX_SOURCE.
12215         (rm_num_regs): Renamed from num_regs.
12216         (rm_start): Renamed from start.
12217         (rm_end): Renamed from end.
12218
12219         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
12220         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
12221         Prepend __ to parameter names.
12222
12223         Undo yesterday's changes.
12224
12225 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
12226
12227         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
12228         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
12229         lib/regex.c.
12230
12231 2005-08-24  Jim Meyering  <jim@meyering.net>
12232
12233         Sync from coreutils.
12234         * m4/fcntl-safer.m4: New file.
12235
12236         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
12237         and object files for this module.
12238
12239 2005-08-24  Jim Meyering  <jim@meyering.net>
12240
12241         Sync from coreutils.
12242         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
12243
12244 2005-08-24  Jim Meyering  <jim@meyering.net>
12245
12246         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
12247         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
12248
12249 2005-08-24  Jim Meyering  <jim@meyering.net>
12250
12251         * modules/fcntl-safer: New module.
12252         * modules/fts (Depends-on): Add fcntl-safer.
12253         * MODULES.html.sh (File descriptor based Input/Output):
12254         Add fcntl-safer.
12255
12256 2005-08-24  Bruno Haible  <bruno@clisp.org>
12257
12258         Support for unit test modules.
12259         * modules/README: Mention tests modules.
12260         * modules/TEMPLATE-TESTS: New file.
12261         * gnulib-tool: New options --extract-tests-module, --with-tests and
12262         --tests-base (unused for the moment).
12263         (testsbase, inctests): New variables.
12264         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
12265         (func_verify_module): Exclude TEMPLATE-TESTS.
12266         (func_verify_nontests_module, func_verify_tests_module): New functions.
12267         (func_get_dependencies): Add implicit dependency for tests modules.
12268         (func_get_tests_module): New function.
12269         (func_modules_transitive_closure): When --with-tests was specified,
12270         include the unit tests as well, unless explicitly avoided.
12271         (func_emit_lib_Makefile_am): Ignore the tests modules here.
12272         (func_emit_tests_Makefile_am): New function.
12273         (func_create_testdir): When --with-tests was specified, emit a
12274         tests/ directory.
12275         * MODULES.html.sh (Future developments): Update.
12276
12277 2005-08-24  Bruno Haible  <bruno@clisp.org>
12278
12279         * modules/tls-tests: New file.
12280         * tests/test-tls.c: New file, from GNU gettext.
12281
12282 2005-08-24  Bruno Haible  <bruno@clisp.org>
12283
12284         * modules/lock-tests: New file.
12285         * tests/test-lock.c: New file, from GNU gettext.
12286
12287 2005-08-24  Bruno Haible  <bruno@clisp.org>
12288
12289         * lib/lock.h: Add multiple inclusion guard.
12290         * lib/tls.h: Add multiple inclusion guard.
12291
12292 2005-08-24  Bruno Haible  <bruno@clisp.org>
12293
12294         * gnulib-tool: Add support for the --aux-dir option to
12295         --create-testdir, --create-megatestdir, --test, --megatest.
12296         (func_create_testdir, func_create_megatestdir): Optionally emit a
12297         AC_CONFIG_AUX_DIR directive.
12298         (create-testdir, create-megatestdir, test, megatest): Provide a
12299         default value for $auxdir.
12300
12301 2005-08-24  Bruno Haible  <bruno@clisp.org>
12302
12303         * gnulib-tool (import): Use compound statement instead of subshell
12304         where possible.
12305
12306 2005-08-24  Bruno Haible  <bruno@clisp.org>
12307
12308         * gnulib-tool (import): Change --aux-dir default to "build-aux".
12309
12310 2005-08-24  Bruno Haible  <bruno@clisp.org>
12311
12312         * gnulib-tool (func_version): Update.
12313
12314 2005-08-24  Bruno Haible  <bruno@clisp.org>
12315
12316         * gnulib-tool (func_import, func_create_testdir,
12317         func_create_megatestdir): Quote all autoconf macro arguments.
12318
12319 2005-08-24  Bruno Haible  <bruno@clisp.org>
12320
12321         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
12322         option --force, because --force causes the aclocal.m4 of each
12323         subdirectory to be newer than the corresponding config.h.in.
12324
12325 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
12326
12327         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
12328         All contents moved to gl_REGEX.
12329         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
12330         assume that it does.
12331
12332 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
12333
12334         * lib/regex.h (REG_NOSYS)
12335         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
12336         Define, since POSIX requires it as of 2001.
12337         (_REG_ENOSYS)
12338         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
12339         New private symbol, used to keep the enum signed in all cases.
12340         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
12341         Youngman in
12342         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
12343
12344         * lib/regex_internal.c (re_string_skip_chars, register_state):
12345         (calc_state_hash):
12346         Remove forward decls; no longer needed now that we use prototypes.
12347         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
12348         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
12349         (clean_state_log_if_needed): Likewise.
12350
12351 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
12352
12353         * config/srclist.txt: Add glibc bugs 1231-1233.
12354
12355 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
12356
12357         Fix problems reported by Sam Steingold in
12358         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
12359         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
12360         assumed that reg_errcode_t is a signed type, which is not
12361         necessarily true if _XOPEN_SOURCE is not defined.
12362         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
12363         since some compilers warn about it otherwise.
12364
12365 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
12366
12367         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
12368         (init_word_char, create_initial_state, duplicate_node_closure):
12369         (fetch_token, peek_token_bracket, build_range_exp):
12370         (build_collating_symbol): Remove forward decls; no longer needed
12371         now that we use prototypes.
12372
12373         * lib/regcomp.c:
12374         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
12375         (re_compile_fastmap_iter, regcomp, regerror, regfree):
12376         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
12377         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
12378         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
12379         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
12380         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
12381         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
12382         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
12383         (build_range_exp, build_collating_symbol, parse_bracket_exp):
12384         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
12385         (build_charclass, build_charclass_op, fetch_number, create_tree):
12386         (create_token_tree, mark_opt_subexp, duplicate_tree):
12387         Use prototypes rather than old-style definitions.
12388
12389         * lib/regex_internal.c:
12390         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
12391         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
12392         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
12393         (re_string_reconstruct, re_string_peek_byte_case):
12394         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
12395         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
12396         (re_node_set_init_copy, re_node_set_add_intersect):
12397         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
12398         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
12399         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
12400         (re_acquire_state, re_acquire_state_context, register_state):
12401         (create_ci_newstate, create_cd_newstate, free_state):
12402         Likewise.
12403         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
12404         re_search_2):
12405         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
12406         (re_search_internal, prune_impossible_nodes):
12407         (acquire_init_state_context, check_matching, static):
12408         (check_halt_node_context, check_halt_state_context, proceed_next_node):
12409         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
12410         (update_regs, sift_states_backward, build_sifted_states):
12411         (clean_state_log_if_needed, merge_state_array):
12412         (update_cur_sifted_state, add_epsilon_src_nodes):
12413         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
12414         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
12415         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
12416         (find_recover_state, check_subexp_matching_top, transit_state_mb):
12417         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
12418         (check_arrival, check_arrival_add_next_nodes):
12419         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
12420         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
12421         (check_node_accept_bytes, check_node_accept, extend_buffers):
12422         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
12423         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
12424         (sift_ctx_init):
12425         Likewise.
12426
12427         * lib/regex_internal.h:
12428         (re_string_allocate, re_string_construct, re_string_reconstruct):
12429         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
12430         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
12431         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
12432         (re_string_context_at, re_string_peek_byte_case):
12433         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
12434         is defined, since we now use prototypes always.
12435
12436         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
12437         C89 or better.  All uses removed.
12438
12439 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
12440
12441         * config/srclist.txt: Add glibc bugs 1220-1227.
12442
12443 2005-08-20  Jim Meyering  <jim@meyering.net>
12444
12445         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
12446         of unused local, dfa.
12447
12448 2005-08-20  Bruno Haible  <bruno@clisp.org>
12449
12450         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
12451
12452 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
12453
12454         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
12455         (re_node_set_insert_last, re_dfa_add_node):
12456         Rename local variables to avoid GCC shadowing warnings.
12457
12458 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
12459
12460         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
12461         [defined lint]: Suppress bogus uninitialized-variable warnings.
12462
12463         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
12464         and let the caller return REG_ESPACE if out of space.  This
12465         removes an uninitialied-variable warning with GCC 4.0.1, and also
12466         avoids taking the address of a local variable.  All callers
12467         changed.
12468
12469 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
12470
12471         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
12472         $LIBCSRC/posix/regexec.c.
12473         Add glibc bug 1217 for regcomp.c.
12474
12475 2005-08-19  Jim Meyering  <jim@meyering.net>
12476
12477         * lib/regexec.c (proceed_next_node): Redo local variables to
12478         avoid GCC shadowing warnings.
12479
12480 2005-08-18  Bruno Haible  <bruno@clisp.org>
12481
12482         * lib/strstr.c (strstr): Fix return value in multibyte case.
12483         * lib/strcasestr.c (strcasestr): Likewise.
12484
12485 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
12486
12487         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
12488
12489 2005-08-17  Jim Meyering  <jim@meyering.net>
12490
12491         Make the %s format (seconds since the epoch) work for a negative
12492         number and when used with a zero-padded field width, e.g. %015s.
12493
12494         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
12495         label so that it precedes the code to set `digits'.  Otherwise,
12496         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
12497         print `00-22'.  Now, it prints `-0022', as it should.
12498
12499 2005-08-17  Bruno Haible  <bruno@clisp.org>
12500
12501         * modules/strstr (Files): Add m4/mbrtowc.m4.
12502         (Depends-on): Add mbuiter.
12503
12504 2005-08-17  Bruno Haible  <bruno@clisp.org>
12505
12506         * modules/strcasestr: New file.
12507         * MODULES.html.sh (String handling, based on ANSI C 89): Add
12508         strcasestr.
12509
12510 2005-08-17  Bruno Haible  <bruno@clisp.org>
12511
12512         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
12513
12514 2005-08-17  Bruno Haible  <bruno@clisp.org>
12515
12516         * modules/mbuiter: New file.
12517         * MODULES.html.sh (Extended multibyte and wide character utilities):
12518         Add mbuiter.
12519
12520 2005-08-17  Bruno Haible  <bruno@clisp.org>
12521
12522         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
12523         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
12524
12525 2005-08-17  Bruno Haible  <bruno@clisp.org>
12526
12527         * m4/strcasestr.m4: New file.
12528
12529 2005-08-17  Bruno Haible  <bruno@clisp.org>
12530
12531         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
12532         * lib/strstr.c: Completely rewritten, with multibyte locale support.
12533
12534 2005-08-17  Bruno Haible  <bruno@clisp.org>
12535
12536         * lib/strcasestr.h: New file.
12537         * lib/strcasestr.c: New file.
12538
12539 2005-08-17  Bruno Haible  <bruno@clisp.org>
12540
12541         * lib/strcasecmp.c: Use mbuiter.h.
12542
12543 2005-08-17  Bruno Haible  <bruno@clisp.org>
12544
12545         * lib/mbuiter.h: New file.
12546
12547 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
12548
12549         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
12550         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
12551         and gl_GETOPT are both invoked via different paths (as happens
12552         with GNU tar CVS because it uses both argp and getopt), the former
12553         wins.
12554
12555 2005-08-16  Bruno Haible  <bruno@clisp.org>
12556
12557         * modules/tls: New file.
12558         * MODULES.html.sh (Multithreading): Add tls.
12559
12560 2005-08-16  Bruno Haible  <bruno@clisp.org>
12561
12562         * modules/strnlen1: New file.
12563         * MODULES.html.sh (String handling): Add strnlen1.
12564
12565 2005-08-16  Bruno Haible  <bruno@clisp.org>
12566
12567         * modules/strcase (Files): Add m4/mbrtowc.m4.
12568         (Depends-on): Add strnlen1, mbchar.
12569
12570 2005-08-16  Bruno Haible  <bruno@clisp.org>
12571
12572         * modules/mbiter: New file.
12573         * MODULES.html.sh (Extended multibyte and wide character utilities):
12574         Add mbiter.
12575
12576 2005-08-16  Bruno Haible  <bruno@clisp.org>
12577
12578         * modules/mbfile: New file.
12579         * MODULES.html.sh (Extended multibyte and wide character utilities):
12580         Add mbfile.
12581
12582 2005-08-16  Bruno Haible  <bruno@clisp.org>
12583
12584         * modules/mbchar: New file.
12585         * MODULES.html.sh (Extended multibyte and wide character utilities):
12586         New section.
12587
12588 2005-08-16  Bruno Haible  <bruno@clisp.org>
12589
12590         * m4/tls.m4: New file, from GNU gettext.
12591
12592 2005-08-16  Bruno Haible  <bruno@clisp.org>
12593
12594         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
12595         always.
12596         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
12597
12598 2005-08-16  Bruno Haible  <bruno@clisp.org>
12599
12600         * m4/mbiter.m4: New file.
12601
12602 2005-08-16  Bruno Haible  <bruno@clisp.org>
12603
12604         * m4/mbfile.m4: New file.
12605
12606 2005-08-16  Bruno Haible  <bruno@clisp.org>
12607
12608         * m4/mbchar.m4: New file.
12609
12610 2005-08-16  Bruno Haible  <bruno@clisp.org>
12611
12612         * lib/tls.h: New file, from GNU gettext.
12613         * lib/tls.c: New file, from GNU gettext.
12614
12615 2005-08-16  Bruno Haible  <bruno@clisp.org>
12616
12617         * lib/strnlen1.h: New file.
12618         * lib/strnlen1.c: New file.
12619
12620 2005-08-16  Bruno Haible  <bruno@clisp.org>
12621
12622         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
12623         (mbi_init): Update.
12624         (mbi_avail, mbi_advance): Let the iteration end before the terminating
12625         NUL byte, not after it.
12626
12627 2005-08-16  Bruno Haible  <bruno@clisp.org>
12628
12629         * lib/strcase.h (strcasecmp): Add note in comments.
12630         * lib/strncasecmp.c: Use code from strcasecmp.c.
12631         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
12632         (strcasecmp): Work correctly in multibyte locales.
12633
12634 2005-08-16  Bruno Haible  <bruno@clisp.org>
12635
12636         * lib/mbiter.h: New file.
12637
12638 2005-08-16  Bruno Haible  <bruno@clisp.org>
12639
12640         * lib/mbfile.h: New file.
12641
12642 2005-08-16  Bruno Haible  <bruno@clisp.org>
12643
12644         * lib/mbchar.h: New file.
12645         * lib/mbchar.c: New file.
12646
12647 2005-08-16  Bruno Haible  <bruno@clisp.org>
12648
12649         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
12650         the valid ones. Makes the comparison operations transitive:
12651         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
12652         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
12653
12654 2005-08-15  Simon Josefsson  <jas@extundo.com>
12655
12656         * modules/ssize_t (License): Change to 'unlimited'.
12657
12658         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
12659
12660 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
12661
12662         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
12663         Add comments for each pending glibc patch.
12664
12665 2005-08-15  Bruno Haible  <bruno@clisp.org>
12666
12667         * lib/regex.h (__restrict_arr): Don't define to __restrict if
12668         __cplusplus is defined.
12669
12670 2005-08-14  Jim Meyering  <jim@meyering.net>
12671
12672         Sync from coreutils.
12673
12674         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
12675         Use the hash-table-based cycle-detection code not just when
12676         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
12677         Reported by James Youngman in
12678         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
12679         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
12680         FTS_TIGHT_CYCLE_CHECK.
12681         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
12682         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
12683         once again.
12684         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
12685         * lib/fts.c (fd_safer): Remove decl.
12686         Include fcntl--.h rather than unistd-safer.h
12687         (fts_safe_changedir): Don't call fd_safer; no longer needed
12688         now that we include fcntl--.h.
12689
12690 2005-08-12  Simon Josefsson  <jas@extundo.com>
12691
12692         * modules/getndelim2: Use ssize_t module.
12693         * modules/getnline: Likewise.
12694         * modules/safe-read: Likewise.
12695         * modules/xreadlink: Likewise.
12696
12697         * modules/ssize_t: New file.
12698
12699 2005-08-12  Simon Josefsson  <jas@extundo.com>
12700
12701         * m4/readline.m4: Look for termcap, curses or ncurses if required.
12702
12703 2005-08-12  Simon Josefsson  <jas@extundo.com>
12704
12705         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
12706         ssize_t.
12707
12708 2005-08-12  Simon Josefsson  <jas@extundo.com>
12709
12710         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
12711         readline, getdelim and check_version.
12712         (Support for systems lacking ISO C 99: Sizes of integer types):
12713         Add size_max.
12714
12715 2005-08-12  Bruno Haible  <bruno@clisp.org>
12716
12717         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
12718
12719 2005-08-11  Simon Josefsson  <jas@extundo.com>
12720
12721         * modules/readline: New file.
12722
12723         * modules/strnlen (Files): Add strnlen.h.
12724
12725 2005-08-11  Simon Josefsson  <jas@extundo.com>
12726
12727         * m4/readline.m4: New file.
12728
12729 2005-08-11  Simon Josefsson  <jas@extundo.com>
12730
12731         * lib/readline.h, readline.c: New file.
12732
12733 2005-08-11  Simon Josefsson  <jas@extundo.com>
12734
12735         * doc/gnulib.texi (Initial import, Finishing touches): Mention
12736         gl_AVOID.
12737
12738 2005-08-11  Bruno Haible  <bruno@clisp.org>
12739
12740         * lib/strnlen.h (strnlen): Change parameter name to match comment.
12741
12742 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
12743
12744         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
12745
12746 2005-08-10  Simon Josefsson  <jas@extundo.com>
12747
12748         * tests/test-iconvme.c: New file.
12749
12750 2005-08-10  Simon Josefsson  <jas@extundo.com>
12751
12752         * m4/strnlen.m4: New file.
12753
12754         * m4/strndup.m4: Don't check for strnlen declaration, done in
12755         strnlen.m4.
12756
12757 2005-08-10  Simon Josefsson  <jas@extundo.com>
12758
12759         * lib/strndup.c: Use strnlen.h.
12760
12761         * lib/strnlen.h: New file.
12762
12763 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
12764
12765         * README: Typos.
12766
12767 2005-08-02  Simon Josefsson  <jas@extundo.com>
12768
12769         * modules/readline: New file.
12770
12771 2005-08-02  Simon Josefsson  <jas@extundo.com>
12772
12773         * modules/getdelim: New file.
12774
12775         * modules/getline: Rewrite, don't use getndelim2.
12776
12777 2005-08-02  Simon Josefsson  <jas@extundo.com>
12778
12779         * m4/getline.m4: Separate out getdelim stuff into separate module.
12780
12781         * m4/getdelim.m4: New file.
12782
12783 2005-08-02  Simon Josefsson  <jas@extundo.com>
12784
12785         * lib/getline.h, getline.c: Rewrite.
12786
12787         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
12788
12789 2005-07-31  Bruno Haible  <bruno@clisp.org>
12790
12791         * lib/lock.h (gl_lock_initializer): New macro.
12792         (gl_lock_define_initialized): Use it.
12793         (gl_rwlock_initializer): New macro.
12794         (gl_rwlock_define_initialized): Use it.
12795         (gl_recursive_lock_initializer): New macro.
12796         (gl_recursive_lock_define_initialized): Use it.
12797
12798 2005-07-30  Karl Berry  <karl@gnu.org>
12799
12800         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
12801         Report from Ben Pfaff, regarding getopt.
12802
12803 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
12804
12805         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
12806         normal way.
12807         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
12808         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
12809         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
12810         (gl_GETOPT): Use the new macros.  Most of the implementation
12811         is moved to the new macros.  This is for programs like Emacs
12812         that don't want all the functionality of gl_GETOPT.
12813
12814 2005-07-26  Bruno Haible  <bruno@clisp.org>
12815
12816         * m4/lock.m4: Update from GNU gettext.
12817
12818 2005-07-26  Bruno Haible  <bruno@clisp.org>
12819
12820         * lib/lock.h: Update from GNU gettext.
12821         * lib/lock.c: Update from GNU gettext.
12822
12823 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
12824
12825         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
12826         obsolescent AC_TRY_RUN.  Include the default includes files, for
12827         'exit'.
12828
12829 2005-07-24  Bruno Haible  <bruno@clisp.org>
12830
12831         * modules/visibility: New file.
12832         * MODULES.html.sh (Misc): Add visibility.
12833
12834 2005-07-24  Bruno Haible  <bruno@clisp.org>
12835
12836         * m4/visibility.m4: New file.
12837
12838 2005-07-24  Bruno Haible  <bruno@clisp.org>
12839
12840         * doc/visibility.texi: New file.
12841
12842 2005-07-22  Bruno Haible  <bruno@clisp.org>
12843
12844         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
12845         $(ALLOCA_H), redundant through BUILT_SOURCES.
12846         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
12847         redundant through BUILT_SOURCES.
12848         * modules/byteswap (Makefile.am): Remove explicit dependency on
12849         $(BYTESWAP_H), redundant through BUILT_SOURCES.
12850         * modules/fnmatch (Makefile.am): Remove explicit dependency on
12851         $(FNMATCH_H), redundant through BUILT_SOURCES.
12852         * modules/getopt (Makefile.am): Remove explicit dependency on
12853         $(GETOPT_H), redundant through BUILT_SOURCES.
12854         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
12855         redundant through BUILT_SOURCES.
12856         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
12857         redundant through BUILT_SOURCES.
12858         * modules/stdbool (Makefile.am): Remove explicit dependency on
12859         $(STDBOOL_H), redundant through BUILT_SOURCES.
12860         * modules/stdint (Makefile.am): Remove explicit dependency on
12861         $(STDINT_H), redundant through BUILT_SOURCES.
12862         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
12863         Remove explicit dependency on $(SYSEXITS_H).
12864         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
12865
12866 2005-07-18  Simon Josefsson  <jas@extundo.com>
12867
12868         * lib/check-version.c (check_version): Accept identical versions too.
12869
12870 2005-07-18  Bruno Haible  <bruno@clisp.org>
12871
12872         * modules/lock: New file.
12873         * MODULES.html.sh (Multithreading): New section.
12874
12875 2005-07-18  Bruno Haible  <bruno@clisp.org>
12876
12877         * m4/lock.m4: New file, from GNU gettext.
12878
12879 2005-07-18  Bruno Haible  <bruno@clisp.org>
12880
12881         * lib/lock.h: New file, from GNU gettext.
12882         * lib/lock.c: New file, from GNU gettext.
12883
12884 2005-07-18  Bruno Haible  <bruno@clisp.org>
12885
12886         * lib/lock.h (gl_once_t): New type.
12887         (gl_once_define, gl_once): New macros.
12888         * lib/lock.c (fresh_once): New variable.
12889         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
12890         functions.
12891
12892 2005-07-16  Simon Josefsson  <jas@extundo.com>
12893
12894         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
12895         workaround, suggested by Bruno.
12896
12897 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
12898
12899         * modules/xalloc (Depends-on): Add xalloc-die.
12900         * modules/xvasprintf (Depends-on): Add xalloc-die.
12901
12902 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
12903
12904         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
12905         with a minor change.
12906
12907 2005-07-15  Bruno Haible  <bruno@clisp.org>
12908
12909         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
12910         When using lib/poll.c, define poll as rpl_poll.
12911
12912 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
12913
12914         * modules/argp (Depends-on): Remove unlocked-io.
12915
12916 2005-07-14  Derek Price  <derek@ximbiot.com>
12917
12918         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
12919         for glob symlink bug.
12920
12921 2005-07-14  Bruno Haible  <bruno@clisp.org>
12922
12923         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
12924         Instead, test for *_unlocked function declarations directly.
12925
12926 2005-07-11  Simon Josefsson  <jas@extundo.com>
12927
12928         * modules/size_max: New file.
12929
12930         * modules/xsize: Depend on size_max module for size_max.m4.
12931
12932 2005-07-11  Simon Josefsson  <jas@extundo.com>
12933
12934         * lib/size_max.h: New file.
12935
12936 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
12937
12938         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
12939         copyright symbol and the year.
12940         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
12941         (version_etc_va): Use parameterized copyright notice.
12942         Reword to conform to the current GNU coding standards.
12943
12944 2005-07-11  Karl Berry  <karl@gnu.org>
12945
12946         * doc/gnulib.texi (Quoting): new node.
12947         (Initial import): more info, from Patrice.
12948
12949 2005-07-11  Bruno Haible  <bruno@clisp.org>
12950
12951         * gnulib-tool (func_usage): Document option --avoid.
12952         (Command line options): Handle --avoid.
12953         (func_acceptable): New function.
12954         (func_modules_transitive_closure): Use it.
12955
12956 2005-07-11  Bruno Haible  <bruno@clisp.org>
12957
12958         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
12959         Reported by Jim Meyering.
12960
12961 2005-07-10  Bruno Haible  <bruno@clisp.org>
12962
12963         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
12964         Needed when size_t is smaller than 'unsigned int'.
12965         Reported by Paul Eggert.
12966
12967 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
12968
12969         * modules/argp (Depends-on): Add unlocked-io
12970
12971 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
12972
12973         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
12974         block of defines.
12975
12976 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
12977
12978         * config/srclist.txt: Comment out regcomp.c, since we have a porting
12979         fix now.
12980
12981 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
12982         and Paul Eggert  <eggert@cs.ucla.edu>
12983
12984         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
12985         in wint_t, not wchar_t.  Remove now-unnecessary cast.
12986
12987 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
12988
12989         * modules/regex (Files): Add lib/regex_internal.c,
12990         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
12991         (Depends-on): Add extensions.
12992         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
12993
12994 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
12995
12996         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
12997         pathconf.
12998         * m4/same.m4 (gl_SAME): Likewise.
12999         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
13000
13001         * m4/regex.m4: Adjust to new libc regex implementation.
13002         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
13003         all the .c and .h parts of (the new) regex.
13004         Quote the m4 stuff better.
13005         Check for RE_ICASE bug of old gnulib.
13006         Check for REG_STARTEND of recent libc.
13007         Rename local variables from jm_* to gl_*.
13008         Quote operand of "test -f".
13009         Say "recent enough" version of libc, not "version 2".
13010         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
13011         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
13012         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
13013         Remove check for btowc, isascii.
13014         Require AM_LANGINFO_CODESET.
13015
13016 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
13017
13018         * lib/regex.c, regex.h: Sync from libc.
13019         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
13020         * lib/regexec.c:
13021         New files, synced from libc, except that regex_internal.h
13022         currently has a small porting fix.
13023
13024 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
13025
13026         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
13027         regex_internal.c, regexec.c.
13028         Add regex_internal.h too, but as a comment, since the libc version
13029         is currently broken in gnulib mode.
13030
13031 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
13032
13033         Support programs like Emacs that use gnulib but not gettext.
13034         * MODULES.html.sh (Internationalization functions): Add gettext-h.
13035         * modules/gettext-h: New file.
13036         * modules/gettext (Files): Remove lib/gettext.h.
13037         (Depends-on): Add gettext-h.
13038         (Makefile.am): Remove lib_SOURCES.
13039         * modules/argmatch, modules/c-stack, modules/closeout:
13040         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
13041         * modules/execute, modules/file-type, modules/getaddrinfo:
13042         * modules/getopt, modules/human, modules/javacomp:
13043         * modules/javaexec, modules/mkdir-p, modules/obstack:
13044         * modules/openat, modules/pagealign_alloc, modules/pipe:
13045         * modules/quotearg, modules/regex, modules/rpmatch:
13046         * modules/unicodeio, modules/userspec, modules/version-etc:
13047         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
13048         * modules/xsetenv:
13049         Depend on gettext-h, not gettext.
13050
13051 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
13052
13053         * gnulib-tool (func_import): Add support for 'public domain' license.
13054         * modules/alloca, modules/atexit, modules/memmove:
13055         Now public domain, not GPL.
13056         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
13057         * modules/realloc, modules/strerror, modules/strtod:
13058         Now LGPL, not GPL.
13059
13060 2005-07-05  Bruno Haible  <bruno@clisp.org>
13061
13062         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
13063         autoconf CVS. Needed for mingw.
13064
13065 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
13066
13067         Remove the dependency of the strftime module on the tzset module.
13068         * modules/strftime (Depends-on): Remove dependency on tzset.
13069
13070 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
13071
13072         Remove the dependency of the strftime module on the tzset module.
13073         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
13074         gl_FUNC_TZSET_CLOBBER.
13075
13076 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
13077
13078         Remove the dependency of the strftime module on the tzset module.
13079         * lib/strftime.c (my_strftime)
13080         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
13081         Copy the input structure, to work around some of the bug with
13082         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
13083         Solaris releases, you should also use the tzset module, but we won't
13084         require it as a dependency any more since we don't want LGPLed code
13085         to depend on GPLed code.
13086
13087 2005-07-02  Jim Meyering  <jim@meyering.net>
13088
13089         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
13090         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
13091         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
13092         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
13093
13094 2005-07-02  Jim Meyering  <jim@meyering.net>
13095
13096         * lib/backupfile.c (backup_args): Change a `0' to NULL.
13097
13098 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
13099
13100         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
13101         declares only 'struct timespec;' (!).
13102
13103 2005-07-01  Jim Meyering  <jim@meyering.net>
13104
13105         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
13106         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
13107         * lib/save-cwd.c, tempname.c:
13108         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
13109         and don't include <sys/file.h>).
13110
13111 2005-06-29  Jim Meyering  <jim@meyering.net>
13112
13113         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
13114         type name.  Use the variable name instead.
13115         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
13116         Likewise.
13117
13118 2005-06-28  Simon Josefsson  <jas@extundo.com>
13119
13120         * modules/check-version (Files): Add check-version.m4.
13121
13122 2005-06-28  Simon Josefsson  <jas@extundo.com>
13123
13124         * m4/check-version.m4: New file, suggested by Jim Meyering
13125         <jim@meyering.net>.
13126
13127 2005-06-28  Simon Josefsson  <jas@extundo.com>
13128
13129         * lib/check-version.h, lib/check-version.c: New files.
13130
13131 2005-06-28  Simon Josefsson  <jas@extundo.com>
13132
13133         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
13134         collision with global variable.  Better indentation.  Don't
13135         increment buffer pointer beyond buffer end.  Based on comments
13136         from Paul Eggert <eggert@cs.ucla.edu>.
13137
13138         * lib/base64.h: Indent.
13139
13140 2005-06-28  Simon Josefsson  <jas@extundo.com>
13141
13142         * doc/gnulib.texi (Library version handling): New section.
13143
13144 2005-06-28  Jim Meyering  <jim@meyering.net>
13145
13146         * check-module (find_included_lib_files): Hard-code another
13147         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
13148         but modules/fts-lgpl (correctly) does not list those files.
13149
13150         * modules/canonicalize (Files): Add lib/pathmax.h.
13151
13152 2005-06-25  Simon Josefsson  <jas@extundo.com>
13153
13154         * modules/check-version: New file.
13155
13156 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
13157
13158         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
13159         initializer of struct addrinfo, as an indication that we don't
13160         care how many members the structure has.
13161
13162 2005-06-24  Derek Price  <derek@ximbiot.com>
13163         and Bruno Haible  <bruno@clisp.org>
13164
13165         Remove stat module & update lstat.
13166         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
13167         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
13168         * m4/stat.m4: Remove this file.
13169
13170 2005-06-24  Derek Price  <derek@ximbiot.com>
13171         and Bruno Haible  <bruno@clisp.org>
13172
13173         Remove stat module & update lstat.
13174         * lib/stat.c: Remove this file...
13175         (slash_aware_lstat): ...moving this content and its support...
13176         * lib/lstat.c (rpl_lstat): ...into here.
13177         * lib/lstat.h: New file.
13178
13179 2005-06-24  Derek Price  <derek@ximbiot.com>
13180         and Bruno Haible  <bruno@clisp.org>
13181
13182         Remove stat module & update lstat.
13183         * config/srclist.txt (libc sources): Remove stat.
13184
13185 2005-06-24  Derek Price  <derek@ximbiot.com>
13186         and Bruno Haible  <bruno@clisp.org>
13187
13188         Remove stat module & update lstat.
13189         * MODULES.html.sh (stat): Remove.
13190         * MODULES.html: Regenerated.
13191         * modules/lstat (Description): Correct function name.
13192         (Files): Add "lstat.h".
13193         (Depends-on): Remove stat, add xalloc, stat-macros.
13194         * modules/stat: Remove this file.
13195         (Include): Add "lstat.h", remove <sys/stat.h>.
13196
13197 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
13198
13199         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
13200         (ranged_convert): Don't save conversion in a temporary struct.
13201         This causes a warning with GCC 4.0.0, and anyway in the typical
13202         case it's not worth the extra 100 bytes or so of code.
13203         (ranged_convert, __mktime_internal): When calling a function via a
13204         pointer P, use P () rather than (*P) (), as we now assume C89 or
13205         better.
13206
13207 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
13208
13209         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
13210         "who -r" failed to give output.  Problem reported by Tim Waugh.
13211
13212         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
13213         (xcalloc): Use it to avoid needless tests.
13214         Problem reported by Jim Meyering.
13215
13216 2005-06-20  Derek Price  <derek@ximbiot.com>
13217
13218         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
13219         unnecessary for Autoconfs > 2.59c.
13220
13221 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
13222
13223         * lib/argp.h (__option_is_short): Check upper limit of
13224         __key. Isprint() requires its argument to have the value
13225         of an unsigned char or EOF.
13226
13227 2005-06-16  Jim Meyering  <jim@meyering.net>
13228
13229         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
13230         when either N or S is zero.
13231
13232 2005-06-16  Derek Price  <derek@ximbiot.com>
13233
13234         * m4/bison.m4: Declare YACC & YFLAGS precious.
13235
13236 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
13237
13238         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
13239         multibyte string or pattern, fall back on unibyte matching.
13240         Problem reported by James Youngman.
13241
13242 2005-06-08  Bruno Haible  <bruno@clisp.org>
13243
13244         * modules/csharpcomp: New file.
13245         * MODULES.html.sh (C#): Add csharpcomp.
13246
13247 2005-06-08  Bruno Haible  <bruno@clisp.org>
13248
13249         * m4/csharpcomp.m4: New file, from GNU gettext.
13250
13251 2005-06-08  Bruno Haible  <bruno@clisp.org>
13252
13253         * lib/csharpcomp.h: New file, from GNU gettext.
13254         * lib/csharpcomp.c: New file, from GNU gettext.
13255         * lib/csharpcomp.sh.in: New file, from GNU gettext.
13256
13257 2005-06-08  Bruno Haible  <bruno@clisp.org>
13258
13259         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
13260         warning on mingw.
13261
13262 2005-06-07  Derek Price  <derek@ximbiot.com>
13263
13264         Sync from CVS.
13265         * lib/glob_.h: Indent nested #ifdef.
13266
13267 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
13268
13269         Sync from coreutils.
13270         Use "file name" when talking about file names, instead of "filename"
13271         or "path", as per the GNU coding standards.
13272         * lib/mkdir-p.c: Renamed from makepath.c.
13273         (make_dir_parents): Renamed from make_path.  All callers changed.
13274         * lib/mkdir-p.h: Likewise.  All includers changed.
13275         * lib/filenamecat.c: Renamed from path-concat.c.
13276         (file_name_concat): Renamed from path_concat.  All callers changed.
13277         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
13278         * lib/filenamecat.h: Likewise.  All includers changed.
13279         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
13280         in comments or local variable names.
13281         * lib/basename.c: Likewise.
13282         * lib/canonicalize.c, canonicalize.h: Likewise.
13283         * lib/dirname.c, dirname.h: Likewise.
13284         * lib/euidaccess.c: Likewise.
13285         * lib/exclude.c: Likewise
13286         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
13287         * lib/fsusage.c, fsuage.h: Likewise.
13288         * lib/fts.c, fts_.h: Likewise.
13289         * lib/getcwd.c: Likewise.
13290         * lib/getloadavg.c: Likewise.
13291         * lib/mkstemp.c: Likewise.
13292         * lib/mountlist.c, mountlist.h: Likewise.
13293         * lib/openat.c, openat.h: Likewise.
13294         * lib/readlink-stub.c: Likewise.
13295         * lib/readutmp.c, readutmp.h: Likewise.
13296         * lib/rename.c: Likewise.
13297         * lib/rmdir.c: Likewise.
13298         * lib/same.c: Likewise.
13299         * lib/savedir.c: Likewise.
13300         * lib/stripslash.c: Likewise.
13301         * lib/tempname.c: Likewise.
13302         * lib/xreadlink.c: Likewise.
13303         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
13304         All uses changed.
13305         * lib/exclude.h: Likewise.
13306
13307         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
13308         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
13309         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
13310         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
13311         * lib/pathmax.h: Include <limits.h> unconditionally, since other
13312         files have been getting away with it for years (MORE/BSD 4.3
13313         is extinct now).
13314         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
13315         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
13316
13317         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
13318         Define to 256, not 255, as per modern POSIX.
13319
13320 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
13321
13322         Sync from coreutils.
13323         Use "file name" when talking about file names, instead of "filename"
13324         or "path", as per the GNU coding standards.
13325         * MODULES.html.sh: mkdir-p renamed from makepath.
13326         filenamecat renamed from path-concat.
13327         * modules/filenamecat: Renamed from modules/path-concat.
13328         (Files): filenamecat.h and filenamecat.c renamed from
13329         path-concat.h and path-concat.c.
13330         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
13331         (Include): filenamecat.h, not path-concat.h.
13332         * modules/mkdir-p: Renamed from modules/makepath.
13333         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
13334         makepath.c.
13335         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
13336         (Include): mkdir-p.h, not makepath.h.
13337
13338 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
13339
13340         Sync from coreutils.
13341         * m4/mkdir-p.m4: Renamed from makepath.m4.
13342         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
13343         Rename files from makepath.c to mkdir-p.c, and from
13344         makepath.h to mkdir-p.h.
13345         * m4/filenamecat.m4: Renamed from path-concat.m4.
13346         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
13347         Rename files from path-concat.c to filenamecat.c,
13348         and from path-concat.h to filenamecat.h.
13349         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
13350         "file name" in local variables or comments.
13351         * m4/rename.m4: Likewise.
13352
13353 2005-06-01  Bruno Haible  <bruno@clisp.org>
13354
13355         * modules/csharpexec: New file.
13356         * MODULES.html.sh (C#): New section.
13357
13358 2005-06-01  Bruno Haible  <bruno@clisp.org>
13359
13360         * m4/csharp.m4: New file, from GNU gettext.
13361         * m4/csharpexec.m4: New file, from GNU gettext.
13362
13363 2005-06-01  Bruno Haible  <bruno@clisp.org>
13364
13365         * lib/csharpexec.h: New file, from GNU gettext.
13366         * lib/csharpexec.c: New file, from GNU gettext.
13367         * lib/csharpexec.sh.in: New file, from GNU gettext.
13368
13369 2005-05-31  Derek Price  <derek@ximbiot.com>
13370             Paul Eggert  <eggert@cs.ucla.edu>
13371
13372         Sync from cvs.
13373         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
13374
13375 2005-05-31  Derek Price  <derek@ximbiot.com>
13376             Paul Eggert  <eggert@cs.ucla.edu>
13377
13378         Sync from cvs.
13379         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
13380
13381 2005-05-29  Derek Price  <derek@ximbiot.com>
13382
13383         * config/srclist.txt (glob_.h, glob.c): Add these files.
13384
13385 2005-05-29  Derek Price  <derek@ximbiot.com>
13386
13387         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
13388         * modules/glob: New file.
13389         * modules/getlogin_r: Add link to POSIX spec in description.
13390
13391 2005-05-29  Derek Price  <derek@ximbiot.com>
13392             Paul Eggert  <eggert@cs.ucla.edu>
13393
13394         * m4/glob.m4: New file.
13395
13396 2005-05-29  Derek Price  <derek@ximbiot.com>
13397             Paul Eggert  <eggert@cs.ucla.edu>
13398
13399         * lib/glob_.h, lib/glob.c: New files.
13400
13401 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
13402
13403         * modules/fts (Files): Remove m4/inttypes-pri.m4.
13404         * modules/fts-lgpl (Depends-on): Remove gettext.
13405
13406 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
13407
13408         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
13409         and don't require gt_INTTYPES_PRI.
13410
13411 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
13412
13413         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
13414
13415         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
13416         the configuration hassle isn't worth it.
13417         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
13418         (LONGEST_MODIFIER, PRIuMAX): Remove.
13419
13420 2005-05-27  Bruno Haible  <bruno@clisp.org>
13421
13422         * lib/getlogin_r.h: Remove second include of <stddef.h>.
13423
13424 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
13425
13426         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
13427         _POSIX_PTHREAD_SEMANTICS for Solaris.
13428
13429 2005-05-25  Derek Price  <derek@ximbiot.com>
13430
13431         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
13432
13433 2005-05-25  Derek Price  <derek@ximbiot.com>
13434             Paul Eggert  <eggert@cs.ucla.edu>
13435
13436         * modules/getlogin_r, m4/getlogin_r.m4: New files.
13437         * lib/getlogin_r.c, getlogin_r.h: New files.
13438
13439 2005-05-25  Bruno Haible  <bruno@clisp.org>
13440             Derek Price  <derek@ximbiot.com>
13441
13442         * lib/getlogin_r.h: Simplify API documentation.
13443
13444 2005-05-23  Derek Price  <derek@ximbiot.com>
13445
13446         * modules/minmax (Files): Add m4/minmax.m4.
13447         (configure.ac): Add gl_MINMAX.
13448
13449 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
13450
13451         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
13452         so that unistd-safer.h (GPL'ed code) need not be included.
13453
13454 2005-05-22  Bruno Haible  <bruno@clisp.org>
13455
13456         * m4/minmax.m4: New file.
13457         Based on a patch by Derek Price <derek@ximbiot.com>.
13458
13459 2005-05-22  Bruno Haible  <bruno@clisp.org>
13460
13461         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
13462         (INT64_MIN): Fix definition.
13463         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
13464
13465         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
13466         NEED_SIGNED_INT_TYPES.
13467
13468         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
13469         HAVE_SYSTEM_INTTYPES.
13470
13471 2005-05-22  Bruno Haible  <bruno@clisp.org>
13472
13473         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
13474         Also include <sys/param.h> if it defines MIN, MAX.
13475         Based on a patch by Derek Price <derek@ximbiot.com>.
13476
13477 2005-05-21  Jim Meyering  <jim@meyering.net>
13478
13479         * modules/fts (Files): Add m4/inttypes-pri.m4.
13480         (Depends-on): Add lstat and remove gettext.  Alphabetize.
13481
13482 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
13483
13484         New fts module.
13485         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
13486         (setup_dir, free_dir): New functions.
13487         (enter_dir, leave_dir): Define trivial
13488         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
13489         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
13490         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
13491         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
13492         Move to fts-cycle.c.
13493         (fts_open): Use setup_dir.
13494         (fts_close): Use free_dir.
13495         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
13496         This adds a label and some gotos, but the alternatives were messier.
13497         Check for memory allocation failure when entering a dir.
13498         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
13499         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
13500         (FTS): New member fts_cycle, that is a union that contains the
13501         old active_dir_ht and cycle_state.  All uses changed to mention
13502         fts_cycle.ht and fts_cycle.state.
13503         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
13504         fts.c, with the following changes:
13505         (setup_dir, free_dir): New functions.
13506         (enter_dir): Now returns bool.  Return true if successful, false
13507         if memory exhausted.  All callers changed.
13508         Do not bother partly cleaning up on
13509         memory allocation failure; that is free_dir's job.
13510         However, free ad if hash_insert fails, to avoid memory leak.
13511         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
13512         fts->fts_options to see which union member to use.
13513
13514 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
13515
13516         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
13517         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
13518
13519 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
13520
13521         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
13522
13523 2005-05-20  Jim Meyering  <jim@meyering.net>
13524
13525         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
13526         Now a macro, to pacify GCC.
13527
13528 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
13529
13530         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
13531         of -1.
13532
13533 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
13534
13535         * lib/chown.c (rpl_chown): Return -1 on failure.
13536
13537 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
13538
13539         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
13540         Don't check for stddef.h.
13541         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
13542         don't use its results.
13543         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
13544         since we include them unconditionally.  Don't require
13545         AM_STDBOOL_H, since stdbool is a prerequisite.
13546         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
13547         since we assume C89 or better.
13548         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
13549         as we don't use their results.
13550         Don't check for fchdir, memmove, memset, strrchr, as we use
13551         them unconditionally.
13552         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
13553         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
13554
13555 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
13556
13557         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
13558         Include <stddef.h> unconditionally, since we assume C89 now.
13559         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
13560         * lib/fts.c: Include fts_.h first, to check interface.
13561         Do not include intprops.h; no longer needed.
13562         Include cycle-check.h and hash.h, since fts_.h no longer does.
13563         Remove unnecessary casts of closedir to void.
13564         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
13565         decide whether to decrement nlinks.
13566         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
13567         (FTS): Use struct hash_table * instead of Hash_table, so that
13568         we no longer need to include hash.h here.
13569
13570 2005-05-18  Jim Meyering  <jim@meyering.net>
13571
13572         * modules/dirfd (License): Change to LGPL.  Most of the code
13573         is already in the public domain.
13574
13575 2005-05-18  Jim Meyering  <jim@meyering.net>
13576
13577         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
13578         Reported by Yoann Vandoorselaere.
13579
13580 2005-05-17  Jim Meyering  <jim@meyering.net>
13581
13582         * m4/fts.m4: New file, from coreutils.
13583
13584 2005-05-17  Jim Meyering  <jim@meyering.net>
13585
13586         * lib/fts.c, lib/fts_.h: New files, from coreutils.
13587
13588 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
13589
13590         Sync from coreutils.
13591         * m4/unlinkdir.m4: New file.
13592
13593 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
13594
13595         Sync from coreutils.
13596         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
13597         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
13598         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
13599         White space changes only.
13600         * lib/makepath.c (make_path): Port to hosts where leading "//" is
13601         special.
13602         * lib/yesno.c: Include getline.h, not ctype.h.
13603         (yesno): Don't remove leading white space; POSIX doesn't allow it.
13604         Use getline to remove arbitrary restriction on response length.
13605
13606 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
13607
13608         * config/srclist-update: Spell out "Street" in FSF postal
13609         mail address; this is the style the FSF seems to prefer.
13610
13611         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
13612         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
13613         this updates FSF postal mail address.
13614
13615         Sync from coreutils.
13616         * modules/unlinkdir: New file.
13617         * modules/yesno (Depends-on): Add getline.
13618         * MODULES.html.sh (File system functions): Add unlinkdir.
13619
13620 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
13621
13622         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
13623         lib/strsep.h:
13624         Change the initial comment to refer to GPL, not LGPL.
13625         gnulib-tool will change it to LGPL as needed.
13626
13627         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
13628         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
13629         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
13630         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
13631         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
13632         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
13633         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
13634         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
13635         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
13636         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
13637         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
13638         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
13639         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
13640         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
13641         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
13642         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
13643         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
13644         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
13645         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
13646         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
13647         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
13648         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
13649         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
13650         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
13651         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
13652         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
13653         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
13654         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
13655         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
13656         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
13657         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
13658         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
13659         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
13660         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
13661         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
13662         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
13663         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
13664         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
13665         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
13666         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
13667         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
13668         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
13669         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
13670         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
13671         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
13672         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
13673         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
13674         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
13675         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
13676         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
13677         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
13678         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
13679         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
13680         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
13681         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
13682         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
13683         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
13684         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
13685         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
13686         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
13687         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
13688         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
13689         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
13690         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
13691         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
13692         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
13693         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
13694         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
13695         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
13696         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
13697         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
13698         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
13699         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
13700         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
13701         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
13702         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
13703         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
13704         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
13705         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
13706         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
13707         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
13708         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
13709         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
13710         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
13711         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
13712         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
13713         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
13714         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
13715         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
13716         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
13717         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
13718         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
13719         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
13720         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
13721         lib/yesno.c, lib/yesno.h:
13722         Update FSF postal mail address.
13723
13724 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
13725
13726         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
13727         tests/test-memmem.c, tests/test-stpncpy.c:
13728         Update FSF postal mail address.
13729
13730 2005-05-13  Bruno Haible  <bruno@clisp.org>
13731
13732         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
13733         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
13734         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
13735         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
13736         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
13737         Add support for 64-bit integers in the MSVC compiler.
13738
13739 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
13740
13741         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
13742
13743 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
13744
13745         * gnulib-tool (func_import): Sort and uniquify recommended includes.
13746
13747 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
13748
13749         * doc/getdate.texi (General date syntax): Don't say that date
13750         date --iso-8601=ns generates acceptable dates; it doesn't yet.
13751         Problem reported by Nic Ferrier.
13752
13753 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
13754
13755         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
13756         specified in ai_socktype. Fix invalid ai_protocol
13757         check. ai_protocol is usually set to 0 or depending on
13758         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
13759         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
13760         ai_socktype / ai_protocol in the returned addrinfo structure.
13761
13762 2005-05-10  Simon Josefsson  <jas@extundo.com>
13763
13764         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
13765         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
13766
13767 2005-05-10  Karl Berry  <karl@gnu.org>
13768
13769         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
13770         (from http://www.gnu.org/licenses).
13771         * doc/COPYING.LIB: also rename to COPYING.LESSER.
13772         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
13773         fdl.texi suffices.
13774
13775 2005-05-10  Karl Berry  <karl@gnu.org>
13776
13777         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
13778         (COPYING.DOC): remove.
13779
13780         * config/srclist-update: new FSF address.
13781
13782 2005-05-10  Derek Price  <derek@ximbiot.com>
13783
13784         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
13785         possible.
13786
13787 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
13788             Bruno Haible  <bruno@clisp.org>
13789
13790         * modules/inet_ntop: New file.
13791         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
13792         inet_ntop.
13793
13794 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
13795             Bruno Haible  <bruno@clisp.org>
13796
13797         * m4/inet_ntop.m4: New file.
13798
13799 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
13800             Bruno Haible  <bruno@clisp.org>
13801
13802         * lib/inet_ntop.h: New file.
13803         * lib/inet_ntop.c: New file, from glibc with modifications.
13804
13805 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
13806
13807         * modules/time_r (License): Change to LGPL.
13808         * modules/extensions (License): Change to LGPL.  Actually,
13809         the license is more permissive than that, but currently gnulib-tool
13810         doesn't know how to handle more-permissive licenses.
13811
13812         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
13813         Problem reported by Dave Love.
13814
13815 2005-05-08  Jim Meyering  <jim@meyering.net>
13816
13817         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
13818         blank.
13819
13820 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
13821
13822         * modules/argmatch (Depends-on): Add stdbool.
13823         * modules/backupfile (Depends-on): Likewise.
13824         * modules/chdir-long (Depends-on): Likewise.
13825         * modules/closeout (Depends-on): Likewise.
13826         * modules/cycle-check (Depends-on): Likewise.
13827         * modules/dirname (Depends-on): Likewise.
13828         * modules/fnmatch (Depends-on): Likewise.
13829         * modules/fsusage (Depends-on): Likewise.
13830         * modules/fwriteerror (Depends-on): Likewise.
13831         * modules/getcwd (Depends-on): Likewise.
13832         * modules/getloadavg (Depends-on): Likewise.
13833         * modules/hard-locale (Depends-on): Likewise.
13834         * modules/makepath (Depends-on): Likewise.
13835         * modules/mountlist (Depends-on): Likewise.
13836         * modules/nanosleep (Depends-on): Likewise.
13837         * modules/posixtm (Depends-on): Likewise.
13838         * modules/quotearg (Depends-on): Likewise.
13839         * modules/readtokens (Depends-on): Likewise.
13840         * modules/readtokens0 (Depends-on): Likewise.
13841         * modules/readutmp (Depends-on): Likewise.
13842         * modules/save-cwd (Depends-on): Likewise.
13843         * modules/strftime (Depends-on): Likewise.
13844         * modules/userspec (Depends-on): Likewise.
13845         * modules/utimecmp (Depends-on): Likewise.
13846         * modules/xgetcwd (Depends-on): Likewise.
13847         * modules/xnanosleep (Depends-on): Likewise.
13848         * modules/xstrtod (Depends-on): Likewise.
13849         * modules/yesno (Depends-on): Likewise.
13850
13851 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
13852
13853         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
13854         needless checks.
13855
13856 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
13857
13858         Merge from coreutils.  Among other things,
13859         add bulletproofing for cases where stdin, stdout, or stderr are closed.
13860         * lib/fd-safer.c: New file.
13861         * lib/fcntl-safer.h, open-safer.c: Remove.
13862         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
13863         * lib/dup-safer.c: Include unistd-safer.h first.
13864         Don't include errno.h.
13865         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
13866         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
13867         * lib/file-type.c: Rely on file-type.h change.
13868         * lib/getloadavg.c: Include unistd-safer.h.
13869         (getloadavg): Use safer open.
13870         * lib/getusershell.c: Include "stdio-safer.h".
13871         (getusershell): Use safer fopen.
13872         * lib/long-options.c (long_options): Use NULL rather than 0.
13873         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
13874         'free'.
13875         * lib/modechange.c: Likewise.
13876         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
13877         (MODE_DONE): New constant.
13878         (struct mode_change): Remove 'next' member.
13879         (make_node_op_equals): New function; like the old one of the
13880         same name, except it allocates an array.
13881         (mode_compile, mode_create_from_ref): Use it.
13882         (mode_compile): Allocate result as an array, not a linked list.
13883         Parse octal string ourself, so that we catch mistakes like "+0".
13884         (mode_adjust): Arg is an array, not a linked list.
13885         * lib/modechange.c: Include stat-macros.h, xalloc.h.
13886         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
13887         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
13888         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
13889         Remove.  This is now stat-macros.h's job.
13890         (talloc): Remove.  All callers replaced by xalloc, so that
13891         our invokers don't have to worry about reporting memory failures.
13892         (make_node_op_equals): Remove.
13893         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
13894         New constants.
13895         (struct mode_change): Moved here from modechange.h.
13896         (mode_append_entry): Remove.
13897         (mode_compile): Remove MASKED_OPS arg, since it encouraged
13898         apps to have incorrect behavior.  Use simpler algorithm for head
13899         and tail.  Don't futz with umask; that's now the job of mode_adjust.
13900         Detect more invalid usages rather than having somewhat-random behavior.
13901         Don't insert an "a=" action, as that leads to incorrect behavior.
13902         (mode_compile, mode_create_from_ref): Return NULL on error instead
13903         of an enum, since now there's only one way to have an error.  All
13904         callers changed.
13905         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
13906         at the correct time.  Simplify calculation of "+u" and its ilk.
13907         Don't mishandle "+X".
13908         (mode_free): Remove "register" and localize decls.
13909         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
13910         (struct mode_change): Move to modechange.c; callers don't
13911         need to see this stuff.
13912         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
13913         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
13914         (mode_change, mode_adjust): Reflect the new signatures noted above.
13915         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
13916         that might redefine system include files.
13917         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
13918         (my_usleep): Use NULL rather than (void *) 0.
13919         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
13920         Use siginterrupt to specify that system calls should be interrupted.
13921         (rpl_nanosleep): Move initialization of suspended closer to call of
13922         my_usleep.
13923         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
13924         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
13925         (desirable_utmp_entry): New function.
13926         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
13927         using x2nrealloc, to simplify logic.
13928         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
13929         size calculation.  Do not assume utmp file is a regular file.
13930         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
13931         (READ_UTMP_CHECK_PIDS): New constant.
13932         * lib/save-cwd.c: Include unistd-safer.h.
13933         (save_cwd): Use fd_safer.
13934         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
13935         [!_LIBC] Include "stat-macros.h" instead.
13936         * lib/unistd-safer.h (fd_safer): New decl.
13937
13938 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
13939
13940         * modules/getloadavg (Depends-on): Add unistd-safer.
13941         * modules/getusershell (Depends-on): Add stdio-safer.
13942         * modules/lstat (Depends-on): Remove xalloc.
13943         * modules/mkstemp (Depends-on): Add stat-macros.
13944         * modules/modechange (Depends-on): Remove xstrtol.
13945         Add stat-macros, xalloc.
13946         * modules/save-cwd (Depends-on): Add unistd-safer.
13947         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
13948         * modules/unistd-safer (Files): Add lib/fd-safer.c
13949         (Makefile.am): Remove lib_SOURCES.
13950
13951         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
13952         Remove fcntl-safer; unistd-safer supersedes it.
13953
13954 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
13955
13956         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
13957         AC_HEADER_STAT.
13958         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
13959         (gl_PREREQ_CHOWN): Remove.
13960         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
13961         it.  Don't require AC_HEADER_STAT.
13962         (gl_PREREQ_LSTAT): Remove.
13963         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
13964         Don't require AC_HEADER_STAT.
13965         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
13966         (gl_PREREQ_RMDIR): Remove.
13967         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
13968         mention stat-macros.h or AC_HEADER_STAT, since we'll make
13969         the stat-macros module a prerequisite.
13970         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
13971         * m4/filemode.m4 (gl_FILEMODE): Likewise.
13972         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
13973         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
13974         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
13975         variable names.
13976         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
13977         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
13978         variable prefixes.
13979         * m4/fcntl-safer.m4: Remove.
13980         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
13981         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
13982         Invoke gl_PREREQ_FD_SAFER.
13983         (gl_PREREQ_FD_SAFER): New macro.
13984         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
13985         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
13986         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
13987         Remove duplicate call to AC_LIBOBJ(readutmp).
13988         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
13989
13990         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
13991         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
13992
13993 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
13994
13995         * MODULES.html.sh (Misc): Add byteswap.
13996
13997 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
13998
13999         * modules/getcwd (Depends-on): Add extensions.
14000         * modules/openat (Depends-on): Likewise.
14001
14002 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
14003
14004         * modules/byteswap: New file.
14005
14006 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
14007
14008         * m4/byteswap.m4: New file.
14009
14010 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
14011
14012         * lib/byteswap_.h: New file.
14013
14014 2005-04-25  Karl Berry  <karl@gnu.org>
14015
14016         * m4/gettext.m4: Update from GNU gettext 0.14.4.
14017
14018 2005-04-25  Albert Chin  <china@thewrittenword.com>
14019
14020         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
14021         Toolkit C bug.
14022
14023 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
14024
14025         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
14026         (func_ln_if_changed) Remove forcibly for no error message
14027         in case file does not exist.
14028
14029 2005-04-19  Simon Josefsson  <jas@extundo.com>
14030
14031         * gnulib-tool (Options): Make --symlink mean --symbolic.
14032
14033 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
14034
14035         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
14036
14037 2005-04-16  Simon Josefsson  <jas@extundo.com>
14038
14039         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
14040
14041 2005-04-15  Simon Josefsson  <jas@extundo.com>
14042
14043         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
14044
14045 2005-04-15  Simon Josefsson  <jas@extundo.com>
14046
14047         * gnulib-tool: Rename --symlink to --symbolic.
14048
14049 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
14050
14051         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
14052         symbolic links to files instead of copying/moving.  Add --aux-dir,
14053         specifying directory relative --dir where auxiliary build tools
14054         are placed.
14055
14056 2005-04-14  Bruno Haible  <bruno@clisp.org>
14057
14058         * modules/allocsa (License): Change to LGPL.
14059         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
14060
14061 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
14062
14063         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
14064         that "UTC +1 second" continues to work.  Problem reported
14065         by Dmitry V. Levin.
14066         (relunit_snumber): New rule.
14067         (relunit): Use it.
14068
14069 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
14070
14071         * lib/getdate.y (universal_time_zone_table): New constant.
14072         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
14073         universal_time_zone_table.
14074         (lookup_zone): Prefer universal_time_zone_table to
14075         local_time_zone_table, so that "GMT" time stamps are allowed in
14076         London during the summer.  Problem reported by Ian Abbott.
14077
14078 2005-04-12  Jim Meyering  <jim@meyering.net>
14079
14080         * lib/human.c (humblock): Set *options even when returning due to
14081         xstrtoumax conversion failure.  Thanks to a used-uninitialized
14082         warning from gcc-4.
14083
14084 2005-04-09  Jim Meyering  <jim@meyering.net>
14085
14086         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
14087         -Wuninitialized: initialize tm0.tm_year.
14088
14089 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
14090
14091         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
14092         count, since there's no maximum.  All uses changed.
14093         Add member dsts_seen.
14094         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
14095         not being INT_MAX.
14096         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
14097         Use pc_rels_seen to decide whther a date is absolute.
14098
14099         * lib/getdate.y (number): Don't overwrite year.
14100         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
14101         check.
14102
14103 2005-04-02  Simon Josefsson  <jas@extundo.com>
14104
14105         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
14106         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
14107
14108 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
14109
14110         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
14111         where no absolute path name can be longer than PATH_MAX.
14112
14113 2005-03-27  Jim Meyering  <jim@meyering.net>
14114
14115         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
14116
14117 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
14118
14119         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
14120         "one's complement" -> "ones' complement" in comment, as per Knuth.
14121         "value of type" -> "type or expression" in comment.
14122         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
14123
14124 2005-03-26  Jim Meyering  <jim@meyering.net>
14125
14126         Comment nits.
14127         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
14128         Correct typos: s/or/of/.
14129
14130 2005-03-26  Jim Meyering  <jim@meyering.net>
14131
14132         * modules/check-include-files: Move to ../ and rename to...
14133         * check-module: ...this.
14134
14135 2005-03-25  Jim Meyering  <jim@meyering.net>
14136
14137         * modules/xvasprintf (Files): Add xalloc.h.
14138
14139 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
14140
14141         * modules/gettext (Files): config/config.rpath ->
14142         build-aux/config.rpath
14143         * modules/iconv (Files): Likewise.
14144         Problem reported by Oskar Liljeblad.
14145
14146 2005-03-23  Jim Meyering  <jim@meyering.net>
14147
14148         * modules/check-include-files: New script to check for
14149         missing dependencies, multiple includes, etc.
14150
14151         * modules/c-strtold (Depends-on): Add xalloc.
14152         * modules/c-strtod (Depends-on): Add xalloc.
14153         * modules/hash (Depends-on): Add xalloc.
14154         (Files): Remove lib/xalloc.h.
14155
14156         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
14157         * modules/userspec (Files): Add lib/inttostr.h.
14158
14159 2005-03-23  Jim Meyering  <jim@meyering.net>
14160
14161         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
14162
14163 2005-03-22  Jim Meyering  <jim@meyering.net>
14164
14165         * modules/stat-macros: New module.
14166         * modules/canonicalize, modules/euidaccess, modules/file-type,
14167         * modules/filemode, modules/lchown, modules/makepath,
14168         * modules/rmdir, modules/stat: Depend on new stat-macros module
14169         rather than listing lib/stat-macros.h manually.
14170         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
14171
14172 2005-03-22  Jim Meyering  <jim@meyering.net>
14173
14174         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
14175
14176 2005-03-22  Bruno Haible  <bruno@clisp.org>
14177
14178         * config/srclist.txt: Replace target directory 'config' with
14179         'build-aux'.
14180         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
14181         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
14182         ../build-aux/.
14183
14184 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
14185
14186         * modules/chdir-long (Depends-on): Add mempcpy.
14187
14188         * modules/acl, modules/backupfile, modules/c-strtod,
14189         modules/c-strtold, modules/canon-host, modules/canonicalize,
14190         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
14191         modules/exclude, modules/exitfail, modules/file-type,
14192         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
14193         modules/getdate, modules/getline, modules/getpagesize,
14194         modules/getpass, modules/getugroups, modules/group-member,
14195         modules/hard-locale, modules/hash, modules/human, modules/idcache,
14196         modules/inttostr, modules/long-options, modules/makepath,
14197         modules/md5, modules/memcasecmp, modules/memcoll,
14198         modules/modechange, modules/mountlist, modules/path-concat,
14199         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
14200         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
14201         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
14202         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
14203         modules/strftime, modules/strndup, modules/strverscmp,
14204         modules/timespec, modules/unlocked-io, modules/userspec,
14205         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
14206         modules/yesno:
14207         Remove lib_SOURCES line from Makefile.am section, as this is now
14208         done automatically by the corresponding Autoconf macro.
14209
14210 2005-03-21  Jim Meyering  <jim@meyering.net>
14211
14212         Changes imported from coreutils.
14213
14214         * lib/cycle-check.c: Don't include xalloc.h.
14215
14216         * lib/path-concat.c: Don't include assert.h.
14217         (path_concat): Remove assertion that would have triggered
14218         for ABASE starting with more than one slash.
14219         Reported by Andreas Schwab.
14220
14221         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
14222         properly when ABASE is an absolute file name.
14223         Correct the description of this function.
14224         Include <assert.h>.
14225         Add an assertion and a test driver.
14226         This fixes a bug introduced on 2004-07-02.
14227         Andreas Schwab reported the resulting failure of cp --parents:
14228         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
14229
14230 2005-03-21  Jim Meyering  <jim@meyering.net>
14231
14232         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
14233         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
14234
14235 2005-03-21  Jim Meyering  <jim@meyering.net>
14236         and  Paul Eggert  <eggert@cs.ucla.edu>
14237
14238         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
14239         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
14240         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
14241         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
14242         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
14243         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
14244         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
14245         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
14246         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
14247         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
14248         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
14249         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
14250         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
14251         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
14252         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
14253         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
14254         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
14255         for these modules.
14256
14257 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
14258
14259         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
14260         (which shouldn't happen), generate nothing instead of returning 0
14261         immediately, so that nstrftime (NULL, ...) doesn't return 0.
14262
14263 2005-03-16  Bruno Haible  <bruno@clisp.org>
14264
14265         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
14266         HAVE_LONGLONG_64BIT.
14267
14268 2005-03-16  Bruno Haible  <bruno@clisp.org>
14269
14270         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
14271         HAVE_LONGLONG_64BIT.
14272
14273 2005-03-16  Bruno Haible  <bruno@clisp.org>
14274
14275         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
14276         HAVE_LONGLONG_64BIT.
14277
14278 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
14279
14280         * lib/strftime.c (my_strftime): Prepend space to format so that we can
14281         reliably distinguish strftime failure from empty output on POSIX
14282         hosts.
14283
14284 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
14285
14286         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
14287         (iconv_string): Don't guess a size-zero buffer, as that might cause
14288         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
14289         result would be 'too large', where 'too large' is (heuristically)
14290         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
14291         overflow concerns.  This will prevent some unwanted malloc failures
14292         when the inputs are very large.
14293
14294 2005-03-15  Karl Berry  <karl@gnu.org>
14295
14296         * config/srclist.txt (config.rpath): from gettext.
14297         * config/config.rpath: update.
14298
14299 2005-03-15  Bruno Haible  <bruno@clisp.org>
14300
14301         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
14302         to 'negate'.
14303
14304         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
14305         variable.
14306
14307         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
14308         results.
14309
14310 2005-03-14  Simon Josefsson  <jas@extundo.com>
14311
14312         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
14313         <fx@gnu.org>.
14314
14315 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
14316
14317         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
14318         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
14319         intprops.h.
14320         * lib/strtol.c: Likewise.
14321
14322 2005-03-14  Jim Meyering  <jim@meyering.net>
14323
14324         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
14325         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
14326         to be nonzero so that we (and caller) can detect the difference
14327         between a valid zero-length expansion and an error return, even
14328         when the underlying strftime fails before writing anything into
14329         that location.
14330
14331 2005-03-14  Bruno Haible  <bruno@clisp.org>
14332
14333         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
14334         Update from GNU gettext 0.14.3.
14335
14336 2005-03-10  Jim Meyering  <jim@meyering.net>
14337
14338         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
14339
14340 2005-03-10  Jim Meyering  <jim@meyering.net>
14341
14342         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
14343         so that this module works on systems without fchdir.
14344
14345 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
14346
14347         Factor int-properties macros into a single file, except for
14348         glibc-related files.
14349         * lib/intprops.h: New file.
14350         * lib/getloadavg.c: Include it instead of limits.h.
14351         (INT_STRLEN_BOUND): Remove.
14352         * lib/human.c: Include intprops.h.
14353         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
14354         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
14355         302/1000.
14356         * lib/inttostr.h: Include intprops.h instead of limits.h.
14357         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
14358         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
14359         for consistency with intprops.h.
14360         (time_t_is_integer, twos_complement_arithmetic): Use them.
14361         * lib/sig2str.h: Include <signal.h>, intprops.h.
14362         (INT_STRLEN_BOUND): Remove.
14363         * lib/strftime.c (TYPE_SIGNED): Remove.
14364         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
14365         * lib/strtol.c: Adjust comments to match intprops.h.
14366         * lib/userspec.c: Include intprops.h.
14367         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
14368         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
14369         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
14370         instead of rolling our own expressions.
14371         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
14372
14373         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
14374         instead of int.
14375         (my_strftime): Do not mishandle years close to INT_MAX, by doing
14376         the right thing even if adding 1900 would overflow.  Similarly
14377         for tm_mon + 1 and tm_yday + 1.
14378         Make %Y always equivalent to %C%y, and similarly for %G and %g.
14379         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
14380         (DO_SIGNED_NUMBER): New macro.
14381         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
14382
14383 2005-03-07  Bruno Haible  <bruno@clisp.org>
14384
14385         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
14386
14387 2005-03-07  Bruno Haible  <bruno@clisp.org>
14388
14389         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
14390
14391 2005-03-04  Derek R. Price  <derek@ximbiot.com>
14392
14393         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
14394         (func_import): Only replace files via --import when they have actually
14395         changed.
14396
14397 2005-03-03  Derek R. Price  <derek@ximbiot.com>
14398
14399         * m4/mmap-anon.m4: New file.
14400         * m4/pagealign_alloc.m4: New file.
14401
14402 2005-03-03  Derek R. Price  <derek@ximbiot.com>
14403             Bruno Haible  <bruno@clisp.org>
14404
14405         * modules/pagealign_alloc: New file.
14406         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
14407
14408 2005-03-03  Derek R. Price  <derek@ximbiot.com>
14409             Bruno Haible  <bruno@clisp.org>
14410
14411         * lib/pagealign_alloc.h: New file.
14412         * lib/pagealign_alloc.c: New file.
14413
14414 2005-03-03  Bruno Haible  <bruno@clisp.org>
14415
14416         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
14417         Use an all-permissive copyright notice, recommended by RMS.
14418
14419 2005-03-02  Bruno Haible  <bruno@clisp.org>
14420
14421         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
14422         of AIX, the replacement has to be done only after <string.h> is
14423         included, therefore not in config.h. stpncpy.h does the replacement,
14424         and stpncpy.c uses it.
14425
14426 2005-03-02  Bruno Haible  <bruno@clisp.org>
14427
14428         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
14429         stpncpy.c uses it.
14430
14431 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
14432
14433         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
14434         The workaround isn't strictly needed for POSIX conformance, and
14435         it's too much of a pain to configure and maintain.  We'll ask
14436         people to fix their kernels instead.
14437         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
14438         (NANOSLEEP_BUG_WORKAROUND): Remove.
14439         (xnanosleep): Remove the workaround.
14440
14441 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
14442
14443         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
14444         Reported by Derek Price.
14445         (Include): Add "timespec.h".
14446
14447         * modules/xnanosleep (Depends-on): Remove gethrxtime.
14448
14449 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
14450
14451         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
14452         to detect nanosleep bug.
14453
14454 2005-03-01  Bruno Haible  <bruno@clisp.org>
14455
14456         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
14457
14458 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
14459
14460         * modules/gethrxtime: New file.
14461         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
14462         (Depends-on): Add gethrxtime.
14463         (configure.ac): Add gl_XNANOSLEEP.
14464         (Makefile.am): Remove lib_SOURCES line.
14465
14466 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
14467
14468         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
14469         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
14470
14471 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
14472
14473         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
14474         * lib/timespec.h (gettime): Return void, since it always
14475         succeeds now.  All uses changed.
14476         * lib/gettime.c (gettime) Likewise.
14477         [HAVE_NANOTIME]: Prefer nanotime.
14478         Assume gettimeofday succeeds, as POSIX requires.
14479         Assime time () succeeds, since other code already does.
14480         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
14481         (timespec_subtract): Remove.
14482         (NANOSLEEP_BUG_WORKAROUND): New constant.
14483         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
14484         things considerably.  Use it only on GNU/Linux hosts, since the
14485         workaround shouldn't be needed elsewhere.
14486
14487 2005-02-24  Bruno Haible  <bruno@clisp.org>
14488
14489         * modules/gettext (Files): Add m4/glibc2.m4.
14490
14491 2005-02-24  Bruno Haible  <bruno@clisp.org>
14492
14493         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
14494         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
14495         * m4/progtest.m4:
14496         Update from GNU gettext 0.14.2.
14497         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
14498
14499 2005-02-24  Bruno Haible  <bruno@clisp.org>
14500
14501         * lib/localcharset.c: Update from GNU gettext 0.14.2.
14502         * lib/config.charset: Update from GNU gettext 0.14.2.
14503
14504 2005-02-24  Bruno Haible  <bruno@clisp.org>
14505
14506         * lib/gettext.h: Update from GNU gettext 0.14.2.
14507
14508 2005-02-23  Simon Josefsson  <jas@extundo.com>
14509
14510         * m4/iconvme.m4: New file.
14511
14512 2005-02-23  Jim Meyering  <jim@meyering.net>
14513
14514         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
14515         change.
14516         Thanks to Bruno Haible for catching it.
14517
14518 2005-02-22  Simon Josefsson  <jas@extundo.com>
14519
14520         * modules/iconvme: New file.
14521
14522         * MODULES.html.sh: Add iconvme.
14523
14524 2005-02-22  Simon Josefsson  <jas@extundo.com>
14525
14526         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
14527
14528 2005-02-22  Simon Josefsson  <jas@extundo.com>
14529
14530         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
14531
14532 2005-02-22  Jim Meyering  <jim@meyering.net>
14533
14534         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
14535         s/ifndef/ifdef/.
14536
14537 2005-02-20  Neil Conway  <neilc@samurai.com>
14538
14539         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
14540         returned by OSX/Darwin if the specified buffer is not large
14541         enough for the hostname.
14542
14543 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
14544
14545         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
14546         pass it to _help, otherwise the latter coredumps trying to
14547         dereference state.root_argp.
14548
14549 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
14550
14551         * modules/chdir-long (Depends-on): Add memrchr.
14552         * modules/memrchr (Files): Add lib/memrchr.h.
14553         (Include): "memrchr.h".
14554
14555 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
14556
14557         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
14558
14559 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
14560
14561         * lib/memrchr.h: New file.
14562         * lib/chdir-long.c: Include it.
14563         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
14564         Don't bother including stddef.h.
14565
14566 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
14567
14568         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
14569         inclusion.
14570         Include <sys/types.h>, for dev_t.
14571         (ME_DUMMY, ME_REMOTE): Move from here....
14572         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
14573         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
14574         Dmitry V. Levin.
14575         Include mountlist.h first, to test the interface.
14576
14577 2005-01-29  Bruno Haible  <bruno@clisp.org>
14578
14579         * lib/progname.c (program_name): Initialize.
14580         Needed when linking statically on MacOS X.
14581
14582 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
14583
14584         Sync from coreutils.
14585         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
14586         (Depends-on): Add c-strtod.
14587         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
14588
14589 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
14590
14591         Sync from coreutils.
14592         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
14593
14594         Remove files that are specific to coreutils.
14595         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
14596
14597 2005-01-28  Bruno Haible  <bruno@clisp.org>
14598
14599         * modules/javacomp: New file.
14600         * MODULES.html.sh (Java): Add javacomp.
14601
14602 2005-01-28  Bruno Haible  <bruno@clisp.org>
14603
14604         * m4/javacomp.m4: New file, from GNU gettext.
14605
14606 2005-01-28  Bruno Haible  <bruno@clisp.org>
14607
14608         * lib/javacomp.sh.in: New file, from GNU gettext.
14609         * lib/javacomp.h: New file, from GNU gettext.
14610         * lib/javacomp.c: New file, from GNU gettext.
14611
14612 2005-01-26  Simon Josefsson  <jas@extundo.com>
14613
14614         * lib/gai_strerror.c: Use GPL in header.
14615
14616 2005-01-26  Bruno Haible  <bruno@clisp.org>
14617
14618         * modules/javaexec: New file.
14619         * MODULES.html.sh (Java): Add javaexec.
14620
14621 2005-01-26  Bruno Haible  <bruno@clisp.org>
14622
14623         * m4/javaexec.m4: New file, from GNU gettext.
14624
14625 2005-01-26  Bruno Haible  <bruno@clisp.org>
14626
14627         * lib/javaexec.sh.in: New file, from GNU gettext.
14628         * lib/javaexec.h: New file, from GNU gettext.
14629         * lib/javaexec.c: New file, from GNU gettext.
14630
14631 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
14632
14633         * modules/lchown (Depends-on): Remove lchown.h
14634
14635 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
14636
14637         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
14638         must be defined if the header file was not found, in order
14639         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
14640
14641 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
14642
14643         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
14644         initializers for struct pentry_state.
14645         (__argp_error): Check return value of __asprintf
14646         (__argp_failure): Translate error message
14647
14648         * lib/argp-parse.c: Removed braces around the expansion of N_()
14649
14650 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
14651
14652         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
14653         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
14654         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
14655         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
14656         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
14657         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
14658         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
14659         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
14660         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
14661         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
14662         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
14663         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
14664         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
14665         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
14666         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
14667         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
14668         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
14669         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
14670         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
14671         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
14672         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
14673         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
14674         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
14675         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
14676         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
14677         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
14678         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
14679         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
14680         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
14681         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
14682         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
14683         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
14684         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
14685         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
14686         xstrtol.m4, xstrtoumax.m4, yesno.m4:
14687         Use an all-permissive copyright notice, recommended by RMS.
14688
14689 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
14690
14691         * modules/chdir-long (Depends-on): Remove mempcpy.
14692
14693 2005-01-21  Jim Meyering  <jim@meyering.net>
14694
14695         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
14696         same value as for Solaris 9.
14697
14698         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
14699         component length.  This included changing the parameter to be
14700         of type `char *' rather than `char const *'.
14701         * lib/chdir-long.h (chdir_long): Update prototype.
14702
14703         * lib/openat.c (fdopendir, fstatat): New functions.
14704         * lib/openat.h: Include headers required for use of DIR and struct
14705         stat.
14706         [AT_SYMLINK_NOFOLLOW]: Define.
14707         (fdopendir, fstatat): Add prototypes.
14708
14709 2005-01-21  Bruno Haible  <bruno@clisp.org>
14710
14711         * modules/classpath: New file.
14712         * MODULES.html.sh (Java): Add classpath.
14713
14714 2005-01-21  Bruno Haible  <bruno@clisp.org>
14715
14716         * lib/classpath.h: New file, from GNU gettext.
14717         * lib/classpath.c: New file, from GNU gettext.
14718
14719 2005-01-20  Simon Josefsson  <jas@extundo.com>
14720
14721         * modules/version-etc-fsf: New file.
14722
14723 2005-01-20  Simon Josefsson  <jas@extundo.com>
14724
14725         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
14726         * lib/version-etc.c: Remove version_etc_copyright.
14727         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
14728         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
14729
14730 2005-01-20  Simon Josefsson  <jas@extundo.com>
14731
14732         * lib/base64.h (isbase64): Add.
14733
14734         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
14735         using a unsigned prototype, don't inline.
14736         (base64_decode): Use it.
14737
14738 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
14739
14740         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
14741         it.
14742
14743 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
14744
14745         * lib/save-cwd.c (save_cwd): Remove code to support the case
14746         where fchdir is missing or flaky.
14747
14748 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
14749
14750         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
14751
14752 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
14753
14754         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
14755         AC_LIBSOURCES now does this.
14756         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
14757         with new ullong_max module.
14758
14759 2005-01-19  Bruno Haible  <bruno@clisp.org>
14760
14761         * modules/sh-quote: New file.
14762         * MODULES.html.sh (Executing programs): Add sh-quote.
14763
14764 2005-01-19  Bruno Haible  <bruno@clisp.org>
14765
14766         * lib/sh-quote.h: New file, from GNU gettext.
14767         * lib/sh-quote.c: New file, from GNU gettext.
14768
14769 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
14770
14771         Merge from coreutils.
14772         * m4/ullong_max.m4: New file.
14773         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
14774         (gl_MACROS): Assume localeconv exists.
14775
14776 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
14777
14778         Merge changes from coreutils, as described below in several
14779         changelogs dated today.
14780
14781         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
14782         (O_DIRECTORY): Remove; not needed here, since "." must be
14783         a directory.  All uses removed.
14784         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
14785         universal on Suns, and we also need to test for IRIX.
14786         Revamp code to use 'if' rather than '#if'.
14787         Avoid unnecessary comparison of cwd->desc to 0.
14788
14789         * lib/utimens.c (futimens): Robustify the previous patch, by checking
14790         for known valid error numbers rather than observed invalid ones.
14791
14792 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
14793
14794         * modules/ullong_max: New file.
14795
14796         * modules/chdir-long, modules/openat: New files.
14797         * modules/save-cwd (Depends-on): Depend on chdir-long.
14798         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
14799
14800 2005-01-18  Jim Meyering  <jim@meyering.net>
14801
14802         Merge from coreutils.
14803         * m4/chdir-long.m4, m4/openat.m4: New files.
14804         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
14805         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
14806         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
14807         is sane and DOES follow symlinks.  Besides, testing 20 different
14808         systems found no broken chown implementations.
14809         Prompted by a change in rsync's copy of this macro.
14810         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
14811
14812         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
14813
14814         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
14815         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
14816         NULL-means-set-to-current-time semantics.
14817         Remove temporary file immediately, rather than waiting
14818         for configure's at-exit trap code to do it.
14819
14820 2005-01-18  Jim Meyering  <jim@meyering.net>
14821
14822         * lib/version-etc.c (version_etc_copyright): Update copyright date.
14823
14824         * lib/utimens.c (futimens): Account for the fact that futimes
14825         can also fail with errno == ENOSYS or errno == ENOENT.
14826         Patch from Dmitry V. Levin.
14827
14828         Change the name of the robust chdir function from chdir to chdir_long.
14829         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
14830         (restore_cwd): Use chdir_long, not chdir.
14831         * lib/chdir-long.c: Renamed from chdir.c.
14832         * lib/chdir-long.h: Renamed from chdir.h.
14833         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
14834         Hurd.
14835
14836 2005-01-18  Bruno Haible  <bruno@clisp.org>
14837
14838         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
14839         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
14840         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
14841         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
14842         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
14843         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
14844         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
14845         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
14846         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
14847         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
14848         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
14849         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
14850         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
14851         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
14852         Use an all-permissive copyright notice, recommended by RMS.
14853
14854 2005-01-18  Bob Proulx  <bob@proulx.com>
14855
14856         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
14857         simplify offsetof() macro construct to avoid compile failure with
14858         native HP-UX 11.0 ANSI C compiler.
14859
14860 2005-01-17  Bruno Haible  <bruno@clisp.org>
14861
14862         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
14863         redundant because stpncpy.m4 takes care of it.
14864
14865 2005-01-17  Bruno Haible  <bruno@clisp.org>
14866
14867         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
14868
14869 2005-01-17  Bruno Haible  <bruno@clisp.org>
14870
14871         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
14872         used.
14873
14874 2005-01-17  Bruno Haible  <bruno@clisp.org>
14875
14876         * lib/fwriteerror.h (fwriteerror): Change specification to include
14877         fclose.
14878         * lib/fwriteerror.c: Include <stdbool.h>.
14879         (fwriteerror): At the end, close the file stream. Record whether
14880         stdout was already closed.
14881
14882 2005-01-17  Bruno Haible  <bruno@clisp.org>
14883
14884         * lib/execute.c (environ): Declare if needed.
14885         * lib/pipe.c (environ): Likewise.
14886         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
14887
14888 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
14889
14890         * modules/argp: Depend on vsnprintf
14891
14892 2005-01-10  Jim Meyering  <jim@meyering.net>
14893
14894         * modules/closeout (Depends-on): Add atexit.
14895
14896 2005-01-06  Bruno Haible  <bruno@clisp.org>
14897
14898         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
14899
14900 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
14901
14902         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
14903         definitions to be after all include files, to avoid collisions.
14904         Problem reported by Bob Proulx.
14905
14906 2005-01-04  Jim Meyering  <jim@meyering.net>
14907
14908         Changes imported from coreutils.
14909         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
14910         as the mkstemp template, use a temporary directory and an
14911         8.3-friendly template to avoid trouble on systems like DJGPP.
14912         Reported by Juan M. Guerrero via Stepan Kasal.
14913         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
14914         close. Remove the temporary directory right away, rather than waiting
14915         for configure's at-exit trap code to do it.
14916         Suggestion from Stepan Kasal.
14917
14918 2005-01-01  Simon Josefsson  <jas@extundo.com>
14919
14920         * gnulib-tool: Print #include directives when --import'ing.
14921
14922 2004-12-28  Simon Josefsson  <jas@extundo.com>
14923
14924         * tests/test-base64.c: Include required header files.  Remove
14925         unused variables.
14926
14927 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
14928
14929         * modules/error (Depends-on): Remove gettext.
14930
14931 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
14932
14933         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
14934         not needed.  This removes a dependency on the gettext module.
14935         [defined _LIBC]: Do not include <libintl.h>; not needed.
14936
14937 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
14938
14939         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
14940         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
14941
14942 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
14943
14944         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
14945         HAVE_DECL_STRTOLD.
14946
14947 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
14948
14949         * modules/getdate (Depends-on): Remove alloca-opt.
14950
14951 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
14952
14953         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
14954
14955 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
14956
14957         * lib/argp-parse.c: Include <stddef.h>.
14958         (alignof, alignto): New macros.
14959         (parser_init): Don't assume that void * is aligned sufficiently
14960         for struct option.
14961
14962         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
14963         need to extend the stack.
14964         (YYINITDEPTH): New macro, so that the initial stack isn't overly
14965         large.
14966
14967 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
14968
14969         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
14970
14971 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
14972
14973         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
14974         (2004-10-24) change.  Apparently this was a false alarm.
14975
14976         * modules/getdate: Depend on alloca-opt, not alloca.
14977
14978 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
14979
14980         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
14981         Remove now-obsolete comment about AIX.
14982         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
14983         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
14984         (YYMAXDEPTH): New macro.
14985
14986 2004-12-18  Simon Josefsson  <jas@extundo.com>
14987
14988         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
14989
14990 2004-12-18  Bruno Haible  <bruno@clisp.org>
14991
14992         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
14993
14994 2004-12-18  Bruno Haible  <bruno@clisp.org>
14995
14996         * lib/fatal-signal.c (fatal_signals): Make non-const.
14997         (init_fatal_signals): New function.
14998         (uninstall_handlers, install_handlers): Ignore signals that were set to
14999         SIG_IGN.
15000         (at_fatal_signal): Call init_fatal_signals.
15001         (init_fatal_signal_set): Likewise. Ignore signals that were set to
15002         SIG_IGN.
15003         Reported by Paul Eggert.
15004
15005 2004-12-18  Bruno Haible  <bruno@clisp.org>
15006
15007         * doc/alloca.texi: New file.
15008         * doc/alloca-opt.texi: New file.
15009
15010 2004-12-17  Jim Meyering  <jim@meyering.net>
15011
15012         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
15013         Otherwise, install-sh could exit with improper exit status when
15014         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
15015
15016 2004-12-16  Simon Josefsson  <jas@extundo.com>
15017
15018         * tests/test-base64.c: Add license.
15019
15020 2004-12-15  Stepan Kasal  <address@hidden>
15021
15022         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
15023
15024 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
15025
15026         * modules/getcwd (Files): Add m4/d-ino.m4.
15027         Suggested by Mark D. Baushke.
15028
15029 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
15030
15031         * lib/getdate.y (textint): New member "negative".
15032         (time_zone_hhmm): New function.
15033         Expect 14 shift-reduce conflicts, not 13.
15034         (o_colon_minutes): New rule.
15035         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
15036         (yylex): Set the "negative" member of signed numbers.
15037
15038 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
15039
15040         * doc/getdate.texi (Time of day items, Time zone items):
15041         Describe new formats +00:00, UTC+00:00.
15042
15043 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
15044
15045         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
15046         spurious "-l"s.  Problem reported by Stepan Kasal.
15047
15048 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
15049
15050         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
15051         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
15052
15053 2004-12-04  Simon Josefsson  <jas@extundo.com>
15054
15055         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
15056         Vandoorselaere <yoann@prelude-ids.org>.
15057
15058 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
15059
15060         Changes imported from coreutils.
15061         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
15062         exist.
15063         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
15064
15065 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
15066
15067         Changes imported from coreutils.
15068         * lib/hard-locale.c: Assume <locale.h> exists.
15069         Include "strdup.h".
15070         (GLIBC_VERSION): New macro.
15071         (hard_locale): Assume setlocale exists.
15072         Rewrite to avoid #ifdef.
15073         Use strdup rather than malloc + strcpy.
15074         * lib/human.c: Assume <locale.h> exists.
15075         (human_readable): Assume localeconv exists.
15076
15077 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
15078
15079         * modules/hard-locale (Depends-on): Add strdup.
15080
15081 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
15082
15083         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
15084         convert T2, not T.  (Imported from libc.)
15085
15086 2004-11-30  Simon Josefsson  <jas@extundo.com>
15087
15088         * modules/restrict (License): Change to LGPL.
15089
15090 2004-11-30  Simon Josefsson  <jas@extundo.com>
15091
15092         * m4/restrict.m4: Add copyright and copying conditions.
15093
15094 2004-11-30  Simon Josefsson  <jas@extundo.com>
15095
15096         * m4/base64.m4: New file.
15097
15098 2004-11-30  Simon Josefsson  <jas@extundo.com>
15099
15100         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
15101         base64.
15102
15103         * tests/test-base64.c: New file.
15104
15105         * modules/base64: New file.
15106
15107 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
15108
15109         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
15110         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
15111
15112         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
15113
15114 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
15115
15116         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
15117         (__getcwd.c): Don't restore errno; glibc doesn't.
15118         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
15119         first, falling back to our code only if its results look suspicious.
15120         Ensure that the resulting buffer is only as large as necessary.
15121
15122         * lib/readutmp.c: Include readutmp.h first.
15123         Include <errno.h>, since readutmp.h no longer does that.
15124         * lib/readutmp.h: Don't include <errno.h>,
15125         <sys/param.h>, <time.h>; not needed to establish interface.
15126         (errno): Remove decl.
15127         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
15128         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
15129         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
15130
15131 2004-11-28  Simon Josefsson  <jas@extundo.com>
15132
15133         * lib/base64.h, base64.c: New file.
15134
15135 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
15136
15137         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
15138
15139 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
15140
15141         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
15142         (Depends-on): Remove pathmax, same.  Add mempcpy.
15143         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
15144         (Makefile.am): Append getcwd.h to lib_SOURCES.
15145         (Include): Add getcwd.h.
15146         (Maintainer): Change from Jim Meyering to "all, glibc",
15147         since getdate now uses intended-for-glibc code.
15148         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
15149         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
15150
15151 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
15152
15153         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
15154         HP's ANSI C compiler.
15155         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
15156         Declaring int functions causes warnings on some modern systems and
15157         shouldn't be needed to compile on ancient ones.
15158         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
15159         defined.
15160
15161         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
15162         with the following changes.
15163         (__set_errno): Parenthesize properly.
15164         Include <stdbool.h>.
15165         (MIN, MAX, MATCHING_INO): New macros.
15166         (__getcwd): Define with prototype, not K&R form.
15167         Use heuristics to allocate default buffer on stack if possible.
15168         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
15169         behavior, and to avoid the PATH_MAX limit when computing
15170         ../../../../...
15171         Use MATCHING_INO to compare inode number to file.
15172         Check for arithmetic overflow in size calculations.
15173         Fix bug in reallocation of dot array that caused getcwd to fail
15174         on directories nested deeper than 75.
15175         Be more careful about saving errno on error.
15176         Do not use realloc; use only free+malloc, as this is a bit
15177         more flexible and avoids a needless copy operation.
15178         Do not inspect st_dev and st_ino for symbolic links; POSIX
15179         doesn't specify the latter.
15180         Check for closedir errors.
15181         Avoid needless casts.
15182         Use "#ifdef weak_alias" around weak_alias, to be like other
15183         glibc code.
15184         The following changes to getcwd.c have effect only when used in
15185         gnulib; they have no effect inside glibc proper.
15186         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
15187         as alloca isn't used.
15188         (alloca, __alloca): Likewise.
15189         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
15190         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
15191         unconditionally, as gnulib assumes C89 or better.
15192         Do not include <sys/param.h>.
15193         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
15194         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
15195         better.
15196         (NULL) [!defined NULL]: Remove; we assume C89 or better.
15197         Include <dirent.h> in a way that is compatible with modern Autoconf.
15198         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
15199         New macros, if not already defined.
15200         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
15201         Use "_LIBC", not "defined _LIBC", for consistency.
15202         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
15203         a mempcpy module.
15204         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
15205         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
15206         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
15207         credit only to Jim Meyering and adjust the copyright dates.
15208         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
15209         <stdlib.h>, <unistd.h>, "pathmax.h".
15210         Instead, include "xgetcwd.h" (first) and "getcwd.h".
15211         (INITIAL_BUFFER_SIZE): Remove.
15212         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
15213
15214 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
15215
15216         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
15217         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
15218         Use the _ONCE methods, for efficiency.
15219         Check for fcntl.h.  In test program, include <errno.h>
15220         and <fcntl.h> if available.  Remove old K&R cruft from
15221         test program.  Check for common errors in GNU/Linux,
15222         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
15223         don't do AC_LIBOBJ, as that's getcwd.m4's job.
15224         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
15225         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
15226         name accordingly.
15227         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
15228         accommodate new getcwd.c.
15229         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
15230         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
15231         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
15232         that's all we need now.
15233
15234 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
15235
15236         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
15237         argp-parse.c depends on getopt internals, that means we should
15238         always use our getopt, to be on the safe side.
15239         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
15240         order not to spoil the result of an eventual previous invocation
15241         of gl_GETOPT_SUBSTITUTE.
15242
15243 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
15244
15245         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
15246         redefinition warnings. To avoid them, include the defines
15247         in `#if !defined __need_getopt ... #endif'. The only place
15248         where __getopt_argv_const is used is in definitions
15249         of getopt_long and getopt_long_only below, which are as well
15250         protected by `#ifndef __need_getopt'.
15251         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
15252         __need_getopt after including <stdio.h> and <unistd.h> These
15253         headers might have defined it.
15254
15255 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
15256
15257         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
15258
15259 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
15260
15261         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
15262         (futimens): New function, which uses futimes if available.
15263         (futimens, utimens): Support timespec==NULL, with same semantics
15264         as utime and utimens.
15265         * lib/utimens.h (futimens): New decl.
15266
15267 2004-11-23  Jim Meyering  <jim@meyering.net>
15268
15269         * lib/getopt_.h: Remove trailing blanks.
15270
15271 2004-11-23  Jim Meyering  <jim@meyering.net>
15272
15273         * lib/__fpending.c: Add comment.
15274
15275 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
15276
15277         * modules/canonicalize (Depends-on): Add xreadlink.
15278         Problem reported by James Youngman.
15279
15280 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
15281
15282         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
15283         New macros.
15284         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
15285         optopt): Use them instead of invoking ## directly; otherwise, the
15286         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
15287
15288 2004-11-19  Bruno Haible  <bruno@clisp.org>
15289
15290         * lib/strtok_r.c: Move comments from here...
15291         * lib/strtok_r.h: ... to here.
15292
15293 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
15294
15295         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
15296         implementations that mishandle size_t overflow.
15297
15298 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
15299
15300         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
15301         might fail.  Problem reported by Yoann Vandoorselaere.
15302         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
15303         implementations that mishandle size_t overflow.
15304
15305 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
15306
15307         * modules/canon-host (Depends-on): Add strdup.
15308
15309 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
15310
15311         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
15312
15313 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
15314
15315         * lib/canon-host.c: Include "strdup.h".
15316         (canon_host): Use getaddrinfo if available, so that IPv6 works.
15317         Use strdup instead of malloc/strcpy to duplicate strings.
15318
15319         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
15320         (human_space_before_unit): New constant.
15321         * lib/human.c (human_readable): Support it.
15322
15323         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
15324         (xgetcwd): Set errno correctly when failing.
15325         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
15326         the failure is actually due to a PATH_MAX problem.
15327
15328         Further getopt changes to make it more likely that glibc will
15329         buy the changes back.
15330         * lib/getopt.c (POSIXLY_CORRECT): New constant.
15331         (getopt): Use it, so to preserve glibc semantic
15332         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
15333         when compiling for libc.
15334         * lib/getopt_.h (__getopt_argv_const): Bring it back.
15335         (getopt_long, getopt_long_only): Use it.
15336
15337         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
15338         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
15339         (getopt): Argv is now char * const *, as per standard.
15340         (_getopt_internal_r, _getopt_internal): Argv is now char **,
15341         not char *__getopt_argv_const *.
15342         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
15343         _getopt_long_only_r): Likewise.
15344         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
15345         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
15346         _getopt_long_r, _getopt_long_only_r): Likewise.
15347         * lib/getopt_.h (__getopt_argv_const): Remove.
15348         (getopt): Argv is now char * const *, as per standard.
15349
15350         * lib/getdate.y (tORDINAL): New token.
15351         (day, relunit): Allow it for relative times.
15352         (relative_time_table): Use tORDINAL for ordinals.
15353
15354 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
15355
15356         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
15357         Document that "second" isn't allowed as an ordinal number.
15358
15359 2004-11-16  Jim Meyering  <jim@meyering.net>
15360
15361         * modules/closeout (Depends-on): Add fpending.
15362
15363 2004-11-15  Jim Meyering  <jim@meyering.net>
15364
15365         * lib/closeout.c: Include "__fpending.h" once again.
15366         Include <stdbool.h>.
15367         (close_stdout): Don't fail just because stdout was closed initially,
15368         since some programs don't write to stdout in the normal course of
15369         operation (other than --version and --help), and we don't want this
15370         function to make e.g. `touch file >&-' fail.
15371         But do fail if it was closed and someone has tried to write to it.
15372         E.g., `printf foo >&-' must fail.
15373
15374 2004-11-13  Jim Meyering  <jim@meyering.net>
15375
15376         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
15377
15378 2004-11-12  Simon Josefsson  <jas@extundo.com>
15379
15380         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
15381         small doc fix is still pending.
15382
15383 2004-11-11  Simon Josefsson  <jas@extundo.com>
15384
15385         * modules/strtok_r: New file.
15386
15387         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
15388         strtok_r.
15389
15390 2004-11-11  Simon Josefsson  <jas@extundo.com>
15391
15392         * m4/strtok_r.m4: New file.
15393
15394         * m4/getopt.m4: Replace opterr.
15395
15396 2004-11-11  Simon Josefsson  <jas@extundo.com>
15397
15398         * lib/strtok_r.h, strtok_r.c: New file.
15399
15400 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
15401
15402         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
15403         of replacing opterr, getopt, etc.  This should handle the
15404         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
15405
15406 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
15407
15408         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
15409         we can stop lying to compilers about the constness of argv when we
15410         are compiled outside glibc.
15411         (getopt, getopt_long, getopt_long_only): Use it.
15412         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
15413         _getopt_internal, getopt): Likewise.
15414         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
15415         _getopt_long_only_r): Likewise.
15416         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
15417         _getopt_long_r, _getopt_long_only_r): Likewise.
15418
15419         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
15420         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
15421         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
15422         the other external symbols.
15423         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
15424         declaration, since the above renaming now works around collisions.
15425
15426 2004-11-11  Jim Meyering  <jim@meyering.net>
15427
15428         * lib/linebreak.c: Remove trailing blanks.
15429         * lib/alloca_.h: Likewise.
15430         * lib/acosl.c: Likewise.
15431         * lib/euidaccess.c: Likewise.
15432         * lib/allocsa.h: Likewise.
15433
15434 2004-11-10  Simon Josefsson  <jas@extundo.com>
15435
15436         * m4/getaddrinfo.m4: New file.
15437
15438 2004-11-10  Simon Josefsson  <jas@extundo.com>
15439
15440         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
15441
15442 2004-11-10  Simon Josefsson  <jas@extundo.com>
15443
15444         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
15445         getaddrinfo.
15446
15447         * modules/getaddrinfo: New file.
15448
15449 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
15450
15451         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
15452
15453 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
15454
15455         * lib/mktime.c (SHR): New macro, which is a portable
15456         substitute for >> that should work even on Crays.
15457         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
15458         Problem reported by Mark D. Baushke in
15459         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
15460         * lib/getdate.y (SHR): Likewise.
15461         (tm_diff): Use it.
15462         * lib/strftime.c (SHR): Likewise.
15463         (tm_diff): Use it.
15464         * lib/quotearg.c (struct quoting_options): Use unsigned int for
15465         quote_these_too, so that right shifts are well defined.  All uses
15466         changed.
15467
15468 2004-11-10  Jim Meyering  <jim@meyering.net>
15469
15470         Ensure that no close failure goes unreported.
15471         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
15472         return early when it seems there's nothing to flush.
15473         Don't include __fpending.h.
15474
15475 2004-11-10  Jim Meyering  <jim@meyering.net>
15476
15477         * modules/closeout (Depends-on): Remove fpending.
15478
15479 2004-11-10  Jim Meyering  <jim@meyering.net>
15480
15481         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
15482
15483 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
15484
15485         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
15486         gl_FUNC_STRFTIME.
15487         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
15488         and AC_REQUIRE when possible, to avoid duplicate checks.
15489         Check for <wchar.h>.
15490
15491 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
15492
15493         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
15494
15495 2004-11-09  Bruno Haible  <bruno@clisp.org>
15496
15497         * m4/sockpfaf.m4: New file.
15498
15499 2004-11-05  Bruno Haible  <bruno@clisp.org>
15500
15501         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
15502         Reported by Mark D. Baushke <mdb@cvshome.org>.
15503
15504 2004-11-04  Bruno Haible  <bruno@clisp.org>
15505
15506         2004-09-11  Bruno Haible  <bruno@clisp.org>
15507                 * allocsa.valgrind: New file.
15508         2004-02-06  Bruno Haible  <bruno@clisp.org>
15509                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
15510                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
15511                 Reported by Christopher Seip <chris.seip@hp.com>.
15512
15513 2004-11-04  Bruno Haible  <bruno@clisp.org>
15514
15515         * modules/allocsa (Files): Add lib/allocsa.valgrind.
15516         (Makefile.am): Distribute it.
15517
15518 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
15519
15520         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
15521         with errno == ERANGE if the buffer is too small.
15522         Problem reported by Mark D. Baushke.
15523
15524 2004-11-03  Albert Chin  <china@thewrittenword.com>
15525             Paul Eggert  <eggert@cs.ucla.edu>
15526
15527         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
15528         equivalent, substitute $ac_type for equivalent type rather than
15529         blindly using uint32_t *always* which won't work if uint32_t is not
15530         available.  Define _UINT32_T to work around typedef of uint32_t if
15531         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
15532         2.5.1.
15533
15534 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
15535
15536         * m4/jm-macros.m4: Sync from coreutils.
15537         (gl_MACROS): Check for mbrlen, for pathchk.
15538         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
15539
15540 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
15541
15542         * lib/xreadlink.c (MAXSIZE): New macro.
15543         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
15544         size does not exceed MAXSIZE.  Avoid cast.
15545         As suggested by Mark D. Baushke in
15546         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
15547         if readlink fails with buffer size just under MAXSIZE, try again
15548         with MAXSIZE.
15549
15550 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
15551
15552         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
15553
15554 2004-11-02  Derek R. Price  <derek@ximbiot.com>
15555         and  Paul Eggert  <eggert@cs.ucla.edu>
15556
15557         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
15558         (get_date): Overparenthesize to avoid GCC warning.
15559
15560 2004-11-02  Bruno Haible  <bruno@clisp.org>
15561
15562         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
15563         returns void.
15564
15565 2004-11-02  Bruno Haible  <bruno@clisp.org>
15566
15567         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
15568         function returns void.
15569
15570 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
15571
15572         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
15573         fflush_unlocked, flockfile, funlockfile, funlockfile,
15574         fputs_unlocked, putc_unlocked.
15575
15576 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
15577
15578         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
15579         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
15580         already declared.
15581
15582 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
15583
15584         * modules/getdate (Files): Add doc/getdate.texi.
15585         (Depends-on): Add setenv, xalloc.
15586
15587 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
15588
15589         * lib/getdate.y: Add support for TZ="foo" within a date string.
15590         Fix some bugs near time_t boundaries.  Reject dates with
15591         out-of-range components, e.g., "Sept 31".
15592         Include <stdlib.h>, "setenv.h", "xalloc.h".
15593         (ISDIGIT_LOCALE): Remove; unused.
15594         Note that the TZ and time functions used here are not reentrant.
15595         (mktime_ok, get_tz): New functions.
15596         (TZBUFSIZE): New constant.
15597         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
15598         This requires that we sometimes generate our own TZ="XXX..." setting.
15599
15600 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
15601
15602         * doc/getdate.texi: New file, from coreutils with modifications for
15603         the new TZ parsing.
15604
15605 2004-10-27  Derek R. Price  <derek@ximbiot.com>
15606
15607         * lib/mktime.c (not_equal_tm): Remove redundant check.
15608
15609 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
15610
15611         * modules/regex (lib_SOURCES): Add regex.c.
15612         Reported by James Youngman in
15613         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
15614
15615 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
15616
15617         * lib/getdate.y: Use Bison 1.875 features, and some minor
15618         code cleanups.  This change does not affect semantics.
15619         Don't include <stdlib.h>; no longer needed.
15620         Don't include unlocked-io.h; only the "#if TEST" code uses
15621         stdio, and performance isn't crucial there.
15622         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
15623         Bison 1.875 features as described below.
15624         All uses of "PC." replaced by "pc->".
15625         (YYSTYPE): Add a forward declaration.
15626         (yylex, yyerror): Use full prototypes in forward decls.
15627         Use "%pure-parser" rather than obsolescent "%pure_parser".
15628         Use %parse-param and %lex-param instead of obsolescent
15629         YYPARSE_PARAM and YYLEX_PARAM.
15630         (meridian_table, month_and_day_table, time_units_table,
15631         relative_time_table, time_zone_table, military_table,
15632         lookup_zone, lookup_word, get_date):
15633         Use NULL instead of 0 where appropriate.
15634         (to_hour): Avoid abort (), to avoid a dependency on
15635         stdlib.h.
15636         (yyerror, yylex): Now accepts parser_control * arg.
15637         (main) [TEST]: Use '\0' rather than 0 for char.
15638
15639 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
15640
15641         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
15642
15643 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
15644
15645         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
15646         It's now the caller's responsibility to handle the case where
15647         !HAVE_GETPAGESIZE && !defined getpagesize.
15648
15649         * lib/mktime.c (leapyear): Arg is long int, not int.
15650
15651 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
15652
15653         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
15654
15655 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
15656
15657         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
15658         missing.  Problem reported by James Youngman.
15659
15660 2004-10-16  Simon Josefsson  <jas@extundo.com>
15661
15662         * gnulib-tool: Fix comments.  Fix parse problem.
15663         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
15664
15665 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
15666
15667         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
15668         implementation of getopt_long.  Problem reported by Alexander Taler in:
15669         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
15670
15671 2004-10-15  Bruno Haible  <bruno@clisp.org>
15672
15673         * gnulib-tool: Untabify. Initialize supplied_libname.
15674         (func_usage): More homogenous output.
15675         (func_modules_transitive_closure, func_modules_to_filelist,
15676         func_emit_lib_Makefile_am): New functions.
15677         (func_import): New function, extracted from big case statement. Use
15678         func_get_license, func_modules_transitive_closure,
15679         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
15680         opt_lgpl. Don't use test -a, as it's not portable.
15681         (func_create_testdir): Use func_modules_transitive_closure,
15682         func_modules_to_filelist, func_emit_lib_Makefile_am.
15683
15684 2004-10-15  Bruno Haible  <bruno@clisp.org>
15685
15686         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
15687
15688 2004-10-15  Bruno Haible  <bruno@clisp.org>
15689
15690         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
15691         the portions belonging to each module.
15692         Suggested by Derek Robert Price <derek@ximbiot.com>.
15693
15694 2004-10-12  Simon Josefsson  <jas@extundo.com>
15695
15696         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
15697         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
15698         to real functions.
15699
15700 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
15701
15702         * modules/vsnprintf: New file.
15703
15704 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
15705
15706         * m4/vsnprintf.m4: New file.
15707
15708 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
15709
15710         * lib/vsnprintf.h: New file.
15711         * lib/vsnprintf.c: New file.
15712
15713 2004-10-11  Bruno Haible  <bruno@clisp.org>
15714
15715         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
15716         vsnprintf.
15717
15718 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
15719
15720         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
15721
15722 2004-10-07  Bruno Haible  <bruno@clisp.org>
15723
15724         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
15725         fits into the provided buffer.
15726
15727 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
15728
15729         * lib/diacrit.c, diacrit.h: Add GPL notice.
15730
15731         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
15732         notice.
15733         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
15734         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
15735         This avoids a potential constant-folding bug.
15736
15737 2004-10-05  Bruno Haible  <bruno@clisp.org>
15738
15739         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
15740         for the declaration of strsep.
15741
15742 2004-10-05  Bruno Haible  <bruno@clisp.org>
15743
15744         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
15745
15746 2004-10-04  Simon Josefsson  <jas@extundo.com>
15747
15748         * modules/memmem: New file.
15749         * tests/test-memmem.c: New file.
15750         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
15751
15752 2004-10-04  Simon Josefsson  <jas@extundo.com>
15753
15754         * m4/memmem.m4: New file.
15755
15756 2004-10-04  Simon Josefsson  <jas@extundo.com>
15757
15758         * lib/memmem.h: New file.
15759         * lib/memmem.c: New file, taken from glibc.
15760
15761 2004-10-04  Simon Josefsson  <jas@extundo.com>
15762
15763         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
15764         '#ifdef USE_UNLOCKED_IO'.
15765
15766 2004-10-04  Simon Josefsson  <jas@extundo.com>
15767
15768         * config/srclist.txt: Add memmem from glibc.
15769
15770 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
15771
15772         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
15773
15774         * modules/argmatch, modules/argp, modules/closeout, modules/error,
15775         modules/exclude, modules/getdate, modules/getline,
15776         modules/getndelim2, modules/getpass, modules/getpass-gnu,
15777         modules/getusershell, modules/linebuffer, modules/md5,
15778         modules/mountlist, modules/posixtm, modules/readtokens,
15779         modules/readutmp, modules/regex, modules/sha1,
15780         modules/version-etc, modules/yesno:
15781         Remove dependency on unlocked-io.
15782
15783 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
15784
15785         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
15786
15787         * m4/unlocked-io.m4: Add copyright notice.
15788         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
15789
15790 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
15791
15792         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
15793         * lib/xmalloc.c (xmemdup): Likewise.
15794         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
15795         XFREE): Remove these long-obsolescent macros.
15796         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
15797         * lib/xstrdup.c: Remove.
15798
15799         * lib/regex.c (re_comp): Cast gettext return value to char *,
15800         Problem reported by Martin Neitzel via Mark D. Baushke.
15801
15802 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
15803
15804         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
15805         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
15806         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
15807         regex.c, sha1.c, version-etc.c, yesno.c:
15808         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
15809         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
15810         the includer's responsibility.
15811
15812         Sync from coreutils.
15813
15814         * lib/modechange.c (mode_compile): Don't decrement a pointer that
15815         points to the start of a string, as the C Standard says the
15816         resulting behavior is undefined.
15817
15818         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
15819         simple -> simple_backups, numbered_existing ->
15820         numbered_existing_backups, numbered -> numbered_backups
15821         to avoid shadowing problems.  All uses changed.
15822         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
15823         * lib/backupfile.c (check_extension, numbered_backup):
15824         Rename locals to avoid shadowing 'basename'.
15825         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
15826         once.
15827
15828         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
15829         * lib/.cvsignore: Add getopt.h.
15830
15831 2004-10-04  Bruno Haible  <bruno@clisp.org>
15832
15833         * modules/README: New file.
15834         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
15835         not a module.
15836
15837 2004-10-02  Jim Meyering  <jim@meyering.net>
15838
15839         * lib/dirfd.h, getpagesize.h: Add copyright notice.
15840
15841 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
15842
15843         * modules/strsep: New file.
15844
15845 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
15846
15847         * m4/strsep.m4: New file.
15848
15849 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
15850
15851         * lib/strsep.h: New file.
15852         * lib/strsep.c: New file.
15853
15854 2004-10-01  Simon Josefsson  <jas@extundo.com>
15855
15856         * lib/snprintf.c (snprintf): Handle size==0.
15857
15858 2004-10-01  Simon Josefsson  <jas@extundo.com>
15859             Bruno Haible  <bruno@clisp.org>
15860
15861         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
15862         (snprintf): Declare 'args'.
15863
15864 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
15865
15866         * lib/snprintf.c: Remove comments as to why each header is needed.
15867
15868 2004-10-01  Bruno Haible  <bruno@clisp.org>
15869
15870         * MODULES.html.sh: Add strsep.
15871
15872 2004-09-30  Simon Josefsson  <jas@extundo.com>
15873
15874         * modules/snprintf: New file.
15875
15876 2004-09-30  Simon Josefsson  <jas@extundo.com>
15877
15878         * m4/snprintf.m4: New file.
15879
15880 2004-09-30  Simon Josefsson  <jas@extundo.com>
15881
15882         * lib/snprintf.h, lib/snprintf.c: New files.
15883
15884 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
15885
15886         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
15887         (hol_entry_help): Never translate an empty string.
15888         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
15889         * lib/argp.h (OPTION_NO_TRANS): New option.
15890
15891 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
15892
15893         * modules/argp (Maintainer): Replace Simon Josefsson
15894         by Sergey Poznyakoff.
15895
15896 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
15897
15898         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
15899         changes merged back into glibc.
15900
15901 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
15902
15903         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
15904
15905 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
15906
15907         * lib/xvasprintf.c: Include xalloc.h.
15908         (xvasprintf): Use xalloc_die, not xmalloc_die.
15909
15910 2004-09-29  Bruno Haible  <bruno@clisp.org>
15911
15912         * modules/alloca-opt: New file, derived from modules/alloca.
15913         * modules/allocsa: Depend on alloca-opt instead of alloca.
15914         * modules/setenv: Likewise.
15915         * modules/vasnprintf: Likewise.
15916         * MODULES.html.sh: Add alloca-opt.
15917
15918 2004-09-28  Simon Josefsson  <jas@extundo.com>
15919
15920         * gnulib-tool: New parameter --lgpl, to asseert that modules are
15921         LGPL, and to replace license template from GPL to LGPL.
15922
15923 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
15924
15925         * modules/dummy: Change license to LGPL.
15926
15927 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
15928
15929         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
15930
15931 2004-09-24  Simon Josefsson  <jas@extundo.com>
15932
15933         * modules/minmax (License): Change from GPL to LGPL.
15934
15935 2004-09-23  Simon Josefsson  <jas@extundo.com>
15936
15937         * gnulib-tool (--import): Typo.
15938
15939 2004-09-23  Simon Josefsson  <jas@extundo.com>
15940
15941         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
15942
15943 2004-09-22  Bruno Haible  <bruno@clisp.org>
15944
15945         * modules/*: Add 'License' field.
15946         * gnulib-tool: Accept --extract-license option.
15947         (func_get_license): New function.
15948
15949 2004-09-21  Bruno Haible  <bruno@clisp.org>
15950
15951         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
15952         Reported by Simon Josefsson.
15953
15954 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
15955
15956         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
15957         gl_AC_TYPE_LONG_LONG.
15958
15959 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
15960
15961         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
15962
15963 2004-09-18  Simon Josefsson  <jas@extundo.com>
15964         and  Paul Eggert  <eggert@cs.ucla.edu>
15965
15966         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
15967         calls with autoreconf.  Define GL_LIB.
15968
15969 2004-09-14  Karl Berry  <karl@gnu.org>
15970
15971         * config/srclist.txt: unsync setenv.c, sigh.
15972
15973 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
15974
15975         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
15976         Problem reported by Bruno Haible in:
15977         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
15978
15979 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
15980
15981         * config/srclist.txt: Comment out argp-pvh.c.
15982
15983 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
15984
15985         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
15986         in case some system header has #define'd it.  Problem reported by
15987         Soeren D. Schulze in
15988         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
15989
15990 2004-09-09  Karl Berry  <karl@gnu.org>
15991
15992         * regex.[ch]: delete from the root.  These were supposed to be
15993                 synced with emacs cvs, but this has not happened for about
15994                 a year, and anyway nothing else uses emacs regex.[ch].
15995                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
15996                 lib/regex[.ch] is untouched.
15997
15998 2004-09-09  Bruno Haible  <bruno@clisp.org>
15999
16000         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
16001
16002 2004-09-09  Bruno Haible  <bruno@clisp.org>
16003
16004         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
16005         modifications.
16006         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
16007
16008 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
16009
16010         * modules/xvasprintf: New file.
16011         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
16012
16013 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
16014
16015         * lib/xvasprintf.h: New file.
16016         * lib/xvasprintf.c: New file.
16017         * lib/xasprintf.c: New file.
16018
16019 2004-09-08  Bruno Haible  <bruno@clisp.org>
16020
16021         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
16022
16023 2004-09-08  Bruno Haible  <bruno@clisp.org>
16024
16025         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
16026         length is > INT_MAX.
16027         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
16028         more.
16029
16030 2004-09-08  Bruno Haible  <bruno@clisp.org>
16031
16032         * lib/stdint_.h: New file, taken from GNU clisp.
16033
16034 2004-09-08  Bruno Haible  <bruno@clisp.org>
16035             Oskar Liljeblad  <oskar@osk.mine.nu>
16036
16037         * modules/stdint: New file.
16038         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
16039
16040 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
16041
16042         Import from coreutils.
16043         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
16044         strings on unbounded length.  alloca's performance benefits aren't
16045         that important here.
16046         (V_STRDUP): Remove.
16047         (parse_with_separator): New function, with most of the internals
16048         of the old parse_user_spec.  Allow user to omit both user and group,
16049         for compatibility with FreeBSD.
16050         Clone only the user name, not the entire spec.
16051         Do not set *uid, *gid unless entirely successful.
16052         Avoid memory leak in some failing cases.
16053         Fix regression for USER.GROUP reported by Dmitry V. Levin in
16054         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
16055         (parse_user_spec): Rewrite to use parse_with_separator.
16056
16057 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
16058
16059         * modules/userspec: Don't depend on alloca.
16060
16061 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
16062
16063         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
16064
16065 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
16066
16067         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
16068         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
16069         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
16070
16071 2004-08-16  Simon Josefsson  <jas@extundo.com>
16072
16073         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
16074         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
16075         Add --dry-run for --import.
16076         Let user provided command line parameters override configure.ac
16077         settings.
16078
16079 2004-08-12  Simon Josefsson  <jas@extundo.com>
16080
16081         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
16082         as discussed with Paul Eggert in threads rooted at
16083         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
16084         and
16085         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
16086         Before, the test was empty, and relied on ELIDE_CODE in source
16087         code.)
16088         (gl_PREREQ_GETOPT): New macro.
16089         (gl_GETOPT): Use them.
16090
16091 2004-08-12  Simon Josefsson  <jas@extundo.com>
16092
16093         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
16094         * lib/getopt_.h: Renamed from getopt.h.
16095
16096 2004-08-12  Simon Josefsson  <jas@extundo.com>
16097
16098         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
16099         Change default library name from libfoo to libgnu.
16100         Now, if you have a configure.ac that says:
16101                 gl_SOURCE_BASE(gl)
16102                 gl_M4_BASE(gl/m4)
16103                 gl_MODULES(error getopt etcetera)
16104                 gl_INIT
16105         you can import all you need by running:
16106                 ../gnulib/gnulib-tool --import
16107
16108         * modules/getopt (Files): Rename getopt.h to getopt_.h.
16109         (Makefile.am): Rewrite, use logic from argz.
16110         (Include): Use <getopt.h> instead of "getopt.h".
16111
16112 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
16113
16114         * modules/argp (Files): Add m4/unlocked-io.m4.
16115         (Depends-on): Add extensions.
16116
16117 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
16118
16119         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
16120         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
16121         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
16122         Check for program_invocation_name, program_invocation_short_name,
16123         flockfile, funlockfile, features.h, _getopt_long_only_r.
16124
16125 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
16126
16127         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
16128         its complicated substitute.
16129         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
16130         and program_invocation_name.
16131         (__argp_basename) [!_LIBC]: Remove; the only use was
16132         replaced by its body.
16133         (__argp_short_program_name): Change condition from
16134         !defined __argp_short_program_name to
16135         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
16136         to match argp-namefrob.h.
16137         (__argp_failure): Don't assume strerror_r returns char *.
16138         * lib/argp-parse.c (N_): Define unconditionally.
16139         (argp_default_options): Fill out initializers with 0 to avoid
16140         gcc warnings.
16141
16142 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
16143
16144         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
16145         getopt1.c.
16146
16147 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
16148
16149         Merge from coreutils.
16150
16151         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
16152
16153         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
16154         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
16155
16156 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
16157
16158         Merge from coreutils.
16159
16160         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
16161         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
16162         for Reliant Unix 5.43.
16163
16164         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
16165         (union fooround): Use uintmax_t, not long int.
16166         The rest is a merge from libc:
16167         [defined _LIBC]: Include <shlib-compat.h>.
16168         (_obstack) [defined _LIBC]: Remove after 2.3.4.
16169
16170         * lib/settime.c (settime): Recode to avoid warning with
16171         Sun Forte C 6U2.
16172
16173         * lib/strverscmp.c: Convert to UTF-8.
16174
16175 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
16176
16177         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
16178         m4/uintmax_t.m4.
16179
16180 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
16181
16182         * modules/xalloc-die: New file.
16183         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
16184
16185         * modules/md5 (Files): Add m4/uint32_t.m4.
16186         * modules/sha1: Renamed from modules/sha.
16187         (Files):
16188         Rename lib/sha.h to lib/sha1.h.
16189         Rename lib/sha.c to lib/sha1.c.
16190         Rename m4/sha.m4 to m4/sha1.m4.
16191         (lib_SOURCES): Likewise.
16192         (configure.ac): Rename gl_SHA to gl_SHA1.
16193         (Include): sha.h -> sha1.h.
16194
16195 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
16196
16197         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
16198         * m4/sha1.m4: Renamed from sha.m4.
16199         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
16200
16201 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
16202
16203         * lib/obstack.h (obstack_empty_p):
16204         Don't assume that chunk->contents is suitably aligned.
16205         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
16206         Likewise. Problem reported by Benno in
16207         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
16208
16209         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
16210         readable.  This could be improved further but it'd take some work.
16211
16212 2004-08-08  Simon Josefsson  <jas@extundo.com>
16213
16214         * modules/xgethostname (Depends-on): Remove exit and error (not
16215         used).
16216
16217         * modules/getpass-gnu: Add getpass.h.
16218         (Depends-on): Add stdbool.
16219         * modules/getpass: Add getpass.h.
16220
16221 2004-08-08  Simon Josefsson  <jas@extundo.com>
16222
16223         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
16224         Check getpass declaration.
16225
16226 2004-08-08  Simon Josefsson  <jas@extundo.com>
16227
16228         * lib/xgethostname.c: Don't include error.h (not used).
16229
16230         * lib/getpass.h: Add.
16231         * lib/getpass.c: Include getpass.h first.
16232
16233 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
16234
16235         * lib/xalloc-die.c: New file.
16236         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
16237         All uses removed.
16238         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
16239         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
16240         xalloc-die.c.
16241         (_, N_, xalloc_die): Move to xalloc-die.c.
16242         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
16243         so that we needn't mess with xalloc_msg_memory_exhausted.
16244
16245         * lib/sha1.h: Renamed from sha.h.
16246         (SHA1_H): Renamed from _SHA_H.
16247         (sha1_ctx): Renamed from sha_ctx.
16248         (sha1_init_ctx): Renamed from sha_init_ctx.
16249         (sha1_process_block): Renamed from sha_process_block.
16250         (sha1_process_bytes): Renamed from sha_process_bytes.
16251         (sha1_finish_ctx): Renamed from sha_finish_ctx.
16252         (sha1_read_ctx): Renamed from sha_read_ctx.
16253         (sha1_stream): Renamed from sha_stream.
16254         (sha1_buffer): Renamed from sha_buffer.
16255         * lib/sha1.c: Likewise; renamed from sha.c.
16256         Do not include <sys/types.h>.
16257         Include <stddef.h> rather than <stdlib.h>.
16258
16259 2004-08-08  Bruno Haible  <bruno@clisp.org>
16260
16261         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
16262         FILESYSTEM_PREFIX_LEN.
16263         * lib/progreloc.c: Likewise.
16264         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
16265
16266 2004-08-06  Simon Josefsson  <jas@extundo.com>
16267
16268         * modules/progname (Depends-on): Don't depend on stdbool.
16269
16270 2004-08-06  Simon Josefsson  <jas@extundo.com>
16271
16272         * modules/getsubopt: New file.
16273         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
16274         getsubopt.
16275
16276 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
16277
16278         More merge from coreutils.
16279
16280         * m4/utimens.m4, m4/utimecmp.m4: New files.
16281         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
16282         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
16283         prereq.m4, sha.m4: Import changes from coreutils.
16284
16285 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
16286
16287         More merge from coreutils.
16288         * modules/raise, modules/readtokens0, modules/utimens:
16289         * modules/utimecmp, module/xnanosleep: New files.
16290         * modules/strftime: Add lib/strftime.h.
16291         Change include from <time.h> to "strftime.h".
16292         * modules/yesno: Add lib/yesno.h.
16293         * modules/backupfile: Remove lib/addext.c.
16294         * modules/euidaccess: Add stat-macros.h.
16295         * modules/canonicalize, modules/euidaccess,
16296         modules/filemode, modules/lchown, modules/makepath,
16297         modules/rmdir, modules/stat: Likewise.
16298
16299 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
16300
16301         Merge from tar.
16302         * lib/argp-help.c (make_hol, hol_append): Don't assume that
16303         SIZE_MAX is a valid preprocessor constant.
16304         (__argp_basename): Change from "#ifndef _LIBC"
16305         to "#ifndef __argp_short_program_name", so that
16306         we don't compile these functions for tar.
16307
16308         More merges from coreutils.
16309         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
16310         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
16311         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
16312         * lib/addext.c: Remove; no longer needed.
16313         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
16314         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
16315         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
16316         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
16317         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
16318         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
16319         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
16320         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
16321         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
16322         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
16323         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
16324         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
16325         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
16326         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
16327         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
16328         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
16329         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
16330         Import changes from coreutils.
16331
16332 2004-08-05  Simon Josefsson  <jas@extundo.com>
16333
16334         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
16335
16336 2004-08-05  Simon Josefsson  <jas@extundo.com>
16337
16338         * m4/getsubopt.m4: New file.
16339
16340 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
16341
16342         Merge from coreutils.
16343
16344         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
16345         * m4/getcwd-path-max.m4: New files.
16346
16347         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
16348         FILESYSTEM_PREFIX_LEN ->
16349         FILE_SYSTEM_PREFIX_LEN.
16350         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
16351         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
16352         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
16353         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
16354
16355         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
16356         prerequisite modules now handle the DOS stuff.
16357         Don't check for unistd.h.
16358
16359 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
16360
16361         Merge from coreutils.
16362
16363         * lib/.gdb-history: Remove; this doesn't belong here.
16364
16365         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
16366         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
16367         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
16368         * lib/getcwd.c: New files.
16369
16370         * lib/dirname.h: Include <stdbool.h>.
16371         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
16372         for consistency with POSIX terminology.  All uses changed.
16373         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
16374         (strip_trailing_slashes): Use bool for booleans.
16375         * lib/stripslash.c (strip_trailing_slashes): Likewise.
16376
16377         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
16378         sometimes returns a positive errno value even when it succeeds.
16379         (print_errno_message) [!LIBC]: Fall back on strerror if
16380         __strerror_r fails.
16381
16382         * lib/path-concat.c (mempcpy): Don't define if a system header defines
16383         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
16384         (longest_relative_suffix): New function.
16385         (path_concat): Use it.  Assume first argument is not NULL.
16386         Port to DOS.  Omit redundant separators.
16387         Report an error instead of returning NULL.
16388         Use mempcpy instead of memcpy.
16389         (xpath_concat): Remove: not declared or used.
16390
16391         * lib/same.h: Include <stdbool.h>
16392         (same_name): Return bool, not int.
16393         * lib/same.c (same_name): Likewise.
16394         (errno): Don't declare; we assume C89 or better now.
16395
16396         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
16397         if not already defined.
16398
16399         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
16400         * lib/dup-safer.c (errno): Likewise.
16401
16402 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
16403
16404         Merge from coreutils.
16405         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
16406         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
16407         * modules/path-concat: Don't depend on strdup.
16408
16409 2004-08-03  Simon Josefsson  <jas@extundo.com>
16410
16411         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
16412         * lib/progname.h: Don't include stdbool.h.
16413
16414 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
16415
16416         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
16417         * MODULES.html.sh (func_all_modules): Remove fatal.
16418
16419 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
16420
16421         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
16422
16423 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
16424
16425         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
16426         working.
16427
16428 2004-08-02  Simon Josefsson  <jas@extundo.com>
16429
16430         * lib/getsubopt.h: New file, with comments from Bruno Haible.
16431         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
16432         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
16433
16434 2004-08-01  Simon Josefsson  <jas@extundo.com>
16435
16436         * lib/xgetdomainname.c: Include stdlib.h, for free().
16437
16438 2004-07-19  Bruno Haible  <bruno@clisp.org>
16439
16440         * MODULES.html.sh (func_all_modules): Add dummy.
16441
16442 2004-07-16  Simon Josefsson  <jas@extundo.com>
16443
16444         * modules/dummy: New file.
16445
16446 2004-07-16  Simon Josefsson  <jas@extundo.com>
16447
16448         * lib/dummy.c: New file.
16449
16450 2004-07-16  Bruno Haible  <bruno@clisp.org>
16451
16452         * lib/backupfile.h: Add extern "C" for C++.
16453         * lib/closeout.h: Likewise.
16454         * lib/copy-file.h: Likewise.
16455         * lib/findprog.h: Likewise.
16456         * lib/full-write.h: Likewise.
16457         * lib/pathname.h: Likewise.
16458         * lib/progname.h: Likewise.
16459         * lib/stpcpy.h: Likewise.
16460         * lib/stpncpy.h: Likewise.
16461         * lib/strcase.h: Likewise.
16462         * lib/strstr.h: Likewise.
16463         * lib/xalloc.h: Likewise.
16464
16465         * lib/mbswidth.h: Add extern "C" for C++.
16466         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
16467
16468 2004-07-13  Robert Millan  <robertmh@gnu.org>
16469
16470         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
16471
16472 2004-07-09  Simon Josefsson  <jas@extundo.com>
16473
16474         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
16475         failed without this.)
16476
16477 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
16478
16479         * modules/chown (Files): Add lib/fchown-stub.c, since
16480         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
16481
16482 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
16483
16484         * lib/fchown-stub.c: New file.
16485
16486 2004-06-24  Jim Meyering  <jim@meyering.net>
16487
16488         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
16489
16490 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
16491
16492         * modules/argz: Omit "#include".
16493
16494         * MODULES.html.sh (func_all_modules): Add calloc, to match
16495         2004-06-01 addition of calloc module.
16496
16497 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
16498
16499         * m4/argz.m4: New file, which is autoupdated from libtool.
16500
16501 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
16502
16503         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
16504         libtool.
16505
16506 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
16507
16508         * config/srclist-update: Don't insist on "USA." before the
16509         close-comment, as libtool omits the period and puts the */ on a
16510         separate line.
16511         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
16512         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
16513
16514 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
16515
16516         * modules/argz: New file.
16517         * MODULES.html.sh (func_all_modules): Add argz.
16518
16519 2004-06-12  Jim Meyering  <jim@meyering.net>
16520         and  Paul Eggert  <eggert@cs.ucla.edu>
16521
16522         * modules/hash (Files): Add lib/xalloc.h.
16523         * modules/pipe (Depends-on): Add wait-process.
16524         * modules/stat (Depends-on): Add xalloc.
16525         * modules/userspec (Files): Add lib/userspec.h.
16526         * modules/xstrto
16527
16528         Upgrade from gettext-0.13.
16529         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
16530         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
16531         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
16532
16533 2004-06-10  Jim Meyering  <jim@meyering.net>
16534
16535         * lib/calloc.c: New file.
16536
16537 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
16538
16539         * lib/getdate.y (yylex): Allow space between sign and number.
16540         Problem reported by Dan Jacobson.
16541
16542 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
16543
16544         Merge from coreutils CVS.
16545
16546         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
16547         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
16548         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
16549         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
16550         xstrtol.m4: Fix copyright date and/or serial number.
16551
16552         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
16553         See if we need an fchown replacement.
16554         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
16555         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
16556         and use the replacement function if we detect either defect.
16557
16558         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
16559         gl_UTIMECMP.
16560
16561 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
16562         and  Jim Meyering  <jim@meyering.net>
16563
16564         Merge from coreutils CVS.
16565
16566         * lib/stat-macros.h: New file, with contents from file-type.h
16567         and coreutils' system.h.
16568         * lib/file-type.c: Include "stat-macros.h".
16569         * lib/file-type.h (file_type): Move all macro definitions to new file,
16570         stat-macros.h.
16571
16572         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
16573         Wrap old code with this conditional.
16574         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
16575         function that does not dereference symlinks.
16576         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
16577
16578         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
16579         dependency problems.
16580         (xreadlink): Accept new arg SIZE, for efficiency.
16581         All decls and uses changed.
16582         * lib/xreadlink.h: Include <stddef.h>, for size_t.
16583
16584         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
16585         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
16586
16587         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
16588         sysexits.h.
16589
16590 2004-06-01  Jim Meyering  <jim@meyering.net>
16591
16592         * m4/calloc.m4: New file.
16593
16594 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
16595
16596         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
16597         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
16598         Also, fix a typo in a diagnostic.
16599
16600 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
16601
16602         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
16603         or AC_FUNC_REALLOC.
16604
16605 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
16606
16607         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
16608         macros to be defined.
16609         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
16610         the allocator returns NULL because the requested size is zero.
16611
16612 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
16613
16614         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
16615         var.  Add comment explaining why libc still defines it.  This
16616         merges the following patch from glibc:
16617         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
16618
16619 2004-05-20  Andreas Schwab  <schwab@suse.de>
16620
16621         * m4/free.m4: Replace free if it not known to work, not the other
16622         way round.
16623
16624 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
16625
16626         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
16627         present in glibc since revision 1.1 of this file.
16628         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
16629         obstack_alignment_mask, obstack_alloc, obstack_base,
16630         obstack_blank, obstack_blank_fast, obstack_chunk_size,
16631         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
16632         obstack_grow0, obstack_init, obstack_int_grow,
16633         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
16634         obstack_next_free, obstack_object_size, obstack_ptr_grow,
16635         obstack_ptr_grow_fast, obstack_room): Remove declarations of
16636         nonexistent functions.
16637
16638 2004-05-18  Karl Berry  <karl@gnu.org>
16639
16640         * config/srclist.txt: break link for vasnprintf.c.
16641
16642 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
16643
16644         Port obstack to the AS/400, where pointers are 16 bytes wide and
16645         you cannot cast an integer to a valid pointer.  This patch is
16646         currently waiting to be integrated into glibc; see
16647         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
16648
16649         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
16650         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
16651         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
16652         (struct obstack): temp member is now a union of a pointer and
16653         an integer, instead of an integer.  All integer uses changed.
16654         This does not affect the physical layout of struct obstack,
16655         except on hosts (like the AS/400) where the size or alignment of
16656         void * is greater than that of ptrdiff_t.
16657         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
16658         __STDC__)]: Store temporary in pointer member of union, not
16659         integer member.
16660         * lib/obstack.c: Include <stddef.h>, for offsetof.
16661         (struct fooalign): Remove; it doesn't need a name.
16662         (union fooround): Change double to long double, and add void *.
16663         (DEFAULT_ALIGNMENT): Use offsetof to compute.
16664         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
16665         not a macro.  Hence the values are always int; so remove all
16666         casts-to-int in uses.
16667
16668 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
16669
16670         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
16671         we can get this patch merged into glibc.
16672
16673 2004-05-17  Derek R. Price  <derek@ximbiot.com>
16674             Paul Eggert  <eggert@cs.ucla.edu>
16675
16676         * m4/argp: Depend on alloca.
16677
16678 2004-05-17  Derek R. Price  <derek@ximbiot.com>
16679             Paul Eggert  <eggert@cs.ucla.edu>
16680
16681         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
16682         freecoding.
16683
16684 2004-05-17  Bruno Haible  <bruno@clisp.org>
16685
16686         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
16687         precision that consists of a '.' followed by an empty digit string.
16688         Patch by Tor Lillqvist <tml@iki.fi>.
16689
16690 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
16691
16692         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
16693         for backward compatibility with older code.  We need our own
16694         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
16695         it under some other name, and our alloca.h will define it.
16696
16697 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
16698             Derek Price  <derek@ximbiot.com>
16699
16700         * lib/alloca.c: Include <alloca.h>, to get our interface.
16701         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
16702         include <alloca.h> first.  Use C89 prototype for alloca; this
16703         requires including <stddef.h> for size_t.  Use extern "C" if C++.
16704         Use #elif for simplicity, since we can assume C89 now.
16705         Don't try to source the system alloca.h since it will not be found
16706         and to prevent recursively including its replacement.
16707         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
16708         * lib/regex.c: Likewise.
16709
16710 2004-05-16  Derek Price  <derek@ximbiot.com>
16711             Paul Eggert  <eggert@cs.ucla.edu>
16712
16713         getline cleanup.  This changes the getndelim2 API: both order of
16714         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
16715         no delimiter).
16716
16717         * lib/getline.c: Don't include stddef.h or stdio.h, since our
16718         interface does that.
16719         (getline): Always use getdelim, so that we don't have two
16720         copies of this code.
16721         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
16722         if available.
16723         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
16724         (GETNDELIM2_MAXIMUM): New macro.
16725         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
16726         instead of the old practice of delim2==0.  All callers changed.
16727         Return -1 on overflow, instead of returning junk.
16728         Do not set *linesize unless allocation succeeds.
16729         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
16730         that we include sys/types.h.
16731         * lib/getnline.h: Likewise.
16732         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
16733         (getndelim2): Reorder arguments.
16734         * lib/getnline.c (getnline, getndelim):
16735         Don't discard the NMAX argument.
16736         (getnline): Invoke getndelim, to avoid code duplication.
16737         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
16738         of (size_t) -1 by callers of the getnline family.
16739
16740 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
16741
16742         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
16743         Check for gettimeofday.
16744         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
16745         Check for settimeofday, stime.
16746
16747 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
16748
16749         * lib/nanosleep.c (suspended): Change its type from int to
16750         sig_atomic_t volatile.
16751         (first_call): Make it private to rpl_nanosleep, and have it
16752         be zero initially as that's a bit faster.
16753         (my_usleep): Round up fractional times instead of truncating them,
16754         as this is the usual meaning for 'sleep'.
16755
16756         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
16757         doesn't work.
16758         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
16759         (ENOSYS): Define if not defined.
16760         (settime): Fall back on stime if it exists and settimeofday fails.
16761         But don't bother with fallbacks if a method fails with errno == EPERM.
16762
16763 2004-05-11  Jim Meyering  <jim@meyering.net>
16764
16765         Prior to this change, the save_cwd caller required read access to the
16766         current directory on most systems (ones with the fchdir function).
16767
16768         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
16769         fails, try write-only, and finally, resort to using xgetcwd.
16770
16771 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
16772
16773         * lib/obstack.c, obstack.h: Import changes from libc.
16774
16775 2004-04-28  Bruno Haible  <bruno@clisp.org>
16776
16777         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
16778         also implicitly appends .exe to executables.
16779         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
16780         accepts Windows pathnames.
16781         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
16782         Treat Cygwin like Windows, since it now accepts Windows pathnames.
16783         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
16784         Treat Cygwin like Windows, since it now accepts Windows pathnames.
16785         Reported by Derek Robert Price <derek@ximbiot.com>.
16786
16787 2004-04-21  Karl Berry  <karl@gnu.org>
16788
16789         * config/srclist.txt (localcharset.c): break sync.
16790
16791 2004-04-20  Paul Eggert  <eggert@twinsun.com>
16792
16793         * m4/host-os.m4: Add a copyright notice.
16794
16795 2004-04-20  Jim Meyering  <jim@meyering.net>
16796
16797         Change UTILS_ to gl_ in AC_DEFINE'd names.
16798         Change utils_- and jm_-prefixed variables, too.
16799         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
16800         UTILS_FUNC_MKDIR_TRAILING_SLASH.
16801         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
16802
16803         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
16804         Don't emit trailing blanks.
16805         Also rename jm_-prefixed variables to have gl_ prefix.
16806
16807         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
16808         Also rename jm_-prefixed variables to have gl_ prefix.
16809
16810         * m4/jm-macros.m4: Reflect the renamings.
16811         * m4/prereq.m4: Likewise.
16812
16813 2004-04-20  Jim Meyering  <jim@meyering.net>
16814
16815         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
16816         memory.
16817
16818 2004-04-20  Jim Meyering  <jim@meyering.net>
16819             Bruno Haible  <bruno@clisp.org>
16820
16821         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
16822         memory when realloc fails.
16823
16824 2004-04-19  Jim Meyering  <jim@meyering.net>
16825
16826         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
16827         now that readutmp.c may call `free (0)'.
16828
16829 2004-04-19  Bruno Haible  <bruno@clisp.org>
16830
16831         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
16832         * m4/inttypes_h.m4: Likewise.
16833         * m4/stdint_h.m4: Likewise.
16834         * m4/intmax_t.m4: Likewise.
16835         * m4/uintmax_t.m4: Likewise.
16836
16837 2004-04-18  Jim Meyering  <jim@meyering.net>
16838
16839         * m4/prereq.m4: Don't forbid jm_ prefix.
16840
16841         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
16842         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
16843         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
16844         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
16845         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
16846         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
16847         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
16848         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
16849         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
16850         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
16851         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
16852         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
16853         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
16854         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
16855         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
16856         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
16857         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
16858         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
16859         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
16860
16861 2004-04-18  Jim Meyering  <jim@meyering.net>
16862
16863         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
16864         failure, don't leak memory and do call END_UTMP_ENT.
16865
16866 2004-04-16  Jim Meyering  <jim@meyering.net>
16867
16868         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
16869         coreutils' stat program.
16870         (gl_PREREQ): Don't require jm_PREREQ_STAT.
16871
16872 2004-04-11  Paul Eggert  <eggert@twinsun.com>
16873
16874         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
16875         C89.
16876         (CHAR_BIT): Remove, since we assume C89.
16877         Include <stdint.h> if available, as per current Autoconf CVS advice.
16878
16879 2004-03-31  Jim Meyering  <jim@meyering.net>
16880
16881         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
16882         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
16883         * m4/xalloc.m4: Likewise.
16884
16885 2004-03-30  Paul Eggert  <eggert@twinsun.com>
16886
16887         Merge from coreutils.
16888
16889         * m4/inttostr.m4: New file.
16890         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
16891         Require AM_STDBOOL_H and gl_TIMESPEC instead.
16892         Require gl_CLOCK_TIME.
16893         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
16894
16895 2004-03-30  Paul Eggert  <eggert@twinsun.com>
16896
16897         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
16898         not bool, to be more consistent with Unix conventions.
16899         Suggested by Bruno Haible.
16900
16901         Merge from coreutils.
16902
16903         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
16904         * lib/umaxtostr.c: New files.
16905
16906         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
16907         the usual <time.h> dance.
16908         (get_date): Change signature to support fractional time stamps.
16909         All callers changed.
16910         * lib/getdate.y: Include "getdate.h" first, as we can now
16911         assume C89 and don't need to worry about 'const'.
16912         Similarly, include "unlocked-io.h" near start, not in middle.
16913         Include <limits.h>.
16914         (textint.value): Use long int rather than int.
16915         (textint.digits): Use size_t rather than int.
16916         (BILLION, LOG10_BILLION): New constants.
16917         (parser_control): New member rel_ns.  Members day_ordinal,
16918         time_zone, month, day, hour, minutes, rel_year, rel_month,
16919         rel_day, rel_hour, rel_minutes, rel_seconds
16920         are now long int, not int.  Member seconds is now struct timespec,
16921         not int.  New member timespec_seen.  Members dates_seen, days_seen,
16922         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
16923         not int.
16924         (%union.intval): Now long int, not int.
16925         New member timespec.
16926         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
16927         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
16928         (spec): Now is a timespec or an item list.
16929         (timespec, items): New nonterminals.
16930         (time, rel, relunit, number, get_date):
16931         Add support for fractional seconds.
16932         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
16933         (gmtime, localtime, mktime): Remove decls; not needed with C89.
16934         (to_hour): First arg is now long int, not int.
16935         (to_year): Returns long int, not int.
16936         Don't treat year -70 like 70.
16937         (tm_diff): Returns long int, not int.
16938         (lookup_word): Use bool instead of int when appropriate.
16939         (yylex): Use size_t for count, not int.
16940         Detect overflow when parsing large integer constants.
16941         Add support for fractions.
16942         (get_date): Make pointers 'const' if possible.
16943         Use more-portable code to detect integer overflow.
16944         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
16945         Don't use ctime; it's not reliable if the year has >4 digits.
16946
16947         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
16948         This is for compatibility with BSD.
16949
16950         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
16951         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
16952         From coreutils' system.h.
16953
16954         * lib/userspec.c: Don't include "posixver.h".
16955         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
16956         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
16957         compatible extension.  Simplify code by removing a boolean int
16958         that was always nonzero if a string was nonnull.
16959
16960 2004-03-30  Jim Meyering  <jim@meyering.net>
16961
16962         Merge from coreutils.
16963
16964         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
16965         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
16966         on some systems one must include <grp.h> before it.
16967         Reported by Christian Krackowizer.
16968
16969 2004-03-30  Jim Meyering  <jim@meyering.net>
16970
16971         Merge from coreutils.
16972
16973         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
16974
16975         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
16976         an empty input stream.
16977
16978         * lib/readtokens.c: Include <stdbool.h>.
16979         (readtoken): Use `size_t' rather than int/long.
16980         All callers adjusted.
16981         Use `bool' rather than `int' where appropriate.
16982         Use memset rather than an explicit loop.
16983         Use x2nrealloc rather than xrealloc.
16984         Allow the use of `\0' as a delimiter.
16985         (readtokens): Likewise.
16986         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
16987
16988 2004-03-30  Jim Meyering  <jim@meyering.net>
16989
16990         * m4/realloc.m4: Remove file, since now it does no more than
16991         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
16992         the `configure.ac' section of module/realloc.
16993         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
16994
16995 2004-03-30  Bruno Haible  <bruno@clisp.org>
16996
16997         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
16998         nonnull.
16999
17000 2004-03-29  Paul Eggert  <eggert@twinsun.com>
17001
17002         Merge changes to getloadavg.c from coreutils and Emacs.
17003
17004         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
17005         Define to an expression, not to the empty string.
17006         Include cloexec.h and xalloc.h.
17007         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
17008         Use set_cloexec_flag rather than rolling our own.
17009         * lib/cloexec.c, lib/cloexec.h: New files.
17010
17011 2004-03-29  Paul Eggert  <eggert@twinsun.com>
17012
17013         * m4/cloexec.m4: New file.
17014
17015 2004-03-18  Paul Eggert  <eggert@twinsun.com>
17016
17017         * lib/getopt.h: Sync with libc CVS.
17018
17019 2004-03-18  Paul Eggert  <eggert@twinsun.com>
17020             Bruno Haible  <bruno@clisp.org>
17021
17022         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
17023         mbswidth.
17024
17025 2004-03-18  Paul Eggert  <eggert@twinsun.com>
17026             Bruno Haible  <bruno@clisp.org>
17027
17028         * lib/mbswidth.h: Include <wchar.h> only if
17029         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
17030         <wchar.h>.
17031         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
17032
17033 2004-03-09  Paul Eggert  <eggert@twinsun.com>
17034
17035         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
17036         Sync with libc CVS.
17037         * lib/getopt_int.h: New file, also synced from libc.
17038
17039 2004-03-09  Paul Eggert  <eggert@twinsun.com>
17040
17041         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
17042         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
17043         Bring back getopt.c, getopt.h, getopt1.c.
17044
17045 2004-03-07  Paul Eggert  <eggert@twinsun.com>
17046
17047         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
17048         All uses changed.  Check for sa_sigaction member; this fixes
17049         a bug first reported by Jason Andrade in
17050         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
17051
17052 2004-03-07  Paul Eggert  <eggert@twinsun.com>
17053
17054         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
17055         '#if' expressions.  Unlike the code it replaces, it does not
17056         depend on (defined _SC_PAGESIZE).  However, it does depend on
17057         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
17058         first reported by Jason Andrade in
17059         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
17060
17061 2004-02-25  Simon Josefsson  <jas@extundo.com>
17062
17063         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
17064
17065 2004-02-25  Simon Josefsson  <jas@extundo.com>
17066
17067         * lib/strdup.h: New file.
17068         * lib/strdup.c: Include it.
17069         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
17070         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
17071
17072 2004-02-23  Karl Berry  <karl@gnu.org>
17073
17074         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
17075         (from fencepost.gnu.org:/gd/gnuorg).
17076
17077 2004-02-23  Karl Berry  <karl@gnu.org>
17078
17079         * config/srclistvars.sh (GNUORG) [karl]: redefine.
17080         * config/srclist.txt: add maintain/standards documents.
17081
17082 2004-02-18  Bruno Haible  <bruno@clisp.org>
17083
17084         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
17085         Reported by Derek Robert Price <derek@ximbiot.com>.
17086
17087 2004-02-16  Karl Berry  <karl@gnu.org>
17088
17089         * config/mkinstalldirs, install-sh: update from automake.
17090
17091 2004-02-06  Karl Berry  <karl@gnu.org>
17092
17093         * m4/po.m4: update from gettext 0.14.1.
17094
17095 2004-02-06  Karl Berry  <karl@gnu.org>
17096
17097         * lib/config.charset: update from gettext 0.14.1.
17098
17099 2004-02-05  Paul Eggert  <eggert@twinsun.com>
17100
17101         Add comments and code, prompted by suggestions from Bruno Haible
17102         for sh-quote.
17103         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
17104         describing the enum quoting_style values.
17105         * lib/quotearg.c (quotearg_alloc): New function.
17106         (quotearg_buffer_restyled): Treat lone { and } as special.
17107         Treat = as special.  Work around bug with older shells
17108         that "see" a '\' that is really the 2nd byte of a multibyte char.
17109         Quote empty string with shell_quoting_style.
17110
17111 2004-02-03  Bruno Haible  <bruno@clisp.org>
17112
17113         * m4/pipe.m4: New file, from GNU gettext.
17114
17115 2004-02-03  Bruno Haible  <bruno@clisp.org>
17116
17117         * lib/pipe.h: New file, from GNU gettext.
17118         * lib/pipe.c: New file, from GNU gettext.
17119
17120 2004-01-27  Bruno Haible  <bruno@clisp.org>
17121
17122         * m4/execute.m4: New file, from GNU gettext.
17123
17124 2004-01-27  Bruno Haible  <bruno@clisp.org>
17125
17126         * lib/execute.h: New file, from GNU gettext.
17127         * lib/execute.c: New file, from GNU gettext.
17128         * lib/w32spawn.h: New file, from GNU gettext.
17129
17130 2004-01-24  Paul Eggert  <eggert@twinsun.com>
17131
17132         Merge from diffutils.
17133
17134         * lib/file-type.c (file_type): Add typed memory objects.
17135         * lib/file-type.h (S_TYPEISTMO): New macro.
17136
17137         * lib/c-stack.h (c_stack_action): Remove argv argument.
17138         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
17139         (die): Don't calculate message unless segv_action returns.
17140         (get_stack_location, min_address_from_argv, max_address_from_argv,
17141         volatile stack_base, volatile_stack_size): Remove.
17142         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
17143         that every segmentation violation is a stack overflow.  (Ouch!)
17144         See Debian bug 136249 (still outstanding) for more info about why
17145         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
17146
17147 2004-01-24  Paul Eggert  <eggert@twinsun.com>
17148
17149         Exit-status fix from coreutils.
17150
17151         Use exit_failure consistently in place of EXIT_FAILURE,
17152         so that program exit statuses are consistent on failure.
17153
17154         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
17155         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
17156         * lib/argmatch.h: Comment fix to match the above.
17157         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
17158         Now a macro referring to exit_failure, instead of a separate
17159         variable.  Include "exitfail.h" to get it.
17160         * lib/xstrtol.h: Include "exitfail.h".
17161         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
17162
17163         * lib/long-options.c (parse_long_options): Use prototype
17164         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
17165         for clarity.
17166
17167 2004-01-21  Jim Meyering  <jim@meyering.net>
17168
17169         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
17170         so as not to conflict with a different-sized __mktime_internal
17171         function in GNU libc.
17172         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
17173         Problem building statically-linked `ls' reported by Michael Brunnbauer.
17174
17175 2004-01-20  Karl Berry  <karl@gnu.org>
17176
17177         * config/config.guess: update from config.
17178
17179         * config/srclistvars.sh: GNUWWWLICENSES for karl.
17180
17181 2004-01-20  Bruno Haible  <bruno@clisp.org>
17182
17183         Safer stack allocation.
17184         * lib/setenv.c: Include allocsa.h.
17185         (alloca): Remove fallback definition.
17186         (freea): Remove macro.
17187         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
17188         instead of freea.
17189
17190 2004-01-20  Bruno Haible  <bruno@clisp.org>
17191
17192         * m4/eealloc.m4: New file, from GNU gettext.
17193
17194 2004-01-20  Bruno Haible  <bruno@clisp.org>
17195
17196         * m4/allocsa.m4: New file, from GNU gettext.
17197
17198 2004-01-20  Bruno Haible  <bruno@clisp.org>
17199
17200         * lib/xallocsa.h: New file, from GNU gettext.
17201         * lib/xallocsa.c: New file, from GNU gettext.
17202
17203 2004-01-20  Bruno Haible  <bruno@clisp.org>
17204
17205         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
17206
17207 2004-01-20  Bruno Haible  <bruno@clisp.org>
17208
17209         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
17210         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
17211         specially.
17212
17213 2004-01-20  Bruno Haible  <bruno@clisp.org>
17214
17215         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
17216         patch.
17217
17218 2004-01-20  Bruno Haible  <bruno@clisp.org>
17219
17220         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
17221
17222 2004-01-20  Bruno Haible  <bruno@clisp.org>
17223
17224         * lib/eealloc.h: New file.
17225
17226 2004-01-20  Bruno Haible  <bruno@clisp.org>
17227
17228         * lib/binary-io.h: Avoid warnings on Cygwin.
17229
17230 2004-01-20  Bruno Haible  <bruno@clisp.org>
17231
17232         * lib/allocsa.h: New file, from GNU gettext.
17233         * lib/allocsa.c: New file, from GNU gettext.
17234
17235 2004-01-18  Karl Berry  <karl@gnu.org>
17236
17237         * doc/gpl.texi, doc/lgpl.texi: new files.
17238
17239 2004-01-18  Karl Berry  <karl@gnu.org>
17240
17241         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
17242         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
17243
17244 2004-01-15  Paul Eggert  <eggert@twinsun.com>
17245
17246         Merge from coreutils.
17247
17248         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
17249         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
17250         (gl_DEFAULT_POSIX2_VERSION): Move
17251         the documentation from 'configure' into 'config.hin',
17252         so that 'configure --help' isn't burdened by it and
17253         we don't have to worry about its formatting there.
17254         Reword the documentation so that it's more succinct
17255         and can be run together into a single paragraph.
17256         * m4/same.m4 (gl_SAME): Check for pathconf.
17257
17258 2004-01-15  Paul Eggert  <eggert@twinsun.com>
17259
17260         Merge from coreutils.
17261
17262         * lib/posixver.c: Include posixver.h.
17263
17264         * lib/same.c: Include <stdbool.h>, <limits.h>.
17265         (_POSIX_NAME_MAX): Define if not defined.
17266         (MIN): New macro.
17267         (same_name): If file names are silently truncated, report
17268         that the file names are the same if they are the same after
17269         the silent truncation.
17270
17271         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
17272         conversion function.
17273         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
17274         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
17275         longer needed.
17276
17277 2004-01-15  Jim Meyering  <jim@meyering.net>
17278
17279         Merge from coreutils.
17280
17281         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
17282         if no library is required.
17283         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
17284         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
17285         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
17286         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
17287         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
17288         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
17289         value, $ac_cv_search_crypt, if it's "none required".
17290         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
17291         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
17292         not gl_FUNC_GETLOADAVG.
17293         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
17294         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
17295
17296 2004-01-15  Jim Meyering  <jim@meyering.net>
17297
17298         Merge from coreutils.
17299
17300         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
17301         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
17302         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
17303
17304         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
17305         optional configure-time default.
17306
17307         * lib/version-etc.c (version_etc_copyright): Update copyright date.
17308
17309         * lib/xreadlink.c (xreadlink): Correct outdated comment.
17310
17311 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
17312
17313         Merge from coreutils.
17314
17315         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
17316         value, $ac_cv_search_nanosleep, if it's "none required".
17317
17318 2004-01-14  Paul Eggert  <eggert@twinsun.com>
17319
17320         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
17321         with like-named macro in fnmatch.c.
17322         (EXT): Use an internal constant instead.
17323
17324         Merge fnmatch patches from glibc.
17325         * lib/fnmatch.c (mbsinit): Remove define.
17326         Add libc_hidden_ver (__fnmatch, fnmatch).
17327         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
17328         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
17329
17330 2004-01-14  Karl Berry  <karl@gnu.org>
17331
17332         * config/install-sh: update from automake.
17333
17334 2004-01-13  Karl Berry  <karl@gnu.org>
17335
17336         * config/install-sh: update from automake.
17337
17338 2004-01-09  Karl Berry  <karl@gnu.org>
17339
17340         * config/install-sh: update from automake.
17341
17342 2004-01-05  Karl Berry  <karl@gnu.org>
17343
17344         * config/config.{sub,guess}: update from config.
17345
17346 2003-12-31  Karl Berry  <karl@gnu.org>
17347
17348         * config/depcomp: update from automake.
17349
17350 2003-12-14  Karl Berry  <karl@gnu.org>
17351
17352         * lib/config.charset: update from gettext-runtime.
17353
17354 2003-12-03  Paul Eggert  <eggert@twinsun.com>
17355
17356         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
17357         Bug reported by Alfred M. Szmidt.
17358
17359 2003-12-03  Bruno Haible  <bruno@clisp.org>
17360
17361         * m4/gettext.m4: Upgrade from gettext-0.13.
17362         * m4/po.m4: Upgrade from gettext-0.13.
17363         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
17364         * m4/intmax.m4: New file, from gettext-0.13.
17365         * m4/printf-posix.m4: New file, from gettext-0.13.
17366
17367 2003-11-29  Karl Berry  <karl@gnu.org>
17368
17369         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
17370
17371 2003-11-25  Paul Eggert  <eggert@twinsun.com>
17372             Bruno Haible  <bruno@clisp.org>
17373
17374         * lib/printf-parse.h: Don't include sys/types.h.
17375         (ARG_NONE): New macro.
17376         (char_directive): Change type of *arg_index fields to size_t.
17377         * lib/printf-parse.c: Don't include sys/types.h.
17378         (SSIZE_MAX): Remove macro.
17379         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
17380         Remove unnecessary overflow check.
17381         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
17382         fields.
17383
17384 2003-11-25  Bruno Haible  <bruno@clisp.org>
17385
17386         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
17387
17388 2003-11-25  Bruno Haible  <bruno@clisp.org>
17389
17390         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
17391         gt_TYPE_SSIZE_T.
17392
17393 2003-11-24  Paul Eggert  <eggert@twinsun.com>
17394
17395         * modules/alloca: Remove dependency on xalloc.
17396
17397 2003-11-24  Paul Eggert  <eggert@twinsun.com>
17398
17399         * lib/alloca.c: Remove dependency on xalloc module.
17400         (xalloc_die): Remove.
17401         (memory_full) [!defined emacs]: New macro.
17402         [!defined emacs]: Don't include xalloc.h.
17403         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
17404         address arithmetic overflows.  Change datatypes a bit to avoid
17405         unnecessary casts.
17406
17407 2003-11-22  Jim Meyering  <jim@meyering.net>
17408
17409         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
17410         s/size/size_t/.
17411
17412 2003-11-21  Karl Berry  <karl@gnu.org>
17413
17414         * config/config.{sub,guess}: update from config.
17415
17416 2003-11-18  Karl Berry  <karl@gnu.org>
17417
17418         * config/config.{sub,guess}: update from config.
17419
17420         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
17421
17422 2003-11-17  Paul Eggert  <eggert@twinsun.com>
17423
17424         * README: Mention that S+T cannot overflow if S is the size of
17425         an existing object and T is sufficiently small.
17426
17427 2003-11-17  Jim Meyering  <jim@meyering.net>
17428
17429         On systems without utime and without a utimes function capable of
17430         dealing with a NULL struct utimbuf* argument, this utime replacement
17431         could -- in unusual circumstances -- leak a file descriptor.
17432         * lib/utime.c: Include <unistd.h> and <errno.h>.
17433         (utime_null): Be sure to close `fd' and to preserve errno.
17434         Reported by Geoff Collyer via Arnold Robbins.
17435
17436 2003-11-17  Bruno Haible  <bruno@clisp.org>
17437
17438         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
17439         (Depends-on): Add xsize.
17440
17441 2003-11-17  Bruno Haible  <bruno@clisp.org>
17442
17443         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
17444
17445 2003-11-17  Bruno Haible  <bruno@clisp.org>
17446
17447         * lib/vasnprintf.c (alloca): Remove fallback definition.
17448         (freea): Remove definition.
17449         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
17450         Reported by Paul Eggert.
17451
17452 2003-11-16  Paul Eggert  <eggert@twinsun.com>
17453             Bruno Haible  <bruno@clisp.org>
17454
17455         Protect against address arithmetic overflow.
17456         * lib/printf-args.h: Include stddef.h.
17457         (arguments): Change type of field 'count' to size_t.
17458         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
17459         'unsigned int' where appropriate.
17460         * lib/printf-parse.h: Include sys/types.h.
17461         (char_directive): Change type of *arg_index fields to ssize_t.
17462         (char_directives): Change type of fields 'count', max_*_length to
17463         size_t.
17464         * lib/printf-parse.c: Include sys/types.h and xsize.h.
17465         (SSIZE_MAX): Define fallback value.
17466         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
17467         instead of 'int' where appropriate. Check a_allocated, d_allocated
17468         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
17469         * lib/vasnprintf.c: Include xsize.h.
17470         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
17471         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
17472         overflow. Avoid wraparound when converting a width or precision from
17473         decimal to binary.
17474
17475 2003-11-16  Bruno Haible  <bruno@clisp.org>
17476
17477         Update from GNU gettext.
17478         * lib/printf-parse.c: Generalize to it can be compiled for wide
17479         strings.
17480         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
17481         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
17482         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
17483         SNPRINTF): New macros.
17484         Don't include <alloca.h> if the file is used inside libintl.
17485         (local_wcslen): New function, for Solaris 2.5.1.
17486         (VASNPRINTF): Use it instead of wcslen.
17487
17488 2003-11-16  Bruno Haible  <bruno@clisp.org>
17489
17490         * lib/xsize.h (xmax): New function.
17491         (xsum, xsum3, xsum4): Declare as "pure" functions.
17492
17493 2003-11-12  Paul Eggert  <eggert@twinsun.com>
17494
17495         * modules/xalloc (Files): Undo latest change, since xalloc.h
17496         no longer needs SIZE_MAX or PTRDIFF_MAX.
17497
17498 2003-11-12  Paul Eggert  <eggert@twinsun.com>
17499
17500         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
17501         gl_PTRDIFF_MAX.
17502
17503 2003-11-12  Paul Eggert  <eggert@twinsun.com>
17504
17505         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
17506         "return", to pacify some unknown compiler.  Problem reported
17507         by Joerg Schilling.
17508
17509 2003-11-12  Paul Eggert  <eggert@twinsun.com>
17510
17511         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
17512         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
17513         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
17514         heuristic is just as accurate as far as we know, and it removes a
17515         dependency on size_max.m4 and ptrdiff_max.m4.
17516
17517 2003-11-11  Bruno Haible  <bruno@clisp.org>
17518
17519         * modules/xsize (Files): Add m4/size_max.m4.
17520         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
17521
17522 2003-11-11  Bruno Haible  <bruno@clisp.org>
17523
17524         * m4/size_max.m4: New file.
17525         * m4/ptrdiff_max.m4: New file.
17526         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
17527         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
17528         (gl_XALLOC): Invoke it.
17529
17530 2003-11-11  Bruno Haible  <bruno@clisp.org>
17531
17532         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
17533         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
17534         defined.
17535
17536 2003-11-10  Paul Eggert  <eggert@twinsun.com>
17537
17538         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
17539         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
17540         rejected some allocations of exactly SIZE_MAX - 2 bytes.
17541         From Bruno Haible.
17542         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
17543         not (size_t) -1, since it's defined here.
17544
17545 2003-11-09  Karl Berry  <karl@gnu.org>
17546
17547         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
17548
17549 2003-11-06  Paul Eggert  <eggert@twinsun.com>
17550
17551         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
17552         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
17553         Reject sizes of exactly SIZE_MAX bytes.
17554         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
17555         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
17556
17557 2003-11-05  Bruno Haible  <bruno@clisp.org>
17558
17559         * lib/xsize.h: Include limits.h, to avoid a possible collision with
17560         SIZE_MAX defined in <limits.h> on Solaris.
17561
17562 2003-11-04  Jim Meyering  <jim@meyering.net>
17563
17564         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
17565         variable names, rather than @VAR@.
17566         * modules/poll: Likewise.
17567
17568 2003-11-04  Bruno Haible  <bruno@clisp.org>
17569
17570         * modules/xsize: New file.
17571         * modules/linebreak: Depend on xsize.
17572         * MODULES.html.sh (func_all_modules): Add xsize.
17573
17574 2003-11-04  Bruno Haible  <bruno@clisp.org>
17575
17576         * m4/xsize.m4: New file.
17577
17578 2003-11-04  Bruno Haible  <bruno@clisp.org>
17579
17580         * lib/xsize.h: New file.
17581         * lib/linebreak.c: Include xsize.h.
17582         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
17583         argument for overflow.
17584         Suggested by Paul Eggert.
17585
17586 2003-11-03  Karl Berry  <karl@gnu.org>
17587
17588         * config/config.{guess,sub}: update from config.
17589
17590 2003-11-03  Jim Meyering  <jim@meyering.net>
17591
17592         * modules/userspec (lib_SOURCES): Add userspec.h.
17593         (Include): Add "userspec.h".
17594         Improve description.
17595
17596 2003-11-03  Jim Meyering  <jim@meyering.net>
17597
17598         * lib/userspec.c: Include "userspec.h".
17599         * lib/userspec.h: New file.
17600
17601 2003-11-03  Bruno Haible  <bruno@clisp.org>
17602
17603         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
17604
17605 2003-11-03  Bruno Haible  <bruno@clisp.org>
17606
17607         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
17608         available, to avoid (extremely rare) race condition.
17609         Suggested by Paul Eggert.
17610
17611 2003-11-02  Karl Berry  <karl@gnu.org>
17612
17613         * config/srclist.txt (vasprintf.c): sync broken, sigh.
17614
17615 2003-10-31  Paul Eggert  <eggert@twinsun.com>
17616
17617         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
17618         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
17619         (read_filesystem_list): Set and use me_type_malloced.
17620         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
17621         whatever the type happens to be), for brevity and consistency.
17622         Check for size calculation overflow on Alphas running OSF/1.
17623
17624 2003-10-31  Jim Meyering  <jim@meyering.net>
17625
17626         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
17627
17628         * lib/linebuffer.c: Include <string.h> for declaration of memset.
17629
17630 2003-10-30  Paul Eggert  <eggert@twinsun.com>
17631             Bruno Haible  <bruno@clisp.org>
17632
17633         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
17634         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
17635
17636 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
17637
17638         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
17639         netbsd*-gnu*.  Suggested by Robert Millan.
17640
17641 2003-10-29  Paul Eggert  <eggert@twinsun.com>
17642
17643         * modules/group-member: Depend on stdbool.
17644
17645 2003-10-29  Paul Eggert  <eggert@twinsun.com>
17646
17647         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
17648
17649 2003-10-29  Paul Eggert  <eggert@twinsun.com>
17650
17651         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
17652         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
17653         after the 'gnu' in these cases.  This fixes some bugs in the
17654         previous change, and is based on suggestions by Robert Millan.
17655
17656 2003-10-29  Paul Eggert  <eggert@twinsun.com>
17657
17658         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
17659         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
17660         no longer needed.
17661         * lib/quotearg.c (quotearg_n_options): Use it.
17662         * lib/group-member.c: Include <stdbool.h>.
17663         (free_group_info): Arg is now const *; don't free arg.
17664         (get_group_info): Now returns bool and accepts struct group_info *,
17665         rather than returning a malloc'ed struct group_info *.
17666         All uses changed.  Check for overflow in internal size calculation.
17667
17668         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
17669         rather than xmalloc/xrealloc.
17670         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
17671         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
17672         conformance bug: the old code used a pointer after freeing the
17673         storage that it addressed.
17674         * lib/hash.c (hash_initialize): Simplify the code by using
17675         xalloc_oversized rather than doing it by hand.
17676         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
17677         the buffer preserved.  Use free and xmalloc instead.
17678         * lib/quotearg.c (quotearg_n_options): Likewise.
17679         Use a simpler test for size overflow.  Don't use xalloc_oversized
17680         because unsigned int might be wider than size_t (!); this suggests
17681         that we should switch from unsigned int to size_t for slot numbers.
17682
17683 2003-10-28  Paul Eggert  <eggert@twinsun.com>
17684
17685         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
17686         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
17687         NetBSD kernels.  Requested by Richard Stallman.
17688
17689 2003-10-27  Paul Eggert  <eggert@twinsun.com>
17690
17691         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
17692         to allocate the returned structure.  Do not allocate a subarray,
17693         as x2nrealloc will do that.
17694         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
17695         instead of xnrealloc.
17696         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
17697
17698 2003-10-27  Bruno Haible  <bruno@clisp.org>
17699
17700         * lib/stdbool_.h: Better support for BeOS.
17701
17702 2003-10-26  Paul Eggert  <eggert@twinsun.com>
17703
17704         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
17705         now uses inline.
17706
17707 2003-10-26  Paul Eggert  <eggert@twinsun.com>
17708
17709         * lib/xalloc.h (xalloc_oversized): New static inline function, for
17710         callers that want to do their own size-overflow checking.  Include
17711         <stdbool.h>, since xalloc_oversized returns bool.
17712         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
17713         to use xalloc_oversized.
17714
17715         Add two functions x2realloc, x2nrealloc, for programs that grow
17716         arrays dynamically by doubling their sizes.
17717         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
17718         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
17719         New functions.
17720
17721         Port to C99 semantics for 'inline' of external functions.
17722         Bug reported by Bruno Haible.
17723         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
17724         with the old contents of xnmalloc.
17725         (xnmalloc, xmalloc): Use it.
17726         (xnrealloc_inline): New static inline function,
17727         with the old contents of xnrealloc.
17728         (xnrealloc, xrealloc): Use it.
17729
17730         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
17731         that.
17732
17733 2003-10-26  Karl Berry  <karl@gnu.org>
17734
17735         * config/srclist.txt (COPYING.DOC): no longer available from
17736         /gd/gnuorg; don't know where the ultimate source is.
17737
17738 2003-10-25  Paul Eggert  <eggert@twinsun.com>
17739
17740         Fix several address-calculation bugs in the hash modules,
17741         plus some minor code cleanup.
17742
17743         * lib/hash.h: Include <stdbool.h>, for bool.
17744         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
17745         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
17746         hash_get_n_entries, hash_get_max_bucket_length,
17747         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
17748         hash_rehash): Use size_t rather than unsigned.
17749         * lib/hash.c (struct hash_table, hash_get_n_buckets,
17750         hash_get_n_buckets_used, hash_get_n_entries,
17751         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
17752         hash_get_entries, hash_do_for_each, hash_string, is_prime,
17753         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
17754         Likewise.
17755         (SIZE_MAX): Define if not defined.
17756         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
17757         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
17758         hash_print):
17759         Use const * when possible.
17760         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
17761         (check_tuning): Fix bug: if tuning parameters were very close to
17762         0 or 1, rounding errors could have caused subscript violations.
17763         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
17764         (hash_initialize): Add 'fail:' label
17765         to free table and return NULL, and use it to simplify code.
17766         Use calloc rather than clearing the storage ourself.
17767         (hash_initialize, hash_rehash): Check for arithmetic overflow in
17768         buffer size calculations.
17769         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
17770         Include <stddef.h>, for size_t.
17771         * lib/hash-pjw.c (hash_pjw): Likewise.
17772         Switch to method described by Bruno Haible.
17773         Include <limits.h>, for CHAR_BIT.
17774         (SIZE_BITS): New macro.
17775
17776 2003-10-23  Paul Eggert  <eggert@twinsun.com>
17777
17778         * m4/getline.m4 (AM_FUNC_GETLINE):
17779         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
17780         hosts.  Problem reported by Derek Robert Price in
17781         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
17782         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
17783         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
17784
17785 2003-10-21  Paul Eggert  <eggert@twinsun.com>
17786
17787         * lib/getndelim2.c (getndelim2): When size calculation overflows,
17788         ceiling the allocation at NMAX bytes rather than silently
17789         discarding input bytes before NMAX is reached.  This makes
17790         a difference only if NMAX exceeds SIZE_MAX / 2.
17791
17792         * lib/obstack.c: Merge from glibc.
17793         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
17794         Add libc_hidden_def (_obstack_newchunk).
17795         (_obstack_free) [! defined _LIBC]: Remove.
17796         [defined _LIBC]: Make a strong alias from obstack_free, rather than
17797         a clone of the function body.
17798         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
17799         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
17800
17801         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
17802         glibc.
17803         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
17804         arg to memcpy.
17805
17806         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
17807         (obstack_ptr_grow_fast, obstack_int_grow_fast):
17808         Don't use lvalue casts, as GCC plans to remove support for them
17809         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
17810         was also present in the non-GCC version, indicating that this
17811         code had always been buggy and had never been widely used.
17812         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
17813         Use the fast variant of each macro, rather than copying the
17814         definiens of the fast variant; that way, we'll be more likely to
17815         catch future bugs in the fast variants.
17816
17817 2003-10-20  Bruno Haible  <bruno@clisp.org>
17818
17819         * modules/wait-process: New file.
17820         * MODULES.html.sh (func_all_modules): Add wait-process.
17821
17822 2003-10-20  Bruno Haible  <bruno@clisp.org>
17823
17824         * m4/wait-process.m4: New file.
17825
17826 2003-10-20  Bruno Haible  <bruno@clisp.org>
17827
17828         * lib/wait-process.h: New file, from GNU gettext.
17829         * lib/wait-process.c: New file, from GNU gettext.
17830
17831 2003-10-19  Jim Meyering  <jim@meyering.net>
17832
17833         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
17834         HPUX 10.20.
17835
17836 2003-10-18  Karl Berry  <karl@gnu.org>
17837
17838         * config/config.guess: update from config.
17839
17840 2003-10-16  Paul Eggert  <eggert@twinsun.com>
17841
17842         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
17843         (getgroups): First arg is int, not size_t.
17844         Don't let 'free' mangle errno.
17845
17846 2003-10-16  Paul Eggert  <eggert@twinsun.com>
17847
17848         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
17849
17850 2003-10-16  Karl Berry  <karl@gnu.org>
17851
17852         * config/config.{guess,sub}: update from config.
17853
17854 2003-10-16  Jim Meyering  <jim@meyering.net>
17855
17856         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
17857         memcpy.
17858
17859 2003-10-15  Paul Eggert  <eggert@twinsun.com>
17860
17861         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
17862         (SIZE_MAX): Remove.
17863         (new_exclude, add_exclude_file): Initial size no longer needs to
17864         be a power of 2.
17865         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
17866         our own address arithmetic overflow checking.
17867
17868         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
17869         (fnmatch): Do not alloca more than 2000 wide characters;
17870         instead, use malloc for large buffers.
17871         Check for address arithmetic overflow, and return -1
17872         with errno set to ENOMEM in that case.
17873         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
17874         (NEW_PATTERN): Do not alloca more than 8000 bytes;
17875         instead, return -1.  Check for address arithmetic overflow.
17876
17877 2003-10-14  Paul Eggert  <eggert@twinsun.com>
17878
17879         Handle invalid suffixes and overflow independently, so that
17880         callers can treat them independently as needed.  Fix some bugs in
17881         suffix handling, e.g., "100k@" was not diagnosed as an invalid
17882         suffix for a human-readable blocksize.  The major caller-visible
17883         change is the addition of a new
17884         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
17885         that both overflow and suffix chars were found.
17886
17887         * lib/human.c (humblock): Don't check separately for invalid suffix
17888         char; that is xstrtoumax's job (now that its bug is fixed).
17889         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
17890         INTMAX_MAX]: New macros.
17891         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
17892         TYPE_MAXIMUM): New macros.
17893         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
17894         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
17895         if overflow occurs, as it's what __strtol does and it's more useful
17896         in practice.
17897         (__xstrtol): If __strtol reports some error other than ERANGE,
17898         reflect it to the caller as LONGINT_INVALID.  If it reports
17899         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
17900         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
17901         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
17902         value.
17903         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
17904         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
17905         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
17906         [defined UINTMAX_MAX]: New macros.
17907
17908 2003-10-14  Bruno Haible  <bruno@clisp.org>
17909
17910         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
17911
17912 2003-10-14  Bruno Haible  <bruno@clisp.org>
17913
17914         * m4/sig_atomic_t: New file, from GNU gettext.
17915         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
17916
17917 2003-10-14  Bruno Haible  <bruno@clisp.org>
17918
17919         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
17920         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
17921         Also use volatile where needed.
17922
17923 2003-10-12  Paul Eggert  <eggert@twinsun.com>
17924
17925         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
17926         Change maintainer from Bruno Haible to 'all'.
17927
17928 2003-10-12  Paul Eggert  <eggert@twinsun.com>
17929
17930         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
17931
17932 2003-10-12  Paul Eggert  <eggert@twinsun.com>
17933
17934         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
17935         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
17936         and define in terms of the other primitives.
17937         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
17938         (SIZE_MAX): Define if not already defined.
17939         (array_size_overflow): New function.
17940         (xalloc_die): Abort instead of exiting if 'error' returns.
17941         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
17942         (xmalloc, xrealloc): Use them.
17943         (xcalloc): Check for address arithmetic overflow.
17944         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
17945         a bit faster than strcpy.
17946
17947 2003-10-10  Simon Josefsson  <jas@extundo.com>
17948
17949         * modules/argp (Depends-on): Add restrict and strcase.
17950
17951 2003-10-10  Simon Josefsson  <jas@extundo.com>
17952
17953         * m4/argp.m4: Add AC_C_INLINE.
17954
17955 2003-10-08  Paul Eggert  <eggert@twinsun.com>
17956
17957         Merge getpass from libc, plus a few fixes.
17958
17959         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
17960         Include <stdbool.h>.
17961         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
17962         __fsetlocking to empty.
17963         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
17964         do include <bits/libc-lock.h>.
17965         Do not include <fcntl.h>; not needed.
17966         [_LIBC]: Include <wchar.h>.
17967         (NOTCANCEL_MODE): New macro.
17968         (flockfile, funlockfile) [_LIBC]: New macros.
17969         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
17970         [!_LIBC]: New macros.
17971         (call_fclose): New function.
17972         (getpass): Use it.  Save tty stream separately; this simplifies the
17973         code and makes it more reliable if stdin happens to equal stdout.
17974         Invoke __fsetlocking on tty.
17975         Handle thread cancellation if needed.
17976         Namespace cleanup (use __tcgetattr, __getline).
17977         Use bool for Booleans.
17978         [USE_IN_LIBIO]: Handle wide streams.
17979         [!_LIBC]: Unconditionally do the fseek, since we don't know what
17980         stream might go where.
17981
17982         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
17983         doesn't have to include <stdio.h> before us.
17984         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
17985         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
17986         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
17987         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
17988         if not declared, so that we can use getpass.c code from libc without
17989         rewriting it.
17990         (flockfile, ftrylockfile, funlockfile): New macros.
17991
17992 2003-10-08  Paul Eggert  <eggert@twinsun.com>
17993
17994         * modules/getpass: Depend on stdbool.
17995
17996 2003-10-08  Paul Eggert  <eggert@twinsun.com>
17997
17998         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
17999
18000 2003-10-07  Karl Berry  <karl@gnu.org>
18001
18002         * config/config.{guess,sub}: update from config.
18003
18004 2003-10-06  Jim Meyering  <jim@meyering.net>
18005             Bruno Haible  <bruno@clisp.org>
18006
18007         This lets translators provide better translations for the
18008         "Written by ..." part of --version output.
18009         * lib/version-etc.h: Include stdarg.h.
18010         (version_etc_copyright): Declare as readonly.
18011         (version_etc): Make this function variadic with a NULL-terminated list
18012         of author name strings.
18013         (version_etc_va): New declaration.
18014         * lib/version-etc.c: Include stdarg.h, stdlib.h.
18015         (version_etc_copyright): Declare as readonly.
18016         (version_etc_va): New function. Provide a different translatable string
18017         for each possible number of authors < 10. Abbreviate when there are 10
18018         authors or more.
18019         (version_etc): Make this function variadic. Call version_etc_va.
18020         Suggestion from Gary V. Vaughan.
18021
18022         * lib/long-options.h (parse_long_options): Change prototype: the
18023         authors string is moved to the end and becomes variadic.
18024         * lib/long-options.c: Include stdarg.h.
18025         (parse_long_options): Make this function variadic, too.
18026         Call version_etc_va, not version_etc.
18027
18028 2003-10-06  Bruno Haible  <bruno@clisp.org>
18029
18030         * modules/version-etc-2: Remove file.
18031         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
18032
18033 2003-10-06  Bruno Haible  <bruno@clisp.org>
18034
18035         * modules/fatal-signal: New file.
18036         * MODULES.html.sh (func_all_modules): Add fatal-signal.
18037
18038 2003-10-06  Bruno Haible  <bruno@clisp.org>
18039
18040         * m4/fatal-signal.m4: New file.
18041         * m4/signalblocking.m4: New file, from GNU gettext.
18042
18043 2003-10-06  Bruno Haible  <bruno@clisp.org>
18044
18045         * lib/version-etc-2.h: Remove file.
18046         * lib/version-etc-2.c: Remove file.
18047
18048 2003-10-06  Bruno Haible  <bruno@clisp.org>
18049
18050         * lib/fatal-signal.h: New file, from GNU gettext.
18051         * lib/fatal-signal.c: New file, from GNU gettext.
18052
18053 2003-10-05  Paul Eggert  <eggert@twinsun.com>
18054
18055         * README: Rework advice for preventing empty .o files.
18056         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
18057         not <sys/types.h>.
18058
18059 2003-10-04  Karl Berry  <karl@gnu.org>
18060
18061         * lib/argp*: update from libc.
18062
18063 2003-10-04  Karl Berry  <karl@gnu.org>
18064
18065         * config/config.{guess,sub}: update from config.
18066
18067 2003-10-02  Bruno Haible  <bruno@clisp.org>
18068
18069         * modules/lchown (Include): Add lchown.h.
18070         * modules/time_r (Include): Use "..." syntax.
18071         * modules/xgetdomainname (Include): Add xgetdomainname.h.
18072
18073 2003-10-01  Simon Josefsson  <jas@extundo.com>
18074
18075         * MODULES.html.sh (func_all_modules): Move gethostname from section
18076         'based on' to section 'lacking' POSIX:2001.
18077
18078 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
18079
18080         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
18081         to output mode on the same stream.
18082
18083 2003-09-29  Paul Eggert  <eggert@twinsun.com>
18084
18085         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
18086         Fix arg typo in previous patch.
18087
18088 2003-09-28  Jim Meyering  <jim@meyering.net>
18089
18090         * lib/error.c: Correct cpp indentation.
18091
18092 2003-09-27  Paul Eggert  <eggert@twinsun.com>
18093
18094         * modules/free: New file.
18095
18096 2003-09-27  Paul Eggert  <eggert@twinsun.com>
18097
18098         * m4/free.m4: New file.
18099
18100 2003-09-27  Paul Eggert  <eggert@twinsun.com>
18101
18102         * lib/minmax.h (MIN, MAX)
18103         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
18104         Omit the special code that used __typeof__, since we worry that
18105         it could be more trouble than it's worth.  See:
18106         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
18107         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
18108
18109         * lib/free.c: New file.
18110
18111 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
18112
18113         Trivial fixes to Makefile.am parts of module listings.
18114         * modules/strstr: Append strstr.h to lib_SOURCES.
18115         * modules/strcase: Likewise, for strcase.h.
18116
18117 2003-09-27  Karl Berry  <karl@gnu.org>
18118
18119         * config/mkinstalldirs: update from automake.
18120
18121 2003-09-26  Paul Eggert  <eggert@twinsun.com>
18122
18123         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
18124         (error_tail): Do not loop, reallocating temporary buffer, since
18125         the output cannot contain more wide characters than the input
18126         contains bytes, the size must be big enough already.  This avoids
18127         one potential size overflow calculation.  Check for size overflow
18128         when calculating temporary buffer size.  Free temporary buffer
18129         when done, if it was allocated with malloc; this plugs a memory
18130         leak.  Remove casts from void * to pointers, that are no longer
18131         needed now that we're assuming C89 or better.
18132
18133         Merge error changes from glibc.
18134
18135         * lib/error.c, error.h: Update copyright notice header to match glibc.
18136         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
18137         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
18138         Disable cancellation while printing error.
18139         * lib/error.h: Prepend __ to parameter names.
18140
18141 2003-09-26  Jim Meyering  <jim@meyering.net>
18142
18143         * lib/error.c (error_tail): Move some declarations
18144         into inner scope where the local variables are used.
18145
18146 2003-09-26  Bruno Haible  <bruno@clisp.org>
18147
18148         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
18149         stpncpy().
18150         Don't define stpncpy through config.h; it's now done through stpncpy.h.
18151
18152 2003-09-26  Bruno Haible  <bruno@clisp.org>
18153
18154         * lib/stpncpy.h (gnu_stpncpy): New declaration.
18155         (stpncpy): Define as alias for gnu_stpncpy.
18156         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
18157
18158 2003-09-25  Simon Josefsson  <jas@extundo.com>
18159
18160         * lib/xgetdomainname.h: New file.
18161         * lib/xgetdomainname.c: New file.
18162
18163 2003-09-25  Simon Josefsson  <jas@extundo.com>
18164             Bruno Haible  <bruno@clisp.org>
18165
18166         * modules/getdomainname: New file.
18167         * modules/xgetdomainname: New file.
18168         * MODULES.html.sh (func_all_modules): Add getdomainname,
18169         xgetdomainname.
18170
18171 2003-09-25  Simon Josefsson  <jas@extundo.com>
18172             Bruno Haible  <bruno@clisp.org>
18173
18174         * m4/getdomainname.m4: New file.
18175
18176 2003-09-25  Simon Josefsson  <jas@extundo.com>
18177             Bruno Haible  <bruno@clisp.org>
18178
18179         * lib/getdomainname.h: New file.
18180         * lib/getdomainname.c: New file.
18181
18182 2003-09-25  Karl Berry  <karl@gnu.org>
18183
18184         * lib/argp-fmtstream.c, argp-help.c: update from libc.
18185
18186 2003-09-25  Karl Berry  <karl@gnu.org>
18187
18188         * config/install-sh: update from automake.
18189
18190 2003-09-25  Bruno Haible  <bruno@clisp.org>
18191
18192         * modules/version-etc-2: New file, from modules/version-etc with
18193         modifications.
18194         * MODULES.html.sh (func_all_modules): Add version-etc-2.
18195
18196 2003-09-25  Bruno Haible  <bruno@clisp.org>
18197
18198         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
18199         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
18200
18201 2003-09-24  Simon Josefsson  <jas@extundo.com>
18202
18203         * modules/xgethostname: Add xgethostname.h.
18204
18205 2003-09-24  Paul Eggert  <eggert@twinsun.com>
18206
18207         * lib/linebuffer.c (freebuffer): Don't free the argument, just
18208         the buffer associated with the argument.  Bug reported by
18209         Simon Josefsson.
18210
18211 2003-09-24  Paul Eggert  <eggert@twinsun.com>
18212
18213         * README: Document assumptions that 'int' is at least 32 bits
18214         wide, that integer arithmetic is 2's complement without overflow,
18215         that there are no holes in integer values, that adding sizes of
18216         two nonoverlapping objects can't overflow, and that all-bits-zero
18217         yields scalar zero.  Fix spelling and capitalization typos.
18218
18219 2003-09-19  Karl Berry  <karl@gnu.org>
18220
18221         * lib/argp.h: update from libc.
18222
18223 2003-09-17  Paul Eggert  <eggert@twinsun.com>
18224
18225         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
18226         to avoid spurious warnings like "AC_RUN_IFELSE was called before
18227         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
18228
18229 2003-09-17  Paul Eggert  <eggert@twinsun.com>
18230
18231         * gnulib-tool: Use "test -h", not "test -L", for portability
18232         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
18233         (tags_regexp): Remove, since \| doesn't conform to POSIX.
18234         (sed_extract_prog): Issue s commands one-by-one, rather than
18235         using \| in one s command.
18236
18237 2003-09-16  Paul Eggert  <eggert@twinsun.com>
18238
18239         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
18240         input error, instead of returning NULL the next time we are called
18241         (and therefore losing track of errno).
18242
18243 2003-09-16  Bruno Haible  <bruno@clisp.org>
18244
18245         * gnulib-tool (func_create_testdir): Warn about duplicated
18246         dependencies.
18247
18248 2003-09-15  Paul Eggert  <eggert@twinsun.com>
18249
18250         * modules/argmatch, modules/fatal, modules/obstack,
18251         modules/xalloc, modules/xgethostname: Sort dependencies by
18252         importance, not alphabetically.
18253
18254 2003-09-15  Paul Eggert  <eggert@twinsun.com>
18255
18256         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
18257         fails, so that the caller gets the proper errno.
18258
18259         * lib/readutmp.c (read_utmp): Likewise.
18260         Check for fstat error.  Close stream and free storage
18261         when failing.
18262
18263 2003-09-14  Karl Berry  <karl@gnu.org>
18264
18265         * config/srclist.txt (strdup.c): disable for c89 changes.
18266
18267 2003-09-14  Jim Meyering  <jim@meyering.net>
18268
18269         * lib/getloadavg.c: Correct cpp indentation.
18270         * lib/strdup.c: Likewise.
18271         * lib/vasnprintf.c: Likewise.
18272
18273 2003-09-14  Bruno Haible  <bruno@clisp.org>
18274
18275         * modules/fwriteerror: New file.
18276         * MODULES.html.sh (func_all_modules): Add fwriteerror.
18277
18278 2003-09-14  Bruno Haible  <bruno@clisp.org>
18279
18280         * lib/fwriteerror.h: New file.
18281         * lib/fwriteerror.c: New file.
18282
18283 2003-09-12  Paul Eggert  <eggert@twinsun.com>
18284
18285         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
18286         modules/xgethostname, modules/xalloc: Depend on exit.
18287
18288 2003-09-12  Paul Eggert  <eggert@twinsun.com>
18289
18290         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
18291
18292         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
18293         and AC_MINIX, too, so that their extensions are available.
18294
18295         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
18296         This macro has been superseded by gl_BACKUPFILE.
18297
18298         More patches to assume C89 or better.
18299
18300         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
18301
18302         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
18303         unconditionally.
18304         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
18305         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
18306         Include <string.h>, <stdlib.h> unconditionally.
18307         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
18308         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
18309         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
18310         headers or for string.h.
18311         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
18312         or strtoul.
18313
18314         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
18315         headers.
18316         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
18317         * m4/userspec.m4 (gl_USERSPEC): Likewise.
18318         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
18319         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
18320         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
18321         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
18322         memcpy, memset.
18323         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
18324         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
18325         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
18326         strtol.
18327         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
18328         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
18329         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
18330         strtoul.
18331
18332 2003-09-12  Paul Eggert  <eggert@twinsun.com>
18333
18334         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
18335         * lib/obstack.c [!defined _LIBC]: Likewise.
18336         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
18337         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
18338         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
18339
18340         More changes to assume C89 or better.
18341
18342         * lib/error.c (error_tail): Assume vprintf.
18343
18344         * lib/argmatch.c (getenv): Remove decl.
18345         * lib/progreloc.c (get_full_program_name): Define via prototype.
18346         * lib/setenv.c (clearenv): Likewise.
18347         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
18348         needed.
18349         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
18350         (malloc, memcpy): Remove decls.
18351         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
18352         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
18353         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
18354         (memcpy): Remove macro.
18355         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
18356         (__P): Remove.  All uses removed.
18357         (PTR): Remove.  All uses changed to void *.
18358         (CHAR_BIT, NULL): Remove.
18359         (spaces, zeros, memset_space, memset_zero)
18360         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
18361         Remove.
18362         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
18363         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
18364         Define with prototype.
18365         Remove now-unnecessary prototype decl.
18366         (extra_args_spec): Assume ANSI C.  All uses changed.
18367         (extra_args_spec_iso): Remove.
18368         (my_strftime, emacs_strftimeu): Define via prototype.
18369         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
18370         unconditionally.
18371         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
18372         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
18373         (strtoul, strtol): Remove decls.
18374         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
18375         LONG_MAX): Remove.
18376         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
18377         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
18378         (LOCALE_PARAM_PROTO): New macro.
18379         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
18380         (INTERNAL (strtol), strtol): Define with a prototype.
18381         (PARAMS): Remove.  All uses removed.
18382         * lib/tempname.c: Include <string.h> unconditionally.
18383         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
18384         * lib/xgethostname.c (main): Define with a prototype.
18385         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
18386         Include <stdlib.h> unconditionally.
18387         (calloc, malloc, realloc, free): Remove decls.
18388         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
18389         Include <stdlib.h> unconditionally.  Sort include file names.
18390         (strtod): Remove.
18391         (xstrtod): Define with a prototype.
18392         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
18393         (strtol, strtoul): Remove decls.
18394
18395 2003-09-11  Paul Eggert  <eggert@twinsun.com>
18396
18397         More patches to assume C89 or better.
18398         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
18399         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
18400         string.h, memchr, STDC_HEADERS.
18401
18402 2003-09-11  Paul Eggert  <eggert@twinsun.com>
18403
18404         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
18405         Include <stdlib.h>, <string.h> unconditionally.
18406         Remove now-unnecessary cast to char *.
18407         * lib/strnlen.c: Include <string.h> unconditionally.
18408         * lib/yesno.c (yesno): Define with a prototype.
18409
18410 2003-09-11  Bruno Haible  <bruno@clisp.org>
18411
18412         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
18413
18414 2003-09-10  Jim Meyering  <jim@meyering.net>
18415
18416         * lib/error.c: Correct indentation of cpp directives.
18417
18418 2003-09-10  Bruno Haible  <bruno@clisp.org>
18419
18420         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
18421         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
18422         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
18423         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
18424         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
18425         <stdlib.h> and <string.h> checks.
18426         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
18427         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
18428
18429 2003-09-10  Bruno Haible  <bruno@clisp.org>
18430
18431         * lib/strcspn.c: Include <string.h> unconditionally.
18432         * lib/strpbrk.c: Include <string.h> unconditionally.
18433         * lib/strstr.c: Include <string.h> unconditionally.
18434         * lib/unicodeio.c: Include <string.h> unconditionally.
18435         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
18436         * lib/unsetenv.c: Likewise.
18437         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
18438         * lib/yesno.c: Include <stdlib.h> unconditionally.
18439         (rpmatch): Add prototype.
18440
18441 2003-09-09  Paul Eggert  <eggert@twinsun.com>
18442
18443         More patches to assume C89 or better.
18444         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
18445         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
18446         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
18447         or for string.h.
18448         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
18449         stdlib.h.
18450         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
18451         C headers.
18452         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
18453         string.h.
18454         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
18455         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
18456         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
18457         or for string.h.
18458         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
18459         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
18460         C headers.
18461         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
18462         memcpy.
18463         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
18464         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
18465         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
18466         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
18467         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
18468         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
18469         string.h, free.
18470         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
18471         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
18472         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
18473         C headers, or for string.h.
18474         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
18475         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
18476         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
18477         headers, memory.h, stdlib.h, string.h, strings.h.
18478         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
18479         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
18480         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
18481         strchr.
18482         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
18483         headers, memory.h, string.h.
18484         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
18485         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
18486         free.
18487         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
18488         headers.
18489         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
18490         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
18491         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
18492         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
18493         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
18494
18495 2003-09-09  Paul Eggert  <eggert@twinsun.com>
18496
18497         More K&R removal.
18498
18499         * lib/acosl.c (main): Use a prototype.
18500         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
18501         tanl.c: Likewise.
18502
18503         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
18504
18505         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
18506         (getopt, etopt_long, getopt_long_only, _getopt_internal)
18507         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
18508         with a prototype.
18509         * lib/getopt.c (const): Remove macro.
18510         Include <string.h> unconditionally.
18511         (my_index): Remove; all uses changed to strchr.
18512         (strlen): Remove decl.
18513         (exchange): Remove forward decl; no longer needed.
18514         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
18515         Define with prototype.
18516         * lib/getopt1.c (const): Remove macro.
18517         (getopt_long, getopt_long_only, main): Define with prototype.
18518
18519         * lib/getugroups.c: Include <string.h> unconditionally.
18520
18521         * lib/getusershell.c: Include <stdlib.h> unconditionally.
18522         (getusershell, setusershell, endusershell, readname, main):
18523         Define with prototypes.
18524
18525         * lib/group-member.c: Include group-member.h first.
18526         Include <stdlib.h> unconditionally.
18527
18528         * lib/hard-locale.c: Include hard-locale.h first.
18529         Include <stdlib.h>, <string.h> unconditionally.
18530
18531         * lib/hash.c (free, malloc): Remove decls.
18532         Include <stdlib.h> unconditionally.
18533
18534         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
18535         (getenv): Do not declare.
18536
18537         * lib/idcache.c: Include <string.h> unconditionally.
18538
18539         * lib/long-options.c: Include long-options.h first, to test interface.
18540         Include <stdlib.h> unconditionally.
18541
18542         * lib/makepath.c: Include makepath.h first, to test interface.
18543         Include <stdlib.h> and <string.h> unconditionally.
18544
18545         * lib/linebuffer.c: Include <stdlib.h>.
18546         (free): Remove decl.
18547
18548         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
18549         stddef.h. rpl_malloc returns void *, not char *.
18550         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
18551         prototype.
18552
18553         * lib/md5.h: Include <limits.h> unconditionally.
18554         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
18555         (__P): Remove; all uses removed.
18556         * lib/md5.c: Include "md5.h" first.
18557         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
18558         md5_buffer, md5_process_bytes, md5_process_block):
18559         Define with prototypes.
18560         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
18561         * lib/sha.c: Include "sha.h" first.
18562         Include <stdlib.h>, <string.h> unconditionally.
18563
18564         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
18565         * lib/memcmp.c (__ptr_t): Likewise.
18566         * lib/memrchr.c (__ptr_t): Likewise.
18567         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
18568         Include <string.h> unconditionally.
18569         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
18570         * lib/memchr.c: Include <stdlib.h> unconditionally.
18571         * lib/memchr.c (LONG_MAX): Remove.
18572         * lib/memrchr.c (LONG_MAX): Likewise.
18573         * lib/memchr.c (__memchr): Define via a prototype.
18574         * lib/memrchr.c (__memrchr): Likewise.
18575         * lib/memcmp.c (__P): Remove, and remove all uses.
18576         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
18577         Remove forward decls; no longer needed.
18578         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
18579         Use types required by C89 in prototype.
18580
18581         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
18582         * lib/savedir.c: Likewise.
18583         * lib/mkdir.c (free): Remove decl.
18584         * lib/rmdir.c (rmdir): Define with a prototype.
18585         * lib/savedir.c: Include savedir.h first, to test interface.
18586
18587         * lib/mktime.c (STDC_HEADERS): Remove.
18588         Include <stdlib.h>, <string.h> unconditionally.
18589
18590         * lib/modechange.c: Include <stdlib.h> unconditionally.
18591         (malloc): Remove decl.
18592
18593         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
18594         (free): Remove decl.
18595
18596         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
18597         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
18598         (This type really should be intptr_t, but that's a C99ism.)
18599         (_obstack_memcpy): Remove: all uses changed to memcpy.
18600         Include <string.h> unconditionally.
18601         (struct obstack): Assume __STDC__ for types of members
18602         chunkfun, freefun, extra_arg.
18603         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
18604         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
18605         obstack_begin, obstack_specify_allocation,
18606         obstack_specify_allocation_with_arg, obstack_chunkfun,
18607         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
18608         Remove unprototyped decls and the macros that use them.
18609         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
18610         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
18611         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
18612         (defined __STDC__ && __STDC__)]:
18613         Remove nonprototyped code.
18614         Include <stdlib.h> unconditionally.
18615         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
18616         _obstack_allocated_p, _obstack_free, obstack_free,
18617         _obstack_memory_used, print_and_abort):
18618         Define using prototypes.
18619         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
18620         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
18621         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
18622         obstack_next_free, obstack_object_size, obstack_room) [0]:
18623         Remove unused, unprototyped code.
18624
18625         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
18626
18627         * lib/physmem.c (physmem_total, physmem_available, main): Define
18628         with prototypes.
18629
18630         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
18631         (main): Define with a prototype.
18632
18633         * lib/posixver.c (getenv): Remove decl.
18634
18635         * lib/putenv.c (malloc): Returns void *, not char *.
18636         Include <string.h> unconditionally.
18637         (strchr, memcpy, NULL): Do not define.
18638
18639         * lib/readtokens.c: Include readtokens.h first, to test interface.
18640         Include <stdlib.h>, <string.h> unconditionally.
18641         (init_tokenbuffer): Define with a prototype.
18642
18643         * lib/regex.c (PARAMS): Remove.  All uses removed.
18644         All uses of _RE_ARGS removed, too.
18645         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
18646         unconditionally.
18647         (bzero): Assume memset exists.
18648         (memcmp, memcpy, NULL): Remove.
18649         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
18650         char, or assignments to local vars of type signed char.
18651         (init_syntax_once, PREFIX(extract_number_and_incr),
18652         PREFIX(print_partial_compiled_pattern),
18653         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
18654         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
18655         PREFIX(regex_grow_registers), PREFIX(regex_compile),
18656         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
18657         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
18658         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
18659         wcs_compile_range, byte_compile_range, truncate_wchar,
18660         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
18661         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
18662         count_mbs_length, wcs_re_match_2_internal,
18663         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
18664         PREFIX(alt_match_null_string_p),
18665         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
18666         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
18667         regfree, PREFIX(extract_number)): Define with prototype.  Remove
18668         now-unnecessary declaration, if any.
18669         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
18670         regcomp, regexec):
18671         Remove now-unnecessary casts among pointer types.
18672         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
18673
18674         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
18675         (free): Remove decl.
18676
18677         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
18678
18679         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
18680         (free): Remove decl.
18681
18682         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
18683         * lib/xgetcwd.c: Likewise.
18684
18685         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
18686         (free): Remove decl.
18687
18688         * lib/strchrnul.c (strchrnul): Define with a prototype.
18689         Fix bug: c_in was not converted to char before searching.
18690
18691         The following changes are not K&R related:
18692
18693         * lib/group-member.h: Include <sys/types.h>, so that this file is
18694         self-contained.
18695         * lib/makepath.h: Likewise.
18696
18697         * lib/getusershell.c (readname, default_index, line_size, readname):
18698         Use size_t, not int, for sizes.
18699         (readname): If the size overflows, report an error instead of
18700         looping forever.
18701
18702 2003-09-09  Paul Eggert  <eggert@twinsun.com>
18703
18704         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
18705         libc.
18706
18707 2003-09-09  Paul Eggert  <eggert@twinsun.com>
18708
18709         * README: New section: portability guidelines.
18710
18711 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
18712
18713         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
18714         C89 spec.
18715
18716 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
18717
18718         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
18719
18720 2003-09-08  Paul Eggert  <eggert@twinsun.com>
18721
18722         Assume C89 or better; remove K&R cruft.
18723         A few of these changes were first proposed by Derek Robert Price
18724         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
18725
18726         * lib/addext.c: Include <string.h> unconditionally.
18727         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
18728         Don't declare getenv or malloc.
18729
18730         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
18731         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
18732         (NULL): Remove.
18733         (find_stack_direction, alloca): Use prototypes.
18734
18735         * lib/atexit.c (atexit): Define using a prototype.
18736
18737         * lib/basename.c, dirname.c, stripslash.c:
18738         Include <string.h> unconditionally.
18739
18740         * lib/bcopy.c: Include <stddef.h>.
18741         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
18742
18743         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
18744
18745         * lib/error.h (error, error_at_line, error_print_progname)
18746         [! (defined (__STDC__) && __STDC__)]: Remove decls.
18747         * lib/error.c: Include error.h first, to check interface.
18748         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
18749         (VA_START): Remove; all uses changeed to va_start.
18750         (exit, strerror): Remove decls.
18751         (error_print_progname): Prototype uncondionally.
18752         Don't include <errno.h>; no longer needed.
18753         (private_strerror): Remove.
18754         (error_tail): Always define.
18755         (error, error_at_line): Assume C89 or better; always use prototypes.
18756         * lib/fatal.c: Include "fatal.h" first, to test interface.
18757         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
18758         (VA_START): Remove; all uses changed to va_start.
18759         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
18760         this case.
18761         (exit): Remove decl.
18762         (fatal): Prototype unconditionally.  Assume va_start works.
18763         Abort at end, to pacify gcc.
18764
18765         * lib/euidaccess.c (main): Define with a prototype.
18766
18767         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
18768
18769         * lib/exitfail.c: Include <stdlib.h> unconditionally.
18770
18771         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
18772         prototypes.
18773         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
18774         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
18775         (getenv): Remove decl.
18776         (fnmatch): Define using a prototype.
18777         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
18778         (FCT): Define using a prototype.
18779
18780         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
18781
18782         * lib/gethostname.c: Include <stddef.h>.
18783         (gethostname): Define with prototype.  Length is size_t, not int.
18784
18785 2003-09-08  Paul Eggert  <eggert@twinsun.com>
18786
18787         Assume C89 or better; remove K&R cruft.
18788         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
18789         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
18790         string.h, getenv, malloc.
18791         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
18792         headers.
18793         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
18794         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
18795         do not check for strerror.
18796         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
18797         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
18798         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
18799         do not check for doprnt or vprintf.
18800         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
18801         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
18802
18803 2003-09-08  Paul Eggert  <eggert@twinsun.com>
18804
18805         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
18806         getversion.c should have been removed then, but was accidentally
18807         preserved.
18808
18809         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
18810         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
18811
18812 2003-09-08  Karl Berry  <karl@gnu.org>
18813
18814         * config/config.sub, config.guess, srclistvars.sh: update from savannah
18815                 config, forget about prep.
18816
18817         * config/depcomp, missing: update from automake.
18818
18819 2003-09-07  Paul Eggert  <eggert@twinsun.com>
18820
18821         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
18822         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
18823
18824 2003-09-07  Paul Eggert  <eggert@twinsun.com>
18825
18826         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
18827         copy_tm_result.  Bug reported by Simon Josefsson in
18828         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
18829
18830 2003-09-06  Paul Eggert  <eggert@twinsun.com>
18831
18832         * m4/time_r.m4: New file.
18833         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
18834         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
18835         is. Check for timegm declaration.
18836         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
18837         Do not check for gmtime_r.
18838         Replace mktime if __mktime_internal does not exist and if mktime
18839         hasn't been replaced already.
18840
18841 2003-09-06  Paul Eggert  <eggert@twinsun.com>
18842
18843         * lib/time_r.c, lib/time_r.h: New files.
18844
18845         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
18846         __localtime_r.
18847         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
18848         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
18849
18850         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
18851         __gmtime_r.
18852         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
18853         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
18854         Include <time_r.h>.
18855
18856         * lib/timegm.c: Switch to glibc implementation, with the following
18857         changes:
18858         [defined HAVE_CONFIG_H]: Include <config.h>.
18859         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
18860         (__mktime_internal) [!defined _LIBC]: New decl.
18861         (__gmtime_r) [!defined _LIBC]: New macro and function.
18862         (timegm): Use a prototype, since gnulib assumes C89.
18863         Do not bother declaring tmp to be const, as it's not really usefu.
18864         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
18865         (timegm): Declare only if HAVE_DECL_TIMEGM.
18866
18867 2003-09-06  Paul Eggert  <eggert@twinsun.com>
18868
18869         * MODULES.html.sh (func_all_modules): Add time_r.
18870         * modules/time_r: New file.
18871         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
18872         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
18873
18874 2003-09-03  Paul Eggert  <eggert@twinsun.com>
18875
18876         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
18877         Bug reported by Lute Kamstra in
18878         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
18879
18880         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
18881         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
18882         course with correspondingly smaller numbers for tomorrow and
18883         yesterday.  From Tadayoshi Funaba.  Originally installed into
18884         sh-utils on 1999-08-07, but the patch got lost (I guess during the
18885         coreutils merge?).
18886
18887 2003-08-31  Simon Josefsson  <jas@extundo.com>
18888
18889         * modules/timegm: New file.
18890         * MODULES.html.sh (func_all_modules): Add timegm.
18891
18892 2003-08-31  Simon Josefsson  <jas@extundo.com>
18893
18894         * m4/timegm.m4: New file.
18895
18896 2003-08-31  Simon Josefsson  <jas@extundo.com>
18897
18898         * lib/timegm.h: New file.
18899         * lib/timegm.c: New file.  Based on
18900         wget-1.8.2/src/http.c:mktime_from_utc.
18901
18902 2003-08-31  Karl Berry  <karl@gnu.org>
18903
18904         * lib/argp.h: update from libc.
18905
18906 2003-08-28  Bruno Haible  <bruno@clisp.org>
18907
18908         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
18909         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
18910         followed by '#define fnmatch fnmatch_posix' gives an error.
18911
18912 2003-08-28  Bruno Haible  <bruno@clisp.org>
18913
18914         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
18915         warning on QNX, which defines O_BINARY to 000000.
18916
18917 2003-08-27  Jim Meyering  <jim@meyering.net>
18918
18919         * m4/mkstemp.m4: Require that the system mkstemp be able to create
18920         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
18921         would fail after 32.  Reported by Danny Levinson.  Details here:
18922         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
18923
18924 2003-08-24  Bruno Haible  <bruno@clisp.org>
18925
18926         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
18927         MSVC7 <stdio.h> is included later.
18928
18929 2003-08-22  Simon Josefsson  <jas@extundo.com>
18930
18931         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
18932
18933 2003-08-20  Karl Berry  <karl@gnu.org>
18934
18935         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
18936
18937 2003-08-20  Bruno Haible  <bruno@clisp.org>
18938
18939         * modules/progname: New file.
18940         * MODULES.html.sh (func_all_modules): Add progname.
18941
18942 2003-08-20  Bruno Haible  <bruno@clisp.org>
18943
18944         * lib/progname.h: New file, from GNU gettext.
18945         * lib/progname.c: New file, from GNU gettext.
18946         * lib/progreloc.c: New file, from GNU gettext.
18947
18948 2003-08-19  Jim Meyering  <jim@meyering.net>
18949
18950         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
18951         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
18952
18953 2003-08-19  Bruno Haible  <bruno@clisp.org>
18954
18955         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
18956         more.
18957
18958 2003-08-19  Bruno Haible  <bruno@clisp.org>
18959
18960         * lib/xstrdup.c: Assume <string.h> exists.
18961
18962 2003-08-18  Paul Eggert  <eggert@twinsun.com>
18963
18964         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
18965         in makefile rules.
18966
18967 2003-08-18  Jim Meyering  <jim@meyering.net>
18968
18969         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
18970         * m4/lib-ld.m4: Likewise.
18971
18972 2003-08-18  Jim Meyering  <jim@meyering.net>
18973
18974         * lib/setenv.h: Indent nested cpp directive.
18975         * lib/vasnprintf.c: Remove trailing blanks.
18976
18977 2003-08-17  Simon Josefsson  <jas@extundo.com>
18978
18979         * modules/xstrndup: New file.
18980         * MODULES.html.sh (func_all_modules): Add xstrndup.
18981
18982 2003-08-17  Simon Josefsson  <jas@extundo.com>
18983
18984         * modules/argp: Fix autoconf macro name. Add more dependencies.
18985
18986 2003-08-17  Simon Josefsson  <jas@extundo.com>
18987
18988         * m4/xstrndup.m4: New file.
18989
18990 2003-08-17  Simon Josefsson  <jas@extundo.com>
18991
18992         * m4/argp.m4: New file.
18993
18994 2003-08-17  Simon Josefsson  <jas@extundo.com>
18995             Bruno Haible  <bruno@clisp.org>
18996
18997         * lib/xstrndup.h: New file.
18998         * lib/xstrndup.c: New file.
18999
19000 2003-08-17  Bruno Haible  <bruno@clisp.org>
19001
19002         * modules/strndup (Files, Include): Add lib/strndup.h.
19003
19004 2003-08-17  Bruno Haible  <bruno@clisp.org>
19005
19006         * modules/euidaccess (Files): Add lib/euidaccess.h.
19007
19008 2003-08-17  Bruno Haible  <bruno@clisp.org>
19009
19010         * lib/strndup.h: New file.
19011
19012 2003-08-17  Bruno Haible  <bruno@clisp.org>
19013
19014         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
19015         like AC_GNU_SOURCE.
19016         * modules/extensions (configure.ac): Comment out the invocation of
19017         gl_USE_SYSTEM_EXTENSIONS.
19018
19019 2003-08-16  Paul Eggert  <eggert@twinsun.com>
19020
19021         Merges from coreutils, etc.
19022         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
19023         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
19024         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
19025         fixing a typo.
19026         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
19027         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
19028
19029 2003-08-16  Paul Eggert  <eggert@twinsun.com>
19030
19031         Document merge from coreutils.
19032         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
19033         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
19034         * modules/utime: Add m4/utimes-null.m4.
19035
19036 2003-08-16  Paul Eggert  <eggert@twinsun.com>
19037
19038         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
19039         space, undoing this 2003-08-12 change:
19040         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
19041
19042 2003-08-16  Paul Eggert  <eggert@twinsun.com>
19043
19044         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
19045         strtoul.c from libc, undoing this 2003-08-12 change:
19046         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
19047
19048 2003-08-16  Jim Meyering  <jim@meyering.net>
19049
19050         Merges from coreutils.
19051         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
19052         prefix.  Adjust cache variables similarly.  Create 500 rather than
19053         just 300 files, to exercise bug on Darwin6.5, too.
19054         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
19055         $missing_dir.
19056         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
19057         AM_SYS_POSIX_TERMIOS.
19058         Reported by mkc@mathdogs.com.
19059         Also change use of $am_cv_sys_posix_termios
19060         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
19061         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
19062         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
19063         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
19064         in /proc/mounts until it finds one with matching device number.  This
19065         is unnecessary when the FILE argument *is* a mount point.  No stat call
19066         is necessary in that case.  So, disable the statvfs-testing code on
19067         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
19068         as RedHat bug# 84846.
19069         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
19070         to 1MB, so as not to render systems with no stack size limit (e.g.,
19071         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
19072         Include <unistd.h>.  On some systems,
19073         it is required for the definition of _SC_PAGESIZE.
19074
19075 2003-08-16  Jim Meyering  <jim@meyering.net>
19076
19077         Merge from coreutils.
19078         * lib/xstrtoimax.c: #else #if -> #elif.
19079         * lib/xstrtoumax.c: Likewise.
19080
19081 2003-08-16  Jim Meyering  <jim@meyering.net>
19082
19083         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
19084         * m4/utimes.m4: Removed.
19085         * m4/utimes-null.m4: Renamed from utimes.m4.
19086
19087         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
19088         to 1MB, so as not to render systems with no stack size limit (e.g.,
19089         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
19090         Include <unistd.h>.  On some systems,
19091         it is required for the definition of _SC_PAGESIZE.
19092
19093 2003-08-16  Jim Meyering  <jim@meyering.net>
19094         and Paul Eggert  <eggert@cs.ucla.edu>
19095
19096         Merges from coreutils, etc.
19097
19098         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
19099         using the latest version from cvs.  This avoids problems with #line
19100         directives using a vendor (Sun) compiler.
19101         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
19102         Don't set GETGROUPS_LIB here; now it's
19103         done via getgroups.m4's wrapper function.
19104         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
19105         rather than just in sh-util/configure.in, so that the
19106         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
19107         same.
19108         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
19109         AC_FUNC_GETLOADAVG where to find getloadavg.c.
19110         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
19111         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
19112         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
19113         Remove code that is now done by the newly-required macros.
19114         Append $(EXEEXT) to DF_PROG.
19115         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
19116         Do not invoke or require the following here,
19117         since prereq.m4 or some gnulib .m4 now does this for us:
19118         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
19119         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
19120         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
19121         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
19122         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
19123         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
19124         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
19125         AC_FUNC_OBSTACK.
19126         Do not replace the following functions, as this is now the job
19127         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
19128         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
19129         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
19130         atexit getpass, strdup, getpagesize.
19131         Replace 'raise'.
19132         Do not check for the following functions, as this is now the job
19133         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
19134         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
19135         setregid.
19136         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
19137         Check for sys/sysctl.h.
19138         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
19139         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
19140         of checking for ssize_t ourselves.
19141
19142         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
19143         Require every macro that gnulib/modules/* suggests for us.
19144         (jm_PREREQ_ADDEXT): New macro.
19145         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
19146         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
19147
19148         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
19149         (gl_PHYSMEM): Use it.
19150         Also check for `table' function.
19151         Check for new headers and functions.
19152         Add check for sys/sysmp.h.
19153         With suggestions from Kaveh Ghazi.
19154         Ignore headers that are present but cannot be compiled.  This
19155         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
19156         C 5.4.
19157
19158 2003-08-15  Paul Eggert  <eggert@twinsun.com>
19159
19160         Document merge from coreutils.
19161         * modules/userspec: Depend on posixver.
19162         * modules/strftime: Depend on tzset.
19163
19164 2003-08-15  Paul Eggert  <eggert@twinsun.com>
19165
19166         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
19167         rather than tab, after '#' in shell-script copyright notices.
19168         Suggested by Bruno Haible.
19169
19170 2003-08-15  Paul Eggert  <eggert@twinsun.com>
19171
19172         * config/srclist-update: Use three spaces, rather than tab, after '#'
19173         in shell-script copyright notices.  Suggested by Bruno Haible.
19174         Remove unnecessary parenthesization in regular expression.
19175
19176 2003-08-15  Jim Meyering  <jim@meyering.net>
19177
19178         Merge from coreutils.
19179         * lib/xgethostname.c: Include <stdlib.h>.
19180         (xghostname): Don't exit for anything other than memory-related
19181         failure; just return NULL.
19182         * lib/userspec.c: Include "posixver.h".
19183         (parse_user_spec): Accept `.' as a separator only
19184         in pre-POSIX-200112 mode.
19185         * lib/strtoimax.c: Use #elif rather than #else #if.
19186         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
19187         Remove function, now that we can rely on a working tzset function.
19188         [!_LIBC]: Ensure that the required autoconf test has been run.
19189         [!defined _NL_CURRENT && HAVE_STRFTIME]:
19190         Use underlying_strftime for %r.
19191         * lib/sha.c: Merge in some clean-up and optimization changes from
19192         glibc.
19193         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
19194         Ensure that it is a multiple of 64.
19195         Rearrange loop exit tests so as to avoid performing an
19196         additional fread after encountering an error or EOF.
19197         * lib/realloc.c: Update copyright date.
19198
19199 2003-08-15  Jim Meyering  <jim@meyering.net>
19200         and Paul Eggert  <eggert@twinsun.com>
19201
19202         Merge from coreutils.
19203         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
19204         member but strut utmpx does not.  Needed for AIX 4.3.3.
19205         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
19206
19207 2003-08-15  Jim Meyering  <jim@meyering.net>
19208         and Paul Eggert  <eggert@cs.ucla.edu>
19209
19210         Merges from coreutils, etc.
19211         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
19212         Require gl_FUNC_TZSET_CLOBBER.
19213         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
19214         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
19215         members.
19216
19217 2003-08-14  Paul Eggert  <eggert@twinsun.com>
19218
19219         Help the merge from coreutils.
19220         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
19221         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
19222         * m4/tzset.m4: Use it too.
19223
19224 2003-08-14  Paul Eggert  <eggert@twinsun.com>
19225
19226         * modules/tzset: New file.
19227
19228 2003-08-14  Jim Meyering  <jim@meyering.net>
19229
19230         Merges from coreutils.
19231         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
19232         variable names, rather than @FNMATCH_H@.
19233         * modules/alloca: Likewise for $(ALLOCA_H).
19234
19235         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
19236         the three copies of the literal target, `fnmatch.h'.
19237         * modules/alloca (alloca.h): Likewise.
19238
19239 2003-08-14  Jim Meyering  <jim@meyering.net>
19240
19241         Merge from coreutils.
19242         * m4/tzset.m4: New file.
19243         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
19244         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
19245         otherwise, AIX 5.1 systems would end up using the latter.
19246         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
19247         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
19248         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
19249         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
19250
19251 2003-08-14  Jim Meyering  <jim@meyering.net>
19252
19253         Merge from coreutils.
19254         * lib/obstack.h: Whitespace changes.
19255         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
19256         and xcalloc return values.
19257         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
19258         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
19259         hang on OSF/1 5.1 for DIR on both local and remote file systems.
19260         Reported by (and fix confirmed by) Nelson H. F. Beebe.
19261         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
19262         error from mntctl.
19263         Use mntctl's return value to drive the entry-processing loop, since
19264         we can't rely on the value of the vmt_length member in the last
19265         entry.  On some systems doing so could result in exhausting
19266         virtual memory.  Based in part on a patch from Mike Jetzer.
19267
19268 2003-08-14  Jim Meyering  <jim@meyering.net>
19269         and Paul Eggert  <eggert@twinsun.com>
19270
19271         Merges from coreutils, plus other fixes.
19272         * lib/physmem.c: Merge in portability changes from gcc/libiberty
19273         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
19274         for credits and details.  Thanks to Kaveh Ghazi for helping
19275         to keep these files in sync.
19276         (ARRAY_SIZE): Define it.
19277         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
19278         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
19279         (memcasecmp): Don't assume size_t fits in unsigned int.
19280         Remove casts and duplicate code.
19281         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
19282         (memcpy): Remove definition.
19283         Merge in some clean-up and optimization changes from glibc.
19284         [BLOCKSIZE]: Move definition to top of file.
19285         Ensure that it is a multiple of 64.
19286         Rearrange loop exit tests so as to avoid performing an
19287         additional fread after encountering an error or EOF.
19288         * lib/md5.h (md5_uintptr): Define.
19289         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
19290         return to the initial working directory.  Preserve errno
19291         for caller.
19292         * lib/idcache.c: Include "xalloc.h".
19293         (xmalloc, xrealloc): Remove decls.
19294         (getuser): Remove casts no longer required in C89.
19295         * lib/human.c: Include stdio.h, for sprintf.
19296         * lib/group-member.c: Include "xalloc.h".
19297         (xmalloc, xrealloc): Remove decls.
19298         (get_group_info): Remove casts no longer required in C89.
19299         * lib/getusershell.c (readname): Remove casts no longer required in
19300         C89.
19301         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
19302         * lib/getline.c: Whitespace fix, from coreutils.
19303
19304 2003-08-13  Paul Eggert  <eggert@twinsun.com>
19305
19306         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
19307         Check for isascii.
19308
19309         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
19310         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
19311         Undo previous (whitespace-only) change.
19312
19313 2003-08-13  Paul Eggert  <eggert@twinsun.com>
19314
19315         * lib/exclude.c: Include <ctype.h>
19316         (IN_CTYPE_DOMAIN): New macro.
19317         (is_space): New fn.
19318         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
19319         and empty lines.
19320
19321         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
19322         Undo previous (whitespace-only) change.
19323
19324 2003-08-13  Paul Eggert  <eggert@twinsun.com>
19325
19326         * config/srclist-update: Change update back to the old behavior,
19327         leaving whitespace alone.  Use one 'sed' command rather than a
19328         pipeline.
19329         (fixlicense): Now a variable, not a function.
19330         (remove_trailing_blanks): Remove.
19331         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
19332         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
19333         Undo previous (whitespace-only) change.
19334
19335 2003-08-12  Paul Eggert  <eggert@twinsun.com>
19336
19337         Merge from coreutils.
19338         * modules/euidaccess: Add lib_SOURCES, include for new
19339         file euidaccess.h
19340
19341 2003-08-12  Paul Eggert  <eggert@twinsun.com>
19342
19343         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
19344         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
19345         Normalize leading white space and remove trailing white space.
19346
19347         Merge from coreutils
19348         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
19349
19350         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
19351         0.12.1.  These files are now being upgraded automatically by
19352         ../config/srclist-update.
19353
19354 2003-08-12  Paul Eggert  <eggert@twinsun.com>
19355
19356         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
19357         Normalize leading white space and remove trailing white space.
19358         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
19359         notice, as per ../config/srclist-update.
19360
19361         Merge from coreutils.
19362         * lib/euidaccess.h: New file.
19363         * lib/euidaccess.c: Include it.
19364         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
19365         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
19366         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
19367
19368 2003-08-12  Paul Eggert  <eggert@twinsun.com>
19369
19370         * config/srclist-update: Add copyright notice.
19371         (remove_id_lines, remove_trailing_blanks): New constants.
19372         (fixfile): Use them to normalize spacing a bit in copied files.
19373         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
19374         Normalize leading white space and remove trailing white space.
19375
19376         * config/texinfo.tex: Sync with texinfo.
19377
19378         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
19379         strtoul.c from libc, to merge coreutils whitespace changes.
19380
19381         * config/srclist.txt: Get the following m4 files from gettext:
19382         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
19383         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
19384         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
19385         wint_t.m4.
19386
19387 2003-08-12  Karl Berry  <karl@gnu.org>
19388
19389         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
19390         been made.
19391
19392 2003-08-11  Paul Eggert  <eggert@twinsun.com>
19393
19394         * modules/gnu-source, m4/gnu-source.m4:
19395         Remove; we're assuming Autoconf 2.54 or later now.
19396         Suggested by Bruno Haible.
19397         * MODULES.html.sh (func_all_modules): Remove gnu-source.
19398
19399 2003-08-11  Bruno Haible  <bruno@clisp.org>
19400
19401         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
19402
19403 2003-08-11  Bruno Haible  <bruno@clisp.org>
19404
19405         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
19406         (vasnprintf): Use it instead of wcslen.
19407
19408 2003-08-11  Bruno Haible  <bruno@clisp.org>
19409
19410         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
19411         value to ensure that _Bool promotes to int. Use #define for _Bool when
19412         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
19413
19414 2003-08-10  Karl Berry  <karl@gnu.org>
19415
19416         * lib/regex.h: update from libc (whitespace fix).
19417
19418 2003-08-09  Paul Eggert  <eggert@twinsun.com>
19419
19420         Merge some files from coreutils.  These changes were
19421         originally made by Jim Meyering.
19422         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
19423         many older Unixes require this.
19424         * lib/alloca.c (alloca): Remove cast to argument of free;
19425         no longer needed in C89.
19426         * lib/alloca_.h, regex.h: Fix white space to match
19427         what GNU indent does.
19428
19429 2003-08-09  Paul Eggert  <eggert@twinsun.com>
19430
19431         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
19432         apparently Emacs's Unicode mode got confused before my 2003-08-05
19433         checkin.
19434
19435 2003-08-08  Paul Eggert  <eggert@twinsun.com>
19436
19437         * m4/extensions.m4: New file.
19438         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
19439         Require gl_USE_SYSTEM_EXTENSIONS.
19440         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
19441         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
19442
19443 2003-08-08  Paul Eggert  <eggert@twinsun.com>
19444
19445         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
19446         * modules/extensions, modules/gnu-source: New files.
19447         * modules/timespec, modules/unlocked-io: Depend on extensions.
19448
19449 2003-08-07  Paul Eggert  <eggert@twinsun.com>
19450
19451         * modules/restrict: New file.
19452         * MODULES.html.sh (func_all_modules): Add restrict.
19453         * modules/regex: Depend on restrict.
19454
19455 2003-08-07  Paul Eggert  <eggert@twinsun.com>
19456
19457         * m4/restrict.m4: New file.
19458         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
19459
19460 2003-08-07  Bruno Haible  <bruno@clisp.org>
19461
19462         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
19463         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
19464
19465 2003-08-07  Bruno Haible  <bruno@clisp.org>
19466
19467         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
19468         makes the module 'getndelim2' compatible with the module 'getline'.
19469
19470 2003-08-05  Paul Eggert  <eggert@twinsun.com>
19471
19472         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
19473         byte with "\201" to avoid glitches when editing that source file
19474         with multi-gnome-terminal.
19475
19476 2003-08-05  Paul Eggert  <eggert@twinsun.com>
19477
19478         * lib/bumpalloc.h: Remove.
19479
19480 2003-08-05  Paul Eggert  <eggert@twinsun.com>
19481
19482         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
19483         * modules/bumpalloc: Remove.
19484
19485 2003-08-04  Paul Eggert  <eggert@twinsun.com>
19486
19487         * lib/getloadavg.c: Change copyright notice and spacing to conform to
19488         GNU coding style.
19489
19490         Merge from coreutils.
19491         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
19492         1. From glibc.
19493         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
19494         from Karl Berry, implemented by Jim Meyering.
19495         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
19496         from Dmitry V. Levin.
19497         Remove anachronistic cast of xrealloc.
19498         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
19499         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
19500         type. Otherwise, it wouldn't compile with at least /bin/cc on
19501         ymp-cray-unicos9.0.2.X.
19502         Combine two mostly-identical uses of alloca into one.
19503         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
19504
19505 2003-08-04  Dave Love  <d.love@dl.ac.uk>
19506
19507         [From Emacs.]
19508
19509         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
19510         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
19511         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
19512         obsolete NLIST_NAME_UNION.
19513         [__GNU__]: Undef BSD and FSCALE.
19514         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
19515
19516 2003-08-03  Paul Eggert  <eggert@twinsun.com>
19517
19518         * lib/stdbool_.h (_Bool): Make it signed char, instead of
19519         an enum type, so that it's guaranteed to promote to int.  See:
19520         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
19521
19522 2003-08-03  Karl Berry  <karl@gnu.org>
19523
19524         * config/depcomp: update from automake.
19525
19526 2003-07-31  Paul Eggert  <eggert@twinsun.com>
19527
19528         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
19529         (strerror): Don't assume that a printable int fits in 14 bytes.
19530
19531 2003-07-31  Bruno Haible  <bruno@clisp.org>
19532
19533         * modules/getpass-gnu: New file.
19534         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
19535
19536 2003-07-31  Bruno Haible  <bruno@clisp.org>
19537
19538         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
19539
19540 2003-07-24  Karl Berry  <karl@gnu.org>
19541
19542         * config/missing: update from automake.
19543
19544 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
19545             Bruno Haible  <bruno@clisp.org>
19546
19547         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
19548         * lib/getline.c (getline, getdelim): Likewise.
19549         Remove _GNU_SOURCE define; now it's defined in config.h through
19550         m4/getline.m4.
19551
19552 2003-07-23  Karl Berry  <karl@gnu.org>
19553
19554         * config/config.sub: update from prep.
19555
19556 2003-07-22  Paul Eggert  <eggert@twinsun.com>
19557
19558         * modules/xalloc (Depends-on): Add exitfail.
19559         * modules/xmemcoll: Likewise.
19560
19561 2003-07-22  Paul Eggert  <eggert@twinsun.com>
19562
19563         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
19564         over-parenthesization in macros.
19565
19566         Sync with coreutils.
19567
19568         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
19569         required by C99.
19570
19571         Use `exit_failure' for xalloc and xmemcoll instead of their own
19572         private exit-failure variables.
19573         * lib/xalloc.h (xalloc_exit_failure): Remove.
19574         * lib/xmalloc.c: Likewise.  Include exitfail.h.
19575         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
19576         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
19577         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
19578         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
19579
19580 2003-07-20  Jim Meyering  <jim@meyering.net>
19581
19582         * modules/closeout (Depends-on): Add exitfail.
19583         Suggestion from Bruno Haible.
19584
19585 2003-07-19  Karl Berry  <karl@gnu.org>
19586
19587         * config/config.sub: update from prep.
19588
19589 2003-07-18  Paul Eggert  <eggert@twinsun.com>
19590
19591         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
19592         Remove.
19593         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
19594         to test that it can stand by itself.  Include "exitfail.h".
19595         Clients should set exit_failure instead.
19596         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
19597
19598 2003-07-18  Bruno Haible  <bruno@clisp.org>
19599
19600         * modules/getndelim2: New file.
19601         * modules/getline: Share files with module getndelim2.
19602         * modules/getnline: Depend on getndelim2 instead of sharing files with
19603         it. Add getnline.c to lib_SOURCES.
19604         * MODULES.html.sh (func_all_modules): Add getndelim2.
19605
19606 2003-07-18  Bruno Haible  <bruno@clisp.org>
19607
19608         * m4/getndelim2.m4: New file.
19609         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
19610         invoke gl_PREREQ_GETNDELIM2.
19611         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
19612         gl_PREREQ_GETNDELIM2.
19613         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
19614         gl_GETNDELIM2.
19615
19616 2003-07-18  Bruno Haible  <bruno@clisp.org>
19617
19618         * lib/getndelim2.h: New file.
19619         * lib/getndelim2.c: Make into a module of its own. Include config.h,
19620         getndelim2.h.
19621         (getndelim2): Make non-static. Change return type to ssize_t.
19622         * lib/getline.h: Change argument names.
19623         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
19624         * lib/getnline.c: Include getndelim2.h.
19625
19626 2003-07-18  Andreas Schwab  <schwab@suse.de>
19627
19628         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
19629
19630 2003-07-17  Karl Berry  <karl@gnu.org>
19631
19632         * config/config.sub: update from prep.
19633
19634 2003-07-17  Bruno Haible  <bruno@clisp.org>
19635
19636         * modules/getnline: New file.
19637         * modules/getline: Add lib/getndelim2.c to source file list.
19638         * MODULES.html.sh (func_all_modules): Add getnline.
19639
19640 2003-07-17  Bruno Haible  <bruno@clisp.org>
19641
19642         * m4/getnline.m4: New file.
19643
19644 2003-07-17  Bruno Haible  <bruno@clisp.org>
19645
19646         * m4/Makefile.am.in: Remove file.
19647         * m4/Makefile.am: Remove file.
19648         * m4/Makefile.in: Remove file.
19649
19650 2003-07-17  Bruno Haible  <bruno@clisp.org>
19651
19652         * lib/getnline.h: New file.
19653         * lib/getnline.c: New file.
19654         * lib/getndelim2.c: New file, extracted from getline.c.
19655         (getndelim2): Renamed from getdelim2, with added nmax argument.
19656         * lib/getline.c: Include getndelim2.c.
19657         (getdelim2): Moved out to getndelim2.c.
19658         (getline, getdelim): Update.
19659
19660 2003-07-17  Bruno Haible  <bruno@clisp.org>
19661
19662         * lib/Makefile.am: Remove file.
19663         * lib/Makefile.in: Remove file.
19664
19665 2003-07-17  Bruno Haible  <bruno@clisp.org>
19666
19667         * configure.in: Remove file.
19668         * Makefile.in: Remove file.
19669
19670 2003-07-17  Bruno Haible  <bruno@clisp.org>
19671
19672         * MODULES.html.sh: Put the </BODY> right before </HTML>.
19673
19674 2003-07-16  Karl Berry  <karl@gnu.org>
19675
19676         * config/srclist-update: was running fixlicense twice, which caused
19677                 texinfo.tex to be nullified for some reason.  Simplify,
19678                 $gplsrc is no longer needed as far as I can see?
19679
19680 2003-07-16  Jim Meyering  <jim@meyering.net>
19681
19682         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
19683
19684 2003-07-15  Paul Eggert  <eggert@twinsun.com>
19685
19686         * config/srclist.txt: Get the following files from gettext-runtime/intl
19687         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
19688         ref-del.sin.  From Bruno Haible.
19689         * config/srclist-update (fixfile): Change grep pattern again, since the
19690         previous fix didn't work (there was another trailing $).  Use
19691         '[$]' to escape the $s.
19692
19693 2003-07-15  Karl Berry  <karl@gnu.org>
19694
19695         * lib/vasnprintf.c: update from gettext.
19696
19697 2003-07-15  Karl Berry  <karl@gnu.org>
19698
19699         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
19700         gets expanded when surrounded by '$'.
19701
19702 2003-07-15  Jim Meyering  <jim@meyering.net>
19703
19704         * modules/save-cwd: Don't depend on error.  From Derek Price.
19705
19706 2003-07-15  Jim Meyering  <jim@meyering.net>
19707
19708         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
19709
19710 2003-07-14  Simon Josefsson  <jas@extundo.com>
19711
19712         * modules/mempcpy: New file.
19713         * MODULES.html.sh (func_all_modules): Add mempcpy.
19714
19715 2003-07-14  Simon Josefsson  <jas@extundo.com>
19716
19717         * m4/mempcpy.m4: New file.
19718
19719 2003-07-14  Simon Josefsson  <jas@extundo.com>
19720
19721         * lib/mempcpy.h: New file.
19722         * lib/mempcpy.c: New file.
19723
19724 2003-07-14  Paul Eggert  <eggert@twinsun.com>
19725
19726         * modules/getdate, modules/posixtm: Depend on mktime.
19727
19728 2003-07-14  Paul Eggert  <eggert@twinsun.com>
19729
19730         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
19731         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
19732         unicodeio.c, unicodeio.h, unlocked-io.h:
19733         Switch from LGPL to GPL.
19734
19735 2003-07-14  Paul Eggert  <eggert@twinsun.com>
19736
19737         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
19738         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
19739         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
19740         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
19741         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
19742         updated automatically by ../config/srclist-update.  This changes
19743         their license from LPGL to GPL.
19744
19745 2003-07-14  Paul Eggert  <eggert@twinsun.com>
19746
19747         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
19748         assumed to refer to the root of the most recent stable gettext version.
19749         * config/srclistvars.sh: Add defaults for eggert.
19750         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
19751         Match "This program" as well as "The program".  This is needed
19752         for gettext.
19753
19754 2003-07-14  Jim Meyering  <jim@meyering.net>
19755
19756         Don't emit diagnostics.  Let callers do that.
19757         * lib/save-cwd.c: Don't include "error.h".
19758         (save_cwd): Don't call error.  Ensure that errno is valid
19759         when returning nonzero.
19760
19761         * lib/save-cwd.h (restore_cwd): Update prototype.
19762         * lib/save-cwd.c (restore_cwd): Remove two parameters.
19763         Simplify.  Don't call error upon failure.  Let callers do that.
19764         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
19765         when auditing is enabled.  But don't bother updating the #if.
19766
19767 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
19768
19769         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
19770         it breaks C++ compilation.
19771         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
19772
19773 2003-07-10  Simon Josefsson  <jas@extundo.com>
19774
19775         * modules/strchrnul (Makefile.am): Add strchrnul.h.
19776
19777 2003-07-10  Jim Meyering  <jim@meyering.net>
19778
19779         * m4/clock_time.m4: Remove trailing blank.
19780         * m4/intmax_t.m4: Likewise.
19781
19782 2003-07-10  Jim Meyering  <jim@meyering.net>
19783
19784         * lib/vasnprintf.c: Remove trailing blanks.
19785         Make cpp indentation consistent.
19786
19787 2003-07-09  Paul Eggert  <eggert@twinsun.com>
19788
19789         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
19790         posixver.c, strftime.c, strnlen.c, strverscmp.c:
19791         Switch from LGPL to GPL.
19792
19793 2003-07-09  Paul Eggert  <eggert@twinsun.com>
19794
19795         * config/srclist.txt: Sort sublists.  Add
19796         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
19797         that differ from gnulib for one reason or another; we'd like this list
19798         to be smaller but for now let's document what we have.
19799
19800 2003-07-08  Paul Eggert  <eggert@twinsun.com>
19801
19802         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
19803         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
19804         and sweeter "eval x=$x".
19805         * config/srclist.txt: Get lib/argp* from glibc.
19806
19807 2003-07-07  Paul Eggert  <eggert@twinsun.com>
19808
19809         * lib/mktime.c: Fix some boundary cases and remove need for floating
19810         point.
19811
19812         Issue a compile-time diagnostic if time_t is floating point, or if
19813         two's complement arithmetic is not in effect, or if arithmetic
19814         right shift does not propagate the sign.  These assumptions were
19815         all in the original code but they weren't checked.
19816
19817         (TIME_T_MIDPOINT, verify): New macros.
19818         (__isleap): Remove; it has integer overflow problems.
19819         (leapyear): New function, without those problems.
19820         (ydhms_tm_diff): Remove; splitting into two parts.
19821         (ydhms_diff): New function, containing the arithmetic part of
19822         the old ydhms_tm_diff function.  Issue a compile-time
19823         diagnostic if we are not using C99 integer division.
19824         Avoid casts when possible.
19825         (guess_time_tm): New function, containing the checking part of
19826         the old ydhms_tm_diff function.  Return the new value, rather than
19827         the difference between it and the old.  Accept a new argument T
19828         so that *T specifies the old value.  Check for overflow in the result.
19829
19830         (__mktime_internal): Use a time_t offset, not a long int offset.
19831         This undoes the 2003-06-04 change, which is no longer needed now
19832         that we have better overflow checking.
19833         (localtime_offset): Likewise.
19834
19835         (__mktime_internal): Avoid harmful overflow on hosts where time_t
19836         and long are 64-bit but int is only 32-bit.
19837         (ydhms_diff): Use long int to store year1 and yday1.
19838         Issue a compile-time diagnostic if long int is not wide enough.
19839
19840         (__mktime_internal): Use long int to store adjusted year and yday.
19841         Use plain C rather than preprocessor commands, if that doesn't
19842         affect efficiency.
19843         Check for overflow (and try to repair) after each probe
19844         rather than checking only at the very end.  This avoids some bugs
19845         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
19846         does not equal GMT offset at maximum time).
19847         Use integer to check for overflow rather than floating point; this
19848         is more portable to non-IEEE hosts, and is a tad faster.
19849         When we detect that we are oscillating between two values,
19850         don't check whether tm_isdst has the requested value, since
19851         we already know the answer.  When tm_isdst has the wrong value,
19852         use a different heuristic to find the right one, based on the
19853         extreme values actually observed in practice in tz2003a,
19854         rather than the (overly optimistic) "previous 3 calendar quarters".
19855
19856         (not_equal_tm, print_tm, check_result): Use "const T" rather than
19857         "T const" to accommodate glibc style.
19858         (check_result): Use less-confusing report format.  "long" -> "long int.
19859         (main): Likewise.
19860         Don't loop if the iteration overflows time_t.
19861         Allow a negative step in the iteration.
19862
19863 2003-07-06  Karl Berry  <karl@gnu.org>
19864
19865         * config/depcomp: update from automake.
19866         * config/config.sub: update from prep.
19867
19868 2003-07-03  Karl Berry  <karl@gnu.org>
19869
19870         * config/config.guess: update from prep.
19871
19872 2003-07-01  Paul Eggert  <eggert@twinsun.com>
19873
19874         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
19875         xreadlink.c now includes it unconditionally.
19876
19877 2003-07-01  Paul Eggert  <eggert@twinsun.com>
19878
19879         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
19880         having it depend on HAVE_SYS_TYPES_H.
19881
19882 2003-07-01  Bruno Haible  <bruno@clisp.org>
19883
19884         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
19885         <sys/types.h> should be sufficient.
19886         Reported by Paul Eggert.
19887
19888 2003-06-26  Karl Berry  <karl@gnu.org>
19889
19890         * config/depcomp: update from automake.
19891
19892 2003-06-26  Bruno Haible  <bruno@clisp.org>
19893
19894         * modules/human: Depend on module stdbool.
19895
19896 2003-06-25  Bruno Haible  <bruno@clisp.org>
19897
19898         * modules/readlink: New file.
19899         * modules/xreadlink: Depend on it.
19900         * MODULES.html.sh (func_all_modules): Add readlink.
19901
19902 2003-06-25  Bruno Haible  <bruno@clisp.org>
19903
19904         * m4/readlink.m4: New file.
19905
19906 2003-06-25  Bruno Haible  <bruno@clisp.org>
19907
19908         * lib/readlink.c: New file.
19909
19910 2003-06-22  Karl Berry  <karl@gnu.org>
19911
19912         * config/srclist.txt: update mkinstalldirs from automake.
19913         * config/mkinstalldirs: update.
19914
19915 2003-06-22  Bruno Haible  <bruno@clisp.org>
19916
19917         Portability to mingw32.
19918         * m4/ssize_t.m4: New file, from GNU gettext.
19919         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
19920         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
19921
19922 2003-06-22  Bruno Haible  <bruno@clisp.org>
19923
19924         * modules/safe-read: Add m4/ssize_t.m4.
19925         * modules/xreadlink: Add m4/ssize_t.m4.
19926
19927 2003-06-20  Bruno Haible  <bruno@clisp.org>
19928
19929         Assume C89, so PARAMS isn't needed.
19930         * lib/unicodeio.h (PARAMS): Remove.
19931         * lib/unicodeio.c: Don't use PARAMS.
19932
19933 2003-06-18  Karl Berry  <karl@gnu.org>
19934
19935         * config/config.{guess,sub}: update from prep.
19936
19937 2003-06-18  Jim Meyering  <jim@meyering.net>
19938
19939         Merge changes from coreutils.
19940         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
19941         Remove explicit declarations of xmalloc and realloc.
19942         Include xalloc.h.
19943         (read_utmp): Remove anachronistic cast of xmalloc.
19944
19945 2003-06-17  Paul Eggert  <eggert@twinsun.com>
19946
19947         Assume C89, so PARAMS isn't needed.
19948         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
19949         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
19950         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
19951         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
19952         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
19953         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
19954         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
19955         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
19956         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
19957         lib/xstrtod.h, lib/xstrtol.h: Likewise.
19958         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
19959         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
19960         no longer needed. Anyway, config.h should always be included before any
19961         other file.
19962
19963 2003-06-11  Simon Josefsson  <jas@extundo.com>
19964
19965         * modules/sysexits: New file.
19966         * MODULES.html.sh (func_all_modules): Add sysexits.
19967
19968 2003-06-11  Simon Josefsson  <jas@extundo.com>
19969
19970         * lib/sysexit_.h: New file.
19971
19972 2003-06-11  Derek Price  <derek@ximbiot.com>
19973
19974         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
19975         necessary.
19976
19977 2003-06-11  Bruno Haible  <bruno@clisp.org>
19978
19979         * m4/sysexits.m4: New file.
19980
19981 2003-06-10  Simon Josefsson  <jas@extundo.com>
19982
19983         * lib/argp.h: New file, from glibc.
19984         * lib/argp-ba.c: New file, from glibc.
19985         * lib/argp-eexst.c: New file, from glibc.
19986         * lib/argp-fmtstream.c: New file, from glibc.
19987         * lib/argp-fmtstream.h: New file, from glibc.
19988         * lib/argp-fs-xinl.c: New file, from glibc.
19989         * lib/argp-help.c: New file, from glibc.
19990         * lib/argp-namefrob.h: New file, from glibc.
19991         * lib/argp-parse.c: New file, from glibc.
19992         * lib/argp-pv.c: New file, from glibc.
19993         * lib/argp-pvh.c: New file, from glibc.
19994         * lib/argp-xinl.c: New file, from glibc.
19995
19996 2003-06-10  Simon Josefsson  <jas@extundo.com>
19997
19998         * modules/strchrnul: New file.
19999
20000 2003-06-10  Simon Josefsson  <jas@extundo.com>
20001
20002         * modules/argp: New file.
20003
20004 2003-06-10  Simon Josefsson  <jas@extundo.com>
20005
20006         * m4/strchrnul.m4: New file.
20007
20008 2003-06-10  Simon Josefsson  <jas@extundo.com>
20009
20010         * lib/strchrnul.h: New file.
20011         * lib/strchrnul.c: New file.
20012
20013 2003-06-10  Bruno Haible  <bruno@clisp.org>
20014
20015         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
20016
20017 2003-06-07  Karl Berry  <karl@gnu.org>
20018
20019         * config/config.{guess,sub}: update from prep.
20020
20021 2003-06-07  Jim Meyering  <jim@meyering.net>
20022
20023         * modules/strtod: Use $(...) notation, not @...@ for
20024         AC_REPLACE'd variables.
20025         * modules/localcharset: Likewise.
20026
20027 2003-06-07  Jim Meyering  <jim@meyering.net>
20028
20029         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
20030         in place of my name in the copyright comment.
20031         Remove definition and uses of __P.
20032
20033         From coreutils.
20034         * lib/stat.c: Don't declare xmalloc explicitly.
20035         Instead, include "xalloc.h".
20036         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
20037         xrealloc, and xcalloc return values.
20038         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
20039         Improve comment.
20040         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
20041
20042 2003-06-07  Bruno Haible  <bruno@clisp.org>
20043
20044         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
20045         avoid AC_CONFIG_LINKS.
20046         * modules/fnmatch (Makefile.am): Use explicit creation rule for
20047         fnmatch.h, to avoid AC_CONFIG_LINKS.
20048         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
20049
20050 2003-06-07  Bruno Haible  <bruno@clisp.org>
20051
20052         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
20053         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
20054         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
20055         directory.
20056         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
20057         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
20058         directory.
20059
20060 2003-06-06  Jim Meyering  <jim@meyering.net>
20061
20062         Merge from coreutils.
20063         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
20064         Consolidate declarations and initializations of *_base* locals.
20065
20066         Merge from coreutils.
20067         This avoids a core dump on systems without GNU putenv,
20068         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
20069         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
20070         (unsetenv): New static function, from GNU libc.
20071         (rpl_putenv): Use it.
20072
20073         * lib/modechange.c: Remove trailing blanks.
20074
20075         Merge from coreutils.
20076         * lib/fsusage.c: Remove declaration of statfs.
20077         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
20078
20079         * lib/posixtm.c: Include <stdbool.h> unconditionally.
20080
20081 2003-06-06  Jim Meyering  <jim@meyering.net>
20082
20083         * lib/stdbool_.h: Renamed from stdbool.h.in.
20084
20085 2003-06-06  Jim Meyering  <jim@meyering.net>
20086             Bruno Haible  <bruno@clisp.org>
20087
20088         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
20089         Adjust Makefile.am snippet not to redirect directly to target.
20090         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
20091
20092 2003-06-05  Paul Eggert  <eggert@twinsun.com>
20093
20094         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
20095         mismatch, look in future quarters as well as past.  This fixes a
20096         bug when processing fall-backwards gaps immediately after a long
20097         period of daylight-saving time.
20098
20099         * lib/mktime.c: Assume freestanding C89 or better.
20100         (HAVE_LIMITS_H): Remove.  Assume it's 1.
20101         (__P): Remove; not used.
20102         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
20103         (mktime, not_equal_tm, print_tm, check_result,
20104         main): Use prototypes.  Use const * where appropriate.
20105         (main): Fix typo in testing code that uncovered by above changes.
20106         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
20107
20108 2003-06-04  Paul Eggert  <eggert@twinsun.com>
20109
20110         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
20111         locale.h, localeconv.  This merges changes from coreutils.
20112
20113         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
20114         It can be removed after the next Autoconf is released.
20115         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
20116         needed.
20117
20118 2003-06-04  Paul Eggert  <eggert@twinsun.com>
20119
20120         * lib/mktime.c: Fix Debian bug 177940
20121         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
20122         (localtime_offset): Now long int, not time_t, because we want it
20123         to be guaranteed to be signed.  All uses changed.
20124         (__mktime_internal): If overflow would occur when adding offset,
20125         don't add it.
20126
20127         Merge 'human' changes from coreutils.  Rewrite to support
20128         locale-specific notations like thousands separators.
20129         * lib/human.c: Simplify authorship notice.
20130         Include human.h immediately after config.h.
20131         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
20132         <limits.h>: Do not include, since human.h does.
20133         (SIZE_MAX, UINTMAX_MAX): New macros.
20134         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
20135         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
20136         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
20137         (power_letter): Renamed from suffixes.
20138         (generate_suffix_backwards): Remove.
20139         (adjust_value): Now takes int style (because of human.h changes)
20140         and long double value (for greater precision on some platforms).
20141         (group_number): New function.
20142         (human_readable): Use it.  Use integer options, not enum.
20143         Put the options before the sizes in the arg list.
20144         Support all the new options.
20145         The old human_readable function has been removed;
20146         use inttostr.h instead.
20147         (human_readable, default_block_size, humblock):
20148         Use uintmax_t, not int, for block sizes.
20149         (human_readable_inexact, block_size_types): Remove.
20150         (block_size_opts): New constant.
20151         (human_options): Renamed from human_block_size, with new signature
20152         that allows block sizes up to UINTMAX_MAX.  All callers changed.
20153         * lib/human.h: Add copyright and authorship notice.
20154         Include <limits.h> and <stdbool.h> unconditionally.
20155         (PARAMS): Remove.  All uses removed.
20156         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
20157         (enum human_inexact_style): Remove tag; now a nameless enum.
20158         (human_floor, human_ceiling, human_round_to_even): Now have
20159         values 2, 0, 1 rather than -1, 1, 0.
20160         (human_group_digits, human_suppress_point_zero, human_autoscale,
20161         human_base_1024, human_SI, human_B): New constants.
20162         (human_readable_inexact, human_block_size): Remove.
20163         (human_readable): Size args are now uintmax_t, not int.
20164         (human_options): New decl.
20165
20166         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
20167         unnecessary now that we assume C89 or better.  This change
20168         imported from coreutils.
20169
20170         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
20171         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
20172         in the 2003-05-30 sync from glibc.
20173
20174         .h files should stand alone, but we shouldn't include <sys/types.h>
20175         if we can get away with just <stddef.h>.
20176
20177         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
20178         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
20179         rather than <sys/types.h>, as we merely need size_t.
20180         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
20181         to get size_t.
20182         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
20183         Include <stdio.h>, to get FILE.
20184         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
20185         memcasecmp.h has included <stddef.h> and all we need is size_t.
20186         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
20187         our interface, instead of including <sys/types.h>
20188
20189 2003-06-04  Paul Eggert  <eggert@twinsun.com>
20190
20191         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
20192         now, as glibc mktime is buggy on non-glibc systems.
20193
20194 2003-06-03  Karl Berry  <karl@gnu.org>
20195
20196         * config/config.sub: update from prep.
20197
20198 2003-06-02  Paul Eggert  <eggert@twinsun.com>
20199
20200         [from coreutils]
20201         Fix some minor time-related bugs with POSIX time arguments.
20202         Some valid time stamps were being rejected (notably -1, and
20203         time stamps before 1900 on 64-bit hosts).  And some invalid
20204         time stamps were being accepted, e.g. September 31.
20205
20206         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
20207         that we can return (time_t) -1 successfully.
20208         * lib/posixtm.c: Likewise.
20209         [HAVE_STDBOOL_H]: Include <stdbool.h>.
20210         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
20211         (t): Remove static var.
20212         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
20213         of static var.  All uses changed.
20214         (year): Do not reject years before 1900; they can occur with
20215         64-bit time_t.
20216         (posix_time_parse): Do not check for out-of-range components;
20217         that is now the caller's responsibility, since our checks were
20218         only approximations.
20219         (posixtime): Use mktime to check for out-of-range components,
20220         since it knows them exactly.
20221         If mktime returns (time_t) -1, check whether an error actually occurred
20222         by invoking localtime on -1.
20223         (main) [TEST_POSIXTIME]: Check for input data errors, and report
20224         posixtime failures better.
20225         Improve the test data (in comments only).
20226
20227 2003-06-02  Karl Berry  <karl@gnu.org>
20228
20229         * config/mkinstalldirs (version): new variable.
20230         (--version): new option.
20231         (usage): improve message.
20232
20233 2003-05-30  Karl Berry  <karl@gnu.org>
20234
20235         * lib/mktime.c: update from libc.
20236
20237 2003-05-30  Bruno Haible  <bruno@clisp.org>
20238
20239         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
20240         * config/config.rpath: Upgrade to gettext-0.12.1.
20241
20242 2003-05-30  Bruno Haible  <bruno@clisp.org>
20243
20244         * m4/gettext.m4: Upgrade to gettext-0.12.1.
20245         * m4/nls.m4: New file, from gettext-0.12.1.
20246         * m4/po.m4: New file, from gettext-0.12.1.
20247         * m4/progtest.m4: Upgrade to gettext-0.12.1.
20248
20249 2003-05-30  Bruno Haible  <bruno@clisp.org>
20250
20251         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
20252         * lib/localcharset.h: Likewise.
20253         * lib/localcharset.c: Likewise.
20254
20255 2003-05-29  Karl Berry  <karl@gnu.org>
20256
20257         * config/config.rpath: update from gettext.
20258
20259 2003-05-28  Paul Eggert  <eggert@twinsun.com>
20260
20261         Assume the headers required for C89 freestanding compilers.
20262         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
20263         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
20264         * m4/human.m4 (gl_HUMAN): Likewise.
20265         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
20266         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
20267         * m4/userspec.m4 (gl_USERSPEC): Likewise.
20268         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
20269         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
20270         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
20271
20272 2003-05-28  Paul Eggert  <eggert@twinsun.com>
20273
20274         Assume the headers required for C89 freestanding compilers.
20275         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
20276         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
20277         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
20278         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
20279         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
20280         define, since <limits.h> is guaranteed to do that.
20281         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
20282         * lib/exclude.c: Include <stdbool.h> unconditionally.
20283         * lib/tempname.c: Include <stddef.h> unconditionally.
20284         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
20285         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
20286         <stddef.h> does that.
20287         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
20288         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
20289         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
20290         needed.
20291         * lib/xstrtol.c: Likewise.
20292         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
20293         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
20294
20295         * lib/addext.c (addext): Use assignment rather than cast, to avoid
20296         warnings on some platforms.
20297
20298         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
20299         arbitrarily.
20300
20301 2003-05-26  Jim Meyering  <jim@meyering.net>
20302
20303         Merge in a change from coreutils:
20304         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
20305         that is guaranteed to be `no'.  Use `no_such_member' to indicate
20306         that condition, rather than `-1' which is slightly misleading.
20307         Change the name of the cache variable to have the gl_ prefix.
20308         Prompted by a patch from Richard Dawe for DJGPP.
20309
20310 2003-05-24  Karl Berry  <karl@gnu.org>
20311
20312         * config/config.guess: update from prep.
20313
20314 2003-05-22  Karl Berry  <karl@gnu.org>
20315
20316         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
20317
20318 2003-05-20  Karl Berry  <karl@gnu.org>
20319
20320         * config/config.guess: update from prep.
20321
20322 2003-05-18  Karl Berry  <karl@gnu.org>
20323
20324         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
20325         might actually be set by the user.
20326
20327         * config/depcomp, install-sh, mdate-sh: update from automake.
20328
20329 2003-05-17  Bruno Haible  <bruno@clisp.org>
20330
20331         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
20332         invalid expansion for AC_EGREP_CPP.
20333         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
20334         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
20335         Suggested by Akim Demaille <akim@epita.fr> in
20336         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
20337
20338 2003-05-12  Jim Meyering  <jim@meyering.net>
20339
20340         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
20341         the space-padded-by-default conversion specifiers, %e, %k, %l.
20342
20343 2003-05-12  Bruno Haible  <bruno@clisp.org>
20344
20345         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
20346         the string is longer than 4 KB.
20347
20348 2003-05-11  Karl Berry  <karl@gnu.org>
20349
20350         * config/config.{guess,sub}: update from prep.
20351
20352 2003-05-09  Bruno Haible  <bruno@clisp.org>
20353
20354         * modules/error: Add m4/strerror_r.m4 to file list.
20355
20356 2003-05-03  Bruno Haible  <bruno@clisp.org>
20357
20358         Upgrade to Unicode-4.0.
20359         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
20360         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
20361         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
20362         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
20363         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
20364         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
20365         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
20366         Change width of U+E0100..U+E01EF from 1 to 0.
20367
20368 2003-04-25  Jim Meyering  <jim@meyering.net>
20369
20370         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
20371         of type size_t, not int.
20372
20373 2003-04-25  Bruno Haible  <bruno@clisp.org>
20374
20375         * lib/copy-file.c: Include <stddef.h>, for size_t.
20376
20377 2003-04-21  Paul Eggert  <eggert@twinsun.com>
20378
20379         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
20380         code which expansion is under static control.  Patch imported from
20381         Akim Demaille's patch to Bison; see
20382         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
20383
20384 2003-04-14  Bruno Haible  <bruno@clisp.org>
20385
20386         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
20387
20388 2003-04-11  Jim Meyering  <jim@meyering.net>
20389
20390         Merge changes from Coreutils.
20391
20392         2003-03-22  Jim Meyering  <jim@meyering.net>
20393
20394         * lib/strftime.c (widen): Cast alloca return value to proper type.
20395
20396         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
20397
20398         From GNU libc.
20399         * lib/strftime.c (my_strftime): Handle very large width
20400         specifications for numeric values correctly.  Improve checks for
20401         overflow.
20402
20403         2003-01-19  Jim Meyering  <jim@meyering.net>
20404
20405         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
20406         definitions.
20407         (nl_get_alt_digit) [! defined my_strftime]: Define.
20408         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
20409         _nl_get_alt_digit and _nl_get_walt_digit.
20410
20411         * lib/strftime.c (my_strftime): Merge in locale-related changes from
20412         libc. These changes have no effect outside of _LIBC.
20413
20414 2003-04-10  Bruno Haible  <bruno@clisp.org>
20415
20416         * modules/findprog: New file.
20417         * MODULES.html.sh (func_all_modules): Add it.
20418
20419 2003-04-10  Bruno Haible  <bruno@clisp.org>
20420
20421         * m4/findprog.m4: New file.
20422         * m4/eaccess.m4: New file.
20423
20424 2003-04-10  Bruno Haible  <bruno@clisp.org>
20425
20426         * lib/findprog.h: New file, from GNU gettext.
20427         * lib/findprog.c: New file, from GNU gettext.
20428
20429 2003-04-05  Jim Meyering  <jim@meyering.net>
20430
20431         Merge changes from Coreutils.
20432
20433         * lib/exclude.h (PARAMS): Remove definition and uses.
20434         * lib/exclude.c: Remove uses of `PARAMS'.
20435
20436         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
20437         Add test-cases for DOS filenames. Declare program_name.
20438         (main): Set up program_name.  Patch by Rich Dawe.
20439
20440         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
20441         error from mntctl.
20442         Use mntctl's return value to drive the entry-processing loop, since
20443         we can't rely on the value of the vmt_length member in the last
20444         entry.  On some systems doing so could result in exhausting
20445         virtual memory.  Based in part on a patch from Mike Jetzer.
20446
20447 2003-04-04  Bruno Haible  <bruno@clisp.org>
20448
20449         * modules/linebreak: New file.
20450         * MODULES.html.sh (func_all_modules): Add it.
20451
20452 2003-04-04  Bruno Haible  <bruno@clisp.org>
20453
20454         * m4/linebreak.m4: New file.
20455
20456 2003-04-04  Bruno Haible  <bruno@clisp.org>
20457
20458         * lib/linebreak.h: New file, from GNU gettext.
20459         * lib/linebreak.c: New file, from GNU gettext with slight
20460         modifications.
20461         * lib/lbrkprop.h: New file, from GNU gettext.
20462
20463 2003-04-03  Bruno Haible  <bruno@clisp.org>
20464
20465         * modules/utf8-ucs4: New file.
20466         * modules/utf16-ucs4: New file.
20467         * modules/ucs4-utf8: New file.
20468         * modules/ucs4-utf16: New file.
20469         * MODULES.html.sh (func_all_modules): Add them.
20470
20471 2003-04-03  Bruno Haible  <bruno@clisp.org>
20472
20473         * m4/utf-ucs4.m4: New file.
20474         * m4/ucs4-utf.m4: New file.
20475
20476 2003-04-03  Bruno Haible  <bruno@clisp.org>
20477
20478         * lib/utf8-ucs4.h: New file, from GNU gettext.
20479         * lib/utf16-ucs4.h: New file, from GNU gettext.
20480         * lib/ucs4-utf8.h: New file, from GNU gettext.
20481         * lib/ucs4-utf16.h: New file, from GNU gettext.
20482
20483 2003-04-02  Bruno Haible  <bruno@clisp.org>
20484
20485         * modules/binary-io: New file.
20486         * MODULES.html.sh (func_all_modules): Add it.
20487
20488 2003-04-02  Bruno Haible  <bruno@clisp.org>
20489
20490         * lib/binary-io.h: New file, from GNU gettext.
20491
20492 2003-04-01  Bruno Haible  <bruno@clisp.org>
20493
20494         * modules/pathname: New file.
20495         * MODULES.html.sh (func_all_modules): Add it.
20496
20497 2003-04-01  Bruno Haible  <bruno@clisp.org>
20498
20499         * lib/pathname.h: New file, from GNU gettext.
20500         * lib/concatpath.c: New file, from GNU gettext.
20501
20502 2003-03-30  Bruno Haible  <bruno@clisp.org>
20503
20504         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
20505
20506 2003-03-30  Bruno Haible  <bruno@clisp.org>
20507
20508         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
20509         function chown() doesn't exist.
20510
20511 2003-03-28  Bruno Haible  <bruno@clisp.org>
20512
20513         * modules/copy-file: New file.
20514         * MODULES.html.sh (func_all_modules): Add it.
20515
20516 2003-03-28  Bruno Haible  <bruno@clisp.org>
20517
20518         * m4/copy-file.m4: New file.
20519
20520 2003-03-28  Bruno Haible  <bruno@clisp.org>
20521
20522         * lib/copy-file.h: New file, from GNU gettext.
20523         * lib/copy-file.c: New file, from GNU gettext.
20524
20525 2003-03-18  Jim Meyering  <jim@meyering.net>
20526
20527         * lib/quote.c (quote_n): Fix typo in comment.
20528
20529 2003-03-18  Bruno Haible  <bruno@clisp.org>
20530
20531         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
20532         checking.
20533         * m4/onceonly_2_57.m4: Likewise.
20534
20535 2003-03-17  Bruno Haible  <bruno@clisp.org>
20536
20537         * m4/onceonly.m4: Require autoconf 2.54 or newer.
20538         (m4_quote): Remove macro.
20539         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
20540
20541 2003-03-14  Jim Meyering  <jim@meyering.net>
20542
20543         Merge changes from Coreutils.
20544         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
20545         to be const, in order to avoid warnings.
20546         (obstack_room): Likewise.
20547         (obstack_empty_p): Likewise.
20548
20549 2003-03-14  Bruno Haible  <bruno@clisp.org>
20550
20551         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
20552         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
20553
20554 2003-03-13  Paul Eggert  <eggert@twinsun.com>
20555
20556         Merge changes from Bison.
20557         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
20558         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
20559         when compiling Bison 1.875's `bitset bset = obstack_alloc
20560         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
20561         * lib/hash.c: Include <stdbool.h> unconditionally.
20562
20563 2003-03-13  Paul Eggert  <eggert@twinsun.com>
20564
20565         * m4/onceonly.m4 (m4_quote): New macro.
20566         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
20567         Quote AC_FOREACH variable-expansions properly.
20568
20569 2003-03-13  Paul Eggert  <eggert@twinsun.com>
20570
20571         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
20572
20573 2003-03-09  Paul Eggert  <eggert@twinsun.com>
20574
20575         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
20576         Reported by Bruce Becker; see:
20577         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
20578
20579 2003-03-03  Paul Eggert  <eggert@twinsun.com>
20580             Bruno Haible  <bruno@clisp.org>
20581
20582         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
20583         Reported by John Hughes, see
20584         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
20585
20586 2003-02-20  Bruno Haible  <bruno@clisp.org>
20587
20588         * MODULES.html.sh (func_all_modules): Add poll.
20589
20590 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
20591
20592         * modules/poll: New file.
20593
20594 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
20595
20596         * lib/poll_.h: New file.
20597         * lib/poll.c: New file.
20598
20599 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
20600
20601         * m4/poll.m4: New file.
20602
20603 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
20604
20605         * modules/mathl: New file.
20606
20607 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
20608
20609         * lib/mathl.h: New file.
20610         * lib/acosl.c: New file.
20611         * lib/asinl.c: New file.
20612         * lib/atanl.c: New file.
20613         * lib/ceill.c: New file.
20614         * lib/cosl.c: New file.
20615         * lib/expl.c: New file.
20616         * lib/floorl.c: New file.
20617         * lib/frexpl.c: New file.
20618         * lib/ldexpl.c: New file.
20619         * lib/logl.c: New file.
20620         * lib/sincosl.c: New file.
20621         * lib/sinl.c: New file.
20622         * lib/sqrtl.c: New file.
20623         * lib/tanl.c: New file.
20624         * lib/trigl.c: New file.
20625         * lib/trigl.h: New file.
20626
20627 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
20628
20629         * m4/mathl.m4: New file.
20630
20631 2003-02-18  Bruno Haible  <bruno@clisp.org>
20632
20633         * MODULES.html.sh (func_all_modules): Add mathl.
20634
20635 2003-02-17  Bruno Haible  <bruno@clisp.org>
20636
20637         * modules/mkdtemp: New module.
20638         * MODULES.html.sh (func_all_modules): Add it.
20639
20640 2003-02-17  Bruno Haible  <bruno@clisp.org>
20641
20642         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
20643
20644 2003-02-17  Bruno Haible  <bruno@clisp.org>
20645
20646         * lib/mkdtemp.h: New file, from GNU gettext.
20647         * lib/mkdtemp.c: New file, from GNU gettext.
20648
20649 2003-02-02  Jim Meyering  <jim@meyering.net>
20650
20651         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
20652         e.g. glibc-2.2.93.
20653
20654 2003-01-31  Bruno Haible  <bruno@clisp.org>
20655
20656         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
20657         'rpl_rename'.
20658         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
20659         'rpl_strnlen'.
20660         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
20661         'rpl_strtod'.
20662         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
20663         'rpl_utime'.
20664
20665 2003-01-31  Bruno Haible  <bruno@clisp.org>
20666
20667         * lib/rename.c: #undef rename before defining rpl_rename.
20668         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
20669
20670 2003-01-30  Bruno Haible  <bruno@clisp.org>
20671
20672         * modules/vasnprintf, modules/vasprintf: New modules.
20673         * MODULES.html.sh (func_all_modules): Add them.
20674
20675 2003-01-30  Bruno Haible  <bruno@clisp.org>
20676
20677         * m4/signed.m4: New file, from GNU gettext.
20678         * m4/longdouble.m4: New file, from GNU gettext.
20679         * m4/wchar_t.m4: New file, from GNU gettext.
20680         * m4/wint_t.m4: New file, from GNU gettext.
20681         * m4/vasnprintf.m4: New file.
20682         * m4/vasprintf.m4: New file.
20683
20684 2003-01-30  Bruno Haible  <bruno@clisp.org>
20685
20686         * lib/printf-args.h: New file, from GNU gettext.
20687         * lib/printf-args.c: New file, from GNU gettext.
20688         * lib/printf-parse.h: New file, from GNU gettext.
20689         * lib/printf-parse.c: New file, from GNU gettext.
20690         * lib/vasnprintf.h: New file, from GNU gettext.
20691         * lib/vasnprintf.c: New file, from GNU gettext.
20692         * lib/asnprintf.c: New file, from GNU gettext.
20693         * lib/vasprintf.h: New file, from GNU gettext with modifications.
20694         * lib/vasprintf.c: New file, from GNU gettext.
20695         * lib/asprintf.c: New file, from GNU gettext.
20696
20697 2003-01-29  Bruno Haible  <bruno@clisp.org>
20698
20699         * modules/stpncpy: New module.
20700         * MODULES.html.sh (func_all_modules): Add it.
20701
20702 2003-01-29  Bruno Haible  <bruno@clisp.org>
20703
20704         * m4/stpncpy.m4: New file.
20705
20706 2003-01-29  Bruno Haible  <bruno@clisp.org>
20707
20708         * lib/stpncpy.h: New file, from GNU gettext with modifications.
20709         * lib/stpncpy.c: New file, from GNU gettext with modifications.
20710
20711 2003-01-28  Bruno Haible  <bruno@clisp.org>
20712
20713         * modules/c-ctype: New module.
20714         * MODULES.html.sh (func_all_modules): Add it.
20715
20716 2003-01-28  Bruno Haible  <bruno@clisp.org>
20717
20718         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
20719         Paul Eggert.
20720         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
20721         Paul Eggert.
20722
20723 2003-01-27  Bruno Haible  <bruno@clisp.org>
20724
20725         * modules/xsetenv: New module.
20726         * MODULES.html.sh (func_all_modules): Add it.
20727
20728 2003-01-27  Bruno Haible  <bruno@clisp.org>
20729
20730         * lib/xsetenv.h: New file, from GNU gettext.
20731         * lib/xsetenv.c: New file, from GNU gettext.
20732
20733 2003-01-23  Jim Meyering  <jim@meyering.net>
20734
20735         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
20736         from working on systems without dirfd (at least Irix and OSF1/Tru64).
20737
20738 2003-01-23  Bruno Haible  <bruno@clisp.org>
20739
20740         * modules/minmax: New module.
20741         * MODULES.html.sh (func_all_modules): Add it.
20742
20743 2003-01-23  Bruno Haible  <bruno@clisp.org>
20744
20745         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
20746         Eggert.
20747
20748 2003-01-22  Bruno Haible  <bruno@clisp.org>
20749
20750         * modules/exit: New module.
20751         * MODULES.html.sh (func_all_modules): Add it.
20752
20753 2003-01-22  Bruno Haible  <bruno@clisp.org>
20754
20755         * lib/exit.h: New file, from GNU gettext.
20756
20757 2003-01-19  Bruno Haible  <bruno@clisp.org>
20758
20759         * gnulib-tool: Recognize option --extract-maintainer.
20760         (func_get_maintainer): New function.
20761         * modules/*: Add Maintainer entry.
20762
20763 2003-01-16  Jim Meyering  <jim@meyering.net>
20764
20765         * m4/regex.m4: The `regex' struct is both input and output.
20766         Initialize it before each use.  Patch by Tim Waugh.
20767
20768 2003-01-16  Bruno Haible  <bruno@clisp.org>
20769
20770         * MODULES.html.sh: Add a table of contents. Add the module name as
20771         leftmost column. Add hyperlinks.
20772
20773 2003-01-15  Bruno Haible  <bruno@clisp.org>
20774
20775         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
20776
20777 2003-01-15  Bruno Haible  <bruno@clisp.org>
20778
20779         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
20780         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
20781         suffix.
20782
20783 2003-01-15  Bruno Haible  <bruno@clisp.org>
20784
20785         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
20786
20787 2003-01-15  Bruno Haible  <bruno@clisp.org>
20788
20789         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
20790         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
20791
20792 2003-01-14  Jim Meyering  <jim@meyering.net>
20793
20794         * lib/same.c (same_name): Tweak a comment.
20795
20796 2003-01-14  Bruno Haible  <bruno@clisp.org>
20797
20798         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
20799         when a string comparison is sufficient.
20800
20801 2003-01-14  Bruno Haible  <bruno@clisp.org>
20802
20803         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
20804         'unsigned int'.
20805
20806 2003-01-14  Bruno Haible  <bruno@clisp.org>
20807
20808         * lib/hash-pjw.c: Add comment about low quality of this function.
20809
20810 2003-01-13  Bruno Haible  <bruno@clisp.org>
20811
20812         * modules/stpcpy: Distribute lib/stpcpy.h.
20813         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
20814
20815 2003-01-13  Bruno Haible  <bruno@clisp.org>
20816
20817         * modules/*: Add a description.
20818         * modules/strpbrk: Fix Makefile.am snippet.
20819         * modules/strtoimax: Fix dependencies.
20820         * modules/strtoumax: Likewise.
20821
20822 2003-01-13  Bruno Haible  <bruno@clisp.org>
20823
20824         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
20825         * modules/alloca (Makefile.am): All object files depend on alloca.h.
20826         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
20827
20828 2003-01-13  Bruno Haible  <bruno@clisp.org>
20829
20830         * gnulib-tool (func_create_testdir): Store config/* files in the main
20831         directory.
20832         * config.rpath: Move to ...
20833         * config/config.rpath: ... here.
20834         * modules/gettext: Contains config/config.rpath, not config.rpath.
20835         * modules/iconv: Likewise.
20836
20837 2003-01-12  Paul Eggert  <eggert@twinsun.com>
20838
20839         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
20840         to avoid collisions with libcurses and libreadline.
20841
20842         * m4/getstr.m4: Remove.
20843         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
20844
20845 2003-01-12  Paul Eggert  <eggert@twinsun.com>
20846
20847         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
20848         to avoid collisions with libcurses and libreadline.
20849
20850         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
20851         * lib/getstr.h, getstr.c: Remove.
20852         * lib/getline.c: Include "getline.h", to check interface.
20853         Move body of old getstr.c here: this defines MIN_CHUNK and
20854         declares getdelim2, which is renamed from getstr.
20855         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
20856
20857         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
20858         All uses changed.
20859         * lib/linebuffer.h: Likewise.
20860         (readline): Remove backward-compatibility macro.
20861
20862 2003-01-12  Paul Eggert  <eggert@twinsun.com>
20863
20864         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
20865         to avoid collisions with libcurses and libreadline.
20866         * getstr: Remove.
20867         * MODULES.html.sh: Remove getstr.
20868         * modules/getline: Depend on unlocked-io, not getstr.
20869
20870 2003-01-12  Jim Meyering  <jim@meyering.net>
20871
20872         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
20873
20874 2003-01-10  Bruno Haible  <bruno@clisp.org>
20875
20876         * modules/alloca: Change Makefile.am requirements. Simplify Include
20877         requirements. Add lib/alloca_.h to file list.
20878
20879 2003-01-10  Bruno Haible  <bruno@clisp.org>
20880
20881         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
20882
20883 2003-01-10  Bruno Haible  <bruno@clisp.org>
20884
20885         * lib/alloca_.h: New file.
20886         * lib/getdate.y: Unconditionally include alloca.h.
20887         * lib/makepath.c: Likewise.
20888         * lib/setenv.c: Likewise.
20889         * lib/userspec.c: Likewise.
20890
20891 2003-01-09  Karl Berry  <karl@gnu.org>
20892
20893         * MODULES.html.sh: include `dirname $0` in PATH, to find
20894         gnulib-tool.
20895
20896 2003-01-09  Bruno Haible  <bruno@clisp.org>
20897
20898         * modules/stdbool: Change configure.ac, Makefile.am requirements.
20899         Simplify Include requirements. Add lib/stdbool.h.in to file list.
20900
20901 2003-01-09  Bruno Haible  <bruno@clisp.org>
20902
20903         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
20904
20905 2003-01-09  Bruno Haible  <bruno@clisp.org>
20906
20907         * lib/stdbool.h.in: New file.
20908
20909 2003-01-09  Bruno Haible  <bruno@clisp.org>
20910
20911         * gnulib-tool (func_all_modules): Ignore files ending in ~.
20912         * MODULES.html.sh: Likewise.
20913
20914 2003-01-08  Jim Meyering  <jim@meyering.net>
20915
20916         * lib/full-write.c: Undefine and define-away `const' after inclusion
20917         of errno.h, not before.  Suggestion from Bruno Haible.
20918
20919 2003-01-08  Bruno Haible  <bruno@clisp.org>
20920
20921         * modules/full-read: Depend on full-write.
20922
20923 2003-01-08  Bruno Haible  <bruno@clisp.org>
20924
20925         * lib/safe-read.c: Include specification header first, to ensure its
20926         selfcontainedness.
20927         * lib/full-write.c: Likewise.
20928
20929 2003-01-07  Jim Meyering  <jim@meyering.net>
20930
20931         * lib/full-write.c: Rework so that it may serve to define full_read,
20932         too.
20933         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
20934
20935 2003-01-07  Bruno Haible  <bruno@clisp.org>
20936
20937         * lib/strtoimax.c: Include <stdint.h> as an alternative to
20938         <inttypes.h>.
20939         * lib/xstrtol.h: Likewise.
20940         * lib/xstrtoimax.c: Likewise.
20941         * lib/xstrtoumax.c: Likewise.
20942         * lib/human.h: Likewise.
20943
20944         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
20945         on systems that have <inttypes.h> but not <stdint.h>.
20946
20947 2003-01-07  Bruno Haible  <bruno@clisp.org>
20948
20949         * MODULES.html.sh: Add copyright notice.
20950         (missed_files): Omit CVS directory entries.
20951         (func_module): Make it work with sed-3.02.
20952         * MODULES.txt: Remove file.
20953
20954 2003-01-06  Jim Meyering  <jim@meyering.net>
20955
20956         * lib/version-etc.c: Update year in translatable copyright string.
20957
20958 2003-01-03  Karl Berry  <karl@gnu.org>
20959
20960         * config/config.{guess,sub}: update from prep.
20961
20962 2003-01-02  Karl Berry  <karl@gnu.org>
20963
20964         * doc/COPYING.DOC: belatedly updated to 1.2.
20965
20966 2003-01-01  Karl Berry  <karl@gnu.org>
20967
20968         * gnulib-tool (func_verify_module): report module name $module in
20969         error message, not $1.
20970         * gnulib-tool (create-testdir): don't complain if destdir couldn't
20971         be created, only if it doesn't exist.
20972         * gnulib-tool (last_checkin_date): don't expand the $Date here.
20973
20974 2002-12-31  Paul Eggert  <eggert@twinsun.com>
20975
20976         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
20977
20978 2002-12-31  Paul Eggert  <eggert@twinsun.com>
20979
20980         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
20981         memcmp if strcoll doesn't work.
20982
20983 2002-12-31  Bruno Haible  <bruno@clisp.org>
20984
20985         * lib/utime.c (utime_null): No need to call ftruncate if the file was
20986         nonempty.
20987
20988 2002-12-31  Bruno Haible  <bruno@clisp.org>
20989
20990         * lib/memcoll.c (STRCOLL): New macro.
20991         (memcoll): Use it.
20992
20993 2002-12-31  Bruno Haible  <bruno@clisp.org>
20994
20995         * lib/localcharset.h: New file.
20996         * lib/localcharset.c: Include it.
20997         * lib/unicodeio.c: Likewise.
20998
20999 2002-12-31  Bruno Haible  <bruno@clisp.org>
21000
21001         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
21002         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
21003
21004 2002-12-31  Bruno Haible  <bruno@clisp.org>
21005
21006         * lib/getline.h: Include <stddef.h>, for size_t.
21007
21008         * lib/unicodeio.h: Include <stddef.h>, for size_t.
21009         * lib/unicodeio.c: Don't include <stddef.h>.
21010
21011 2002-12-31  Bruno Haible  <bruno@clisp.org>
21012
21013         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
21014         HAVE_TM_ZONE.
21015
21016 2002-12-24  Karl Berry  <karl@gnu.org>
21017
21018         * config/config.guess: update from prep.
21019
21020 2002-12-24  Bruno Haible  <bruno@clisp.org>
21021
21022         General infrasructure.
21023         * m4/README: Rewritten.
21024         * m4/onceonly.m4: New file.
21025         * m4/onceonly_2_57.m4: New file.
21026
21027         Module atexit.
21028         * m4/atexit.m4: New file.
21029
21030         Module strtod.
21031         * m4/strtod.m4: New file.
21032
21033         Module strtol.
21034         * m4/strtol.m4: New file.
21035
21036         Module strtoul.
21037         * m4/strtoul.m4: New file.
21038
21039         Module memchr.
21040         * m4/memchr.m4: New file.
21041
21042         Module memcmp.
21043         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
21044         (jm_FUNC_MEMCMP): Invoke it.
21045
21046         Module memcpy.
21047         * m4/memcpy.m4: New file.
21048
21049         Module memmove.
21050         * m4/memmove.m4: New file.
21051
21052         Module memset.
21053         * m4/memset.m4: New file.
21054
21055         Module strcspn.
21056         * m4/strcspn.m4: New file.
21057
21058         Module strpbrk.
21059         * m4/strpbrk.m4: New file.
21060
21061         Module strstr.
21062         * m4/strstr.m4: New file.
21063
21064         Module strerror.
21065         * m4/strerror.m4: New file.
21066
21067         Module mktime.
21068         * m4/mktime.m4: Renamed from jm-mktime.m4.
21069         (gl_PREREQ_MKTIME): New macro.
21070         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
21071
21072         Module malloc.
21073         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
21074         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
21075         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
21076
21077         Module realloc.
21078         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
21079         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
21080         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
21081
21082         Module strftime.
21083         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
21084         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
21085         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
21086         gl_TM_GMTOFF.
21087         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
21088
21089         Module xalloc.
21090         * m4/xalloc.m4: New file.
21091
21092         Module alloca.
21093         * m4/alloca.m4: New file.
21094
21095         Module putenv.
21096         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
21097         (jm_FUNC_PUTENV): Invoke it.
21098
21099         Module setenv.
21100         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
21101         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
21102         when invoked twice.
21103         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
21104         gt_FUNC_SETENV.
21105
21106         Module memrchr.
21107         * m4/memrchr.m4: New file.
21108
21109         Module stpcpy.
21110         * m4/stpcpy.m4: New file.
21111
21112         Module strcase.
21113         * m4/strcase.m4: New file.
21114
21115         Module strdup.
21116         * m4/strdup.m4: New file.
21117
21118         Module strnlen.
21119         * m4/strnlen.m4: New file.
21120
21121         Module strndup.
21122         * m4/strndup.m4: New file.
21123
21124         Module xstrtod.
21125         * m4/xstrtod.m4: New file.
21126
21127         Module xstrtol.
21128         * m4/xstrtol.m4: New file.
21129
21130         Module getdate.
21131         * m4/getdate.m4: New file.
21132
21133         Module unlocked-io.
21134         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
21135         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
21136         * m4/jm-glibc-io.m4n: Remove file.
21137
21138         Module long-options.
21139         * m4/long-options.m4: New file.
21140
21141         Module md5.
21142         * m4/md5.m4: New file.
21143
21144         Module sha.
21145         * m4/sha.m4: New file.
21146
21147         Module getstr.
21148         * m4/getstr.m4: New file.
21149
21150         Module getline.
21151         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
21152         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
21153         <sys/types.h>, for size_t. Use the function name gnu_getline, not
21154         simply getline. Infoke gl_PREREQ_GETLINE.
21155
21156         Module obstack.
21157         * m4/obstack.m4: New file.
21158
21159         Module hash.
21160         * m4/hash.m4: New file.
21161
21162         Module readtokens.
21163         * m4/readtokens.m4: New file.
21164
21165         Module strverscmp.
21166         * m4/strverscmp.m4: New file.
21167
21168         Module stdbool.
21169         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
21170         OSF/1.
21171
21172         Module strtoll.
21173         * m4/strtoll.m4: New file.
21174
21175         Module strtoull.
21176         * m4/strtoull.m4: New file.
21177
21178         Module strtoimax.
21179         * m4/strtoimax.m4: New file.
21180
21181         Module strtoumax.
21182         * m4/strtoumax.m4: New file.
21183
21184         Module xstrtoimax.
21185         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
21186         jm_AC_PREREQ_XSTRTOIMAX.
21187         Moved the strtol prerequisites to strtol.m4.
21188         Moved the strtoll prerequisites to strtoll.m4.
21189         Moved the strtoimax prerequisites to strtoimax.m4.
21190
21191         Module xstrtoumax.
21192         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
21193         jm_AC_PREREQ_XSTRTOUMAX.
21194         Moved the strtoul prerequisites to strtoul.m4.
21195         Moved the strtoull prerequisites to strtoull.m4.
21196         Moved the strtoumax prerequisites to strtoumax.m4.
21197
21198         Module chown.
21199         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
21200         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
21201
21202         Module dup2.
21203         * m4/dup2.m4: New file.
21204
21205         Module ftruncate.
21206         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
21207         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
21208
21209         Module getgroups.
21210         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
21211         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
21212
21213         Module gettimeofday.
21214         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
21215         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
21216         gl_PREREQ_GETTIMEOFDAY.
21217
21218         Module mkdir.
21219         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
21220         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
21221
21222         Module mkstemp.
21223         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
21224         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
21225         jm_AC_TYPE_UINTMAX_T.
21226         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
21227
21228         Module stat.
21229         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
21230         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
21231
21232         Module lstat.
21233         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
21234         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
21235
21236         Module timespec.
21237         * m4/timespec.m4 (gl_TIMESPEC): New macro.
21238         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
21239         * m4/st_mtim.m4: Indentation.
21240
21241         Module nanosleep.
21242         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
21243         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
21244         gl_PREREQ_NANOSLEEP.
21245
21246         Module regex.
21247         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
21248         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
21249         (gl_REGEX): New macro.
21250
21251         Module rename.
21252         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
21253         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
21254
21255         Module rmdir.
21256         * m4/rmdir.m4: New file.
21257
21258         Module utime.
21259         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
21260         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
21261         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
21262
21263         Module dirname.
21264         * m4/dirname.m4: New file.
21265
21266         Module getopt.
21267         * m4/getopt.m4: New file.
21268
21269         Module unistd-safer.
21270         * m4/unistd-safer.m4: New file.
21271
21272         Module fnmatch.
21273         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
21274         declaration.
21275         (gl_PREREQ_FNMATCH_EXTRA): New macro.
21276         (gl_FUNC_FNMATCH_POSIX): New macro.
21277         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
21278         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
21279         simply fnmatch.
21280
21281         Module exclude.
21282         * m4/exclude.m4: New file.
21283
21284         Module human.
21285         * m4/human.m4: New file.
21286
21287         Module acl.
21288         * m4/acl.m4: Nop.
21289
21290         Module backupfile.
21291         * m4/backupfile.m4: New file.
21292         * m4/d-ino.m4: Indentation.
21293
21294         Module fsusage.
21295         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
21296         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
21297         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
21298
21299         Module dirfd.
21300         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
21301         requirements.
21302
21303         Module euidaccess.
21304         * m4/euidaccess.m4: New file.
21305
21306         Module file-type.
21307         * m4/file-type.m4: New file.
21308
21309         Module fileblocks.
21310         * m4/fileblocks.m4: New file.
21311
21312         Module filemode.
21313         * m4/filemode.m4: New file.
21314
21315         Module isdir.
21316         * m4/isdir.m4: New file.
21317
21318         Module lchown.
21319         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
21320         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
21321
21322         Module makepath.
21323         * m4/makepath.m4: New file.
21324
21325         Module modechange.
21326         * m4/modechange.m4: New file.
21327
21328         Module mountlist.
21329         * m4/mountlist.m4: New file.
21330         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
21331         Indentation.
21332
21333         Module path-concat.
21334         * m4/path-concat.m4: New file.
21335
21336         Module pathmax.
21337         * m4/pathmax.m4: New file.
21338
21339         Module same.
21340         * m4/same.m4: New file.
21341
21342         Module save-cwd.
21343         * m4/save-cwd.m4: New file.
21344
21345         Module savedir.
21346         * m4/savedir.m4: New file.
21347
21348         Module xgetcwd.
21349         * m4/xgetcwd.m4: New file.
21350         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
21351
21352         Module xreadlink.
21353         * m4/xreadlink.m4: New file.
21354
21355         Module safe-read.
21356         * m4/safe-read.m4: New file.
21357
21358         Module safe-write.
21359         * m4/safe-write.m4: New file.
21360
21361         Module closeout.
21362         * m4/closeout.m4: New file.
21363
21364         Module stdio-safer.
21365         * m4/stdio-safer.m4: New file.
21366
21367         Module getpass.
21368         * m4/getpass.m4: New file.
21369
21370         Module getugroups.
21371         * m4/getugroups.m4: New file.
21372
21373         Module group-member.
21374         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
21375         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
21376
21377         Module idcache.
21378         * m4/idcache.m4: New file.
21379
21380         Module userspec.
21381         * m4/userspec.m4: New file.
21382
21383         Module gettime.
21384         * m4/clock_time.m4: New file.
21385         * m4/gettime.m4: New file.
21386
21387         Module settime.
21388         * m4/settime.m4: New file.
21389
21390         Module posixtm.
21391         * m4/posixtm.m4: New file.
21392
21393         Module gethostname.
21394         * m4/gethostname.m4: New file.
21395
21396         Module canon-host.
21397         * m4/canon-host.m4: New file.
21398
21399         Module gettext.
21400         * m4/codeset.m4: New file, from gettext-0.11.5.
21401         * m4/gettext.m4: New file, from gettext-0.11.5.
21402         * m4/glibc21.m4: New file, from gettext-0.11.5.
21403         * m4/iconv.m4: New file, from gettext-0.11.5.
21404         * m4/intdiv0.m4: New file, from gettext-0.11.5.
21405         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
21406         * m4/inttypes.m4: New file, from gettext-0.11.5.
21407         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
21408         * m4/isc-posix.m4: New file, from gettext-0.11.5.
21409         * m4/lcmessage.m4: New file, from gettext-0.11.5.
21410         * m4/lib-ld.m4: New file, from gettext-0.11.5.
21411         * m4/lib-link.m4: New file, from gettext-0.11.5.
21412         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
21413         * m4/progtest.m4: New file, from gettext-0.11.5.
21414         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
21415         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
21416         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
21417
21418         Module localcharset.
21419         * m4/localcharset.m4: New file.
21420
21421         Module hard-locale.
21422         * m4/hard-locale.m4: New file.
21423
21424         Module mbswidth.
21425         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
21426         onceonly macros.
21427         * m4/mbrtowc.m4: Add comment.
21428
21429         Module memcasecmp.
21430         * m4/memcasecmp.m4: New file.
21431
21432         Module memcoll.
21433         * m4/memcoll.m4: New file.
21434
21435         Module unicodeio.
21436         * m4/unicodeio.m4: New file.
21437
21438         Module rpmatch.
21439         * m4/rpmatch.m4: New file.
21440
21441         Module yesno.
21442         * m4/yesno.m4: New file.
21443
21444         Module exitfail.
21445         * m4/exitfail.m4: New file.
21446
21447         Module c-stack.
21448         * m4/c-stack.m4 (gl_C_STACK): New macro.
21449         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
21450
21451         Module error.
21452         * m4/error.m4 (gl_ERROR): New macro.
21453         (jm_PREREQ_ERROR): Use onceonly macros.
21454
21455         Module fatal.
21456         * m4/fatal.m4: New file.
21457
21458         Module getloadavg.
21459         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
21460         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
21461
21462         Module getpagesize.
21463         * m4/getpagesize.m4: New file.
21464
21465         Module getusershell.
21466         * m4/getusershell.m4: New file.
21467
21468         Module physmem.
21469         * m4/physmem.m4: New file.
21470
21471         Module posixver.
21472         * m4/posixver.m4: New file.
21473
21474         Module quotearg.
21475         * m4/quotearg.m4: New file.
21476
21477         Module quote.
21478         * m4/quote.m4: New file.
21479
21480         Module readutmp.
21481         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
21482
21483         Module sig2str.
21484         * m4/sig2str.m4: New file.
21485
21486         Other.
21487         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
21488         ulonglong.m4.
21489         * m4/intmax_t.m4: New file.
21490         * m4/d-type.m4: Indentation.
21491         * m4/jm-macros.m4: Update.
21492         * m4/prereq.m4 (jm_PREREQ): Update.
21493         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
21494         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
21495         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
21496         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
21497         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
21498         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
21499         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
21500         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
21501         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
21502         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
21503         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
21504         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
21505         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
21506         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
21507         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
21508         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
21509         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
21510         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
21511         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
21512
21513 2002-12-24  Bruno Haible  <bruno@clisp.org>
21514
21515         * MODULES.txt: Update according to m4/ changes.
21516
21517         Module gettext.
21518         * config.rpath: New file, from gettext-0.11.5.
21519
21520         * modules/*: New module descriptions.
21521         * gnulib-tool: New file.
21522         * MODULES.html.sh: New file.
21523
21524 2002-12-21  Karl Berry  <karl@gnu.org>
21525
21526         * doc/fdl.texi: update to version 1.2.
21527
21528 2002-12-19  Karl Berry  <karl@gnu.org>
21529
21530         * config/config.guess: update from prep.
21531
21532 2002-12-18  Bruno Haible  <bruno@clisp.org>
21533
21534         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
21535         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
21536
21537 2002-12-17  Bruno Haible  <bruno@clisp.org>
21538
21539         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
21540         stdlib.h, string.h.
21541
21542 2002-12-17  Bruno Haible  <bruno@clisp.org>
21543
21544         * lib/canon-host.c (strdup): Remove unused declaration.
21545
21546         * lib/fsusage.c: Include full_read.h.
21547         (get_fs_usage): Use full_read instead of safe_read.
21548
21549         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
21550
21551 2002-12-12  Karl Berry  <karl@gnu.org>
21552
21553         * config/config.guess: update from prep.
21554
21555 2002-12-11  Bruno Haible  <bruno@clisp.org>
21556
21557         * m4/setenv.m4: New file, from gettext-0.11.5.
21558
21559 2002-12-11  Bruno Haible  <bruno@clisp.org>
21560
21561         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
21562         not unsetenv().
21563         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
21564         modifications:
21565
21566         2002-12-11  Bruno Haible  <bruno@clisp.org>
21567
21568                 * setenv.c (alloca): Fall back to malloc.
21569                 (freea): New macro.
21570                 (setenv): Use freea() to free memory allocated with alloca().
21571
21572         2002-11-13  Bruno Haible  <bruno@clisp.org>
21573
21574                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
21575                 function declarations.
21576                 * unsetenv.c (unsetenv): Likewise.
21577
21578         2002-03-04  Bruno Haible  <bruno@clisp.org>
21579
21580                 Portability to AIX 4.3.3.
21581                 * unsetenv.c: New file, extracted from setenv.c.
21582                 * setenv.c: Move the unsetenv() function to unsetenv.c.
21583
21584         2001-12-20  Bruno Haible  <bruno@clisp.org>
21585
21586                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
21587                 use malloc instead. For SunOS 4.
21588
21589         2001-12-11  Bruno Haible  <bruno@clisp.org>
21590
21591                 * setenv.c: Declare alloca.
21592                 (compar_fn_t): New typedef.
21593                 (KNOWN_VALUE, STORE_VALUE): Use it.
21594
21595         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
21596         setenv.h.
21597
21598 2002-12-10  Paul Eggert  <eggert@twinsun.com>
21599
21600         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
21601         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
21602         Choose values that are less likely to collide with system fnmatch
21603         options.
21604         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
21605         defined (e.g., a pure POSIX system).
21606         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
21607         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
21608
21609 2002-12-06  Paul Eggert  <eggert@twinsun.com>
21610
21611         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
21612         a pain in practice to deal with generated m4 files.  This change
21613         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
21614
21615         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
21616         and jm-glibc-io.m4, as they are no longer a special case.
21617         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
21618         kludge and the auto-generation stuff.  Check only whether the
21619         functions are declared, not whether they exist, since older hosts
21620         that don't declare the functions can't use the optimization anyway.
21621
21622 2002-12-06  Jim Meyering  <jim@meyering.net>
21623
21624         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
21625
21626         Merge in changes from libc's misc/error.c, in preparation
21627         for the merge of gnulib's changes back into libc.
21628
21629         * lib/error.c (_): Define only if not already defined.
21630         Move definition to follow all #include directives.
21631         Include unlocked-io.h only if !_LIBC.
21632         [_LIBC]: Include <libio/libioP.h>.
21633         [USE_IN_LIBIO]: Include <libio/iolibio.h>
21634         (fflush): Tweak definition to use INTUSE.
21635         (putc): Define.
21636
21637 2002-12-05  Paul Eggert  <eggert@twinsun.com>
21638
21639         * lib/alloca.c [defined emacs]: Include "lisp.h".
21640         (xalloc_die) [defined emacs]: New macro.
21641         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
21642         [! defined emacs]: Include <xalloc.h>.
21643         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
21644         (pointer): Typedef to POINTER_TYPE *.
21645         (malloc): Remove decl; we now always use xmalloc.
21646         (alloca): Use old-style definition, since Emacs needs this.
21647         Check for arithmetic overflow when computing combined size.
21648
21649 2002-12-04  Paul Eggert  <eggert@twinsun.com>
21650
21651         Do not generate unlocked-io.h automatically, since it's easier to
21652         maintain it by hand.
21653
21654         * lib/unlocked-io.h: New file, from GNU diffutils,
21655         but with proper copyright notice and attribution.
21656         * lib/gen-uio: Remove.
21657         * lib/Makefile.am: Add copyright notice.
21658         (libfetish_a_SOURCES): Add unlocked-io.h.
21659         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
21660         (DISTCLEANFILES, io_functions): Remove macros.
21661         (EXTRA_DIST): Remove gen_uio.
21662         (unlocked-io.h): Remove rule.
21663
21664 2002-12-04  Jim Meyering  <jim@meyering.net>
21665
21666         Reflect the fact that stat.c and lstat.c are no longer generated.
21667         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
21668         (DISTCLEANFILES): Likewise.
21669         (EXTRA_DIST): Likewise.
21670         (all_local): Don't depend on stat.c or lstat.c.
21671         (stat.c, lstat.c): Remove rules.
21672         (EXTRA_DIST): Remove xstat.in.
21673
21674         * lib/xstat.in: Remove file.  Contents moved into stat.c.
21675         * lib/stat.c: New file.  Contents mostly from xstat.in.
21676         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
21677         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
21678
21679         * lib/safe-read.c: Rework so that it may serve to define safe_write,
21680         too.
21681         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
21682
21683 2002-12-03  Jim Meyering  <jim@meyering.net>
21684
21685         * lib/safe-read.c, safe-write.c: Change variable names and comments,
21686         but not semantics, to minimize the differences between these two files.
21687         (safe_read): Change comment to mention SAFE_READ_ERROR.
21688
21689         * lib/safe-read.c (IS_EINTR): Define.
21690         (safe_read): Use IS_EINTR in place of in-function cpp directives.
21691
21692 2002-12-02  Jim Meyering  <jim@meyering.net>
21693
21694         * lib/safe-read.c (EINTR): Define.
21695         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
21696         (INT_MAX): Provide fallback.
21697         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
21698
21699         * lib/safe-read.h (SAFE_READ_ERROR): Define.
21700
21701 2002-12-02  Bruno Haible  <bruno@clisp.org>
21702
21703         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
21704         Define, taken from safe-read.c.
21705         (INT_MAX): Provide fallback.
21706         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
21707         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
21708
21709         * lib/safe-read.c (EINTR): Remove definition.
21710         (safe_read): Don't use EINTR if it is absent.
21711
21712 2002-12-01  Jim Meyering  <jim@meyering.net>
21713
21714         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
21715         zero.
21716         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
21717
21718 2002-11-27  Paul Eggert  <eggert@twinsun.com>
21719
21720         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
21721         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
21722         with `if (! (value < limit)) abort ();', for readability.
21723
21724 2002-11-26  Karl Berry  <karl@gnu.org>
21725
21726         * lib/strdup.c: copy from libc again, with jim's ok.
21727         * lib/.cppi-disable: re-add strdup.c
21728
21729 2002-11-25  Karl Berry  <karl@gnu.org>
21730
21731         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
21732         instead of "strtol.c".
21733
21734 2002-11-25  Karl Berry  <karl@gnu.org>
21735
21736         * config/install-sh: update from automake for variable quoting, $0 in
21737         error msgs, etc.
21738
21739         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
21740         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
21741         entry.
21742
21743 2002-11-25  Jim Meyering  <jim@meyering.net>
21744
21745         * lib/mktime.c: Sync from libc, now that it has the latest fix.
21746
21747 2002-11-24  Karl Berry  <karl@gnu.org>
21748
21749         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
21750         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
21751
21752 2002-11-24  Jim Meyering  <jim@meyering.net>
21753
21754         Update from coreutils:
21755
21756         * lib/mktime.c: Merge in changes from libc.
21757
21758         Avoid a link-time failure on some Linux systems.
21759         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
21760         (otherwise).
21761         (__mon_yday): Declare with the STATIC attribute.
21762         (__mktime_internal): Likewise.
21763         Based on a report from Greg Schafer.
21764
21765 2002-11-23  Jim Meyering  <jim@meyering.net>
21766
21767         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
21768         Use `unsigned', not `int', as type of index.
21769
21770         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
21771
21772         * lib/fsusage.c: Remove unneeded parentheses around operands of
21773         `defined'.
21774
21775 2002-11-22  Paul Eggert  <eggert@twinsun.com>
21776
21777         * lib/quotearg.h: Allow multiple inclusion by surrounding with
21778         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
21779         so that we can be included first.
21780         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
21781         * lib/quotearg.c: Include quotearg.h immediately after config.h.
21782         No need to include stddef.h or sys/types.h any more.
21783         Surround local include files with "", not "<>".
21784         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
21785         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
21786         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
21787         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
21788         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
21789         (ISPRINT): Remove; no longer needed now that we assume C89.
21790
21791         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
21792         Preserve errno.
21793
21794         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
21795         quotearg_char): Use SIZE_MAX rather than
21796         (size_t) -1 when we are talking about "infinity".
21797
21798         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
21799
21800 2002-11-22  Paul Eggert  <eggert@twinsun.com>
21801
21802         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
21803         hint that one should use `if (! x) abort ();' rather than `assert
21804         (x);', and anyway it's one less thing to worry about configuring.
21805         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
21806         hash_rehash, hash_insert): Use abort rather than assert.
21807
21808 2002-11-22  Bruno Haible  <bruno@clisp.org>
21809
21810         * lib/safe-read.h: Assume C89. Add comments.
21811         (safe_read): Change return type to size_t.
21812         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
21813         byte counts > SSIZE_MAX correctly.
21814         * lib/safe-write.h: New file.
21815         * lib/safe-write.c: New file.
21816         * lib/full-read.h: New file.
21817         * lib/full-read.c: New file.
21818         * lib/full-write.h: Assume C89. Add comments.
21819         * lib/full-write.c: Include safe-write.h.
21820         (full_write): Rewritten to use safe_write.
21821         Suggested by Jim Meyering and Paul Eggert.
21822
21823 2002-11-21  Jim Meyering  <jim@meyering.net>
21824
21825         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
21826
21827         Merge in changes from the coreutils.
21828
21829         2002-09-25  Paul Eggert  <eggert@twinsun.com>
21830         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
21831         <stdint.h>.
21832         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
21833         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
21834         int.  Work more efficiently if X is the same width as uintmax_t.
21835         Do not compare X to -1, to avoid bogus compiler warning.
21836         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
21837         Don't assume that f_frsize and f_bsize are the same type.
21838
21839         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
21840         warning on FreeBSD.
21841
21842         * lib/makepath.c (make_path): Restore umask *before* creating the final
21843         component.
21844         (make_path): Minor reformatting.
21845
21846         * lib/xmalloc.c: Adjust to work with new autoconf macros,
21847         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
21848         HAVE_MALLOC/HAVE_REALLOC.
21849
21850         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
21851         dummy ones.  At least on GNU/Linux systems, `auto' means something
21852         else.
21853         From Michael Stone.
21854
21855 2002-11-21  Bruno Haible  <bruno@clisp.org>
21856
21857         Remove case insensitive option matching.
21858         * lib/argmatch.h (argcasematch): Remove declaration.
21859         (ARGCASEMATCH): Remove macro.
21860         (__xargmatch_internal): Remove case_sensitive argument.
21861         (XARGMATCH): Update.
21862         (XARGCASEMATCH): Remove macro.
21863         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
21864         case_sensitive argument.
21865         (argcasematch): Remove function.
21866         (__xargmatch_internal): Remove case_sensitive argument.
21867         (main): Use XARGMATCH instead of XARGCASEMATCH.
21868
21869         * lib/xmalloc.c: Change compile-time error message. Add comment about
21870         required autoconf version.
21871
21872 2002-11-20  Paul Eggert  <eggert@twinsun.com>
21873
21874         Merge argmatch cleanups from Bison.  Assume C89.
21875
21876         * lib/argmatch.c: Include config.h here, not in argmatch.h.
21877         Include stdlib.h, for EXIT_FAILURE.
21878         Always include <string.h>, since we assume C89.
21879         (EXIT_FAILURE): Remove pre-C89 bug workaround.
21880         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
21881         Include <stddef.h> instead, since it's all we need for size_t.
21882         (PARAMS): Remove.  All uses removed.
21883         (ARRAY_CARDINALITY): Do not bother to #undef.
21884         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
21885         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
21886         Remove unnecessary parentheses.
21887         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
21888         Insert necessary parentheses.
21889         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
21890         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
21891
21892 2002-11-19  Bruno Haible  <bruno@clisp.org>
21893
21894         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
21895         * lib/mbswidth.h: Include <stddef.h>, for size_t.
21896
21897         * lib/mbswidth.h (PARAMS): Remove macro.
21898         (mbswidth, mbsnwidth): Use ANSI C function declarations.
21899         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
21900
21901         * lib/gcd.h (PARAMS): Remove macro.
21902         (gcd): Use ANSI C function declarations.
21903         * lib/gcd.c (gcd): Likewise.
21904
21905 2002-11-15  Bruno Haible  <bruno@clisp.org>
21906
21907         * lib/strcspn.c: Include <stddef.h>.
21908         (strcspn): Use ANSI C function declaration. Change return type to
21909         size_t. Use NULL.
21910         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
21911         (strpbrk): Use NULL.
21912         * lib/strpbrk.h (PARAMS): Remove macro.
21913         (strpbrk): Use ANSI C function declaration.
21914         * lib/strstr.c: Don't include <sys/types.h>.
21915         * lib/strstr.h (PARAMS): Remove macro.
21916         (strstr): Use ANSI C function declarations.
21917
21918 2002-11-14  Karl Berry  <karl@gnu.org>
21919
21920         * config/mkinstalldirs: `do' on separate line, instead of
21921         `for var; do'.
21922
21923 2002-11-06  Bruno Haible  <bruno@clisp.org>
21924
21925         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
21926         * lib/gcd.c (gcd): Likewise.
21927
21928 2002-11-05  Bruno Haible  <bruno@clisp.org>
21929
21930         * lib/gcd.h: New file, from gettext-0.11.5.
21931         * lib/gcd.c: New file, from gettext-0.11.5.
21932
21933 2002-11-05  Bruno Haible  <bruno@clisp.org>
21934
21935         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
21936         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
21937         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
21938         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
21939
21940         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
21941         <libintl.h>.
21942         * lib/makepath.c: Include gettext.h instead of <locale.h> and
21943         <libintl.h>.
21944
21945         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
21946         * lib/human.c: Include gettext.h instead of <libintl.h>.
21947         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
21948         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
21949         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
21950         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
21951         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
21952         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
21953         (textdomain): Remove definition.
21954         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
21955
21956         * lib/long-options.c: Remove include of <libintl.h> and definition of
21957         _.
21958         * lib/same.c: Remove include of <libintl.h> and definition of _.
21959
21960 2002-11-04  Owen Taylor  <otaylor@redhat.com>
21961
21962         * lib/config.charset: A few additions for Solaris.
21963
21964 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
21965
21966         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
21967         * lib/localcharset.c (locale_charset): Declare as extern "C".
21968
21969 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
21970
21971         * lib/config.charset: msdos in uk_UA uses CP1125.
21972
21973 2002-11-04  Bruno Haible  <bruno@clisp.org>
21974
21975         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
21976         * lib/strcase.h: New file, from GNU gettext-0.11.5.
21977         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
21978         * lib/strstr.h: New file, from GNU gettext-0.11.5.
21979         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
21980
21981 2002-11-04  Bruno Haible  <bruno@clisp.org>
21982
21983         * lib/localcharset.c (locale_charset): Don't return an empty string.
21984
21985 2002-11-04  Bruno Haible  <bruno@clisp.org>
21986
21987         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
21988         aliases.
21989
21990 2002-11-04  Bruno Haible  <bruno@clisp.org>
21991
21992         * lib/config.charset: Update for newest glibc. Add canonical names
21993         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
21994
21995 2002-11-04  Bruno Haible  <bruno@clisp.org>
21996
21997         * lib/config.charset: Add support for NetBSD.
21998
21999 2002-11-04  Bruno Haible  <bruno@clisp.org>
22000
22001         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
22002
22003 2002-11-01  Bruno Haible  <bruno@clisp.org>
22004
22005         * configure.in: Add AC_CONFIG_AUX_DIR call.
22006         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
22007         test/Makefile.
22008         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
22009
22010 2002-09-28  Karl Berry  <karl@gnu.org>
22011
22012         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
22013         installed automake until the next release, since changes have been
22014         made.
22015
22016 2002-09-25  Karl Berry  <karl@gnu.org>
22017
22018         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
22019         * lib/getopt*: copy from libc/posix.
22020         * lib/gettext.h: copy from gettext.
22021         * lib/.cppi-disable: add strdup.c, gettext.h.
22022
22023 2002-09-25  Karl Berry  <karl@gnu.org>
22024
22025         * config/srclist.txt: enable gettext.h check.
22026         * config/config.{guess,sub}: update from prep.
22027         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
22028                 from automake 1.6.3.
22029         See srclist*.
22030
22031 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
22032
22033         * regex.c (PATFETCH): Remove the translating fetch.
22034         (PATFETCH_RAW): Rename to PATFETCH.
22035         (set_image_of_range): New fun.
22036         (SET_RANGE_TABLE_WORK_AREA): Use it.
22037         (regex_compile): Don't translate the pattern chars so eagerly.
22038         Only do it when inserting an `exactn' bytecode or when handling
22039         a char-range.
22040         (mutually_exclusive_p): Avoid empty statement.
22041
22042 2002-07-06  Jim Meyering  <meyering@lucent.com>
22043
22044         * m4/README: Don't mention Makefile.am.in.
22045         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
22046
22047 2002-07-01  Jim Meyering  <meyering@lucent.com>
22048
22049         * lib/c-stack.c: Include sys/time.h.
22050         From Volker Borchert.
22051
22052 2002-06-26  Paul Eggert  <eggert@twinsun.com>
22053
22054         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
22055
22056 2002-06-26  Paul Eggert  <eggert@twinsun.com>
22057
22058         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
22059         New macro.  Use it uniformly instead of
22060         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
22061         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
22062         reported by Vin Shelton.
22063
22064 2002-06-22  Paul Eggert  <eggert@twinsun.com>
22065
22066         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
22067         Do not assume SA_SIGINFO behavior.
22068         Bug reported by Jim Meyering on NetBSD 1.5.2.
22069
22070 2002-06-22  Jim Meyering  <meyering@lucent.com>
22071
22072         * m4/c-stack.m4: New file, from diffutils-2.8.2.
22073         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
22074
22075         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
22076         now that configure.ac uses AC_GNU_SOURCE.
22077         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
22078         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
22079
22080         Update to latest tools.  Suggestions from Paul Eggert.
22081         * m4/stdbool.m4: New file, from diffutils-2.8.2.
22082         * m4/gnu-source.m4: Update from diffutils-2.8.2.
22083         * m4/fnmatch.m4: Likewise.
22084         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
22085         to AC_HEADER_STDBOOL
22086
22087 2002-06-22  Jim Meyering  <meyering@lucent.com>
22088
22089         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
22090         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
22091
22092 2002-06-22  Jim Meyering  <meyering@lucent.com>
22093
22094         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
22095
22096         * lib/exitfail.c, exitfail.h: Likewise.
22097         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
22098
22099         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
22100         of fnmatch.h.
22101         (EXTRA_DIST): Add fnmatch_loop.c.
22102         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
22103
22104         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
22105         * lib/fnmatch.c: Update from diffutils-2.8.2.
22106         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
22107         * lib/fnmatch.h: Remove file.
22108
22109 2002-06-21  Jim Meyering  <meyering@lucent.com>
22110
22111         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
22112         * m4/mbrtowc.m4: Likewise.
22113
22114         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
22115         * m4/mbswidth.m4: Reflect name change:
22116         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
22117         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
22118
22119         * m4/lib-link.m4: Update from gettext-0.11.2.
22120         * m4/gettext.m4: Likewise.
22121
22122         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
22123         From Alfred M. Szmidt.
22124
22125 2002-06-18  Paul Eggert  <eggert@twinsun.com>
22126
22127         * lib/file-type.h: Report an error if neither S_ISREG nor
22128         S_IFREG is defined, instead of using a test specific to glibc
22129         2.2.  This should be safe, since POSIX requires S_ISREG and
22130         Unix Version 7 had S_IFREG.  We don't need to check for
22131         <sys/types.h> since we don't use any symbols that it defines.
22132
22133 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
22134
22135         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
22136         $@-t, so that each temporary file name is unique and valid in the first
22137         8 characters, for operation under DOS.
22138
22139 2002-06-15  Paul Eggert  <eggert@twinsun.com>
22140
22141         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
22142
22143 2002-06-15  Jim Meyering  <meyering@lucent.com>
22144
22145         Work even with DJGPP 2.03, which lacks support for symlinks.
22146         From Richard Dawe.
22147         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
22148         is defined.
22149         * lib/lchown.c (S_ISLNK): Likewise.
22150
22151 2002-06-15  Jim Meyering  <meyering@lucent.com>
22152
22153         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
22154         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
22155         have been included before this file.
22156
22157 2002-06-14  Jim Meyering  <meyering@lucent.com>
22158
22159         * lib/file-type.h: Use the version from diffutils-2.8.2.
22160         * lib/file-type.c: Likewise.
22161
22162 2002-06-07  Jim Meyering  <meyering@lucent.com>
22163
22164         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
22165         They're needed at least for NetBSD 1.5.2.
22166         ($statxfs_includes): Include those same headers.
22167         ($statxfs_includes): Include sys/vfs.h if available.
22168         ($statxfs_includes): Likewise for sys/statvfs.h.
22169         Check for the following members in both structs statfs and statvfs:
22170         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
22171
22172 2002-06-01  Jim Meyering  <meyering@lucent.com>
22173
22174         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
22175         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
22176
22177 2002-05-28  Jim Meyering  <meyering@lucent.com>
22178
22179         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
22180         Reported by Volker Borchert.
22181
22182 2002-05-27  Jim Meyering  <meyering@lucent.com>
22183
22184         Fix a problem seen only on nonconforming systems whereby ls.c's
22185         use of localtime, and then of gettimeofday would cause trouble:
22186         the localtime call used to initialize rpl_gettimeofday's save
22187         mechanism would clobber ls's current local time information so
22188         that in any long listing the first file would always be listed
22189         with date 1970-01-01.  Analysis by Volker Borchert.
22190
22191         * lib/gettimeofday.c (localtime): Undefine.
22192         (rpl_localtime): New function.
22193
22194 2002-05-27  Jim Meyering  <meyering@lucent.com>
22195
22196         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
22197         localtime.
22198
22199         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
22200         use the replacement function; it wouldn't resolve at link time.
22201         Reported by Volker Borchert.
22202
22203 2002-05-22  Jim Meyering  <meyering@lucent.com>
22204
22205         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
22206         file-type.h.
22207         * lib/file-type.h: New file.
22208         * lib/file-type.c (file_type): New file/function.  Extracted from
22209         diffutils.
22210
22211 2002-04-30  Jim Meyering  <meyering@lucent.com>
22212
22213         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
22214
22215 2002-04-29  Paul Eggert  <eggert@twinsun.com>
22216
22217         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
22218
22219 2002-04-29  Paul Eggert  <eggert@twinsun.com>
22220
22221         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
22222         Do not check for alloca.h (no longer used) or stdbool.h (was never
22223         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
22224
22225 2002-04-29  Paul Eggert  <eggert@twinsun.com>
22226
22227         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
22228
22229 2002-04-29  Jim Meyering  <meyering@lucent.com>
22230
22231         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
22232         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
22233         Use AC_FUNC_STRNLEN here instead.
22234
22235         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
22236         With autoconf-2.53a, it's part of AC_PROG_CC.
22237
22238 2002-04-28  Paul Eggert  <eggert@twinsun.com>
22239
22240         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
22241         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
22242
22243 2002-04-28  Paul Eggert  <eggert@twinsun.com>
22244
22245         * lib/sig2str.h, lib/sig2str.c: New files.
22246         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
22247
22248 2002-04-28  Paul Eggert  <eggert@twinsun.com>
22249
22250         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
22251         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
22252         of 127, since 64 is the largest conceivable number for ancient
22253         nonstandard hosts.
22254         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
22255
22256 2002-04-28  Jim Meyering  <meyering@lucent.com>
22257
22258         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
22259
22260 2002-04-24  Jim Meyering  <meyering@lucent.com>
22261
22262         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
22263         (jm_PREREQ): Use it.
22264
22265         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
22266         mach/mach.h fcntl.h.
22267         Check for this function: setlocale.
22268
22269 2002-04-24  Jim Meyering  <meyering@lucent.com>
22270
22271         * lib/gettext.h: New file, from Gettext.
22272         * lib/Makefile.am (INCLUDES): Remove -I../intl.
22273         (libfetish_a_SOURCES): Add gettext.h.
22274
22275 2002-04-16  Jim Meyering  <meyering@lucent.com>
22276
22277         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
22278         ut_pid, ut_id, ut_exit.
22279
22280 2002-04-16  Jim Meyering  <meyering@lucent.com>
22281
22282         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
22283         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
22284         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
22285
22286 2002-04-12  Jim Meyering  <meyering@lucent.com>
22287
22288         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
22289         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
22290         existence of the getmntinfo function.  Needed for Darwin 5.3.
22291
22292         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
22293         This is necessary at least on Darwin 5.3.
22294
22295         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
22296         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
22297         strnlen.o in the library, and that makes some versions of ranlib
22298         object.
22299
22300 2002-04-12  Jim Meyering  <meyering@lucent.com>
22301
22302         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
22303
22304 2002-04-09  Jim Meyering  <meyering@lucent.com>
22305
22306         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
22307         to be more precise.  Rather than saying we're checking whether the
22308         function `works', say what we're testing.
22309         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
22310         Reported by Bruno Haible.
22311
22312 2002-03-10  Jim Meyering  <meyering@lucent.com>
22313
22314         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
22315         Suggestion from Santiago Vila.
22316
22317 2002-03-08  Jim Meyering  <meyering@lucent.com>
22318
22319         * lib/rename.c: Mention that this wrapper is needed also on
22320         mips-dec-ultrix4.4 systems.
22321
22322 2002-03-02  Jim Meyering  <meyering@lucent.com>
22323
22324         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
22325         not HAVE_CLOCK_SETTIME.
22326
22327 2002-02-27  Paul Eggert  <eggert@twinsun.com>
22328
22329         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
22330         Check for clock_settime.
22331
22332 2002-02-27  Paul Eggert  <eggert@twinsun.com>
22333
22334         * lib/nanosleep.h: Rename to....
22335         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
22336
22337         * lib/gettime.c: New file.
22338         * lib/settime.c: New file.
22339         * lib/stime.c: Remove.
22340
22341         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
22342         timespec.h.  Remove nanosleep.h.
22343
22344 2002-02-25  Paul Eggert  <eggert@twinsun.com>
22345
22346         * m4/acl.m4: New file.
22347         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
22348         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
22349
22350 2002-02-25  Paul Eggert  <eggert@twinsun.com>
22351
22352         * lib/acl.c, lib/acl.h: New files.
22353         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
22354
22355 2002-02-24  Jim Meyering  <meyering@lucent.com>
22356
22357         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
22358         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
22359         cause trouble.  Reported by Nelson Beebe.
22360
22361 2002-02-23  Paul Eggert  <eggert@twinsun.com>
22362
22363         * lib/path-concat.c (xpath_concat): Reorder code to pacify
22364         compilers that don't know that xalloc_die never returns.
22365
22366 2002-02-20  Jim Meyering  <meyering@lucent.com>
22367
22368         * lib/getdate.c: Regenerate using bison-1.33.
22369
22370 2002-02-17  Jim Meyering  <meyering@lucent.com>
22371
22372         * config/config.guess (main): Don't use `head -1'; it's no longer
22373         portable. Use `sed 1q' instead.
22374
22375 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
22376
22377         * m4/codeset.m4: Upgrade to gettext-0.11.
22378         * m4/gettext.m4: Upgrade to gettext-0.11.
22379         * m4/glibc21.m4: Upgrade to gettext-0.11.
22380         * m4/iconv.m4: Upgrade to gettext-0.11.
22381         * m4/isc-posix.m4: Upgrade to gettext-0.11.
22382         * m4/lcmessage.m4: Upgrade to gettext-0.11.
22383         * m4/lib-ld.m4: New file, from gettext-0.11.
22384         * m4/lib-link.m4: New file, from gettext-0.11.
22385         * m4/lib-prefix.m4: New file, from gettext-0.11.
22386         * m4/progtest.m4: Upgrade to gettext-0.11.
22387
22388 2002-02-15  Paul Eggert  <eggert@twinsun.com>
22389
22390         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
22391         (jm_PREREQ): Use it.
22392
22393 2002-02-15  Paul Eggert  <eggert@twinsun.com>
22394
22395         * lib/posixver.c, lib/posixver.h: New files.
22396         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
22397
22398 2002-02-02  Paul Eggert  <eggert@twinsun.com>
22399             Bruno Haible  <bruno@clisp.org>
22400
22401         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
22402         (fwrite_success_callback): New declaration.
22403         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
22404         print_unicode_char. Call failure callback instead of error.
22405         (fwrite_success_callback): New function.
22406         (exit_failure_callback): New function.
22407         (fallback_failure_callback): New function.
22408         (print_unicode_char): Call unicode_to_mb.
22409
22410 2002-01-26  Jim Meyering  <meyering@lucent.com>
22411
22412         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
22413         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
22414
22415 2002-01-26  Jim Meyering  <meyering@lucent.com>
22416
22417         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
22418
22419 2002-01-22  Paul Eggert  <eggert@twinsun.com>
22420
22421         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
22422
22423 2002-01-22  Jim Meyering  <meyering@lucent.com>
22424
22425         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
22426         Otherwise, some versions of automake would omit the rule that makes
22427         Makefile from Makefile.in.
22428
22429 2002-01-21  Paul Eggert  <eggert@twinsun.com>
22430
22431         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
22432         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
22433         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
22434         (memcoll): Set errno to zero if there is no error.
22435
22436         * lib/quotearg.c (quotearg_buffer_restyled):
22437         Fix bug with quoting buffers containing NUL when backslashing escapes.
22438         This bug was exposed by the other changes in this patch.
22439         (quotearg_n_options): New arg ARGSIZE.
22440         All callers changed.
22441         (quoting_options_from_style): New function.
22442         (quotearg_n_style): Use it.
22443         (quotearg_n_style_mem): New function.
22444
22445         * lib/quotearg.h (quotearg_n_style_mem): New function.
22446
22447 2002-01-19  Jim Meyering  <meyering@lucent.com>
22448
22449         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
22450         Remove useless quotes: DF_PROG="df".
22451         * m4/strnlen.m4: New file.
22452
22453 2002-01-16  Paul Eggert  <eggert@twinsun.com>
22454
22455         * lib/backupfile.c (ISDIGIT): Comment fix.
22456         * lib/getdate.y (ISDIGIT): Likewise.
22457         * lib/posixtm.c (ISDIGIT, year): Likewise.
22458         * lib/strverscmp.c (ISDIGIT): Likewise.
22459         * lib/userspec.c (ISDIGIT): Likewise.
22460
22461 2002-01-16  Jim Meyering  <meyering@lucent.com>
22462
22463         * lib/getdate.y: Add three semicolons, each just before a closing
22464         brace. Bison (as of version 1.31) no longer papers over that mistake.
22465
22466 2002-01-05  Jim Meyering  <meyering@lucent.com>
22467
22468         * lib/version-etc.c (version_etc_copyright): Update copyright year.
22469
22470 2001-12-19  Paul Eggert  <eggert@twinsun.com>
22471
22472         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
22473         not silently exit merely because the output buffer happens to
22474         have nothing pending.
22475
22476 2001-12-18  Paul Eggert  <eggert@twinsun.com>
22477
22478         See the big note in ../ChangeLog.
22479         * lib/human.c (suffixes): Prefer K to k for 1024.
22480         (generate_suffix_backwards): New function.
22481         (human_readable_inexact): Use it.
22482         * lib/xstrtol.c (__xstrtol): If there is no number but there
22483         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
22484         Accept 'K' as well as 'k'.
22485
22486 2001-12-15  Jim Meyering  <meyering@lucent.com>
22487
22488         * lib/regex.h (__restrict_arr): Update from libc.
22489
22490         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
22491         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
22492         (STREQ): Define.
22493
22494 2001-12-14  Jim Meyering  <meyering@lucent.com>
22495
22496         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
22497         Suggestion from Bruno Haible.
22498
22499 2001-12-10  Jim Meyering  <meyering@lucent.com>
22500
22501         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
22502         xrealloc, Instead, include "xalloc.h".
22503         (initbuffer): Don't cast xmalloc return value to char*.
22504         (readline): Reword comment.
22505         Don't cast xrealloc return value to char*
22506         Return NULL, not 0.
22507
22508 2001-12-09  Jim Meyering  <meyering@lucent.com>
22509
22510         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
22511         about `signed and unsigned type in conditional expression'.
22512         * lib/posixtm.c (posix_time_parse): Likewise.
22513
22514         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
22515
22516         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
22517         to avoid a pedantic warning.
22518
22519         * lib/getstr.c: Don't include assert.h.
22520         (getstr): Remove warning-evoking assertions.
22521         Return -1 if offset parameter is out of bounds.
22522         Change the type of a local from int to size_t.
22523
22524         * lib/strftime.c (my_strftime_localtime_r): Include this function
22525         definition in the `#if ! HAVE_TM_GMTOFF' block.
22526
22527         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
22528         Include xalloc.h instead.
22529
22530 2001-12-02  Jim Meyering  <meyering@lucent.com>
22531
22532         * lib/tempname.c: Don't declare getenv, thus reverting the change of
22533         2001-11-18.  It's no longer necessary, now that stdlib.h is always
22534         included.
22535
22536         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
22537         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
22538
22539 2001-11-30  Akim Demaille  <akim@epita.fr>
22540
22541         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
22542         before being defined.
22543
22544 2001-11-27  Paul Eggert  <eggert@twinsun.com>
22545
22546         * lib/quotearg.h (quotearg_n, quotearg_n_style):
22547         First arg is int, not unsigned.
22548         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
22549         (SIZE_MAX, UINT_MAX): New macros.
22550         (quotearg_n_options): Abort if N is negative.
22551         Avoid overflow check on hosts where size_t is 64 bits and int
22552         is 32 bits, as overflow is impossible there.
22553         Fix off-by-one typo that caused unnecessary reallocation.
22554
22555 2001-11-27  Jim Meyering  <meyering@lucent.com>
22556
22557         * lib/tempname.c: Merge with version from libc.
22558         * lib/regex.c: Likewise.
22559
22560         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
22561         systems for which STDC_HEADERS is 0, it was not included, resulting in
22562         a warning about an integer-to-pointer conversion problem with getenv.
22563         Reported by Volker Borchert.
22564
22565 2001-11-26  Jim Meyering  <meyering@lucent.com>
22566
22567         * lib/gtod.h: Remove file.
22568         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
22569         * lib/gettimeofday.c: Don't include gtod.h.
22570         (GTOD_init): Remove function.
22571         (rpl_gettimeofday): Do its job here instead, rather than aborting.
22572         Suggestion from Volker Borchert.
22573
22574 2001-11-23  Jim Meyering  <meyering@lucent.com>
22575
22576         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
22577         it.
22578         * lib/hash.c (struct hash_table): Define it here instead.
22579
22580 2001-11-22  Jim Meyering  <meyering@lucent.com>
22581
22582         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
22583
22584 2001-11-20  Jim Meyering  <meyering@lucent.com>
22585
22586         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
22587         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
22588
22589 2001-11-19  Jim Meyering  <meyering@lucent.com>
22590
22591         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
22592         directory.  Use "conftestXXXXXX" as the template.
22593         Suggestion from Paul Eggert.
22594
22595         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
22596         immediately, so the test doesn't mistakenly hit the max-open-files
22597         limit.
22598
22599 2001-11-18  Paul Eggert  <eggert@twinsun.com>
22600
22601         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
22602         (TEMPORARIES): New macro.
22603         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
22604         removes an artificial limitation (e.g. HP-UX 10.20, where
22605         TMP_MAX is 17576).
22606
22607 2001-11-18  Jim Meyering  <meyering@lucent.com>
22608
22609         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
22610
22611 2001-11-18  Jim Meyering  <meyering@lucent.com>
22612
22613         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
22614         on SunOS 4.
22615
22616         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
22617         files will be created before anything else.
22618
22619 2001-11-17  Paul Eggert  <eggert@twinsun.com>
22620
22621         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
22622         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
22623
22624 2001-11-17  Jim Meyering  <meyering@lucent.com>
22625
22626         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
22627         Prompted by a report from Bob Proulx.
22628
22629         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
22630         Instead, require UTILS_FUNC_MKSTEMP.
22631
22632 2001-11-17  Jim Meyering  <meyering@lucent.com>
22633
22634         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
22635         Now, that's done as part of AC_FUNC_STRTOD.
22636
22637 2001-11-17  Jim Meyering  <meyering@lucent.com>
22638
22639         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
22640         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
22641         rather than group writable.  Patch by Juan F. Codagnone.
22642
22643         * lib/readtokens.c: Remove explicit declarations of xmalloc and
22644         xrealloc, Instead, include "xalloc.h".
22645
22646         * lib/mountlist.c: Include unlocked-io.h after all system headers.
22647         Remove explicit declarations of xmalloc, xrealloc,
22648         and xstrdup.  Instead, include "xalloc.h".
22649
22650         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
22651         unlocked-io.h.
22652         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
22653         Likewise.
22654         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
22655
22656         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
22657         Reported by Padraig Brady.
22658
22659         * lib/mkstemp.c: #undef mkstemp.
22660         Include config.h.
22661         (rpl_mkstemp): Rename from mkstemp.
22662         Protoize.
22663
22664 2001-11-16  Jim Meyering  <meyering@lucent.com>
22665
22666         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
22667         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
22668         determine the amount of total physical memory, use pstat_getstatic.
22669         HPUX-11 doesn't define _SC_PHYS_PAGES.
22670         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
22671         If sysconf couldn't be used to determine the amount of available
22672         physical memory, use both pstat_getstatic and pstat_getdynamic.
22673         Based on a patch from Bob Proulx.
22674
22675 2001-11-10  Jim Meyering  <meyering@lucent.com>
22676
22677         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
22678         (jm_PREREQ): Use it.
22679
22680 2001-11-09  Jim Meyering  <meyering@lucent.com>
22681
22682         * m4/jm-macros.m4: Require autoconf-2.52f.
22683         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
22684         Use these AC_-prefixed names, not the AM_-prefixed ones.
22685
22686         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
22687
22688 2001-11-05  Jim Meyering  <meyering@lucent.com>
22689
22690         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
22691
22692 2001-11-04  Jim Meyering  <meyering@lucent.com>
22693
22694         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
22695         $DEFS.
22696
22697 2001-11-03  Jim Meyering  <meyering@lucent.com>
22698
22699         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
22700         of AC_DEFUN.
22701
22702         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
22703         know the name of the variable in the macro definition.
22704
22705 2001-11-03  Jim Meyering  <meyering@lucent.com>
22706
22707         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
22708         in argmatch_to_argument call.
22709
22710         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
22711         argument.
22712
22713         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
22714         e.g., a fault due to an attempt to free a NULL pointer.
22715
22716 2001-11-01  Jim Meyering  <meyering@lucent.com>
22717
22718         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
22719         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
22720
22721 2001-11-01  Jim Meyering  <meyering@lucent.com>
22722
22723         * lib/dirfd.c, lib/dirfd.h: New files.
22724         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
22725
22726         * lib/hash.c (hash_print) [TESTING]: Clean up.
22727
22728 2001-10-22  Paul Eggert  <eggert@twinsun.com>
22729
22730         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
22731         to avoid a warning if -Wall.
22732
22733 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
22734
22735         * README: New file
22736         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
22737         (per RMS's instructions, this is now the canonical source)
22738         * lgpl/, gpl/: New directories.
22739
22740 2001-10-21  Paul Eggert  <eggert@twinsun.com>
22741
22742         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
22743
22744 2001-10-21  Jim Meyering  <meyering@lucent.com>
22745
22746         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
22747         this code would end up calling gettext even in packages built
22748         with --disable-nls.
22749         * lib/getopt.c (_): Likewise.
22750         * lib/regex.c (_): Likewise.
22751
22752 2001-10-20  Paul Eggert  <eggert@twinsun.com>
22753
22754         * m4/error.m4 (jm_PREREQ_ERROR):
22755         Do not invoke AC_CHECK_FUNCS with strerror_r, as
22756         AC_FUNC_STRERROR_R does that.
22757         Check for strerror declaration.
22758
22759         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
22760         are supposed to have them these days.
22761         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
22762         Merge changes from latest Autoconf CVS.
22763         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
22764         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
22765         POSIX decided to standardize on the int flavor of strerror_r.
22766
22767 2001-10-20  Paul Eggert  <eggert@twinsun.com>
22768
22769         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
22770         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
22771         Use strerror_r that is only a macro, even if it is not a function.
22772         (strerror): Check for HAVE_DECL_STRERROR before declaring.
22773         (private_strerror): Use prototypes, not old-style function definition.
22774         (print_errno_message): New function.
22775         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
22776         char*-flavored one.
22777         (error_tail, error, error_at_line): Use it.
22778
22779 2001-10-11  Jim Meyering  <meyering@lucent.com>
22780
22781         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
22782         and quote_n (1, ... to avoid clobbering a buffer.
22783
22784 2001-10-05  Jim Meyering  <meyering@lucent.com>
22785
22786         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
22787         hash-pjw.h.
22788         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
22789         * lib/hash-pjw.h: New file.
22790
22791 2001-09-30  Jim Meyering  <meyering@lucent.com>
22792
22793         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
22794         `struct fsstat' has the `f_fstypename' member.
22795         Use that to define FS_TYPE, which is now used to make
22796         the getfsstat link test tighter.
22797
22798 2001-09-30  Jim Meyering  <meyering@lucent.com>
22799
22800         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
22801         Include <sys/ucred.h>, for Apple Darwin.
22802         Include sys/mount.h and sys/fs_types.h only if available.
22803         (FS_TYPE): Define.
22804         (read_filesystem_list): Use FS_TYPE.
22805
22806 2001-09-29  Paul Eggert  <eggert@twinsun.com>
22807
22808         * lib/exclude.c (excluded_filename): 0 -> false, since it's
22809         a boolean context.
22810
22811 2001-09-29  Jim Meyering  <meyering@lucent.com>
22812
22813         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
22814         [one-argument getmntent function]): Include stdio.h before mntent.h.
22815         SunOS 4.1.x needs it for the declaration of `FILE'.
22816         Patch by Volker Borchert.
22817
22818         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
22819         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
22820         sys/fs_types.h, and make the link-test for getfsstat guard #include
22821         directives with appropriate #if HAVE_*_H tests so that we can
22822         detect getfsstat on Apple Darwin1.3.7 systems.
22823         Reported by Nelson Beebe.
22824         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
22825
22826 2001-09-28  Paul Eggert  <eggert@twinsun.com>
22827
22828         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
22829         #defines strtoimax.  Also treat the other strto* functions
22830         like strtoimax.
22831
22832         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
22833         Check for strtoul and strtoumax,
22834         as those declarations are made even in the signed case.
22835         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
22836         Likewise, for strtol and strtoimax.
22837
22838 2001-09-28  Paul Eggert  <eggert@twinsun.com>
22839
22840         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
22841         #defines strtoimax.  Also treat the other strto* functions
22842         like strtoimax.
22843
22844         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
22845         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
22846         (strtoimax, strtoumax): Do not declare if already defined as a macro.
22847
22848 2001-09-26  Jim Meyering  <meyering@lucent.com>
22849
22850         Most macros in unlocked-io.h had the wrong number of arguments.
22851         * lib/gen-uio: New script.
22852         (USE_UNLOCKED_IO): Define to 1 if not already defined.
22853         * lib/unlocked-io.hin: Remove file.
22854         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
22855         rather than trying to embed it here.
22856         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
22857         Reported by Padraig Brady.
22858
22859 2001-09-25  Volker Borchert  <bt@teknon.de>
22860
22861         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
22862         `result'.
22863
22864 2001-09-24  Jim Meyering  <meyering@lucent.com>
22865
22866         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
22867
22868 2001-09-23  Jim Meyering  <meyering@lucent.com>
22869
22870         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
22871         instead of the mere test for existence of mntent.h.  The latter
22872         would get a false-positive on AIX 3.4 systems.
22873         In the outer getmntent if-block, don't die if neither of the getmntent
22874         tests succeeds.  Instead, just fall through and continue with the
22875         remaining tests.
22876
22877 2001-09-23  Jim Meyering  <meyering@lucent.com>
22878
22879         * lib/mountlist.c: Remove useless parentheses in #if directives.
22880         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
22881         the deprecated MOUNTED symbol is no longer defined in mntent.h.
22882
22883 2001-09-22  Jim Meyering  <meyering@lucent.com>
22884
22885         * m4/gettext.m4: New file.  From gettext.
22886         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
22887         * m4/progtest.m4: Likewise
22888         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
22889         * m4/glibc21.m4: Likewise.
22890
22891         * m4/libintl.m4: Remove.  No longer used.
22892
22893 2001-09-22  Jim Meyering  <meyering@lucent.com>
22894
22895         * lib/localcharset.c: Update from latest gettext.
22896         * lib/config.charset: Likewise.
22897
22898 2001-09-20  Jim Meyering  <meyering@lucent.com>
22899
22900         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
22901         strtoimax.
22902         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
22903         strtoumax.
22904
22905 2001-09-20  Jim Meyering  <meyering@lucent.com>
22906
22907         * lib/xstrtol.c (strtoimax): Guard declaration with
22908         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
22909         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
22910         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
22911         (strtoumax): Likewise, for completeness (it wasn't necessary).
22912
22913 2001-09-17  Paul Eggert  <eggert@twinsun.com>
22914
22915         * lib/strtoimax.c (HAVE_LONG_LONG):
22916         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
22917         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
22918         to work around bug in IBM C compiler.
22919
22920 2001-09-17  Jim Meyering  <meyering@lucent.com>
22921
22922         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
22923         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
22924         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
22925         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
22926         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
22927         whenever the right hand side need not be expanded by the shell.
22928
22929 2001-09-16  Paul Eggert  <eggert@twinsun.com>
22930
22931         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
22932         library.  It's not correct, as some older glibcs are buggy.
22933         fnmatch wasn't fixed until glibc 2.2.
22934
22935         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
22936         special shell magic here.
22937
22938 2001-09-16  Jim Meyering  <meyering@lucent.com>
22939
22940         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
22941         * m4/jm-macros.m4: Require it.
22942
22943 2001-09-16  Jim Meyering  <meyering@lucent.com>
22944
22945         * lib/mkdir.c: New file.
22946
22947 2001-09-15  Jim Meyering  <meyering@lucent.com>
22948
22949         * m4/jm-macros.m4: Check for help2man.
22950
22951 2001-09-11  Jim Meyering  <meyering@lucent.com>
22952
22953         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
22954         The body, by Paul Eggert, was moved here from configure.in.
22955         * m4/jm-macros.m4: Require UTILS_HOST_OS.
22956
22957 2001-09-04  Paul Eggert  <eggert@twinsun.com>
22958
22959         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
22960         (jm_PREREQ): Use it.
22961
22962 2001-09-04  Paul Eggert  <eggert@twinsun.com>
22963
22964         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
22965         Use ssize_t, not int, to store result of readlink.
22966         Check for ssize_t overflow as well as size_t overflow,
22967         as POSIX says the result of readlink is implementation-defined
22968         when ssize_t overflows.
22969         Remove unnecessary cast to char*.
22970         Use free+malloc instead of realloc, as the storage doesn't need
22971         to be preserved and it's clearer and can be more efficient that way.
22972         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
22973         * lib/xreadlink.h (xreadlink): Update prototype.
22974
22975 2001-09-04  Paul Eggert  <eggert@twinsun.com>
22976
22977         * lib/xgetcwd.c: Revert some of the previous change; intead,
22978         fix the HAVE_GETCWD_NULL code to behave more like the
22979         !HAVE_GETCWD_NULL code used to.
22980
22981         Include "xalloc.h".
22982         (xgetcwd): Do not return NULL when memory is exhausted; instead,
22983         invoke xalloc_die.
22984
22985 2001-09-03  Paul Eggert  <eggert@twinsun.com>
22986
22987         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
22988         sys/param.h, as pathmax.h includes them.
22989
22990 2001-09-03  Paul Eggert  <eggert@twinsun.com>
22991
22992         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
22993         (jm_PREREQ_XGETCWD): New macro.
22994
22995         * m4/getcwd.m4: New file.
22996
22997 2001-09-03  Paul Eggert  <eggert@twinsun.com>
22998
22999         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
23000         like the HAVE_GETCWD_NULL code.
23001         Include pathmax.h if not HAVE_GETCWD.
23002         Do not include xalloc.h.
23003         (INITIAL_BUFFER_SIZE): New symbol.
23004         Do not use xmalloc / xrealloc, since the caller is responsible for
23005         handling errors.  Preserve errno around `free' during failure.
23006         Do not overrun buffer when using getwd.
23007
23008 2001-09-03  Paul Eggert  <eggert@twinsun.com>
23009
23010         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
23011         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
23012         getcwd (NULL, 0).
23013
23014 2001-09-03  Paul Eggert  <eggert@twinsun.com>
23015
23016         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
23017         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
23018         spotted by Jim Meyering.
23019
23020 2001-09-03  Jim Meyering  <meyering@lucent.com>
23021
23022         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
23023         failure.
23024
23025 2001-09-02  Jim Meyering  <meyering@lucent.com>
23026
23027         * lib/error.c: Update from GNU libc.
23028
23029 2001-09-01  Jim Meyering  <meyering@lucent.com>
23030
23031         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
23032         Used by df.
23033
23034 2001-09-01  Jim Meyering  <meyering@lucent.com>
23035
23036         * lib/xreadlink.c: New file.
23037         * lib/xreadlink.h: New file.
23038         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
23039         xreadlink.h.
23040
23041         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
23042         doesn't conflict with sparc Solaris 7's definition in
23043         /usr/include/sys/int_types.h.
23044
23045         * lib/exclude.c: Use `""', not `<>' to #include non-system header
23046         files.
23047         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
23048         and strncasecmp as r-values.  Unixware didn't have declarations.
23049
23050 2001-08-31  Paul Eggert  <eggert@twinsun.com>
23051
23052         * lib/xstrtol.h: Add copyright notice.
23053         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
23054         LONGINT_INVALID_SUFFIX_CHAR.
23055
23056 2001-08-31  Paul Eggert  <eggert@twinsun.com>
23057
23058         * lib/xstrtol.c (strtoimax): New decl.
23059
23060 2001-08-31  Paul Eggert  <eggert@twinsun.com>
23061
23062         * lib/xgetcwd.c: Don't include pathmax.h.
23063         Include stdlib.h and unistd.h if available.
23064         Include xalloc.h.
23065         (xmalloc, xstrdup, free): Remove decls.
23066         (xgetcwd): Don't assume sizes fit in unsigned.
23067         Check for overflow when computing sizes.
23068         Simplify reallocation code.
23069
23070 2001-08-31  Paul Eggert  <eggert@twinsun.com>
23071
23072         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
23073         a directory's st_size can have an arbitrary value, so the old
23074         usage could waste an arbitrary amount of memory.  All uses
23075         changed.
23076         * lib/savedir.h: Update prototype.
23077
23078 2001-08-31  Paul Eggert  <eggert@twinsun.com>
23079
23080         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
23081
23082         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
23083         old strtoimax.c.
23084
23085         Also, make the following further changes to make this file's
23086         configuration more similar to that of strtol.c:
23087         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
23088         (strtoumax, uintmax_t, strtoull, strtol): Remove.
23089         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
23090         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
23091         changed to signed values.
23092
23093         And make the following changes as well:
23094         Fix copyright notice, as 1999 was missing.
23095         (verify): New macro.
23096         (strtoimax): Check sizes at compile-time, not run-time.
23097         Prefer strtol to strtoll if both work.
23098         (main): Remove; it was not that useful and was a pain to maintain.
23099
23100         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
23101
23102 2001-08-31  Jim Meyering  <meyering@lucent.com>
23103
23104         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
23105         Use an initial, malloc'd, buffer of length 128 rather than
23106         a statically allocated one of length 1024.
23107
23108 2001-08-30  Paul Eggert  <eggert@twinsun.com>
23109
23110         Simplify code, partly by assuming autoconf 2.52 semantics.
23111
23112         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
23113
23114         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
23115         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
23116         All uses removed.
23117         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
23118         Move AC_REQUIRE to next-to-top level, to avoid confusion.
23119         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
23120         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
23121         jm_AC_HEADER_INTTYPES_H.
23122         * m4/jm-macros.m4 (jm_MACROS): Likewise.
23123
23124         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
23125
23126         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
23127         Quote first arg of AC_DEFUN.
23128         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
23129         since they are needed to parse the include file even if we need
23130         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
23131         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
23132         but with opposite signedness.
23133
23134 2001-08-30  Paul Eggert  <eggert@twinsun.com>
23135
23136         Merge 'exclude' changes from tar 1.13.22.
23137         This fixes one or two unlikely storage allocation overflow bugs,
23138         but doesn't change user-visible behavior otherwise.
23139
23140 2001-08-30  Paul Eggert  <eggert@twinsun.com>
23141
23142         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
23143         (jm_PREREQ_EXCLUDE): New macro.
23144
23145 2001-08-30  Paul Eggert  <eggert@twinsun.com>
23146
23147         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
23148         tm to be declared.
23149
23150 2001-08-30  Paul Eggert  <eggert@twinsun.com>
23151
23152         * lib/hash.c: Remove '2001' from copyright notice.
23153
23154 2001-08-30  Paul Eggert  <eggert@twinsun.com>
23155
23156         * lib/full-write.h: New file.
23157         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
23158         * lib/full-write.c: Correct credits, as cccp.c no longer
23159         exists and anyway it was so heavily changed from the old cccp
23160         code as to be unrecognizable.  Include full-write.h.
23161         (full_write) Return size_t, with short writes meaning failure.
23162         All callers changed.  This fixes a bug with large buffers
23163         on 64-bit hosts.
23164         * lib/utime.c: Include full-write.h.
23165
23166 2001-08-30  Paul Eggert  <eggert@twinsun.com>
23167
23168         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
23169         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
23170         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
23171         Include if available.
23172         (<xalloc.h>): Include
23173         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
23174         (verify): New macro.  Use it to verify that EXCLUDE macros do not
23175         collide with FNM macros.
23176         (struct patopts): New struct.
23177         (struct exclude): Use it, as exclude patterns now come with options.
23178         (new_exclude): Support above changes.
23179         (new_exclude, add_exclude_file):
23180         Initial size must now be a power of two to simplify overflow checking.
23181         (free_exclude, fnmatch_no_wildcards): New function.
23182         (excluded_filename): No longer requires options arg, as the options
23183         are determined by add_exclude.  Now returns bool, not int.
23184         (excluded_filename, add_exclude):
23185         Add support for the fancy new exclusion options.
23186         (add_exclude, add_exclude_file): Now takes int options arg.
23187         Check for arithmetic overflow when computing sizes.
23188         (add_exclude_file): xrealloc might modify errno, so don't
23189         realloc until after errno might be used.
23190
23191         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
23192         New macros.
23193         (free_exclude): New decl.
23194         (add_exclude, add_exclude_file): Now takes int options arg.
23195         (excluded_filename): No longer requires options arg, as the options
23196         are determined by add_exclude.  Now returns bool, not int.
23197
23198 2001-08-30  Paul Eggert  <eggert@twinsun.com>
23199
23200         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
23201
23202 2001-08-27  Jim Meyering  <meyering@lucent.com>
23203
23204         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
23205
23206         * lib/version-etc.c (N_): Remove definition.
23207         Revert most of last change.
23208         Instead, simply don't mark the `Copyright...' string for translation.
23209         Based on advice from Paul Eggert.
23210
23211         * lib/strtoxmax.c: Tweak comment.
23212
23213 2001-08-26  Jim Meyering  <meyering@lucent.com>
23214
23215         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
23216
23217         * m4/xstrtoimax.m4: New file.
23218         * m4/xstrtoumax.m4: Add comments explaining why we
23219         AC_REPLACE_FUNCS(strtol).
23220
23221 2001-08-26  Jim Meyering  <meyering@lucent.com>
23222
23223         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
23224         of copyright with `%s' so translators don't get an untranslated
23225         message in 2002.
23226         (COPYRIGHT_YEAR): Define.
23227         (version_etc): Use fprintf rather than fputs.
23228         Suggestion from Ulrich Drepper.
23229
23230         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
23231
23232         * lib/strtoll.c: New file, from GNU libc.
23233         * lib/xstrtoimax.c: New file.
23234
23235         * lib/xstrtol.h: Add xstrtoimax.
23236         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
23237         * lib/strtoimax.c: New file.  Likewise, but first define
23238         STRTOUXMAX_SIGNED.
23239
23240         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
23241         ...
23242         * lib/strtoxmax.c: ... then renamed to this.
23243
23244 2001-08-18  Paul Eggert  <eggert@twinsun.com>
23245
23246         * m4/inttypes.m4: Add AC_PREREQ(2.13).
23247         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
23248         (jm_AC_TYPE_INTMAX_T): New macro.
23249         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
23250
23251         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
23252
23253         * m4/longlong.m4: Renamed from ulonglong.m4.
23254         * m4/inttypes.m4: Renamed from inttypes_h.m4.
23255         * m4/uintmax_t.m4: Removed.
23256
23257 2001-08-13  Paul Eggert  <eggert@twinsun.com>
23258
23259         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
23260         Port to Solaris 8, where 'sed' requires a space after the 'r'
23261         command, and where sh dislikes "$/".  Clean up the spacing a bit.
23262         Redirect output to $tmp just once.
23263
23264 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
23265
23266         * lib/addext.c (<errno.h>): Include.
23267         (errno): Declare if not defined.
23268         (addext): Work correctly when pathconf returns -1 and leaves
23269         errno alone because there is no limit.  Also, work even if
23270         pathconf returns a value greater than SIZE_MAX.
23271
23272 2001-08-12  Jim Meyering  <meyering@lucent.com>
23273
23274         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
23275         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
23276         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
23277         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
23278         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
23279         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
23280         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
23281         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
23282         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
23283         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
23284         utime.m4, utimes.m4, xstrtoumax.m4:
23285         Quote the first argument in each use of AC_DEFUN.
23286
23287 2001-08-12  Jim Meyering  <meyering@lucent.com>
23288
23289         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
23290         Simply `return getcwd (NULL, 0);'.
23291         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
23292         Use 1300 as initial value for length, not PATH_MAX.
23293
23294         * lib/pathmax.h: Clean up cpp syntax.
23295
23296 2001-08-12  Jim Meyering  <meyering@lucent.com>
23297
23298         * lib/gettimeofday.c: New file.
23299         * lib/gtod.h: New file.
23300         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
23301
23302 2001-08-05  Jim Meyering  <meyering@lucent.com>
23303
23304         * m4/jm-macros.m4: Require autoconf-2.52.
23305
23306 2001-08-04  Jim Meyering  <meyering@lucent.com>
23307
23308         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
23309         stmt, to get in sync with glibc.
23310
23311 2001-08-03  Paul Eggert  <eggert@twinsun.com>
23312
23313         The following changes are from gettext 0.10.39 as maintained by
23314         Bruno Haible.
23315
23316         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
23317         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
23318         with inverted sense.  All uses changed.
23319
23320         * lib/mbswidth.c: Don't include <limits.h>.
23321         Include <stdlib.h> and <string.h> unconditionally.
23322         (iswcntrl, mbsinit, ISCNTRL): New macros.
23323         (mbsnwidth): Use K&R style function declarations.
23324         Don't bother checking for MB_LEN_MAX == 1, since the compiler
23325         can optimize it when MB_CUR_MAX == 1.
23326         The width of control characters is zero, not 1.
23327
23328 2001-08-03  Paul Eggert  <eggert@twinsun.com>
23329
23330         The following changes are from gettext 0.10.39 as maintained by
23331         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
23332
23333         * m4/codeset.m4: Upgrade to serial AM1.
23334         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
23335         all uses changed.  Quote first arg of AC_DEFUN.
23336         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
23337
23338         * m4/iconv.m4: Upgrade to serial AM2.
23339         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
23340         Add --with-libconv-prefix.
23341         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
23342         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
23343         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
23344         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
23345         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
23346
23347         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
23348         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
23349         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
23350         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
23351         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
23352         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
23353         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
23354         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
23355         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
23356
23357         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
23358         string.h any more.
23359
23360         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
23361         not the default value.
23362
23363         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
23364         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
23365         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
23366         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
23367         Also check for iswcntrl, used for wcwidth fallback.
23368         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
23369         to Autoconf 2.13.
23370
23371 2001-08-03  Jim Meyering  <meyering@lucent.com>
23372
23373         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
23374         as it was in the original.  Reported by Paul Eggert.
23375
23376 2001-07-16  Jim Meyering  <meyering@lucent.com>
23377
23378         * m4/gettimeofday.m4: New file.
23379         Prompted by a report from Bernhard Baehr.
23380
23381 2001-07-15  Jim Meyering  <meyering@lucent.com>
23382
23383         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
23384         stuff. Now it's in ../Makefile.cfg.
23385
23386 2001-07-15  Jim Meyering  <meyering@lucent.com>
23387
23388         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
23389         (BUILT_SOURCES): Add unlocked-io.h.
23390         (io_functions): Define.
23391         (unlocked-io.h): New rule.
23392         (DISTCLEANFILES): Add unlocked-io.h.
23393         (all-local): Depend on unlocked-io.h, to ensure it is created.
23394
23395         * lib/unlocked-io.hin: New file
23396
23397         * lib/regex.c: Update from glibc.
23398
23399 2001-07-05  Jim Meyering  <meyering@lucent.com>
23400
23401         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
23402         recommendation.
23403         (libfetish_a_SOURCES): Put all .h files here instead.
23404         Remove a thus-exposed (better checks in automake) duplicate and
23405         two unnecessary .h files.
23406
23407 2001-07-04  Jim Meyering  <meyering@lucent.com>
23408
23409         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
23410         that generates jm-glibc-io.m4 so that it doesn't trigger any make
23411         distcheck failure.
23412
23413 2001-07-02  Jim Meyering  <meyering@lucent.com>
23414
23415         The following changes were prompted by suggestions from Bruno Haible.
23416
23417         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
23418         is now generated.
23419         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
23420         definition of EXTRA_DIST.
23421         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
23422         ensure that the generated file is created/updated whenever the list
23423         of $(unlocked_functions) is changed.
23424         (jm-glibc-io.m4): New rule.
23425         (unlocked-io.h): New rule -- currently unused.
23426
23427 2001-06-24  Jim Meyering  <meyering@lucent.com>
23428
23429         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
23430         unmatched right bracket, rather than kludging it with an extra,
23431         falsely-matching quote in a comment.  Patch by Akim Demaille.
23432
23433 2001-06-11  Jim Meyering  <meyering@lucent.com>
23434
23435         * lib/regex.c: Update from GNU libc.
23436
23437 2001-05-27  Jim Meyering  <meyering@lucent.com>
23438
23439         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
23440         Check for ut_type in struct utmp.
23441
23442 2001-05-27  Jim Meyering  <meyering@lucent.com>
23443
23444         * lib/readutmp.h (UT_TYPE): Define.
23445
23446 2001-05-24  Jim Meyering  <meyering@lucent.com>
23447
23448         * lib/argmatch.c: Include "quote.h".
23449         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
23450         quote function.  Reported by Göran Uddeborg.
23451
23452 2001-05-22  Jim Meyering  <meyering@lucent.com>
23453
23454         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
23455         now that we use the package-supplied version unconditionally.
23456         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
23457
23458 2001-05-21  Jim Meyering  <meyering@lucent.com>
23459
23460         * m4/regex.m4: Change a couple backticks to single quotes to avoid
23461         shell syntax errors.
23462
23463 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
23464
23465         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
23466
23467 2001-05-20  Paul Eggert  <eggert@twinsun.com>
23468
23469         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
23470         Don't bother to check library strftime, since
23471         we'll be using our own my_strftime function anyway.
23472         Define my_strftime instead of strftime.
23473
23474 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
23475
23476         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
23477         which is not yet declared.
23478
23479 2001-05-15  Jim Meyering  <meyering@lucent.com>
23480
23481         * m4/regex.m4: Use proper quoting so brackets appear in the test
23482         program.
23483         Reported by, and with help from, Bruno Haible.
23484
23485 2001-05-13  Jim Meyering  <meyering@lucent.com>
23486
23487         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
23488         undefined.
23489
23490 2001-05-11  Paul Eggert  <eggert@twinsun.com>
23491
23492         dirname code cleanup.  base_name now behaves more compatibly
23493         with POSIX basename when given file names that have trailing
23494         slashes, and similarly for dir_name.  Add new primitives
23495         base_len and dir_len.  Put the directory-name-related decls
23496         into dirname.h.
23497
23498         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
23499         * lib/backupfile.c (base_name): Likewise.
23500         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
23501         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
23502         * lib/makepath.c (strip_trailing_slashes): Likewise.
23503         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
23504         ISSLASH): Likewise.
23505         * lib/rename.c (strip_trailing_slashes): Likewise.
23506         * lib/same.c (base_name): Likewise.
23507         * lib/stripslash.c (ISSLASH): Likewise.
23508
23509         * lib/addext.c: Include <dirname.h> after size_t is defined.
23510         * lib/backupfile.c: Likewise.
23511
23512         * lib/addext.c (addext): Use base_len to trim redundant
23513         trailing slashes instead of doing it ourselves.
23514         But do not trim the last slash if it is not redundant.
23515
23516         * lib/backupfile.c (find_backup_file_name,
23517         max_backup_version): Use base_len instead of rolling it ourselves.
23518         Handle the case of "" and (on DOS) "C:" correctly.
23519
23520         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
23521         needed. Include <string.h>, <dirname.h>.
23522         (base_name): Allow file names ending in slashes, other than names
23523         that are all slashes.  In this case, return the basename followed
23524         by the slashes.  This is more general, and can be used in places
23525         where the original base_name purposely had an assertion failure.
23526         (base_len): New function.
23527
23528         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
23529         Do not include <assert.h>; no longer needed.
23530         Include xalloc.h.
23531         (memrchr): Remove decl.
23532         (dir_name_r): Remove.
23533         (dir_len): Renamed from dirlen.  All callers changed.
23534         Rewrite in terms of base_name, for simplicity and consistency.
23535         (dir_name): Never return NULL.  All callers changed.
23536         Do not include <stdlib.h> in test program; no longer needed.
23537         return 0; is fine for test program.
23538
23539         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
23540         New macros.
23541         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
23542
23543         * lib/path-concat.c (path_concat): Use base_len to compute
23544         base length, not strlen; this means we cannot rely on memcpy
23545         to null-terminate.
23546
23547         * lib/same.c (STREQ): Remove.
23548         (same_name): Handle the case where the basename ends in trailing '/'.
23549
23550         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
23551         a slash was stripped.  Do not strip the last slash after a
23552         file system prefix.
23553
23554 2001-05-11  Paul Eggert  <eggert@twinsun.com>
23555
23556         * lib/Makefile.am (libfetish_a_SOURCES):
23557         Add strftime.c, since we now compile it on all hosts.
23558
23559         * lib/strftime.c (my_strftime):
23560         Define to nstrftime if emacs, but only if my_strftime is not defined.
23561         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
23562         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
23563         Add one more extra argument: a nanoseconds value.
23564         All uses changed.
23565         (ns): New macro.
23566         (my_strftime function): Add %N format.
23567         (emacs_strftimeu): Renamed from emacs_strftime,
23568         with extra ut argument.
23569
23570 2001-05-09  Paul Eggert  <eggert@twinsun.com>
23571
23572         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
23573
23574 2001-04-21  Jim Meyering  <meyering@lucent.com>
23575
23576         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
23577         doesn't interfere.
23578
23579 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
23580
23581         * m4/ftruncate.m4: Check for chsize.
23582         Link with ftruncate.o unconditionally if ftruncate is missing.
23583         This was required when cross-compiling to i586-mingw32msvc.
23584
23585 2001-04-08  Jim Meyering  <meyering@lucent.com>
23586
23587         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
23588         recomputed; that's necessary when the offset spans a DST transition.
23589         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
23590
23591 2001-04-02  Jim Meyering  <meyering@lucent.com>
23592
23593         * lib/regex.h, regex.c: Update from GNU libc.
23594
23595 2001-03-24  Jim Meyering  <meyering@lucent.com>
23596
23597         * m4/jm-macros.m4: Require autoconf-2.49d.
23598
23599 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
23600
23601         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
23602
23603 2001-03-19  Paul Eggert  <eggert@twinsun.com>
23604
23605         * lib/version-etc.c (version_etc_copyright): Update to 2001.
23606
23607 2001-03-17  Jim Meyering  <meyering@lucent.com>
23608
23609         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
23610         now that the version in autoconf is equivalent.
23611         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
23612
23613         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
23614         Suggestion from Akim Demaille.
23615
23616         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
23617         (jm_PREREQ_TEMPNAME): New function.
23618
23619 2001-03-16  Paul Eggert  <eggert@twinsun.com>
23620
23621         * lib/tempname.c (uint64_t): Define to uintmax_t if
23622         not defined, and if UINT64_MAX is not defined.
23623         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
23624         Reported by John David Anglin.
23625
23626 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
23627
23628         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
23629         resolve alias if codeset is empty.
23630         * lib/config.charset (BeOS): Use wildcard syntax.
23631
23632 2001-03-13  Jim Meyering  <meyering@lucent.com>
23633
23634         * lib/path-concat.c (path_concat)
23635         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
23636         concatenating e.g., `C:' and `foo'.
23637         From Bruno Haible.
23638
23639 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
23640
23641         * lib/localcharset.c (locale_charset): Don't use
23642         setlocale(LC_CTYPE,NULL). Don't return NULL.
23643         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
23644
23645 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
23646
23647         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
23648         support for DOS/DJGPP.
23649
23650 2001-03-01  Paul Eggert  <eggert@twinsun.com>
23651
23652         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
23653         lacks mkstemp.  Compile our own tempname.c if we compile our own
23654         mkstemp.c, as mkstemp relies on tempname.
23655
23656 2001-03-01  Jim Meyering  <meyering@lucent.com>
23657
23658         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
23659         AH_VERBATIM really does output its argument verbatim.
23660
23661 2001-02-28  Paul Eggert  <eggert@twinsun.com>
23662
23663         * lib/Makefile.am (libfetish_a_SOURCES):
23664         Add dup-safer.c, fopen-safer.c.
23665         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
23666
23667         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
23668         * lib/unistd-safer.h: New files.
23669
23670 2001-02-25  Paul Eggert  <eggert@twinsun.com>
23671
23672         The mkstemp replacement is taken from glibc 2.2.2, with some
23673         portability fixes for use outside glibc, as follows:
23674
23675         * lib/tempname.c (struct_stat64): New macro.
23676         (direxists, __gen_tempname): Use it.
23677         This avoids a portability problem with Solaris 8.
23678
23679         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
23680         (<stddef.h>, <stdint.h>, <string.h>):
23681         Include only if STDC_HEADERS || _LIBC.
23682         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
23683         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
23684         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
23685         (__set_errno): Define this macro if <errno.h> doesn't.
23686         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
23687         Define these macros if <stdio.h> doesn't.
23688         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
23689         Define these macros if <sys/stat.h>
23690         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
23691         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
23692         __xstat64): Define if not _LIBC.
23693         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
23694         (__gen_tempname): Invoke gettimeofday only if
23695         HAVE_GETTIMEOFDAY || _LIBC;
23696         otherwise, fall back on plain "time".
23697         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
23698
23699         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
23700
23701         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
23702
23703 2001-02-18  Paul Eggert  <eggert@twinsun.com>
23704
23705         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
23706
23707 2001-02-17  Paul Eggert  <eggert@twinsun.com>
23708
23709         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
23710         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
23711         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
23712         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
23713
23714 2001-02-17  Paul Eggert  <eggert@twinsun.com>
23715
23716         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
23717         Remove workaround macros for hosts that have mbrtowc but not
23718         mbstate_t, as we now insist on proper declarations for both
23719         before using mbrtowc.
23720
23721 2001-02-17  Jim Meyering  <meyering@lucent.com>
23722
23723         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
23724         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
23725         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
23726         UnixWare 7.1.1.
23727
23728         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
23729         rather than AC_CACHE_VAL.
23730
23731 2001-02-17  Jim Meyering  <meyering@lucent.com>
23732
23733         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
23734         around included file name.
23735
23736         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
23737
23738         * lib/strftime.c: Update from GNU libc (the only changes were to
23739         comments).
23740
23741 2001-02-17  Jim Meyering  <meyering@lucent.com>
23742
23743         * lib/regex.c: Update from libc.
23744
23745 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
23746
23747         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
23748         clash.
23749
23750 2001-02-16  Paul Eggert  <eggert@twinsun.com>
23751
23752         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
23753         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
23754         Reported by Mark Hounschell via Paul Eggert.
23755
23756 2001-02-07  Jim Meyering  <meyering@lucent.com>
23757
23758         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
23759
23760 2001-02-05  Jim Meyering  <meyering@lucent.com>
23761
23762         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
23763         it includes the patch required for `large file' support with at least
23764         HP-UX's 10.20 /bin/cc.
23765
23766 2001-02-03  Jim Meyering  <meyering@lucent.com>
23767
23768         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
23769         AS_IF, now that it works once again (mysteriously).
23770         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
23771
23772 2001-01-30  Jim Meyering  <meyering@lucent.com>
23773
23774         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
23775         * m4/chown.m4: Rename conftestchown to conftest.chown.
23776         * m4/rename.m4: s/conftestdir/conftest.d1/ and
23777         s/conftestdir2/conftest.d2/.
23778         * m4/utimes.m4: s/conftestdata/conftest.data/
23779         Inspired by Pavel Roskin's change in autoconf.
23780
23781 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
23782
23783         * lib/config.charset: Update for FreeBSD 4.2.
23784
23785 2001-01-27  Jim Meyering  <meyering@lucent.com>
23786
23787         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
23788         a use of AS_IF.
23789         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
23790
23791 2001-01-26  Jim Meyering  <meyering@lucent.com>
23792
23793         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
23794         quotearg.c includes it.
23795
23796 2001-01-26  Jim Meyering  <meyering@lucent.com>
23797
23798         * lib/quotearg.c: Include stddef.h.
23799         * lib/quote.c: Include stddef.h.
23800         Reported by Axel Kittenberger.
23801
23802         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
23803         line in double quotes so that it evokes a better diagnostic.
23804         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
23805         Reported by Axel Kittenberger.
23806
23807 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
23808
23809         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
23810         as if it was a `charset'.
23811
23812 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
23813
23814         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
23815         has const.
23816
23817 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
23818
23819         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
23820         to avoid a warning.  Add back 'const' to inptr.
23821
23822 2001-01-20  Jim Meyering  <meyering@lucent.com>
23823
23824         Be sure that headers are checked before used in code compiled
23825         for the type checks.
23826         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
23827         In place of that, invoke jm_CHECK_ALL_TYPES.
23828         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
23829         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
23830         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
23831         The check for ssize_t was mistakenly run before the test for unistd.h.
23832
23833         The configure-time check for stdbool.h was missing.
23834         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
23835         (jm_PREREQ_HASH): New function.
23836
23837 2001-01-17  Jim Meyering  <meyering@lucent.com>
23838
23839         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
23840         for autoconf-2.49c.
23841         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
23842
23843 2001-01-16  Jim Meyering  <meyering@lucent.com>
23844
23845         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
23846         From Bruno Haible.
23847
23848 2001-01-14  Jim Meyering  <meyering@lucent.com>
23849
23850         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
23851         foo and bar.  Create conftestdir/ in the script, not in the C code.
23852         Remove directories in the script, not in the C code.
23853         Remove conftestdir{,2} before trying to create the directory.
23854         Make the entire configure script fail if the mkdir fails.
23855
23856 2001-01-14  Jim Meyering  <meyering@lucent.com>
23857
23858         * lib/rename.c: New file.  From Volker Borchert.
23859         Include stdlib.h, string.h or strings.h, and xalloc.h.
23860         Use strip_trailing_slashes rather than open-coding it.
23861
23862 2001-01-03  Paul Eggert  <eggert@twinsun.com>
23863
23864         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
23865
23866 2001-01-03  Jim Meyering  <meyering@lucent.com>
23867
23868         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
23869         of local `inptr' to avoid warning with some system declarations of
23870         iconv.
23871
23872 2001-01-02  Volker Borchert  <bt@teknon.de>
23873
23874         * m4/rename.m4: New file.
23875         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
23876
23877 2001-01-01  Jim Meyering  <meyering@lucent.com>
23878
23879         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
23880         even on systems with utmpx.h.  It's necessary for the declaration of
23881         utmp's ut_user member.  Reported by Andreas Jaeger.
23882
23883         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
23884         available. They are required for the declarations of getgrgid and
23885         getpwuid resp.
23886         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
23887         Reported by Andreas Jaeger.
23888
23889 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
23890
23891         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
23892         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
23893         so `make install' also works in VPATH builds.
23894
23895 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
23896
23897         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
23898         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
23899         can be used in subdirectories.
23900
23901 2000-12-29  Paul Eggert  <eggert@twinsun.com>
23902
23903         * lib/modechange.c: Do not assume that mode_t uses the
23904         traditional octal encoding.  E.g. "chmod 1 FOO" should set
23905         the other-execute bit of FOO even if S_IXOTH != 1.
23906
23907         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
23908         WOTH, XOTH, ALLM): New macros.
23909         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
23910          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
23911         Use them.
23912         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
23913         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
23914         (mode_compile):
23915         No need to use uintmax_t; unsigned long is long enough.
23916         Don't bother to get suffix since we don't use it.
23917
23918 2000-12-26  Jim Meyering  <meyering@lucent.com>
23919
23920         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
23921         better with autoheader.
23922
23923 2000-12-24  Jim Meyering  <meyering@lucent.com>
23924
23925         * lib/hash.c (is_prime): Return explicit boolean values.
23926         (hash_get_first): Return NULL to appease Irix5.6's 89.
23927         Reported by Nelson Beebe.
23928
23929 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
23930
23931         * lib/localcharset.c (locale_charset): Add support for Win32.
23932
23933 2000-12-18  Paul Eggert  <eggert@twinsun.com>
23934
23935         * lib/physmem.h, lib/physmem.c: New files.
23936
23937         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
23938         (noinst_HEADERS): Add physmem.h.
23939
23940         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
23941         't' for compatibility with Solaris 8 sort.
23942
23943 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
23944
23945         * lib/config.charset: Add support for BeOS.
23946
23947 2000-12-17  Jim Meyering  <meyering@lucent.com>
23948
23949         * m4/dos.m4 (jm_AC_DOS): New file and macro.
23950         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
23951
23952 2000-12-16  Jim Meyering  <meyering@lucent.com>
23953
23954         This bug had a serious impact on chown: `chown N:M FILE' (for integer
23955         N and M) would have treated it like `chown N:N FILE'.
23956
23957         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
23958
23959 2000-12-16  Jim Meyering  <meyering@lucent.com>
23960
23961         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
23962         SHELLS_FILE to a file name that's useful on djgpp systems.
23963         Include stdlib.h.
23964         (ADDITIONAL_DEFAULT_SHELLS): Define.
23965         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
23966         Based mostly on a patch from Prashant TR.
23967
23968 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
23969
23970         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
23971         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
23972         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
23973
23974 2000-12-08  Andreas Schwab  <schwab@suse.de>
23975
23976         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
23977         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
23978
23979 2000-12-07  Jim Meyering  <meyering@lucent.com>
23980
23981         * lib/stripslash.c (ISSLASH): Define.
23982         (strip_trailing_slashes): Use ISSLASH rather than comparing against
23983         `/'.
23984         From Prashant TR.
23985
23986         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
23987         (dir_name_r): Declare this function as static.
23988         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
23989         manifest itself on a name containing a mix of slashes and
23990         backslashes.
23991         Make this function work with names starting with a DOS-style
23992         drive letter and colon prefix.
23993         (dir_name): Append `.' if necessary.
23994         Based mostly on patches from Prashant TR and Eli Zaretskii.
23995
23996         * lib/dirname.h (dir_name_r): Remove prototype.
23997
23998 2000-12-06  Paul Eggert  <eggert@twinsun.com>
23999
24000         * m4/off_t-format.m4: Remove this file.
24001         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
24002
24003 2000-12-06  Jim Meyering  <meyering@lucent.com>
24004
24005         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
24006         replacement strtoull, we may well need the replacement strtoul, too.
24007         Check for declarations of strtoul and strtoull.
24008         Check for strtol.  Mainly as a cue to cause automake to include
24009         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
24010         Check for limits.h -- strtol.c needs it.
24011
24012 2000-12-05  Jim Meyering  <meyering@lucent.com>
24013
24014         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
24015
24016 2000-12-04  Jim Meyering  <meyering@lucent.com>
24017
24018         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
24019         Also include memory.h, stdlib.h, unistd.h if appropriate.
24020         Reported by Andreas Jaeger (conflicting declaration of malloc).
24021
24022 2000-12-02  Jim Meyering  <meyering@lucent.com>
24023
24024         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
24025         * m4/jm-macros.m4 (jm_MACROS): require it.
24026
24027 2000-12-02  Jim Meyering  <meyering@lucent.com>
24028
24029         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
24030
24031 2000-12-01  Paul Eggert  <eggert@twinsun.com>
24032
24033         * lib/memrchr.c: Include <config.h> before any system include file.
24034
24035 2000-11-30  Jim Meyering  <meyering@lucent.com>
24036
24037         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
24038
24039 2000-11-30  Jim Meyering  <meyering@lucent.com>
24040
24041         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
24042
24043 2000-11-29  Paul Eggert  <eggert@twinsun.com>
24044
24045         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
24046
24047 2000-11-26  Jim Meyering  <meyering@lucent.com>
24048
24049         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
24050
24051 2000-11-22  Paul Eggert  <eggert@twinsun.com>
24052
24053         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
24054         size of (size_t) -1; it's not portable.
24055
24056 2000-11-17  Jim Meyering  <meyering@lucent.com>
24057
24058         * lib/strstr.c: Update from GNU libc.
24059
24060 2000-11-17  Akim Demaille  <akim@epita.fr>
24061
24062         * lib/obstack.h: Formatting changes.
24063         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
24064         prevent type checking.
24065         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
24066         cast the value to (void *): assigning a `foo *' to a `void *'
24067         variable is valid.
24068         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
24069
24070 2000-11-16  Jim Meyering  <meyering@lucent.com>
24071
24072         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
24073
24074 2000-11-11  Jim Meyering  <meyering@lucent.com>
24075
24076         * lib/error.c: Add a couple #includes, merging from GNU libc version.
24077
24078 2000-11-10  Jim Meyering  <meyering@lucent.com>
24079
24080         * lib/obstack.h: Update from GNU libc.
24081         * lib/obstack.c: Likewise.
24082
24083 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
24084
24085         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
24086
24087 2000-11-06  Paul Eggert  <eggert@twinsun.com>
24088
24089         * lib/getusershell.c (setusershell): Use rewind rather than
24090         fseek/fseeko, to avoid configuration hassles with fseeko.
24091         Don't bother opening SHELLS_FILE if shellstream is NULL;
24092         it's not necessary.
24093
24094 2000-11-05  Jim Meyering  <meyering@lucent.com>
24095
24096         * lib/makepath.h (make_dir): Declare.
24097         * lib/makepath.c (make_dir): Remove `static' attribute.
24098         Tweak a comment.
24099
24100 2000-11-04  Jim Meyering  <meyering@lucent.com>
24101
24102         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
24103
24104 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
24105
24106         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
24107         last one in a bucket, advance to the next bucket.
24108
24109 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
24110
24111         * lib/fnmatch.c: Do not comment out all the code if we are using
24112         the GNU C library, because in some cases we are replacing buggy
24113         code in the GNU C library itself.
24114
24115 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
24116
24117         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
24118         (regex_compile): Catch bogus \(\1\).
24119
24120 2000-10-30  Paul Eggert  <eggert@twinsun.com>
24121
24122         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
24123         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
24124         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
24125
24126 2000-10-30  Paul Eggert  <eggert@twinsun.com>
24127
24128         * lib/error.h, getline.h, modechange.h:
24129         Remove "2000" from Copyright line, as the file hasn't been
24130         changed this year other than in the copyright notice.
24131
24132         * lib/xalloc.h: Add "2000" to Copyright line, as this file
24133         was changed this year.
24134
24135 2000-10-29  Jim Meyering  <meyering@lucent.com>
24136
24137         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
24138         renaming.
24139         * m4/ls-mntd-fs.m4: Likewise
24140
24141 2000-10-29  Jim Meyering  <meyering@lucent.com>
24142
24143         * lib/xstat.in: Fix grammar in comment.
24144
24145 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
24146
24147         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
24148         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
24149         doesn't define __restrict_arr.
24150
24151 2000-10-28  Jim Meyering  <meyering@lucent.com>
24152
24153         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
24154         (jm_PREREQ_MEMCHR): New function.
24155
24156 2000-10-28  Jim Meyering  <meyering@lucent.com>
24157
24158         * lib/memchr.c: Update from libc.
24159         Adjust for portability:
24160         [HAVE_STDLIB_H]: Include stdlib.h.
24161         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
24162         Undef __memchr, too.
24163         [!weak_alias]: Define __memchr to memchr.
24164
24165         * lib/regex.c: Update from libc.
24166         * lib/regex.h: Likewise.
24167         * lib/getopt1.c: Likewise.
24168         * lib/memcmp.c: Likewise.
24169
24170         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
24171         Avoid using fseek, when possible -- it's broken by design.
24172         Patch by Ulrich Drepper.
24173
24174 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
24175
24176         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
24177         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
24178         Giving in to popular pressure to shut up the compiler with casts.
24179
24180 2000-10-26  Jim Meyering  <meyering@lucent.com>
24181
24182         * lib/strftime.c: Update from libc.
24183
24184 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
24185
24186         * regex.c: More `unsigned char' -> `re_char' changes.
24187         Also change several `int' into `re_wchar_t'.
24188         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
24189         (PUSH_FAILURE_POINTER): Don't cast any more.
24190         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
24191         We want GCC to complain, since this piece of code makes
24192         re_match non-reentrant, which *should* be fixed.
24193         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
24194         (EXTEND_BUFFER): Use RETALLOC.
24195         (SET_LIST_BIT): Don't cast.
24196         (re_wchar_t): New type.
24197         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
24198         that those two functions will always properly return.
24199         (IMMEDIATE_QUIT_CHECK): Cast to void.
24200         (analyse_first): Use recursion rather than an explicit stack.
24201         (re_compile_fastmap): Can't fail anymore.
24202         (re_search_2): Don't check re_compile_fastmap for failure.
24203         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
24204         Now also sets the new value (passed in a new argument).
24205         (re_match_2_internal): Use it.
24206         Also, use a new var `reg' of type size_t when looping through regs
24207         rather than reuse the inappropriate `mcnt'.
24208
24209 2000-10-25  Jim Meyering  <meyering@lucent.com>
24210
24211         * lib/obstack.c: Update from libc.
24212
24213 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
24214
24215         * regex.c (regex_compile): Change the way of handling a range from
24216         a char less than 256 to a char not less than 256.
24217
24218 2000-10-24  Andrew Innes  <andrewi@gnu.org>
24219
24220         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
24221         NT-Emacs only.
24222         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
24223         so that re_search functions only quit when callers expect them to.
24224
24225 2000-10-23  Jim Meyering  <meyering@lucent.com>
24226
24227         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
24228         wrong.  That set_locale call must not have any side effects.
24229         From Paul Eggert.
24230
24231 2000-10-22  Jim Meyering  <meyering@lucent.com>
24232
24233         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
24234         [CYCLIC]: Remove now-unused definition.
24235
24236         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
24237         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
24238         Suggestion from Ulrich Drepper.
24239
24240 2000-10-21  Jim Meyering  <meyering@lucent.com>
24241
24242         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
24243         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
24244         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
24245
24246 2000-10-21  Jim Meyering  <meyering@lucent.com>
24247
24248         * lib/dirname.c (memrchr): Declare if necessary.
24249         (dir_name): Remove the restriction that there be no
24250         trailing slashes.  Now, this code skips past them, effectively
24251         ignoring them.
24252         [TEST_DIRNAME] (main): New unit tests.
24253
24254         * lib/memrchr.c: New file from GNU libc.
24255         Undef __memrchr, too.
24256         [!weak_alias]: Define __memrchr to memrchr.
24257         Guard weak_alias use with `#ifdef weak_alias'.
24258
24259 2000-10-21  Jim Meyering  <meyering@lucent.com>
24260
24261         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
24262         (dir_name): Use dir_name_r.
24263         * lib/dirname.h (dir_name_r): Declare it.
24264
24265 2000-10-17  Jim Meyering  <meyering@lucent.com>
24266
24267         * lib/quote.h (PARAMS): Define and use.
24268         Reported by Akim Demaille.
24269
24270         * lib/getopt.c: Update from libc.
24271
24272 2000-10-16  Jim Meyering  <meyering@lucent.com>
24273
24274         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
24275         setlocale.
24276         From Jan Fedak.
24277
24278 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
24279
24280         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
24281
24282 2000-09-25  Jim Meyering  <meyering@lucent.com>
24283
24284         * lib/md5.h (rol): Define (from GnuPG).
24285
24286         * lib/sha.c: Give credit (GnuPG) where due.
24287         (M): Use rol rather than open-coding it.
24288         Add a FIXME comment.
24289
24290 2000-09-21  Jim Meyering  <meyering@lucent.com>
24291
24292         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
24293         Reported by Michael Stone.
24294
24295 2000-09-20  Jim Meyering  <meyering@lucent.com>
24296
24297         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
24298         (noinst_HEADERS): Add sha.h.
24299         Based on code from Scott G. Miller and from GnuPG.
24300
24301 2000-09-18  Jim Meyering  <meyering@lucent.com>
24302
24303         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
24304         LIBS. Otherwise, everyone ends up linking with -lelf for some
24305         configurations.
24306         Reported by Mike Stone.
24307
24308 2000-09-15  Jim Meyering  <meyering@lucent.com>
24309
24310         * lib/regex.c: Update from libc.
24311
24312 2000-09-10  Jim Meyering  <meyering@lucent.com>
24313
24314         * lib/getopt.c (_getopt_internal): Update from glibc.
24315
24316 2000-09-09  Jim Meyering  <meyering@lucent.com>
24317
24318         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
24319         think it should be used as a general replacement for isascii.
24320         * lib/fnmatch.c: Likewise.
24321         * lib/mbswidth.c: Likewise
24322         * lib/regex.c: Likewise.
24323
24324         Don't use atoi.
24325         * lib/userspec.c: Include sys/param.h and limits.h.
24326         Include xstrtol.h.
24327         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
24328         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
24329         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
24330         UID, GID.  Check range.
24331
24332 2000-09-06  Jim Meyering  <meyering@lucent.com>
24333
24334         * lib/getopt.c (_getopt_internal): Update from glibc.
24335
24336 2000-08-30  Jim Meyering  <meyering@lucent.com>
24337
24338         * lib/strftime.c: Merge in changes from GNU libc.
24339
24340 2000-08-26  Jim Meyering  <meyering@lucent.com>
24341
24342         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
24343         * m4/fpending.m4: New file.
24344
24345 2000-08-26  Jim Meyering  <meyering@lucent.com>
24346
24347         * lib/closeout.c: Include "__fpending.h".
24348         (close_stdout_status): Return right away if there's nothing to flush.
24349
24350         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
24351         * lib/__fpending.c: New file.
24352         * lib/__fpending.h: New file.
24353
24354 2000-08-20  Jim Meyering  <meyering@lucent.com>
24355
24356         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
24357         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
24358         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
24359
24360 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
24361
24362         Improve fileutils installation on systems where running
24363         programs (like install) can't be unlinked.
24364         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
24365         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
24366
24367 2000-08-07  Paul Eggert  <eggert@twinsun.com>
24368
24369         Standardize on "memory exhausted" instead of "Memory exhausted"
24370         or "virtual memory exhausted".
24371         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
24372         "virtual memory exhausted".
24373         * lib/same.c (same_name): Invoke xalloc_die instead of printing
24374         our own message.
24375         * lib/userspec.c (parse_user_spec): Likewise.
24376         * lib/bumpalloc.h: comment fix
24377         * lib/same.c, userspec.c: Include xalloc.h.
24378
24379         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
24380         not char *const and pointing to a constant array.
24381         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
24382         (xrealloc): Comment fix.
24383
24384         * lib/userspec.c (parse_user_spec):
24385         Don't translate a message until just before returning,
24386         to avoid unnecessary translation.
24387
24388 2000-08-07  Jim Meyering  <meyering@lucent.com>
24389
24390         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
24391         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
24392         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
24393         getgroups.c, gethostname.c, getopt.h, group-member.c,
24394         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
24395         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
24396         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
24397         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
24398         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
24399         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
24400         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
24401         yesno.c: Back out Copyright date changes for each file with no change
24402         this year.  This eases coordination with other programs using the same
24403         source code modules.  From Paul Eggert.
24404
24405 2000-08-06  Paul Eggert  <eggert@twinsun.com>
24406
24407         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
24408         not char, for compatibility with glibc 2.1.3 strftime.c.
24409
24410 2000-08-03  Greg McGary  <greg@mcgary.org>
24411
24412         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
24413         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
24414         (EXTEND_BUFFER): Use them.
24415
24416 2000-08-01  Jim Meyering  <meyering@lucent.com>
24417
24418         * lib/dirname.c (ISSLASH): Define.
24419         (BACKSLASH_IS_PATH_SEPARATOR): Define.
24420         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
24421         both `\' and `/' may be use as path separators.
24422         Based on a patch from Prashant TR.
24423
24424 2000-07-31  Paul Eggert  <eggert@twinsun.com>
24425
24426         * lib/quotearg.c (quotearg_n_options): Don't make the initial
24427         slot vector a constant, since it might get modified.
24428
24429 2000-07-31  Jim Meyering  <meyering@lucent.com>
24430
24431         * lib/xmalloc.c: Use `virtual memory exhausted', not
24432         `Memory exhausted'.
24433         * lib/obstack.c (print_and_abort): Likewise.
24434
24435 2000-07-30  Paul Eggert  <eggert@twinsun.com>
24436
24437         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
24438         buffer, so that the caller can always quote one small
24439         component of a "memory exhausted" message in slot 0.
24440         From a suggestion by Jim Meyering.
24441
24442 2000-07-30  Jim Meyering  <meyering@lucent.com>
24443
24444         * lib/makepath.c (make_path): Quote the other instance, too.
24445
24446         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
24447         (STATIC_BUF_SIZE): Define.
24448         (quotearg_n_options): Use only statically allocated storage when
24449         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
24450         than STATIC_BUF_SIZE.
24451
24452 2000-07-29  Jim Meyering  <meyering@lucent.com>
24453
24454         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
24455         * lib/dirname.c (dir_name): Likewise.
24456
24457         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
24458         `/'.
24459
24460         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
24461         (dir_name): Assert that there are no trailing slashes.
24462
24463 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
24464
24465         * lib/mbswidth.h (mbswidth): Add a flags argument.
24466         (mbswidth): New declaration.
24467         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
24468         * lib/mbswidth.c (mbswidth): Add a flags argument.
24469         (mbsnwidth): New function.
24470
24471 2000-07-24  Jim Meyering  <meyering@lucent.com>
24472
24473         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
24474
24475 2000-07-23  Paul Eggert  <eggert@twinsun.com>
24476
24477         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
24478
24479 2000-07-23  Paul Eggert  <eggert@twinsun.com>
24480
24481         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
24482         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
24483         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
24484         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
24485         invoke multibyte primitives.
24486
24487 2000-07-23  Paul Eggert  <eggert@twinsun.com>
24488
24489         * lib/quotearg.c:
24490         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
24491         so that mbstate_t is always defined.
24492
24493         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
24494         be 1 in at least one GCC installation, and this configuration
24495         error is likely to be common.  Ignoring MB_LEN_MAX hurts
24496         performance on hosts that have mbrtowc but have only unibyte
24497         locales, but I assume these hosts are rare.
24498
24499 2000-07-23  Paul Eggert  <eggert@twinsun.com>
24500
24501         * lib/mbswidth.c (_XOPEN_SOURCE):
24502         Don't define; this causes problems on Solaris 7.
24503         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
24504
24505 2000-07-23  Jim Meyering  <meyering@lucent.com>
24506
24507         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
24508         too: getgrgid, getpwuid, getuid.
24509
24510 2000-07-23  Jim Meyering  <meyering@lucent.com>
24511
24512         * lib/basename.c (base_name): Add an assertion.
24513
24514 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
24515
24516         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
24517         shadow its mbsinit function.
24518
24519 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
24520
24521         * lib/mbswidth.h: New file.
24522         * lib/mbswidth.c: New file.
24523         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
24524         (noinst_HEADERS): Add mbswidth.h.
24525
24526 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
24527
24528         * lib/config.charset: Add support for FreeBSD. Improve support for
24529         HP-UX and IRIX 6.
24530
24531 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
24532
24533         * m4/mbswidth.m4: New file.
24534         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
24535
24536 2000-07-15  Jim Meyering  <meyering@lucent.com>
24537
24538         * lib/makepath.c: Include quote.h.
24539         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
24540         corresponding argument in a `quote (...)' call.
24541         Give better diagnostics.
24542
24543         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
24544         (noinst_HEADERS): Add quote.h.
24545
24546         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
24547         from tar's src/misc.c.
24548         * lib/quote.h: New file.  Prototypes for same.
24549
24550 2000-07-14  Paul Eggert  <eggert@twinsun.com>
24551
24552         From a suggestion by Bruno Haible.
24553         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
24554         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
24555         to decide whether to define the BeOS workaround macro;
24556         this adjusts to the change to AC_MBSTATE_T.
24557
24558 2000-07-14  Jim Meyering  <meyering@lucent.com>
24559
24560         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
24561         jm_AC_TYPE_UINTMAX_T.
24562
24563 2000-07-13  Paul Eggert  <eggert@twinsun.com>
24564
24565         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
24566
24567         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
24568         quotearg_buffer_restyled): Add support for
24569         clocale_quoting_style.  Undo previous change to
24570         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
24571         and "{RIGHT QUOTATION MARK}" msgids.
24572
24573 2000-07-10  Paul Eggert  <eggert@twinsun.com>
24574
24575         From a suggestion by Bruno Haible.
24576         * m4/mbstate_t.m4 (AC_MBSTATE_T):
24577         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
24578         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
24579         and mbstate_t, to a single-part test that simply defines mbstate_t.
24580         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
24581         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
24582
24583 2000-07-10  Jim Meyering  <meyering@lucent.com>
24584
24585         * m4/strerror_r.m4: Mirror the correction made in autoconf.
24586
24587         * m4/gnu-source.m4: Output to confdefs.h directly.
24588         Suggestion from Akim Demaille.
24589
24590 2000-07-09  Paul Eggert  <eggert@twinsun.com>
24591
24592         The old behavior of quoting `like this' doesn't look good with
24593         newer, ISO-style fonts.  See:
24594         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
24595
24596         Instead, quote "like this" by default.  Let the translator
24597         tailor the locale-specific quoting behavior by providing
24598         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
24599
24600         * lib/quotearg.c (N_): New macro.
24601         (gettext_default): New function.
24602         (quotearg_buffer_restyled): Use
24603         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
24604         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
24605
24606 2000-07-09  Jim Meyering  <meyering@lucent.com>
24607
24608         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
24609         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
24610
24611         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
24612         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
24613
24614 2000-07-09  Jim Meyering  <meyering@lucent.com>
24615
24616         * lib/Most files: Update copyright dates to include 2000.
24617
24618 2000-07-08  Jim Meyering  <meyering@lucent.com>
24619
24620         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
24621         if not defined.
24622         (xgethostname): Remove now-unnecessary #ifdef.
24623         Move declaration of `err' into loop where it's used.
24624
24625 2000-07-05  Paul Eggert  <eggert@twinsun.com>
24626         and Bruno Haible  <haible@clisp.cons.org>
24627
24628         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
24629         only if the test for an object-type mbstate_t fails.  This
24630         prevents us from mistakenly reporting that mbstate_t is a
24631         system object type after we "#define mbstate_t int" to work
24632         around its lack.
24633
24634 2000-07-05  Paul Eggert  <eggert@twinsun.com>
24635         and Bruno Haible  <haible@clisp.cons.org>
24636
24637         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
24638
24639 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
24640
24641         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
24642         to strerror_r.
24643         Include <ctype.h> for use of isalpha.
24644
24645 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
24646
24647         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
24648         by allocating a larger buffer. Test the gethostname return value for
24649         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
24650         returns an error and ENAMETOOLONG isn't defined.
24651
24652 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
24653
24654         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
24655         dimension.
24656
24657 2000-07-04  Jim Meyering  <meyering@lucent.com>
24658
24659         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
24660         of the deprecated AC_CHECKING.
24661
24662 2000-07-04  Jim Meyering  <meyering@lucent.com>
24663
24664         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
24665         Reported by Bruno Haible.
24666
24667 2000-07-04  Jim Meyering  <meyering@lucent.com>
24668
24669         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
24670         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
24671         lacks mbrtowc.
24672
24673 2000-07-03  Paul Eggert  <eggert@twinsun.com>
24674
24675         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
24676         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
24677
24678 2000-07-03  Paul Eggert  <eggert@twinsun.com>
24679         and Bruno Haible  <haible@clisp.cons.org>
24680
24681         * lib/quotearg.c (mbrtowc):
24682         Assign to *pwc, and return 1 only if result is nonzero.
24683         (iswprint): Use ISPRINT when substituting our own mbrtowc.
24684
24685 2000-07-03  Jim Meyering  <meyering@lucent.com>
24686
24687         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
24688
24689 2000-07-03  Jim Meyering  <meyering@lucent.com>
24690
24691         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
24692         This is necessary to get a definition of e.g., UTMP_FILE on
24693         HP-UX 10.20.
24694         From Bob Proulx.
24695
24696 2000-07-02  Jim Meyering  <meyering@lucent.com>
24697
24698         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
24699
24700         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
24701         AC_LIBOBJ(function_name).
24702         * m4/chown.m4: Likewise.
24703         * m4/fnmatch.m4: Likewise.
24704         * m4/ftruncate.m4: Likewise.
24705         * m4/getgroups.m4: Likewise.
24706         * m4/getline.m4: Likewise.
24707         * m4/group-member.m4: Likewise.
24708         * m4/jm-macros.m4: Likewise.
24709         * m4/lstat.m4: Likewise.
24710         * m4/malloc.m4: Likewise.
24711         * m4/memcmp.m4: Likewise.
24712         * m4/nanosleep.m4: Likewise.
24713         * m4/putenv.m4: Likewise.
24714         * m4/realloc.m4: Likewise.
24715         * m4/regex.m4: Likewise.
24716         * m4/stat.m4: Likewise.
24717         * m4/strftime.m4: Likewise.
24718
24719 2000-07-02  Jim Meyering  <meyering@lucent.com>
24720
24721         * lib/quotearg.c (mbstate_t): Don't define here.
24722
24723 2000-07-02  Jim Meyering  <meyering@lucent.com>
24724
24725         * lib/nanosleep.c (SIGCONT): Define if not already defined.
24726
24727 2000-07-01  Jim Meyering  <meyering@lucent.com>
24728
24729         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
24730
24731 2000-07-01  Jim Meyering  <meyering@lucent.com>
24732
24733         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
24734         problem.
24735
24736 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
24737
24738         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
24739         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
24740
24741 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
24742
24743         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
24744         per change in ../m4/ls-mntd-fs.m4.
24745         (read_filesystem_list): Ignore symbolic links.
24746
24747 2000-06-29  Jim Meyering  <meyering@lucent.com>
24748
24749         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
24750         for declaration of strcmp.
24751
24752         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
24753
24754         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
24755         Avoid warning by casting result to `char *' to remove `const'.
24756
24757 2000-06-28  Jim Meyering  <meyering@lucent.com>
24758
24759         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
24760         included by quotearg.c, for which we perform this test.  From
24761         Bruno Haible.
24762
24763 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
24764
24765         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
24766         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
24767         <utmpx.h> exists, put readutmp.o into LIBOBJS.
24768
24769 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
24770
24771         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
24772
24773 2000-06-26  Paul Eggert  <eggert@twinsun.com>
24774
24775         savedir now sets errno on failure and invokes xmalloc to get memory.
24776         Fix a couple of other minor bugs while we're at it.
24777
24778         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
24779         (NAMLEN): Remove macro.
24780         (malloc, realloc): Remove decls.
24781         (stpcpy): Likewise.
24782         ("xalloc.h"): Include.
24783         (NAME_SIZE_DEFAULT): New macro.
24784         (savedir): Use xmalloc / xrealloc to allocate memory.
24785         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
24786         Skip "" directory entries.
24787         Use strlen to calculate directory entry length, since the old method
24788         is rarely used these days and isn't worth supporting.
24789         Don't use a pointer after freeing it.
24790         Check for integer overflow when calculating allocation size.
24791         Use memcpy to copy entries, instead of stpcpy.
24792         Set errno properly when returning NULL.
24793         Check for readdir error.
24794
24795 2000-06-26  Jim Meyering  <meyering@lucent.com>
24796
24797         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
24798
24799 2000-06-25  Jim Meyering  <meyering@lucent.com>
24800
24801         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
24802         Linux header bug when _XOPEN_SOURCE is defined to 500.
24803
24804 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
24805
24806         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
24807         deficiency.
24808
24809 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
24810
24811         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
24812         Include xalloc.h.
24813         Don't include <stdlib.h>.  Don't declare malloc, realloc.
24814
24815 2000-06-24  Jim Meyering  <meyering@lucent.com>
24816
24817         * m4/strerror_r.m4: Revive this file -- to try out an experimental
24818         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
24819         for which strerror does return char*, but which lacks a conveniently
24820         accessible declaration of the function.  If the compile-test says
24821         strerror_r doesn't work, then resort to a `run'-test that works on
24822         BeOS and segfaults on DEC Unix.
24823
24824 2000-06-24  Jim Meyering  <meyering@lucent.com>
24825
24826         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
24827
24828 2000-06-23  Paul Eggert  <eggert@twinsun.com>
24829
24830         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
24831         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
24832
24833 2000-06-23  Paul Eggert  <eggert@twinsun.com>
24834
24835         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
24836         (mbrtowc, mbstate_t): Define substitutes if
24837         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
24838         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
24839         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
24840
24841 2000-06-23  Jim Meyering  <meyering@lucent.com>
24842
24843         * m4/afs.m4: Add missing AC_MSG_RESULT.
24844         Reported by Bruno Haible.
24845
24846         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
24847         Suggestion from Bruno Haible.
24848
24849 2000-06-23  Jim Meyering  <meyering@lucent.com>
24850
24851         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
24852
24853 2000-06-21  Jim Meyering  <meyering@lucent.com>
24854
24855         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
24856
24857 2000-06-21  Jim Meyering  <meyering@lucent.com>
24858
24859         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
24860         (noinst_HEADERS): Add getstr.h.
24861
24862         * lib/getline.c (getstr): Move into a separate file.
24863         * lib/getstr.c (getstr): New file, extracted from getline.c, with
24864         the following changes: new parameter, delim2; both delim[12]
24865         parameters have type `int', not `char'.  The latter would lose
24866         with 8-bit delimiters.
24867         * lib/getstr.h: New file.
24868
24869 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
24870
24871         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
24872         than 1024, return a memory chunk of least possible size, instead
24873         of size PATH_MAX + 2. In the loop, increment the size proportionally.
24874         Use free/xmalloc instead of xrealloc to avoid copying for very long
24875         paths.
24876
24877 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
24878
24879         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
24880         the empty string.
24881
24882 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
24883
24884         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
24885         address, not strdup.  Include <stdlib.h> and don't declare free().
24886
24887 2000-06-19  Jim Meyering  <meyering@lucent.com>
24888
24889         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
24890
24891 2000-06-18  Jim Meyering  <meyering@lucent.com>
24892
24893         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
24894
24895         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
24896         `checking whether...' message to be consistent with that of the
24897         lstat test.
24898
24899 2000-06-18  Jim Meyering  <meyering@lucent.com>
24900
24901         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
24902         Besides, these days every porting target provides a mkdir function.
24903
24904         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
24905         needed. (this snippet comes from src/system.h).
24906
24907 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
24908
24909         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
24910
24911 2000-06-15  Paul Eggert  <eggert@twinsun.com>
24912
24913         * lib/human.c (adjust_value): New function.
24914         (human_readable_inexact): Apply rounding style even when
24915         printing approximate values.
24916
24917 2000-06-14  Paul Eggert  <eggert@twinsun.com>
24918
24919         * lib/human.c (human_readable_inexact): Allow an input block
24920         size that is not a multiple of the output block size, and vice versa.
24921         Reported by Piergiorgio Sartor.
24922
24923 2000-06-14  Paul Eggert  <eggert@twinsun.com>
24924
24925         * lib/getdate.y (get_date): Apply relative times after time
24926         zone indicator, not before.  Reported by Todd A. Jacobs.
24927
24928 2000-06-13  Jim Meyering  <meyering@lucent.com>
24929
24930         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
24931
24932         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
24933
24934 2000-06-12  Paul Eggert  <eggert@twinsun.com>
24935
24936         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
24937
24938 2000-06-12  Jim Meyering  <meyering@lucent.com>
24939
24940         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
24941         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
24942         optional argument.
24943         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
24944         the optional argument, `lib'.
24945
24946 2000-06-08  Jim Meyering  <meyering@lucent.com>
24947
24948         * m4/largefile.m4: Remove file (now that it's part of autoconf).
24949
24950 2000-06-04  Paul Eggert  <eggert@twinsun.com>
24951
24952         Rewrite largefile configuration so that we don't need to run
24953         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
24954         AC_CANONICAL_HOST in configure.in -- jmm]
24955
24956         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
24957         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
24958         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
24959         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
24960         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
24961         All uses changed.
24962         Instead of inspecting the output of getconf, try to compile the
24963         test program without and with the macro definition.
24964         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
24965         for getconf.  Instead, check for the needed flags by compiling
24966         test programs.
24967
24968 2000-06-04  Paul Eggert  <eggert@twinsun.com>
24969
24970         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
24971
24972 2000-06-04  Jim Meyering  <meyering@lucent.com>
24973
24974         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
24975         SunOS 4.1.4 for which gid_t is an unsigned type.
24976
24977 2000-06-03  Jim Meyering  <meyering@lucent.com>
24978
24979         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
24980         now that autoconf requires that.
24981
24982         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
24983         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
24984         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
24985
24986 2000-06-03  Jim Meyering  <meyering@lucent.com>
24987
24988         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
24989
24990 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
24991
24992         * m4/glibc21.m4: New file.
24993         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
24994
24995 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
24996
24997         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
24998         newer, don't install charset.alias.
24999         * lib/config.charset: Change the Linux/glibc rules so they become empty
25000         on glibc-2.1 or newer.
25001
25002 2000-06-02  Jim Meyering  <meyering@lucent.com>
25003
25004         * lib/mountlist.c: Back out last change.  Instead, do this...
25005         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
25006         me_dummy member using the same `ignore'-testing code.
25007         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
25008         fs_type strings.
25009         From Mark D. Roth.
25010
25011 2000-05-29  Jim Meyering  <meyering@lucent.com>
25012
25013         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
25014         mounts with the `ignore' attribute.  Based on a patch from
25015         Mark D. Roth.
25016
25017 2000-05-28  Jim Meyering  <meyering@lucent.com>
25018
25019         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
25020         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
25021         * m4/stat.m4: Likewise.
25022         * m4/lstat.m4: Likewise.
25023         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
25024
25025         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
25026         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
25027
25028 2000-05-26  Jim Meyering  <meyering@lucent.com>
25029
25030         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
25031
25032 2000-05-24  Jim Meyering  <meyering@lucent.com>
25033
25034         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
25035         autoconf requires that.
25036         * m4/lib-check.m4: Likewise.
25037         * m4/jm-macros.m4: Likewise.
25038         * m4/strftime.m4: Likewise.
25039
25040         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
25041         AC_CHECK_DECLS, now that autoconf requires that.
25042
25043 2000-05-22  Jim Meyering  <meyering@lucent.com>
25044
25045         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
25046         * m4/lstat.m4: Likewise.
25047
25048 2000-05-22  Jim Meyering  <meyering@lucent.com>
25049
25050         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
25051
25052 2000-05-20  Jim Meyering  <meyering@lucent.com>
25053
25054         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
25055         (jm_PREREQ): Use it.
25056
25057 2000-05-18  Jim Meyering  <meyering@lucent.com>
25058
25059         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
25060         back, too, since it may have been modified by allocate_entry.
25061         (hash_delete): Rewrite to use neither the assignment operator
25062         nor the comma operator in an if-expression.
25063
25064 2000-05-15  Paul Eggert  <eggert@twinsun.com>
25065
25066         * lib/closeout.c:
25067         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
25068         Remove; no longer needed.
25069         "quotearg.h": Add include.
25070         (file_name): Do not bother to explicitly initialize to NULL; it's less
25071         efficient on some hosts.
25072         (close_stdout_status): Remove test as to whether stdout was already
25073         closed; it breaks for the case "echo x | sort >&-".
25074         Quote file name colons.
25075         Do not assume that _("write error") lacks format strings.
25076
25077 2000-05-15  Jim Meyering  <meyering@lucent.com>
25078
25079         * lib/version-etc.c (version_etc_copyright): Update the copyright
25080         string used in all --version output.
25081
25082 2000-05-14  Jim Meyering  <meyering@lucent.com>
25083
25084         * lib/closeout.c (close_stdout_set_file_name): New function.
25085         (close_stdout_status): Use new file-scoped global.
25086         Return right away if fstat says the stdout file descriptor is invalid.
25087         * lib/closeout.h (close_stdout_set_file_name): Declare.
25088
25089 2000-05-10  Jim Meyering  <meyering@lucent.com>
25090
25091         * lib/closeout.c [default_exit_status]: New file-scoped variable.
25092         (close_stdout_set_status): New function.
25093         * lib/closeout.h (close_stdout_set_status): Declare.
25094
25095 2000-05-09  Jim Meyering  <meyering@lucent.com>
25096
25097         * m4/gettext.m4: Rename this...
25098         * m4/libintl.m4: ...to this.
25099
25100 2000-05-08  Jim Meyering  <meyering@lucent.com>
25101
25102         * lib/long-options.c: Don't include closeout.h.
25103         (parse_long_options): Don't call close_stdout for --version.
25104
25105 2000-05-06  Paul Eggert  <eggert@twinsun.com>
25106
25107         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
25108         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
25109         2.1.3 bug.  This avoids a clash when files like regex.c define
25110         _GNU_SOURCE.
25111
25112 2000-05-06  Jim Meyering  <meyering@lucent.com>
25113
25114         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
25115         (AC_REPLACE_FUNCS): Add strnlen.
25116
25117         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
25118         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
25119
25120         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
25121         AC_SEARCH_LIBS call for nanosleep.
25122         (LIB_NANOSLEEP): Set and AC_SUBST.
25123
25124 2000-05-06  Jim Meyering  <meyering@lucent.com>
25125
25126         * lib/strnlen.c: Undefine __strnlen and strnlen.
25127         [!weak_alias]: Define __strnlen to strnlen.
25128
25129         * lib/atexit.c: New file, from libiberty.
25130
25131 2000-05-06  Jim Meyering  <meyering@lucent.com>
25132
25133         * lib/closeout.c (close_stdout_status): Also check for errors on the
25134         stderr stream.
25135
25136 2000-05-05  Jim Meyering  <meyering@lucent.com>
25137
25138         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
25139         AC_SEARCH_LIBS call for clock_gettime.
25140         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
25141
25142         * m4/search-libs.m4: Update from autoconf.
25143
25144         su doesn't work on Solaris 2.6.
25145         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
25146         <shadow.h>.  Reported by Dragos Harabor.
25147
25148 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
25149
25150         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
25151         memcpy instead of xmalloc, xrealloc, path_concat.
25152         (locale_charset): Treat empty environment variables as absent.
25153         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
25154
25155 2000-05-04  Jim Meyering  <meyering@lucent.com>
25156
25157         * lib/getopt.c: Update from glibc.
25158         * lib/obstack.c: Likewise.
25159         * lib/obstack.h: Likewise.
25160         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
25161         file
25162
25163         * lib/regex.h: Likewise.
25164         * lib/strndup.c: Likewise.
25165         * lib/strnlen.c: New file, from glibc.
25166
25167 2000-05-03  Jim Meyering  <meyering@lucent.com>
25168
25169         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
25170
25171 2000-05-02  Paul Eggert  <eggert@twinsun.com>
25172
25173         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
25174         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
25175         compile-time test, rather than inspecting host and OS, to
25176         decide whether to define _LARGEFILE_SOURCE.
25177
25178 2000-05-01  Jim Meyering  <meyering@lucent.com>
25179
25180         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
25181
25182         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
25183         Based on a patch from Bruno Haible.
25184
25185 2000-05-01  Jim Meyering  <meyering@lucent.com>
25186
25187         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
25188
25189 2000-04-29  Jim Meyering  <meyering@lucent.com>
25190
25191         * lib/path-concat.c: Declare strdup only if it's not defined.
25192         * lib/canon-host.c: Likewise.
25193
25194 2000-04-28  Jim Meyering  <meyering@lucent.com>
25195
25196         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
25197         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
25198         is included first, then limits.h is included by locale.h by libintl.h.
25199         From John David Anglin.
25200
25201 2000-04-25  Jim Meyering  <meyering@lucent.com>
25202
25203         * lib/makepath.c (S_IRWXUGO): Define.
25204         (make_path): Always perform explicit chmod if MODE specifies any
25205         of the `special' permission bits.  Prompted by a bug report against
25206         install from Mate Wierdl and Joost van Baal.
25207
25208 2000-04-18  Jim Meyering  <meyering@lucent.com>
25209
25210         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
25211         (jm_PREREQ): Use it.
25212
25213 2000-04-18  Jim Meyering  <meyering@lucent.com>
25214
25215         * lib/README: New file.
25216
25217         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
25218         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
25219
25220 2000-04-17  Jim Meyering  <meyering@lucent.com>
25221
25222         Get it right :-)
25223         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
25224         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
25225         Suggestion from Akim Demaille.
25226
25227 2000-04-17  Jim Meyering  <meyering@lucent.com>
25228
25229         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
25230         the definition of it to rpl_strftime also defined-away the system's
25231         declaration.
25232
25233 2000-04-15  Jim Meyering  <meyering@lucent.com>
25234
25235         Use `C' to denote so-called `contiguous' files, the same way
25236         that tar does.
25237         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
25238         (ftypelet): Use S_ISCTG.
25239         From Michael Deutschmann.
25240
25241 2000-04-14  Jim Meyering  <meyering@lucent.com>
25242
25243         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
25244         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
25245         clobbered.
25246
25247 2000-04-14  Jim Meyering  <meyering@lucent.com>
25248
25249         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
25250
25251 2000-04-13  Jim Meyering  <meyering@lucent.com>
25252
25253         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
25254         AH_VERBATIM to insert required #ifndef into config.h.in.
25255         Suggestion from Akim Demaille.
25256
25257 2000-04-12  Jim Meyering  <meyering@lucent.com>
25258
25259         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
25260         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
25261         Christian Krackowizer.
25262
25263         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
25264         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
25265         (AC_SYS_LARGEFILE): Require.
25266         (AM_C_PROTOTYPES): Require.
25267
25268 2000-04-08  Jim Meyering  <meyering@lucent.com>
25269
25270         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
25271         names don't conflict.  Reported by Eli Zaretskii.
25272
25273 2000-04-07  Jim Meyering  <meyering@lucent.com>
25274
25275         * lib/putenv.c: Move inclusion of errno.h so it follows that of
25276         sys/types.h, to work around system header problems on AIX 3.2.5.
25277         From Bruno Haible.
25278
25279 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
25280
25281         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
25282         bug.  Deal with the different error behavior of Irix iconv.
25283
25284 2000-04-05  Paul Eggert  <eggert@twinsun.com>
25285
25286         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
25287         IRIX if the installer said otherwise.
25288
25289 2000-04-05  Jim Meyering  <meyering@lucent.com>
25290
25291         Portability tweaks required for ultrix4.3.
25292         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
25293         (jm_CHECK_DECLS): Add getutent to the list of functions.
25294         (_jm_DECL_HEADERS): Add utmpx.h.
25295         From John David Anglin.
25296
25297         * m4/strftime.m4: Back out the 2000-04-02 change.
25298         Instead of that change, simply undefine putenv in the test program.
25299
25300 2000-04-05  Jim Meyering  <meyering@lucent.com>
25301
25302         Portability tweaks required for ultrix4.3.
25303         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
25304         getutent.
25305         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
25306         * lib/canon-host.c: Declare strdup.
25307         * lib/path-concat.c: Likewise.
25308         From John David Anglin.
25309
25310 2000-04-04  Jim Meyering  <meyering@lucent.com>
25311
25312         Be more DOS 8.3-friendly.
25313         * lib/ref-add.sin: Renamed from ref-add.sed.in.
25314         * lib/ref-del.sin: Renamed from ref-del.sed.in.
25315         * lib/Makefile.am: Reflect renaming.
25316         Reported by Eli Zaretskii.
25317
25318         Use a temporary file name that won't clash with `charset.alias'
25319         in the DOS 8.3 name space.
25320         * lib/Makefile.am (charset_tmp): Define.
25321         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
25322         (uninstall-local): Likewise.
25323         Reported by Eli Zaretskii.
25324
25325 2000-04-03  Jim Meyering  <meyering@lucent.com>
25326
25327         * m4/gettext.m4: Fix typo in comment.
25328
25329         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
25330         textutils/configure.in).  Suggestion from Paul Eggert.
25331         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
25332
25333 2000-04-02  Paul Eggert  <eggert@twinsun.com>
25334
25335         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
25336         variable in the shell rather than using putenv, which isn't
25337         portable.  This avoids the configure-time inter-test dependency
25338         on the potentially-renamed putenv function.
25339
25340 2000-03-30  Paul Eggert  <eggert@twinsun.com>
25341
25342         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
25343         before checking struct stat.st_blksize, so that
25344         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
25345
25346 2000-03-29  Paul Eggert  <eggert@twinsun.com>
25347
25348         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
25349         since strftime.c uses HAVE_STRFTIME to decide whether to use
25350         the underlying strftime.
25351
25352 2000-03-29  Paul Eggert  <eggert@twinsun.com>
25353
25354         * lib/time/strftime.c (my_strftime): Make sure we call the system
25355         strftime, not ourselves, when invoking the underlying strftime.
25356
25357 2000-03-24  Jim Meyering  <meyering@lucent.com>
25358
25359         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
25360         (charset_alias): Define.
25361         (install-exec-local): Factor out common code.
25362         (uninstall-local): Split lines longer than 80.
25363         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
25364         (SUFFIXES): Define.
25365         (.sed.in.sed): New rule.  Don't redirect directly to $@.
25366         (CLEANFILES): Add ref-add.sed and ref-del.sed.
25367
25368 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
25369
25370         * lib/config.charset: Output a line containing "Packages using this
25371         file".
25372         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
25373         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
25374         ref-del.sed): New rules.
25375
25376 2000-03-17  Jim Meyering  <meyering@lucent.com>
25377
25378         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
25379         Otherwise, include <strings.h>
25380
25381 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
25382
25383         * lib/unicodeio.c (utf8_wctomb): New function.
25384         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
25385         format instead of in UCS-4 with platform dependent endianness.
25386
25387 2000-03-10  Jim Meyering  <meyering@lucent.com>
25388
25389         * m4/lib-check.m4: Look for getspnam in -lgen, too.
25390         From Marco Franzen.
25391
25392 2000-03-07  Paul Eggert  <eggert@twinsun.com>
25393
25394         * lib/savedir.c (savedir): Work even if directory size is
25395         negative; this can happen with some screwy NFS configurations.
25396
25397 2000-03-06  Jim Meyering  <meyering@lucent.com>
25398
25399         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
25400         if it's NULL (because we ran out of memory).  From Bruno Haible.
25401
25402 2000-03-05  Jim Meyering  <meyering@lucent.com>
25403
25404         * lib/localcharset.c ("path-concat.h"): Include.
25405         (get_charset_aliases): Use path_concat instead of ANSI string
25406         concatenation.
25407
25408         * lib/unicodeio.h (PARAMS): Define.
25409         Use it to guard prototype.
25410
25411 2000-03-04  Jim Meyering  <meyering@lucent.com>
25412
25413         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
25414         for lib/localcharset.c.
25415
25416 2000-03-04  Jim Meyering  <meyering@lucent.com>
25417
25418         * lib/Makefile.am (install-exec-local): Create $(libdir) before
25419         installing into it.
25420         (uninstall-local): Uncomment this rule so `make distcheck' works
25421         once again.
25422
25423         * lib/unicodeio.c (<errno.h>): Include it.
25424         (errno): Declare if not defined.
25425
25426         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
25427
25428         * lib/config.charset: New version, incorporating remarks from a linux
25429         i18n mailing list.  From Bruno Haible.
25430
25431 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
25432
25433         * m4/codeset.m4: New file.
25434         * m4/iconv.m4: New file.
25435         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
25436
25437 2000-03-03  Jim Meyering  <meyering@lucent.com>
25438
25439         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
25440
25441 2000-03-02  Jim Meyering  <meyering@lucent.com>
25442
25443         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
25444         the messages come out on separate lines.
25445
25446         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
25447         rather than jm_CHECK_DECLARATIONS.
25448         * m4/decl.m4: Remove now-unused file.
25449
25450         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
25451         geteuid.
25452
25453 2000-03-02  Jim Meyering  <meyering@lucent.com>
25454
25455         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
25456
25457 2000-03-01  Jim Meyering  <meyering@lucent.com>
25458
25459         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
25460         * lib/unicodeio.c: Likewise.
25461
25462 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
25463
25464         * lib/config.charset: New file.
25465         * lib/localcharset.c: New file.
25466         * lib/unicodeio.h, lib/unicodeio.c: New files.
25467         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
25468         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
25469         (noinst_HEADERS): Add unicodeio.h.
25470         (all-local, install-exec-local, charset.alias): New targets.
25471
25472 2000-02-28  Paul Eggert  <eggert@twinsun.com>
25473
25474         * lib/quotearg.c (ALERT_CHAR): New macro.
25475         (quotearg_buffer_restyled): Use it.
25476
25477 2000-02-27  Jim Meyering  <meyering@lucent.com>
25478
25479         * m4/check-decl.m4: Add getenv to the list.
25480
25481 2000-02-27  Jim Meyering  <meyering@lucent.com>
25482
25483         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
25484         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
25485
25486         * lib/backupfile.c: Guard inclusion of stdlib.h with
25487         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
25488         Declare malloc if needed.
25489
25490         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
25491         `#ifndef HAVE_DECL..'
25492         now that autoconf always defines the HAVE_DECL_ symbols.
25493         * lib/human.c: Likewise.
25494         * lib/same.c: Likewise.
25495         * lib/strtoumax.c: Likewise.
25496
25497         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
25498         declaration check was not run.
25499         * lib/hash.c: Likewise.
25500         * lib/human.c: Likewise.
25501         * lib/same.c: Likewise.
25502         * lib/strtoumax.c: Likewise.
25503
25504         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
25505         `.', then first look up the entire `.'-containing string as a login
25506         name.
25507
25508 2000-02-23  Jim Meyering  <meyering@lucent.com>
25509
25510         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
25511         in place of my hack.
25512
25513 2000-02-18  Paul Eggert  <eggert@twinsun.com>
25514
25515         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
25516         (textint): New typedef.
25517         (parser_control): Member year changed from int to textint.
25518         All uses changed.
25519         (YYSTYPE): Removed; replaced by %union with int and textint members.
25520         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
25521         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
25522         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
25523         (tSNUMBER, tUNUMBER): Now of type <textintval>.
25524         (date, number, to_year): Use width of number in digits, not its value,
25525         to determine whether it's a 2-digit year, or a 2-digit time.
25526         (yylex): Store number of digits of numeric tokens.
25527         Reported by John Kendall.
25528
25529         (parser_control): Changed from struct parser_control to typedef (for
25530         consistency).  All uses changed.
25531
25532         (tID): Removed; not used.
25533         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
25534
25535 2000-02-14  Paul Eggert  <eggert@twinsun.com>
25536
25537         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
25538         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
25539
25540 2000-02-12  Jim Meyering  <meyering@lucent.com>
25541
25542         * lib/userspec.c (ISDIGIT): Define it.
25543         (isdigit): Remove definition.
25544         (is_number): Use ISDIGIT, not isdigit.
25545         <libintl.h>: Include.
25546         (_ and N_): Define.
25547         (parse_user_spec): Mark translatable strings.
25548
25549 2000-02-10  Jim Meyering  <meyering@lucent.com>
25550
25551         With these changes, nanosleep.[ch] are finally enough like the other
25552         lib/* replacement files to compile on a few more losing systems.
25553
25554         * lib/nanosleep.h: Don't include config.h.
25555         Remove prototype from declaration of nanosleep.
25556         (PARAMS): Remove now-unneeded definition.
25557         * lib/nanosleep.c: #undef nanosleep.
25558         (rpl_nanosleep): Rename from nanosleep.
25559
25560 2000-02-10  Jim Meyering  <meyering@lucent.com>
25561
25562         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
25563         gnu_nanosleep to rpl_nanosleep.
25564
25565 2000-02-09  Jim Meyering  <meyering@lucent.com>
25566
25567         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
25568         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
25569
25570 2000-02-08  Akim Demaille  <akim@epita.fr>
25571
25572         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
25573         `[' and `]' and remove uses of `changequote'.
25574         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
25575         (AC_SYS_LARGEFILE): Likewise.
25576         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
25577         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
25578         of changequote.
25579         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
25580         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
25581         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
25582         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
25583
25584 2000-02-05  Jim Meyering  <meyering@lucent.com>
25585
25586         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
25587         Remove explicit use of AC_HEADER_TIME.  It is required by
25588         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
25589         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
25590         in autoconf whereby the expansion of the latter ended up preceding
25591         the expansion of its prerequisite, AC_HEADER_TIME.
25592         Reported by Volker Borchert.
25593
25594 2000-02-03  Jim Meyering  <meyering@lucent.com>
25595
25596         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
25597
25598 2000-02-03  Jim Meyering  <meyering@lucent.com>
25599
25600         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
25601         rather than with `#if HAVE_UTMPNAME'.
25602
25603 2000-02-02  Jim Meyering  <meyering@lucent.com>
25604
25605         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
25606         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
25607         Reported by Eli Zaretskii.
25608
25609 2000-02-01  Jim Meyering  <meyering@lucent.com>
25610
25611         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
25612
25613 2000-01-31  Jim Meyering  <meyering@lucent.com>
25614
25615         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
25616         functions.  Add the time.h and sys/time.h headers along with the
25617         AC_REQUIRE'ment of AC_HEADER_TIME.
25618
25619 2000-01-31  Jim Meyering  <meyering@lucent.com>
25620
25621         * lib/nanosleep.h (nanosleep): Guard declaration with
25622         `#if ! HAVE_DECL_NANOSLEEP'.
25623         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
25624         the declaration in that vendor's sys/timers.h.
25625         Reported by Christian Krackowizer.
25626
25627         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
25628         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
25629         (ISPRINT): Likewise.
25630         Reported by Tom Tromey.
25631
25632 2000-01-30  Jim Meyering  <meyering@lucent.com>
25633
25634         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
25635
25636         * m4/prereq.m4 (utmp_includes): Define.
25637         Check for ut_user and ut_name members in both struct utmpx
25638         and struct utmp.
25639
25640 2000-01-30  Jim Meyering  <meyering@lucent.com>
25641
25642         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
25643         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
25644         header files where only utmpx.ut_user is declared.
25645
25646         * lib/readutmp.h (UT_USER): Define.
25647
25648 2000-01-29  Jim Meyering  <meyering@lucent.com>
25649
25650         * m4/lib-check.m4: New file containing library-related checks from
25651         fileutils and sh-utils (textutils had none).
25652
25653 2000-01-28  Jim Meyering  <meyering@lucent.com>
25654
25655         * m4/perl.m4: Change format of warning message to look more like that
25656         from the missing script.  Suggestion from François Pinard.
25657
25658 2000-01-25  Jim Meyering  <meyering@lucent.com>
25659
25660         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
25661         well as time.h in the compile check.
25662         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
25663         Fix typo in cross-compiling case: s/yes/no/.
25664
25665 2000-01-23  Jim Meyering  <meyering@lucent.com>
25666
25667         * m4/jm-macros.m4: Move df-related tests here from
25668         fileutils/configure.in
25669
25670         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
25671         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
25672
25673         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
25674         s/space/ac_fsusage_space/.
25675         (jm_FILE_SYSTEM_USAGE): Take two parameters.
25676
25677         * m4/ftruncate.m4: New file (derived from part of
25678         fileutils/configure.in).
25679         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
25680         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
25681
25682         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
25683         AC_SUBST these here, rather than just in sh-util/configure.in, so
25684         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
25685         all the same.
25686         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
25687         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
25688         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
25689         (AC_SUBST(POW_LIBM)): Likewise.
25690         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
25691
25692 2000-01-23  Jim Meyering  <meyering@lucent.com>
25693
25694         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
25695         obstack.c.
25696
25697 2000-01-22  Jim Meyering  <meyering@lucent.com>
25698
25699         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
25700
25701         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
25702
25703         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
25704         configure.in
25705         (AC_CHECK_HEADERS): Likewise for sh-utils.
25706         (AC_CHECK_HEADERS): Likewise for textutils.
25707         Merge the three lists of headers.
25708
25709         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
25710         from fileutils' configure.in.
25711
25712         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
25713         code. Moved tests into their own function (_jm_DECL_HEADERS) in
25714         check-decl.m4.
25715
25716         * m4/check-decl.m4: Use #if rather than #ifdef.
25717         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
25718         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
25719         (_jm_DECL_HEADERS): Define new function.
25720         (jm_CHECK_DECLARATIONS): Require it.
25721
25722 2000-01-22  Jim Meyering  <meyering@lucent.com>
25723
25724         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
25725         [! HAVE_DECL_STRTOULL]: Declare strtoull.
25726         Required for some AIX systems.  Reported by Christian Krackowizer.
25727         [TESTING] (main): New function.
25728
25729         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
25730         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
25731         letters.
25732
25733         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
25734         iswprint.
25735
25736         * lib/strverscmp.c (ISDIGIT): Define.
25737         (strverscmp): Use ISDIGIT, not isdigit.
25738
25739 2000-01-19  Jim Meyering  <meyering@lucent.com>
25740
25741         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
25742         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
25743         defines `struct timespec' in <sys/time.h>
25744
25745         * m4/c-bs-a.m4: Remove uses of changequote altogether.
25746         Thanks to Akim for explaining.
25747
25748 2000-01-17  Paul Eggert  <eggert@twinsun.com>
25749
25750         * lib/nanosleep.c (nanosleep):
25751         Don't use SA_INTERRUPT to decide whether to call sigaction, as
25752         POSIX.1 doesn't require SA_INTERRUPT and some systems
25753         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
25754         it's been part of POSIX.1 since day 1 (in 1988).
25755
25756 2000-01-17  Jim Meyering  <meyering@lucent.com>
25757
25758         * lib/interlock: Remove unused file.  Reported by François Pinard.
25759
25760 2000-01-16  Paul Eggert  <eggert@twinsun.com>
25761
25762         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
25763         alert, backslash, formfeed, and vertical tab unnecessarily in
25764         shell quoting style.
25765
25766 2000-01-16  Jim Meyering  <meyering@lucent.com>
25767
25768         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
25769         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
25770         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
25771         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
25772
25773 2000-01-16  Jim Meyering  <meyering@lucent.com>
25774
25775         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
25776         because the latter didn't work.
25777
25778 2000-01-15  Jim Meyering  <meyering@lucent.com>
25779
25780         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
25781         (AC_REPLACE_FUNCS): Add memcpy and memset.
25782         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
25783         Add strpbrk.
25784         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
25785
25786 2000-01-12  Jim Meyering  <meyering@lucent.com>
25787
25788         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
25789         (jm_PREREQ): Use it.
25790         (jm_PREREQ_READUTMP): New macro.
25791         (jm_PREREQ): Use it.
25792
25793 2000-01-11  Paul Eggert  <eggert@twinsun.com>
25794
25795         Quote multibyte characters correctly.
25796         * m4/c-bs-a.m4: New file.
25797         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
25798         (jm_PREREQ): Use it.
25799
25800 2000-01-11  Paul Eggert  <eggert@twinsun.com>
25801
25802         * m4/uintmax_t.m4: Port to autoconf 2.13.
25803
25804 2000-01-08  Jim Meyering  <meyering@ascend.com>
25805
25806         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
25807         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
25808
25809 2000-01-04  Jim Meyering  <meyering@ascend.com>
25810
25811         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
25812         jm_STRUCT_DIRENT_D_TYPE.
25813         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
25814         jm_STRUCT_DIRENT_D_INO.
25815         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
25816         jm_STRUCT_UTIMBUF.
25817         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
25818         renamings.
25819         * m4/utime.m4: Likewise.
25820
25821         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
25822         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
25823
25824 2000-01-03  Paul Eggert  <eggert@twinsun.com>
25825
25826         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
25827         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
25828
25829 2000-01-02  Jim Meyering  <meyering@ascend.com>
25830
25831         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
25832         remember if this is necessary.
25833
25834 1999-12-26  Jim Meyering  <meyering@ascend.com>
25835
25836         * m4/jm-macros.m4: Use it here.
25837         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
25838
25839 1999-12-23  Jim Meyering  <meyering@ascend.com>
25840
25841         * m4/jm-macros.m4: Check for clock_gettime (moved from
25842         fileutils/configure.in)
25843         Check for gettimeofday.
25844
25845 1999-12-20  Jim Meyering  <meyering@ascend.com>
25846
25847         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
25848         autoconf-2.14a-1999-12-20.
25849
25850 1999-12-19  Jim Meyering  <meyering@ascend.com>
25851
25852         * m4/lstat-slash.m4: New file.
25853         * m4/jm-macros.m4: Use the new macro:
25854         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
25855
25856 1999-12-07  Jim Meyering  <meyering@ascend.com>
25857
25858         * m4/perl.m4: Require that File::Compare be available, too.
25859         Too many systems seem to lack it.
25860
25861         * m4/strftime.m4: Add checks for most of the cpp macros tested in
25862         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
25863
25864 1999-11-18  Paul Eggert  <eggert@twinsun.com>
25865
25866         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
25867         problem with the QNX 4.25 shell, which doesn't propagate exit
25868         status of failed commands inside shell assignments.
25869
25870 1999-11-17  Jim Meyering  <meyering@ascend.com>
25871
25872         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
25873
25874 1999-11-07  Jim Meyering  <meyering@ascend.com>
25875
25876         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
25877
25878 1999-11-06  Jim Meyering  <meyering@ascend.com>
25879
25880         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
25881         * m4/jm-macros.m4 (jm_MACROS): Use it here.
25882
25883 1999-11-05  Jim Meyering  <meyering@ascend.com>
25884
25885         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
25886         configure.in of textutils, fileutils, and sh-utils into this one
25887         (shared between those packages) file.
25888         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
25889         AC_STRUCT_ST_BLKSIZE.
25890
25891 1999-11-03  Jim Meyering  <meyering@ascend.com>
25892
25893         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
25894         of AC_CHECK_TYPE checks includes unistd.h.
25895         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
25896         Suggestion from Akim Demaille.
25897
25898 1999-10-30  Jim Meyering  <meyering@ascend.com>
25899
25900         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
25901         m4-quoted string.
25902         * m4/ls-mntd-fs.m4: Likewise.
25903         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
25904         * m4/jm-winsz1.m4: Likewise.
25905
25906         * m4/const.m4: Remove file, since the fix made it into the experimental
25907         version of autoconf.
25908         * m4/mktime.m4: Likewise.
25909
25910         * m4/check-type.m4: Remove file, now that the latest version of
25911         AC_CHECK_TYPE takes a third arg to specify additional #includes.
25912
25913         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
25914         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
25915         AC_CHECK_TYPE.
25916
25917 1999-10-04  Jim Meyering  <meyering@ascend.com>
25918
25919         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
25920
25921 1999-09-22  Paul Eggert  <eggert@twinsun.com>
25922
25923         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
25924         2.95.1 bug with HP-UX 10.20.
25925
25926 1999-09-17  Jim Meyering  <meyering@ascend.com>
25927
25928         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
25929         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
25930         due to missing strdup (against sh-utils-2.0).
25931
25932 1999-08-29  Jim Meyering  <meyering@ascend.com>
25933
25934         * m4/jm-macros.m4: Require jm_BISON.
25935         * m4/bison.m4: New file.
25936
25937 1999-08-17  Paul Eggert  <eggert@twinsun.com>
25938
25939         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
25940         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
25941
25942 1999-08-05  Jim Meyering  <meyering@ascend.com>
25943
25944         * m4/getline.m4: Rename test file from conftestdata to conftest.data
25945         to avoid conflicts with `conftest' on 8+3 filesystems.
25946         Suggestion from Eli Zaretskii.
25947
25948 1999-08-04  Jim Meyering  <meyering@ascend.com>
25949
25950         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
25951         fileutils and sh-utils (textutils's getline test was inadequate).
25952         (AM_FUNC_GETLINE): Run this test.
25953         (AC_CHECK_FUNCS): Check for getdelim.
25954         Reported by Bob Proulx.
25955
25956 1999-08-02  Jim Meyering  <meyering@ascend.com>
25957
25958         * m4/jm-macros.m4: Add a comment.
25959
25960 1999-08-01  Paul Eggert  <eggert@twinsun.com>
25961
25962         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
25963         <inttypes.h> defines strtoumax as a macro (and not as a
25964         function).
25965
25966 1999-08-01  Paul Eggert  <eggert@twinsun.com>
25967
25968         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
25969         that we can shift, multiply and divide unsigned long long
25970         values; Ultrix cc can't do it.
25971
25972 1999-08-01  Paul Eggert  <eggert@twinsun.com>
25973
25974         * m4/mktime.m4: New file, which is a preview of what should appear
25975         in the next public autoconf release.
25976
25977 1999-08-01  Paul Eggert  <eggert@twinsun.com>
25978
25979         * m4/lfs.m4: Remove this file.
25980         * m4/largefile.m4: New file.  It contains the old contents of
25981         lfs.m4, except that all names with prefix AC_LFS have been
25982         changed to use the prefix AC_SYS_LARGEFILE instead, to be
25983         compatible with future autoconf versions.  Also, some minor m4
25984         quoting problems have been fixed.
25985
25986 1999-08-01  Paul Eggert  <eggert@twinsun.com>
25987
25988         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
25989         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
25990         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
25991         and simplify the shell code.
25992
25993 1999-08-01  Jim Meyering  <meyering@ascend.com>
25994
25995         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
25996         m4.
25997
25998 1999-07-20  Jim Meyering  <meyering@ascend.com>
25999
26000         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
26001
26002 1999-07-15  Jim Meyering  <meyering@ascend.com>
26003
26004         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
26005
26006 1999-05-22  Jim Meyering  <meyering@ascend.com>
26007
26008         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
26009
26010 1999-05-20  Jim Meyering  <meyering@ascend.com>
26011
26012         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
26013         Add a colon after each `then' in case $4 is empty.
26014
26015 1999-05-16  Jim Meyering  <meyering@ascend.com>
26016
26017         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
26018
26019 1999-05-10  Jim Meyering  <meyering@ascend.com>
26020
26021         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
26022
26023         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
26024         AC_FUNC_MKTIME.
26025
26026 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
26027
26028         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
26029
26030 1999-05-04  Paul Eggert  <eggert@twinsun.com>
26031
26032         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
26033         not CPPFLAGS, so that linking works correctly in IRIX.
26034
26035 1999-04-30  Paul Eggert  <eggert@twinsun.com>
26036
26037         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
26038
26039 1999-04-20  Paul Eggert  <eggert@twinsun.com>
26040
26041         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
26042         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
26043         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
26044         jm_AC_TYPE_UNSIGNED_LONG_LONG.
26045         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
26046
26047         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
26048
26049 1999-04-20  Jim Meyering  <meyering@ascend.com>
26050
26051         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
26052         AC_REPLACE xstroull if necessary.  From Paul Eggert.
26053         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
26054
26055 1999-04-18  Jim Meyering  <meyering@ascend.com>
26056
26057         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
26058         * m4/jm-macros.m4: Use it.
26059
26060 1999-04-06  Jim Meyering  <meyering@ascend.com>
26061
26062         * m4/strftime.m4: Remove test for %f.
26063
26064 1999-03-29  Jim Meyering  <meyering@ascend.com>
26065
26066         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
26067         superset of the AC_TYPE_* checks in the textutils, fileutils,
26068         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
26069         AC_TYPE_PID_T.
26070
26071 1999-03-28  Jim Meyering  <meyering@ascend.com>
26072
26073         * m4/jm-macros.m4: Define GNU_PACKAGE here.
26074         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
26075         replaced e.g., in the *.sh files of the sh-utils.
26076
26077 1999-03-20  Jim Meyering  <meyering@ascend.com>
26078
26079         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
26080         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
26081         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
26082
26083 1999-03-19  Jim Meyering  <meyering@ascend.com>
26084
26085         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
26086
26087 1999-03-12  Jim Meyering  <meyering@ascend.com>
26088
26089         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
26090
26091 1999-03-07  Jim Meyering  <meyering@ascend.com>
26092
26093         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
26094         declared.
26095
26096 1999-02-17  Jim Meyering  <meyering@ascend.com>
26097
26098         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
26099         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
26100
26101 1999-02-07  Jim Meyering  <meyering@ascend.com>
26102
26103         * m4/group-member.m4: New file -- extracted from sh-utils'
26104         configure.in.
26105
26106         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
26107         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
26108
26109 1999-02-06  Jim Meyering  <meyering@ascend.com>
26110
26111         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
26112         * m4/fnmatch.m4: Likewise.
26113         * m4/getgroups.m4: Likewise.
26114         * m4/lstat.m4: Likewise.
26115         * m4/malloc.m4: Likewise.
26116         * m4/putenv.m4: Likewise.
26117         * m4/realloc.m4: Likewise.
26118         * m4/regex.m4: Likewise.
26119         * m4/stat.m4: Likewise.
26120         * m4/strftime.m4: Likewise.
26121         Suggestion from Alain Magloire.
26122
26123         * m4/chown.m4: Use `.$ac_objext', not `.o'.
26124         * m4/fnmatch.m4: Likewise.
26125         * m4/getgroups.m4: Likewise.
26126         * m4/getline.m4: Likewise.
26127         * m4/lstat.m4: Likewise.
26128         * m4/malloc.m4: Likewise.
26129         * m4/memcmp.m4: Likewise.
26130         * m4/putenv.m4: Likewise.
26131         * m4/realloc.m4: Likewise.
26132         * m4/regex.m4: Likewise.
26133         * m4/stat.m4: Likewise.
26134         * m4/strftime.m4: Likewise.
26135         Suggestion from Alain Magloire.
26136
26137         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
26138         an argument.
26139
26140         * m4/regex.m4: Add a run-time Test for proper operation of
26141         re_compile_pattern.
26142
26143 1999-01-31  Jim Meyering  <meyering@ascend.com>
26144
26145         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
26146
26147 1999-01-30  Jim Meyering  <meyering@ascend.com>
26148
26149         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
26150
26151         * m4/jm-mktime.m4: Make this a wrapper around the official
26152         AM_FUNC_MKTIME rather than my private copy, now that the official one
26153         is up to date.
26154         * m4/mktime.m4: Remove file.
26155
26156         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
26157         * m4/uptime.m4: Likewise.
26158         * m4/uintmax_t.m4: Likewise.
26159
26160 1999-01-28  Jim Meyering  <meyering@ascend.com>
26161
26162         * m4/jm-macros.m4: Use jm_AFS.
26163         * m4/afs.m4: New file (from fileutils' configure.in).
26164
26165         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
26166         * m4/chown.m4: Likewise.
26167         * m4/d-ino.m4: Likewise.
26168         * m4/d-type.m4: Likewise.
26169         * m4/fnmatch.m4: Likewise.
26170         * m4/getgroups.m4: Likewise.
26171         * m4/gettext.m4: Likewise.
26172         * m4/jm-mktime.m4: Likewise.
26173         * m4/jm-winsz2.m4: Likewise.
26174         * m4/lcmessage.m4: Likewise.
26175         * m4/ls-mntd-fs.m4: Likewise.
26176         * m4/malloc.m4: Likewise.
26177         * m4/memcmp.m4: Likewise.
26178         * m4/putenv.m4: Likewise.
26179         * m4/realloc.m4: Likewise.
26180         * m4/st_mtim.m4: Likewise.
26181         * m4/strftime.m4: Likewise.
26182
26183 1999-01-16  Jim Meyering  <meyering@ascend.com>
26184
26185         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
26186         (ARGMATCH_DIE_DECL): Define.
26187
26188 1999-01-12  Jim Meyering  <meyering@ascend.com>
26189
26190         * m4/Makefile.am.in: Rewrite to avoid using fmt.
26191         Reported by Lars Hecking.
26192
26193 1999-01-10  Jim Meyering  <meyering@ascend.com>
26194
26195         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
26196         gross kludge.
26197         * m4/inttypes_h.m4: Likewise.
26198         * m4/lstat.m4: Likewise.
26199         * m4/malloc.m4: Likewise.
26200         * m4/readdir.m4: Likewise.
26201         * m4/realloc.m4: Likewise.
26202         * m4/st_dm_mode.m4: Likewise.
26203         * m4/stat.m4: Likewise.
26204         * m4/utimbuf.m4: Likewise.
26205         * m4/utimes.m4: Likewise.
26206
26207         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
26208         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
26209         comments in config.h.in are meaningful.
26210
26211         * m4/jm-macros.m4: Require autoconf-2.13 here.
26212
26213         * m4/regex.m4: By default, don't use the included regex.c on systems
26214         with glibc 2.  Suggestion from Uli Drepper.
26215
26216 1999-01-02  Jim Meyering  <meyering@ascend.com>
26217
26218         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
26219
26220 1998-12-18  Jim Meyering  <meyering@ascend.com>
26221
26222         * m4/Makefile.am.in (Makefile.am): Simplify rule.
26223         Based on a suggestion from Lars Hecking.
26224
26225 1998-11-16  Paul Eggert  <eggert@twinsun.com>
26226
26227         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
26228
26229 1998-11-16  Jim Meyering  <meyering@ascend.com>
26230
26231         * m4/lfs.m4: Double-quote the `uname...` expression.
26232
26233 1998-11-14  Jim Meyering  <meyering@ascend.com>
26234
26235         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
26236         * m4/stat.m4: Likewise.
26237
26238 1998-11-03  Jim Meyering  <meyering@ascend.com>
26239
26240         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
26241         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
26242
26243 1998-10-18  Jim Meyering  <meyering@ascend.com>
26244
26245         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
26246
26247 1998-10-17  Jim Meyering  <meyering@ascend.com>
26248
26249         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
26250         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
26251         calls for those previously hard-coded headers.  Instead, take a new
26252         parameter.
26253         (jm_CHECK_DECLARATIONS): Reflect interface change.
26254         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
26255         (jm_CHECK_DECL_LOCALTIME_R): New macro.
26256
26257         * m4/mktime.m4: Test for spring-forward gap before long-running test.
26258
26259 1998-10-14  Jim Meyering  <meyering@ascend.com>
26260
26261         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
26262         instead of "TZ=America/Vancouver".  From Paul Eggert.
26263
26264 1998-10-11  Jim Meyering  <meyering@ascend.com>
26265
26266         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
26267         This adds a test for a recently added compatibility fix for mktime.c.
26268         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
26269
26270 1998-09-27  Jim Meyering  <meyering@ascend.com>
26271
26272         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
26273
26274         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
26275         ../configure.in, including a change from Gordon Matzigkeit to allow
26276         cross-compiling for the Hurd.
26277
26278         * m4/glibc.m4: New file/macro to test for the GNU C Library
26279         versions 1 and 2.  From Gordon Matzigkeit.
26280         Indent.
26281
26282 1998-09-21  Jim Meyering  <meyering@ascend.com>
26283
26284         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
26285
26286 1998-08-18  Paul Eggert  <eggert@twinsun.com>
26287
26288         Port nanosecond-resolution times to UnixWare 2.1.2 and
26289         pedantic Solaris 2.6.
26290
26291         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
26292         AC_STRUCT_ST_MTIM.
26293         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
26294         Generate name of ns member, instead of just 1 or undef.
26295         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
26296
26297 1998-08-15  Jim Meyering  <meyering@ascend.com>
26298
26299         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
26300         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
26301         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
26302         instead of jm_TYPE_SSIZE_T.
26303
26304 1998-08-12  Jim Meyering  <meyering@ascend.com>
26305
26306         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
26307
26308 1998-08-02  Jim Meyering  <meyering@ascend.com>
26309
26310         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
26311         in acconfig.h manually.
26312
26313 1998-07-31  Paul Eggert  <eggert@twinsun.com>
26314
26315         * m4/st_mtim.m4: New file.
26316
26317 1998-07-28  Jim Meyering  <meyering@ascend.com>
26318
26319         * m4/utimes.m4: Undef stat.
26320
26321 1998-07-25  Jim Meyering  <meyering@ascend.com>
26322
26323         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
26324         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
26325
26326 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
26327
26328         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
26329         uid and gid actually remain unchanged.
26330
26331 1998-07-07  Jim Meyering  <meyering@ascend.com>
26332
26333         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
26334
26335 1998-07-04  Jim Meyering  <meyering@ascend.com>
26336
26337         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
26338         to prove that this macro can be used in packages without regex.c.
26339
26340 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
26341
26342         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
26343         is to be used.
26344
26345 1998-07-03  Jim Meyering  <meyering@ascend.com>
26346
26347         * m4/gettext.m4: Add -lintl if it's found to be necessary.
26348
26349         * m4/gettext.m4: New file -- from gettext-0.10.35.
26350         * m4/lcmessage.m4: Likewise.
26351         * m4/progtest.m4: Likewise.
26352
26353         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
26354         * m4/jm-macros.m4: Require the new macro.
26355
26356 1998-06-29  Jim Meyering  <meyering@ascend.com>
26357
26358         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
26359         for the definition of NGROUPS (used in a system header included
26360         by sys/mount.h).
26361
26362 1998-06-28  Jim Meyering  <meyering@ascend.com>
26363
26364         * m4/ls-mntd-fs.m4: New file.
26365         * m4/fstypename.m4: New file.
26366
26367         * m4/jm-macros.m4: Require the new macro.
26368         * m4/jm-glibc-io.m4: New file.
26369
26370 1998-05-19  Jim Meyering  <meyering@ascend.com>
26371
26372         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
26373         * m4/lchown.m4: New file.
26374
26375         * m4/Makefile.am.in: New file.
26376         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
26377
26378 1998-05-14  Jim Meyering  <meyering@ascend.com>
26379
26380         * m4/Makefile.am (EXTRA_DIST): Add them.
26381         * m4/jm-macros.m4: New file.
26382         * m4/utimbuf.m4: New file.
26383
26384 1998-05-12  Jim Meyering  <meyering@ascend.com>
26385
26386         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
26387
26388 1998-05-11  Jim Meyering  <meyering@ascend.com>
26389
26390         * m4/isc-posix.m4: New file.
26391
26392 1998-05-10  Jim Meyering  <meyering@ascend.com>
26393
26394         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
26395
26396 1998-05-09  Jim Meyering  <meyering@ascend.com>
26397
26398         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
26399         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
26400         with automake.
26401
26402         * m4/ssize_t.m4: New file.
26403         * m4/mktime.m4: Remove file -- the new automake has this now.
26404
26405 1998-04-26  Jim Meyering  <meyering@ascend.com>
26406
26407         * m4/assert.m4: New file.
26408         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
26409
26410 1998-04-05  Jim Meyering  <meyering@ascend.com>
26411
26412         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
26413         (jm_PREREQ): Use it here.
26414
26415 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
26416
26417         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
26418         in acconfig.h.
26419
26420 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
26421
26422         * m4/prereq.m4: New file.
26423         * m4/error.m4: New file.
26424         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
26425
26426 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
26427
26428         * m4/getline.m4: Don't set am_cv_func_working_getline before the
26429         cache-check for the same variable -- that defeated the purpose of
26430         the test; the test program was never run.  This was a problem only
26431         on systems with losing getline functions -- HP-UX 10.20 is one.
26432         Reported by Bjorn Helgaas.
26433
26434 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
26435
26436         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
26437
26438 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
26439
26440         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
26441
26442         * m4/const.m4: New file.  Use an initializer in this declaration
26443         typedef int charset[2]; const charset x;
26444         Reported by Bob Glickstein.
26445
26446 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
26447
26448         * m4/chown.m4: Fix reversed types on -1 args to chown.
26449         From Kaveh Ghazi.
26450
26451 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
26452
26453         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
26454         Add lseek and memchr.
26455
26456         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
26457         T.E.Dickey <dickey@clark.net> said that some older preprocessors
26458         have a 20-character limit on names.
26459
26460 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
26461
26462         * m4/inttypes_h.m4: New file.
26463         * m4/uintmax_t.m4: New file.
26464         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
26465
26466 Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
26467   Free Software Foundation, Inc.
26468 Copying and distribution of this file, with or without modification,
26469 are permitted provided the copyright notice and this notice are preserved.