Addendum to last patch.
[gnulib.git] / ChangeLog
1 2007-02-04  Bruno Haible  <bruno@clisp.org>
2
3         Simplify handling of strncasecmp.
4         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
5         the conditional link warning.
6         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
7         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
8         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
9         * modules/strcase (configure.ac): Don't invoke
10         gl_STRING_MODULE_INDICATOR.
11         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
12
13 2007-02-04  Bruno Haible  <bruno@clisp.org>
14
15         New module mbscasecmp, reduced goal of strcasecmp.
16         * modules/mbscasecmp: New file.
17         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
18         (mbscasecmp): Renamed from strcasecmp.
19         * lib/strcasecmp.c: Don't include mbuiter.h.
20         (strcasecmp): Remove support for multibyte locales.
21         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
22         Change the conditional link warning.
23         (mbscasecmp): New declaration.
24         * m4/mbscasecmp.m4: New file.
25         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
26         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
27         REPLACE_STRCASECMP.
28         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
29         GNULIB_MBSCASECMP.
30         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
31         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
32         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
33
34 2007-02-04  Bruno Haible  <bruno@clisp.org>
35
36         New module mbsstr. Remove module strstr.
37         * modules/mbsstr: New file.
38         * modules/strstr: Remove file.
39         * lib/mbsstr.c: Renamed from lib/strstr.c.
40         (mbsstr): Renamed from strstr.
41         * lib/string_.h (strstr): Remove declaration. Change the conditional
42         link warning.
43         (mbsstr): New declaration.
44         * m4/mbsstr.m4: New file.
45         * m4/strstr.m4: Remove file.
46         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
47         REPLACE_STRSTR.
48         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
49         Don't initialize GNULIB_STRSTR.
50         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
51         substitute GNULIB_STRSTR and REPLACE_STRSTR.
52         * MODULES.html.sh (Internationalization functions): Add mbsstr.
53         (Support for systems lacking ANSI C 89): Remove strstr.
54
55 2007-02-04  Bruno Haible  <bruno@clisp.org>
56
57         New module mbsrchr.
58         * modules/mbsrchr: New file.
59         * lib/mbsrchr.c: New file.
60         * lib/string_.h (strrchr): Add a conditional link warning.
61         (mbsrchr): New declaration.
62         * m4/mbsrchr.m4: New file.
63         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64         GNULIB_MBSRCHR.
65         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
66         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
67
68 2007-02-04  Bruno Haible  <bruno@clisp.org>
69
70         New module mbschr.
71         * modules/mbschr: New file.
72         * lib/mbschr.c: New file.
73         * lib/string_.h (strchr): Add a conditional link warning.
74         (mbschr): New declaration.
75         * m4/mbschr.m4: New file.
76         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
77         GNULIB_MBSCHR.
78         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
79         * MODULES.html.sh (Internationalization functions): Add mbschr.
80
81 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
82
83         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
84
85         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
86
87 2007-02-04  Bruno Haible  <bruno@clisp.org>
88
89         New module description section 'configure.ac-early'.
90         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
91         (func_get_autoconf_early_snippet): New function.
92         (func_import, func_create_testdir): Use it. Remove special cases for
93         modules 'extensions' and 'lock'.
94         * modules/extensions (configure.ac-early): Require
95         gl_USE_SYSTEM_EXTENSIONS.
96         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
97
98 2007-02-04  Bruno Haible  <bruno@clisp.org>
99
100         Make use of gcj-4.3's -fsource and -ftarget option.
101         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
102         and if so try the options -fsource and -ftarget.
103         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
104         source_version, ftarget_option, target_version arguments.
105         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
106         (is_envjavac_oldgcj_14_14_usable): Renamed from
107         is_envjavac_gcj_14_14_usable.
108         (is_envjavac_oldgcj_14_13_usable): Renamed from
109         is_envjavac_gcj_14_13_usable.
110         (is_gcj_present): Update.
111         (is_gcj_43, is_gcj43_usable): New functions.
112         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
113         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
114         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
115         try the options -fsource and -ftarget.
116
117 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
118
119         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
120         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
121         larger value.
122
123 2007-02-03  Jim Meyering  <jim@meyering.net>
124
125         Give tools a better chance to allocate space for very large buffers.
126         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
127
128         Make pwd and readlink work also when run with an unreadable parent dir
129         on systems with openat support.
130         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
131         provided getcwd function, even when we have openat support.
132         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
133
134 2007-02-02  Bruno Haible  <bruno@clisp.org>
135
136         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
137         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
138         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
139         portability problems if one of these functions is only used on specific
140         platforms.
141         Reported by Paul Eggert.
142
143 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
144
145         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
146         is causing more trouble than it's curing.
147         * lib/regex_internal.h (__mempcpy): Remove.
148         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
149         (and make the code a tad smaller to boot).
150         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
151
152 2007-02-02  Jim Meyering  <jim@meyering.net>
153
154         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
155         section, not in the Makefile.am: one.
156
157 2007-02-02  Eric Blake  <ebb9@byu.net>
158
159         * lib/strchrnul.c: Always include config.h first.
160
161         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
162         gnulib strstr is not necessary here.
163
164 2007-02-02  Simon Josefsson  <simon@josefsson.org>
165
166         * m4/socklen.m4: Fix typo.
167
168 2007-02-02  Eric Blake  <ebb9@byu.net>
169
170         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
171         * modules/netinet_in (Makefile.am): Likewise.
172
173 2007-02-01  Bruno Haible  <bruno@clisp.org>
174
175         * lib/string_.h (GL_LINK_WARNING): New macro.
176         (strcasecmp, strstr, strcasestr): If provided by the system,
177         conditionally define as a macro that leads to a warning instead of to
178         an error.
179         (strncasecmp): Conditionally define as a macro that leads to a warning.
180
181 2007-02-01  Jim Meyering  <jim@meyering.net>
182
183         Give tools a better chance to allocate space for very large buffers.
184         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
185
186 2007-02-01  Karl Berry  <karl@gnu.org>
187
188         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
189
190 2007-02-01  Bruno Haible  <bruno@clisp.org>
191
192         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
193         renamings.
194
195 2007-02-01  Eric Blake  <ebb9@byu.net>
196
197         * modules/regex (Depends-on): Revert dependence on mempcpy.
198         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
199         module's definition of mempcpy.
200         Reported by Paul Eggert.
201
202 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
203
204         * lib/string_.h: If the gnulib module XYZ is not present, undefine
205         the symbol XYZ before redefining it.  This fixes a problem with
206         programs that don't use XYZ, when compiled on systems that define
207         XYZ to something else.
208
209 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
210
211         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
212         occurs when "mkdir -m foo" creates a setgid directory that is (1)
213         writeable to group or other and (2) is intended to have a special
214         mode bit that is set or cleared.  In such a case, the directory
215         should be neither group- nor other-writeable until the special
216         mode bits are right.
217
218 2007-01-31  Eric Blake  <ebb9@byu.net>
219
220         * modules/mountlist (Depends-on): Add strstr.
221
222         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
223         bug.
224         * modules/string (Makefile.am): Remove redundant replacement.
225         * modules/regex (Depends-on): Add mempcpy.
226
227 2007-01-31  Bruno Haible  <bruno@clisp.org>
228
229         New module description field 'Link'.
230         * gnulib-tool (func_usage): Document --extract-link-directive.
231         (sed_extract_prog): Recognize 'Link' directive.
232         (func_get_link_directive): New function.
233         (func_import): Show summary of link directives.
234         Handle --extract-link-directive option.
235         * modules/acl (Link): New section.
236         * modules/clock-time (Link): New section.
237         * modules/euidaccess (Link): New section.
238         * modules/gettext (Link): New section.
239         * modules/iconv (Link): New section.
240         * modules/lock (Link): New section.
241         * modules/nanosleep (Link): New section.
242         * modules/readline (Link): New section.
243
244 2007-01-27  Bruno Haible  <bruno@clisp.org>
245
246         Enforce the use of gnulib modules for unportable <string.h> functions.
247         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
248         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
249         (gl_HEADER_STRING_H_BODY): Require it.
250         * lib/string_.h: If the gnulib module XYZ is not present, redefine
251         the symbol XYZ to one that gives a link error.
252         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
253         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
254         * modules/mempcpy (configure.ac): Likewise.
255         * modules/memrchr (configure.ac): Likewise.
256         * modules/stpcpy (configure.ac): Likewise.
257         * modules/stpncpy (configure.ac): Likewise.
258         * modules/strcase (configure.ac): Likewise.
259         * modules/strcasestr (configure.ac): Likewise.
260         * modules/strchrnul (configure.ac): Likewise.
261         * modules/strdup (configure.ac): Likewise.
262         * modules/strndup (configure.ac): Likewise.
263         * modules/strnlen (configure.ac): Likewise.
264         * modules/strpbrk (configure.ac): Likewise.
265         * modules/strsep (configure.ac): Likewise.
266         * modules/strstr (configure.ac): Likewise.
267         * modules/strtok_r (configure.ac): Likewise.
268
269 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
270
271         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
272
273 2007-01-30  Jim Meyering  <jim@meyering.net>
274
275         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
276
277 2007-01-29  Bruno Haible  <bruno@clisp.org>
278
279         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
280         * lib/execute.c: Likewise.
281         * lib/pipe.c: Likewise.
282         * lib/printf-args.h: Likewise.
283         * lib/printf-args.c: Likewise.
284         * lib/printf-parse.c: Likewise.
285         * lib/vasnprintf.c: Likewise.
286
287 2007-01-29  Eric Blake  <ebb9@byu.net>
288
289         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
290         declaration.
291
292 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
293
294         * lib/strptime.h (strptime): Use 'restrict' for args where
295         POSIX requires this.
296         * lib/strptime.c (strptime): Likewise.
297         Change license notice from LGPL to GPL, since gnulib-tool will
298         change this as needed.
299         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
300         defined.
301         Include "strptime.h" first, to check interface.
302         Do not #undef _LIBC and _NL_CURRENT.
303         Do not include <stdlib.h>; no longer needed.
304         Include "time_r.h" and declare ptime_locale_status
305         only if _LIBC is not defined.
306         (__P): Remove unused macro.
307         (match_string): Bring back glibc version, but use it only if _LIBC
308         is defined.
309         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
310         Remove unnecessary assertion and abort() call.
311         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
312         * m4/strptime.m4: Fix serial number comment.
313         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
314         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
315         (Depends-on): Add time_r.
316
317 2007-01-29  Bruno Haible  <bruno@clisp.org>
318
319         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
320         strptime.
321         * modules/strptime (Depends-on): Add stdbool.
322         * lib/strptime.h: Include <time.h> always. Add comments.
323
324 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
325
326         * modules/strptime: New file.
327         * lib/strptime.h: New file.
328         * lib/strptime.c: New file.
329         * m4/strptime.m4: New file.
330
331 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
332
333         * MODULES.html.sh: New module mpsort.
334         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
335
336         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
337         a circularity problem with HP-UX ia64 reported by Bob Proulx in
338         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
339         All uses changed.
340         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
341         All uses changed.
342         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
343         to _Restrict_.
344         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
345         the parameter matches the prototype.
346
347 2007-01-28  Jim Meyering  <jim@meyering.net>
348
349         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
350         sys/time.h here, reverting that part of the previous patch:
351         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
352
353 2007-01-28  Bruno Haible  <bruno@clisp.org>
354
355         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
356         value of $(SYS_TIME_H).
357         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
358         remove it conditionally, too. [added by Jim Meyering]
359         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
360         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
361         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
362         GETTIMEOFDAY_REPLACEMENT to 1.
363
364 2007-01-28  Bruno Haible  <bruno@clisp.org>
365
366         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
367         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
368         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
369         Set UNISTD_H instead of UNISTD_H2.
370         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
371
372 2007-01-28  Bruno Haible  <bruno@clisp.org>
373
374         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
375         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
376
377 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
378
379         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
380         (func_create_testdir): Ensure C locale for `grep' and `tr'
381         character ranges.
382         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
383         ACLOCAL_AMFLAGS parsing state machine.
384
385 2007-01-27  Bruno Haible  <bruno@clisp.org>
386
387         * modules/unistr/base: Update.
388
389 2007-01-27  Bruno Haible  <bruno@clisp.org>
390
391         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
392         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
393         * modules/unistr/u32-mbtouc-unsafe: Renamed from
394         modules/unistr/u32-mbtouc.
395         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
396         * lib/unistr.h: Update.
397         * lib/linebreak.c: Update.
398         * modules/unistr/u32-mbtouc: Renamed from
399         modules/unistr/u32-mbtouc-safe.
400         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
401         * lib/unistr.h: Update.
402         * lib/unistr/u32-to-u8.c: Update.
403         * lib/unistr/u32-to-u16.c: Update.
404
405 2007-01-27  Bruno Haible  <bruno@clisp.org>
406
407         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
408         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
409         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
410         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
411         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
412         * modules/unistr/u16-mbtouc-unsafe: Renamed from
413         modules/unistr/u16-mbtouc.
414         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
415         * lib/unistr.h: Update.
416         * lib/linebreak.c: Update.
417         * modules/linebreak: Update.
418         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
419         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
420         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
421         * modules/unistr/u16-mbtouc: Renamed from
422         modules/unistr/u16-mbtouc-safe.
423         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
424         * lib/unistr.h: Update.
425         * lib/unistr/u16-to-u8.c: Update.
426         * modules/unistr/u16-to-u8: Update.
427         * lib/unistr/u16-to-u32.c: Update.
428         * modules/unistr/u16-to-u32: Update.
429
430 2007-01-27  Bruno Haible  <bruno@clisp.org>
431
432         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
433         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
434         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
435         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
436         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
437         * modules/unistr/u8-mbtouc-unsafe: Renamed from
438         modules/unistr/u8-mbtouc.
439         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
440         * lib/unistr.h: Update.
441         * lib/striconveh.c: Update.
442         * modules/striconveh: Update.
443         * lib/linebreak.c: Update.
444         * modules/linebreak: Update.
445         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
446         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
447         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
448         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
449         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
450         * lib/unistr.h: Update.
451         * lib/striconveh.c: Update.
452         * modules/striconveh: Update.
453         * lib/unistr/u8-to-u16.c: Update.
454         * modules/unistr/u8-to-u16: Update.
455         * lib/unistr/u8-to-u32.c: Update.
456         * modules/unistr/u8-to-u32: Update.
457
458 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
459
460         Sync from Libtool.
461         * lib/argz.c: Do not include strings.h nor memory.h, include
462         string.h unconditionally.  Patch by Simon Josefsson.
463
464 2007-01-27  Bruno Haible  <bruno@clisp.org>
465
466         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
467         from gl_HEADER_STRING_H_BODY.
468         (gl_HEADER_STRING_H_BODY): Require it.
469         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
470         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
471         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
472         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
473         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
474         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
475         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
476         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
477         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
478         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
479         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
480         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
481         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
482         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
483         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
484
485 2007-01-27  Bruno Haible  <bruno@clisp.org>
486
487         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
488         check_PROGRAMS into noinst_PROGRAMS.
489         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
490         check_PROGRAMS in this case.
491         (func_import): Set for_test to false.
492         (func_create_testdir): Set for_test to true.
493
494 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
495             Bruno Haible  <bruno@clisp.org>
496
497         * modules/strcasestr (Files): Remove lib/strcasestr.h.
498         (Depends-on): Add string.
499         (Includes): Use <string.h> instead of strcasestr.h.
500         * modules/string (Makefile.am): Also substitute the value of
501         REPLACE_STRCASESTR.
502         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
503         assume strcasestr is declared in <string.h> not <strings.h>. Also
504         set REPLACE_STRCASESTR.
505         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
506         REPLACE_STRCASESTR.
507         * lib/strcasestr.h: Remove file.
508         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
509         * lib/string_.h (strcasestr): New declaration.
510
511 2007-01-27  Bruno Haible  <bruno@clisp.org>
512
513         * lib/string_.h: Use 'extern'.
514
515 2007-01-27  Jim Meyering  <jim@meyering.net>
516
517         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
518         of set-but-not-used local, "q".
519
520         * lib/mempcpy.c: Include <config.h> before <string.h>.
521         This fixes a compilation error on HP-UX, due to the system's
522         "restrict"-using mempcpy prototype.
523
524 2007-01-26  Bruno Haible  <bruno@clisp.org>
525
526         Small optimization.
527         * lib/javacomp.c: Include c-strstr.h.
528          (is_envjavac_gcj): Use c_strstr instead of strstr.
529         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
530
531 2007-01-26  Bruno Haible  <bruno@clisp.org>
532
533         * MODULES.html.sh (Unicode string functions): Add the new modules.
534
535         * modules/uniconv/u32-strconv-to-locale: New file.
536         * lib/uniconv/u32-strconv-to-locale.c: New file.
537
538         * modules/uniconv/u16-strconv-to-locale: New file.
539         * lib/uniconv/u16-strconv-to-locale.c: New file.
540
541         * modules/uniconv/u8-strconv-to-locale: New file.
542         * lib/uniconv/u8-strconv-to-locale.c: New file.
543
544         * modules/uniconv/u32-strconv-from-locale: New file.
545         * lib/uniconv/u32-strconv-from-locale.c: New file.
546
547         * modules/uniconv/u16-strconv-from-locale: New file.
548         * lib/uniconv/u16-strconv-from-locale.c: New file.
549
550         * modules/uniconv/u8-strconv-from-locale: New file.
551         * lib/uniconv/u8-strconv-from-locale.c: New file.
552
553         * modules/uniconv/u32-strconv-to-enc: New file.
554         * lib/uniconv/u32-strconv-to-enc.c: New file.
555         * modules/uniconv/u32-strconv-to-enc-tests: New file.
556         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
557
558         * modules/uniconv/u16-strconv-to-enc: New file.
559         * lib/uniconv/u16-strconv-to-enc.c: New file.
560         * lib/uniconv/u-strconv-to-enc.h: New file.
561         * modules/uniconv/u16-strconv-to-enc-tests: New file.
562         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
563
564         * modules/uniconv/u8-strconv-to-enc: New file.
565         * lib/uniconv/u8-strconv-to-enc.c: New file.
566         * modules/uniconv/u8-strconv-to-enc-tests: New file.
567         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
568
569         * modules/uniconv/u32-strconv-from-enc: New file.
570         * lib/uniconv/u32-strconv-from-enc.c: New file.
571         * modules/uniconv/u32-strconv-from-enc-tests: New file.
572         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
573
574         * modules/uniconv/u16-strconv-from-enc: New file.
575         * lib/uniconv/u16-strconv-from-enc.c: New file.
576         * modules/uniconv/u16-strconv-from-enc-tests: New file.
577         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
578
579         * modules/uniconv/u8-strconv-from-enc: New file.
580         * lib/uniconv/u8-strconv-from-enc.c: New file.
581         * lib/uniconv/u-strconv-from-enc.h: New file.
582         * modules/uniconv/u8-strconv-from-enc-tests: New file.
583         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
584
585         * modules/uniconv/u32-conv-from-enc: New file.
586         * lib/uniconv/u32-conv-from-enc.c: New file.
587         * modules/uniconv/u32-conv-from-enc-tests: New file.
588         * tests/uniconv/test-u32-conv-from-enc.c: New file.
589
590         * modules/uniconv/u16-conv-from-enc: New file.
591         * lib/uniconv/u16-conv-from-enc.c: New file.
592         * lib/uniconv/u-conv-from-enc.h: New file.
593         * modules/uniconv/u16-conv-from-enc-tests: New file.
594         * tests/uniconv/test-u16-conv-from-enc.c: New file.
595
596         * modules/uniconv/u8-conv-from-enc: New file.
597         * lib/uniconv/u8-conv-from-enc.c: New file.
598         * modules/uniconv/u8-conv-from-enc-tests: New file.
599         * tests/uniconv/test-u8-conv-from-enc.c: New file.
600
601         * modules/uniconv/base: New file.
602         * lib/uniconv.h: New file.
603
604 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
605
606         * doc/gnulib-tool.texi (Initial import): Update to match current
607         behavior with strdup module.
608         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
609         * lib/memmem.h: Remove; all uses removed.  This is now done
610         by <string.h>.
611         * lib/mempcpy.h: Likewise.
612         * lib/memrchr.h: Likewise.
613         * lib/stpcpy.h: Likewise.
614         * lib/stpncpy.h: Likewise.
615         * lib/strcase.h: Likewise.
616         * lib/strchrnul.h: Likewise.
617         * lib/strdup.h: Likewise.
618         * lib/strndup.h: Likewise.
619         * lib/strnlen.h: Likewise.
620         * lib/strpbrk.h: Likewise.
621         * lib/strsep.h: Likewise.
622         * lib/strstr.h: Likewise.
623         * lib/strtok_r.h: Likewise.
624         * lib/string_.h: New file.
625         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
626         Rely on <string.h> instead.
627         * lib/canon-host.c: Likewise.
628         * lib/chdir-long.c: Likewise.
629         * lib/concatpath.c: Likewise.
630         * lib/exclude.c: Likewise.
631         * lib/fchdir.c: Likewise.
632         * lib/getaddrinfo.c: Likewise.
633         * lib/getcwd.c: Likewise.
634         * lib/getsubopt.c: Likewise.
635         * lib/glob.c: Likewise.
636         * lib/hard-locale.c: Likewise.
637         * lib/iconvme.c: Likewise.
638         * lib/javacomp.c: Likewise.
639         * lib/mempcpy.c: Likewise.
640         * lib/memrchr.c: Likewise.
641         * lib/regex_internal.h: Likewise.
642         * lib/stpncpy.c: Likewise.
643         * lib/strcasecmp.c: Likewise.
644         * lib/strchrnul.c: Likewise.
645         * lib/strdup.c: Likewise.
646         * lib/striconv.c: Likewise.
647         * lib/striconveh.c: Likewise.
648         * lib/striconveha.c: Likewise.
649         * lib/strncasecmp.c: Likewise.
650         * lib/strndup.c: Likewise.
651         * lib/strnlen.c: Likewise.
652         * lib/strsep.c: Likewise.
653         * lib/strstr.c: Likewise.
654         * lib/strtok_r.c: Likewise.
655         * lib/userspec.c: Likewise.
656         * lib/w32spawn.h: Likewise.
657         * lib/xstrndup.c: Likewise.
658         * lib/mountlist.c (strstr): Remove decl.
659         * m4/string_h.m4: New file.
660         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
661         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
662         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
663         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
664         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
665         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
666         Set REPLACE_STRCASECMP if necessary.
667         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
668         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
669         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
670         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
671         HAVE_DECL_STRDUP if necessary.
672         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
673         since gl_FUNC_STRNDUP does that now.
674         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
675         Check for decl here...
676         (gl_PREREQ_STRNLEN): ... not here.
677         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
678         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
679         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
680         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
681         necessary.
682         * modules/string: New file.
683         * modules/memmem (Files): Remove special-purpose include file.
684         (Depends-on): Add string.
685         (Include): Include <string.h>, not the removed file.
686         * modules/mempcpy: Likewise.
687         * modules/memrchr: Likewise.
688         * modules/stpcpy: Likewise.
689         * modules/stpncpy: Likewise.
690         * modules/strcase: Likewise.
691         * modules/strchrnul: Likewise.
692         * modules/strdup: Likewise.
693         * modules/strndup: Likewise.
694         * modules/strnlen: Likewise.
695         * modules/strpbrk: Likewise.
696         * modules/strsep: Likewise.
697         * modules/strstr: Likewise.
698         * modules/strtok_r: Likewise.
699         * tests/test-dirname.c: Don't include "strdup.h", since
700         <string.h> now suffices.
701         * tests/test-memmem.c: Don't include "memmem.h", since
702         <string.h> now suffices.
703
704 2007-01-25  Bruno Haible  <bruno@clisp.org>
705
706         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
707         *resultp is 0.
708
709         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
710         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
711         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
712         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
713
714         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
715         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
716         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
717         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
718         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
719         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
720
721 2007-01-24  Bruno Haible  <bruno@clisp.org>
722
723         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
724         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
725         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
726         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
727         gl_FUNC_FTS_CORE.
728         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
729         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
730         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
731         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
732         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
733         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
734         gl_FUNC_FCHOWNAT.
735         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
736         gl_FUNC_STRFTIME.
737         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
738         Reported by Ralf Wildenhues.
739
740 2007-01-24  Bruno Haible  <bruno@clisp.org>
741
742         Drop AC_REQUIRE calls that are redundant with the module dependencies.
743         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
744         gl_GETADDRINFO.
745         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
746         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
747         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
748
749 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
750
751         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
752         Don't use 'exit'; just return from 'main'.
753         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
754
755         * lib/fnmatch_.h: Readjust white space and comments to match
756         glibc, to avoid spurious diffs.
757
758 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
759
760         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
761         2004-12-01 change by Jakub Jelinek, since this code won't compile
762         if !LIBC.  Problem reported by Bob Proulx.
763
764 2007-01-23  Bruno Haible  <bruno@clisp.org>
765
766         * lib/striconveh.c: Include c-strcaseeq.h.
767         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
768         * modules/striconveh (Depends-on): Add c-strcaseeq.
769
770 2007-01-23  Bruno Haible  <bruno@clisp.org>
771
772         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
773
774         * modules/c-strcaseeq: New file.
775         * lib/c-strcaseeq.h: New file.
776
777         * modules/streq: New file.
778         * lib/streq.h: New file.
779
780 2007-01-23  Bruno Haible  <bruno@clisp.org>
781
782         * modules/striconveha-tests: New file.
783         * tests/test-striconveha.c: New file.
784
785         * lib/striconveha.h: Include <stdbool.h>.
786         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
787         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
788         (mem_iconveha_notranslit): Renamed from mem_iconveha.
789         (mem_iconveha): New function.
790         (str_iconveha_notranslit): Renamed from str_iconveha.
791         (str_iconveha): New function.
792         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
793         c-strcase.
794
795 2007-01-23  Bruno Haible  <bruno@clisp.org>
796
797         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
798         encodings without forgiving before trying any encoding with handler.
799         (str_iconveha): Try all encodings without forgiving before trying any
800         encoding with handler.
801
802 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
803
804         Import the following changes from libc.
805
806         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
807
808         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
809
810         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
811
812         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
813         normal_bracket label.
814
815         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
816
817         [BZ #361]
818         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
819         to normal_bracket after fetching the next character.
820
821 2007-01-22  Bruno Haible  <bruno@clisp.org>
822
823         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
824         argument.
825         * lib/striconveh.c (iconv_carefully_1): New function.
826         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
827         argument.
828         (str_cd_iconveh): Update.
829         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
830         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
831         * tests/test-striconveh.c (MAGIC): New macro.
832         (new_offsets): New function.
833         (main): Test call with and without offsets.
834
835 2007-01-22  Bruno Haible  <bruno@clisp.org>
836
837         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
838         * modules/sys_select (Makefile.am): Likewise.
839         * modules/sys_socket (Makefile.am): Likewise.
840         * modules/sys_time (Makefile.am): Likewise.
841
842 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
843
844         * modules/gettimeofday (License): Change from GPL to LGPL, since
845         gettimeofday is a library function.
846
847 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
848
849         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
850
851 2007-01-21  Bruno Haible  <bruno@clisp.org>
852
853         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
854
855 2007-01-21  Bruno Haible  <bruno@clisp.org>
856
857         * modules/striconveha: New file.
858         * lib/striconveha.h: New file.
859         * lib/striconveha.c: New file.
860         * MODULES.html.sh (Internationalization functions): Add striconveha.
861         * lib/striconv.c (str_iconv): Optimize the case of an empty input
862         string.
863         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
864
865 2007-01-21  Bruno Haible  <bruno@clisp.org>
866
867         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
868         * lib/striconveh.c (str_iconveh): Likewise.
869
870 2007-01-21  Bruno Haible  <bruno@clisp.org>
871
872         * lib/striconveh.h (mem_iconveh): New declaration.
873         * lib/striconveh.c (mem_iconveh): New function.
874         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
875
876 2007-01-21  Bruno Haible  <bruno@clisp.org>
877
878         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
879
880         * lib/striconveh.h (mem_cd_iconveh): Change specification.
881         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
882         original result buffer.
883         (str_cd_iconveh): Update.
884         * tests/test-striconveh.c (main): Update.
885
886         * lib/striconv.h (mem_cd_iconv): Change specification.
887         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
888         result buffer.
889         (str_cd_iconv): Update.
890         * tests/test-striconv.c (main): Update.
891
892 2007-01-21  Bruno Haible  <bruno@clisp.org>
893
894         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
895
896 2007-01-20  Jim Meyering  <jim@meyering.net>
897
898         * lib/userspec.c (parse_with_separator): If a user or group string
899         starts with "+", skip the corresponding name-to-ID look-up, since
900         such a look-up must fail: user and group names may not include "+".
901
902 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
903
904         * lib/poll.c: Include sys/time.h and time.h unconditionally,
905         since we now assume the sys_time module.
906         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
907         check for sys/time.h; no longer needed.
908         * modules/poll (Depends-on): Depend on sys_time.
909
910 2007-01-18  Bruno Haible  <bruno@clisp.org>
911
912         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
913         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
914
915         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
916         gettimeofday.
917
918         * tests/test-gettimeofday.c: Include <time.h>.
919         (dummy): Remove variable.
920
921         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
922         gl_HEADER_SYS_TIME_H.
923         (gl_HEADER_SYS_TIME_H): New macro.
924
925         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
926         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
927         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
928         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
929         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
930         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
931         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
932         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
933         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
934         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
935         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
936
937         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
938         last change; it caused a compilation error when cross-compiling to
939         Cygwin.
940
941 2007-01-18  Jim Meyering  <jim@meyering.net>
942
943         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
944         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
945         than the race-prone "test -d sys || mkdir sys".
946         (configure.ac): Use AC_PROG_MKDIR_P.
947         * modules/sys_select: Likewise.
948         * modules/sys_socket: Likewise.
949         * modules/sys_time: Likewise.
950
951 2007-01-18  Eric Blake  <ebb9@byu.net>
952
953         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
954         replace gettimeofday.
955         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
956         name, to avoid infinite recursion.
957
958 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
959
960         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
961         module sys_time.
962         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
963         assume timespec.h defines struct timeval.
964         * lib/settime.c: Likewise.
965         * lib/utimens.c: Likewise.
966         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
967         since we now assume the gettimeofday module.
968         * lib/tempname.c (__gen_tempname): Likewise.
969         * lib/gettimeofday.h: Remove.
970         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
971         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
972         Include <time.h>, for 'time()'.
973         (localtime_buffer_addr): Also use this workaround if
974         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
975         to simplify the uses.  All uses changed.
976         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
977         that #undef is inside {}, and 'const' follows type name consistently.
978         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
979         (gettimeofday): Do not use the maximum possible value for
980         tv->tv_usec, since that might break usages other than ls.c.
981         Instead, we'll leave ls.c alone.  This undoes today's patch
982         by Bruno.  Add a compile-time warning for 1s-clock resolution;
983         we've never observed the problem but might as well keep the
984         canary.
985         * lib/nanosleep.c: Include timespec.h first, for interface check.
986         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
987         now assume the sys_time module.
988         * lib/tempname.c: Likewise.
989         * lib/timespec.h: Likewise.
990         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
991         needed.
992         * lib/strftime.c: Likewise.
993         * lib/timespec.h: Likewise.
994         * lib/posixtm.c: Include posixtm.h first, for interface check.
995         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
996         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
997         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
998         * lib/sys_time_.h: New file.
999         * lib/timespec.h (struct timespec): Use long int, not long.
1000         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
1001         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
1002         Remove obsolescent call to AC_HEADER_TIME.
1003         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
1004         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
1005         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
1006         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
1007         Likewise.
1008         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
1009         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
1010         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
1011         into the sys_time module.  Check for gettimeofday just once.
1012         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
1013         for gettimeofday signature to just check the signature.  Merely
1014         compile it, since linking doesn't test signature.  Improve test for
1015         whether gettimeofday.o is actually needed.
1016         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
1017         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
1018         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
1019         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
1020         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
1021         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
1022         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
1023         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
1024         than worrying about sys/time.h.
1025         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
1026         Don't bother worrying about TIME_WITH_SYS_TIME.
1027         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
1028         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
1029         * m4/sys_time_h.m4: New file.
1030         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
1031         Don't include sys/time.h.  Return from main rather than exiting.
1032         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
1033         all uses changed.
1034         * modules/gethrxtime (Depends-on): Add sys_time.
1035         * modules/gettime (Depends-on): Likewise.
1036         * modules/gettimeofday (Depends-on): Likewise.
1037         * modules/nanosleep (Depends-on): Likewise.
1038         * modules/settime (Depends-on): Likewise.
1039         * modules/tempname (Depends-on): Likewise.
1040         * modules/utimens (Depends-on): Likewise.
1041         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
1042         (Include:) Change back to <sys/time.h>.
1043         (Maintainer:) Add self.
1044         * modules/sys_time: New file.
1045         * modules/tempname (Depends-on): Add gettimeofday.
1046         * tests/test-gettimeofday.c: Include <sys/time.h>
1047         rather than gettimeofday.h.
1048
1049 2007-01-17  Bruno Haible  <bruno@clisp.org>
1050
1051         * gnulib-tool (func_get_license): Revert last patch. Instead, let
1052         the license default to GPL.
1053         (func_create_testdir): Don't complain if a module is LGPL and its
1054         tests module depends on GPLed modules.
1055
1056 2007-01-17  Bruno Haible  <bruno@clisp.org>
1057
1058         * lib/gettimeofday.c (gettimeofday): Add code for the case
1059         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
1060         maximum possible value for tv->tv_usec, rather than the minimum one.
1061
1062 2005-10-08  Martin Lambers  <marlam@marlam.de>
1063 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
1064 2007-01-16  Bruno Haible  <bruno@clisp.org>
1065
1066         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
1067         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
1068         gl_FUNC_GETTIMEOFDAY.
1069         (Include): Add gettimeofday.h.
1070         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
1071         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
1072         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
1073         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
1074         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
1075         * lib/gettimeofday.h: New file.
1076         * lib/gettimeofday.c: Include <sys/timeb.h>.
1077         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
1078         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
1079         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
1080         fall back on time().
1081
1082         * tests/test-gettimeofday.c: New file.
1083         * modules/gettimeofday-tests: New file.
1084
1085 2007-01-16  Eric Blake  <ebb9@byu.net>
1086
1087         * modules/fnmatch (Depends-on): Depend on wchar.
1088         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
1089         * m4/fnmatch.m4: Likewise.
1090         * modules/mbchar (Makefile.am): Assume <wchar.h>.
1091         * m4/mbchar.m4: Likewise.
1092         * modules/mbswidth (Depends-on): Depend on wchar.
1093         * lib/mbswidth.c: Assume <wchar.h>.
1094         * m4/mbswidth.m4: Likewise.
1095         * modules/quotearg (Depends-on): Depend on wchar.
1096         * lib/quotearg.c: Assume <wchar.h>.
1097         * m4/quotearg.m4: Likewise.
1098         * modules/regex (Depends-on): Depend on wchar.
1099         * lib/regex_internal.h: Assume <wchar.h>.
1100         * m4/regex.m4: Likewise.
1101         * modules/stdint (Depends-on): Depend on wchar.
1102         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
1103         * m4/stdint.m4: Likewise.
1104         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
1105         * modules/strftime (Depends-on): Depend on wchar.
1106         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
1107         * modules/strtol (Depends-on): Depend on wchar.
1108         * lib/strtol.c: Assume <wchar.h>.
1109         * modules/wcwidth (Depends-on): Depend on wchar.
1110         * lib/wcwidth.h: Assume <wchar.h>.
1111         * m4/wcwidth.m4: Likewise.
1112
1113 2007-01-16  Bruno Haible  <bruno@clisp.org>
1114
1115         * modules/csharpexec-script: New, created from...
1116         * modules/csharpexec: ... this.
1117
1118 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
1119
1120         * modules/javaexec-script: New, created from...
1121         * modules/javaexec: ... this.
1122
1123 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
1124
1125         * modules/poll (Dependencies): Add sys_select.
1126
1127 2007-01-15  Jim Meyering  <jim@meyering.net>
1128
1129         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
1130         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
1131         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
1132         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
1133
1134 2007-01-15  Bruno Haible  <bruno@clisp.org>
1135
1136         * modules/striconveh: New file.
1137         * lib/striconveh.h: New file.
1138         * lib/striconveh.c: New file.
1139         * MODULES.html.sh (Internationalization functions): Add striconveh.
1140
1141         * modules/striconveh-tests: New file.
1142         * tests/test-striconveh.c: New file.
1143
1144 2007-01-15  Bruno Haible  <bruno@clisp.org>
1145
1146         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
1147         not from GNU libiconv or GNU libc.
1148
1149 2007-01-15  Bruno Haible  <bruno@clisp.org>
1150
1151         * doc/gnulib-intro.texi (Copyright): Explain the different license
1152         terms for module descriptions, autoconf macros, tests, documentation.
1153
1154 2007-01-14  Bruno Haible  <bruno@clisp.org>
1155
1156         * modules/striconv-tests: New file.
1157         * tests/test-striconv.c: New file.
1158
1159 2007-01-14  Bruno Haible  <bruno@clisp.org>
1160
1161         * modules/iconv-tests: New file.
1162         * tests/test-iconv.c: New file.
1163
1164 2007-01-14  Bruno Haible  <bruno@clisp.org>
1165
1166         * gnulib-tool (func_get_license): For test modules, use the license of
1167         the main module.
1168
1169 2007-01-14  Bruno Haible  <bruno@clisp.org>
1170
1171         * modules/iconv (Include): Clarify that <iconv.h> can only be included
1172         if iconv is found to exist.
1173
1174 2007-01-14  Bruno Haible  <bruno@clisp.org>
1175
1176         * modules/c-ctype-tests: New file.
1177         * tests/test-c-ctype.c: New file.
1178
1179 2007-01-14  Bruno Haible  <bruno@clisp.org>
1180
1181         * modules/binary-io-tests: New file.
1182         * tests/test-binary-io.sh: New file.
1183         * tests/test-binary-io.c: New file.
1184
1185 2007-01-14  Bruno Haible  <bruno@clisp.org>
1186
1187         * modules/array-oset-tests: New file.
1188         * tests/test-array_oset.c: New file.
1189
1190 2007-01-14  Bruno Haible  <bruno@clisp.org>
1191
1192         * modules/array-list-tests: New file.
1193         * tests/test-array_list.c: New file.
1194
1195 2007-01-14  Bruno Haible  <bruno@clisp.org>
1196
1197         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
1198         and make.
1199         Reported by Simon Josefsson in
1200         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
1201
1202 2007-01-14  Bruno Haible  <bruno@clisp.org>
1203
1204         * modules/allocsa-tests: New file.
1205         * tests/test-allocsa.c: New file.
1206
1207 2007-01-14  Bruno Haible  <bruno@clisp.org>
1208
1209         * modules/fchdir (Depends-on): Add absolute-header.
1210         * modules/unistd (Depends-on): Likewise.
1211
1212 2006-12-30  Bruno Haible  <bruno@clisp.org>
1213
1214         * modules/fchdir: New file.
1215         * modules/unistd (Files): Add lib/unistd_.h.
1216         (Makefile.am): Generate unistd.h from unistd_.h.
1217         * lib/fchdir.c: New file.
1218         * lib/dirent_.h: New file.
1219         * lib/unistd_.h: New file.
1220         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
1221         * m4/fchdir.m4: New file.
1222         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
1223         (gl_HEADER_UNISTD): Invoke it.
1224         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
1225         function.
1226         * lib/backupfile.c (opendir, closedir): Undefine.
1227         * lib/chown.c (open, close): Undefine.
1228         * lib/clean-temp.c (open, close): Undefine.
1229         * lib/copy-file.c (open, close): Undefine.
1230         * lib/execute.c (open, close): Undefine.
1231         * lib/fsusage.c (open, close): Undefine.
1232         * lib/gc-gnulib.c (open, close): Undefine.
1233         * lib/getcwd.c (opendir, closedir): Undefine.
1234         * lib/glob.c (opendir, closedir): Undefine.
1235         * lib/javacomp.c (open, close): Undefine.
1236         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
1237         * lib/openat-proc.c (open, close): Undefine.
1238         * lib/pagealign_alloc.c (open, close): Undefine.
1239         * lib/pipe.c (open, close): Undefine.
1240         * lib/progreloc.c (open, close): Undefine.
1241         * lib/savedir.c (opendir, closedir): Undefine.
1242         * lib/utime.c (open, close): Undefine.
1243         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
1244
1245 2007-01-10  Bruno Haible  <bruno@clisp.org>
1246
1247         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
1248
1249 2007-01-12  Eric Blake  <ebb9@byu.net>
1250
1251         Provide a robust <wchar.h>.  Further simplifications are now
1252         possible in other modules, but not included here.
1253         * modules/wchar: New module.
1254         * m4/wchar.m4: New file.
1255         * lib/wchar_.h: Likewise.
1256         * modules/mbchar (Depends-on): Depend on wchar, as the first use
1257         of the new module.
1258         * MODULES.html.sh (Extended multibyte and wide character utilities):
1259         New section.
1260
1261 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
1262
1263         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
1264         to a reasonable default for memory allocation.
1265         (xreadlink): Don't allocate a huge buffer, to work around a buggy
1266         file system that reports garbage st_size values for symlinks.
1267         Problem reported by Liyang Hu.
1268
1269 2007-01-11  Simon Josefsson  <simon@josefsson.org>
1270
1271         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
1272         Emacs .#* auto-save files).
1273
1274 2007-01-11  Bruno Haible  <bruno@clisp.org>
1275
1276         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
1277         directory.
1278
1279 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
1280
1281         Use @...@ consistently in lib/wctype_.h.
1282         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
1283         on it being set to 1 or 0.
1284         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
1285         go back to AC_SUBSTing it.
1286         * modules/wctype (Makefile.am): Undo previous change.
1287
1288 2007-01-10  Eric Blake  <ebb9@byu.net>
1289
1290         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
1291         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
1292         * modules/wctype (Makefile.am): Likewise.
1293         Reported by Chris McGuire.
1294
1295 2007-01-10  Jim Meyering  <jim@meyering.net>
1296
1297         fts.c: a small readability/maintainability improvement
1298         * lib/fts.c (fts_read): Make this code slightly more readable and
1299         maintainable by hoisting the "sp->fts_cur = p" assignments to
1300         immediately follow the statements that set P.  Derived from
1301         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
1302
1303 2007-01-10  Eric Blake  <ebb9@byu.net>
1304
1305         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
1306         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
1307         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
1308         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
1309         Reported by Chris McGuire.
1310
1311 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1312
1313         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
1314         in sed script.
1315
1316 2007-01-09  Bruno Haible  <bruno@clisp.org>
1317
1318         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
1319         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
1320         variables.
1321         (func_module): Use them.
1322
1323 2007-01-09  Bruno Haible  <bruno@clisp.org>
1324
1325         * modules/unistr/base: New file.
1326         * lib/unistr.h: New file.
1327
1328         * modules/unistr/u8-to-u16: New file.
1329         * lib/unistr/u8-to-u16.c: New file.
1330
1331         * modules/unistr/u8-to-u32: New file.
1332         * lib/unistr/u8-to-u32.c: New file.
1333
1334         * modules/unistr/u16-to-u8: New file.
1335         * lib/unistr/u16-to-u8.c: New file.
1336
1337         * modules/unistr/u16-to-u32: New file.
1338         * lib/unistr/u16-to-u32.c: New file.
1339
1340         * modules/unistr/u32-to-u8: New file.
1341         * lib/unistr/u32-to-u8.c: New file.
1342
1343         * modules/unistr/u32-to-u16: New file.
1344         * lib/unistr/u32-to-u16.c: New file.
1345
1346         * modules/unistr/u8-check: New file.
1347         * modules/unistr/u16-check: New file.
1348         * modules/unistr/u32-check: New file.
1349         * lib/unistr/u8-check.c: New file.
1350         * lib/unistr/u16-check.c: New file.
1351         * lib/unistr/u32-check.c: New file.
1352
1353         * modules/unistr/u8-chr: New file.
1354         * modules/unistr/u16-chr: New file.
1355         * modules/unistr/u32-chr: New file.
1356         * lib/unistr/u8-chr.c: New file.
1357         * lib/unistr/u16-chr.c: New file.
1358         * lib/unistr/u32-chr.c: New file.
1359
1360         * modules/unistr/u8-cmp: New file.
1361         * modules/unistr/u16-cmp: New file.
1362         * modules/unistr/u32-cmp: New file.
1363         * lib/unistr/u8-cmp.c: New file.
1364         * lib/unistr/u16-cmp.c: New file.
1365         * lib/unistr/u32-cmp.c: New file.
1366
1367         * modules/unistr/u8-cpy: New file.
1368         * modules/unistr/u16-cpy: New file.
1369         * modules/unistr/u32-cpy: New file.
1370         * lib/unistr/u8-cpy.c: New file.
1371         * lib/unistr/u16-cpy.c: New file.
1372         * lib/unistr/u32-cpy.c: New file.
1373         * lib/unistr/u-cpy.h: New file.
1374
1375         * modules/unistr/u8-cpy-alloc: New file.
1376         * modules/unistr/u16-cpy-alloc: New file.
1377         * modules/unistr/u32-cpy-alloc: New file.
1378         * lib/unistr/u8-cpy-alloc.c: New file.
1379         * lib/unistr/u16-cpy-alloc.c: New file.
1380         * lib/unistr/u32-cpy-alloc.c: New file.
1381         * lib/unistr/u-cpy-alloc.h: New file.
1382
1383         * modules/unistr/u8-endswith: New file.
1384         * modules/unistr/u16-endswith: New file.
1385         * modules/unistr/u32-endswith: New file.
1386         * lib/unistr/u8-endswith.c: New file.
1387         * lib/unistr/u16-endswith.c: New file.
1388         * lib/unistr/u32-endswith.c: New file.
1389         * lib/unistr/u-endswith.h: New file.
1390
1391         * modules/unistr/u8-mblen: New file.
1392         * modules/unistr/u16-mblen: New file.
1393         * modules/unistr/u32-mblen: New file.
1394         * lib/unistr/u8-mblen.c: New file.
1395         * lib/unistr/u16-mblen.c: New file.
1396         * lib/unistr/u32-mblen.c: New file.
1397
1398         * modules/unistr/u8-mbtouc: New file.
1399         * modules/unistr/u16-mbtouc: New file.
1400         * modules/unistr/u32-mbtouc: New file.
1401         * lib/unistr/u8-mbtouc.c: New file.
1402         * lib/unistr/u16-mbtouc.c: New file.
1403         * lib/unistr/u32-mbtouc.c: New file.
1404
1405         * modules/unistr/u8-mbtouc-safe: New file.
1406         * modules/unistr/u16-mbtouc-safe: New file.
1407         * modules/unistr/u32-mbtouc-safe: New file.
1408         * lib/unistr/u8-mbtouc-safe.c: New file.
1409         * lib/unistr/u16-mbtouc-safe.c: New file.
1410         * lib/unistr/u32-mbtouc-safe.c: New file.
1411
1412         * modules/unistr/u8-move: New file.
1413         * modules/unistr/u16-move: New file.
1414         * modules/unistr/u32-move: New file.
1415         * lib/unistr/u8-move.c: New file.
1416         * lib/unistr/u16-move.c: New file.
1417         * lib/unistr/u32-move.c: New file.
1418         * lib/unistr/u-move.h: New file.
1419
1420         * modules/unistr/u8-next: New file.
1421         * modules/unistr/u16-next: New file.
1422         * modules/unistr/u32-next: New file.
1423         * lib/unistr/u8-next.c: New file.
1424         * lib/unistr/u16-next.c: New file.
1425         * lib/unistr/u32-next.c: New file.
1426
1427         * modules/unistr/u8-prev: New file.
1428         * modules/unistr/u16-prev: New file.
1429         * modules/unistr/u32-prev: New file.
1430         * lib/unistr/u8-prev.c: New file.
1431         * lib/unistr/u16-prev.c: New file.
1432         * lib/unistr/u32-prev.c: New file.
1433
1434         * modules/unistr/u8-set: New file.
1435         * modules/unistr/u16-set: New file.
1436         * modules/unistr/u32-set: New file.
1437         * lib/unistr/u8-set.c: New file.
1438         * lib/unistr/u16-set.c: New file.
1439         * lib/unistr/u32-set.c: New file.
1440         * lib/unistr/u-set.h: New file.
1441
1442         * modules/unistr/u8-startswith: New file.
1443         * modules/unistr/u16-startswith: New file.
1444         * modules/unistr/u32-startswith: New file.
1445         * lib/unistr/u8-startswith.c: New file.
1446         * lib/unistr/u16-startswith.c: New file.
1447         * lib/unistr/u32-startswith.c: New file.
1448         * lib/unistr/u-startswith.h: New file.
1449
1450         * modules/unistr/u8-stpcpy: New file.
1451         * modules/unistr/u16-stpcpy: New file.
1452         * modules/unistr/u32-stpcpy: New file.
1453         * lib/unistr/u8-stpcpy.c: New file.
1454         * lib/unistr/u16-stpcpy.c: New file.
1455         * lib/unistr/u32-stpcpy.c: New file.
1456         * lib/unistr/u-stpcpy.h: New file.
1457
1458         * modules/unistr/u8-stpncpy: New file.
1459         * modules/unistr/u16-stpncpy: New file.
1460         * modules/unistr/u32-stpncpy: New file.
1461         * lib/unistr/u8-stpncpy.c: New file.
1462         * lib/unistr/u16-stpncpy.c: New file.
1463         * lib/unistr/u32-stpncpy.c: New file.
1464         * lib/unistr/u-stpncpy.h: New file.
1465
1466         * modules/unistr/u8-strcat: New file.
1467         * modules/unistr/u16-strcat: New file.
1468         * modules/unistr/u32-strcat: New file.
1469         * lib/unistr/u8-strcat.c: New file.
1470         * lib/unistr/u16-strcat.c: New file.
1471         * lib/unistr/u32-strcat.c: New file.
1472         * lib/unistr/u-strcat.h: New file.
1473
1474         * modules/unistr/u8-strchr: New file.
1475         * modules/unistr/u16-strchr: New file.
1476         * modules/unistr/u32-strchr: New file.
1477         * lib/unistr/u8-strchr.c: New file.
1478         * lib/unistr/u16-strchr.c: New file.
1479         * lib/unistr/u32-strchr.c: New file.
1480
1481         * modules/unistr/u8-strcmp: New file.
1482         * modules/unistr/u16-strcmp: New file.
1483         * modules/unistr/u32-strcmp: New file.
1484         * lib/unistr/u8-strcmp.c: New file.
1485         * lib/unistr/u16-strcmp.c: New file.
1486         * lib/unistr/u32-strcmp.c: New file.
1487
1488         * modules/unistr/u8-strcpy: New file.
1489         * modules/unistr/u16-strcpy: New file.
1490         * modules/unistr/u32-strcpy: New file.
1491         * lib/unistr/u8-strcpy.c: New file.
1492         * lib/unistr/u16-strcpy.c: New file.
1493         * lib/unistr/u32-strcpy.c: New file.
1494         * lib/unistr/u-strcpy.h: New file.
1495
1496         * modules/unistr/u8-strcspn: New file.
1497         * modules/unistr/u16-strcspn: New file.
1498         * modules/unistr/u32-strcspn: New file.
1499         * lib/unistr/u8-strcspn.c: New file.
1500         * lib/unistr/u16-strcspn.c: New file.
1501         * lib/unistr/u32-strcspn.c: New file.
1502         * lib/unistr/u-strcspn.h: New file.
1503
1504         * modules/unistr/u8-strdup: New file.
1505         * modules/unistr/u16-strdup: New file.
1506         * modules/unistr/u32-strdup: New file.
1507         * lib/unistr/u8-strdup.c: New file.
1508         * lib/unistr/u16-strdup.c: New file.
1509         * lib/unistr/u32-strdup.c: New file.
1510         * lib/unistr/u-strdup.h: New file.
1511
1512         * modules/unistr/u8-strlen: New file.
1513         * modules/unistr/u16-strlen: New file.
1514         * modules/unistr/u32-strlen: New file.
1515         * lib/unistr/u8-strlen.c: New file.
1516         * lib/unistr/u16-strlen.c: New file.
1517         * lib/unistr/u32-strlen.c: New file.
1518         * lib/unistr/u-strlen.h: New file.
1519
1520         * modules/unistr/u8-strmblen: New file.
1521         * modules/unistr/u16-strmblen: New file.
1522         * modules/unistr/u32-strmblen: New file.
1523         * lib/unistr/u8-strmblen.c: New file.
1524         * lib/unistr/u16-strmblen.c: New file.
1525         * lib/unistr/u32-strmblen.c: New file.
1526
1527         * modules/unistr/u8-strmbtouc: New file.
1528         * modules/unistr/u16-strmbtouc: New file.
1529         * modules/unistr/u32-strmbtouc: New file.
1530         * lib/unistr/u8-strmbtouc.c: New file.
1531         * lib/unistr/u16-strmbtouc.c: New file.
1532         * lib/unistr/u32-strmbtouc.c: New file.
1533
1534         * modules/unistr/u8-strncat: New file.
1535         * modules/unistr/u16-strncat: New file.
1536         * modules/unistr/u32-strncat: New file.
1537         * lib/unistr/u8-strncat.c: New file.
1538         * lib/unistr/u16-strncat.c: New file.
1539         * lib/unistr/u32-strncat.c: New file.
1540         * lib/unistr/u-strncat.h: New file.
1541
1542         * modules/unistr/u8-strncmp: New file.
1543         * modules/unistr/u16-strncmp: New file.
1544         * modules/unistr/u32-strncmp: New file.
1545         * lib/unistr/u8-strncmp.c: New file.
1546         * lib/unistr/u16-strncmp.c: New file.
1547         * lib/unistr/u32-strncmp.c: New file.
1548
1549         * modules/unistr/u8-strncpy: New file.
1550         * modules/unistr/u16-strncpy: New file.
1551         * modules/unistr/u32-strncpy: New file.
1552         * lib/unistr/u8-strncpy.c: New file.
1553         * lib/unistr/u16-strncpy.c: New file.
1554         * lib/unistr/u32-strncpy.c: New file.
1555         * lib/unistr/u-strncpy.h: New file.
1556
1557         * modules/unistr/u8-strnlen: New file.
1558         * modules/unistr/u16-strnlen: New file.
1559         * modules/unistr/u32-strnlen: New file.
1560         * lib/unistr/u8-strnlen.c: New file.
1561         * lib/unistr/u16-strnlen.c: New file.
1562         * lib/unistr/u32-strnlen.c: New file.
1563         * lib/unistr/u-strnlen.h: New file.
1564
1565         * modules/unistr/u8-strpbrk: New file.
1566         * modules/unistr/u16-strpbrk: New file.
1567         * modules/unistr/u32-strpbrk: New file.
1568         * lib/unistr/u8-strpbrk.c: New file.
1569         * lib/unistr/u16-strpbrk.c: New file.
1570         * lib/unistr/u32-strpbrk.c: New file.
1571         * lib/unistr/u-strpbrk.h: New file.
1572
1573         * modules/unistr/u8-strrchr: New file.
1574         * modules/unistr/u16-strrchr: New file.
1575         * modules/unistr/u32-strrchr: New file.
1576         * lib/unistr/u8-strrchr.c: New file.
1577         * lib/unistr/u16-strrchr.c: New file.
1578         * lib/unistr/u32-strrchr.c: New file.
1579
1580         * modules/unistr/u8-strspn: New file.
1581         * modules/unistr/u16-strspn: New file.
1582         * modules/unistr/u32-strspn: New file.
1583         * lib/unistr/u8-strspn.c: New file.
1584         * lib/unistr/u16-strspn.c: New file.
1585         * lib/unistr/u32-strspn.c: New file.
1586         * lib/unistr/u-strspn.h: New file.
1587
1588         * modules/unistr/u8-strstr: New file.
1589         * modules/unistr/u16-strstr: New file.
1590         * modules/unistr/u32-strstr: New file.
1591         * lib/unistr/u8-strstr.c: New file.
1592         * lib/unistr/u16-strstr.c: New file.
1593         * lib/unistr/u32-strstr.c: New file.
1594         * lib/unistr/u-strstr.h: New file.
1595
1596         * modules/unistr/u8-strtok: New file.
1597         * modules/unistr/u16-strtok: New file.
1598         * modules/unistr/u32-strtok: New file.
1599         * lib/unistr/u8-strtok.c: New file.
1600         * lib/unistr/u16-strtok.c: New file.
1601         * lib/unistr/u32-strtok.c: New file.
1602         * lib/unistr/u-strtok.h: New file.
1603
1604         * modules/unistr/u8-uctomb: New file.
1605         * modules/unistr/u16-uctomb: New file.
1606         * modules/unistr/u32-uctomb: New file.
1607         * lib/unistr/u8-uctomb.c: New file.
1608         * lib/unistr/u16-uctomb.c: New file.
1609         * lib/unistr/u32-uctomb.c: New file.
1610
1611         * MODULES.html.sh (Unicode string functions): Add the new modules.
1612
1613 2007-01-08  Bruno Haible  <bruno@clisp.org>
1614
1615         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
1616         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
1617         subdirectories.
1618
1619 2007-01-08  Karl Berry  <karl@gnu.org>
1620
1621         * doc/error.texi: mention that main() fns must set program_name
1622         when progname is used.
1623
1624 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
1625
1626         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
1627         WCTYPE_H is empty, for the benefit of builds from non-distclean
1628         directories.  Problem reported by Eric Blake in
1629         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
1630
1631 2007-01-08  Bruno Haible  <bruno@clisp.org>
1632
1633         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
1634         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
1635         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
1636         PROVIDE_CANONICALIZE_FILENAME_MODE.
1637         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
1638
1639 2007-01-08  Bruno Haible  <bruno@clisp.org>
1640
1641         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
1642         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
1643         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
1644         * lib/fts.c: Likewise.
1645         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
1646
1647 2006-12-25  Bruno Haible  <bruno@clisp.org>
1648
1649         * modules/utf8-ucs4-safe: New file.
1650         * lib/utf8-ucs4-safe.h: New file.
1651         * lib/unistr/utf8-ucs4-safe.c: New file.
1652
1653         * modules/utf16-ucs4-safe: New file.
1654         * lib/utf16-ucs4-safe.h: New file.
1655         * lib/unistr/utf16-ucs4-safe.c: New file.
1656
1657         * MODULES.html.sh (Unicode string functions): Add the new modules.
1658
1659 2007-01-08  Bruno Haible  <bruno@clisp.org>
1660
1661         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
1662         (Depends-on): Add unitypes.
1663         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
1664         (u8_mbtouc_aux): Move out to separate file.
1665         (u8_mbtouc): Use ucs4_t, uint8_t types.
1666         * lib/unistr/utf8-ucs4.c: New file.
1667
1668         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
1669         (Depends-on): Add unitypes.
1670         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
1671         (u16_mbtouc_aux): Move out to separate file.
1672         (u16_mbtouc): Use ucs4_t, uint16_t types.
1673         * lib/unistr/utf16-ucs4.c: New file.
1674
1675         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
1676         (Depends-on): Add unitypes.
1677         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
1678         (u8_uctomb_aux): Move out to separate file.
1679         (u8_uctomb): Use ucs4_t, uint8_t types.
1680         * lib/unistr/ucs4-utf8.c: New file.
1681
1682         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
1683         (Depends-on): Add unitypes.
1684         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
1685         (u16_uctomb_aux): Move out to separate file.
1686         (u16_uctomb): Use ucs4_t, uint16_t types.
1687         * lib/unistr/ucs4-utf16.c: New file.
1688
1689 2006-12-25  Bruno Haible  <bruno@clisp.org>
1690
1691         * modules/unitypes: New file.
1692         * lib/unitypes.h: New file.
1693         * MODULES.html.sh (func_all_modules): New section "Unicode string
1694         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
1695         this section. Add unitypes.
1696
1697 2007-01-08  Bruno Haible  <bruno@clisp.org>
1698
1699         Avoid variable names that conflict with those from libtool.
1700         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
1701         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
1702         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
1703         library_names_spec to acl_library_names_spec, hardcode_* to
1704         acl_hardcode_*.
1705         Reported by Ralf Wildenhues.
1706
1707 2007-01-08  Bruno Haible  <bruno@clisp.org>
1708
1709         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
1710         definition.
1711         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
1712         definition.
1713         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
1714         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
1715         definition.
1716         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
1717         definition.
1718         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
1719         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
1720         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
1721         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
1722         definition.
1723         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
1724         definition.
1725         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
1726         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
1727         GC_USE_<algorithm>.
1728         * lib/gc-libgcrypt.c: Likewise.
1729         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
1730         * modules/gc-arctwo (configure.ac): Likewise.
1731         * modules/gc-des (configure.ac): Likewise.
1732         * modules/gc-hmac-md5 (configure.ac): Likewise.
1733         * modules/gc-hmac-sha1 (configure.ac): Likewise.
1734         * modules/gc-md2 (configure.ac): Likewise.
1735         * modules/gc-md4 (configure.ac): Likewise.
1736         * modules/gc-md5 (configure.ac): Likewise.
1737         * modules/gc-random (configure.ac): Likewise.
1738         * modules/gc-rijndael (configure.ac): Likewise.
1739         * modules/gc-sha1 (configure.ac): Likewise.
1740
1741 2007-01-08  Bruno Haible  <bruno@clisp.org>
1742
1743         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
1744         macro definition.
1745         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
1746         definition.
1747         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
1748         definition.
1749         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
1750         * modules/fcntl-safer (configure.ac): Likewise.
1751         * modules/fopen-safer (configure.ac): Likewise.
1752         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
1753         GNULIB_FWRITEERROR macro definition.
1754
1755 2007-01-08  Bruno Haible  <bruno@clisp.org>
1756
1757         * m4/gnulib-common.m4: New file.
1758         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
1759         (func_get_filelist): Add m4/gnulib-common.m4.
1760
1761 2007-01-08  Bruno Haible  <bruno@clisp.org>
1762
1763         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
1764         command.
1765
1766 2007-01-08  Jim Meyering  <jim@meyering.net>
1767
1768         Use a more robust test for a "can't happen" condition.
1769         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
1770         narrowed the st_size value.  Presuming the "can't happen" condition
1771         is true, that narrowing could conceivably convert an invalid st_size
1772         value into a valid one.  Instead, use a change based on Matthew
1773         Woehlke's original patch.
1774
1775         Slight readability improvement: use an assert-like macro
1776         in place of literal "abort ()" uses.
1777         * lib/fts.c (fts_assert): Define.
1778         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
1779         Use this macro instead of a bare 'abort'.
1780
1781 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
1782
1783         Don't worry about using IRIX 5.3's wctype.h broken definitions;
1784         simply work around them.
1785         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
1786         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
1787         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before declaring.
1788         Don't bother to define as macros, since the standard doesn't require it.
1789         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
1790         longer worry about IRIX 5.3.
1791         (HAVE_WCTYPE_CTMP_BUG): Remove.
1792
1793 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
1794
1795         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
1796         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
1797         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
1798         Problems reported by Georg Schwarz for IRIX 5.3.
1799
1800         * gnulib-tool (autoconf_minversion): Take the maximum version number
1801         found, not the minimum.  Problem reported by James Youngman.
1802
1803 2007-01-03  Karl Berry  <karl@gnu.org>
1804
1805         * doc/error.texi: new file, explaining interaction with progname.
1806         * doc/gnulib.texi: include it.  Update copyright.
1807
1808 2007-01-03  Simon Josefsson  <simon@josefsson.org>
1809
1810         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
1811         AC_CANONICAL_HOST, to improve autobuild outputs.
1812
1813 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
1814             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
1815
1816         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
1817         sockets, server sockets, and other file descriptors.  Count errors
1818         to compute the return value.  Reorder the code a bit to be easier
1819         to follow.  Don't set event bits that were not requested (except
1820         POLLERR and POLLHUP).
1821
1822 2007-01-01  Bruno Haible  <bruno@clisp.org>
1823
1824         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
1825
1826 2007-01-03  Jim Meyering  <jim@meyering.net>
1827
1828         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
1829
1830 2007-01-02  Bruno Haible  <bruno@clisp.org>
1831
1832         * modules/settime (Include): Require timespec.h.
1833         * modules/nanosleep (Include): Likewise.
1834
1835 2007-01-01  Bruno Haible  <bruno@clisp.org>
1836
1837         * gnulib-tool (func_emit_copyright_notice): Bump year.
1838         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
1839
1840 2007-01-01  Bruno Haible  <bruno@clisp.org>
1841
1842         Improve support for OpenBSD.
1843         * build-aux/config.rpath (libname_spec): Export.
1844         (library_names_spec): New variable. Export.
1845         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
1846         library_names_spec from the config.rpath output. Locate shared library
1847         through the name pattern in library_names_spec.
1848
1849 2007-01-01  Eric Blake  <ebb9@byu.net>
1850
1851         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
1852
1853 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
1854
1855         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
1856         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
1857         assume the C locale, and avoid an "eval" that could cause trouble.
1858         Problem with SORT reported by Bob Proulx.
1859
1860         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
1861         Define.  Trivial patch from Henning Nielsen Lund, originally
1862         sent to bug-grep@gnu.org today.
1863
1864 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
1865
1866         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
1867         struct stat.  Problem reported by Henning Nielsen Lund.
1868         * lib/acl.c: Include acl.h first, to check interface.  Don't
1869         bother to include sys/types.h and sys/stat.h again.
1870
1871 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
1872
1873         Import the following change from libc; problem reported by
1874         Sven Verdoolaege.
1875
1876         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
1877
1878         [BZ #1373]
1879         * lib/argp.h: Remove __NTH for __argp_usage inline function.
1880
1881 2006-12-28  Jim Meyering  <jim@meyering.net>
1882
1883         * build-aux/announce-gen: Do not assume that the package
1884         builds any of tar.gz, tar.bz2, and .xdelta files.
1885         Suggestion from Simon Josefsson.
1886
1887 2006-12-28  Simon Josefsson  <simon@josefsson.org>
1888
1889         * modules/announce-gen: New file.
1890
1891 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
1892
1893         * lib/mbchar.h: Just include <wctype.h>; the wctype module
1894         handles its gotchas now.
1895         * lib/mbswidth.c: Likewise.
1896         * lib/wcwidth.h: Likewise.
1897         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
1898         and iswcntrl; the wctype module does this stuff now.
1899         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
1900         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
1901         * modules/mbchar (Depends-on): Add wctype.
1902         * modules/mbswidth (Depends-on): Likewise.
1903         * modules/wcwidth (Depends-on): Likewise.
1904
1905 2006-12-27  Eric Blake  <ebb9@byu.net>
1906
1907         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
1908         module uses more than what <wctype.h> is required to provide.
1909
1910 2006-12-26  Eric Blake  <ebb9@byu.net>
1911
1912         * gnulib-tool (sed_extract_prog): Avoid space-tab.
1913
1914 2006-12-26  Eric Blake  <ebb9@byu.net>
1915
1916         * modules/absolute-header: New module.
1917         * modules/fcntl (Depends-on): Depend on it.
1918         * modules/inttypes (Depends-on): Likewise.
1919         * modules/stdint (Depends-on): Likewise.
1920         * modules/sys_stat (Depends-on): Likewise.
1921         * modules/wctype (Depends-on): Likewise.
1922         * MODULES.html.sh (Support for building libraries and
1923         executables): Document it.
1924
1925 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
1926
1927         * gnulib-tool (SED): Remove, undoing previous change.
1928         The problem was that it broke coreutils on Solaris, because
1929         "sed --posix" leaked into a makefile.
1930         (sed): New alias, if 'alias' and GNU sed.
1931
1932 2006-12-24  Jim Meyering  <jim@meyering.net>
1933
1934         Work around an fchownat bug in glibc-2.4:
1935         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
1936         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
1937         in spite of the -P option.
1938         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
1939         New macros.
1940         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
1941         * modules/openat (Files): Add lib/fchownat.c.
1942         * lib/openat.c (fchownat): Don't define here.  Move to...
1943         * lib/fchownat.c: ...this new file.
1944
1945 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
1946
1947         Fix bug reported by Bruno Haible in
1948         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
1949         where quotearg.c didn't compile on Mac OS X 10.2 because it
1950         lacks <wchar.h> and wint_t.
1951         * lib/wctype_.h (__wctype_wint_t): New type.
1952         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
1953         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
1954         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
1955         Arg is now of type __wctype_wint_t, not wint_t.
1956         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
1957         substitute HAVE_WINT_T.
1958         * modules/wctype (Files): Add m4/wint_t.m4.
1959         (wctype.h): Substitute HAVE_WINT_T.
1960
1961 2006-12-23  Bruno Haible  <bruno@clisp.org>
1962
1963         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
1964
1965 2006-12-23  Bruno Haible  <bruno@clisp.org>
1966
1967         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
1968         S_ISLNK.
1969         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
1970         mingw.
1971
1972 2006-12-22  Bruno Haible  <bruno@clisp.org>
1973
1974         * lib/copy-file.c: Include acl.h.
1975         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
1976         Close the file descriptors only after being done with copy_acl.
1977         * modules/copy-file (Depends-on): Add acl.
1978
1979 2006-12-22  Bruno Haible  <bruno@clisp.org>
1980
1981         * gnulib-tool (SED): New variable.
1982         Use $SED instead of sed everywhere.
1983
1984 2006-12-22  Bruno Haible  <bruno@clisp.org>
1985
1986         * modules/no-c++: New file.
1987         * m4/no-c++.m4: New file.
1988         * MODULES.html.sh (Support for building libraries and executables):
1989         Add no-c++.
1990
1991 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
1992
1993         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
1994         Include <limits.h>, and use its INT_MAX to rewrite the
1995         j loop so that it does not overflow 'int'.  Problem reported by
1996         Ralf Wildenhues in
1997         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
1998         Play it safe by shifting left by 1 rather than multiplying by 2,
1999         as GCC is less likely to optimize this away when the value
2000         is signed (when it assumes overflow leads to undefined behavior).
2001         Also, don't assume time_t uses two's complement.
2002
2003 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
2004
2005         * MODULES.html.sh: New module wctype.
2006         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
2007         * lib/fnmatch.c: Don't bother to include <wchar.h> before
2008         <wctype.h>, since the new wctype module should fix this.
2009         * lib/quotearg.c: Include <wctype.h> unconditionally, since
2010         the wctype module should arrange for it.
2011         * lib/regex_internal.h: Likewise.
2012         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
2013         since the wctype module should handle this now.
2014         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
2015         * modules/fnmatch (Depends-on): Add wctype.
2016         * modules/quotearg (Depends-on): Likewise.
2017         * modules/regex (Depends-on): Likewise.
2018
2019 2006-12-19  Bruno Haible  <bruno@clisp.org>
2020
2021         * lib/strdup.h [C++]: Wrap definitions in extern "C".
2022         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
2023
2024 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2025
2026         * modules/savewd (Depends-on): Fix dependency on fcntl.
2027
2028 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
2029
2030         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
2031         conforms to C99, rather than relying on the user's environment
2032         setting of STDINT_H.
2033
2034 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
2035         and Eric Blake  <ebb9@byu.net>
2036
2037         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
2038         This is more consistent with the other defines here.
2039         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
2040         Port to z/OS.  Problem reported by Paul Gilmartin.
2041         Change local vars to use gl_ prefix rather than ac_.
2042         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
2043         with other defines.
2044         * modules/double-slash-root: New module.
2045         * modules/dirname (Files): Remove m4/double-slash-root.m4.
2046         (Depends-on): Add double-slash-root.
2047         * MODULES.html.sh (File system functions): Mention new module.
2048
2049 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
2050
2051         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
2052         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
2053         This is for the benefit of gzip, which doesn't do i18n.
2054
2055 2006-12-12  Jim Meyering  <jim@meyering.net>
2056
2057         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
2058         Reported by Andreas Schwab <schwab@suse.de>.
2059
2060 2006-12-12  Bruno Haible  <bruno@clisp.org>
2061
2062         Merge these changes.
2063         2006-09-05  Bruno Haible  <bruno@clisp.org>
2064         * lib/iconvme.c (iconv_string): No need to save and restore errno when
2065         iconv_alloc succeeded.
2066         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
2067         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
2068         test for " && dest " at the end - dest is always != NULL there. Call
2069         iconv with 4xNULL arguments initially, to reset the state. Call iconv
2070         with 2xNULL arguments, also to flush the state storage. Handle the
2071         IRIX iconv behaviour. Realloc the final result, to throw away unused
2072         memory.
2073
2074 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
2075
2076         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
2077         and fchmodat unconditionally, since glibc 2.4 has them.
2078         Problem reported by Arkadiusz Miskiewicz.
2079
2080 2006-12-10  Bruno Haible  <bruno@clisp.org>
2081
2082         * gnulib-tool (func_import): Show the include files only for those
2083         modules that are copied and specified.
2084         Reported by Karl Berry.
2085
2086 2006-12-08  Jim Meyering  <jim@meyering.net>
2087
2088         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
2089         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
2090
2091         * build-aux/announce-gen: Add two new options, both optional:
2092         --bootstrap-tools=TOOL_LIST
2093               a comma-separated list of tools, e.g.,
2094               autoconf,automake,bison,gnulib
2095         --gnulib-snapshot-date=DATE
2096               if gnulib is in the bootstrap tool list,
2097               then report this as the snapshot date.
2098               If not specified, use the current date/time.
2099               If you specify a date here, be sure it's UTC.
2100
2101 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2102
2103         * tests/test-argp-2.sh: Fix test to match actual output.
2104         (func_compare): Fix sed script to be portable.
2105
2106 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
2107
2108         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
2109         workaround for this case.  It is not autoconfigured now; offhand
2110         it's hard to see how to autoconfigure it.
2111
2112 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
2113
2114         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
2115         a directory that is about to be chowned.  Such a directory's
2116         initial file permissions should permit the owner only and this
2117         should not be changed until after the chown, since the group and
2118         other bits would be incorrect if they granted permission before
2119         the chown.
2120
2121         Fix porting problem for iswctype reported by Georg Schwarz in:
2122         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
2123         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
2124         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
2125         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
2126         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
2127
2128 2006-12-03  Jim Meyering  <jim@meyering.net>
2129
2130         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
2131         p->fts_statp may not yet be defined.
2132         (fts_read): Instead, set it in the caller, once p->fts_statp is
2133         sure to be defined, and corresponds to a top-level directory.
2134         This bug made du -x fail.  Here's the coreutils test case:
2135         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
2136         Reported by Mike Frysinger.
2137
2138 2006-12-01  Jim Meyering  <jim@meyering.net>
2139
2140         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
2141         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
2142         Reported by Simon Josefsson.
2143
2144 2006-11-30  Jim Meyering  <jim@meyering.net>
2145
2146         * m4/warning.m4: Use the all-permissive copyright notice
2147         recommended by RMS (rather than LGPL).
2148         * m4/vararrays.m4: Likewise.
2149         * m4/flexmember.m4: Likewise.
2150
2151 2006-11-29  Bruno Haible  <bruno@clisp.org>
2152
2153         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
2154         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
2155         using +=.
2156         Reported by Simon Josefsson <simon@josefsson.org>.
2157
2158 2006-11-28  James Youngman <jay@gnu.org>
2159
2160         * README: Advise users that they might find the bug-gnulib@gnu.org
2161         and autotools-announce@gnu.org mailing lists useful.
2162
2163 2006-11-28  Bruno Haible  <bruno@clisp.org>
2164
2165         * m4/ptrdiff_max.m4: Remove file.
2166
2167 2006-11-21  Bruno Haible  <bruno@clisp.org>
2168
2169         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
2170         _AC_COMPUTE_INT.
2171         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
2172         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
2173         _AC_COMPUTE_INT.
2174         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
2175         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
2176         _AC_COMPUTE_INT.
2177         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
2178
2179 2006-11-28  Jim Meyering  <jim@meyering.net>
2180
2181         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
2182         warning from "gcc -Wshadow" about shadowing the builtin.
2183
2184 2006-11-27  Bruno Haible  <bruno@clisp.org>
2185
2186         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
2187         _AC_COMPUTE_INT.
2188         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
2189
2190 2006-11-27  Bruno Haible  <bruno@clisp.org>
2191             Paul Eggert  <eggert@cs.ucla.edu>
2192
2193         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
2194
2195 2006-11-26  Bruno Haible  <bruno@clisp.org>
2196
2197         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
2198         noinst_LTLIBRARIES.
2199
2200 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
2201             Bruno Haible  <bruno@clisp.org>
2202
2203         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
2204         if compiling with "gcc -ansi".
2205
2206 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
2207
2208         Fix some incompatibilities with gcc -ansi -pedantic.
2209         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
2210         if compiling pedantically with GCC, unless it's C99 or later.
2211         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
2212         it mishandles gcc -ansi -pedantic as well.
2213         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
2214         if gcc -pedantic.
2215         * lib/regexec.c (check_node_accept_bytes): Don't use auto
2216         initializers for struct if -pedantic, unless it's C99 or later.
2217
2218 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
2219
2220         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
2221         Don't close an fd more than once. Identical atimes indicate
2222         success, not failure.
2223
2224 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
2225
2226         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
2227
2228 2006-11-23  Jim Meyering  <jim@meyering.net>
2229
2230         * build-aux/announce-gen: New file.  From coreutils.
2231
2232 2006-11-22  Jim Meyering  <jim@meyering.net>
2233
2234         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
2235         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
2236         (fts_read): Use a temporary to narrow the overused st_size member
2237         before using it in a switch statement.  Reported by Matthew Woehlke.
2238
2239         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
2240         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
2241
2242 2006-11-20  Bruno Haible  <bruno@clisp.org>
2243
2244         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
2245         changequote instead of pairs of brackets.
2246         Reported by Andreas Schwab <schwab@suse.de>.
2247
2248 2006-11-21  Jim Meyering  <jim@meyering.net>
2249
2250         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
2251         so as to remain compatible with older compilers.
2252         Patch from Michael Deutschmann.
2253
2254 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
2255
2256         * MODULES.html.sh (File system functions): Add openat.
2257
2258         * lib/openat.h (rpl_fstatat): New macro, if
2259         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
2260         (fstatat): Define to rpl_fstatat under the same conditions,
2261         unless COMPILING_FSTATAT.
2262         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
2263         seems to have the bug.
2264         * lib/fstatat.c: New file.
2265         * modules/openat (Files): Add it.
2266
2267 2006-11-20  Bruno Haible  <bruno@clisp.org>
2268
2269         * Makefile: New file.
2270
2271 2006-11-20  Jim Meyering  <jim@meyering.net>
2272
2273         The beginnings of syntax-related checks for gnulib.
2274         * lib/Makefile: New file.
2275         * lib/t-idcache: New script.  Ensure that the two halves of
2276         idcache.c stay in sync.
2277
2278         * lib/idcache.c: Adjust comments in user- and group- portions to
2279         be more accurate, and to be consistent with one another.
2280
2281 2006-11-20  Jim Meyering  <jim@meyering.net>
2282
2283         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
2284         continue using the flexible array member (thus, this module performs
2285         half as many malloc calls), with the addition that...
2286         (getgroup, getuser): Consistently record a non-match via an empty
2287         "name" string, and map an empty string match to a NULL return value.
2288         * modules/idcache (Depends-on): Re-add flexmember.
2289
2290         * lib/idcache.c (getuser): Remove all uses of the register keyword.
2291         (getuidbyname, getgroup, getgidbyname): Likewise.
2292
2293         Use cleaner syntax: NULL rather than 0.
2294         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
2295
2296 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
2297
2298         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
2299         It mishandled the case where the group was missing.
2300         Problem reported by Greg Schafer.
2301         * modules/idcache: Likewise.
2302
2303 2006-11-18  Jim Meyering  <jim@meyering.net>
2304
2305         * check-module (%exempt_header): Add exception for some
2306         conditionally-included headers.
2307
2308         * modules/i-ring (Depends-on): Add verify.
2309         (License): Change to LGPL.
2310
2311 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
2312
2313         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
2314         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
2315         and inttostr.h.  Use snprintf rather than uinttostr, so that
2316         LGPLed code doesn't depend on GPLed.
2317
2318 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
2319
2320         * modules/inline (License): Change from GPL to LGPL.
2321
2322 2006-11-17  Jim Meyering  <jim@meyering.net>
2323
2324         * modules/d-type (License): Switch to LGPL.
2325
2326 2006-11-15  Bruno Haible  <bruno@clisp.org>
2327
2328         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
2329
2330 2006-11-15  Eric Blake  <ebb9@byu.net>
2331
2332         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
2333         the module dependency.
2334
2335 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
2336             Bruno Haible  <bruno@clisp.org>
2337
2338         * gnulib-tool (func_create_testdir): Add license consistency check.
2339
2340 2006-11-15  Eric Blake  <ebb9@byu.net>
2341
2342         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
2343         random "(cached)" in configure output.
2344
2345 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2346
2347         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
2348         test for conforming inttypes.h is both announced and cached.
2349
2350         * MODULES.html.sh (seen_modules, seen_files): New variables.
2351         (func_module): Rewrite to use a few less gnulib-tool and sed
2352         invocations.  Avoid a couple of quadratic algorithms for ...
2353         (missed_modules, missed_files): ... these, with ...
2354         (func_append, func_tmpdir): ... these new functions, from
2355         gnulib-tool.  Analogously, install traps for cleanup.
2356
2357         * tests/test-gc.c (main): Remove unused variables.
2358         * tests/test-read-file.c: Include stdlib.h, for 'free'.
2359
2360 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
2361
2362         * modules/inttostr (License): Change to LGPL.
2363
2364 2006-11-14  Eric Blake  <ebb9@byu.net>
2365
2366         * modules/tempname (License): Change to LGPL.
2367
2368 2006-11-14  Eric Blake  <ebb9@byu.net>
2369
2370         * doc/functions.texi (Function Portability): *printf functions on
2371         Cygwin now understand all POSIX size specifiers.
2372
2373 2006-11-14  Bruno Haible  <bruno@clisp.org>
2374
2375         * modules/c-ctype (License): Change to LGPL.
2376
2377 2006-11-12  Bruno Haible  <bruno@clisp.org>
2378
2379         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
2380         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
2381         for GNOME libraries, for which the include files are installed in
2382         subdirectories of $prefix/include.
2383
2384 2006-11-12  Bruno Haible  <bruno@clisp.org>
2385
2386         * m4/lib-link.m4: Require at least autoconf-2.54.
2387         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
2388         name to underscores for the --with option.
2389
2390 2006-11-13  Bruno Haible  <bruno@clisp.org>
2391
2392         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
2393         the tests directory.
2394         Reported by Ralf Wildenhues.
2395
2396 2006-11-13  Bruno Haible  <bruno@clisp.org>
2397
2398         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
2399         (func_emit_initmacro_end): Undo the override here.
2400         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
2401         Works around the famous automake error in coreutils.
2402
2403 2006-11-13  Eric Blake  <ebb9@byu.net>
2404
2405         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
2406         element, not its node.
2407
2408 2006-11-12  Bruno Haible  <bruno@clisp.org>
2409
2410         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
2411         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
2412
2413 2006-11-12  Bruno Haible  <bruno@clisp.org>
2414
2415         * gnulib-tool: New option --local-symlink.
2416         (func_usage): Document it.
2417         (lsymbolic): New variable.
2418         (func_import, func_create_testdir): If --symlink was not specified,
2419         test whether --local-symlink was specified and the file comes from
2420         the local_gnulib_dir.
2421
2422 2006-11-12  Bruno Haible  <bruno@clisp.org>
2423
2424         * gnulib-tool (func_ln): New function.
2425         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
2426
2427 2006-11-12  Bruno Haible  <bruno@clisp.org>
2428
2429         Finish support for source files in subdirectories.
2430         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
2431         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
2432         AUTOMAKE_OPTIONS.
2433         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
2434
2435 2006-11-12  Bruno Haible  <bruno@clisp.org>
2436
2437         * gnulib-tool (func_get_automake_snippet): Synthesize also an
2438         EXTRA_lib_SOURCES augmentation.
2439         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
2440
2441 2006-11-12  Jim Meyering  <jim@meyering.net>
2442
2443         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
2444         file descriptors.  This also averts a failure on systems with
2445         native openat support when a traversed directory lacks "x" access.
2446         * lib/fts_.h: Include "i-ring.h"
2447         (struct FTS) [fts_fd_ring]: New member.
2448         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
2449         (FCHDIR): Add parentheses.
2450         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
2451         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
2452         When descending, rather than simply closing the previous
2453         fts_cwd_fd value, push that file descriptor onto the ring.
2454         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
2455         (fts_open): Initialize the new fd_ring member.
2456         (fts_close): Clear the ring.
2457         (fts_safe_changedir): When possible, use our new fd_ring to skip
2458         the diropen and fstat and dev/ino comparison that would normally
2459         accompany a virtual `chdir ("..")'.
2460
2461         * modules/fts (Depends-on): Add i-ring.
2462         * modules/i-ring: New module.
2463         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
2464         * m4/i-ring.m4: New file.
2465
2466 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2467
2468         * gnulib-tool (func_create_testdir): Fix replacement of
2469         `build-aux' in configure.ac.  Run autotools in gltests
2470         subdirectory.
2471         (func_create_testdir, func_create_megatestdir, test): There is
2472         no need for '--force' in most autotool invocations in a new
2473         tree.  Actually fail the whole test if any of the tools, or the
2474         configure or make stages fail.
2475
2476         Sync from Automake.
2477         * build-aux/gnupload: Revert last change.  Add pointer to upload
2478         instructions of the GNU Maintenance Instructions.
2479         Suggestion by Karl Berry.
2480
2481 2006-11-10  Jim Meyering  <jim@meyering.net>
2482
2483         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
2484
2485 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
2486
2487         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
2488         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
2489         (bind_textdomain_codeset) [! ENABLE_NLS]:
2490         Evaluate all the arguments.  That way, callers get compatible behavior
2491         if the arguments have side effects.  Also, it avoids some GCC
2492         diagnostics in some cases; Joel E. Denny reported problems when Bison
2493         was configured with --enable-gcc-warnigs.
2494
2495 2006-11-10  Jim Meyering  <jim@meyering.net>
2496
2497         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
2498         relevant options in CFLAGS (like -O, -fno-inline) are taken into
2499         account.
2500
2501 2006-11-10  Jim Meyering  <jim@meyering.net>
2502
2503         * modules/inline: New file/module.
2504         * modules/xalloc (Files): Remove m4/inline.m4.
2505         (Depends-on): Add inline, instead.
2506         * modules/oset: Likewise.
2507         * modules/list: Likewise.
2508
2509 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
2510
2511         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
2512         Problem reported by Matthew Woehlke.
2513
2514 2006-11-09  Bruno Haible  <bruno@clisp.org>
2515
2516         * lib/tempname.c (gen_tempname): Remove variant that invokes
2517         __gen_tempname.
2518         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
2519         __gen_tempname.
2520
2521 2006-11-08  Bruno Haible  <bruno@clisp.org>
2522
2523         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
2524         to 'yes' instead of 'cross-compiling'.
2525
2526 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
2527
2528         * lib/quotearg.h (quotearg_free): New decl.
2529         * lib/quotearg.c (quotearg_free): New function.
2530         (slot0, nslots, slotvec0, slotvec):
2531         Now file-scope so that quotearg_free can get at them.
2532
2533 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2534
2535         Sync from Automake.
2536         * build-aux/gnupload: Add missing 'gnu' to example URL.
2537         Report by Karl Berry.
2538
2539 2006-11-08  Bruno Haible  <bruno@clisp.org>
2540
2541         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
2542         Suggested by Paul Eggert.
2543
2544 2006-11-08  Jim Meyering  <jim@meyering.net>
2545
2546         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
2547         It's already included if !_LIBC.
2548         (fts_safe_changedir): Add a comment.
2549
2550 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
2551
2552         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
2553         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
2554         Matthew Woehlke.
2555
2556         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
2557         definitions up, to avoid colliding with change below.
2558         (static_inline) [HAVE_INLINE]: New macro.
2559         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
2560         Provide extern decls when !HAVE_INLINE.  Do not define unless
2561         static_inline is defined, either by us or by xmalloc.c.  Use
2562         static_inline rather than static inline.
2563         (XCALLOC): Optimize sizeof(T) = 1 case.
2564         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
2565
2566 2006-11-07  Bruno Haible  <bruno@clisp.org>
2567
2568         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
2569         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
2570         AC_C_INLINE.
2571         * modules/xalloc (Files): Add m4/inline.m4.
2572
2573 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2574
2575         * README: Fix typo.
2576         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
2577         (Miscellanous Notes): ...from this.
2578
2579 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
2580
2581         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
2582         Mention that offsetof should be used instead of sizeof.
2583         From Bruno Haible.
2584
2585 2006-11-07  Bruno Haible  <bruno@clisp.org>
2586
2587         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
2588
2589 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
2590
2591         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
2592         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
2593         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
2594         (gl_tree_add_before, gl_tree_add_after):
2595         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
2596         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
2597         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
2598         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
2599         (gl_linked_add_after, gl_linked_add_at): Likewise.
2600         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
2601         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
2602         (gl_tree_add_before, gl_tree_add_after): Likewise.
2603         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
2604         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
2605         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
2606
2607 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2608
2609         * lib/gl_oset.h: Use C comment style, not C++ comment style.
2610
2611 2006-11-06  Bruno Haible  <bruno@clisp.org>
2612
2613         * m4/inline.m4: New file.
2614         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
2615         * modules/list (Files): Add m4/inline.m4.
2616         * modules/oset (Files): Likewise.
2617
2618 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
2619
2620         * lib/idcache.c: Include <stddef.h>, for offsetof.
2621         (struct userid.name): Change from char * to a flexible array member.
2622         All uses changed.
2623         * modules/idcache (Depends-on): Add flexmember.
2624
2625         * MODULES.html.sh (Core language properties): New module flexmember.
2626         * modules/flexmember, m4/flexmember.m4: New files.
2627
2628         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
2629         inline functions that are identical with the old xnmalloc_inline,
2630         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
2631         that we can avoid some unnecessary integer multiplications and
2632         divisions in the common case where the element size is known at
2633         compile time.
2634         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
2635         needed.
2636         (xnboundedmalloc): Remove.
2637         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
2638         arguments, for consistency with rest of this header.
2639         (xcharalloc): Rewrite using XNMALLOC.
2640         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
2641         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
2642         versions have been moved to lib/xalloc.h and renamed to be the
2643         non-*_inline versions.
2644         (xmalloc, xrealloc): Implement without reference to the xnmalloc
2645         and xnrealloc functions, since those functions are now inline and
2646         now call us.
2647         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
2648         renaming described above.
2649         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
2650         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
2651         captures the dependency in AC_C_INLINE.
2652
2653         New module canonicalize-lgpl, proposed by Charles Wilson in
2654         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
2655         with a few small changes afterwards.
2656         * MODULES.html.sh (File system functions): New module
2657         canonicalize-lgpl.
2658         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
2659         and canonicalize_file_name.
2660         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
2661         * modules/canonicalize-lgpl: New files.
2662
2663 2006-11-05  Bruno Haible  <bruno@clisp.org>
2664
2665         * gnulib-tool (func_import, func_create_testdir): Create directories
2666         also for files in subdirectories of lib/.
2667
2668 2006-11-05  Bruno Haible  <bruno@clisp.org>
2669
2670         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
2671         ANSI C compliant.
2672
2673 2006-11-03  Bruno Haible  <bruno@clisp.org>
2674
2675         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
2676         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
2677         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
2678         (xnboundedmalloc): New inline function.
2679         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
2680         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
2681         xmalloc.
2682         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
2683         xmalloc.
2684         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
2685         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
2686         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
2687         xmalloc.
2688         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
2689         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
2690         xmalloc.
2691         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
2692         gl_tree_add_after): Use XMALLOC instead of xmalloc.
2693         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
2694         xmalloc.
2695         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
2696         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
2697         gl_tree_add_after): Use XMALLOC instead of xmalloc.
2698         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
2699         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
2700         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
2701         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
2702
2703 2006-11-03  Bruno Haible  <bruno@clisp.org>
2704
2705         * lib/c-ctype.h [C++]: Define functions without name mangling.
2706         * lib/fwriteerror.h [C++]: Likewise.
2707         * lib/gcd.h [C++]: Likewise.
2708         * lib/linebreak.h [C++]: Likewise.
2709
2710 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
2711
2712         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
2713         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
2714         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
2715         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
2716         Check for functions and headers just once.
2717         Check for declaration of canonicalize_file_name.
2718         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
2719
2720 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
2721
2722         * gnulib-tool (func_import): Fix typo in actioncmd.
2723
2724 2006-11-02  Bruno Haible  <bruno@clisp.org>
2725
2726         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
2727         newline sequence in the Makefile.am snippet as a space, like "make"
2728         does.
2729         Reported by Roger Persson <perrog@gmail.com>.
2730
2731 2006-11-01  Bruno Haible  <bruno@clisp.org>
2732
2733         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
2734         already declared in <string.h>.
2735         * lib/strcase.h (strncasecmp): Don't declare it if yes.
2736
2737 2006-11-01  Bruno Haible  <bruno@clisp.org>
2738
2739         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
2740         * lib/strcase.h: Include <string.h>.
2741         (strcasecmp): Define to rpl_strcasecmp here.
2742
2743 2006-11-01  Bruno Haible  <bruno@clisp.org>
2744
2745         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
2746
2747 2006-11-01  Eric Blake  <ebb9@byu.net>
2748
2749         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
2750
2751         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
2752
2753 2006-10-29  Bruno Haible  <bruno@clisp.org>
2754
2755         Make it compile in C++ mode.
2756         * lib/full-write.c (full_rw): Add a cast.
2757
2758 2006-11-01  Bruno Haible  <bruno@clisp.org>
2759
2760         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
2761         be POSIX compliant.
2762         Reported by Roger Persson <perrog@gmail.com>.
2763
2764 2006-11-01  Eric Blake  <ebb9@byu.net>
2765
2766         * lib/getopt_.h: Fix comments.
2767
2768 2006-10-31  Eric Blake  <ebb9@byu.net>
2769
2770         * modules/tmpdir (Depends-on): Add sys_stat.
2771         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
2772         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
2773         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
2774         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
2775         tempname.
2776
2777 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
2778
2779         Avoid some C++ diagnostics reported by Bruno Haible.
2780         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
2781         xmalloc.
2782         (quotearg_alloc): Use xcharalloc rather than xmalloc.
2783         (struct slotvec): Move to top level.
2784         (quotearg_n_options): Rewrite to avoid xmalloc.
2785         * lib/xalloc.h (xcharalloc): New function.
2786         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
2787         [defined __cplusplus]: Add function template that provides result
2788         type propagation.  This part of the change is from Bruno Haible.
2789
2790 2006-10-29  Bruno Haible  <bruno@clisp.org>
2791
2792         Make it compile in C++ mode.
2793         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
2794         * lib/strnlen1.c (strnlen1): Cast memchr result.
2795         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
2796         * lib/clean-temp.c (string_equals, string_hash): Add casts.
2797         (create_temp_dir): Rename local variable 'template'.
2798         (compile_csharp_using_sscli): Add cast.
2799         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
2800         * lib/findprog.c (find_in_path): Likewise.
2801         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
2802         * lib/wait-process.c (register_slave_subprocess): Likewise.
2803
2804 2006-10-22  Bruno Haible  <bruno@clisp.org>
2805
2806         * modules/tsearch: New file.
2807         * lib/tsearch.h: New file.
2808         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
2809         * m4/tsearch.m4: New file.
2810         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
2811
2812 2006-10-29  Eric Blake  <ebb9@byu.net>
2813
2814         * lib/arcfour.c: Assume config.h.
2815         * lib/arctwo.c: Likewise.
2816         * lib/base64.c: Likewise.
2817         * lib/check-version.c: Likewise.
2818         * lib/crc.c: Likewise.
2819         * lib/des.c: Likewise.
2820         * lib/gc-gnulib.c: Likewise.
2821         * lib/gc-libgcrypt.c: Likewise.
2822         * lib/gc-pbkdf2-sha1.c: Likewise.
2823         * lib/getaddrinfo.c: Likewise.
2824         * lib/getdelim.c: Likewise.
2825         * lib/getline.c: Likewise.
2826         * lib/hmac-md5.c: Likewise.
2827         * lib/hmac-sha1.c: Likewise.
2828         * lib/iconvme.c: Likewise.
2829         * lib/md2.c: Likewise.
2830         * lib/md4.c: Likewise.
2831         * lib/memxor.c: Likewise.
2832         * lib/read-file.c: Likewise.
2833         * lib/readline.c: Likewise.
2834         * lib/rijndael-alg-fst.c: Likewise.
2835         * lib/rijndael-api-fst.c: Likewise.
2836         * lib/xgetdomainname.c: Likewise.
2837
2838 2006-10-28  Eric Blake  <ebb9@byu.net>
2839
2840         * lib/xstrndup.c: Assume config.h.
2841
2842 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
2843
2844         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
2845         stat-macros.h is now for our own macros, whereas stat_h is for
2846         macros in the <sys/stat.h> name space.
2847         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
2848         (STAT_MACROS_H): Remove.
2849         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
2850         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
2851         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
2852         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
2853         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
2854         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
2855         Move these macros to ...
2856         * lib/stat_.h: here.  Don't include stat-macros.h.
2857         * lib/canonicalize.c: Don't include stat-macros.h.
2858         * lib/chown.c: Likewise.
2859         * lib/euidaccess.c: Likewise.
2860         * lib/file-type.c: Likewise.
2861         * lib/filemode.c: Likewise.
2862         * lib/glob.c: Likewise.
2863         * lib/isapipe.c: Likewise.
2864         * lib/lchown.c: Likewise.
2865         * lib/lstat.c: Likewise.
2866         * lib/mkdir-p.c: Likewise.
2867         * lib/rmdir.c: Likewise.
2868         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
2869         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
2870         unless mkdir isn't declared, to speed up 'configure'.
2871         Always create sys/stat.h, since it's unlikely any real sys/stat.h
2872         would define all the S_* symbols.
2873         * modules/canonicalize (Depends-on):
2874         Depend on sys_stat, not stat-macros.
2875         * modules/chown: Likewise.
2876         * modules/euidaccess: Likewise.
2877         * modules/filemode: Likewise.
2878         * modules/file-type: Likewise.
2879         * modules/glob: Likewise.
2880         * modules/isapipe: Likewise.
2881         * modules/lchown: Likewise.
2882         * modules/lstat: Likewise.
2883         * modules/mkancesdirs: Likewise.
2884         * modules/rmdir: Likewise.
2885         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
2886         * modules/modechange: Likewise.
2887         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
2888         (configure.ac): Remove gl_STAT_MACROS.
2889         * modules/sys_stat (Depends-on): Remove stat-macros.
2890
2891 2006-10-27  Bruno Haible  <bruno@clisp.org>
2892
2893         * m4/signed.m4: Remove file.
2894         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
2895         invocation.
2896         * modules/vasnprintf (Files): Remove m4/signed.m4.
2897
2898 2006-10-27  Bruno Haible  <bruno@clisp.org>
2899
2900         Update to GNU gettext 0.16.
2901         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
2902         m4/inttypes-h.m4, m4/signed.m4.
2903         * m4/gettext.m4: Update to GNU gettext 0.16.
2904         * m4/intl.m4: New file, from GNU gettext.
2905         * m4/intldir.m4: New file, from GNU gettext.
2906         * config/srclist.txt: Update
2907
2908 2006-10-27  Eric Blake  <ebb9@byu.net>
2909
2910         * MODULES.html.sh: Document tempname.
2911         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
2912         dependencies.
2913         (Files): Move lib/tempname.c...
2914         * modules/tempname: ...to this new module.
2915         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
2916         (gl_PREREQ_TEMPNAME): Move...
2917         * m4/tempname.m4: ...to this new file.
2918         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
2919         * modules/sys_stat (Depends-on): Add stat-macros.
2920         * lib/stat_.h (includes): Pick up stat macros.
2921         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
2922         if stat macros are broken.
2923         * lib/tempname.c (includes): No need to include "stat-macros.h".
2924         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
2925         (direxists, __path_search) [!_LIBC]: Don't compile these in
2926         gnulib; the tmpdir module covers that.
2927         * lib/tempname.h: New file.
2928
2929 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
2930
2931         * COPYING: Explain how gnulib-tool converts licence headers.
2932         Almost all wording by Eric Blake.
2933
2934 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
2935
2936         * lib/mbchar.h (is_basic_table): Make read-only.
2937         * lib/mbchar.c (is_basic_table): Likewise.
2938         Reported by John Darrington.
2939
2940 2006-10-25  Bruno Haible  <bruno@clisp.org>
2941
2942         * lib/progname.h (set_program_name): Undefine before defining.
2943
2944 2006-10-25  Bruno Haible  <bruno@clisp.org>
2945
2946         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
2947         false for non-gcc C++ compilers.
2948         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
2949
2950 2006-10-24  Bruno Haible  <bruno@clisp.org>
2951
2952         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
2953         iconv implementations like Irix iconv.
2954
2955 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
2956
2957         * modules/vararrays: New file.
2958         * m4/vararrays.m4: New file, taken from diffutils.
2959         * MODULES.html.sh: New module vararrays.
2960
2961 2006-10-24  Karl Berry  <karl@gnu.org>
2962
2963         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
2964         Don't call GNU Unix.
2965
2966 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2967
2968         * users.txt: Add Libtool.
2969
2970         Sync from Libtool:
2971
2972         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
2973
2974         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
2975         to gnulib's policy of including config.h unconditionally.
2976
2977 2006-10-24  Bruno Haible  <bruno@clisp.org>
2978
2979         * modules/wcwidth (Files): Add m4/wint_t.m4.
2980         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
2981         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
2982
2983 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
2984
2985         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
2986         to pacify GCC with some -W flags enabled.  Problem reported by
2987         Bruno Haible.
2988
2989 2006-10-24  Jim Meyering  <jim@meyering.net>
2990
2991         * MODULES.html.sh: Remove uinttostr.  It's not a module.
2992         Reported by Karl Berry.
2993
2994 2006-10-23  Bruno Haible  <bruno@clisp.org>
2995
2996         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
2997
2998 2006-10-24  Bruno Haible  <bruno@clisp.org>
2999
3000         * lib/gl_list.h: Use C comment style, not C++ comment style.
3001
3002 2006-10-23  Eric Blake  <ebb9@byu.net>
3003
3004         * lib/getaddrinfo.c (includes): Add missing include.
3005
3006 2006-10-23  Bruno Haible  <bruno@clisp.org>
3007             Paul Eggert  <eggert@cs.ucla.edu>
3008
3009         Ability to rename obstack_free.
3010         * lib/obstack.h (__obstack_free): New macro. Declare instead of
3011         obstack_free.
3012         (obstack_free): Invoke the __obstack_free macro.
3013         * lib/obstack.c (obstack_free): Use __obstack_free macro.
3014
3015 2006-10-23  Bruno Haible  <bruno@clisp.org>
3016             Paul Eggert  <eggert@cs.ucla.edu>
3017
3018         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
3019         __argc, __argv from the declaration. (They are defined as macros on
3020         mingw.)
3021
3022 2006-10-22  Bruno Haible  <bruno@clisp.org>
3023
3024         * doc/gnulib-intro.texi: New file.
3025         * doc/gnulib.texi: Include it.
3026
3027 2006-10-21  Bruno Haible  <bruno@clisp.org>
3028
3029         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
3030         "Introduction", "Miscellanous Notes", "Particular Modules".
3031
3032 2006-10-21  Bruno Haible  <bruno@clisp.org>
3033
3034         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
3035         Change mostlyclean-local rule to avoid sh syntax error from bash
3036         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
3037
3038 2006-10-23  Jim Meyering  <jim@meyering.net>
3039
3040         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
3041         in place of snprintf.
3042
3043         * modules/inttostr (Files): Add lib/uinttostr.c.
3044         * lib/uinttostr.c (inttostr): New file/function.
3045         * lib/inttostr.h (uinttostr): Declare.
3046         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
3047         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
3048         Add uinttostr.
3049         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
3050
3051 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
3052
3053         * lib/canonicalize.c (ELOOP): Define if not already defined.
3054         Problem reported by Bruno Haible in
3055         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
3056
3057 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
3058
3059         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
3060         Problem reported by Perry Smith and Ville Laurikari.
3061
3062         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
3063         uses.
3064
3065 2006-10-19  Bruno Haible  <bruno@clisp.org>
3066
3067         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
3068         for mingw.
3069
3070 2006-10-19  Bruno Haible  <bruno@clisp.org>
3071
3072         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
3073         Needed for mingw.
3074
3075 2006-10-19  Bruno Haible  <bruno@clisp.org>
3076
3077         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
3078
3079 2006-10-19  Bruno Haible  <bruno@clisp.org>
3080
3081         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
3082         it.
3083
3084 2006-10-19  Bruno Haible  <bruno@clisp.org>
3085
3086         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
3087         invocation.
3088
3089 2006-10-19  Bruno Haible  <bruno@clisp.org>
3090
3091         * gnulib-tool (func_create_testdir): Don't include ftruncate and
3092         mountlist by default.
3093
3094 2006-10-16  Bruno Haible  <bruno@clisp.org>
3095
3096         * lib/c-strstr.c: Include c-strstr.h.
3097
3098 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
3099
3100         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
3101         in a slash.
3102
3103 2006-10-18  Bruno Haible  <bruno@clisp.org>
3104
3105         * lib/lock.h [C++]: Wrap definitions in extern "C".
3106
3107 2006-10-18  Bruno Haible  <bruno@clisp.org>
3108
3109         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
3110         gl_LIBOBJS list.
3111
3112 2006-10-18  Bruno Haible  <bruno@clisp.org>
3113
3114         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
3115
3116 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
3117
3118         * lib/xstrtol.h: Include gettext.h.
3119         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
3120         Problem reported by Eric Blake.
3121         * modules/xstrtol (Depends-on): Add gettext-h.
3122
3123 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
3124
3125         * lib/strftime.c (advance): New macro.
3126         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
3127         incomplete type, so you can't add 0 to it.  Problem and patch
3128         reported by Eelco Dolstra for dietlibc.
3129
3130 2006-10-18  Jim Meyering  <jim@meyering.net>
3131
3132         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
3133         type for a local, and rename it: s/up/user_proc/.
3134
3135 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
3136
3137         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
3138         READ_UTMP_USER_PROCESS.
3139         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
3140
3141 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
3142
3143         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
3144         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
3145
3146 2006-10-17  Eric Blake  <ebb9@byu.net>
3147
3148         * lib/sigprocmask.c (sigprocmask): Fix typo.
3149
3150         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
3151
3152         * modules/clean-temp (Makefile.am): Don't add to make output...
3153         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
3154         config.h.
3155
3156 2006-10-17  Bruno Haible  <bruno@clisp.org>
3157
3158         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
3159         differently if DEFAULT_TEXT_DOMAIN is set.
3160
3161 2006-10-16  Bruno Haible  <bruno@clisp.org>
3162
3163         * lib/clean-temp.c: Include fwriteerror.h.
3164
3165 2006-10-16  Bruno Haible  <bruno@clisp.org>
3166
3167         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
3168
3169 2006-10-16  Bruno Haible  <bruno@clisp.org>
3170
3171         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
3172         * lib/sigprocmask.h: Include <sys/types.h>.
3173         (sigset_t): Use the system's definition if present.
3174
3175 2006-10-17  Eric Blake  <ebb9@byu.net>
3176
3177         * lib/xvasprintf.c (includes): Assume config.h.
3178         * lib/xasprintf.c (includes): Likewise.
3179
3180 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
3181
3182         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
3183         at least as wide as intmax_t.
3184
3185 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
3186
3187         (Imported from Automake.)
3188         * build-aux/gnupload: Update to version 1.1 of directive file.
3189
3190 2006-10-16  Eric Blake  <ebb9@byu.net>
3191
3192         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
3193         match Automake 1.10a.
3194
3195 2006-10-14  Bruno Haible  <bruno@clisp.org>
3196
3197         * modules/sigprocmask: New file.
3198         * lib/sigprocmask.h: New file.
3199         * lib/sigprocmask.c: New file.
3200         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
3201         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
3202         request sigprocmask.o.
3203         (gl_PREREQ_SIGPROCMASK): New macro.
3204         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
3205         (Depends-on): Add sigprocmask.
3206         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
3207         gt_SIGNALBLOCKING. Test for 'raise' only once.
3208         * lib/fatal-signal.c: Include sigprocmask.h.
3209         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
3210         unblock_fatal_signals): Define always.
3211         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
3212         sigprocmask.
3213
3214 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
3215
3216         Sync from Automake.
3217         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
3218         which incorrectly sets the mode of an existing destination
3219         directory.  In some cases the unpatched install-sh could do the
3220         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
3221         system.  We hope this is rare in practice, but it's clearly worth
3222         fixing.  Problem reported by Alex Unleashed in
3223         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
3224         Also, don't bother to check for -m bugs unless we're using -m;
3225         suggested by Stepan Kasal.
3226
3227 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3228
3229         Sync from Automake.
3230         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
3231         `-c' flag, so they appear at the same position as in %FASTDEP%
3232         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
3233         which ignores unknown options only after the first non-option.
3234         Bug report against M4 by Nelson H. F. Beebe.
3235
3236 2006-10-13  Jim Meyering  <jim@meyering.net>
3237
3238         Fix a bug in yesterday's change.
3239         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
3240         p->fts_statp->st_dev would be used uninitialized.
3241         Ensures that we always call fts_stat on the very first entry.
3242         Miklos Szeredi reported that find -xdev stopped working.
3243
3244 2006-10-12  Bruno Haible  <bruno@clisp.org>
3245
3246         * gnulib-tool (func_get_automake_snippet): Append an automatically
3247         computed EXTRA_DIST augmentation.
3248         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
3249         * modules/alloca-opt (Makefile.am): Likewise.
3250         * modules/allocsa (Makefile.am): Likewise.
3251         * modules/arcfour (Makefile.am): Likewise.
3252         * modules/arctwo (Makefile.am): Likewise.
3253         * modules/argmatch (Makefile.am): Likewise.
3254         * modules/argz (Makefile.am): Likewise.
3255         * modules/atexit (Makefile.am): Likewise.
3256         * modules/backupfile (Makefile.am): Likewise.
3257         * modules/byteswap (Makefile.am): Likewise.
3258         * modules/c-strtod (Makefile.am): Likewise.
3259         * modules/c-strtold (Makefile.am): Likewise.
3260         * modules/calloc (Makefile.am): Likewise.
3261         * modules/canon-host (Makefile.am): Likewise.
3262         * modules/canonicalize (Makefile.am): Likewise.
3263         * modules/chdir-long (Makefile.am): Likewise.
3264         * modules/chdir-safer (Makefile.am): Likewise.
3265         * modules/check-version (Makefile.am): Likewise.
3266         * modules/chown (Makefile.am): Likewise.
3267         * modules/cloexec (Makefile.am): Likewise.
3268         * modules/close-stream (Makefile.am): Likewise.
3269         * modules/closeout (Makefile.am): Likewise.
3270         * modules/crc (Makefile.am): Likewise.
3271         * modules/csharpexec (Makefile.am): Likewise.
3272         * modules/cycle-check (Makefile.am): Likewise.
3273         * modules/des (Makefile.am): Likewise.
3274         * modules/dev-ino (Makefile.am): Likewise.
3275         * modules/dirfd (Makefile.am): Likewise.
3276         * modules/dirname (Makefile.am): Likewise.
3277         * modules/dup2 (Makefile.am): Likewise.
3278         * modules/eealloc (Makefile.am): Likewise.
3279         * modules/error (Makefile.am): Likewise.
3280         * modules/euidaccess (Makefile.am): Likewise.
3281         * modules/exclude (Makefile.am): Likewise.
3282         * modules/exitfail (Makefile.am): Likewise.
3283         * modules/fcntl-safer (Makefile.am): Likewise.
3284         * modules/fcntl (Makefile.am): Likewise.
3285         * modules/file-type (Makefile.am): Likewise.
3286         * modules/fileblocks (Makefile.am): Likewise.
3287         * modules/filemode (Makefile.am): Likewise.
3288         * modules/filenamecat (Makefile.am): Likewise.
3289         * modules/fnmatch (Makefile.am): Likewise.
3290         * modules/fopen-safer (Makefile.am): Likewise.
3291         * modules/fpending (Makefile.am): Likewise.
3292         * modules/fprintftime (Makefile.am): Likewise.
3293         * modules/free (Makefile.am): Likewise.
3294         * modules/fsusage (Makefile.am): Likewise.
3295         * modules/ftruncate (Makefile.am): Likewise.
3296         * modules/fts (Makefile.am): Likewise.
3297         * modules/gc-arcfour (Makefile.am): Likewise.
3298         * modules/gc-des (Makefile.am): Likewise.
3299         * modules/gc-hmac-md5 (Makefile.am): Likewise.
3300         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
3301         * modules/gc-md4 (Makefile.am): Likewise.
3302         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
3303         * modules/gc-sha1 (Makefile.am): Likewise.
3304         * modules/gc (Makefile.am): Likewise.
3305         * modules/getaddrinfo (Makefile.am): Likewise.
3306         * modules/getcwd (Makefile.am): Likewise.
3307         * modules/getdelim (Makefile.am): Likewise.
3308         * modules/getdomainname (Makefile.am): Likewise.
3309         * modules/getgroups (Makefile.am): Likewise.
3310         * modules/gethostname (Makefile.am): Likewise.
3311         * modules/gethrxtime (Makefile.am): Likewise.
3312         * modules/getline (Makefile.am): Likewise.
3313         * modules/getloadavg (Makefile.am): Likewise.
3314         * modules/getlogin_r (Makefile.am): Likewise.
3315         * modules/getndelim2 (Makefile.am): Likewise.
3316         * modules/getopt (Makefile.am): Likewise.
3317         * modules/getpagesize (Makefile.am): Likewise.
3318         * modules/getpass-gnu (Makefile.am): Likewise.
3319         * modules/getpass (Makefile.am): Likewise.
3320         * modules/getsubopt (Makefile.am): Likewise.
3321         * modules/gettime (Makefile.am): Likewise.
3322         * modules/gettimeofday (Makefile.am): Likewise.
3323         * modules/getugroups (Makefile.am): Likewise.
3324         * modules/getusershell (Makefile.am): Likewise.
3325         * modules/glob (Makefile.am): Likewise.
3326         * modules/group-member (Makefile.am): Likewise.
3327         * modules/hard-locale (Makefile.am): Likewise.
3328         * modules/hash (Makefile.am): Likewise.
3329         * modules/hmac-md5 (Makefile.am): Likewise.
3330         * modules/hmac-sha1 (Makefile.am): Likewise.
3331         * modules/human (Makefile.am): Likewise.
3332         * modules/idcache (Makefile.am): Likewise.
3333         * modules/imaxabs (Makefile.am): Likewise.
3334         * modules/imaxdiv (Makefile.am): Likewise.
3335         * modules/inet_ntop (Makefile.am): Likewise.
3336         * modules/inet_pton (Makefile.am): Likewise.
3337         * modules/intprops (Makefile.am): Likewise.
3338         * modules/inttostr (Makefile.am): Likewise.
3339         * modules/inttypes (Makefile.am): Likewise.
3340         * modules/isapipe (Makefile.am): Likewise.
3341         * modules/javaversion (Makefile.am): Likewise.
3342         * modules/lchmod (Makefile.am): Likewise.
3343         * modules/lchown (Makefile.am): Likewise.
3344         * modules/localcharset (Makefile.am): Likewise.
3345         * modules/long-options (Makefile.am): Likewise.
3346         * modules/lstat (Makefile.am): Likewise.
3347         * modules/malloc (Makefile.am): Likewise.
3348         * modules/mathl (Makefile.am): Likewise.
3349         * modules/mbchar (Makefile.am): Likewise.
3350         * modules/md2 (Makefile.am): Likewise.
3351         * modules/md4 (Makefile.am): Likewise.
3352         * modules/md5 (Makefile.am): Likewise.
3353         * modules/memcasecmp (Makefile.am): Likewise.
3354         * modules/memchr (Makefile.am): Likewise.
3355         * modules/memcmp (Makefile.am): Likewise.
3356         * modules/memcoll (Makefile.am): Likewise.
3357         * modules/memcpy (Makefile.am): Likewise.
3358         * modules/memmem (Makefile.am): Likewise.
3359         * modules/memmove (Makefile.am): Likewise.
3360         * modules/mempcpy (Makefile.am): Likewise.
3361         * modules/memrchr (Makefile.am): Likewise.
3362         * modules/memset (Makefile.am): Likewise.
3363         * modules/memxor (Makefile.am): Likewise.
3364         * modules/mkancesdirs (Makefile.am): Likewise.
3365         * modules/mkdir-p (Makefile.am): Likewise.
3366         * modules/mkdir (Makefile.am): Likewise.
3367         * modules/mkdtemp (Makefile.am): Likewise.
3368         * modules/mkstemp (Makefile.am): Likewise.
3369         * modules/mktime (Makefile.am): Likewise.
3370         * modules/modechange (Makefile.am): Likewise.
3371         * modules/mountlist (Makefile.am): Likewise.
3372         * modules/nanosleep (Makefile.am): Likewise.
3373         * modules/obstack (Makefile.am): Likewise.
3374         * modules/openat (Makefile.am): Likewise.
3375         * modules/pagealign_alloc (Makefile.am): Likewise.
3376         * modules/pathmax (Makefile.am): Likewise.
3377         * modules/physmem (Makefile.am): Likewise.
3378         * modules/poll (Makefile.am): Likewise.
3379         * modules/posixtm (Makefile.am): Likewise.
3380         * modules/posixver (Makefile.am): Likewise.
3381         * modules/putenv (Makefile.am): Likewise.
3382         * modules/quote (Makefile.am): Likewise.
3383         * modules/quotearg (Makefile.am): Likewise.
3384         * modules/raise (Makefile.am): Likewise.
3385         * modules/read-file (Makefile.am): Likewise.
3386         * modules/readline (Makefile.am): Likewise.
3387         * modules/readlink (Makefile.am): Likewise.
3388         * modules/readtokens (Makefile.am): Likewise.
3389         * modules/readutmp (Makefile.am): Likewise.
3390         * modules/realloc (Makefile.am): Likewise.
3391         * modules/regex (Makefile.am): Likewise.
3392         * modules/rename-dest-slash (Makefile.am): Likewise.
3393         * modules/rename (Makefile.am): Likewise.
3394         * modules/rijndael (Makefile.am): Likewise.
3395         * modules/rmdir (Makefile.am): Likewise.
3396         * modules/rpmatch (Makefile.am): Likewise.
3397         * modules/safe-read (Makefile.am): Likewise.
3398         * modules/safe-write (Makefile.am): Likewise.
3399         * modules/same-inode (Makefile.am): Likewise.
3400         * modules/same (Makefile.am): Likewise.
3401         * modules/save-cwd (Makefile.am): Likewise.
3402         * modules/savedir (Makefile.am): Likewise.
3403         * modules/setenv (Makefile.am): Likewise.
3404         * modules/settime (Makefile.am): Likewise.
3405         * modules/sha1 (Makefile.am): Likewise.
3406         * modules/sig2str (Makefile.am): Likewise.
3407         * modules/snprintf (Makefile.am): Likewise.
3408         * modules/stat-macros (Makefile.am): Likewise.
3409         * modules/stat-time (Makefile.am): Likewise.
3410         * modules/stdbool (Makefile.am): Likewise.
3411         * modules/stdint (Makefile.am): Likewise.
3412         * modules/stdlib-safer (Makefile.am): Likewise.
3413         * modules/stpcpy (Makefile.am): Likewise.
3414         * modules/stpncpy (Makefile.am): Likewise.
3415         * modules/strcase (Makefile.am): Likewise.
3416         * modules/strcasestr (Makefile.am): Likewise.
3417         * modules/strchrnul (Makefile.am): Likewise.
3418         * modules/strcspn (Makefile.am): Likewise.
3419         * modules/strdup (Makefile.am): Likewise.
3420         * modules/strerror (Makefile.am): Likewise.
3421         * modules/strftime (Makefile.am): Likewise.
3422         * modules/strndup (Makefile.am): Likewise.
3423         * modules/strnlen (Makefile.am): Likewise.
3424         * modules/strpbrk (Makefile.am): Likewise.
3425         * modules/strsep (Makefile.am): Likewise.
3426         * modules/strstr (Makefile.am): Likewise.
3427         * modules/strtod (Makefile.am): Likewise.
3428         * modules/strtoimax (Makefile.am): Likewise.
3429         * modules/strtok_r (Makefile.am): Likewise.
3430         * modules/strtol (Makefile.am): Likewise.
3431         * modules/strtoll (Makefile.am): Likewise.
3432         * modules/strtoul (Makefile.am): Likewise.
3433         * modules/strtoull (Makefile.am): Likewise.
3434         * modules/strtoumax (Makefile.am): Likewise.
3435         * modules/strverscmp (Makefile.am): Likewise.
3436         * modules/sys_socket (Makefile.am): Likewise.
3437         * modules/sys_stat (Makefile.am): Likewise.
3438         * modules/sysexits (Makefile.am): Likewise.
3439         * modules/time_r (Makefile.am): Likewise.
3440         * modules/timegm (Makefile.am): Likewise.
3441         * modules/timespec (Makefile.am): Likewise.
3442         * modules/tmpfile-safer (Makefile.am): Likewise.
3443         * modules/trim (Makefile.am): Likewise.
3444         * modules/unistd-safer (Makefile.am): Likewise.
3445         * modules/unlinkdir (Makefile.am): Likewise.
3446         * modules/unlocked-io (Makefile.am): Likewise.
3447         * modules/userspec (Makefile.am): Likewise.
3448         * modules/utime (Makefile.am): Likewise.
3449         * modules/utimecmp (Makefile.am): Likewise.
3450         * modules/utimens (Makefile.am): Likewise.
3451         * modules/vasnprintf (Makefile.am): Likewise.
3452         * modules/vasprintf (Makefile.am): Likewise.
3453         * modules/vsnprintf (Makefile.am): Likewise.
3454         * modules/xalloc (Makefile.am): Likewise.
3455         * modules/xgetcwd (Makefile.am): Likewise.
3456         * modules/xnanosleep (Makefile.am): Likewise.
3457         * modules/xreadlink (Makefile.am): Likewise.
3458         * modules/xstrtod (Makefile.am): Likewise.
3459         * modules/xstrtol (Makefile.am): Likewise.
3460         * modules/xstrtold (Makefile.am): Likewise.
3461         * modules/yesno (Makefile.am): Likewise.
3462         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
3463
3464 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
3465
3466         * modules/error (Makefile.am): Distribute files through
3467         EXTRA_DIST, not lib_SOURCES.
3468
3469 2006-10-12  Eric Blake  <ebb9@byu.net>
3470
3471         * modules/error (Makefile.am): Distribute files in /lib.
3472         * modules/obstack (Makefile.am): Likewise.
3473
3474 2006-10-12  Bruno Haible  <bruno@clisp.org>
3475
3476         * modules/acl (Makefile.am): Distribute all files in lib/ through
3477         EXTRA_DIST.
3478         * modules/arcfour (Makefile.am): Likewise.
3479         * modules/arctwo (Makefile.am): Likewise.
3480         * modules/argmatch (Makefile.am): Likewise.
3481         * modules/argz (Makefile.am): Likewise.
3482         * modules/atexit (Makefile.am): Likewise.
3483         * modules/backupfile (Makefile.am): Likewise.
3484         * modules/c-strtod (Makefile.am): Likewise.
3485         * modules/c-strtold (Makefile.am): Likewise.
3486         * modules/calloc (Makefile.am): Likewise.
3487         * modules/canon-host (Makefile.am): Likewise.
3488         * modules/canonicalize (Makefile.am): Likewise.
3489         * modules/chdir-long (Makefile.am): Likewise.
3490         * modules/chdir-safer (Makefile.am): Likewise.
3491         * modules/check-version (Makefile.am): Likewise.
3492         * modules/chown (Makefile.am): Likewise.
3493         * modules/cloexec (Makefile.am): Likewise.
3494         * modules/close-stream (Makefile.am): Likewise.
3495         * modules/closeout (Makefile.am): Likewise.
3496         * modules/crc (Makefile.am): Likewise.
3497         * modules/cycle-check (Makefile.am): Likewise.
3498         * modules/des (Makefile.am): Likewise.
3499         * modules/dirfd (Makefile.am): Likewise.
3500         * modules/dirname (Makefile.am): Likewise.
3501         * modules/dup2 (Makefile.am): Likewise.
3502         * modules/euidaccess (Makefile.am): Likewise.
3503         * modules/exclude (Makefile.am): Likewise.
3504         * modules/exitfail (Makefile.am): Likewise.
3505         * modules/fcntl-safer (Makefile.am): Likewise.
3506         * modules/file-type (Makefile.am): Likewise.
3507         * modules/fileblocks (Makefile.am): Likewise.
3508         * modules/filemode (Makefile.am): Likewise.
3509         * modules/filenamecat (Makefile.am): Likewise.
3510         * modules/fnmatch (Makefile.am): Likewise.
3511         * modules/fopen-safer (Makefile.am): Likewise.
3512         * modules/fpending (Makefile.am): Likewise.
3513         * modules/fprintftime (Makefile.am): Likewise.
3514         * modules/free (Makefile.am): Likewise.
3515         * modules/fsusage (Makefile.am): Likewise.
3516         * modules/ftruncate (Makefile.am): Likewise.
3517         * modules/fts (Makefile.am): Likewise.
3518         * modules/gc (Makefile.am): Likewise.
3519         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
3520         * modules/getaddrinfo (Makefile.am): Likewise.
3521         * modules/getcwd (Makefile.am): Likewise.
3522         * modules/getdelim (Makefile.am): Likewise.
3523         * modules/getdomainname (Makefile.am): Likewise.
3524         * modules/getgroups (Makefile.am): Likewise.
3525         * modules/gethostname (Makefile.am): Likewise.
3526         * modules/gethrxtime (Makefile.am): Likewise.
3527         * modules/getline (Makefile.am): Likewise.
3528         * modules/getloadavg (Makefile.am): Likewise.
3529         * modules/getlogin_r (Makefile.am): Likewise.
3530         * modules/getopt (Makefile.am): Likewise.
3531         * modules/getpass (Makefile.am): Likewise.
3532         * modules/getpass-gnu (Makefile.am): Likewise.
3533         * modules/getsubopt (Makefile.am): Likewise.
3534         * modules/gettime (Makefile.am): Likewise.
3535         * modules/gettimeofday (Makefile.am): Likewise.
3536         * modules/getugroups (Makefile.am): Likewise.
3537         * modules/getusershell (Makefile.am): Likewise.
3538         * modules/glob (Makefile.am): Likewise.
3539         * modules/group-member (Makefile.am): Likewise.
3540         * modules/hard-locale (Makefile.am): Likewise.
3541         * modules/hash (Makefile.am): Likewise.
3542         * modules/hmac-md5 (Makefile.am): Likewise.
3543         * modules/hmac-sha1 (Makefile.am): Likewise.
3544         * modules/human (Makefile.am): Likewise.
3545         * modules/idcache (Makefile.am): Likewise.
3546         * modules/imaxabs (Makefile.am): Likewise.
3547         * modules/imaxdiv (Makefile.am): Likewise.
3548         * modules/inet_ntop (Makefile.am): Likewise.
3549         * modules/inet_pton (Makefile.am): Likewise.
3550         * modules/inttostr (Makefile.am): Likewise.
3551         * modules/isapipe (Makefile.am): Likewise.
3552         * modules/lchown (Makefile.am): Likewise.
3553         * modules/long-options (Makefile.am): Likewise.
3554         * modules/lstat (Makefile.am): Likewise.
3555         * modules/malloc (Makefile.am): Likewise.
3556         * modules/mathl (Makefile.am): Likewise.
3557         * modules/mbchar (Makefile.am): Likewise.
3558         * modules/md2 (Makefile.am): Likewise.
3559         * modules/md4 (Makefile.am): Likewise.
3560         * modules/md5 (Makefile.am): Likewise.
3561         * modules/memcasecmp (Makefile.am): Likewise.
3562         * modules/memchr (Makefile.am): Likewise.
3563         * modules/memcmp (Makefile.am): Likewise.
3564         * modules/memcoll (Makefile.am): Likewise.
3565         * modules/memcpy (Makefile.am): Likewise.
3566         * modules/memmem (Makefile.am): Likewise.
3567         * modules/memmove (Makefile.am): Likewise.
3568         * modules/mempcpy (Makefile.am): Likewise.
3569         * modules/memrchr (Makefile.am): Likewise.
3570         * modules/memset (Makefile.am): Likewise.
3571         * modules/memxor (Makefile.am): Likewise.
3572         * modules/mkancesdirs (Makefile.am): Likewise.
3573         * modules/mkdir (Makefile.am): Likewise.
3574         * modules/mkdir-p (Makefile.am): Likewise.
3575         * modules/mkdtemp (Makefile.am): Likewise.
3576         * modules/mkstemp (Makefile.am): Likewise.
3577         * modules/mktime (Makefile.am): Likewise.
3578         * modules/modechange (Makefile.am): Likewise.
3579         * modules/mountlist (Makefile.am): Likewise.
3580         * modules/nanosleep (Makefile.am): Likewise.
3581         * modules/openat (Makefile.am): Likewise.
3582         * modules/pagealign_alloc (Makefile.am): Likewise.
3583         * modules/physmem (Makefile.am): Likewise.
3584         * modules/poll (Makefile.am): Likewise.
3585         * modules/posixtm (Makefile.am): Likewise.
3586         * modules/posixver (Makefile.am): Likewise.
3587         * modules/putenv (Makefile.am): Likewise.
3588         * modules/quote (Makefile.am): Likewise.
3589         * modules/quotearg (Makefile.am): Likewise.
3590         * modules/raise (Makefile.am): Likewise.
3591         * modules/read-file (Makefile.am): Likewise.
3592         * modules/readline (Makefile.am): Likewise.
3593         * modules/readlink (Makefile.am): Likewise.
3594         * modules/readtokens (Makefile.am): Likewise.
3595         * modules/readutmp (Makefile.am): Likewise.
3596         * modules/realloc (Makefile.am): Likewise.
3597         * modules/regex (Makefile.am): Likewise.
3598         * modules/rename (Makefile.am): Likewise.
3599         * modules/rename-dest-slash (Makefile.am): Likewise.
3600         * modules/rijndael (Makefile.am): Likewise.
3601         * modules/rmdir (Makefile.am): Likewise.
3602         * modules/rpmatch (Makefile.am): Likewise.
3603         * modules/safe-read (Makefile.am): Likewise.
3604         * modules/safe-write (Makefile.am): Likewise.
3605         * modules/same (Makefile.am): Likewise.
3606         * modules/save-cwd (Makefile.am): Likewise.
3607         * modules/savedir (Makefile.am): Likewise.
3608         * modules/setenv (Makefile.am): Likewise.
3609         * modules/settime (Makefile.am): Likewise.
3610         * modules/sha1 (Makefile.am): Likewise.
3611         * modules/sig2str (Makefile.am): Likewise.
3612         * modules/snprintf (Makefile.am): Likewise.
3613         * modules/stdlib-safer (Makefile.am): Likewise.
3614         * modules/stpcpy (Makefile.am): Likewise.
3615         * modules/stpncpy (Makefile.am): Likewise.
3616         * modules/strcase (Makefile.am): Likewise.
3617         * modules/strcasestr (Makefile.am): Likewise.
3618         * modules/strchrnul (Makefile.am): Likewise.
3619         * modules/strcspn (Makefile.am): Likewise.
3620         * modules/strdup (Makefile.am): Likewise.
3621         * modules/strerror (Makefile.am): Likewise.
3622         * modules/strftime (Makefile.am): Likewise.
3623         * modules/strndup (Makefile.am): Likewise.
3624         * modules/strnlen (Makefile.am): Likewise.
3625         * modules/strpbrk (Makefile.am): Likewise.
3626         * modules/strsep (Makefile.am): Likewise.
3627         * modules/strstr (Makefile.am): Likewise.
3628         * modules/strtod (Makefile.am): Likewise.
3629         * modules/strtoimax (Makefile.am): Likewise.
3630         * modules/strtok_r (Makefile.am): Likewise.
3631         * modules/strtol (Makefile.am): Likewise.
3632         * modules/strtoll (Makefile.am): Likewise.
3633         * modules/strtoul (Makefile.am): Likewise.
3634         * modules/strtoull (Makefile.am): Likewise.
3635         * modules/strtoumax (Makefile.am): Likewise.
3636         * modules/strverscmp (Makefile.am): Likewise.
3637         * modules/time_r (Makefile.am): Likewise.
3638         * modules/timegm (Makefile.am): Likewise.
3639         * modules/tmpfile-safer (Makefile.am): Likewise.
3640         * modules/unistd-safer (Makefile.am): Likewise.
3641         * modules/unlinkdir (Makefile.am): Likewise.
3642         * modules/userspec (Makefile.am): Likewise.
3643         * modules/utime (Makefile.am): Likewise.
3644         * modules/utimecmp (Makefile.am): Likewise.
3645         * modules/utimens (Makefile.am): Likewise.
3646         * modules/vasnprintf (Makefile.am): Likewise.
3647         * modules/vasprintf (Makefile.am): Likewise.
3648         * modules/vsnprintf (Makefile.am): Likewise.
3649         * modules/xalloc (Makefile.am): Likewise.
3650         * modules/xgetcwd (Makefile.am): Likewise.
3651         * modules/xnanosleep (Makefile.am): Likewise.
3652         * modules/xreadlink (Makefile.am): Likewise.
3653         * modules/xstrtod (Makefile.am): Likewise.
3654         * modules/xstrtol (Makefile.am): Likewise.
3655         * modules/xstrtold (Makefile.am): Likewise.
3656         * modules/yesno (Makefile.am): Likewise.
3657
3658 2006-10-12  Jim Meyering  <jim@meyering.net>
3659
3660         * m4/getloadavg.m4: Revert the change below.
3661
3662         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
3663         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
3664         fail with a symlink, which is what coreutils' ./bootstrap now
3665         creates by default.
3666
3667 2006-10-12  Bruno Haible  <bruno@clisp.org>
3668
3669         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
3670         mingw.
3671         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
3672         MSVC and mingw explicitly.
3673
3674 2006-10-11  Simon Josefsson  <jas@extundo.com>
3675             Bruno Haible  <bruno@clisp.org>
3676
3677         Add support for multiple gnulib-tool invocations in the scope of a
3678         single configure.ac file.
3679         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
3680         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
3681         with the same contents as the _LIBADD variable.
3682         (func_emit_initmacro_start, func_emit_initmacro_end,
3683         func_emit_initmacro_done): New functions.
3684         (func_import, func_create_testdir): Invoke them. Allow the identifiers
3685         gl_LIBOBJS and gl_LTLIBOBJS.
3686
3687 2006-10-11  Bruno Haible  <bruno@clisp.org>
3688
3689         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
3690         (func_create_testdir): Don't create po/Makefile.am, don't invoke
3691         autoreconf. Instead, invoke autopoint explicitly but move back the
3692         *.m4 files from gnulib.
3693
3694 2006-10-11  Bruno Haible  <bruno@clisp.org>
3695
3696         * gnulib-tool (func_usage): Make module names after --create-testdir
3697         optional.
3698         (func_create_testdir): If no module was specified, use nearly all
3699         modules.
3700
3701 2006-10-12  Jim Meyering  <jim@meyering.net>
3702
3703         Big performance improvement for fts-based tools that use FTS_NOSTAT.
3704         Avoid spurious inode-mismatch problems on non-POSIX file systems.
3705         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
3706         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
3707         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
3708         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
3709         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
3710         (fts_set_stat_required): New function.
3711         (fts_open): Defer the calls to fts_stat, if possible or requested.
3712         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
3713         into fts_stat itself.
3714         (fts_read): Perform any required (deferred) fts_stat call.
3715         (fts_build): Likewise, for the directory we're about to open and read.
3716         In the readdir loop, carefully decide whether each entry will require
3717         an eventual call to fts_stat, using dirent.d_type info if available.
3718         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
3719         a command line argument into this function.  Update all callers.
3720         Map a return value of FTS_DOT to FTS_D for a command line argument.
3721         * modules/fts (Depends-on): Add d-type.  Alphabetize.
3722         Thanks to Miklos Szeredi for his tenacity and for the initial
3723         bug report about "find" failing on a FUSE-based file system.
3724
3725         * lib/fts.c (fts_open): Use consistent indentation.
3726
3727 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
3728
3729         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
3730         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
3731         reported by Jim Meyering.  All uses of cache variables renamed
3732         to match Autoconf's.
3733         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
3734         the other one.
3735
3736         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
3737         Fix misspelling in diagnostic.
3738
3739 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
3740
3741         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
3742         defined.  Problem reported by Matthew Woehlke.
3743
3744         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
3745         Add support for Tandem NonStop R series.
3746         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
3747         Use new macro.
3748
3749         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
3750         (has_trailing_slash): Omit size arg; all callers changed.
3751         Omit 'inline', since it doesn't help performance and we'd
3752         need to configure it.
3753         Don't count //, ///, etc. as having a trailing slash.
3754         As a side effect, this removes a C99ism reported by Matthew Woehlke.
3755         (rpl_rename_dest_slash): On failure, use rename's errno rather
3756         than (in some cases) an incorrect or junk errno.
3757         Simplify code by removing need to compute length; this does
3758         cause it to make two passes instead of one over the file name,
3759         but it's worth it.
3760
3761         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
3762         change, since Autoconf's version may no longer be appropriate now
3763         that we are using CVS Autoconf's version.  Add support for Tandem.
3764
3765 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
3766             Bruno Haible  <bruno@clisp.org>
3767
3768         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
3769         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
3770         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
3771         gl_AC_TYPE_LONG_LONG.
3772
3773         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
3774         instead of HAVE_LONG_LONG.
3775         * lib/printf-args.c (printf_fetchargs): Likewise.
3776         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
3777         * lib/vasnprintf.c (VASNPRINTF): Likewise.
3778         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
3779         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
3780         gl_AC_TYPE_LONG_LONG.
3781
3782 2006-10-11  Bruno Haible  <bruno@clisp.org>
3783
3784         * m4/longlong.m4: Add comments.
3785         * m4/ulonglong.m4: Likewise.
3786
3787 2006-10-10  Bruno Haible  <bruno@clisp.org>
3788
3789         Make it possible to #define stpcpy, strdup to aliases.
3790         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
3791         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
3792
3793 2006-10-10  Bruno Haible  <bruno@clisp.org>
3794
3795         Make it possible to #define gcd to an alias.
3796         * lib/gcd.c: Include config.h.
3797
3798 2006-10-10  Bruno Haible  <bruno@clisp.org>
3799
3800         Make it possible to #define c_isascii to an alias.
3801         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
3802         defined. Undefine the macros before defining them, to avoid gcc
3803         warnings.
3804         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
3805         define NO_C_CTYPE_MACROS early.
3806
3807 2006-10-10  Bruno Haible  <bruno@clisp.org>
3808
3809         Make it possible to #define set_program_name to an alias.
3810         * lib/progname.c: Don't undefine set_program_name; instead, undefine
3811         ENABLE_RELOCATABLE early.
3812
3813 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
3814
3815         Port to Tandem NSK OSS, which has 64-bit signed int but at most
3816         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
3817         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
3818         More generally, don't assume that 64-bit signed int is available
3819         if unsigned int is, and vice versa.
3820         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
3821         unsigned symbols, not on their signed counterparts.
3822         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
3823         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
3824         (UINT64_C, UINTMAX_C):
3825         Likewise.
3826         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
3827         unsigned counterparts.
3828         (Have_long_long, Unsigned): New macros.
3829         (Int): Renamed from INT.
3830         (strtoimax): Use the new macros.
3831         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
3832         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
3833         * modules/inttypes (inttypes.h): Substitute
3834         HAVE_UNSIGNED_LONG_LONG_INT.
3835         * modules/stdint (stdint.h): Likewise.
3836         (Files): Add m4/ulonglong.m4.
3837
3838 2006-10-10  Bruno Haible  <bruno@clisp.org>
3839
3840         Fix a gcc -Wshadow warning.
3841         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
3842         to 'bucket'.
3843         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
3844         gl_linked_indexof_from_to): Likewise.
3845         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
3846         Likewise.
3847         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
3848         Likewise.
3849         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
3850         Reported by Eric Blake.
3851
3852 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
3853
3854         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
3855         for NetBSD.  Problem reported by Bruno Haible.
3856
3857 2006-10-09  Jim Meyering  <jim@meyering.net>
3858
3859         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
3860         Patch from Bruno Haible.
3861
3862 2006-10-09  Jim Meyering  <jim@meyering.net>
3863
3864         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
3865         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
3866         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
3867
3868 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
3869
3870         Don't include <config.h> twice; this doesn't work in some cases,
3871         e.g., when config.h has "#define intmax_t long long int" and
3872         we include <config.h>, <inttypes.h>, <config.h> in that order.
3873         Problem reported by Matthew Woehlke in:
3874         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
3875         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
3876         * lib/fts-cycle.c: Don't include config.h.
3877         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
3878         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
3879         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
3880         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
3881         inttypes.h.
3882         * lib/xstrtoumax.c: Likewise.
3883         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
3884         __strtol and the like, so that this module is more like its siblings.
3885         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
3886         Remove; no longer needed now that we assume gnulib inttypes.h.
3887
3888 2006-10-08  Bruno Haible  <bruno@clisp.org>
3889
3890         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
3891         option.
3892
3893 2006-10-07  Jim Meyering  <jim@meyering.net>
3894
3895         * modules/inttypes (inttypes.h): Revert what seems to have been
3896         an inadvertent part of today's change: use "|", not "/" in the
3897         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
3898
3899 2006-10-07  Bruno Haible  <bruno@clisp.org>
3900
3901         * modules/sublist: New file.
3902
3903 2006-10-07  Bruno Haible  <bruno@clisp.org>
3904
3905         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
3906         * modules/argz (argz.h): Likewise.
3907         * modules/arpa_inet (arpa/inet.h): Likewise.
3908         * modules/byteswap (byteswap.h): Likewise.
3909         * modules/configmake (configmake.h): Likewise.
3910         * modules/fcntl (fcntl.h): Likewise.
3911         * modules/fnmatch (fnmatch.h): Likewise.
3912         * modules/getopt (getopt.h): Likewise.
3913         * modules/glob (glob.h): Likewise.
3914         * modules/inttypes (inttypes.h): Likewise.
3915         * modules/netinet_in (netinet/in.h): Likewise.
3916         * modules/poll (poll.h): Likewise.
3917         * modules/stdbool (stdbool.h): Likewise.
3918         * modules/stdint (stdint.h): Likewise.
3919         * modules/sys_select (sys/select.h): Likewise.
3920         * modules/sys_socket (sys/socket.h): Likewise.
3921         * modules/sys_stat (sys/stat.h): Likewise.
3922         * modules/sysexits (sysexits.h): Likewise.
3923         * modules/unistd (unistd.h): Likewise.
3924         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
3925         Add a "DO NOT EDIT" comment to the generated file.
3926         (func_import): Likewise for gnulib-comp.m4.
3927
3928 2006-10-07  Bruno Haible  <bruno@clisp.org>
3929
3930         * lib/gl_sublist.h: New file.
3931         * lib/gl_sublist.c: New file.
3932
3933 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
3934
3935         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
3936         name (relative to the original working directory) and the file
3937         name component (relative to the temporary working directory).  All
3938         callers changed.
3939         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
3940         * lib/mkdir-p.c (make_dir_parents): Likewise.
3941         * lib/mkdir-p.h (make_dir_parents): Likewise.
3942
3943 2006-10-06  Eric Blake  <ebb9@byu.net>
3944
3945         Define several macros for use by the clean-temp module.
3946         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
3947         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
3948         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
3949
3950         * lib/clean-temp.h (close_stream_temp): New declaration.
3951         * lib/clean-temp.c (includes): Pull in headers according to what
3952         other modules are in use.
3953         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
3954
3955 2006-10-06  Bruno Haible  <bruno@clisp.org>
3956
3957         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
3958         instead of fopen, fwriteerror.
3959
3960 2006-10-06  Bruno Haible  <bruno@clisp.org>
3961
3962         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
3963         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
3964         int.
3965         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
3966         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
3967         Return an error indicator.
3968         Suggested by Eric Blake.
3969
3970 2006-10-06  Bruno Haible  <bruno@clisp.org>
3971
3972         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
3973         Reported by Eric Blake.
3974
3975 2006-10-06  Bruno Haible  <bruno@clisp.org>
3976
3977         * modules/closeout (Description): Mention stderr too.
3978
3979 2006-10-06  Bruno Haible  <bruno@clisp.org>
3980         and Paul Eggert  <eggert@cs.ucla.edu>
3981
3982         * lib/closeout.c (close_stdout): Also close stderr.
3983         * lib/closeout.h: Update comment.
3984
3985 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
3986
3987         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
3988         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
3989         * lib/dirchownmod.c: Include lchown.h.
3990         * lib/lchown.c: Don't include files that lchown.h now includes.
3991         Don't declare chown, since lchown.h now does that.
3992         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
3993         (lchown): Define to rpl_chown if lchown is declared but
3994         does not exist.  Declare using a prototype if lchown is not
3995         declared.  Add a copyright notice.
3996         * lib/mkstemp.h: Include <unistd.h>.
3997         * lib/openat.c: Include lchown.h.
3998
3999         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
4000         we now test for that separately.
4001         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
4002         rather than O_NOFOLLOW, when testing whether it's possible to
4003         avoid a race condition reliably.
4004         * lib/savewd.c (savewd_chdir): Likewise.
4005
4006         Remove macros that are no longer needed now that stdint.h is
4007         reliable.
4008         * lib/fsusage.c (UINTMAX_MAX): Remove.
4009         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
4010         * lib/utimecmp.c (SIZE_MAX): Remove.
4011
4012         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
4013
4014         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
4015         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
4016         O_NOATIME works.
4017
4018 2006-10-05  Bruno Haible  <bruno@clisp.org>
4019
4020         * lib/gl_list.h (gl_sortedlist_search_from_to,
4021         gl_sortedlist_indexof_from_to): New declarations.
4022         (gl_list_implementation): New fields sortedlist_search_from_to,
4023         sortedlist_indexof_from_to.
4024         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
4025         inline functions.
4026         * lib/gl_list.c (gl_sortedlist_search_from_to,
4027         gl_sortedlist_indexof_from_to): New functions.
4028         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
4029         function.
4030         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
4031         (gl_array_sortedlist_search_from_to): New function.
4032         (gl_array_list_implementation): Update.
4033         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
4034         function.
4035         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
4036         (gl_carray_sortedlist_search_from_to): New function.
4037         (gl_carray_list_implementation): Update.
4038         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
4039         gl_linked_sortedlist_indexof_from_to): New functions.
4040         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
4041         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
4042         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
4043         gl_tree_sortedlist_indexof_from_to): New functions.
4044         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
4045         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
4046         Update.
4047         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
4048         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
4049         Update.
4050
4051 2006-10-05  Bruno Haible  <bruno@clisp.org>
4052
4053         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
4054         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
4055         (struct gl_list_implementation): Add fields search_from_to,
4056         indexof_from_to. Remove fields search, indexof.
4057         (gl_list_search): Use the search_from_to method.
4058         (gl_list_search_from, gl_list_search_from_to): New functions.
4059         (gl_list_indexof): Use the indexof_from_to method.
4060         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
4061         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
4062         (gl_list_search_from, gl_list_search_from_to): New functions.
4063         (gl_list_indexof): Use the indexof_from_to method.
4064         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
4065         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
4066         gl_array_indexof. Add start_index, end_index arguments.
4067         (gl_array_search_from_to): Renamed from gl_array_search. Add
4068         start_index, end_index arguments.
4069         (gl_array_remove, gl_array_list_implementation): Update.
4070         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
4071         gl_carray_indexof. Add start_index, end_index arguments.
4072         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
4073         start_index, end_index arguments.
4074         (gl_carray_remove, gl_carray_list_implementation): Update.
4075         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
4076         gl_linked_search. Add start_index, end_index arguments.
4077         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
4078         start_index, end_index arguments.
4079         (gl_linked_remove): Update.
4080         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
4081         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
4082         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
4083         field to 'size_t'.
4084         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
4085         gl_tree_search. Add start_index, end_index arguments.
4086         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
4087         start_index, end_index arguments.
4088         (gl_tree_remove): Update.
4089         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
4090         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
4091         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
4092         function.
4093         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
4094         gl_tree_search. Add start_index, end_index arguments.
4095         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
4096         start_index, end_index arguments.
4097         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
4098         Update.
4099         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
4100
4101 2006-10-05  Bruno Haible  <bruno@clisp.org>
4102
4103         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
4104
4105         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
4106         fwriteerror_temp): New declarations.
4107         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
4108         (descriptors): New variable.
4109         (cleanup): First, close the descriptors.
4110         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
4111         fclose_temp, fwriteerror_temp): New functions.
4112
4113 2006-10-04  Jim Meyering  <jim@meyering.net>
4114
4115         * lib/fts.c (fts_open): Tiny comment change.
4116
4117 2006-10-04  Bruno Haible  <bruno@clisp.org>
4118
4119         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
4120         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
4121         gl_LOCK_BODY.
4122         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
4123         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
4124         gl_LOCK_EARLY_BODY.
4125         (gl_LOCK): Require gl_LOCK_BODY.
4126
4127 2006-10-04  Bruno Haible  <bruno@clisp.org>
4128
4129         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
4130         (gl_oset_search_atleast): New declaration.
4131         (struct gl_oset_implementation): Add field 'search_atleast'.
4132         (gl_oset_search_atleast): New inline function.
4133         * lib/gl_oset.c (gl_oset_search_atleast): New function.
4134         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
4135         (gl_array_oset_implementation): Update.
4136         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
4137         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
4138         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
4139
4140 2006-10-04  Bruno Haible  <bruno@clisp.org>
4141
4142         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
4143
4144 2006-10-03  Bruno Haible  <bruno@clisp.org>
4145
4146         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
4147         from gl_avltreehash_list_implementation.
4148
4149 2006-10-03  Bruno Haible  <bruno@clisp.org>
4150
4151         * lib/gl_oset.c (gl_oset_add): Fix return type.
4152
4153 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
4154
4155         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
4156
4157 2006-10-02  Eric Blake  <ebb9@byu.net>
4158
4159         * modules/strnlen (Depends-on): Add extensions.
4160
4161 2006-10-02  Eric Blake  <ebb9@byu.net>
4162
4163         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
4164         definition in 2.60+.
4165
4166 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
4167
4168         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
4169         checks.
4170
4171 2006-10-02  Bruno Haible  <bruno@clisp.org>
4172
4173         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
4174         to the AUTOMAKE_OPTIONS.
4175         Reported by Jim Meyering.
4176
4177 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
4178
4179         Work around bug in Solaris 10 /proc file system:
4180         /proc/self/fd/NNN/.. isn't the parent directory of
4181         the directory whose file descriptor is NNN.  This needs to
4182         be worked around at run time, not compile time, since a
4183         program might be built on Solaris 8, where things work, and
4184         run on Solaris 10.
4185         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
4186         to use the following interface instead:
4187         (OPENAT_BUFFER_SIZE): New macro.
4188         (openat_proc_name): New function.
4189         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
4190         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
4191         Likewise.
4192         * lib/openat-proc.c: New file.
4193         * modules/openat (Files): Add lib/openat-proc.c.
4194         (Depends-on): Add same-inode, stdbool.
4195         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
4196
4197 2006-09-29  Bruno Haible  <bruno@clisp.org>
4198
4199         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
4200         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
4201         argument. Set stdout_closed before testing for ferror, not after.
4202         (fwriteerror, fwriteerror_no_ebadf): New functions.
4203
4204 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4205
4206         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
4207
4208 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
4209
4210         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
4211         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
4212
4213 2006-09-28  Jim Meyering  <jim@meyering.net>
4214
4215         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
4216         Include <unistd.h>.
4217
4218 2006-09-28  Bruno Haible  <bruno@clisp.org>
4219
4220         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
4221         * modules/linkedhash-list (Depends-on): Likewise.
4222         * modules/rbtreehash-list (Depends-on): Likewise.
4223
4224 2006-09-28  Bruno Haible  <bruno@clisp.org>
4225
4226         * lib/strndup.h: Simplify the redefinition of strndup.
4227         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
4228         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
4229
4230 2006-09-28  Bruno Haible  <bruno@clisp.org>
4231
4232         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
4233         * lib/gl_linkedhash_list.c: Likewise.
4234         * lib/gl_rbtreehash_list.c: Likewise.
4235
4236 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
4237
4238         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
4239         getaddrinfo.
4240
4241         * lib/__fpending.h: Don't include <stdio_ext.h> unless
4242         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
4243         it causes <stdio_ext.h> to cause a compile-time error.
4244         Problem reported by Nelson H. F. Beebe.
4245         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
4246         of HAVE_DECL___PENDING.
4247
4248         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
4249         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
4250         declaration.
4251
4252 2006-09-27  Jim Meyering  <jim@meyering.net>
4253
4254         This file could end up with a definition for a function
4255         named __strndup, rather than rpl_strndup on a system with
4256         incomplete weak_alias support.
4257         * lib/strndup.c (strndup): Rename from __strndup.
4258         Remove #defines that used to map __strndup to strndup.
4259         Don't use K&R prototypes.
4260         Remove LIBC-related code, since this file is not sync'd with glibc.
4261         * lib/strndup.h: Revamp, accordingly.
4262         * m4/strndup.m4: Modernize.
4263
4264 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
4265
4266         * modules/savewd (Depends-on): Add 'raise'.
4267         * lib/savewd.c: Include <signal.h>, for 'raise'.
4268
4269 2006-09-26  Jim Meyering  <jim@meyering.net>
4270
4271         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
4272         when we detect Darwin 8.7.0's acl_get_file bug.
4273         Rearrange to perform the new (below) run-test while $LIBS
4274         contains any acl-related library.  Set USE_ACL at the end.
4275         (gl_ACL_GET_FILE): New function.
4276
4277 2006-09-26  Eric Blake  <ebb9@byu.net>
4278
4279         * lib/verror.c: Include <config.h> unconditionally.
4280
4281 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
4282
4283         * modules/clock-time (Maintainer): Add self.
4284         * modules/getlogin_r (Depends-on): Add extensions.
4285
4286 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4287
4288         * modules/clock-time: New module.
4289         * modules/nanosleep (Depends-on): Add clock-time.
4290         * modules/gethrxtime (Depends-on): Likewise.
4291         * modules/gettime (Depends-on): Likewise.
4292         * modules/settime (Depends-on): Likewise.
4293
4294         * modules/fts-lgpl: Depend on openat.
4295         * modules/mkancesdirs: Depend on savewd.
4296         * modules/mkdir-p: Likewise.
4297
4298 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4299
4300         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
4301
4302         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
4303         `gl_have_arbitrary_file_name_length_limit' to
4304         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
4305         actually works between configure runs.
4306
4307 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4308             Bruno Haible  <bruno@clisp.org>
4309
4310         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
4311
4312 2006-09-25  Jim Meyering  <jim@meyering.net>
4313
4314         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
4315         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
4316
4317 2006-09-25  Eric Blake  <ebb9@byu.net>
4318
4319         * gnulib-tool (func_import, func_create_testdir): Fix typos in
4320         exec's in 2006-09-18 patch when shuffling fds.
4321
4322 2006-09-25  Bruno Haible  <bruno@clisp.org>
4323
4324         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
4325         Reported by Jim Meyering.
4326
4327 2006-09-24  Jim Meyering  <jim@meyering.net>
4328
4329         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
4330         compare a pointer against a literal "0".  That caused failures with
4331         at least HP-UX's hpcc.
4332
4333 2006-09-22  Simon Josefsson  <jas@extundo.com>
4334
4335         * modules/gc-sha1:
4336         * modules/gc-md4:
4337         * modules/gc-hmac-sha1:
4338         * modules/gc-hmac-md5:
4339         * modules/gc-des:
4340         * modules/gc-arcfour: Distribute more files.
4341
4342 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4343
4344         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
4345         (gl_linked_iterator_from_to): Initialize struct completely.
4346         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
4347         (gl_tree_iterator_from_to): Likewise
4348         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
4349         * lib/gl_array_list.c [lint] (gl_array_iterator)
4350         (gl_array_iterator_from_to): Likewise.
4351         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
4352         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
4353         (gl_carray_iterator_from_to): Likewise.
4354
4355         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
4356         * lib/md4.c (md4_process_block): Remove unused variable.
4357         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
4358         parentheses for clarity.
4359
4360 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4361
4362         * modules/bison-i18n (Depends-on): Add gettext.
4363
4364 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4365
4366         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
4367         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
4368         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
4369         also add missing comma that caused broken test.
4370         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
4371         stdlib.h, for `abort'.
4372         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
4373         variables.
4374         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
4375         include unistd.h if present, for `rmdir'.
4376         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
4377         variables.
4378         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
4379         in the process include standard headers for prototypes.
4380         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
4381         gets declared on GNU/Linux.
4382         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
4383         unistd.h, for `rmdir'.
4384         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
4385
4386         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
4387         always true.
4388         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
4389
4390         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
4391
4392 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4393
4394         * gnulib-tool (func_version): Create output all at once.  This
4395         may help avoid triggering unnecessary SIGPIPEs, and at any
4396         rate it doesn't hurt.
4397
4398 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4399             Bruno Haible  <bruno@clisp.org>
4400
4401         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
4402         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
4403         * m4/signed.m4 (bh_C_SIGNED): Likewise.
4404
4405         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
4406         (gl_FUNC_VASPRINTF): Invoke it.
4407
4408 2006-09-22  Bruno Haible  <bruno@clisp.org>
4409
4410         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
4411         getloadavg.c as first argument.
4412
4413 2006-09-22  Bruno Haible  <bruno@clisp.org>
4414
4415         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
4416         at the beginning of the gl_INIT macro.
4417         * modules/getloadavg (configure.ac): Pass $gl_source_base to
4418         gl_GETLOADAVG.
4419
4420 2006-09-22  Bruno Haible  <bruno@clisp.org>
4421
4422         * gnulib-tool (func_create_megatestdir): Don't include the config-h
4423         module.
4424         Suggested by Ralf Wildenhues.
4425
4426 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
4427
4428         Import this patch from libc:
4429
4430         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
4431
4432         * lib/regex_internal.c (re_string_reconstruct): Handle
4433         offset < pstr->valid_raw_len && pstr->offsets_needed case.
4434         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
4435         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
4436         re_string_context_at.
4437
4438         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
4439         now requires it.
4440         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
4441         gl_REGEX now does it for us.
4442         (gl_REGEX): Add test taken from
4443         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
4444
4445         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
4446         Check that large offsets work.  Modernize Autoconf usages.
4447         Prefer "yes" to mean a good thing rather than a bad.
4448         Don't put "#define mkstemp" in config.h, as this might interfere
4449         with standard system headers that "#define mkstemp mkstemp64".
4450
4451         * modules/mkstemp (Depends-on): Add extensions, so that
4452         mkstemp is visible on some platforms.
4453         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
4454         (Include): Change to "mkstemp.h" from <stdlib.h>.
4455         (Files): Add mkstemp.h.
4456
4457         * lib/mkstemp.h: New file, since some standard headers
4458         #define mkstemp.
4459         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
4460         Include "mkstemp.h".
4461         Make the _LIBC code resemble glibc original more,
4462         e.g., use K&R style.
4463         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
4464         (mkstemp): Remove, since mkstemp.h does this for us.
4465         * lib/stdlib--.h: Include mkstemp.h.
4466
4467         Import this patch from libc:
4468
4469         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
4470
4471         * lib/tempname.c (__gen_tempname): Change attempts_min
4472         into a macro.  Use preprocessor to decide how to initialize
4473         attempts [Coverity CID 67].
4474
4475 2006-09-20  Bruno Haible  <bruno@clisp.org>
4476
4477         * lib/mkdtemp.c: Import from libc.
4478         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
4479                 * sysdeps/posix/tempname.c (__gen_tempname): Change
4480                 attempts_min into a macro.  Use preprocessor to decide how to
4481                 initialize attempts [Coverity CID 67].
4482         2001-11-27  Paul Eggert  <eggert@twinsun.com>
4483                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
4484                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
4485
4486 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4487
4488         * gnulib-tool (func_exit): New function, to allow to pass the
4489         exit status portably through the trap.  Use everywhere.
4490         (--help, --version): Signal a write error.
4491         (trap): catch SIGPIPE, for write errors.
4492         Exit at the end of the trap, with the correct exit status.
4493
4494 2006-09-19  Karl Berry  <karl@gnu.org>
4495
4496         * doc/gnulib.texi: note about the license texinfo files.
4497
4498 2006-09-19  Eric Blake  <ebb9@byu.net>
4499
4500         * gnulib-tool: Avoid space-tab.
4501
4502 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
4503
4504         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
4505         that prevented coreutils 6.1 from building.  Problem reported
4506         by Petter Reinholdtsen.
4507
4508 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
4509
4510         * gnulib-tool (avoidlist): Fix typo that broke options like
4511         --avoid=lock that are used by coreutils bootstrap.
4512
4513 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
4514
4515         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
4516         more systematically.
4517
4518 2006-09-18  Jim Meyering  <jim@meyering.net>
4519
4520         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
4521
4522 2006-09-18  Bruno Haible  <bruno@clisp.org>
4523
4524         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
4525
4526 2006-09-18  Bruno Haible  <bruno@clisp.org>
4527
4528         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
4529         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
4530         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
4531         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
4532         * m4/gettext.m4: Require autoconf >= 2.52.
4533         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
4534         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
4535         of gl_cv_header_inttypes_h.
4536
4537 2006-09-18  Bruno Haible  <bruno@clisp.org>
4538
4539         * lib/javaversion.c: Include configmake.h.
4540
4541 2006-09-18  Bruno Haible  <bruno@clisp.org>
4542
4543         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
4544         avoid that the while loops be executed in a subshell.
4545
4546 2006-09-18  Bruno Haible  <bruno@clisp.org>
4547
4548         * MODULES.html.sh (func_module): Break long lines.
4549         Suggested by Bruce Korb <bkorb@gnu.org>.
4550
4551 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4552
4553         Speed up by a factor of 1.12.
4554         * gnulib-tool (nl): New variable.
4555         (func_import): Rewrite include directive extraction to only read each
4556         directive once.
4557
4558 2006-09-17  Bruno Haible  <bruno@clisp.org>
4559
4560         * modules/javaversion (Makefile.am): Remove DEFS setting.
4561         (Depends-on): Add configmake, for PKGDATADIR definition.
4562
4563 2006-09-17  Bruno Haible  <bruno@clisp.org>
4564
4565         * gnulib-tool (func_create_testdir): Rewrite all files at once.
4566
4567 2006-09-17  Bruno Haible  <bruno@clisp.org>
4568
4569         * gnulib-tool (func_append): New function, stolen from libtool.m4.
4570         (func_modules_transitive_closure, func_modules_add_dummy,
4571         func_modules_to_filelist, func_import, func_create_testdir,
4572         func_create_megatestdir, ...): Use it wherever possible.
4573         Suggested by Ralf Wildenhues.
4574
4575 2006-09-16  Karl Berry  <karl@gnu.org>
4576
4577         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
4578         to avoid sectioning errors.
4579         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
4580         [ifinfo]: blank line after @center-ed titles.
4581         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
4582         Spell FSF address consistently with others.
4583         (These changes approved by rms.)
4584
4585 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4586
4587         Speed up by a factor of 1.61.
4588         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
4589         already checked module names again.
4590
4591 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4592
4593         Speed up by a factor of 1.13.
4594         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
4595         for new_files, and the input to func_add_or_update.
4596
4597 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4598
4599         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
4600         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
4601
4602 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
4603
4604         * modules/mkancesdirs (Depends-on): Add fcntl.
4605         * modules/savewd: New file.
4606         * MODULES.html.sh (File system functions): Add savewd.
4607
4608         * modules/configmake (Makefile.am): Add support for the
4609         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
4610
4611 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
4612
4613         * m4/savewd.m4: New file.
4614
4615 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
4616
4617         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
4618         (dirchownmod): New arg FD.  All callers changed.
4619         Use FD rather than opening the directory ourself, as opening is
4620         now the caller's responsibility.
4621         * lib/dirchownmod.h: Likewise.
4622         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
4623         hosts that require <sys/types.h> before <sys/stat.h>.  Include
4624         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
4625         (test_dir): Remove.
4626         (mkancesdirs): Return length of prefix of FILE that has already
4627         been made, or -2 if there is a child doing the work.  Redo
4628         algorithm so that it is O(N) rather than O(N**2).  Optimize away
4629         ".", and treat ".." specially since it might stray back into
4630         already-created areas.  Use a subprocess if necessary.  New arg
4631         WD; all users changed.  MAKE_DIR function should now return 1
4632         if it creates a directory that is not readable.  Return -2 if
4633         a child process is spun off.
4634         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
4635         Adjust signature to match code.
4636         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
4637         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
4638         all users changed.
4639         * lib/savewd.c, lib/savewd.h: New files.
4640
4641 2006-09-15  Jim Meyering  <jim@meyering.net>
4642
4643         * modules/rename-dest-slash: New module.
4644         * MODULES.html.sh (posix_compat): Add it here.
4645
4646         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
4647
4648 2006-09-15  Jim Meyering  <jim@meyering.net>
4649
4650         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
4651         file.
4652
4653         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
4654
4655 2006-09-15  Jim Meyering  <jim@meyering.net>
4656
4657         * lib/rename-dest-slash.c (has_trailing_slash): Use
4658         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
4659         (rpl_rename_dest_slash): Perform the cheaper trailing slash
4660         test before testing whether SRC is a directory.
4661         Suggestions from Bruno Haible.
4662
4663         Avoid a warning about an unused variable.
4664         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
4665         into the #ifdef block where it's used.
4666
4667         * lib/rename-dest-slash.c: New file.
4668
4669 2006-09-14  Bruno Haible  <bruno@clisp.org>
4670
4671         * lib/allocsa.c: Include <config.h> unconditionally.
4672         * lib/asnprintf.c: Likewise.
4673         * lib/asprintf.c: Likewise.
4674         * lib/c-strcasecmp.c: Likewise.
4675         * lib/c-strcasestr.c: Likewise.
4676         * lib/c-strncasecmp.c: Likewise.
4677         * lib/c-strstr.c: Likewise.
4678         * lib/classpath.c: Likewise.
4679         * lib/clean-temp.c: Likewise.
4680         * lib/concatpath.c: Likewise.
4681         * lib/copy-file.c: Likewise.
4682         * lib/csharpcomp.c: Likewise.
4683         * lib/csharpexec.c: Likewise.
4684         * lib/execute.c: Likewise.
4685         * lib/fatal-signal.c: Likewise.
4686         * lib/findprog.c: Likewise.
4687         * lib/fwriteerror.c: Likewise.
4688         * lib/gl_array_list.c: Likewise.
4689         * lib/gl_array_oset.c: Likewise.
4690         * lib/gl_avltree_list.c: Likewise.
4691         * lib/gl_avltree_oset.c: Likewise.
4692         * lib/gl_avltreehash_list.c: Likewise.
4693         * lib/gl_carray_list.c: Likewise.
4694         * lib/gl_linked_list.c: Likewise.
4695         * lib/gl_linkedhash_list.c: Likewise.
4696         * lib/gl_list.c: Likewise.
4697         * lib/gl_oset.c: Likewise.
4698         * lib/gl_rbtree_list.c: Likewise.
4699         * lib/gl_rbtree_oset.c: Likewise.
4700         * lib/gl_rbtreehash_list.c: Likewise.
4701         * lib/imaxabs.c: Likewise.
4702         * lib/imaxdiv.c: Likewise.
4703         * lib/javacomp.c: Likewise.
4704         * lib/javaexec.c: Likewise.
4705         * lib/javaversion.c: Likewise.
4706         * lib/linebreak.c: Likewise.
4707         * lib/localcharset.c: Likewise.
4708         * lib/lock.c: Likewise.
4709         * lib/mbchar.c: Likewise.
4710         * lib/mbswidth.c: Likewise.
4711         * lib/mkdtemp.c: Likewise.
4712         * lib/pipe.c: Likewise.
4713         * lib/printf-args.c: Likewise.
4714         * lib/printf-parse.c: Likewise.
4715         * lib/progname.c: Likewise.
4716         * lib/progreloc.c: Likewise.
4717         * lib/readlink.c: Likewise.
4718         * lib/sh-quote.c: Likewise.
4719         * lib/stpcpy.c: Likewise.
4720         * lib/stpncpy.c: Likewise.
4721         * lib/strcasecmp.c: Likewise.
4722         * lib/strcasestr.c: Likewise.
4723         * lib/strcspn.c: Likewise.
4724         * lib/striconv.c: Likewise.
4725         * lib/strncasecmp.c: Likewise.
4726         * lib/strnlen1.c: Likewise.
4727         * lib/strstr.c: Likewise.
4728         * lib/strtok_r.c: Likewise.
4729         * lib/tls.c: Likewise.
4730         * lib/tmpdir.c: Likewise.
4731         * lib/unicodeio.c: Likewise.
4732         * lib/unsetenv.c: Likewise.
4733         * lib/vasnprintf.c: Likewise.
4734         * lib/vasprintf.c: Likewise.
4735         * lib/wait-process.c: Likewise.
4736         * lib/xallocsa.c: Likewise.
4737         * lib/xsetenv.c: Likewise.
4738         * lib/xstriconv.c: Likewise.
4739
4740 2006-09-13  Simon Josefsson  <jas@extundo.com>
4741
4742         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
4743         that internally, suggested by Ralf Wildenhues
4744         <Ralf.Wildenhues@gmx.de>.
4745
4746 2006-09-13  Simon Josefsson  <jas@extundo.com>
4747
4748         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
4749         @LIBOBJS@.
4750         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4751
4752 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
4753
4754         * lib/_fpending.c: Include <config.h> unconditionally, since we no
4755         longer worry about uses that don't define HAVE_CONFIG_H.
4756         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
4757         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
4758         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
4759         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
4760         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
4761         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
4762         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
4763         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
4764         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
4765         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
4766         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
4767         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
4768         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
4769         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
4770         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
4771         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
4772         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
4773         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
4774         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
4775         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
4776         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
4777         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
4778         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
4779         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
4780         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
4781         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
4782         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
4783         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
4784         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
4785         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
4786         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
4787         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
4788         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
4789         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
4790         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
4791         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
4792         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
4793         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
4794         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
4795         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
4796         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
4797         Likewise.
4798
4799 2006-09-13  Eric Blake  <ebb9@byu.net>
4800
4801         * lib/getopt.c: Fix typo in last commit.
4802
4803 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
4804
4805         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
4806         dgettext.
4807
4808 2006-09-12  Jim Meyering  <jim@meyering.net>
4809
4810         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
4811         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
4812         Reported by Nelson H. F. Beebe.
4813
4814 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
4815
4816         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
4817         program_invocation_name and program_invocation_short_name are
4818         initialized.
4819         * lib/argp-namefrob.h: Move declarations of program_invocation_name
4820         and program_invocation_short_name to argp.h, so they are visible
4821         to user programs.
4822         * lib/argp.h: Likewise
4823
4824 2006-09-10  Bruno Haible  <bruno@clisp.org>
4825
4826         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
4827         m4/inttypes_h.m4, m4/uintmax_t.m4.
4828
4829 2006-09-10  Bruno Haible  <bruno@clisp.org>
4830
4831         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
4832         gl_AC_TYPE_UINTMAX_T.
4833
4834 2006-09-10  Bruno Haible  <bruno@clisp.org>
4835
4836         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
4837
4838 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
4839
4840         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
4841         convention.  Text proposed by Bruno Haible.
4842         (struct argp_option): Document the use of N_() wrappers.
4843
4844         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
4845         '\v', and translate the two parts separately, instead of feeding
4846         the whole string to gettext.  This allows to exclude
4847         '\v' from the strings visible to the translator by writing doc
4848         strings as N_("..") "\v" N_("..").
4849
4850 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
4851
4852         * config/srclist.txt: Undo latest change; the bug was fixed.
4853
4854 2006-09-09  Bruno Haible  <bruno@clisp.org>
4855
4856         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
4857         assignments if building a library without libtool.
4858         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
4859         in func_emit_lib_Makefile_am.
4860         (func_import): When building a static library libfoo.a, arrange to
4861         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
4862         (func_create_testdir): Likewise.
4863         * modules/gc (configure.ac, Makefile.am): If building statically,
4864         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
4865         * modules/iconvme (configure.ac, Makefile.am): Likewise.
4866         * modules/striconv (configure.ac, Makefile.am): Likewise.
4867         Based on a suggestion by Ralf Wildenhues.
4868
4869 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
4870
4871         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
4872         Check for unistd.h too, since Autoconf doesn't assume POSIX.
4873         Also:
4874
4875         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
4876         Add year_2050_test to catch glibc bug 2821
4877         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
4878
4879         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
4880         Prefer #ifdef to #if.
4881
4882         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
4883         Return from 'main' instead of calling 'exit'.
4884
4885 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
4886
4887         * lib/mktime.c (guess_time_tm): Fix bug where mktime
4888         returned the maximum time_t value rather than (time_t) -1.
4889         Problem originally reported by William Bardwell
4890         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
4891
4892         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
4893         Moved to here ...
4894         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
4895         ... from here.
4896
4897 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
4898
4899         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
4900         2821 is fixed.
4901
4902 2006-09-08  Jim Meyering  <jim@meyering.net>
4903
4904         Don't make generated files read-only.  That would bother too many
4905         people.  However, do retain the ability to work when targets are
4906         read-only: remove the destination and temporary files before writing
4907         them (when generated via sed or echo), or by using the -f option for
4908         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
4909         * modules/alloca-opt, modules/argz, modules/arpa_inet:
4910         * modules/byteswap, modules/configmake, modules/fcntl:
4911         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
4912         * modules/localcharset, modules/netinet_in, modules/poll:
4913         * modules/stdbool, modules/stdint, modules/sys_select:
4914         * modules/sys_socket, modules/sys_stat, modules/sysexits:
4915
4916 2006-09-08  Jim Meyering  <jim@meyering.net>
4917
4918         Avoid new build failure on FreeBSD 6.0.
4919         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
4920         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
4921         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
4922
4923 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4924
4925         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
4926
4927 2006-09-07  Jim Meyering  <jim@meyering.net>
4928
4929         Fix global typo in last change: use chmod u-w, not chmod u-x.
4930         Spotted by Paul Eggert and Bruce Korb.
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-06  Jim Meyering  <jim@meyering.net>
4939
4940         Make generated files be read-only.
4941         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
4942         Ensure that each generated file is now read-only.
4943         * modules/argz: Likewise.
4944         * modules/arpa_inet: Likewise.
4945         * modules/byteswap: Likewise.
4946         * modules/configmake: Likewise.
4947         * modules/fcntl: Likewise.
4948         * modules/fnmatch: Likewise.
4949         * modules/getopt: Likewise.
4950         * modules/glob: Likewise.
4951         * modules/inttypes: Likewise.
4952         * modules/netinet_in: Likewise.
4953         * modules/poll: Likewise.
4954         * modules/stdbool: Likewise.
4955         * modules/stdint: Likewise.
4956         * modules/sys_select: Likewise.
4957         * modules/sys_socket: Likewise.
4958         * modules/sys_stat: Likewise.
4959         * modules/sysexits: Likewise.
4960         * modules/localcharset: Same as above, but continue using temporary
4961         file named "t-$@" (why different?) rather than the "$@-t" used
4962         everywhere else.
4963
4964         * modules/sysexits (Makefile.am): Replace literal occurrences
4965         of "sysexit.h" more readable, and more consistent, "$@".
4966
4967 2006-09-06  Bruno Haible  <bruno@clisp.org>
4968
4969         * modules/striconv: New file.
4970         * modules/xstriconv: New file.
4971         * MODULES.html.sh (Internationalization functions): Add striconv,
4972         xstriconv.
4973
4974 2006-09-06  Bruno Haible  <bruno@clisp.org>
4975
4976         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
4977         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
4978         not using libtool correctly.
4979
4980 2006-09-06  Bruno Haible  <bruno@clisp.org>
4981
4982         * lib/striconv.h: New file.
4983         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
4984         iconvstring.c.
4985         * lib/xstriconv.h: New file.
4986         * lib/xstriconv.c: New file.
4987
4988 2006-09-06  Bruno Haible  <bruno@clisp.org>
4989
4990         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
4991         lib_..._LDFLAGS.
4992
4993 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4994
4995         * lib/argz_.h: Sync from Libtool.
4996
4997         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
4998                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4999
5000         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
5001
5002 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
5003
5004         * modules/trim: New file.
5005
5006 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
5007
5008         * lib/trim.h: New file.
5009         * lib/trim.c: New file.
5010
5011 2006-09-05  Bruno Haible  <bruno@clisp.org>
5012
5013         * MODULES.html.sh (String handling): Add trim.
5014
5015 2006-09-04  Karl Berry  <karl@gnu.org>
5016
5017         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
5018         until next release.
5019
5020 2006-09-03  Bruno Haible  <bruno@clisp.org>
5021
5022         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
5023         correctly.
5024
5025 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
5026
5027         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
5028         not gl_GETLOADAVG.  Omit unneeded semicolons.
5029         Problems reported by Ralf Wildenhues in
5030         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
5031         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
5032         at the end, which is the usual gnulib style.
5033
5034         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
5035         of doing all the work ourselves.
5036         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
5037         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
5038
5039 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
5040
5041         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
5042         Problem reported by Ralf Wildenhues in
5043         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
5044
5045         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
5046         HAVE_STRUCT_STATFS_F_FSTYPENAME.
5047
5048 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
5049
5050         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
5051         yesterday's patch by changing test -n to test -z.
5052
5053 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
5054
5055         * modules/getloadavg (Files): Add m4/getloadavg.m4.
5056         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
5057         the former is now obsolescent.
5058
5059         * modules/chdir-long (Depends-on): Add fcntl.
5060
5061 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
5062
5063         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
5064         obsolescent, and programs should use gnulib instead.
5065         * m4/getloadavg.m4: New file, with contents taken from Autoconf
5066         but with prefixes changed.
5067
5068 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
5069
5070         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
5071         or stdbool.h, because they might not exist while configuring.
5072
5073         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
5074         Don't include unistd.h or limits.h; not needed, since chdir-long.h
5075         does that for us.
5076         (O_DIRECTORY): Remove.
5077
5078 2006-08-31  Eric Blake  <ebb9@byu.net>
5079
5080         * gnulib-tool: Don't let emacs change spaces to TAB.
5081
5082 2006-08-31  Bruno Haible  <bruno@clisp.org>
5083
5084         * gnulib-tool: When calling func_import more than once, do it in a
5085         subshell.
5086         Reported by Eric Blake <ebb9@byu.net>.
5087
5088 2006-08-31  Bruno Haible  <bruno@clisp.org>
5089
5090         * gnulib-tool (nl): Remove variable.
5091         (sed_transform_lib_file): Use more robust test for config-h module.
5092         (func_import): Fix typo in 2006-08-25 patch.
5093
5094 2006-08-31  Bruno Haible  <bruno@clisp.org>
5095
5096         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
5097         specified, augment Makefile.am variables instead of assigning them.
5098
5099 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
5100
5101         Work around a bug in both the Linux and SunOS 64-bit kernels:
5102         nanosleep mishandles sleeps for longer than 2**31 seconds.
5103         Problem reported by Frank v Waveren in
5104         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
5105         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
5106         Check for nanosleep bug.
5107         (LIB_NANOSLEEP): Append clock_gettime library if needed.
5108
5109 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
5110
5111         Work around a bug in both the Linux and SunOS 64-bit kernels:
5112         nanosleep mishandles sleeps for longer than 2**31 seconds.
5113         Problem reported by Frank v Waveren in
5114         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
5115         * lib/nanosleep.c (BILLION): New constant.
5116         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
5117         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
5118         implementation.
5119
5120 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
5121
5122         * modules/nanosleep (Depends-on): Add gettime.
5123
5124 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
5125         and Simon Josefsson  <jas@extundo.com>
5126         and Oskar Liljeblad  <oskar@osk.mine.nu>
5127
5128         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
5129         * gnulib-tool (func_import): New license type 'unmodifiable license
5130         text'.
5131         * modules/fdl: Use it.  Longer description.
5132         * module/gpl, module/lgpl: New files.
5133
5134 2006-08-30  Jim Meyering  <jim@meyering.net>
5135
5136         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
5137         shadowing the parameter.
5138
5139 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5140
5141         Sync from Libtool:
5142
5143         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5144
5145         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
5146         sharing with gnulib.  Report by Eric Blake.
5147
5148 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
5149
5150         * modules/isapipe: New file.
5151         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
5152
5153 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
5154
5155         * modules/configmake (Makefile.am): Add a comment, and omit
5156         the CONFIGMAKE_ prefix from generated macro names.  Suggested
5157         by Bruno Haible.
5158
5159 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
5160
5161         * m4/isapipe.m4: New file.
5162
5163 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
5164
5165         * lib/isapipe.c, lib/isapipe.h: New files.
5166
5167 2006-08-29  Jim Meyering  <jim@meyering.net>
5168
5169         * modules/configmake (Makefile.am): Make configmake.h depend on
5170         Makefile.  Otherwise, a stale configmake.h could hang around.
5171
5172 2006-08-29  Eric Blake  <ebb9@byu.net>
5173
5174         * lib/error.c (error_at_line, print_errno_message): Match libc, after
5175         resolution of upstream bug 3044.
5176
5177 2006-08-29  Bruno Haible  <bruno@clisp.org>
5178
5179         * modules/localcharset (Depends-on): Add configmake.
5180         (Makefile.am): Remove setting of LIBDIR through DEFS.
5181
5182 2006-08-29  Bruno Haible  <bruno@clisp.org>
5183
5184         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
5185         defined.
5186
5187 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
5188
5189         * modules/fcntl: New file.
5190         * modules/chdir-safer (Depends-on): Add fcntl.
5191         * modules/fts: Likewise.
5192         * modules/mkdir-p: Likewise.
5193
5194         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
5195         This undoes the most recent change, since we're now addressing the
5196         problem in a different way.
5197
5198         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
5199         into output, since the output might be called Makefile.am even
5200         if $makefile_name is something different.
5201         (func_import): Use $makefile_am rather than
5202         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
5203         empty.
5204
5205         * modules/inttypes (Files): Add m4/inttypes-h.m4.
5206
5207 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
5208
5209         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
5210         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
5211         recent change to stdint.m4, since we're now addressing the problem in a
5212         different way.
5213
5214 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
5215
5216         * m4/fcntl_h.m4: New file.
5217
5218 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
5219
5220         * lib/fcntl_.h: New file.
5221         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
5222         the fcntl module.
5223         * lib/dirchownmod.c: Likewise.
5224         * lib/fts.c: Likewise.
5225
5226         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
5227         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
5228         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
5229         just before including <inttypes.h>, to avoid circular inclusion.
5230
5231 2006-08-28  Jim Meyering  <jim@meyering.net>
5232
5233         * doc/visibility.texi: Actually read and correct the grammar of the
5234         sentence affected by yesterday's change.
5235
5236 2006-08-28  Eric Blake  <ebb9@byu.net>
5237
5238         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
5239         needs wrapper.
5240
5241 2006-08-28  Eric Blake  <ebb9@byu.net>
5242
5243         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
5244
5245 2006-08-28  Eric Blake  <ebb9@byu.net>
5246
5247         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
5248
5249 2006-08-28  Bruno Haible  <bruno@clisp.org>
5250
5251         * modules/c-strstr: New file, from GNU gettext.
5252         * MODULES.html.sh (String handling): Add c-strstr.
5253
5254 2006-08-28  Bruno Haible  <bruno@clisp.org>
5255
5256         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
5257         macros.
5258         Reported by Eric Blake.
5259
5260 2006-08-28  Bruno Haible  <bruno@clisp.org>
5261
5262         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
5263         (VASNPRINTF): Return a string of length > INT_MAX without failing.
5264         * lib/vasprintf.c: Include errno.h, limits.h.
5265         (EOVERFLOW): New fallback definition.
5266         (vasprintf): Test here whether the string length is > INT_MAX.
5267         * lib/vsnprintf.c: Include errno.h, limits.h.
5268         (EOVERFLOW): New fallback definition.
5269         (vsnprintf): Fix bug when generated string was too long for the buffer.
5270         Test here whether the string length is > INT_MAX.
5271
5272 2006-08-28  Bruno Haible  <bruno@clisp.org>
5273
5274         * lib/inttypes_.h (SCNX*): Remove definitions.
5275         Reported by Eric Blake.
5276
5277 2006-08-28  Bruno Haible  <bruno@clisp.org>
5278
5279         * lib/c-strstr.h: New file, from GNU gettext.
5280         * lib/c-strstr.c: New file, from GNU gettext.
5281
5282 2006-08-28  Bruno Haible  <bruno@clisp.org>
5283
5284         * gnulib-tool: Reorder some statements.
5285
5286 2006-08-28  Bruno Haible  <bruno@clisp.org>
5287
5288         * gnulib-tool: New option --makefile-name.
5289         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
5290         $makefile_name.
5291         (func_import): Write $makefile_name to the cache file, and read it from
5292         there unless explicitly specified. Use $makefile_name as file name
5293         instead of Makefile.am. Adjust the recommendations accordingly.
5294
5295 2006-08-28  Bruno Haible  <bruno@clisp.org>
5296
5297         * gnulib-tool (func_verify_module): Check against misapplying patch.
5298
5299 2006-08-28  Bruno Haible  <bruno@clisp.org>
5300
5301         * gnulib-tool (func_relativize, func_relconcat): New functions.
5302         Give an error if --local-dir is given with --update.
5303         Remove trailing slashes from $local_gnulib_dir.
5304         (func_import): Store the relativized $local_gnulib_dir in
5305         gnulib-cache.m4, and read it from there if not specified explicitly.
5306
5307 2006-08-28  Bruno Haible  <bruno@clisp.org>
5308
5309         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
5310         is the current directory. Respect also $local_gnulib_dir.
5311
5312 2006-08-28  Bruno Haible  <bruno@clisp.org>
5313             Simon Josefsson  <jas@extundo.com>
5314
5315         BeOS portability.
5316         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
5317
5318 2006-08-27  Jim Meyering  <jim@meyering.net>
5319
5320         * doc/visibility.texi: Remove duplicate word: "pointer".
5321
5322 2006-08-26  Bruno Haible  <bruno@clisp.org>
5323
5324         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
5325         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
5326         (Makefile.am): Create inttypes.h from inttypes_.h.
5327         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
5328
5329         * modules/imaxabs: New file.
5330
5331         * modules/imaxdiv: New file.
5332
5333 2006-08-26  Bruno Haible  <bruno@clisp.org>
5334
5335         * m4/inttypes.m4: New file.
5336         * m4/_inttypes_h.m4: Remove file.
5337         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
5338         PRI_MACROS_BROKEN.
5339         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
5340
5341         * m4/imaxabs.m4: New file.
5342
5343         * m4/imaxdiv.m4: New file.
5344
5345 2006-08-26  Bruno Haible  <bruno@clisp.org>
5346
5347         * lib/inttypes_.h: New file.
5348         * lib/inttypes.h: Remove file.
5349         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
5350
5351         * lib/imaxabs.c: New file.
5352
5353         * lib/imaxdiv.c: New file.
5354
5355 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
5356
5357         New config-h module, so that "make" output needn't be cluttered
5358         by -DHAVE_CONFIG_H.
5359         * MODULES.html.sh (Support for building libraries and executables):
5360         Add config-h.
5361         * modules/config-h: New file.
5362         * gnulib-tool (nl, sed_transform_lib_file): New vars.
5363         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
5364         the config-h module is used.
5365
5366         New configmake module, so that "make" output needn't be cluttered
5367         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
5368         * MODULES.html.sh (Support for building libraries and executables):
5369         Add configmake.
5370         * modules/configmake: New file.
5371
5372 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
5373
5374         * m4/config-h.m4: New file.
5375
5376 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
5377
5378         * config/srclist.txt: Add elisp-comp.
5379
5380 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
5381
5382         * MODULES.html.sh (Support for building libraries and executables):
5383         Add elisp-comp.
5384         * build-aux/elisp-comp: New file.
5385         * modules/elisp-comp: New file.
5386
5387 2006-08-24  Bruno Haible  <bruno@clisp.org>
5388
5389         * gnulib-tool (func_create_testdir): Use non-default values of
5390         sourcebase and m4base.
5391
5392 2006-08-24  Bruno Haible  <bruno@clisp.org>
5393
5394         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
5395         HTML structure.
5396
5397 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
5398
5399         * modules/openat (Depends-on): Add lchown.
5400
5401 2006-08-23  Bruno Haible  <bruno@clisp.org>
5402
5403         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
5404         of gl_LOCK_EARLY instead of gl_LOCK.
5405
5406 2006-08-23  Bruno Haible  <bruno@clisp.org>
5407
5408         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
5409         on OSF/1 to no.
5410         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
5411
5412 2006-08-23  Bruno Haible  <bruno@clisp.org>
5413
5414         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
5415         as unusable.
5416
5417         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
5418         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
5419         (gl_LOCK): New macro.
5420
5421 2006-08-22  Simon Josefsson  <jas@extundo.com>
5422
5423         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
5424         to md5 module.
5425
5426 2006-08-22  Simon Josefsson  <jas@extundo.com>
5427
5428         * MODULES.html.sh: Add "Support for maintaining and release
5429         projects".
5430
5431         * build-aux/gnupload: New file, from coreutils.
5432
5433 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
5434
5435         Avoid the need for AC_LIBSOURCES in m4 macros.
5436         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
5437         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
5438         * modules/check-version (EXTRA_DIST): Add check-version.h.
5439         * modules/crc (EXTRA_DIST): Add crc.h.
5440         * modules/des (EXTRA_DIST): Add des.h.
5441         * modules/gc (EXTRA_DIST): Add gc.h.
5442         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
5443         * modules/getline (EXTRA_DIST): Add getline.h.
5444         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
5445         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
5446         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
5447         * modules/md2 (EXTRA_DIST): Add md2.h.
5448         * modules/md4 (EXTRA_DIST): Add md4.h.
5449         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
5450         * modules/read-file (EXTRA_DIST): Add read-file.h.
5451         * modules/readline (EXTRA_DIST): Add readline.h.
5452         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
5453         rijndael-api-fst.h.
5454
5455 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
5456
5457         * m4/rijndael.m4 (gl_ARCFOUR):
5458         * m4/arctwo.m4 (gl_ARCTWO):
5459         * m4/check-version.m4 (gl_CHECK_VERSION):
5460         * m4/crc.m4 (gl_CRC):
5461         * m4/des.m4 (gl_DES):
5462         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
5463         * m4/gc.m4 (gl_GC):
5464         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
5465         * m4/getline.m4 (gl_FUNC_GETLINE):
5466         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
5467         * m4/hmac-md5.m4 (gl_HMAC_MD5):
5468         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
5469         * m4/md2.m4 (gl_MD2):
5470         * m4/md4.m4 (gl_MD4):
5471         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
5472         * m4/read-file.m4 (gl_FUNC_READ_FILE):
5473         * m4/readline.m4 (gl_FUNC_READLINE):
5474         * m4/rijndael.m4 (gl_RIJNDAEL):
5475         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
5476         to get the necessary .h files and whatnot.
5477
5478 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
5479
5480         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
5481         gnulib rather than the other way around.
5482         * config/srclistvars.sh (COREUTILS): Remove.
5483
5484 2006-08-22  Jim Meyering  <jim@meyering.net>
5485
5486         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
5487
5488         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
5489
5490 2006-08-22  Eric Blake  <ebb9@byu.net>
5491
5492         * modules/regexprops-generic: New file.
5493         * MODULES.html.sh (Support for building documentation): List it.
5494
5495 2006-08-22  Eric Blake  <ebb9@byu.net>
5496
5497         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
5498         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
5499         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
5500         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
5501
5502 2006-08-22  Bruno Haible  <bruno@clisp.org>
5503
5504         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
5505         and lib_LTLIBRARIES like the other lib_* variables.
5506
5507 2006-08-22  Bruno Haible  <bruno@clisp.org>
5508
5509         * build-aux/x-to-1.in: New file, from GNU gettext.
5510
5511 2006-08-22  Bruno Haible  <bruno@clisp.org>
5512
5513         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
5514         <utmpx.h> exists.
5515
5516 2006-08-22  Bruno Haible  <bruno@clisp.org>
5517
5518         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
5519         <utmpx.h> exists.
5520
5521 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
5522
5523         BeOS portability.
5524         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
5525         exist.
5526         Problem reported by Bruno Haible.
5527
5528 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
5529
5530         Avoid the need for AC_LIBSOURCES in m4 macros.
5531         * modules/acl (EXTRA_DIST): Add acl.h.
5532         * modules/argmatch (Files): Add m4/argmatch.m4.
5533         (configure.ac): Add gl_ARGMATCH.
5534         (EXTRA_DIST): Renamed from lib_SOURCES, for
5535         consistency with the other modules.  Remove argmatch.c.
5536         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
5537         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
5538         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
5539         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
5540         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
5541         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
5542         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
5543         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
5544         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
5545         * modules/closeout (EXTRA_DIST): Add closeout.h.
5546         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
5547         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
5548         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
5549         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
5550         dirname.h; remove basename.c and stripslash.c.
5551         * modules/exclude (EXTRA_DIST): Add exclude.h.
5552         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
5553         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
5554         * modules/file-type (EXTRA_DIST): Add file-type.h.
5555         * modules/filemode (EXTRA_DIST): Add filemode.h.
5556         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
5557         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
5558         * modules/fpending (EXTRA_DIST): Add __fpending.h.
5559         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
5560         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
5561         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
5562         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
5563         * modules/getdate (EXTRA_DIST): Add getdate.c.
5564         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
5565         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
5566         * modules/getpass (EXTRA_DIST): Add getpass.h.
5567         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
5568         * modules/group-member (EXTRA_DIST): Add group-member.h.
5569         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
5570         * modules/hash (EXTRA_DIST): Add hash.h.
5571         * modules/human (EXTRA_DIST): Add human.h.
5572         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
5573         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
5574         * modules/lchown (EXTRA_DIST): Add lchown.h.
5575         * modules/long-options (EXTRA_DIST): Add long-options.h.
5576         * modules/lstat (EXTRA_DIST): Add lstat.h.
5577         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
5578         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
5579         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
5580         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
5581         * modules/memxor (EXTRA_DIST): Add memxor.h.
5582         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
5583         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
5584         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
5585         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
5586         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
5587         * modules/physmem (EXTRA_DIST): Add physmem.h.
5588         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
5589         * modules/posixver (EXTRA_DIST): Add posixver.h.
5590         * modules/quote (EXTRA_DIST): Add quote.h.
5591         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
5592         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
5593         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
5594         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
5595         regex_internal.h regexec.c.
5596         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
5597         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
5598         * modules/same (EXTRA_DIST): Add same.h.
5599         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
5600         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
5601         * modules/savedir (EXTRA_DIST): Add savedir.h.
5602         * modules/sha1 (EXTRA_DIST): Add sha1.h.
5603         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
5604         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
5605         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
5606         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
5607         * modules/strdup (EXTRA_DIST): Add strdup.h.
5608         * modules/strftime (EXTRA_DIST): Add strftime.h.
5609         * modules/strndup (EXTRA_DIST): Add strndup.h.
5610         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
5611         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
5612         * modules/time_r (EXTRA_DIST): Add time_r.h.
5613         * modules/timespec (EXTRA_DIST): Add timespec.h.
5614         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
5615         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
5616         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
5617         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
5618         * modules/userspec (EXTRA_DIST): Add userspec.h.
5619         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
5620         * modules/utimens (EXTRA_DIST): Add utimens.h.
5621         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
5622         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
5623         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
5624         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
5625         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
5626         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
5627         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
5628         * modules/yesno (EXTRA_DIST): Add yesno.h.
5629
5630 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
5631
5632         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
5633
5634         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
5635         * m4/dev-ino.m4, same-inode.m4: Remove.
5636
5637         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
5638         * m4/acl.m4 (AC_FUNC_ACL):
5639         * m4/backupfile.m4 (gl_BACKUPFILE):
5640         * m4/c-strtod.m4 (gl_C99_STRTOLD):
5641         * m4/canon-host.m4 (gl_CANON_HOST):
5642         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
5643         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
5644         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
5645         * m4/cloexec.m4 (gl_CLOEXEC):
5646         * m4/close-stream.m4 (gl_CLOSE_STREAM):
5647         * m4/closeout.m4 (gl_CLOSEOUT):
5648         * m4/dirfd.m4 (gl_FUNC_DIRFD):
5649         * m4/dirname.m4 (gl_DIRNAME):
5650         * m4/exclude.m4 (gl_EXCLUDE):
5651         * m4/exitfail.m4 (gl_EXITFAIL):
5652         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
5653         * m4/file-type.m4 (gl_FILE_TYPE):
5654         * m4/filemode.m4 (gl_FILEMODE):
5655         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
5656         * m4/fpending.m4 (gl_FUNC_FPENDING):
5657         * m4/fprintftime.m4 (gl_FPRINTFTIME):
5658         * m4/fts.m4 (gl_FUNC_FTS):
5659         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
5660         * m4/getdate.m4 (gl_GETDATE):
5661         * m4/gethrxtime.m4 (gl_GETHRXTIME):
5662         * m4/getpagesize.m4 (gl_GETPAGESIZE):
5663         * m4/getpass.m4 (gl_FUNC_GETPASS):
5664         * m4/gettime.m4 (gl_GETTIME):
5665         * m4/getugroups.m4 (gl_GETUGROUPS):
5666         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
5667         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
5668         * m4/hard-locale.m4 (gl_HARD_LOCALE):
5669         * m4/hash.m4 (gl_HASH):
5670         * m4/idcache.m4 (gl_IDCACHE):
5671         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
5672         * m4/lchown.m4 (gl_FUNC_LCHOWN):
5673         * m4/long-options.m4 (gl_LONG_OPTIONS):
5674         * m4/lstat.m4 (gl_FUNC_LSTAT):
5675         * m4/md5.m4 (gl_MD5):
5676         * m4/memcasecmp.m4 (gl_MEMCASECMP):
5677         * m4/memcoll.m4 (gl_MEMCOLL):
5678         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
5679         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
5680         * m4/memxor.m4 (gl_MEMXOR):
5681         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
5682         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
5683         * m4/modechange.m4 (gl_MODECHANGE):
5684         * m4/mountlist.m4 (gl_MOUNTLIST):
5685         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
5686         * m4/openat.m4 (gl_FUNC_OPENAT):
5687         * m4/pathmax.m4 (gl_PATHMAX):
5688         * m4/physmem.m4 (gl_PHYSMEM):
5689         * m4/posixtm.m4 (gl_POSIXTM):
5690         * m4/posixver.m4 (gl_POSIXVER):
5691         * m4/quote.m4 (gl_QUOTE):
5692         * m4/quotearg.m4 (gl_QUOTEARG):
5693         * m4/readtokens.m4 (gl_READTOKENS):
5694         * m4/readutmp.m4 (gl_READUTMP):
5695         * m4/regex.m4 (gl_REGEX):
5696         * m4/safe-read.m4 (gl_SAFE_READ):
5697         * m4/safe-write.m4 (gl_SAFE_WRITE):
5698         * m4/same.m4 (gl_SAME):
5699         * m4/save-cwd.m4 (gl_SAVE_CWD):
5700         * m4/savedir.m4 (gl_SAVEDIR):
5701         * m4/settime.m4 (gl_SETTIME):
5702         * m4/sha1.m4 (gl_SHA1):
5703         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
5704         * m4/stat-macros.m4 (gl_STAT_MACROS):
5705         * m4/stat-time.m4 (gl_STAT_TIME):
5706         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
5707         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
5708         * m4/strdup.m4 (gl_FUNC_STRDUP):
5709         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
5710         * m4/strndup.m4 (gl_FUNC_STRNDUP):
5711         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
5712         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
5713         * m4/time_r.m4 (gl_TIME_R):
5714         * m4/timespec.m4 (gl_TIMESPEC):
5715         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
5716         * m4/unlinkdir.m4 (gl_UNLINKDIR):
5717         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
5718         * m4/userspec.m4 (gl_USERSPEC):
5719         * m4/utimecmp.m4 (gl_UTIMECMP):
5720         * m4/utimens.m4 (gl_UTIMENS):
5721         * m4/xalloc.m4 (gl_XALLOC):
5722         * m4/xgetcwd.m4 (gl_XGETCWD):
5723         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
5724         * m4/xreadlink.m4 (gl_XREADLINK):
5725         * m4/xstrtod.m4 (gl_XSTRTOD):
5726         * m4/yesno.m4 (gl_YESNO):
5727         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
5728         to get the necessary .h files and whatnot.
5729
5730 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
5731             Bruno Haible  <bruno@clisp.org>
5732
5733         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
5734         /bin/sh understanding of '!' conditional negation.
5735
5736 2006-08-21  Jim Meyering  <jim@meyering.net>
5737
5738         * modules/openat (Depends-on): Really alphabetize.
5739
5740         * modules/acl (Depends-on): Add error and quote.
5741
5742         * check-module (find_included_lib_files): Add at-func.c to the
5743         ok-to-include-more-than-once white list.
5744
5745         * modules/openat (Depends-on): Add lstat.  Alphabetize.
5746
5747 2006-08-21  Bruno Haible  <bruno@clisp.org>
5748
5749         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
5750         Emit a pkgdata_DATA variable only if some snippets add contents to it.
5751         Reported by Martin Lambers <marlam@marlam.de>.
5752
5753 2006-08-21  Bruno Haible  <bruno@clisp.org>
5754
5755         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
5756         specify an installation location, don't emit a noinst_LIBRARIES or
5757         noinst_LTLIBRARIES assignment.
5758
5759 2006-08-21  Bruno Haible  <bruno@clisp.org>
5760
5761         BeOS portability.
5762         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
5763         BeOS has mbrtowc() but no <wctype.h>.
5764
5765 2006-08-21  Bruno Haible  <bruno@clisp.org>
5766
5767         BeOS portability.
5768         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
5769         exist.
5770
5771 2006-08-21  Bruno Haible  <bruno@clisp.org>
5772
5773         BeOS portability.
5774         * lib/mbchar.h: Include <wctype.h> only if it exists.
5775
5776 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
5777
5778         Remove files that are no longer needed by their respective modules.
5779         * m4/obstack.m4: Remove.
5780         * m4/strerror_r.m4: Remove.
5781         * m4/uint32_t.m4: Remove.
5782         * m4/uintptr_t.m4: Remove.
5783         * m4/ullong_max.m4: Remove.
5784         * m4/xstrtoimax.m4: Remove.
5785         * m4/xstrtoumax.m4: Remove.
5786
5787         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
5788         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
5789         dependencies now capture this.
5790
5791         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
5792         Do not use AC_LIBSOURCES, since gnulib modules now do this.
5793         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
5794         * m4/human.m4 (gl_HUMAN): Likewise.
5795         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
5796         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
5797
5798         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
5799
5800         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
5801         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
5802         stdint.
5803         * m4/human.m4 (gl_HUMAN): Likewise.
5804         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
5805         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
5806         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
5807         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
5808         * m4/xstrtol (gl_XSTRTOL): Likewise.
5809
5810         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
5811         AC_TYPE_LONG_LONG_INT.
5812         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
5813         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
5814         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
5815         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
5816
5817         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
5818         on stdbool.
5819
5820         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
5821         (gl_PREREQ_XSTRTOUL): Remove.
5822
5823         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
5824
5825         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
5826         mode.
5827
5828 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
5829
5830         Add and change modules to make it easier for coreutils to use
5831         gnulib-tool.
5832         * modules/backupfile (Files): Remove m4/d-ino.m4.
5833         (Depends-on): Add d-ino.
5834         * modules/cycle-check (Depends-on): Add stdint.
5835         (lib_SOURCES): Add cycle-check.h.
5836         * modules/d-ino: New module.
5837         * modules/d-type: New module.
5838         * modules/error (Files): Remove m4/strerror_r.m4.
5839         * modules/filemode (Files): Add m4/st_dm_mode.m4.
5840         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
5841         m4/inttypes_h.m4, m4/uintmax_t.m4.
5842         (Depends-on): Add stdint.
5843         (lib_SOURCES): Add fsusage.h.
5844         * modules/getcwd (Files): Remove d-ino.m4.
5845         (Depends-on): Add d-ino.
5846         * modules/getndelim2 (Depends-on): Add stdint.
5847         * modules/glob (Files): Remove m4/d-type.m4.
5848         (Depends-on): Add d-type.
5849         * modules/host-os: New module.
5850         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
5851         m4/inttypes_h.m4, m4/uintmax_t.m4.
5852         * Depends-on: Add stdint.
5853         (lib_SOURCES): Add human.h.
5854         * modules/inttostr (Files): Remove m4/intmax_t.m4,
5855         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
5856         m4/uintmax_t.m4, m4/ulonglong.m4.
5857         (Depends-on): Add stdint.
5858         (EXTRA_DIST): Add inttostr.h.
5859         * modules/lchmod: New module.
5860         * modules/link-follow: New module.
5861         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
5862         (Depends-on): Add lchmod.
5863         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
5864         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
5865         (Depends-on): Add stdint.
5866         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
5867         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
5868         (Depends-on): Add stdint.
5869         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
5870         * modules/perl: New module.
5871         * modules/regex (Depends-on): Add stdint.
5872         * modules/rmdir-errno: New module.
5873         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
5874         m4/intmax_t.m4.
5875         (Depends-on): Add stdint.
5876         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
5877         m4/uintmax_t.m4.
5878         (Depends-on): Add stdint.
5879         * modules/unlink-busy: New module.
5880         * modules/utimecmp (Depends-on): Add stdint.
5881         * modules/uptime: New module.
5882         * modules/winsz-ioctl: New module.
5883         * modules/winsz-termios: New module.
5884         * modules/xnanosleep (Depends-on): Add nanosleep.
5885         * modules/ullong_max: Remove.
5886         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
5887         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
5888         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
5889         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
5890         (Depends-on): Add inttypes.
5891         (lib_SOURCES): Add xstrtol.h.
5892         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
5893         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
5894         * MODULES.html.sh: Move 'assert' into the assert section.
5895         Move 'dummy' into the linking section.
5896         Remove ullong_max.
5897         Add section for compatibility checks for POSIX:2001 functions,
5898         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
5899         winsz-ioctl, and winsz-termios into it.
5900         Add lchmod.
5901         Add top-level Misc section and put host-os, perl, and uptime
5902         into it.
5903
5904 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
5905
5906         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
5907         now assume the stdint module.  Do not include inttypes.h.
5908         * lib/fsusage.h: Likewise.
5909         * lib/getndelim2.c: Likewise.
5910         * lib/human.h: Likewise.
5911         * lib/inttostr.h: Likewise.
5912         * lib/obstack.c: Likewise.
5913         * lib/regex_internal.h: Likewise.
5914         * lib/tempname.c: Likewise.
5915         * lib/utimecmp.c: Likewise.
5916         * lib/xstrtol.h: Likewise.
5917
5918         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
5919
5920         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
5921         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
5922         * lib/xtime.h: Likewise.
5923
5924 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
5925
5926         * modules/openat (Files): Add lib/fchmodat.c.
5927         Fixes problem reported by Jay Youngman.
5928
5929 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
5930
5931         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
5932         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
5933
5934 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
5935             Bruno Haible  <bruno@clisp.org>
5936
5937         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
5938         and is a script that invokes bison. Tighten the code. Add comments.
5939
5940 2006-08-18  Jim Meyering  <jim@meyering.net>
5941
5942         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
5943         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
5944         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
5945         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
5946
5947 2006-08-18  Bruno Haible  <bruno@clisp.org>
5948
5949         * modules/bison-i18n: New file.
5950         * MODULES.html.sh (Internationalization functions): Add it.
5951
5952 2006-08-18  Bruno Haible  <bruno@clisp.org>
5953
5954         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
5955         sys/statvfs.h. When getmntinfo was found, check its declaration and
5956         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
5957
5958 2006-08-18  Bruno Haible  <bruno@clisp.org>
5959
5960         * m4/bison-i18n.m4: New file, from bison.
5961
5962 2006-08-18  Bruno Haible  <bruno@clisp.org>
5963
5964         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
5965         (ME_DUMMY): Treat "kernfs" as a dummy.
5966         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
5967
5968 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
5969
5970         Update from coreutils.
5971
5972         2006-08-15  Jim Meyering  <jim@meyering.net>
5973
5974         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
5975
5976         2006-01-17  Jim Meyering  <jim@meyering.net>
5977
5978         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
5979
5980         2006-01-11  Jim Meyering  <jim@meyering.net>
5981
5982         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
5983         Check for the lchmod function.
5984
5985 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
5986
5987         Update from coreutils.
5988
5989         * lib/__fpending.h: Add copyright notice.
5990         * lib/fprintftime.h: Likewise.
5991         * lib/savedir.c: Use (C) in copyright notice.
5992         * lib/savedir.h: Likewise.
5993
5994         2006-08-15  Jim Meyering  <jim@meyering.net>
5995
5996         * lib/at-func.c: New file, with the logic of all emulated at-functions.
5997         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
5998         in support of the EXPECTED_ERRNO macro.
5999         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
6000         definitions.  Instead, define the appropriate symbols and include
6001         "at-func.c".
6002         * lib/mkdirat.c (mkdirat): Likewise.
6003         * lib/fchmodat.c (fchmodat): Likewise.
6004         (ENOSYS): Remove definition.
6005         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
6006         it.  Don't include "unistd--.h" -- it wasn't ever used.
6007
6008         2006-01-17  Jim Meyering  <jim@meyering.net>
6009
6010         Rewrite fts.c not to change the current working directory,
6011         by using openat, fstatat, fdopendir, etc..
6012
6013         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
6014         (HAVE_OPENAT_SUPPORT): Define.
6015         [_LIBC] (fchdir): Don't undef or define; no longer used.
6016         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
6017         Now, this `function' always succeeds, and consumes its file descriptor
6018         parameter -- so callers must not close such FDs.  Update callers.
6019         (diropen_fd, opendirat, cwd_advance_fd): New functions.
6020         (diropen): Add parameter, SP.  Adjust all callers.
6021         Implement using diropen_fd, rather than open.
6022         (fts_open): Initialize new member, fts_cwd_fd.
6023         Remove fts_rft-setting code.
6024         (fts_close): Close fts_cwd_fd, if necessary.
6025         (__opendir2): Define in terms of opendir or opendirat,
6026         depending on whether the FST_NOCHDIR flag is set.
6027         (fts_build): Since fts_safe_changedir consumes its FD, and since
6028         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
6029         and close the dup'd file descriptor upon failure.
6030         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
6031         (fts_safe_changedir): Tweak semantics to reflect that this function
6032         now calls cwd_advance_fd and hence consumes its FD argument.
6033         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
6034         [struct FTS] (fts_rft): Remove now-unused member.
6035         [struct FTS] (fts_cycle.state): Improve comment.
6036
6037         * lib/openat.c (openat_needs_fchdir): New function.
6038         * lib/openat.h (openat_needs_fchdir): Declare it.
6039
6040 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
6041
6042         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
6043         Problem and fix reported by Pádraig Brady in
6044         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
6045
6046 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
6047
6048         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
6049
6050 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
6051
6052         * lib/memcoll.c (memcoll): Optimize for the common case where the
6053         arguments are bytewise equal.
6054
6055 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
6056
6057         * doc/regexprops-generic.texi: Add a copyright notice.
6058
6059 2006-08-15  Bruno Haible  <bruno@clisp.org>
6060
6061         * modules/tmpdir (License): Change to LGPL.
6062
6063 2006-08-15  Bruno Haible  <bruno@clisp.org>
6064
6065         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
6066         module.
6067
6068 2006-08-14  Simon Josefsson  <jas@extundo.com>
6069
6070         * config/srclist.txt: Add gnupload.
6071
6072 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
6073
6074         Change copyright notice from LGPL 2 to GPL 2, since that's the
6075         standard form used in the gnulib repository.
6076         * tests/test-lock.c: Likewise.
6077         * tests/test-stdint.c: Likewise.
6078         * tests/test-tls.c: Likewise.
6079
6080         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
6081         prelude-manager.  User shorter URLs for GNU projects, without '?'.
6082         Add copyright notice.
6083
6084         * check-module: Add copyright notice.  Output a copyright
6085         notice if "--version" is specified.
6086         * modules/COPYING: New file.
6087         * tests/test-getaddrinfo.c: Add copyright notice.
6088         * tests/test-verify.c: Likewise.
6089
6090 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
6091
6092         Change copyright notice from LGPL 2 to GPL 2, since that's the
6093         standard form used in the gnulib repository.
6094         * lib/lock.c: LGPL -> GPL.
6095         * lib/lock.h: Likewise.
6096         * lib/strnlen1.c: Likewise.
6097         * lib/strnlen1.h: Likewise.
6098         * lib/tls.c: Likewise.
6099         * lib/tls.h: Likewise.
6100         * lib/tmpdir.c: Likewise.
6101
6102         * lib/TODO: Remove; this belongs only in coreutils.
6103
6104 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
6105
6106         Add copyright notices to long-enough files that lack them, since
6107         otherwise the files aren't clearly free.  Use the same notice that
6108         getdate.texi already uses.
6109         * doc/alloca-opt.texi: Add copyright notice.
6110         * doc/alloca.texi: Likewise.
6111         * doc/ctime.texi: Likewise.
6112         * doc/functions.texi: Likewise.
6113         * doc/gcd.texi: Likewise.
6114         * doc/gnulib-tool.texi: Likewise.
6115         * doc/inet_ntoa.texi: Likewise.
6116         * doc/visibility.texi: Likewise.
6117
6118         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
6119         * doc/quote.texi: Add copyright notice.
6120
6121         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
6122         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
6123         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
6124         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
6125         is now obsolete, and give a pointer to the Sun list.
6126         Add copyright notice.
6127
6128 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
6129
6130         * config/srclistvars.sh: Add copyright notice.
6131
6132 2006-08-14  Eric Blake  <ebb9@byu.net>
6133
6134         Import the following change from libc:
6135
6136         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
6137
6138         Upstream bug 2997.
6139         * lib/misc/error.c: Add space between program name and message if file
6140         name is missing.
6141
6142 2006-08-12  Karl Berry  <karl@gnu.org>
6143
6144         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
6145         remove, these originate in gnulib now.
6146
6147 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6148
6149         * doc/Makefile (standards.info standards.html standards.dvi):
6150         Also depend on make-stds.texi.
6151
6152 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
6153
6154         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
6155         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
6156
6157         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
6158         in wchar_t.  Problem reported by Eric Blake.
6159
6160         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
6161         LEN is smaller than SIZE.  Suggested by Bruno Haible.
6162         Also, help the compiler to keep LEN in a register.
6163
6164 2006-08-11  Eric Blake  <ebb9@byu.net>
6165
6166         * users.txt: Sort.  Add tar.
6167
6168 2006-08-11  Bruno Haible  <bruno@clisp.org>
6169
6170         * users.txt: New file.
6171
6172 2006-08-11  Bruno Haible  <bruno@clisp.org>
6173
6174         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
6175         before <wchar.h>. Needed for OSF/1 and BSD/OS.
6176
6177 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
6178
6179         * modules/snprintf (Depends-on): Remove minmax.
6180         (Maintainer): Add self and Bruno.
6181
6182 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
6183
6184         * lib/.cppi-disable: Add snprintf.h, socket_.h.
6185         * lib/snprintf.c: Include <errno.h> and <limits.h>.
6186         (EOVERFLOW): Define if the system does not.
6187         Do not include "minmax.h"; it wasn't used.
6188         (snprintf): Don't assume size_t promotes to an unsigned type.
6189         Fix bug when generated string was too long for the buffer: the
6190         buffer's contents are supposed to be the initial prefix of the
6191         output.  Don't assume vasnprintf returns EOVERFLOW if the size
6192         exceeds INT_MAX; do the check ourselves.
6193
6194         Import the following changes from libc:
6195
6196         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
6197
6198         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
6199         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
6200         set wc to the byte which couldn't be converted.
6201         (re_string_reconstruct): Don't clear valid_raw_len before calling
6202         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
6203         tip_context using re_string_context_at.
6204
6205         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
6206
6207         * lib/posix/regex.h: g++ still cannot handled [restrict].
6208
6209         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
6210
6211         * lib/posix/regex.h: Remove special handling for VMS.
6212
6213 2006-08-10  Jim Meyering  <jim@meyering.net>
6214
6215         * modules/same-inode: New module.
6216         * modules/dev-ino: New module.
6217         * modules/cycle-check: Depend on these modules, rather than simply
6218         including their .h files.
6219         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
6220         required via m4/cycle-check.m4.
6221         * modules/same: Depend on new same-inode module, rather than
6222         including same-inode.h.
6223         * modules/chdir-safer: New file.
6224
6225         * modules/chown (Depends-on): Add stat-macros.
6226
6227 2006-08-10  Jim Meyering  <jim@meyering.net>
6228
6229         * m4/cycle-check.m4: New file.
6230         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
6231         * m4/dev-ino.m4, m4/same-inode.m4: New files.
6232
6233 2006-08-10  Eric Blake  <ebb9@byu.net>
6234
6235         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
6236         in from original proposal.
6237
6238 2006-08-10  Eric Blake  <ebb9@byu.net>
6239         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6240
6241         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
6242         namespace.
6243
6244 2006-08-10  Bruno Haible  <bruno@clisp.org>
6245
6246         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
6247         as well.
6248
6249 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
6250
6251         Sync from coreutils.
6252
6253         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
6254
6255         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
6256         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
6257
6258 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
6259
6260         * modules/restrict: Remove; no longer needed now that we assume
6261         Autoconf 2.59 or later.
6262         * MODULES.html.sh: Remove 'restrict'.
6263         * modules/argp (Depends-on): Remove 'restrict'.
6264         * modules/base64 (Depends-on): Likewise.
6265         * modules/gc (Depends-on): Likewise.
6266         * modules/getaddrinfo (Depends-on): Likewise.
6267         * modules/glob (Depends-on): Likewise.
6268         * modules/inet_ntop (Depends-on): Likewise.
6269         * modules/inet_pton (Depends-on): Likewise.
6270         * modules/memxor (Depends-on): Likewise.
6271         * modules/regex (Depends-on): Likewise.
6272         * modules/strtok_r (Depends-on): Likewise.
6273         * modules/time_r (Depends-on): Likewise.
6274
6275 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
6276
6277         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
6278         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
6279         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
6280         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
6281         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
6282         * m4/memxor.m4 (gl_MEMXOR): Likewise.
6283         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
6284         gl_C_RESTRICT replaced by AC_C_RESTRICT.
6285
6286         Merge from coreutils.
6287         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
6288         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
6289         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
6290         * m4/time_r.m4 (gl_TIME_R): Likewise.
6291
6292 2006-08-09  Karl Berry  <karl@gnu.org>
6293
6294         * config/srclist.txt: no more gettext-tools, per Bruno.
6295
6296 2006-08-08  Eric Blake  <ebb9@byu.net>
6297
6298         * modules/verror: New module.
6299         * MODULES.html.sh: Document it.
6300
6301 2006-08-08  Eric Blake  <ebb9@byu.net>
6302
6303         * lib/verror.h, lib/verror.c: New files.
6304
6305 2006-08-08  Eric Blake  <ebb9@byu.net>
6306
6307         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
6308         verror_at_line output complies with GNU Coding Standards even when
6309         file is NULL.
6310
6311 2006-08-07  Bruno Haible  <bruno@clisp.org>
6312
6313         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
6314         versions of AIX.
6315         Reported by Ralf Wildenhues.
6316
6317 2006-08-07  Bruno Haible  <bruno@clisp.org>
6318
6319         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
6320         in an AC_DEFUN. Needed so that the autoconf snippets can use
6321         AC_REQUIRE.
6322
6323 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6324
6325         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
6326         Initialize pkgdata_DATA.
6327         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
6328         overriding it.
6329
6330 2006-08-06  Eric Blake  <ebb9@byu.net>
6331
6332         * lib/error.h: Fold in some upstream changes from glibc.
6333         * lib/error.c: Likewise.
6334
6335 2006-08-04  Bruno Haible  <bruno@clisp.org>
6336
6337         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
6338         Make the mostlyclean-local rule depend on mostlyclean-generic.
6339         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
6340
6341 2006-07-31  Bruno Haible  <bruno@clisp.org>
6342
6343         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
6344         <stdlib.h>, <string.h>.
6345
6346 2006-07-30  Bruno Haible  <bruno@clisp.org>
6347
6348         * modules/readlink (License): Change to LGPL.
6349
6350 2006-07-30  Bruno Haible  <bruno@clisp.org>
6351
6352         * modules/javaversion (Makefile.am): Distribute javaversion.java and
6353         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
6354         set PKGDATADIR to point to it.
6355
6356 2006-07-30  Bruno Haible  <bruno@clisp.org>
6357
6358         * modules/csharpexec (configure.ac): Comment out macro invocation.
6359         * modules/javaexec (configure.ac): Likewise.
6360         * modules/javacomp-script (configure.ac): Likewise.
6361
6362         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
6363
6364 2006-07-30  Bruno Haible  <bruno@clisp.org>
6365
6366         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
6367         linked-list.
6368
6369 2006-07-30  Bruno Haible  <bruno@clisp.org>
6370
6371         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
6372
6373 2006-07-30  Bruno Haible  <bruno@clisp.org>
6374
6375         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
6376         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
6377         get removed.
6378
6379 2006-07-29  Bruno Haible  <bruno@clisp.org>
6380
6381         Make it possible for gnulib-tool to work with locally modified or
6382         augmented gnulib repositories.
6383         * gnulib-tool (func_usage): Document --local-dir option.
6384         (local_gnulib_dir): New variable.
6385         Handle --local-dir option.
6386         (func_lookup_file): New function.
6387         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
6388         (func_get_description, func_get_filelist, func_get_description,
6389         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
6390         func_get_automake_snippet, func_get_include_directive,
6391         func_get_license, func_get_maintainer): Use func_lookup_file.
6392         (func_import, func_create_testdir): Use func_lookup_file.
6393
6394 2006-07-29  Bruno Haible  <bruno@clisp.org>
6395
6396         * modules/setenv (Depends-on): Add unistd.
6397
6398 2006-07-29  Bruno Haible  <bruno@clisp.org>
6399
6400         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
6401
6402 2006-07-29  Bruno Haible  <bruno@clisp.org>
6403
6404         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
6405
6406 2006-07-29  Bruno Haible  <bruno@clisp.org>
6407
6408         * gnulib-tool (import, update): If there is no Makefile.am, look at
6409         aclocal.m4, instead of bailing out.
6410
6411 2006-07-29  Bruno Haible  <bruno@clisp.org>
6412
6413         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
6414         Categorize the options by when they are useful.
6415
6416 2006-07-29  Bruno Haible  <bruno@clisp.org>
6417
6418         * gnulib-tool (func_usage): Document option --no-libtool.
6419         Handle option --no-libtool.
6420         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
6421         for changed semantics of $libtool variable.
6422         (func_import): Likewise. If libtool is not used, show this through
6423         an option --no-libtool.
6424         (func_create_testdir): Update.
6425
6426 2006-07-29  Bruno Haible  <bruno@clisp.org>
6427
6428         * gnulib-tool (func_import): Extend error message about missing
6429         --doc-base.
6430
6431 2006-07-29  Bruno Haible  <bruno@clisp.org>
6432
6433         * gnulib-tool (func_import): Don't create the $docbase directory if
6434         there is no file to store there.
6435
6436 2006-07-29  Bruno Haible  <bruno@clisp.org>
6437
6438         * gnulib-tool (autoconf_minversion): If a --dir option is given and
6439         relevant, look for configure.ac there, not in the current directory.
6440         Also use a simple search for AC_PREREQ, not "autoconf --trace".
6441
6442 2006-07-29  Bruno Haible  <bruno@clisp.org>
6443
6444         * gnulib-tool (SORT): New variable.
6445         (func_usage): Undocument --assume-autoconf option.
6446         Remove --assume-autoconf option handling.
6447         (autoconf_minversion): Determine from the contents of configure.ac.
6448         (func_import): Remove autoconf_minversion handling.
6449         Suggested by Eric Blake.
6450
6451 2006-07-29  Bruno Haible  <bruno@clisp.org>
6452
6453         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
6454
6455 2006-07-29  Bruno Haible  <bruno@clisp.org>
6456
6457         * config/srclist.txt (*setenv.[ch]): Remove rules.
6458
6459 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
6460
6461         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
6462
6463 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
6464
6465         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
6466         arpa/inet.h.
6467
6468 2006-07-28  Simon Josefsson  <jas@extundo.com>
6469
6470         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
6471         * modules/inet_pton (Depends-on): Likewise.
6472
6473 2006-07-28  Simon Josefsson  <jas@extundo.com>
6474
6475         * m4/netinet_in_h.m4: New file.
6476
6477 2006-07-28  Simon Josefsson  <jas@extundo.com>
6478
6479         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
6480         #include's.
6481
6482 2006-07-28  Simon Josefsson  <jas@extundo.com>
6483
6484         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
6485         #include's.
6486
6487 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
6488
6489         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
6490         setgid on directories only if they set these bits.
6491         * lib/modechange.h: Remove obsolete comment about masks.
6492
6493 2006-07-28  Eric Blake  <ebb9@byu.net>
6494
6495         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
6496         macro expansion.
6497
6498 2006-07-28  Bruno Haible  <bruno@clisp.org>
6499
6500         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
6501
6502 2006-07-28  Bruno Haible  <bruno@clisp.org>
6503
6504         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
6505
6506 2006-07-28  Bruno Haible  <bruno@clisp.org>
6507
6508         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
6509         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
6510         Define fallbacks.
6511         Avoids link error on FreeBSD 4.x.
6512         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
6513
6514         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
6515         encoding.
6516         * lib/mbswidth.c (iswcntrl): Likewise.
6517
6518 2006-07-27  Bruno Haible  <bruno@clisp.org>
6519
6520         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
6521         test.
6522
6523 2006-07-27  Bruno Haible  <bruno@clisp.org>
6524
6525         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
6526         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
6527         defined.
6528
6529 2006-07-26  Eric Blake  <ebb9@byu.net>
6530
6531         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
6532
6533 2006-07-26  Eric Blake  <ebb9@byu.net>
6534
6535         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
6536         like mingw that lack mkstemp.
6537         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
6538         avoid compilation warning on mingw.
6539
6540 2006-07-26  Bruno Haible  <bruno@clisp.org>
6541
6542         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
6543         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
6544         INT_FAST*_MIN, INTPTR_MIN.
6545
6546 2006-07-25  Bruno Haible  <bruno@clisp.org>
6547
6548         * modules/version-etc (Depends-on): Add stdarg.
6549
6550 2006-07-25  Bruno Haible  <bruno@clisp.org>
6551
6552         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
6553         complex commands.
6554
6555 2006-07-25  Bruno Haible  <bruno@clisp.org>
6556
6557         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
6558         defined in <stdarg.h> or config.h.
6559
6560 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
6561
6562         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
6563         (gl_STDIO_SAFER): Remove.
6564
6565 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
6566
6567         * MODULES.html.sh (File stream based Input/Output):
6568         Add fopen-safer, tmpfile-safer; remove stdio-safer.
6569         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
6570         * modules/fopen-safer, modules/tmpfile-safer: New files.
6571         * modules/stdio-safer: Remove.
6572
6573 2006-07-24  Bruno Haible  <bruno@clisp.org>
6574
6575         * modules/tmpdir: New file.
6576         * MODULES.html.sh (File system functions): Add it.
6577
6578 2006-07-24  Bruno Haible  <bruno@clisp.org>
6579
6580         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
6581         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
6582
6583 2006-07-24  Bruno Haible  <bruno@clisp.org>
6584
6585         * modules/clean-temp: New file.
6586
6587 2006-07-24  Bruno Haible  <bruno@clisp.org>
6588
6589         * m4/tmpdir.m4: New file, from GNU gettext.
6590
6591 2006-07-24  Bruno Haible  <bruno@clisp.org>
6592
6593         * lib/tmpdir.h: New file, from GNU gettext.
6594         * lib/tmpdir.c: New file, from GNU gettext.
6595
6596 2006-07-24  Bruno Haible  <bruno@clisp.org>
6597
6598         * lib/clean-temp.h: New file, from GNU gettext.
6599         * lib/clean-temp.c: New file, from GNU gettext.
6600
6601 2006-07-23  Eric Blake  <ebb9@byu.net>
6602
6603         * modules/stdio-safer (Files): Add tmpfile-safer.c.
6604         (Depends-on): Add binary-io.
6605
6606 2006-07-23  Eric Blake  <ebb9@byu.net>
6607
6608         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
6609
6610 2006-07-23  Eric Blake  <ebb9@byu.net>
6611
6612         * lib/tmpfile-safer.c: New file.
6613         * lib/stdio-safer.h (fopen_safer): Add prototype.
6614         * lib/stdio--.h (tmpfile): Make safer.
6615
6616 2006-07-23  Bruno Haible  <bruno@clisp.org>
6617
6618         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
6619         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
6620         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
6621         gl_linked_remove_at): Use it.
6622
6623 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
6624         and Simon Josefsson <jas@extundo.com>
6625
6626         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
6627
6628         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
6629
6630 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
6631
6632         * modules/close-stream: New file.
6633         * modules/closeout (Description): Make it clear that it exits
6634         with a diagnostic on error.
6635         (Depends-on): Add close-stream.  Remove fpending, stdbool.
6636         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
6637
6638 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
6639
6640         * m4/close-stream.m4: New file.
6641
6642 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
6643
6644         * lib/close-stream.c, lib/close-stream.h: New files.
6645
6646 2006-07-22  Bruno Haible  <bruno@clisp.org>
6647
6648         Merge from GNU gettext 0.15.
6649
6650         2006-05-01  Bruno Haible  <bruno@clisp.org>
6651
6652                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
6653
6654         2006-07-22  Bruno Haible  <bruno@clisp.org>
6655
6656                 * modules/javaversion: New file.
6657                 * MODULES.html.sh (Java): Add javaversion.
6658
6659         2006-03-12  Bruno Haible  <bruno@clisp.org>
6660
6661                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
6662
6663         2005-12-04  Bruno Haible  <bruno@clisp.org>
6664
6665                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
6666                 (untested).
6667
6668         2006-06-21  Bruno Haible  <bruno@clisp.org>
6669
6670                 Avoid warnings from recent versions of mcs.
6671                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
6672                 -o, -L, -r any more. Use options documented since mcs-1.0
6673                 instead. Similarly for -g.
6674
6675         2005-12-04  Bruno Haible  <bruno@clisp.org>
6676
6677                 * build-aux/csharpcomp.sh.in: Suffix for resources is
6678                 .resources, not .resource.
6679
6680         2005-07-09  Bruno Haible  <bruno@clisp.org>
6681
6682                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
6683                 add a .dll suffix.
6684                 Reported by Mark Junker <mjscod@gmx.de>.
6685
6686         2006-07-22  Bruno Haible  <bruno@clisp.org>
6687
6688                 * modules/gettext: Upgrade to gettext-0.15.
6689                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
6690                 m4/visibility.m4.
6691                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
6692
6693 2006-07-22  Bruno Haible  <bruno@clisp.org>
6694
6695         Merge from GNU gettext 0.15.
6696
6697         2006-03-25  Bruno Haible  <bruno@clisp.org>
6698
6699                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
6700
6701         2006-07-21  Bruno Haible  <bruno@clisp.org>
6702
6703                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
6704                 "1.1".
6705
6706         2006-05-09  Bruno Haible  <bruno@clisp.org>
6707
6708                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
6709                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
6710                 for the conftestver execution.
6711
6712         2006-05-01  Bruno Haible  <bruno@clisp.org>
6713
6714                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
6715                 optional target-version argument. Verify that the compiler
6716                 groks source of the specified source-version, or add -source
6717                 option as necessary. Verify that the compiler produces
6718                 bytecode in the specified target-version, or add -target and
6719                 -source options as necessary. Make the result of the test
6720                 available as variable CONF_JAVAC. Also log error output in
6721                 config.log.
6722
6723         2006-03-11  Bruno Haible  <bruno@clisp.org>
6724
6725                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
6726
6727         2006-05-09  Bruno Haible  <bruno@clisp.org>
6728
6729                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
6730                 CLASSPATH_SEPARATOR to a semicolon.
6731
6732         2006-03-12  Bruno Haible  <bruno@clisp.org>
6733
6734                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
6735                 available as variable CONF_JAVA, for subsequent autoconf
6736                 tests. Also log error output in config.log.
6737
6738         2006-07-19  Bruno Haible  <bruno@clisp.org>
6739
6740                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
6741                 that getline works on glibc2 systems. Needed to avoid trouble
6742                 in relocatable.c.
6743                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
6744
6745         2005-12-04  Bruno Haible  <bruno@clisp.org>
6746
6747                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
6748                 launcher (untested).
6749
6750         2005-12-04  Bruno Haible  <bruno@clisp.org>
6751
6752                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
6753
6754         2006-07-22  Bruno Haible  <bruno@clisp.org>
6755
6756                 * gettext.m4: Update from GNU gettext-0.15.
6757                 * nls.m4: Likewise.
6758                 * po.m4: Likewise.
6759                 * inttypes-pri.m4: Likewise.
6760                 * inttypes-h.m4: Renamed from inttypes.m4.
6761                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
6762
6763 2006-07-22  Bruno Haible  <bruno@clisp.org>
6764
6765         Merge from GNU gettext 0.15.
6766
6767         2005-07-05  Bruno Haible  <bruno@clisp.org>
6768
6769                 * printf-args.c (printf_fetchargs): Work around broken
6770                 definition of wint_t on mingw.
6771
6772         2005-02-12  Bruno Haible  <bruno@clisp.org>
6773
6774                 * xallocsa.h: Add extern "C" for C++.
6775
6776         2006-05-17  Bruno Haible  <bruno@clisp.org>
6777
6778                 Cygwin portability.
6779                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
6780
6781         2006-04-30  Bruno Haible  <bruno@clisp.org>
6782
6783                 * progreloc.c: Include <mach-o/dyld.h> if available.
6784                 (find_executable): Use _NSGetExecutablePath when possible.
6785
6786         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
6787
6788                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
6789                 function.
6790
6791         2005-12-29  Bruno Haible  <bruno@clisp.org>
6792
6793                 * progreloc.c (set_program_name_and_installdir): Fix
6794                 compilation error.
6795
6796         2005-12-04  Bruno Haible  <bruno@clisp.org>
6797
6798                 Cygwin portability.
6799                 * progreloc.c: Include <windows.h> also on Cygwin.
6800                 (find_executable): Add support for Cygwin.
6801                 (set_program_name_and_installdir): Handle also platforms with
6802                 nonempty EXEEXT.
6803
6804         2006-07-11  Bruno Haible  <bruno@clisp.org>
6805
6806                 * javacomp.c: Fix a comment.
6807                 Reported by Jim Meyering.
6808
6809         2006-04-30  Bruno Haible  <bruno@clisp.org>
6810
6811                 * javacomp.h (compile_java_class): Add source_version,
6812                 target_version arguments.
6813                 * javacomp.c: Rewritten to choose only a compiler that
6814                 respects the specified source_version and target_version.
6815
6816         2006-06-27  Bruno Haible  <bruno@clisp.org>
6817
6818                 Assume correct S_ISDIR macro.
6819                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
6820
6821         2006-07-22  Bruno Haible  <bruno@clisp.org>
6822
6823                 * javaversion.h: New file, from GNU gettext.
6824                 * javaversion.c: New file, from GNU gettext.
6825                 * javaversion.java: New file, from GNU gettext.
6826                 * javaversion.class: New file, from GNU gettext.
6827
6828         2006-05-17  Bruno Haible  <bruno@clisp.org>
6829
6830                 Cygwin portability.
6831                 * javaexec.c (execute_java_class): Test for jview program
6832                 also on Cygwin.
6833
6834         2006-04-09  Bruno Haible  <bruno@clisp.org>
6835
6836                 * fatal-signal.c: Don't include string.h.
6837                 (at_fatal_signal): Use a copying loop instead of memcpy.
6838
6839         2005-12-04  Bruno Haible  <bruno@clisp.org>
6840
6841                 * csharpexec.c: Add support for 'clix' launcher (untested).
6842                 (execute_csharp_using_sscli): New function.
6843                 (execute_csharp_program): Call it.
6844
6845         2006-06-21  Bruno Haible  <bruno@clisp.org>
6846
6847                 Avoid warnings from recent versions of mcs.
6848                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
6849                 -o, -L, -r any more. Use options documented since mcs-1.0
6850                 instead. Similarly for -g.
6851
6852         2005-07-09  Bruno Haible  <bruno@clisp.org>
6853
6854                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
6855                 add a .dll suffix.
6856                 Reported by Mark Junker <mjscod@gmx.de>.
6857
6858         2006-06-17  Bruno Haible  <bruno@clisp.org>
6859
6860                 * config.charset: Update for NetBSD 3.0.
6861
6862         2006-05-17  Bruno Haible  <bruno@clisp.org>
6863
6864                 Cygwin portability.
6865                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
6866
6867         2006-05-16  Bruno Haible  <bruno@clisp.org>
6868
6869                 * localcharset.c [CYGWIN]: Include <windows.h>.
6870                 (get_charset_aliases): For Cygwin, return the same CPxxx
6871                 aliases list as under WIN32.
6872                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
6873                 the environment variables. Fall back to GetACP().
6874
6875         2006-04-05  Bruno Haible  <bruno@clisp.org>
6876
6877                 * config.charset: Update Juan Manuel Guerrero's address.
6878
6879         2005-02-12  Bruno Haible  <bruno@clisp.org>
6880
6881                 * allocsa.h: Add extern "C" for C++.
6882
6883         2005-02-10  Bruno Haible  <bruno@clisp.org>
6884
6885                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
6886                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
6887
6888         2006-07-22  Bruno Haible  <bruno@clisp.org>
6889
6890                 * gettext.h: Update to GNU gettext-0.15.
6891
6892 2006-07-22  Bruno Haible  <bruno@clisp.org>
6893
6894         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
6895         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
6896         lib-prefix.m4, longdouble.m4, ssize_t.m4.
6897
6898 2006-07-21  Eric Blake  <ebb9@byu.net>
6899
6900         * modules/stdlib-safer: New file.
6901         * MODULES.html.sh (File stream based Input/Output): Add
6902         stdlib-safer.
6903
6904 2006-07-21  Eric Blake  <ebb9@byu.net>
6905
6906         * lib/stdlib-safer.h: New file from coreutils, required by
6907         stdlib--.h.
6908
6909 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
6910
6911         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
6912
6913 2006-07-20  Bruno Haible  <bruno@clisp.org>
6914
6915         * gnulib-tool: Recognize new option --assume-autoconf.
6916         (autoconf_minversion): New variable.
6917         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
6918
6919 2006-07-20  Bruno Haible  <bruno@clisp.org>
6920
6921         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
6922
6923 2006-07-19  Derek R. Price  <derek@ximbiot.com>
6924
6925         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
6926         Reindent and repaginate.
6927
6928 2006-07-19  Derek Price  <derek@ximbiot.com>
6929
6930         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
6931         Correct grammar.
6932
6933 2006-07-17  Bruno Haible  <bruno@clisp.org>
6934
6935         * modules/list: New file.
6936         * modules/array-list: New file.
6937         * modules/carray-list, modules/carray-list-tests: New files.
6938         * modules/linked-list, modules/linked-list-tests: New files.
6939         * modules/avltree-list, modules/avltree-list-tests: New files.
6940         * modules/rbtree-list, modules/rbtree-list-tests: New files.
6941         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
6942         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
6943         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
6944         * modules/oset: New file.
6945         * modules/array-oset: New file.
6946         * modules/avltree-oset, modules/avltree-oset-tests: New files.
6947         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
6948         * tests/test-carray_list.c: New file.
6949         * tests/test-linked_list.c: New file.
6950         * tests/test-avltree_list.c: New file.
6951         * tests/test-rbtree_list.c: New file.
6952         * tests/test-linkedhash_list.c: New file.
6953         * tests/test-avltreehash_list.c: New file.
6954         * tests/test-rbtreehash_list.c: New file.
6955         * tests/test-avltree_oset.c: New file.
6956         * tests/test-rbtree_oset.c: New file.
6957         * MODULES.html.sh (Container data structures): New section.
6958
6959 2006-07-17  Bruno Haible  <bruno@clisp.org>
6960
6961         * m4/gl_list.m4: New file.
6962
6963 2006-07-17  Bruno Haible  <bruno@clisp.org>
6964
6965         * lib/gl_list.h: New file.
6966         * lib/gl_list.c: New file.
6967         * lib/gl_array_list.h: New file.
6968         * lib/gl_array_list.c: New file.
6969         * lib/gl_carray_list.h: New file.
6970         * lib/gl_carray_list.c: New file.
6971         * lib/gl_linked_list.h: New file.
6972         * lib/gl_linked_list.c: New file.
6973         * lib/gl_anylinked_list1.h: New file.
6974         * lib/gl_anylinked_list2.h: New file.
6975         * lib/gl_avltree_list.h: New file.
6976         * lib/gl_avltree_list.c: New file.
6977         * lib/gl_anyavltree_list1.h: New file.
6978         * lib/gl_anyavltree_list2.h: New file.
6979         * lib/gl_rbtree_list.h: New file.
6980         * lib/gl_rbtree_list.c: New file.
6981         * lib/gl_anyrbtree_list1.h: New file.
6982         * lib/gl_anyrbtree_list2.h: New file.
6983         * lib/gl_anytree_list1.h: New file.
6984         * lib/gl_anytree_list2.h: New file.
6985         * lib/gl_linkedhash_list.h: New file.
6986         * lib/gl_linkedhash_list.c: New file.
6987         * lib/gl_anyhash_list1.h: New file.
6988         * lib/gl_anyhash_list2.h: New file.
6989         * lib/gl_avltreehash_list.h: New file.
6990         * lib/gl_avltreehash_list.c: New file.
6991         * lib/gl_rbtreehash_list.h: New file.
6992         * lib/gl_rbtreehash_list.c: New file.
6993         * lib/gl_anytreehash_list1.h: New file.
6994         * lib/gl_anytreehash_list2.h: New file.
6995
6996         * lib/gl_oset.h: New file.
6997         * lib/gl_oset.c: New file.
6998         * lib/gl_array_oset.h: New file.
6999         * lib/gl_array_oset.c: New file.
7000         * lib/gl_avltree_oset.h: New file.
7001         * lib/gl_avltree_oset.c: New file.
7002         * lib/gl_rbtree_oset.h: New file.
7003         * lib/gl_rbtree_oset.c: New file.
7004         * lib/gl_anytree_oset.h: New file.
7005
7006 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
7007
7008         * m4/mkancesdirs.m4: New file.
7009         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
7010         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
7011         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
7012         it.
7013
7014 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
7015
7016         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
7017         * lib/mkancesdirs.h: New files.
7018         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
7019         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
7020         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
7021         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
7022         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
7023         callers changed.  Revamp internals significantly, by not
7024         attempting to create directories that are temporarily more
7025         permissive than the final results.  Do not attempt to use
7026         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
7027         This removes some race conditions, fixes some bugs, and simplifies
7028         things.  Use new dirchownmod function to do owner and mode changes.
7029         * lib/mkdir-p.h: Likewise.
7030         * lib/modechange.c (octal_to_mode): New function.
7031         (struct mode_change): New member mentioned.
7032         (make_node_op_equals): New arg mentioned.  All callers changed.
7033         (mode_compile): Keep track of which mode bits the user has explicitly
7034         mentioned.
7035         (mode_adjust): New arg DIR, so that we implement the X op correctly.
7036         New arg PMODE_BITS, to keep track of which mode bits the user
7037         mentioned; it treats S_ISUID and S_ISGID speciall.
7038         All callers changed.
7039         * lib/modechange.h: Likewise.
7040
7041 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
7042
7043         * MODULES.html.sh: Add mkancestors.
7044         * modules/mkancesdirs: New module.
7045         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
7046         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
7047         The chdir-safer and afs files are now orphans; I'll remove them
7048         unless someone speaks up.
7049         Add lib/dirchownmod.c, lib/dirchownmod.h.
7050         (Depends-on): Remove alloca, chown, save-cwd, dirname.
7051         Add lchown, mkancesdirs.
7052         (Maintainer): Add self.
7053
7054 2006-07-15  Karl Berry  <karl@gnu.org>
7055
7056         * gnulib-tool: help message wording/arrangement.
7057
7058 2006-07-14  Simon Josefsson  <jas@extundo.com>
7059
7060         * doc/gnulib.texi (Libtool and Windows): New section.
7061
7062 2006-07-12  Simon Josefsson  <jas@extundo.com>
7063
7064         * modules/gendocs (License): Fix license, approved by Karl.
7065
7066 2006-07-12  Eric Blake  <ebb9@byu.net>
7067
7068         * MODULES.html.sh: Add gendocs.
7069
7070 2006-07-11  Eric Blake  <ebb9@byu.net>
7071
7072         * modules/fdl: New module, to install doc/fdl.texi.
7073         * MODULES.html.sh: Add new section for documentation modules.
7074         * gnulib-tool: Avoid space-tab.
7075         (--doc-base): New option, to manage files from doc.
7076
7077 2006-07-11  Eric Blake  <ebb9@byu.net>
7078
7079         * m4/absolute-header.m4: Fix comments to match recent change.
7080
7081 2006-07-11  Eric Blake  <ebb9@byu.net>
7082
7083         * gnulib-tool: List --doc-base before --tests-base.
7084
7085 2006-07-11  Derek R. Price  <derek@ximbiot.com>
7086
7087         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
7088
7089 2006-07-11  Bruno Haible  <bruno@clisp.org>
7090
7091         * README: Mention where to put documentation.
7092
7093 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7094
7095         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
7096
7097 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
7098
7099         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
7100         to stdint.m4.
7101
7102 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
7103
7104         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
7105         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
7106         "no/such/file/stdint.h" when there is no such file, so that
7107         the resulting C code can be parsed by dodgy compilers.
7108         Problems reported by Bob Proulx.
7109
7110 2006-07-10  Derek R. Price  <derek@ximbiot.com>
7111
7112         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
7113         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
7114         macros into the GNU _D_EXACT_NAMLEN.
7115         * lib/savedir.c:  Likewise.
7116         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
7117
7118 2006-07-10  Derek R. Price  <derek@ximbiot.com>
7119         and Paul Eggert  <eggert@cs.ucla.edu>
7120
7121         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
7122         * m4/savedir.m4:
7123         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
7124         macros into the GNU _D_EXACT_NAMLEN.
7125
7126 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
7127
7128         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
7129         around the absolute name, to work around a problem with the HP-UX
7130         11.23 native C compiler, reported by Bob Proulx.
7131
7132 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
7133
7134         * doc/maintain.texi, make-stds.texi: Sync from
7135         <http://savannah.gnu.org/projects/gnustandards>.
7136
7137 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
7138
7139         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
7140
7141 2006-07-09  Jim Meyering  <jim@meyering.net>
7142
7143         * m4/glob.m4: Remove a doubled word in a comment.
7144
7145 2006-07-09  Jim Meyering  <jim@meyering.net>
7146
7147         * lib/argp-pv.c: Remove a doubled word in a comment.
7148         * lib/check-version.c (check_version): Likewise.
7149         * lib/javacomp.c (compile_java_class): Likewise.
7150
7151 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
7152
7153         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
7154         for the benefit of people using Autoconf 2.60.  If you want to
7155         support older Autoconf versions you can copy m4/onceonly_2_57.m4
7156         (or m4/onceonly.m4, if pre-2.57) manually.
7157
7158 2006-07-08  Jim Meyering  <jim@meyering.net>
7159
7160         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
7161         comment.
7162         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
7163         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
7164         comment.
7165
7166 2006-07-08  Jim Meyering  <jim@meyering.net>
7167
7168         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
7169
7170 2006-07-07  Simon Josefsson  <jas@extundo.com>
7171
7172         * tests/test-crc.c: Change expected crc value, the test vector
7173         were probably computed using the old broken crc.c?
7174
7175 2006-07-06  Simon Josefsson  <jas@extundo.com>
7176
7177         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
7178         now the canonical place for the M4 file).
7179
7180         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
7181         from the sys_socket dependency now.
7182
7183         * modules/inet_pton (Files): Ditto.
7184
7185         * modules/inet_ntop (Files): Ditto.
7186
7187 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
7188
7189         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
7190         not gl_PREREQ_GETUSERSHELL.
7191
7192 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7193
7194         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
7195         with only one argument, for Autoconf 2.60.
7196         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
7197         expand to nothing, so add a shell command to avoid syntax error.
7198         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
7199
7200 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7201
7202         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
7203
7204 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
7205
7206         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
7207         no longer needed.  Check for isblank decl.
7208         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
7209         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
7210         of existence.
7211
7212 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
7213
7214         * lib/getloadavg.c: Use __VMS, not VMS.
7215         * lib/getopt.c: Likewise.
7216         * lib/getpagesize.h: Likewise.
7217         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
7218         and probably does not work.
7219
7220 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
7221
7222         * lib/.cppi-disable: Add wcwidth.
7223         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
7224         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
7225         (ISGRAPH): Remove.  All uses changed to isgraph.
7226         (FOLD) [!defined _LIBC]: Remove special case.
7227         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
7228         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
7229         HAVE_ISBLANK.
7230         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
7231         case.
7232
7233 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
7234
7235         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
7236         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
7237         brackets.  Other minor changes to suppress some compiler
7238         warnings.
7239
7240 2006-07-06  Derek R. Price  <derek@ximbiot.com>
7241         and Paul Eggert  <eggert@cs.ucla.edu>
7242
7243         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
7244         of invoking obsolescent AC_HEADER_DIRENT macro.
7245         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
7246         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
7247         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
7248         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
7249         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
7250         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
7251         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
7252         * m4/readdir.m4: Remove; no longer needed.
7253
7254 2006-07-06  Derek R. Price  <derek@ximbiot.com>
7255         and Paul Eggert  <eggert@cs.ucla.edu>
7256
7257         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
7258         Don't worry about this obsolete case any more.
7259         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
7260         directories.
7261         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
7262         worry about this obsolete case any more.
7263         * lib/fts.c: Likewise.
7264         * lib/getcwd.c: Likewise.
7265         * lib/glob.h: Likewise.
7266         * lib/savedir.c: Likewise.
7267
7268 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
7269
7270         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
7271         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
7272         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
7273         needed.
7274         All uses removed.
7275         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
7276         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
7277         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
7278         needed.
7279         * m4/getdate.m4 (gl_GETDATE): Likewise.
7280         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
7281         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
7282         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
7283         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
7284         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
7285         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
7286         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
7287         needed.
7288
7289 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
7290
7291         * lib/memcasecmp.c: Include <limits.h>.
7292         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
7293         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
7294         Don't assume isdigit succeeds only on '0' through '9'.
7295
7296 2006-07-05  Eric Blake  <ebb9@byu.net>
7297
7298         * modules/getaddrinfo (Depends-on): Add snprintf.
7299
7300 2006-07-05  Eric Blake  <ebb9@byu.net>
7301
7302         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
7303         to avoid 'header present but could not be compiled' on cygwin.
7304
7305 2006-07-05  Eric Blake  <ebb9@byu.net>
7306
7307         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
7308         missing from netdb.h.
7309         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
7310
7311 2006-07-05  Derek R. Price  <derek@ximbiot.com>
7312
7313         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
7314         no longer needed.
7315         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
7316         * m4/getdate.m4 (gl_GETDATE): Likewise.
7317         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
7318         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
7319         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
7320         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
7321         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
7322
7323 2006-07-05  Derek R. Price  <derek@ximbiot.com>
7324
7325         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
7326         All uses of is_space replaced by isspace.
7327         * lib/exit.h: Don't talk about STDC_HEADERS.
7328         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
7329         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
7330         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
7331         replaced by isprint etc.
7332         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
7333         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
7334         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
7335         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
7336         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
7337         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
7338
7339 2006-07-05  Bruno Haible  <bruno@clisp.org>
7340
7341         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
7342         the function exists, before testing against AIX.
7343         Reported by Martin Lambers <marlam@marlam.de>.
7344
7345 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
7346
7347         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
7348         From Mark D. Baushke.
7349
7350 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
7351
7352         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
7353         to the absolute name, not just one, to bypass Sun C 5.8's
7354         "warning: #include of /usr/include/... may be non-portable".
7355
7356 2006-07-04  Eric Blake  <ebb9@byu.net>
7357
7358         * modules/dirname-tests: New test module.
7359         * tests/test-dirname.c: New file, replacing dirname.c
7360         TEST_DIRNAME section that was recently deleted.
7361
7362 2006-07-04  Bruno Haible  <bruno@clisp.org>
7363
7364         Assume ANSI C header files and <ctype.h> functions.
7365         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
7366         (mbsnwidth): Use isprint, iscntrl instead.
7367
7368 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
7369
7370         Merge from coreutils.
7371         * MODULES.html.sh: Add xstrtold.
7372         * modules/xstrtold: New file.
7373         * modules/cycle-check (Files): Add lib/same-inode.h.
7374         * modules/dirname (Files): Add m4/double-slash-root.m4.
7375         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
7376         * modules/mkdir-p (Files): Add lib/same-inode.h.
7377         * modules/same (Files): Add lib/same-inode.h.
7378
7379 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
7380
7381         * m4/absolute-header.m4: Renamed from full-header-path.m4.
7382         This is to keep the terminology clean; POSIX talks about
7383         "absolute pathnames", not "full pathnames", but the GNU
7384         Coding Standards say to use "path" for something else;
7385         so use "absolute" to keep both sides happy.
7386         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
7387         Set gl_absolute_header, not gl_full_header_path.
7388         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
7389         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
7390         All uses changed.
7391
7392         Merge from coreutils.
7393
7394         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
7395
7396         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
7397         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
7398         want to require the building of c-strtod.o.
7399         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
7400         needs -lm directly.
7401         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
7402
7403         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
7404
7405         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
7406         --as-needed option if available.  Problem reported by Albert Chin in
7407         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
7408         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
7409         cc merely issues a bunch of annoying warnings for --as-needed
7410         (this problem was reported by Bob Proulx).  Also, try linking with
7411         -lm to detect a bug in binutils 2.16 (this problem was reported
7412         by Ralf Wildenhues).
7413
7414         2006-06-18  Jim Meyering  <jim@meyering.net>
7415
7416         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
7417         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
7418         macro.
7419         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
7420         also check for glibc-2.4's abort-inducing bug.
7421
7422         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
7423         Low-probability clean-up should be to use rmdir to get rid of
7424         the just-created directory, not unlink.
7425
7426         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
7427         configure fail, and request a bug report to inform us about it.
7428         Add a comment that, barring reports to the contrary, in 2007 we'll
7429         assume ftruncate is universally available.
7430
7431         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
7432
7433         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
7434
7435         2006-03-12  Jim Meyering  <jim@meyering.net>
7436
7437         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
7438         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
7439         * m4/same.m4 (gl_SAME): Likewise.
7440         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
7441
7442         2006-03-11  Eric Blake  <ebb9@byu.net>
7443
7444         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
7445         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
7446         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
7447         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
7448
7449 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
7450
7451         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
7452         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
7453         reported by Mark D. Baushke, one in
7454         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
7455
7456         Merge from coreutils.
7457
7458         * lib/.cppi-disable: Add stdint_.h.
7459         * lib/.cvsignore: Add stdint.h.
7460
7461         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
7462
7463         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
7464         both double and long double versions.
7465         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
7466         * lib/xstrtold.c: New file.
7467         * lib/xstrtod.h (xstrtold): New decl.
7468
7469         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
7470
7471         * lib/filemode.c (setst): Remove.
7472         (strmode): Rewrite to avoid setst.  This makes the code shorter,
7473         (arguably) clearer, and the generated code is a bit smaller on my
7474         Debian GNU/Linux stable x86 host.
7475
7476         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
7477
7478         * lib/filemode.c: Include "filemode.h" first, to test the interface.
7479         Assume that filemode.h includes sys/types.h and sys/stat.h.
7480         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
7481         (ftypelet): Reorder to put common cases first, for efficiency.
7482         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
7483         to do 'M'.
7484         (strmode): Renamed from mode_string, and now stores 12 bytes instead
7485         of 10, for compatibility with FreeBSD.  All callers changed.
7486         (filemodestring): Now stores 12 bytes instead of 10, and sets file
7487         types that can't be deduced solely from st_mode.  First arg is now a
7488         const pointer.
7489         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
7490         (strmode): Renamed from mode_string.
7491         (filemodestring): New decl.
7492         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
7493         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
7494         needed.
7495         (S_ISPORT, S_ISWHT): New macros, if not already defined.
7496
7497         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
7498
7499         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
7500         fsusage.h now does that.  Include fsusage.h first, to test interface.
7501         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
7502         at most one method (the old code could have generated decls that
7503         didn't conform to C89, not that this was ever exercised).
7504         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
7505
7506         2006-03-19  Jim Meyering  <jim@meyering.net>
7507
7508         Work even in a chroot where d_ino values for entries in "/"
7509         don't match the stat.st_ino values for the same names.
7510         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
7511         number, iterate through all entries again, using lstat instead.
7512         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
7513         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
7514
7515         * lib/getcwd.c (__getcwd): Clarify a comment.
7516         Use memcpy in place of a call to strcpy.
7517
7518         2006-03-12  Jim Meyering  <jim@meyering.net>
7519
7520         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
7521         matches that of the current directory (which we're about to chdir ".."
7522         out of), then save the dev-ino of the parent, instead.
7523
7524         * lib/same-inode.h (SAME_INODE): New file/macro.
7525         * lib/chdir-safer.c (SAME_INODE): Remove definition.
7526         Include "same-inode.h", instead.
7527         * lib/same.c: Likewise.
7528         * lib/cycle-check.h: Include "same-inode.h".
7529         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
7530         * lib/cycle-check.c (SAME_INODE): Remove definition.
7531         * lib/root-dev-ino.h: Include "same-inode.h".
7532
7533         2006-03-11  Eric Blake  <ebb9@byu.net>
7534
7535         * lib/same.c (same_name): s/base_name/last_component/
7536         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
7537         * lib/filenamecat.c (file_name_concat): Likewise.
7538
7539         2006-03-11  Eric Blake  <ebb9@byu.net>,
7540                     Paul Eggert  <eggert@cs.ucla.edu>
7541
7542         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
7543         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
7544         drive prefix.
7545         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
7546         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
7547         (last_component): New method.
7548         * lib/dirname.c (dir_len): Determine when drive letters need a
7549         subsequent slash.  Preserve // when it is special.
7550         (dir_name): Don't append dot when drive letter is absolute.
7551         [TEST_DIRNAME]: Move into a full-blown gnulib test.
7552         * lib/basename.c (base_name): New semantics - malloc the result.
7553         Preserve // when it is special.  Preserve relative files that look
7554         like drive letters.
7555         (base_len): Preserve // when it is special.
7556         (last_component): New method, similar to old base_name semantics.
7557         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
7558         base_name.  Strip redundant slashes from ///.
7559
7560 2006-07-03  Jim Meyering  <jim@meyering.net>
7561
7562         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
7563         macro is used before the first cycle_check call.
7564
7565 2006-07-03  Eric Blake  <ebb9@byu.net>
7566
7567         * modules/dirname (Depends-on): Add xstrndup.
7568
7569 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
7570
7571         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
7572         test cases, so that config.log is a bit easier to follow.
7573
7574 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
7575
7576         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
7577         both are 64 bits, since this seems to be the tradition, and this
7578         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
7579         we ever run into a host that prefers long long to long in this
7580         case, we'll need another configure-time test.  Problem reported by
7581         Jim Meyering.
7582
7583 2006-07-02  Eric Blake  <ebb9@byu.net>
7584
7585         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
7586
7587 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
7588
7589         * modules/inttypes (Depends-on): No longer depends on stdint.
7590         * modules/stdint (Description): Say more about assumptions.
7591         Say that the fast types might differ.  Say macros are used.
7592         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
7593         (Makefile.am): Revise list of substituted symbols to match
7594         new stdint.m4.
7595         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
7596         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
7597         * tests/test-stdint.c (verify_same_types)
7598         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
7599         the code conforms to C99/C89.
7600         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
7601         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
7602
7603 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
7604
7605         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
7606         but fix a bug, by requiring at least 64 bits.
7607         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
7608         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
7609         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
7610         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
7611
7612         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
7613         changes.  Make 2.59 a prerequisite.  Check and substitute for
7614         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
7615         inttypes.h.  Do not use special include files; just use the
7616         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
7617         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
7618         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
7619         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
7620         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
7621         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
7622         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
7623         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
7624         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
7625         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
7626         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
7627         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
7628         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
7629         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
7630         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
7631         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
7632         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
7633         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
7634         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
7635         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
7636         WINT_MAX.  Check for C99 conformance more strictly, by detecting
7637         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
7638         not check for things that C99 does not require, e.g., int8_t.  If
7639         a test isn't needed unless <stdint.h> isn't working, and is
7640         unlikely to be needed for any other reason, then don't do it
7641         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
7642         size_t, since we assume C89 freestanding at least.  Do not check
7643         for sig_atomic_t, wchar_t, or wint_t, since the code now does
7644         the right thing even if the types are not defined.  Instead use:
7645         (gl_STDINT_TYPE_PROPERTIES): New macro.
7646         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
7647         testing whether <sys/types.h> clashes, as Autoconf does this for
7648         us now.  All uses removed.
7649         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
7650         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
7651         (gl_CHECK_TYPE_SAME):
7652         Remove; no longer needed.
7653         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
7654         exists, since we'll return 0 anyway in that case.
7655         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
7656
7657 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
7658
7659         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
7660         possible collision with system files.
7661         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
7662         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
7663         WCHAR_MIN and WCHAR_MAX in this case.
7664         (<stddef.h>): Do not include; no longer needed.
7665         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
7666         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
7667         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
7668         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
7669         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
7670         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
7671         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
7672         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
7673         !defined(__c99))]: Include in this case too, since it's harmless
7674         now.
7675         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
7676         dangerous to do so.
7677         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
7678         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
7679         (_STDINT_MIN, _STDINT_MAX): New macros.
7680         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
7681         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
7682         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
7683         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
7684         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
7685         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
7686         macros, not typedefs; this simplifies things quite a bit.
7687         Use long int for all types narrower than int64_t.
7688         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
7689         Define in terms of long long int or int64_t or long int,
7690         not int64_t or int32_t.  This saves some compile-time testing.
7691         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
7692         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
7693         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
7694         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
7695         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
7696         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
7697         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
7698         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
7699         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
7700         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
7701         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
7702         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
7703         undef any previous version and define our own version, for
7704         simplicity and consistency with the new macros for types.
7705         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
7706         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
7707         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
7708         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
7709         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
7710         @WINT_T_SUFFIX@ to keep things simple here.
7711         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
7712         Simplify by assuming typical 8/16/32/64 host, since we're
7713         already doing that elsewhere anyway.
7714         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
7715         and assume long long int is 64 bits if available.  This
7716         speeds up 'configure'.
7717
7718 2006-07-01  Eric Blake  <ebb9@byu.net>
7719
7720         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
7721         Reported by Andreas Buening.
7722
7723 2006-07-01  Eric Blake  <ebb9@byu.net>
7724
7725         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
7726
7727 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
7728
7729         * lib/getaddrinfo.c: fixed typo
7730
7731 2006-06-29  Jim Meyering  <jim@meyering.net>
7732
7733         * modules/strftime (Maintainer): Add my name, since with the
7734         FPRINTFTIME changes strftime.c has forked from glibc.
7735
7736 2006-06-29  Eric Blake  <ebb9@byu.net>
7737
7738         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
7739
7740 2006-06-29  Eric Blake  <ebb9@byu.net>
7741
7742         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
7743
7744 2006-06-29  Eric Blake  <ebb9@byu.net>
7745
7746         * lib/stat_.h: New file.
7747
7748 2006-06-29  Eric Blake  <ebb9@byu.net>
7749
7750         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
7751         unused static function.
7752
7753 2006-06-29  Eric Blake  <ebb9@byu.net>
7754
7755         * doc/functions.texi (Function Portability): Document missing lstat
7756         on mingw.
7757
7758 2006-06-29  Eric Blake  <ebb9@byu.net>
7759
7760         * MODULES.html.sh: Add sys_stat.
7761         * modules/sys_stat: New module.
7762         * modules/mkstemp (Depends-on): Add sys_stat.
7763
7764 2006-06-29  Derek R. Price  <derek@ximbiot.com>
7765
7766         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
7767
7768 2006-06-29  Derek R. Price  <derek@ximbiot.com>
7769
7770         * m4/c-bs-a.m4: Removed.
7771
7772 2006-06-29  Derek R. Price  <derek@ximbiot.com>
7773
7774         * lib/strftime.c: Assume strftime() exists.
7775
7776 2006-06-29  Derek Price  <derek@ximbiot.com>
7777
7778         * modules/c-bs-a: Removed - \a is C89.
7779         * MODULES.html.sh: Remove c-bs-a.
7780
7781 2006-06-29  Bruno Haible  <bruno@clisp.org>
7782
7783         * modules/wcwidth (License): Change to LGPL.
7784
7785 2006-06-28  Simon Josefsson  <jas@extundo.com>
7786
7787         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
7788         on _WIN32.
7789
7790         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
7791         getnameinfo.
7792
7793 2006-06-28  Simon Josefsson  <jas@extundo.com>
7794
7795         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
7796
7797 2006-06-28  Simon Josefsson  <jas@extundo.com>
7798
7799         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
7800         functions there.  It will succeed on Windows XP, but on Windows
7801         2000 and (presumably) earlier, it will fail, and use the internal
7802         re-implementation.
7803         (use_win32_p): New function.
7804         (getaddrinfo): Use strtoul on servname, to support numeric ports.
7805         Support AI_NUMERICSERV to disable getservbyname.
7806         (getnameinfo): New function, only supports
7807         NI_NUMERICHOST|NI_NUMERICSERV for now.
7808
7809         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
7810         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
7811         getnameinfo.
7812
7813 2006-06-28  Eric Blake  <ebb9@byu.net>
7814
7815         * modules/wcwidth: New file.
7816         * modules/mbchar (Depends-on): Add wcwidth.
7817         * modules/mbswidth (Depends-on): Add wcwidth.
7818         * MODULES.html.sh: Add wcwidth.
7819
7820 2006-06-28  Eric Blake  <ebb9@byu.net>
7821
7822         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
7823         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
7824
7825 2006-06-28  Eric Blake  <ebb9@byu.net>
7826
7827         * lib/xvasprintf.h: Fix comments.
7828
7829 2006-06-28  Eric Blake  <ebb9@byu.net>
7830
7831         * lib/mbchar.h (wcwidth): Include wcwidth.h.
7832         * lib/mbswidth.c (wcwidth): Move from here...
7833         * lib/wcwidth.h: ...to this new file.
7834
7835 2006-06-28  Derek R. Price  <derek@ximbiot.com>
7836
7837         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
7838
7839         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
7840         it's obsolete.
7841         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
7842
7843 2006-06-28  Derek R. Price  <derek@ximbiot.com>
7844
7845         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
7846         Autoconf 2.60 says this stuff was obsolete.
7847
7848 2006-06-28  Bruno Haible  <bruno@clisp.org>
7849
7850         * modules/wcwidth (Files): Add m4/wchar_t.m4.
7851
7852 2006-06-28  Bruno Haible  <bruno@clisp.org>
7853
7854         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
7855         gt_TYPE_WCHAR_T.
7856
7857 2006-06-28  Bruno Haible  <bruno@clisp.org>
7858
7859         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
7860         declaration for wcwidth.
7861         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
7862
7863 2006-06-28  Bruno Haible  <bruno@clisp.org>
7864
7865         * lib/mkdtemp.c [MINGW]: Include <io.h>.
7866         (mkdir): Define using _mkdir.
7867
7868 2006-06-28  Bruno Haible  <bruno@clisp.org>
7869
7870         * lib/getaddrinfo.h: Fix POSIX URL.
7871         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
7872         _WIN32.
7873         (use_win32_p): Make static.
7874         (getaddrinfo): Reject service name if it is empty or does not consist
7875         solely of decimal digits, or if its value is > 65535.
7876         (getnameinfo): Remove useless casts.
7877
7878 2006-06-27  Simon Josefsson  <jas@extundo.com>
7879
7880         * modules/sys_select: New file, suggested by Bruno Haible, Paul
7881         Eggert and Martin Lambers.
7882
7883 2006-06-27  Simon Josefsson  <jas@extundo.com>
7884
7885         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
7886         Eggert and Martin Lambers.
7887
7888 2006-06-27  Bruno Haible  <bruno@clisp.org>
7889
7890         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
7891         result to 0, not to empty.
7892         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
7893
7894 2006-06-27  Bruno Haible  <bruno@clisp.org>
7895
7896         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
7897
7898 2006-06-26  Simon Josefsson  <jas@extundo.com>
7899
7900         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
7901         present.
7902
7903 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
7904
7905         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
7906         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
7907         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
7908
7909 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
7910
7911         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
7912
7913 2006-06-26  Bruno Haible  <bruno@clisp.org>
7914
7915         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
7916
7917 2006-06-26  Bruno Haible  <bruno@clisp.org>
7918
7919         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
7920
7921 2006-06-26  Bruno Haible  <bruno@clisp.org>
7922
7923         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
7924         SGI C compiler in pre-C99 mode.
7925         Suggested by Mark D. Baushke and Larry Jones.
7926
7927 2006-06-26  Bruno Haible  <bruno@clisp.org>
7928
7929         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
7930         WCHAR_MAX.
7931         Reported by Mark D. Baushke and Larry Jones.
7932
7933 2006-06-26  Bruno Haible  <bruno@clisp.org>
7934
7935         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
7936         in pre-C99 mode.
7937         Suggested by Mark D. Baushke and Larry Jones.
7938
7939 2006-06-23  Simon Josefsson  <jas@extundo.com>
7940             Bruno Haible  <bruno@clisp.org>
7941
7942         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
7943         Emit mostlyclean-local rule.
7944         (func_emit_tests_Makefile_am): Likewise.
7945         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
7946
7947 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
7948
7949         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
7950
7951 2006-06-23  Bruno Haible  <bruno@clisp.org>
7952
7953         * tests/test-stdint.c: Update to match ISO C 99 Technical
7954         Corrigendum 1.
7955
7956 2006-06-23  Bruno Haible  <bruno@clisp.org>
7957
7958         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
7959
7960 2006-06-23  Bruno Haible  <bruno@clisp.org>
7961
7962         * lib/stdint_.h: Treat IRIX like OpenBSD.
7963
7964 2006-06-23  Bruno Haible  <bruno@clisp.org>
7965
7966         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
7967         ISO C 99 Technical Corrigendum 1.
7968
7969 2006-06-22  Simon Josefsson  <jas@extundo.com>
7970
7971         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
7972         MinGW.
7973
7974 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
7975
7976         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
7977         needed.  Some compiler complained about some of them.  Problem reported
7978         by Larry Jones in
7979         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
7980
7981 2006-06-21  Simon Josefsson  <jas@extundo.com>
7982
7983         * tests/test-getaddrinfo.c: New file.
7984
7985         * modules/getaddrinfo-tests: New file.
7986
7987         * MODULES.html.sh: Add inet_pton.
7988
7989         * modules/inet_pton: New file.
7990
7991 2006-06-21  Simon Josefsson  <jas@extundo.com>
7992
7993         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
7994         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
7995         of using the (limited) gnulib implementation on Windows XP.
7996
7997         * m4/inet_pton.m4: New file.
7998
7999 2006-06-21  Simon Josefsson  <jas@extundo.com>
8000
8001         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
8002         variable.
8003
8004         * lib/socket_.h: Don't define WINVER.
8005
8006         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
8007         slightly modified to work in gnulib.
8008
8009 2006-06-21  Simon Josefsson  <jas@extundo.com>
8010
8011         * doc/gnulib.texi (Windows sockets): Add.
8012
8013 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
8014
8015         * lib/read-file.c (fread_file): Start with buffer allocation of
8016         0 bytes rather than 1 byte; this simplifies the code.
8017         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
8018         code to free buffer and save/restore errno.
8019         (internal_read_file): Remove unused local.
8020
8021 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
8022
8023         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
8024         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
8025         Problem reported by Denis Excoffier in
8026         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
8027
8028 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
8029
8030         * modules/sys_socket, modules/socklen: Include sys/types since
8031         FreeBSD 4.x's sys/socket.h needs it.
8032
8033 2006-06-19  Simon Josefsson  <jas@extundo.com>
8034
8035         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
8036
8037 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
8038
8039         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
8040
8041 2006-06-19  Bruno Haible  <bruno@clisp.org>
8042
8043         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
8044         and FULL_PATH_INTTYPES_H in angle brackets.
8045         Reported by Mark D. Baushke <mdb@gnu.org>.
8046
8047 2006-06-17  Eric Blake  <ebb9@byu.net>
8048
8049         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
8050         errno.
8051
8052 2006-06-17  Bruno Haible  <bruno@clisp.org>
8053
8054         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
8055         <sys/inttypes.h>.
8056
8057 2006-06-17  Bruno Haible  <bruno@clisp.org>
8058
8059         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
8060         whether errno is declared. Assume <errno.h> declares errno.
8061
8062 2006-06-17  Bruno Haible  <bruno@clisp.org>
8063
8064         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
8065
8066 2006-06-17  Bruno Haible  <bruno@clisp.org>
8067
8068         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
8069         problem on Solaris 2.5.1.
8070
8071 2006-06-16  Eric Blake  <ebb9@byu.net>
8072
8073         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
8074         * lib/unicodeio.c [!defined errno]: Likewise.
8075         * lib/strtol.c [!defined errno]: Likewise.
8076         * lib/strtod.c [!defined errno]: Likewise.
8077
8078 2006-06-15  Eric Blake  <ebb9@byu.net>
8079
8080         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
8081
8082 2006-06-15  Eric Blake  <ebb9@byu.net>
8083
8084         * config/srclist.txt (ssize_t.m4): Lose sync.
8085
8086 2006-06-15  Bruno Haible  <bruno@clisp.org>
8087
8088         * modules/stdint (Files): Include m4/full-header-path.m4,
8089         m4/size_max.m4, m4/wchar_t.m4.
8090         (Makefile.am): Many more substitutions.
8091         * modules/stdint-tests: New file.
8092         * tests/test-stdint.c: New file.
8093
8094 2006-06-15  Bruno Haible  <bruno@clisp.org>
8095
8096         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
8097         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
8098         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
8099         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
8100         gl_CHECK_TYPE_SAME): New macros.
8101
8102 2006-06-15  Bruno Haible  <bruno@clisp.org>
8103
8104         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
8105
8106 2006-06-15  Bruno Haible  <bruno@clisp.org>
8107
8108         * lib/stdint_.h: Rewritten to be fully auto-configured.
8109         Fixes bug on HP-UX/IA64.
8110
8111 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
8112
8113         * lib/getdate.y (__attribute__): Don't define if already defined.
8114         Problem reported by Larry Jones.
8115         * lib/utimens.c (__attribute__): Likewise.
8116
8117 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
8118
8119         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
8120         reported by Andreas Schwab.
8121
8122 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8123             Bruno Haible  <bruno@clisp.org>
8124
8125         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
8126         check for the declaration of strnlen and a run test that exposes the
8127         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
8128         rpl_strndup.
8129
8130 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8131             Bruno Haible  <bruno@clisp.org>
8132
8133         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
8134
8135 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8136
8137         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
8138         compile test, for Tru64 4.0D.
8139
8140 2006-05-28  Karl Berry  <karl@gnu.org>
8141
8142         * config/srclist.txt (printf-args.c): lose sync.
8143
8144 2006-05-26  Martin Lambers  <marlam@marlam.de>
8145
8146         * lib/getpass.c: Updates the test for the native W32 API, and adds
8147         missing includes, thus fixing compilation warnings.
8148
8149 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
8150
8151         * lib/exclude.c (exclude_fnmatch): New function.
8152         (excluded_file_name): Call exclude_fnmatch.
8153         * lib/exclude.h (excluded_file_name): New prototype
8154
8155 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
8156
8157         * lib/tempname.c (small_open, large_open): New macros.
8158         (__open, __open64) [!_LIBC]: Remove.
8159         (__gen_tempname): Use small_open and large_open instead of __open
8160         and __open64.  This fixes a portability bug on HP-UX 11.11i
8161         reported by Simon Wing-Tang in
8162         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
8163
8164 2006-05-24  Bruno Haible  <bruno@clisp.org>
8165
8166         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
8167         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
8168         Reported by Thorsten Maerz <torte@netztorte.de> via
8169         Aaron Stone <aaron@serendipity.cx>.
8170
8171 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
8172
8173         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
8174         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
8175         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
8176         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
8177         not really conditional on the cache.
8178         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
8179
8180 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
8181
8182         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
8183         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
8184         (my_usleep): Don't mishandle maximum value.
8185
8186 2006-05-19  Jim Meyering  <jim@meyering.net>
8187
8188         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
8189
8190 2006-05-17  Bruno Haible  <bruno@clisp.org>
8191
8192         Cygwin portability.
8193         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
8194
8195 2006-05-17  Bruno Haible  <bruno@clisp.org>
8196
8197         * lib/stdint_.h: Fix recognition of Cygwin.
8198
8199 2006-05-15  Bruno Haible  <bruno@clisp.org>
8200
8201         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
8202         on libtool patch by Ralf Wildenhues.
8203
8204 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
8205
8206         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
8207         test for C99 conformance; (bool) 0.5 is an integer constant
8208         expression, but (bool) -0.5 is not.  Problem reported by Fedor
8209         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
8210
8211 2006-05-11  Simon Josefsson  <jas@extundo.com>
8212
8213         * m4/xvasprintf.m4: Fix obvious typo.
8214
8215 2006-05-11  Jim Meyering  <jim@meyering.net>
8216
8217         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
8218         James Lemley.
8219
8220 2006-05-10  Simon Josefsson  <jas@extundo.com>
8221
8222         * lib/md4.c: Typo fix, update copyright years.
8223         (K1, K2): Don't use L because it turn computations into 64-bit on
8224         64-bit platforms.
8225
8226 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
8227
8228         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
8229         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
8230         unwanted sign propagation, e.g., on hosts with 64-bit int.
8231         There still are some problems with reeelly weird theoretical hosts
8232         (e.g., 33-bit int) but it's not worth worrying about now.
8233         * lib/sha1.c (rol): Likewise.
8234         (K1, K2, K3, K4): Remove unnecessary L suffix.
8235
8236 2006-05-10  Bruno Haible  <bruno@clisp.org>
8237
8238         * lib/des.c: Cast to avoid warnings.
8239
8240 2006-05-09  Bruno Haible  <bruno@clisp.org>
8241
8242         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
8243         (Depends-on): Depend also on xsize, stdarg.
8244         (configure.ac): Add gl_XVASPRINTF.
8245
8246 2006-05-09  Bruno Haible  <bruno@clisp.org>
8247
8248         * m4/xvasprintf.m4: New file.
8249
8250 2006-05-09  Bruno Haible  <bruno@clisp.org>
8251
8252         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
8253         (EOVERFLOW): Define fallback value.
8254         (xstrcat): New function.
8255         (xvasprintf): Recognize the special case of a string concatenation.
8256
8257 2006-05-08  Eric Blake  <ebb9@byu.net>
8258
8259         * gnulib-tool (func_version): Base copyright year on CVS date.
8260         (func_emit_copyright_notice): New function.
8261         (func_emit_lib_Makefile_am): Use it.
8262         (func_emit_tests_Makefile_am): Likewise.
8263         (func_import): Likewise.
8264
8265 2006-05-08  Bruno Haible  <bruno@clisp.org>
8266
8267         * modules/stdarg: New file.
8268         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
8269
8270 2006-05-08  Bruno Haible  <bruno@clisp.org>
8271
8272         * m4/stdarg.m4: New file, from GNU gettext.
8273
8274 2006-05-08  Bruno Haible  <bruno@clisp.org>
8275
8276         * config/srclist.txt (build-aux/config.rpath): different from latest
8277         release.
8278
8279 2006-05-08  Bruno Haible  <bruno@clisp.org>
8280
8281         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
8282
8283 2006-05-05  Jim Meyering  <jim@meyering.net>
8284
8285         * m4/warning.m4: New file, derived from bison's file by the same name.
8286
8287 2006-05-03  Bruno Haible  <bruno@clisp.org>
8288
8289         * lib/stdint_.h: Shorter URL.
8290         * lib/inttypes.h: Likewise.
8291
8292 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
8293
8294         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
8295
8296 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
8297
8298         * lib/verify.h: Document the internals better.  Most of this change
8299         was written by Bruno Haible.
8300
8301 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
8302
8303         * doc/verify.texi: New file, partly based on a proposal by
8304         Bruno Haible.
8305
8306 2006-05-02  Bruno Haible  <bruno@clisp.org>
8307
8308         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
8309         test from here...
8310         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
8311
8312 2006-04-29  Bruno Haible  <bruno@clisp.org>
8313
8314         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
8315         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
8316
8317 2006-04-29  Bruno Haible  <bruno@clisp.org>
8318
8319         * gnulib-tool: Make --update option actually work.
8320
8321 2006-04-29  Bruno Haible  <bruno@clisp.org>
8322
8323         * doc/gcd.texi: New file.
8324         * doc/gnulib.texi: Include it.
8325
8326 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
8327
8328         * lib/getdate.y (get_date): When adding relative date, start with the
8329         initial time, not with the result of the first mktime call.
8330
8331 2006-04-25  Bruno Haible  <bruno@clisp.org>
8332
8333         * gnulib-tool (func_import): Output the include directives in three
8334         blocks, sorted separately.
8335         Reported by Ben Pfaff <blp@cs.stanford.edu>.
8336
8337 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
8338
8339         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
8340         to define main with arguments, for C++.  Reported by Eric Blake.
8341         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
8342         Prefer 'int main ()' to 'int main (void)', for C++.
8343         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
8344         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
8345         for 'main', for C99 and C++.
8346
8347 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
8348
8349         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
8350         Don't assume that exit status -1 is valid.
8351         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
8352         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
8353         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
8354         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
8355         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
8356         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
8357         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
8358         functions can be used without declaring them, or that you can
8359         exit with status -1.
8360         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
8361
8362 2006-04-24  Karl Berry  <karl@gnu.org>
8363
8364         * config/srclist.txt (longdouble.m4): sync lost.
8365
8366 2006-04-24  Eric Blake  <ebb9@byu.net>
8367
8368         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
8369
8370 2006-04-24  Bruno Haible  <bruno@clisp.org>
8371
8372         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
8373         poll() implementation in AIX.
8374         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8375
8376 2006-04-24  Bruno Haible  <bruno@clisp.org>
8377
8378         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
8379         assigned exactly once.
8380
8381 2006-04-23  Claudio Fontana  <claudio@gnu.org>
8382             Bruno Haible  <bruno@clisp.org>
8383
8384         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
8385         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
8386         for AM_CPPFLAGS.
8387
8388 2006-04-23  Bruno Haible  <bruno@clisp.org>
8389
8390         * modules/copy-file: Depend on unistd.
8391         * modules/execute: Likewise.
8392         * modules/fatal-signal: Likewise.
8393         * modules/findprog: Likewise.
8394         * modules/mkdtemp : Likewise.
8395         * modules/pipe: Likewise.
8396         * modules/wait-process: Likewise.
8397
8398 2006-04-23  Bruno Haible  <bruno@clisp.org>
8399
8400         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
8401         condition was already detected.
8402         Reported by Ben Pfaff <blp@cs.stanford.edu>.
8403
8404 2006-04-23  Bruno Haible  <bruno@clisp.org>
8405
8406         * lib/copy-file.c: Include <unistd.h> unconditionally.
8407         * lib/execute.c: Likewise.
8408         * lib/fatal-signal.c: Likewise.
8409         * lib/findprog.c: Likewise.
8410         * lib/mkdtemp.c: Likewise.
8411         * lib/pipe.h: Likewise.
8412         * lib/pipe.c: Likewise.
8413         * lib/wait-process.h: Likewise.
8414
8415 2006-04-23  Bruno Haible  <bruno@clisp.org>
8416
8417         * gnulib-tool (func_usage): Fix --import description. Document
8418         --update.
8419         (func_import): Create temporary file in a temporary directory, if
8420         --dry-run is specified. Silence errors from 'grep' when there are no
8421         m4 files in $m4dir.
8422         (func_create_testdir): Silence errors from 'grep' when there are no
8423         m4 files in $m4dir.
8424         Reported by Karl Berry <karl@freefriends.org>.
8425
8426 2006-04-20  Bruno Haible  <bruno@clisp.org>
8427
8428         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
8429         one argument, so that the code will be portable to Autoconf 2.60.
8430         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
8431         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
8432         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
8433
8434 2006-04-19  Derek Price  <derek@ximbiot.com>
8435             Eric Blake  <ebb9@byu.net>
8436
8437         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
8438         rather than "/full/path.h".  Update comment to match.  Shorten &
8439         generalize m4_translit call via AS_TR_CPP.
8440
8441 2006-04-19  Derek Price  <derek@ximbiot.com>
8442             Eric Blake  <ebb9@byu.net>
8443
8444         * lib/inttypes.h: Correct grammar in comment.
8445
8446 2006-04-18  Derek Price  <derek@ximbiot.com>
8447             Paul Eggert  <eggert@cs.ucla.edu>
8448
8449         * modules/inttypes: New file.
8450         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
8451
8452 2006-04-18  Derek Price  <derek@ximbiot.com>
8453             Paul Eggert  <eggert@cs.ucla.edu>
8454
8455         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
8456         New files.
8457
8458 2006-04-18  Derek Price  <derek@ximbiot.com>
8459             Paul Eggert  <eggert@cs.ucla.edu>
8460
8461         * lib/inttypes.h: New file.
8462         * lib/strtoimax.c: Assume <inttypes.h>.
8463
8464 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
8465
8466         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
8467         isn't mounted.  Problem reported by Kir Kolyshkin.
8468
8469 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
8470
8471         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
8472         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
8473         Derek R. Price.
8474         * lib/regex.h (RE_DUP_MAX): Update comment to match current
8475         implementation.
8476
8477 2006-04-12  Eric Blake  <ebb9@byu.net>
8478
8479         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
8480         is now done automatically by the corresponding Autoconf macro.
8481
8482 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
8483
8484         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
8485         time_r.h.
8486
8487 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
8488
8489         Merge regex changes from libc, removing some of our
8490         POSIX-conformance changes that were rejected and redoing them in a
8491         less-intrusive way.
8492
8493         * lib/regcomp.c (re_compile_internal, init_dfa):
8494         Length arg is now size_t, not Idx.  All uses changed.
8495         (peek_token): Forward decl now says internal_function.
8496         (__re_error_msgid, __re_error_msgid_idx):
8497         Now static rather than extern with attribute_hidden.
8498         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
8499         For some reason libc prefers K&R style defns for external functions.
8500         (regerror) [!defined _LIBC]: Likewise.
8501         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
8502         (seek_collating_symbol_entry, lookup_collation_sequence_value):
8503         (build_range_exp, build_collating_symbol):
8504         Use K&R-style defn.
8505         (re_compile_fastmap): Use '\0' to memset, not 0.
8506         (utf8_sb_map): Make the calculations more obvious.
8507         (init_dfa, parse_bracket_exp, build_charclass_op):
8508         Call calloc and cast result, as glibc does.
8509         (init_word_char, fetch_token, peek_token, peek_token_bracket):
8510         (build_range_exp, build_collating_symbol):
8511         Now internal functions.
8512
8513         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
8514
8515         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
8516         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
8517         Don't depend on VMS; depend on __VMS instead, for POSIX
8518         namespace cleanness.
8519         (regoff_t): Define to ssize_t, not long int.
8520
8521         Remove the REG_ macros named below.  Instead, make the old names
8522         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
8523         __USE_GNU_REGEX.
8524         (REG_BACKSLASH_ESCAPE_IN_LISTS):
8525         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
8526         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
8527         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
8528         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
8529         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
8530         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
8531         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
8532         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
8533         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
8534         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
8535         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
8536         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
8537         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
8538         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
8539         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
8540         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
8541         (REG_NREGS):
8542         Remove.  All uses replaced by the old RE_* names.
8543         (RE_BACKSLASH_ESCAPE_IN_LISTS):
8544         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
8545         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
8546         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
8547         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
8548         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
8549         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
8550         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
8551         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
8552         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
8553         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
8554         Don't bother having these macros be independent of each others'
8555         values, since they no longer exist in the POSIX name space.
8556
8557         Rename the following member names back to their old names,
8558         unless !__USE_GNU_REGEX.  All uses changed back.
8559         (buffer): Renamed from re_buffer.
8560         (allocated): Renamed from re_allocated.
8561         (used): Renamed from re_used.
8562         (syntax): Renamed from re_syntax.
8563         (fastmap): Renamed from re_fastmap.
8564         (translate): Renamed from re_translate.
8565         (can_be_null): Renamed from re_can_be_null.
8566         (regs_allocated): Renamed from re_regs_allocated.
8567         (fastmap_accurate): Renamed from re_fastmap_accurate.
8568         (no_sub): Renamed from re_no_sub.
8569         (not_bol): Renamed from re_not_bol.
8570         (not_eol): Renamed from re_not_eol.
8571         (newline_anchor): Renamed from re_newline_anchor.
8572         (num_regs): Renamed from rm_num_regs.
8573         (start): Renamed from rm_start.
8574         (end): Renamed from rm_end.
8575
8576         (free_state): Move up a bit.
8577
8578         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
8579         #define to be empty.
8580         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
8581         when that is what is intended.
8582         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
8583         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
8584         (MAX): New macro.
8585         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
8586         All uses changed back to re_malloc, etc.  It's now the caller's
8587         responsibility to check for overflow; all callers changed.
8588         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
8589         (re_x2nrealloc): Remove.
8590         (free_state): Remove decl.
8591
8592         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
8593         (re_set_registers, re_exec):
8594         Use K&R-style defn.
8595
8596         2006-01-31  Roland McGrath  <roland@redhat.com>
8597
8598         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
8599         Reported by Mike Frysinger <vapier@gentoo.org>.
8600
8601         2006-01-15  Andreas Jaeger  <aj@suse.de>
8602
8603         [BZ #1950]
8604         * lib/regex_internal.c (re_string_reconstruct): Adjust for
8605         build_wcs_upper_buffer change.
8606         (build_wcs_upper_buffer): Change return type.
8607
8608         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
8609
8610         * lib/regex_internal.h: Include <stdint.h> if available.
8611
8612         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
8613
8614         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
8615
8616         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
8617
8618         * lib/regcomp.c: Adjust for changed secondary hash function.
8619
8620         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
8621
8622         * lib/regex.h: Pretty printing.
8623         Clean up namespace a bit.
8624
8625         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
8626
8627         * lib/regexec.c (update_cur_sifted_state, check_arrival,
8628         check_arrival_add_next_nodes): Avoid using uninitialized variable.
8629
8630         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
8631                     Ulrich Drepper  <drepper@redhat.com>
8632
8633         [BZ #1302]
8634         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
8635         changed.
8636         (bitset_word_t): Renamed from bitset_word.  All uses changed.
8637
8638         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
8639
8640         [BZ #281]
8641         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
8642         * lib/regcomp.c: Remove unnecessary uses of
8643         unsigned RE_TRANSLATE_TYPE.
8644         * lib/regex_internal.h: Likewise.
8645         * lib/regex_internal.c: Likewise.
8646         * lib/regexec.c: Likewise.
8647         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
8648
8649         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
8650
8651         * lib/regexec.c (find_recover_state): Remove unnecessary
8652         initialization.
8653         (transit_state_bkref): Make DFA a const pointer.
8654         (get_subexp): Likewise.
8655         (check_arrival): Likewise.
8656         (update_cur_sifted_state): Likewise.
8657         (re_search_internal): Likewise.
8658         (prune_impossible_nodes): Likewise.
8659         (acquire_init_state_context): Likewise.
8660         (proceed_next_node): Likewise.
8661         (set_regs): Likewise.
8662         (free_fail_stack_return): Likewise.
8663         (check_arrival_expand_ecl): Mark DFA parameter as const.
8664         (check_arrival_expand_ecl_sub): Likewise.
8665         (check_subexp_limits): Likewise.
8666         (sub_epsilon_src_nodes):  Likewise.
8667         (add_epsilon_src_nodes):  Likewise.
8668         (merge_state_array): Likewise.
8669         (update_regs): Likewise.
8670         (build_trtable): Likewise.
8671         (sift_states_backward): Mark MCTX parameter as const.
8672         (build_sifted_states): Likewise.
8673         (update_cur_sifted_state): Likewise.
8674         (sift_states_mkref): Likewise.
8675         (check_arrival_expand_ecl): Mark eclosure as const.
8676         (check_dst_limits_calc_pos_1): Likewise.
8677         * lib/regex_internal.h (re_match_context_t): Make dfa a const
8678         pointer.
8679
8680         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
8681
8682         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
8683         (transit_state_sb): Likewise.
8684         (transit_state_mb): Likewise.
8685         (sift_states_iter_mb): Likewise.
8686         (check_arrival_add_next_nodes): Likewise.
8687         (check_node_accept_bytes): Change first parameter to pointer-to-const.
8688         [_LIBC] (re_search_2_stub): Use mempcpy.
8689
8690         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
8691         mbrtowc for very simple UTF-8 case.
8692
8693         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
8694         a pointer-to-const.
8695         (re_acquire_state_context): Likewise.
8696         * lib/regex_internal.h: Adjust prototypes.
8697
8698         * lib/regex.c: Prevent using C++ compilers.
8699
8700         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
8701         (re_acquire_state_context): Likewise.
8702
8703 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
8704
8705         * modules/regex (Depends-on): Add ssize_t.
8706
8707 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
8708
8709         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
8710         translation table.
8711
8712 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
8713
8714         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
8715
8716 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
8717             Bruno Haible  <bruno@clisp.org>
8718
8719         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
8720         <sys/types.h> and <inttypes.h>.
8721
8722 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8723
8724         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
8725         `__error_t_defined', so argp.h will not typedef the former.
8726
8727 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
8728
8729         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
8730         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
8731         glibc names.  Even if glibc is changed to conform to POSIX, the
8732         traditional names will be available anyway, since regex depends on
8733         the extensions module.  Also, fix a longstanding typo in the
8734         implementation of Spencer ERE test #75 from grep 2.3.  Problems
8735         reported by Emanuele Giaquinta.  Also, change sense of cached
8736         variable, so that the message makes sense.
8737
8738 2006-03-24  Simon Josefsson  <jas@extundo.com>
8739
8740         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
8741         including some doc fixes.
8742         (base64_encode_alloc): Fix +1 bug on allocation failures.
8743
8744 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8745
8746         * lib/base64.c (base64_encode): Do not read past end of array with
8747         unsanitized input on systems with CHAR_BIT > 8.
8748
8749 2006-03-24  Eric Blake  <ebb9@byu.net>
8750
8751         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
8752
8753 2006-03-22  Karl Berry  <karl@gnu.org>
8754
8755         * config/srclist.txt (*setenv.[ch]): get from coreutils.
8756         * config/srclistvars.sh (COREUTILS): new var.
8757
8758 2006-03-17  Jim Meyering  <jim@meyering.net>
8759
8760         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
8761         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
8762
8763 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
8764
8765         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
8766         no longer needs it.  Instead, check that regoff_t is as least
8767         as wide as ptrdiff_t.
8768
8769         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
8770         so that our regex.h stays compatible with the installed regex.
8771         This is helpful for installers who configure --without-included-regex.
8772         Problem reported by Emanuele Giaquinta.
8773
8774 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
8775
8776         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
8777         Typedef to long int, not to off_, as POSIX will likely change
8778         in that direction.
8779
8780 2006-03-15  Eric Blake  <ebb9@byu.net>
8781
8782         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
8783
8784 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
8785
8786         * lib/argp-help.c (validate_uparams): Fix typo
8787         * lib/argp-parse.c (argp_default_options): Consistently begin help
8788         messages with a lowercase letter.
8789
8790 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
8791
8792         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
8793         overrun buffers and shouldn't be used (much as gets shouldn't be
8794         used).
8795         * lib/time_r.c (asctime_r, ctime_r): Likewise.
8796
8797 2006-03-08  Simon Josefsson  <jas@extundo.com>
8798
8799         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
8800         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8801
8802 2006-03-08  Simon Josefsson  <jas@extundo.com>
8803
8804         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
8805         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8806
8807 2006-03-08  Simon Josefsson  <jas@extundo.com>
8808
8809         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
8810         signal that configure disabled the device.
8811
8812 2006-03-08  Simon Josefsson  <jas@extundo.com>
8813
8814         * build-aux/maint.mk: Fix refresh-po, to handle no translated
8815         languages.
8816
8817 2006-03-07  Simon Josefsson  <jas@extundo.com>
8818
8819         * modules/getopt (Depends-on): Add unistd.
8820
8821         * modules/unistd: New file.
8822
8823 2006-03-07  Simon Josefsson  <jas@extundo.com>
8824
8825         * modules/gc-random: New file.
8826
8827 2006-03-07  Simon Josefsson  <jas@extundo.com>
8828
8829         * m4/unistd_h.m4: New file.
8830
8831 2006-03-07  Simon Josefsson  <jas@extundo.com>
8832
8833         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
8834         test to be side-effect free by storing the result in the cache
8835         variable gl_cv_lib_readline, and moving the assignment of
8836         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
8837         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8838
8839 2006-03-07  Simon Josefsson  <jas@extundo.com>
8840
8841         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
8842         error on missing devices (the functions will return an error).
8843
8844         * m4/gc.m4: Move random stuff to gc-random.m4
8845
8846 2006-03-07  Simon Josefsson  <jas@extundo.com>
8847
8848         * lib/unistd_.h: New file.
8849
8850 2006-03-07  Simon Josefsson  <jas@extundo.com>
8851
8852         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
8853
8854 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
8855
8856         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
8857         Problem reported by Juan Manuel Guerrero.
8858
8859 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
8860
8861         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
8862         the unistd module.
8863         * lib/getlogin_r.c: Likewise.
8864         * lib/getlogin_r.h: Likewise.
8865         * lib/glob.c: Likewise.
8866         * lib/pagealign_alloc.c: Likewise.
8867         * lib/unistd_.h: Remove; no longer needed.
8868
8869 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
8870
8871         * MODULES.html.sh (Support for systems lacking POSIX:2001):
8872         Add unistd.
8873         * modules/c-stack (Depends-on): Add unistd.
8874         * modules/getlogin_r: Likewise.
8875         * modules/glob: Likewise.
8876         * modules/pagealign_alloc: Likewise.
8877         * modules/unistd (Files): Remove lib/unistd_.h.
8878         (EXTRA_DIST): Remove.
8879         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
8880         need unistd_.h.
8881         (MOSTLYCLEANFILES): Remove unistd.h-t.
8882
8883 2006-03-03  Simon Josefsson  <jas@extundo.com>
8884
8885         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
8886
8887 2006-03-03  Simon Josefsson  <jas@extundo.com>
8888
8889         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
8890         libidn and bison.
8891
8892 2006-03-03  Simon Josefsson  <jas@extundo.com>
8893
8894         * build-aux/maint.mk: Add indent target.
8895
8896 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
8897
8898         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
8899         our replacement poll.h in any case, to avoid a differing
8900         declaration from a system header.  Seen on AIX.
8901
8902 2006-03-01  Simon Josefsson  <jas@extundo.com>
8903
8904         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
8905         <kasal@ucw.cz>.
8906
8907 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
8908
8909         * modules/gettime (Depends-on): Add extensions module.
8910         * modules/nanosleep (Depends-on): Likewise.
8911         * modules/settime (Depends-on): Likewise.
8912
8913 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
8914
8915         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
8916         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
8917         pedantically.
8918         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
8919         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
8920
8921         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
8922         not "==".  Reported by Ralf Wildenhues.
8923
8924 2006-03-01  Karl Berry  <karl@gnu.org>
8925
8926         * doc/Copyright/request-*: new files, synced from gnuorg.
8927
8928 2006-03-01  Karl Berry  <karl@gnu.org>
8929
8930         * config/srclist.txt (Copyright/*): new entries.
8931
8932 2006-02-28  Simon Josefsson  <jas@extundo.com>
8933
8934         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
8935
8936 2006-02-27  Simon Josefsson  <jas@extundo.com>
8937
8938         * lib/base64.h: Indent #define's.  From Jim Meyering
8939         <jim@meyering.net>.
8940
8941 2006-02-27  Jim Meyering  <jim@meyering.net>
8942
8943         Revert the change of 2006-02-24, so these files can continue
8944         to be sync'd from gettext.
8945         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
8946         of `config.h'.
8947
8948 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
8949
8950         * modules/intprops: New file.
8951         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
8952         Add intprops.
8953         * modules/getloadavg (Files): Remove lib/intprops.h.
8954         (Depends-on): Add intprops.
8955         * modules/human: Likewise.
8956         * modules/inttostr: Likewise.
8957         * modules/openat: Likewise.
8958         * modules/sig2str: Likewise.
8959         * modules/userspec: Likewise.
8960         * modules/utimecmp: Likewise.
8961         * modules/xnanosleep: Likewise.
8962         * modules/xstrtol: Likewise.
8963
8964 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
8965
8966         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
8967         * modules/lock-tests (TESTS): Use $(EXEEXT).
8968         * modules/tls-tests: Likewise.
8969         * modules/argp-tests: Likewise.
8970         (check_PROGRAMS): New var, replacing...
8971         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
8972
8973 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8974
8975         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
8976         `config.h'.
8977
8978 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
8979
8980         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
8981
8982 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8983
8984         Sync from coreutils.
8985         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
8986         gl_CHDIR_SAFER.
8987
8988 2006-02-22  Jim Meyering  <jim@meyering.net>
8989
8990         Sync from coreutils.
8991         * m4/chdir-safer.m4: New file.
8992
8993 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
8994
8995         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
8996         AT_FDCWD exceeds INT_MAX.
8997         * lib/openat.h (AT_FDCWD): Likewise.
8998
8999 2006-02-17  Eric Blake  <address@hidden>
9000
9001         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
9002
9003 2006-02-16  Simon Josefsson  <jas@extundo.com>
9004
9005         * modules/getaddrinfo (Depends-on): Add sys_socket.
9006
9007 2006-02-15  Simon Josefsson  <jas@extundo.com>
9008
9009         * build-aux/maint.mk: Add dsyntax-check rule.
9010
9011 2006-02-15  Eric Blake  <ebb9@byu.net>
9012
9013         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
9014         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
9015         'present but cannot compile' warnings on cygwin.
9016         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
9017         use ws2tcpip.h if sys/socket.h works.
9018         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
9019         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
9020
9021 2006-02-14  Simon Josefsson  <jas@extundo.com>
9022
9023         * modules/maintainer-makefile (Files): Rename.
9024
9025         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
9026         and (the local) Makefile.cfg to maint-cfg.mk.
9027
9028         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
9029         to the latter.
9030
9031         * modules/maintainer-makefile: New module.
9032
9033         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
9034         severaly stripped to make it possible to build it up from scratch
9035         with reliable tests.
9036
9037         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
9038         fixes to permit overriding the default actions when configure and
9039         makefile are not available.
9040
9041 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
9042
9043         Sync from coreutils.
9044         * modules/lstat (Depends-on): Don't depend on xalloc.
9045         (License): Change from GPL to LGPL, since this is now simply a
9046         replacement for a libc function.
9047
9048 2006-02-14  Jim Meyering  <jim@meyering.net>
9049
9050         Sync from coreutils.
9051
9052         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
9053         failure on deficient systems, and simplify gnulib lgpl dependencies.
9054         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
9055         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
9056
9057         * lib/xalloc-die.c: Remove unused definition of N_.
9058
9059 2006-02-14  Jim Meyering  <jim@meyering.net>
9060
9061         Sync from coreutils.
9062         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
9063         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
9064         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
9065         double-quote uses of that variable, to accommodate the rare case in
9066         which getmntent is available in none of the libraries checked.  This
9067         happens at least on FreeBSD 5.0.
9068
9069 2006-02-13  Simon Josefsson  <jas@extundo.com>
9070
9071         * gnulib-tool (Usage): Fix --import, from
9072         karl@freefriends.org (Karl Berry).
9073
9074 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
9075
9076         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
9077
9078 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
9079
9080         * lib/argp-namefrob.h: Restore changes accidentally lost during the
9081         "autoupdate" on 2005-12-12.
9082
9083 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
9084
9085         * modules/closeout (Depends-on): Remove atexit.
9086
9087 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
9088
9089         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
9090         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
9091
9092 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
9093
9094         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
9095         __EXTENSIONS__ if this causes compilation to fail.  Problem
9096         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
9097         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
9098
9099 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
9100
9101         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
9102         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
9103         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
9104         All uses changed.
9105
9106 2006-01-26  Simon Josefsson  <jas@extundo.com>
9107
9108         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
9109         prototype is visible on mingw32.
9110
9111         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
9112         for mingw32.
9113
9114         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
9115         mingw32).
9116
9117 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
9118
9119         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
9120         attempt to open for write; this always fails, at least on POSIX
9121         hosts.  This reinstates the 2006-01-09 change, which was
9122         inadvertently removed.
9123
9124 2006-01-26  Bruno Haible  <bruno@clisp.org>
9125
9126         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
9127         Reported by Paul Eggert.
9128
9129 2006-01-26  Bruno Haible  <bruno@clisp.org>
9130             Paul Eggert  <eggert@cs.ucla.edu>
9131
9132         * lib/stdbool_.h (_Bool)
9133         [(! (defined __cplusplus || defined __BEOS__)
9134           && !defined __GNUC__
9135           && !(defined __HP_cc || defined __xlc__
9136                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
9137                || defined __sgi))]:
9138         #define to signed char in these cases too; this simplifies
9139         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
9140         etc., separately) and makes it more conservative.
9141
9142 2006-01-25  Simon Josefsson  <jas@extundo.com>
9143
9144         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
9145         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
9146         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
9147
9148 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
9149
9150         * lib/argp-namefrob.h: Bugfix. Remove stray #
9151
9152 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
9153
9154         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
9155         so that we test the test.
9156         Check for yet another HP-UX cc bug involving *bool |= bool.
9157
9158 2006-01-25  Karl Berry  <karl@gnu.org>
9159
9160         * config/srclist.txt (vasnprintf.c): sync lost.
9161
9162 2006-01-25  Jim Meyering  <jim@meyering.net>
9163
9164         Sync from the stable (b5) branch of coreutils:
9165
9166         * lib/fts.c (fts_children): Don't let close() clobber errno from
9167         failed fchdir().
9168
9169         * lib/fts.c (fts_stat): When following a symlink-to-directory,
9170         don't necessarily interpret stat-fails+lstat-succeeds as indicating
9171         a dangling symlink.  That can also happen at least for ELOOP.
9172         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
9173         FYI, this bug predates the inclusion of fts.c in coreutils.
9174
9175         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
9176         in their own block, so pre-c99 compilers don't object.
9177
9178         Avoid the double-free (first in fts_read, second in fts_close) that
9179         would occur when an `active' directory is made inaccessible (e.g.,
9180         via chmod a-x) during a traversal.
9181         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
9182         before returning.  Reproduce this failure by
9183         mkdir -p a/b; cd a; chmod a-x . b
9184         Reported by Stavros Passas.
9185
9186 2006-01-25  Jim Meyering  <jim@meyering.net>
9187
9188         * lib/fileblocks.c: Remove more useless parentheses.
9189         * lib/readutmp.h: Likewise.
9190
9191 2006-01-25  Bruno Haible  <bruno@clisp.org>
9192
9193         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
9194         warnings.
9195         Reported by Paul Eggert.
9196
9197 2006-01-25  Bruno Haible  <bruno@clisp.org>
9198
9199         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
9200         rid of a trap command. For Solaris sh.
9201         Reported by Mark D. Baushke <mdb@gnu.org>.
9202
9203 2006-01-24  Simon Josefsson  <jas@extundo.com>
9204
9205         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
9206         Bruno.
9207
9208 2006-01-24  Karl Berry  <karl@gnu.org>
9209
9210         * config/srclist.txt (argp-namefrob.h): sync lost.
9211
9212 2006-01-24  Jim Meyering  <jim@meyering.net>
9213
9214         * modules/openat (Files): Add lib/intprops.h.
9215         From Mark D. Baushke.
9216
9217 2006-01-24  Jim Meyering  <jim@meyering.net>
9218
9219         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
9220         Reported by Mark D. Baushke.
9221
9222 2006-01-24  Jim Meyering  <jim@meyering.net>
9223
9224         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
9225
9226 2006-01-24  Bruno Haible  <bruno@clisp.org>
9227
9228         * modules/strnlen (Maintainer): Change from glibc to all.
9229
9230 2006-01-24  Bruno Haible  <bruno@clisp.org>
9231
9232         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
9233         Patch by Paul Eggert.
9234
9235 2006-01-24  Bruno Haible  <bruno@clisp.org>
9236
9237         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
9238         already has it.
9239         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
9240         2005-11-26.
9241
9242         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
9243         'signed char' to avoid problems with the built-in _Bool type.
9244         Reported by Paul Eggert on 2005-11-26.
9245
9246 2006-01-24  Bruno Haible  <bruno@clisp.org>
9247
9248         * gnulib-tool (func_import): Avoid constructing complicated sed
9249         expressions inside backquote.
9250         Report and solution by Mark D. Baushke <mdb@gnu.org>.
9251
9252 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
9253
9254         These changes imported from libc.
9255         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
9256         test and two separate function calls.
9257         * lib/strndup.c (__strndup): Add libc_hidden_def.
9258
9259 2006-01-23  Simon Josefsson  <jas@extundo.com>
9260
9261         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
9262         Remove the test_*_SOURCES variable: automake infers it by default.
9263         * modules/tls-tests: Likewise.
9264
9265 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
9266
9267         Work around porting bugs reported by Dieter in
9268         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
9269         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
9270         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
9271         Include "getopt.h" first, to check interface.
9272         (getenv): Declare only if defined HAVE_DECL_GETENV &&
9273         !HAVE_DECL_GETENV.
9274         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
9275         (__strndup): Revert to K&R-style function dfns, the glibc style.
9276         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
9277         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
9278         Include strnlen.h first, to get prototype properly.
9279         (strnlen): Renamed from __strnlen.
9280         Remove weak alias.
9281
9282 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
9283
9284         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
9285
9286 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
9287
9288         * config/srclist.txt: Adjust to reflect glibc reorganization.
9289         This affects only comments.
9290
9291 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
9292
9293          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
9294          Reported by Bruce Korb <bkorb@gnu.org>.
9295
9296 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
9297
9298         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
9299         to pacify gcc -Wswitch-default.
9300
9301 2006-01-22  Bruno Haible  <bruno@clisp.org>
9302
9303         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
9304         temporary buffer for sprintf, take into account the precision also
9305         for 'd', 'i', 'u', 'o', 'x', 'X'.
9306
9307 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
9308
9309         * modules/argp-tests: New module
9310         * tests/test-argp.c: New file
9311         * tests/test-argp-2.sh: New file
9312
9313 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
9314
9315         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
9316         (__argp_base_name): Removed
9317         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
9318         typo.
9319         (__argp_base_name): Provide macro definition or extern declaration
9320         depending on the configuration
9321
9322 2006-01-20  Simon Josefsson  <jas@extundo.com>
9323
9324         * modules/inet_ntop (Depends-on): Depend on sys_socket.
9325
9326 2006-01-20  Simon Josefsson  <jas@extundo.com>
9327
9328         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
9329
9330 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
9331
9332         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
9333         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
9334         Suggested by Bruno Haible.
9335
9336 2006-01-20  Karl Berry  <karl@gnu.org>
9337
9338         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
9339         until changes propagate, I guess.
9340
9341 2006-01-19  Simon Josefsson  <jas@extundo.com>
9342
9343         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
9344
9345 2006-01-19  Simon Josefsson  <jas@extundo.com>
9346
9347         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
9348
9349 2006-01-19  Simon Josefsson  <jas@extundo.com>
9350
9351         * gnulib-tool: Set check_PROGRAMS.
9352
9353         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
9354         modules/des-tests, modules/gc-arcfour-tests,
9355         modules/gc-arctwo-tests, modules/gc-des-tests,
9356         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
9357         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
9358         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
9359         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
9360         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
9361         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
9362         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
9363         test_*_SOURCES.
9364
9365 2006-01-18  Simon Josefsson  <jas@extundo.com>
9366
9367         * modules/socklen (Depends-on): Depend on sys_socket.
9368
9369 2006-01-18  Simon Josefsson  <jas@extundo.com>
9370
9371         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
9372         modules/des-tests, modules/gc-arcfour-tests,
9373         modules/gc-arctwo-tests, modules/gc-des-tests,
9374         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
9375         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
9376         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
9377         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
9378         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
9379         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
9380         $(EXEEXT) to automake TESTS variable, for mingw32.
9381
9382 2006-01-17  Simon Josefsson  <jas@extundo.com>
9383
9384         * modules/socklen (Include): Need sys/socket.h.
9385
9386 2006-01-17  Bruno Haible  <bruno@clisp.org>
9387
9388         * modules/ssize_t (Include): Add <sys/types.h>.
9389
9390 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
9391
9392         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
9393         it's not portable and it doesn't work with cross-compiles.
9394         Problem reported by Bruno Haible.  Fix missing-$ typo in
9395         'test "gl_cv_ignore_unused_libraries" ...' that prevented
9396         -zignore from being used with Sun's C compiler.
9397
9398 2006-01-12  Simon Josefsson  <jas@extundo.com>
9399
9400         * lib/base64.c: Fix warning, reported by Bruno Haible
9401         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
9402
9403 2006-01-12  Bruno Haible  <bruno@clisp.org>
9404
9405         * modules/ldd: New file.
9406         * build-aux/ldd.sh.in: New file.
9407         * MODULES.html.sh (Support for building libraries and executables): Add
9408         ldd.
9409
9410 2006-01-12  Bruno Haible  <bruno@clisp.org>
9411
9412         * m4/ldd.m4: New file.
9413
9414 2006-01-12  Bruno Haible  <bruno@clisp.org>
9415
9416         * gnulib-tool (func_import, func_create_testdir): Don't go into an
9417         endless loop while replacing $auxdir with build-aux.
9418
9419 2006-01-11  Simon Josefsson  <jas@extundo.com>
9420
9421         * lib/stdint_.h (SIZE_MAX): Add missing (.
9422
9423 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
9424
9425         Sync from coreutils.
9426         * lib/md5.c: Fix commentary typos.
9427         (alignof, UNALIGNED_P): No need for a GCC-specific version.
9428         * lib/md5.h (__attribute__): Remove; unused.
9429         * lib/sha1.c: Fix commentary to match md5 better.
9430         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
9431         so that we don't need to worry about alignment.  All uses changed.
9432         This merges the 2005-10-28 md5 change into sha1.
9433
9434 2006-01-11  Jim Meyering  <jim@meyering.net>
9435
9436         Sync from coreutils.
9437         * lib/md5.c (OP): Fix spacing.
9438
9439 2006-01-11  Bruno Haible  <bruno@clisp.org>
9440
9441         Ensure automatic ordering between gl_LOCK and gl_ARGP.
9442         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
9443         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
9444
9445 2006-01-11  Bruno Haible  <bruno@clisp.org>
9446
9447         Ensure automatic ordering between gl_LOCK and gl_ARGP.
9448         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
9449         the "early" section as well.
9450
9451 2006-01-11  Bruno Haible  <bruno@clisp.org>
9452
9453         Avoid "ar: no archive members specified" error on MacOS X.
9454         * gnulib-tool (func_modules_add_dummy): New function.
9455         (func_import, func_create_testdir): Invoke it.
9456
9457 2006-01-11  Bruno Haible  <bruno@clisp.org>
9458
9459         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
9460         with $auxdir in AC_CONFIG_FILES statements.
9461
9462 2006-01-11  Bruno Haible  <bruno@clisp.org>
9463
9464         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
9465         Initialize also noinst_HEADERS to empty.
9466
9467 2006-01-11  Bruno Haible  <bruno@clisp.org>
9468
9469         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
9470         variables.
9471         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
9472         autoreconf.
9473
9474 2006-01-11  Bruno Haible  <bruno@clisp.org>
9475
9476         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
9477         overridable by the user.
9478         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9479
9480 2006-01-10  Simon Josefsson  <jas@extundo.com>
9481
9482         * modules/sys_socket: New file.
9483
9484 2006-01-10  Simon Josefsson  <jas@extundo.com>
9485
9486         * m4/sys_socket_h.m4: New file.
9487
9488 2006-01-10  Simon Josefsson  <jas@extundo.com>
9489
9490         * lib/socket_.h: New file.
9491
9492 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
9493
9494         * modules/readutmp (Maintainer): Add myself.
9495
9496 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
9497
9498         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
9499         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
9500         People who are still concerned with buggy memcmp implementations
9501         can invoke gl_FUNC_MEMCMP themselves.
9502
9503 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
9504
9505         * lib/regex_internal.h (BITSET_WORD_BITS):
9506         Work around a bug in 64-bit PGC (before version 6.1-2), where the
9507         preprocessor mishandles large unsigned values as if they were signed.
9508         Problem reported by Claudio Fontana in
9509         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
9510
9511 2006-01-10  Jim Meyering  <jim@meyering.net>
9512
9513         Avoid the double-free (first in fts_read, second in fts_close) that
9514         would occur when an `active' directory is made inaccessible (e.g.,
9515         via chmod a-x) during a traversal.
9516         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
9517         before returning.  Reproduce this failure by
9518         mkdir -p a/b; cd a; chmod a-x . b
9519         Reported by Stavros Passas.
9520
9521         Sync from coreutils.
9522         * lib/sha1.c: Tweak grammar in a comment.
9523
9524 2006-01-10  Jim Meyering  <jim@meyering.net>
9525
9526         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
9527         Patch by Joerg Sonnenberger.
9528
9529 2006-01-10  Bruno Haible  <bruno@clisp.org>
9530
9531         * modules/readutmp: Depend on module free.
9532         * modules/strtok_r: Depend on module restrict.
9533
9534 2006-01-10  Bruno Haible  <bruno@clisp.org>
9535
9536         * modules/gettext (configure.ac): Add an invocation of
9537         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
9538
9539 2006-01-10  Bruno Haible  <bruno@clisp.org>
9540
9541         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
9542         Reported by Werner Lemberg <wl@gnu.org>.
9543
9544 2006-01-10  Bruno Haible  <bruno@clisp.org>
9545
9546         * lib/localcharset.c: Update from GNU gettext.
9547
9548 2006-01-10  Bruno Haible  <bruno@clisp.org>
9549
9550         * lib/argp.h (__const): Remove macro. Use const instead.
9551         * lib/argp-fmtstream.h (__const): Likewise.
9552         * lib/glob_.h (__const): Remove macro.
9553         * lib/glob-libc.h: Use const instead of __const.
9554
9555 2006-01-10  Bruno Haible  <bruno@clisp.org>
9556
9557         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
9558         variable.
9559         Needed to avoid an automake error regarding the 'gettext' module.
9560
9561 2006-01-09  Simon Josefsson  <jas@extundo.com>
9562
9563         * modules/inet_ntop (Depends-on): Add restrict.
9564
9565 2006-01-09  Simon Josefsson  <jas@extundo.com>
9566
9567         * modules/gc-rijndael-tests (License): Put under LGPL.
9568
9569         * modules/gc-des-tests (License): Likewise.
9570
9571         * modules/gc-arcfour-tests (License): Likewise.
9572
9573         * modules/gc-arctwo-tests (License): Likewise.
9574
9575         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
9576
9577         * modules/gc-hmac-sha1-tests (Files): Likewise.
9578
9579         * modules/gc-hmac-md5-tests (License): Likewise.
9580
9581         * modules/gc-sha1-tests (License): Likewise.
9582
9583         * modules/gc-md5-tests (License): Likewise.
9584
9585         * modules/gc-md4-tests (License): Likewise.
9586
9587         * modules/gc-md2-tests (License): Likewise.
9588
9589         * modules/gc-tests (License): Likewise.
9590
9591         * modules/des-tests (License): Likewise.
9592
9593         * modules/md4-tests (License): Likewise.
9594
9595         * modules/md2-tests (License): Likewise.
9596
9597 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
9598
9599         Sync from coreutils:
9600
9601         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
9602         * modules/lib-ignore: New file.
9603         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
9604         chdir-safer.m4, lchmod.m4.
9605         * modules/openat: Add mkdirat.c, openat-priv.h.
9606
9607 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
9608
9609         Sync from coreutils.
9610         * m4/lib-ignore.m4: New file.
9611         * m4/lchmod.m4: New file.
9612
9613 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
9614
9615         Sync from coreutils.
9616         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
9617         for write access: POSIX says that must fail.
9618         * lib/fts.c (diropen): Likewise.
9619         * lib/save-cwd.c (save_cwd): Likewise.
9620         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
9621         well, for minor improvements on hosts that lack O_DIRECTORY.
9622         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
9623         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
9624         Fall back on chown if open failed with EACCES.
9625
9626         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
9627         Report an error at compile-time if only a 1-second nominal clock
9628         resolution is found.
9629
9630         * lib/lchmod.h: New file.
9631         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
9632         (make_dir_parents): Use lchown rather than chown, and
9633         lchmod rather than chmod.
9634
9635         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
9636         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
9637         "proc" reported by n0dalus.
9638
9639         * lib/mountlist.c: Include <limits.h>.
9640         (dev_from_mount_options)
9641         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
9642         New function.  It no longer assumes "dev=" has the System V meaning
9643         on Linux (since it doesn't).  It also parses "dev=" more carefully.
9644         (read_file_system_list)
9645         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
9646         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
9647         dev= in that case.
9648
9649         * lib/posixtm.h (PDS_PRE_2000): New macro.
9650         * lib/posixtm.c (year): Arg is now syntax_bits rather than
9651         allow_century.  All usages changed.  Reject dates outside the range
9652         1969-1999 if PDS_PRE_2000 is used.
9653
9654 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
9655
9656         Sync from coreutils.
9657         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
9658         (Time of day items): Mention the possibility of leap seconds.
9659         Problem reported by Dr. David Alan Gilbert.
9660
9661 2006-01-09  Jim Meyering  <jim@meyering.net>
9662
9663         Sync from coreutils.
9664
9665         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
9666
9667         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
9668
9669         * lib/modechange.c (mode_compile): Reject an invalid mode string
9670         that starts with an octal digit.  From Andreas Gruenbacher.
9671
9672         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
9673         and dup to open_safer and dup_safer, respectively.
9674         (openat_permissive): Fix typo in comment.
9675
9676         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
9677         "gettext.h"; either no longer needed or are guaranteed by openat.h.
9678         (_): Remove; no longer needed.
9679         (openat): Renamed from rpl_openat; no need for rpl_openat
9680         since openat.h renames openat for us.
9681         Replace most of the body with a call to openat_permissive,
9682         to avoid duplicate code.
9683         Port to (probably hypothetical) environments were mode_t is
9684         wider than int.
9685         (openat_permissive): Require mode arg, so that we can check
9686         types better.  Put it just after flags.  Change cwd failure
9687         indicator from pointer-to-bool to pointer-to-errno-value.
9688         All callers changed.
9689         Invoke openat_save_fail and/or openat_restore_fail if
9690         cwd_errno is null, so that openat can call us.
9691         (openat_permissive, fdopendir, fstatat, unlinkat):
9692         Simplify errno handling to avoid some duplicate code,
9693         as it's OK to set errno on success.
9694         * lib/openat.h: Revamp code so that function macros depend on
9695         __OPENAT_PREFIX only, not also on AT_FDCWD.
9696         (openat_ro): Remove.  Caller changed to use openat_permissive.
9697         (openat_permissive): Now a macro, if not a function.
9698         (openat_restore_fail, openat_save_fail): Now always functions,
9699         since mkdirat needs them even if __OPENAT_PREFIX is defined.
9700
9701         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
9702         and openat.c.
9703         * lib/mkdirat.c: Include openat-priv.h.
9704         Remove definitions of macros defined therein.
9705         * lib/openat.c: Likewise.
9706
9707         * lib/mkdirat.c (mkdirat): New file and function.
9708         * lib/openat.h (mkdirat): Declare.
9709
9710         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
9711
9712         * lib/openat.h (openat_permissive): Declare.
9713         (openat_ro): Define.
9714
9715         * lib/openat.c (EXPECTED_ERRNO): New macro.
9716         (openat_permissive): New function -- used in remove.c rewrite.
9717         (all functions): Set errno just before returning, only if there
9718         was an actual failure.
9719         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
9720
9721         Emulate openat-family functions using Linux's procfs, if possible.
9722         Idea and some code based on Ulrich Drepper's glibc changes.
9723
9724         * lib/openat.c: (BUILD_PROC_NAME): New macro.
9725         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
9726         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
9727         before falling back on save_cwd and restore_cwd.
9728         (fdopendir, fstatat, unlinkat): Likewise.
9729
9730         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
9731         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
9732
9733         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
9734         as second argument to va_arg.  Otherwise, some versions of gcc
9735         warn that `if this code is reached, the program will abort'.
9736
9737 2006-01-09  Jim Meyering  <jim@meyering.net>
9738
9739         Sync from coreutils.
9740         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
9741         Require openat-priv.h.
9742
9743 2006-01-09  Bruno Haible  <bruno@clisp.org>
9744
9745         * modules/strnlen (Include): Use strnlen.h.
9746
9747 2006-01-09  Bruno Haible  <bruno@clisp.org>
9748
9749         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
9750
9751 2006-01-09  Bruno Haible  <bruno@clisp.org>
9752
9753         * lib/sysexit_.h (EX_OK): New macro.
9754         Suggested by Martin Lambers <marlam@marlam.de>.
9755
9756 2006-01-09  Bruno Haible  <bruno@clisp.org>
9757
9758         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
9759         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
9760
9761 2006-01-09  Bruno Haible  <bruno@clisp.org>
9762
9763         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
9764         numbers.
9765
9766 2006-01-09  Bruno Haible  <bruno@clisp.org>
9767
9768         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
9769         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
9770         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
9771         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
9772
9773 2006-01-09  Bruno Haible  <bruno@clisp.org>
9774
9775         * build-aux/javacomp.sh.in: New file, moved from lib/.
9776         * modules/javacomp-script (Files): Update.
9777         (configure.ac): Add AC_CONFIG_FILES invocation.
9778         (EXTRA_DIST): Remove variable.
9779
9780         * build-aux/javaexec.sh.in: New file, moved from lib/.
9781         * modules/javaexec (Files): Update.
9782         (configure.ac): Add AC_CONFIG_FILES invocation.
9783         (EXTRA_DIST): Remove javaexec.sh.in.
9784
9785         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
9786         * modules/csharpcomp-script (Files): Update.
9787         (configure.ac): Add AC_CONFIG_FILES invocation.
9788         (EXTRA_DIST): Remove variable.
9789
9790         * build-aux/csharpexec.sh.in: New file, moved from lib/.
9791         * modules/csharpexec (Files): Update.
9792         (configure.ac): Add AC_CONFIG_FILES invocation.
9793         (EXTRA_DIST): Remove csharpexec.sh.in.
9794
9795 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
9796
9797         Sync from coreutils.
9798
9799         Add POSIX ACL support
9800         * lib/acl.h (copy_acl, set_acl): Add declarations.
9801         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
9802         systems other than Linux.
9803         (chmod_or_fchmod): New function: use fchmod when possible,
9804         and chmod otherwise.
9805         (file_has_acl): Add a POSIX ACL implementation, with a
9806         Linux-specific subcase.
9807         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
9808         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
9809         acls are unsupported.
9810         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
9811         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
9812         are unsupported.
9813
9814 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
9815
9816         Sync from coreutils.
9817         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
9818
9819 2006-01-07  Bruno Haible  <bruno@clisp.org>
9820
9821         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
9822         gl_EARLY.
9823
9824 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
9825
9826         * lib/strftime.c (tzname): Don't declare if it is already #defined.
9827         Problem reported for Mingw by Mark Junker.
9828
9829 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
9830
9831         * README: Gnulib normally doesn't generate a tarball.
9832
9833 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
9834
9835         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
9836         long int, not int, for nanosecond counts, so that people who are
9837         used to POSIX struct timespec won't be surprised.  Reported by Jim
9838         Meyering.
9839
9840 2005-12-28  Bruno Haible  <bruno@clisp.org>
9841
9842         * build-aux/config.rpath: Update from GNU gettext.
9843
9844 2005-12-16  Jim Meyering  <jim@meyering.net>
9845
9846         * modules/fprintftime: New module.
9847         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
9848
9849 2005-12-16  Jim Meyering  <jim@meyering.net>
9850
9851         * m4/fprintftime.m4: New file.
9852
9853 2005-12-16  Jim Meyering  <jim@meyering.net>
9854
9855         * lib/fprintftime.c, lib/fprintftime.h: New files.
9856
9857 2005-12-15  Simon Josefsson  <jas@extundo.com>
9858
9859         * modules/socklen (configure.ac): Fix M4 macro name, to align with
9860         new m4/socklen.m4.
9861
9862 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
9863
9864         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
9865         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
9866
9867 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
9868
9869         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
9870         * lib/argp-help.c (fill_in_uparams): Check if the constructed
9871         struct uparams is valid. Fall back to the default values if it is
9872         not.
9873
9874 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
9875
9876         * modules/argp (Files): Add argp-pin.c
9877         (Depends-on): dirname
9878         (lib_SOURCES): Add argp-pin.c
9879
9880 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
9881
9882         * m4/argp.m4:  Check if program_invocation_name and
9883         program_invocation_short_name are declared and define appropriate
9884         macros if they are not.
9885
9886 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
9887
9888         * lib/argp-help.c (__argp_base_name): New function
9889         (__argp_short_program_name): Rewrite using __argp_base_name
9890         * lib/argp-namefrob.h: Define program_invocation_name and
9891         program_invocation_short_name if requested
9892         (__argp_base_name): Add prototype
9893         * lib/argp-parse.c (argp_def): Use gettext wrappers
9894         (argp_default_parser): Use __argp_base_name
9895         * lib/argp-pin.c: New file. Defines program_invocation_name and
9896         program_invocation_short_name on systems that lack them.
9897
9898 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
9899
9900         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
9901         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
9902         porting problem reported by Georg Schwarz in
9903         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
9904
9905 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
9906
9907         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
9908         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
9909         porting problem reported by Georg Schwarz in
9910         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
9911
9912 2005-12-05  Bruno Haible  <bruno@clisp.org>
9913
9914         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
9915         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
9916         Reported by Mark Junker <mjscod@gmx.de>.
9917
9918 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
9919
9920         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
9921         Use implementation from Albert Chin, with some
9922         comments/corrections by Stepan Kasal and myself.
9923
9924 2005-12-02  Bruno Haible  <bruno@clisp.org>
9925
9926         * gnulib-tool (func_import): Accept GPLed build tool modules when
9927         --lgpl is given.
9928         * modules/csharpcomp-script: New file.
9929         * modules/csharpcomp: Depend on it.
9930         * modules/javacomp-script: New file.
9931         * modules/javacomp: Depend on it.
9932         Suggested by Simon Josefsson.
9933
9934 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
9935
9936         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
9937         statement, to work around an HP-UX 10.20 compiler bug reported by
9938         Peter O'Gorman.
9939
9940 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
9941
9942         * modules/savedir (Depends-on): Add openat.
9943
9944 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
9945
9946         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
9947         (uintmax_t) [defined uintmax_t]: Do not declare.
9948         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
9949         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
9950         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
9951         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
9952         sake of portability to weird hosts that C allows (though we don't
9953         know of any practical examples).
9954
9955         * lib/savedir.h (fdsavedir): New decl.
9956         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
9957         contains most of the former guts of savedir.
9958         (savedir): Use savedirstream.
9959         Include "openat.h".
9960
9961 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
9962
9963         * modules/obstack (Files): Add m4/ulonglong.m4.
9964         Problem reported by Davide Angelocola.
9965
9966 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
9967
9968         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
9969         coreutils no longer futzes with rounding modes.
9970
9971 2005-11-14  Jim Meyering  <jim@meyering.net>
9972
9973         * lib/mkstemp-safer.c: Include <config.h>, required for possible
9974         replacement of mkstemp.
9975
9976 2005-11-10  Simon Josefsson  <jas@extundo.com>
9977
9978         * lib/readline.c: Remove EOL.
9979
9980 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
9981
9982         * modules/gethrxtime (Depends-on): Add gettime.
9983
9984 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
9985
9986         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
9987         or gettimeofday; no longer needed.
9988
9989 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
9990
9991         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
9992         time business.
9993         (gethrxtime) [! (HAVE_NANOUPTIME
9994         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
9995         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
9996         our own approximation.
9997
9998 2005-11-08  Eric Blake  <ebb9@byu.net>
9999
10000         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
10001
10002 2005-11-08  Eric Blake  <ebb9@byu.net>
10003
10004         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
10005
10006 2005-11-04  Bruno Haible  <bruno@clisp.org>
10007
10008         * gnulib-tool: Implement --update mode.
10009
10010 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
10011
10012         Fix porting problem reported by Theodoros V. Kalamatianos.
10013         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
10014         Don't assume that futimes failing means we must fail.
10015
10016 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
10017
10018         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
10019         variables to suggest the intended function of the PATH_MAX check.
10020
10021 2005-10-30  Kean Johnston  <jkj@sco.com>
10022
10023         Trivial changes to support SCO systems.
10024         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
10025         as PATH_MAX.
10026         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
10027         where __ptr is null when no I/O is pending.
10028
10029 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
10030
10031         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
10032         leave errno alone.  Problem reported by Dmitry V. Levin.
10033
10034 2005-10-28  Simon Josefsson  <jas@extundo.com>
10035
10036         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
10037         Test more.
10038
10039         * tests/test-gc-md2.c, tests/test-md2.c: New files.
10040
10041         * modules/md2, modules/md2-tests: New files.
10042
10043 2005-10-28  Simon Josefsson  <jas@extundo.com>
10044
10045         * m4/inet_ntop.m4: More tests.
10046
10047         * m4/gc-md2.m4, md2.m4: New file.
10048
10049 2005-10-28  Simon Josefsson  <jas@extundo.com>
10050
10051         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
10052         "restrict" keywords, as per POSIX.  Protect the function
10053         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
10054         Don't use K&R prototypes.  Check the sprintf return values.
10055         Re-define EAFNOSUPPORT if not present.  Indent.
10056
10057         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
10058         suggested by Bruno Haible <bruno@clisp.org>.
10059
10060         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
10061
10062         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
10063
10064         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
10065         libgcrypt).
10066
10067         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
10068
10069         * lib/md2.h, lib/md2.c: New files.
10070
10071 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
10072
10073         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
10074         errno alone.  Problem reported by Frederic Jolliton.
10075
10076 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
10077
10078         * modules/verify (License): Change from GPL to LGPL.  This is a
10079         tiny module and there are apparently near-equivalents that are
10080         under the BSD license.
10081
10082 2005-10-24  Simon Josefsson  <jas@extundo.com>
10083
10084         * modules/sha1: Relicense to LGPL.
10085
10086 2005-10-24  Simon Josefsson  <jas@extundo.com>
10087
10088         * lib/md4.h: Shrink buffer size, now that we changed the type.
10089
10090 2005-10-23  Simon Josefsson  <jas@extundo.com>
10091
10092         * gnulib-tool (func_import): Fix --tests-base.
10093
10094 2005-10-22  Simon Josefsson  <jas@extundo.com>
10095
10096         * modules/arcfour (Depends-on): Need stdint.
10097
10098 2005-10-22  Simon Josefsson  <jas@extundo.com>
10099
10100         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
10101         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
10102
10103 2005-10-22  Simon Josefsson  <jas@extundo.com>
10104
10105         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
10106         suggested by Bruno Haible <bruno@clisp.org>.
10107
10108 2005-10-22  Simon Josefsson  <jas@extundo.com>
10109
10110         * lib/crc.h: Include stddef.h, for size_t.
10111
10112 2005-10-22  Simon Josefsson  <jas@extundo.com>
10113
10114         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
10115         arcfour_context struct (simplify test vector testing in GNU
10116         Shishi).
10117
10118 2005-10-21  Simon Josefsson  <jas@extundo.com>
10119
10120         * modules/des, modules/des-tests: New files.
10121
10122         * modules/gc-des, modules/gc-des-tests: New files.
10123
10124         * tests/test-des.c, tests/test-gc-des.c: New file.
10125
10126 2005-10-21  Simon Josefsson  <jas@extundo.com>
10127
10128         * modules/arctwo, modules/arctwo-tests: New files.
10129
10130         * tests/test-arctwo.c: New file.
10131
10132         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
10133
10134         * tests/test-gc-arctwo.c: New file.
10135
10136 2005-10-21  Simon Josefsson  <jas@extundo.com>
10137
10138         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
10139         Bruno Haible <bruno@clisp.org>.
10140
10141         * m4/gc-des.m4: New file.
10142
10143 2005-10-21  Simon Josefsson  <jas@extundo.com>
10144
10145         * m4/arctwo.m4: New file.
10146
10147         * m4/gc-arctwo.m4: New file.
10148
10149 2005-10-21  Simon Josefsson  <jas@extundo.com>
10150
10151         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
10152         block.
10153
10154 2005-10-21  Simon Josefsson  <jas@extundo.com>
10155
10156         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
10157         <bruno@clisp.org>.
10158
10159         * lib/hmac-sha1.c (hmac_sha1): Likewise.
10160
10161         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
10162         Bruno Haible <bruno@clisp.org>.
10163
10164         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
10165         <bruno@clisp.org>.
10166
10167 2005-10-21  Simon Josefsson  <jas@extundo.com>
10168
10169         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
10170
10171 2005-10-21  Simon Josefsson  <jas@extundo.com>
10172
10173         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
10174
10175 2005-10-21  Simon Josefsson  <jas@extundo.com>
10176
10177         * lib/des.h, lib/des.c: New files.
10178
10179         * lib/gc-gnulib.c: Support DES.c
10180
10181 2005-10-21  Simon Josefsson  <jas@extundo.com>
10182
10183         * lib/arctwo.h, lib/arctwo.c: New files.
10184
10185         * lib/gc-gnulib.c: Support ARCTWO.
10186
10187 2005-10-21  Simon Josefsson  <jas@extundo.com>
10188
10189         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
10190         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10191
10192 2005-10-21  Simon Josefsson  <jas@extundo.com>
10193
10194         * gnulib-tool (func_import, func_create_testdir): Define automake
10195         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
10196         Makefile.am snippet),
10197         suggested by Bruno Haible <bruno@clisp.org>.
10198
10199         * modules/gc (Makefile.am): Use it.
10200
10201 2005-10-21  Bruno Haible  <bruno@clisp.org>
10202
10203         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
10204         patch.
10205
10206 2005-10-19  Simon Josefsson  <jas@extundo.com>
10207
10208         * tests/test-gc-rijndael.c: New file.
10209
10210         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
10211
10212 2005-10-19  Simon Josefsson  <jas@extundo.com>
10213
10214         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
10215         interface too.
10216
10217 2005-10-19  Simon Josefsson  <jas@extundo.com>
10218
10219         * tests/test-gc-arcfour.c: New file.
10220
10221         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
10222
10223 2005-10-19  Simon Josefsson  <jas@extundo.com>
10224
10225         * modules/gc-md4, modules/gc-md4-tests: New file.
10226
10227         * tests/test-gc-md4.c: New file.
10228
10229 2005-10-19  Simon Josefsson  <jas@extundo.com>
10230
10231         * m4/gc-md4.m4: New file.
10232
10233 2005-10-19  Simon Josefsson  <jas@extundo.com>
10234
10235         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
10236         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
10237         <kasal@ucw.cz>.
10238
10239 2005-10-19  Simon Josefsson  <jas@extundo.com>
10240
10241         * m4/gc-arcfour.m4: New file.
10242
10243         * m4/gc-rijndael.m4: New file.
10244
10245 2005-10-19  Simon Josefsson  <jas@extundo.com>
10246
10247         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
10248
10249 2005-10-19  Simon Josefsson  <jas@extundo.com>
10250
10251         * lib/gc-gnulib.c: Support ARCFOUR.
10252
10253 2005-10-19  Simon Josefsson  <jas@extundo.com>
10254
10255         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
10256         support.
10257
10258         * lib/gc.h: Add ECB enum type.
10259
10260         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
10261
10262 2005-10-18  Simon Josefsson  <jas@extundo.com>
10263
10264         * tests/test-md5.c: New file.
10265
10266         * modules/md5-tests: New file.
10267
10268 2005-10-18  Simon Josefsson  <jas@extundo.com>
10269
10270         * tests/test-md4.c: New file.
10271
10272         * modules/md4, modules/md4-tests: New files.
10273
10274 2005-10-18  Simon Josefsson  <jas@extundo.com>
10275
10276         * m4/md4.m4: New file.
10277
10278 2005-10-18  Simon Josefsson  <jas@extundo.com>
10279
10280         * lib/md4.h, lib/md4.c: New files, based on md5.?.
10281
10282 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
10283
10284         * gnulib-tool (func_create_testdir): Omit the second check whether
10285         BUILT_SOURCES in nonempty.
10286
10287 2005-10-17  Simon Josefsson  <jas@extundo.com>
10288
10289         * tests/test-rijndael.c: New file.
10290
10291 2005-10-17  Simon Josefsson  <jas@extundo.com>
10292
10293         * modules/sha1: Depend on stdint instead of md5.
10294
10295         * modules/md5: Depend on stdint, remove uint32_t.
10296
10297 2005-10-17  Simon Josefsson  <jas@extundo.com>
10298
10299         * modules/gc-sha1-tests: New file.
10300
10301         * tests/test-gc-sha1.c: New file.
10302
10303 2005-10-17  Simon Josefsson  <jas@extundo.com>
10304
10305         * m4/md5.m4: Remove call to uint32_t.m4.
10306
10307 2005-10-17  Simon Josefsson  <jas@extundo.com>
10308
10309         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
10310
10311         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
10312         md5.h.
10313
10314         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
10315
10316         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
10317
10318 2005-10-17  Simon Josefsson  <jas@extundo.com>
10319
10320         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
10321
10322 2005-10-17  Simon Josefsson  <jas@extundo.com>
10323
10324         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
10325
10326 2005-10-17  Simon Josefsson  <jas@extundo.com>
10327
10328         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
10329
10330         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
10331
10332 2005-10-17  Bruno Haible  <bruno@clisp.org>
10333
10334         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
10335         that it can also be used in a test.
10336
10337 2005-10-16  Bruno Haible  <bruno@clisp.org>
10338
10339         * gnulib-tool (func_emit_tests_Makefile_am): Also define
10340         TESTS_ENVIRONMENT, so that individual tests can augment it.
10341
10342         * gnulib-tool (func_create_testdir): Use an intermediate target for
10343         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
10344         macros, like $(ALLOCA_H), which cannot be passed through the command
10345         line.
10346
10347 2005-10-15  Simon Josefsson  <jas@extundo.com>
10348
10349         * modules/rijndael-tests: New file.
10350
10351         * modules/rijndael: New file.
10352
10353 2005-10-15  Simon Josefsson  <jas@extundo.com>
10354
10355         * m4/rijndael.m4: New file.
10356
10357 2005-10-15  Simon Josefsson  <jas@extundo.com>
10358
10359         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
10360
10361         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
10362
10363 2005-10-14  Simon Josefsson  <jas@extundo.com>
10364
10365         * tests/test-arcfour.c: New file.
10366
10367         * modules/arcfour, modules/arcfour-tests: New files.
10368
10369 2005-10-14  Simon Josefsson  <jas@extundo.com>
10370
10371         * m4/arcfour.m4: New file.
10372
10373 2005-10-14  Simon Josefsson  <jas@extundo.com>
10374
10375         * lib/arcfour.h, lib/arcfour.c: New files.
10376
10377 2005-10-14  Roland McGrath  <roland@redhat.com>
10378
10379         Import from libc.  [BZ #1331]
10380         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
10381         macro argument.
10382         Reported by Matej Vela <vela@debian.org>.
10383
10384 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
10385
10386         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
10387         include <wchar.h>; no longer needed.
10388
10389 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
10390
10391         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
10392
10393 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
10394         and  Ulrich Drepper  <drepper@redhat.com>
10395
10396         Import from libc.
10397         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
10398         instead of inline stream orientation test and two separate
10399         function calls.  Pay no attention to USE_IN_LIBIO.
10400
10401 2005-10-13  Simon Josefsson  <jas@extundo.com>
10402
10403         * modules/gc-hmac-md5-tests: New file.
10404
10405         * tests/test-gc-hmac-sha1.c: New file.
10406
10407         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
10408
10409         * modules/gc-hmac-md5-tests: New file.
10410
10411         * tests/test-gc-md5.c: New file.
10412
10413         * modules/gc-md5-tests: New file.
10414
10415 2005-10-13  Simon Josefsson  <jas@extundo.com>
10416
10417         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
10418         Move memory allocation outside of loop.
10419
10420 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
10421
10422         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
10423         intermediate directory is in a read-only file system.  Problem
10424         reported by Eric Blake.
10425
10426 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
10427
10428         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
10429
10430 2005-10-12  Simon Josefsson  <jas@extundo.com>
10431
10432         * tests/test-hmac-sha1.c: New file.
10433
10434         * modules/hmac-sha1-tests: New file.
10435
10436         * modules/hmac-sha1: New file.
10437
10438 2005-10-12  Simon Josefsson  <jas@extundo.com>
10439
10440         * modules/gc-sha1: New file.
10441
10442 2005-10-12  Simon Josefsson  <jas@extundo.com>
10443
10444         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
10445
10446         * tests/test-gc-pbkdf2-sha1.c: New file.
10447
10448 2005-10-12  Simon Josefsson  <jas@extundo.com>
10449
10450         * modules/gc-md5, modules/gc-hmac-md5: New files.
10451
10452         * modules/gc (Files): Remove md5, memxor and hmac files.
10453
10454 2005-10-12  Simon Josefsson  <jas@extundo.com>
10455
10456         * m4/gc-pbkdf2-sha1.m4: New file.
10457
10458         * m4/gc-hmac-sha1.m4: New file.
10459
10460         * m4/gc-sha1: New file.
10461
10462         * m4/hmac-sha1.m4: New file.
10463
10464 2005-10-12  Simon Josefsson  <jas@extundo.com>
10465
10466         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
10467
10468         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
10469
10470 2005-10-12  Simon Josefsson  <jas@extundo.com>
10471
10472         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
10473         suggested by Bruno Haible <bruno@clisp.org>.
10474
10475 2005-10-12  Simon Josefsson  <jas@extundo.com>
10476
10477         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
10478
10479 2005-10-12  Simon Josefsson  <jas@extundo.com>
10480
10481         * lib/gc-pbkdf2-sha1.c: New file.
10482
10483         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
10484
10485 2005-10-12  Simon Josefsson  <jas@extundo.com>
10486
10487         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
10488
10489         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
10490
10491 2005-10-12  Simon Josefsson  <jas@extundo.com>
10492
10493         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
10494         GC_USE_HMAC_MD5, respectively.
10495
10496         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
10497         (gc_md5): Fix typo.
10498
10499         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
10500
10501         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
10502
10503         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
10504
10505 2005-10-12  Bruno Haible  <bruno@clisp.org>
10506
10507         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
10508         Reported by Stepan Kasal <kasal@ucw.cz>.
10509
10510 2005-10-11  Simon Josefsson  <jas@extundo.com>
10511
10512         * tests/test-crc.c: New file.
10513
10514         * modules/crc, modules/crc-tests: New files.
10515
10516 2005-10-11  Simon Josefsson  <jas@extundo.com>
10517
10518         * m4/crc.m4: New file.
10519
10520 2005-10-11  Simon Josefsson  <jas@extundo.com>
10521
10522         * lib/gc.h: Add gc_hash and gc_hash_buffer.
10523
10524         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
10525
10526         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
10527
10528 2005-10-11  Simon Josefsson  <jas@extundo.com>
10529
10530         * lib/crc.h, lib/crc.c: New files.
10531
10532         * lib/gc.h (gc_hash_buffer): Add doc.
10533
10534 2005-10-11  Bruno Haible  <bruno@clisp.org>
10535
10536         * modules/c-strcasestr: New file.
10537         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
10538
10539 2005-10-11  Bruno Haible  <bruno@clisp.org>
10540
10541         * modules/c-strcase: New file.
10542         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
10543
10544 2005-10-11  Bruno Haible  <bruno@clisp.org>
10545
10546         * lib/strcasecmp.c: Include limits.h.
10547         (strcasecmp): Avoid integer overflow on exotic platforms.
10548         * lib/strncasecmp.c: Include limits.h.
10549         (strncasecmp): Avoid integer overflow on exotic platforms.
10550         Reported by Paul Eggert.
10551
10552 2005-10-11  Bruno Haible  <bruno@clisp.org>
10553
10554         * lib/c-strcasestr.h: New file, from GNU gettext.
10555         * lib/c-strcasestr.c: New file, from GNU gettext.
10556
10557 2005-10-11  Bruno Haible  <bruno@clisp.org>
10558
10559         * lib/c-strcase.h: New file, from GNU gettext.
10560         * lib/c-strcasecmp.c: New file, from GNU gettext.
10561         * lib/c-strncasecmp.c: New file, from GNU gettext.
10562
10563 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
10564
10565         * modules/mempcpy (License): GPL -> LGPL.
10566         * modules/strchrnul (License): Likewise.
10567         * modules/sysexits (License): Likewise.
10568
10569 2005-10-08  Simon Josefsson  <jas@extundo.com>
10570
10571         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
10572
10573 2005-10-07  Simon Josefsson  <jas@extundo.com>
10574
10575         * m4/memxor.m4: Remove gl_C_RESTRICT call.
10576
10577 2005-10-06  Simon Josefsson  <jas@extundo.com>
10578
10579         * tests/test-hmac-md5.c: New file.
10580
10581         * modules/hmac-md5-tests: New file.
10582
10583         * modules/hmac-md5: New file.
10584
10585 2005-10-06  Simon Josefsson  <jas@extundo.com>
10586
10587         * m4/hmac-md5.m4: New file.
10588
10589         * m4/memxor.m4: Require gl_C_RESTRICT.
10590
10591 2005-10-06  Simon Josefsson  <jas@extundo.com>
10592
10593         * lib/memxor.c (memxor): Avoid casts and warnings.
10594
10595 2005-10-06  Simon Josefsson  <jas@extundo.com>
10596
10597         * lib/hmac-md5.c: New file.
10598
10599         * lib/hmac.h: New file.
10600
10601 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
10602
10603         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
10604         promotes to int, not unsigned int, to catch the AIX 5.3
10605         compiler bug.
10606
10607 2005-10-05  Simon Josefsson  <jas@extundo.com>
10608
10609         * modules/memxor: New file.
10610
10611         * modules/iconv (Files): Move config.rpath to havelib, it is used
10612         there.
10613
10614         * modules/havelib (Files): Add config.rpath.
10615
10616 2005-10-05  Simon Josefsson  <jas@extundo.com>
10617
10618         * m4/memxor.m4: New file.
10619
10620 2005-10-05  Simon Josefsson  <jas@extundo.com>
10621
10622         * lib/memxor.c (memxor): Fix compiler error.
10623
10624         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
10625         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
10626
10627         * lib/memxor.h, lib/memxor.c: New files.
10628
10629         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
10630         we assume all systems have it, suggested by Jim Meyering
10631         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
10632         any systems lack sys/socket.h; mingw32 is known to lack it, but we
10633         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
10634         same reasons.
10635
10636 2005-10-05  Simon Josefsson  <jas@extundo.com>
10637
10638         * config/srclist.txt: Add glibc bug 1423 for md5.h.
10639
10640 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
10641
10642         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
10643         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
10644         needed, since the source code now assumes these .h files.
10645
10646 2005-10-05  Derek Price  <derek@ximbiot.com>
10647
10648         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
10649
10650 2005-10-05  Bruno Haible  <bruno@clisp.org>
10651
10652         * modules/stdint (License): Change to LGPL.
10653
10654 2005-10-04  Simon Josefsson  <jas@extundo.com>
10655
10656         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
10657         D. Baushke" <mdb@gnu.org>.
10658
10659 2005-10-04  Bruno Haible  <bruno@clisp.org>
10660
10661         * lib/verify.h (verify_true): Provide alternative definition for C++.
10662
10663 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
10664
10665         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
10666         (SSIZE_MAX): New macro, if not already defined.
10667         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
10668         than 2 GiB.
10669
10670 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
10671
10672         Sync from coreutils.
10673         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
10674         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
10675         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
10676         ULLONG_MAX doesn't work with 2.7.2.1.
10677
10678 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
10679
10680         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
10681         From Ben Pfaff.
10682
10683         * modules/exclude (Depends-on): Depend on verify.
10684         * modules/strtoimax (Depends-on): Likewise.
10685         * modules/utimecmp (Depends-on): Likewise.
10686
10687 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
10688
10689         * lib/exclude.c: Include verify.h.
10690         (verify): Remove.  All callers changed to use verify.h's version.
10691         * lib/strtoimax.c: Likewise.
10692         * lib/utimecmp.c: Likewis.e
10693
10694         Sync from coreutils.
10695         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
10696         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
10697         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
10698         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
10699         bother returning ENOSYS if settimeofday or stime fails; just let
10700         them return whatever errno they want to return.
10701         * lib/utimens.c: Include unistd.h, for dup2.
10702         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
10703         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
10704
10705 2005-10-02  Jim Meyering  <jim@meyering.net>
10706
10707         Sync from coreutils.
10708         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
10709         from glibc-2.2.5 that fails for read-only files.
10710
10711 2005-10-02  Jim Meyering  <jim@meyering.net>
10712
10713         Sync from coreutils.
10714         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
10715         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
10716         `#if HAVE_CONFIG_H'.
10717         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
10718         Remove AT_FDCWD test.
10719         Do not consume the fd unless successful.
10720         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
10721         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
10722         block, so that we don't even try to compile it if settimeofday is
10723         available.  This works around a compilation failure on OSF1 V5.1,
10724         due to stime requiring a `long int*' while tv_sec is `int'.
10725
10726 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
10727
10728         Sync from coreutils.
10729         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
10730         against `yes', rather than just testing for nonempty.
10731
10732 2005-10-01  Simon Josefsson  <jas@extundo.com>
10733
10734         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
10735         and Darwin.
10736
10737         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
10738         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
10739         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
10740         freeaddrinfo and gai_strerror are declared by the POSIX headers.
10741         Check if struct addrinfo is declared.
10742
10743 2005-10-01  Simon Josefsson  <jas@extundo.com>
10744
10745         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
10746         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
10747         AI_* and EAI_* definitions.  Protect function declarations.
10748
10749 2005-10-01  Jim Meyering  <jim@meyering.net>
10750
10751         Sync from coreutils.
10752
10753         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
10754         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
10755         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
10756         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
10757         in the inet and nsl libraries.  Required on Solaris 5.7.
10758
10759 2005-10-01  Jim Meyering  <jim@meyering.net>
10760
10761         Sync from coreutils.
10762         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
10763         in the inet and nsl libraries.  Required on Solaris 5.7.
10764
10765 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
10766
10767         * lib/getdelim.c (getdelim): Remove unused variables.
10768
10769 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
10770
10771         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
10772         so that the code works even with ancient cpp.  Portability problem
10773         with GCC 2.7.2.1 reported by Thomas M.Ott.
10774
10775 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
10776
10777         * modules/regex (Depends-on): Add strcase.
10778
10779         * modules/gethostname (Licence): Change from GPL to LGPL, since
10780         gethostname.c is a trivial implementation of a standard library
10781         function.
10782         * modules/poll (License): Change from GPL to LGPL, since it's
10783         derived from LGPL code.
10784
10785 2005-09-27  Jim Meyering  <jim@meyering.net>
10786
10787         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
10788         HAVE_CONFIG_H.
10789
10790         * lib/intprops.h (signed_type_or_expr__): Define.
10791         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
10792         for unsigned types.
10793
10794 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
10795
10796         * lib/verify.h (verify_expr): Remove, replacing with:
10797         (verify_true): New macro that returns true instead of void.
10798         (verify_type__): Remove.
10799         (verify): Use verify_true rather than verify_type__.
10800
10801 2005-09-26  Bruno Haible  <bruno@clisp.org>
10802
10803         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
10804         is necessary.
10805         (lib_SOURCES): Remove mbchar.c.
10806         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
10807         (Files): Add m4/mbrtowc.m4.
10808         * modules/mbiter: Likewise.
10809         * modules/mbuiter: Likewise.
10810
10811 2005-09-26  Bruno Haible  <bruno@clisp.org>
10812
10813         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
10814         compile mbchar.c if they are not both present.
10815         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
10816         * m4/mbiter.m4 (gl_MBITER): Likewise.
10817         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
10818         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
10819         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
10820
10821 2005-09-25  Jim Meyering  <jim@meyering.net>
10822
10823         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
10824         also uses socklen_t.
10825
10826 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
10827
10828         * lib/utimens.c (ENOSYS): Define if not already defined.
10829         (futimens): Support having a null PATH if the file descriptor
10830         is nonnegative.
10831
10832         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
10833         Remove.
10834         (__attribute): Define to empty unless GCC 3.1 or later.
10835         This works around a core dump on OpenBSD 3.4, which has GCC
10836         2.95.3, which dumps core when given __attribute__(()).  It also
10837         simplifies other tests, since we really don't want to bother with
10838         worrying about which ancient version of GCC supported what.
10839         Original problem reported by Yoann Vandoorselaere, with part of
10840         the fix suggested by Derek Price.
10841
10842 2005-09-24  Jim Meyering  <jim@meyering.net>
10843
10844         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
10845         so we can once again use a positive bitfield width of 1 -- now we
10846         don't have to explain why we were using a bitfield width of 2.
10847
10848 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
10849
10850         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
10851         and similarly for the other external symbols.  Problem reported
10852         by James Gallager.
10853
10854         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
10855         bug reported by Jim Meyering.
10856
10857         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
10858         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
10859         not needed, since socklen is a prerequisite module.
10860
10861 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
10862
10863         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
10864         Problem reported by Eric Blake.
10865         (getaddrinfo): Initialize se so that it's not garbage.
10866         Redo internal storage allocation so that it doesn't make unportable
10867         assumptions about alignment.
10868         Fix a memory leak.
10869
10870         * lib/utimens.c (futimens): Use futimesat if available.
10871         Prefer it to futimes since it doesn't have the futimes bug.
10872
10873         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
10874         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
10875         Instead, declare a function that returns a pointer to an array,
10876         and use verify_type__ to declare the size of the array.
10877         Problem and germ of a solution reported by Bruno Haible.
10878         (verify_type__): Use 2, not 1, for bitfield size, to avoid
10879         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
10880
10881 2005-09-23  Jim Meyering  <jim@meyering.net>
10882
10883         Sync from coreutils.
10884         Correct build failure (socklen_t not defined) on at least
10885         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
10886         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
10887
10888 2005-09-23  Jim Meyering  <jim@meyering.net>
10889
10890         * modules/getaddrinfo (Depends-on): Add socklen.
10891
10892 2005-09-23  Bruno Haible  <bruno@clisp.org>
10893
10894         * tests/test-verify.c: New file.
10895
10896 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
10897
10898         Sync from coreutils.
10899
10900         * modules/argmatch (Depends-on): Add verify.
10901         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
10902         unistd-safer.
10903         * modules/save-cwd (Depends-on): Likewise.
10904
10905         * modules/openat (Files): Add lib/openat-die.c.
10906         (Depends-on): Remove error, exitfail.
10907         Add dirname.
10908
10909         * modules/verify: New file.
10910         * MODULES.html.sh (Diagnostics <assert.h>): New section,
10911         with "verify" module.
10912
10913 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
10914
10915         Sync from coreutils.
10916
10917         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
10918         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
10919         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
10920         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
10921         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
10922         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
10923         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
10924         Don't bother checking for string.h, stdlib.h, unistd.h.
10925         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
10926         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
10927         module's job.
10928         * m4/jm-macros.m4 (gl_MACROS): Likewise.
10929         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
10930
10931         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
10932         (gl_GETDATE): Use it.
10933
10934         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
10935
10936 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
10937
10938         Sync from coreutils.
10939
10940         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
10941         stat-time.h.
10942         * lib/argmatch.h: Include verify.h
10943         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
10944         (ARGMATCH_ASSERT): Remove; unused.
10945         * lib/canonicalize.c: Assume STDC_HEADERS.
10946         * lib/exclude.c: Include "strcase.h".
10947         * lib/regex_internal.h [!defined _LIBC]: Likewise.
10948         * lib/getusershell.c: Include stdio--.h rather than stdio.h
10949         and stdio-safer.h.
10950         (getusershell): Call fopen, not fopen_safer.
10951         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
10952         Do not include unistd-safer.h.
10953         (save_cwd): Don't call fd_safer; no longer needed
10954         now that we include fcntl--.h.
10955
10956         * lib/getdate.y (relative_time): New type.
10957         (RELATIVE_TIME_0): New constant.
10958         (parser_control): Use relative_time instead of doing it ourselves.
10959         (%union): Add new relative_time rel member.
10960         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
10961         Now typeless.
10962         (relunit, relunit_snumber): Now of type rel.
10963         (zone, rel, relunit, get_date): Adjust to above changes.
10964
10965         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
10966         Do not include unistd-safer.h.
10967         (getloadavg): Don't call fd_safer; no longer needed
10968         now that we include fcntl--.h.
10969
10970         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
10971         (make_dir_parents): Treat ENOSYS like EEXIST.
10972
10973         Improve quality of diagnostics on restore_cwd failure.
10974         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
10975         (make_dir_parents): Last arg is now int * (for errno), not bool *.
10976         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
10977         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
10978         each time through the loop.  Do not diagnose restore_cwd failure;
10979         that is the caller's job (and perhaps the caller does not care).
10980
10981         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
10982         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
10983         If the file already exists but is not a directory, don't bother
10984         to try to make its parents.
10985         Close potential file descriptor leak if we can't chdir("/") (!).
10986         Don't always return true if chdir($PWD) fails; return true only
10987         if the requested action was done successfully (except for the
10988         chdir($PWD)).
10989         Don't log final directory unless we actually made it.
10990         Refactor to avoid duplicate code to fix up permissions.
10991         Don't attempt to fix up parent permissions if chdir($PWD) fails.
10992
10993         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
10994         to make it a bit faster and (I hope) clearer.
10995         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
10996         Fix bug in formats like %2N.
10997
10998         * lib/verify.h: New file.
10999
11000 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
11001
11002         Sync from coreutils.
11003         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
11004
11005 2005-09-22  Jim Meyering  <jim@meyering.net>
11006
11007         Sync from coreutils.
11008
11009         * m4/lstat.m4 (gl_FUNC_LSTAT):
11010         Use AC_LIBSOURCES to require lstat.c and lstat.h.
11011         Remove obsolete comment.
11012         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
11013         * m4/xstrtod.m4: Likewise.
11014
11015         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
11016
11017 2005-09-22  Jim Meyering  <jim@meyering.net>
11018
11019         Sync from coreutils.
11020
11021         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
11022
11023         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
11024         the .tm_year member, since otherwise gcc-4.0 would now warn about
11025         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
11026
11027         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
11028         order to avoid an unsuppressible warning from gcc on 64-bit systems.
11029
11030         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
11031         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
11032         when run in a time zone for which daylight savings time is in effect
11033         for the starting date.
11034
11035         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
11036         stop us from restricting permissions of just-created absolute-named
11037         directories.
11038         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
11039         to restore initial working directory.
11040         * lib/mkdir-p.c (make_dir_parents): New parameter:
11041         different_working_dir, to tell caller if/when we change the working
11042         directory and are unable to return to the initial one.
11043         * lib/mkdir-p.h (make_dir_parents): Update prototype.
11044         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
11045         `return false'.  This fixes a bug introduced on 2004-07-30.
11046
11047         * lib/openat.c (fdopendir): Be sure to close the supplied
11048         file descriptor before returning.  This makes our replacement
11049         implementation a little closer to Solaris's, where fdopendir
11050         ties the file descriptor to the returned DIR* pointer.
11051         * lib/openat.c (unlinkat): New function.
11052         * lib/openat.h (unlinkat): Add prototype.
11053         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
11054         (openat_restore_fail): Rename from openat_restore_die.
11055         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
11056
11057         Provide an alternative to exiting immediately upon save_cwd or
11058         restore_cwd failure.  Now, an application can arrange e.g.,
11059         to perform a longjump in that case.
11060         * lib/openat.c: Include dirname.h.
11061         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
11062         (rpl_openat, fdopendir, fstatat): Call openat_save_die
11063         and openat_restore_die rather than calling error directly.
11064         Don't include "error.h" or "exitfail.h"; they're no longer needed.
11065
11066         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
11067         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
11068         define.
11069
11070         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
11071         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
11072                             int utc, int nanoseconds);
11073         Background:
11074         date should not have to allocate a megabyte of virtual memory to
11075         handle a format argument like +%1048575T.  When implemented with
11076         strftime, it must allocate such a buffer, use strftime to fill it
11077         in, print it, then free it.
11078         With fprintftime, it simply prints everything and exits.
11079         With no need for memory allocation, that's one fewer way to fail.
11080         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
11081         optional field width, not before, so we accept %9:z, not %:9z.
11082         (my_strftime): Be sure to use L_('x') for literals.
11083
11084         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
11085         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
11086         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
11087         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
11088         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
11089         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
11090         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
11091         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
11092         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
11093         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
11094         * lib/xgethostname.c, lib/xreadlink.c:
11095         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
11096
11097         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
11098         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
11099         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
11100         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
11101         and don't include <sys/file.h>).
11102
11103 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
11104
11105         Sync from coreutils.
11106
11107         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
11108         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
11109         [!LDAV_DONE]: Avoid unused variable warning.
11110
11111 2005-09-21  Bruno Haible  <bruno@clisp.org>
11112
11113         * lib/unicodeio.h (unicode_to_mb): New declaration.
11114
11115 2005-09-20  Derek Price  <derek@ximbiot.com>
11116
11117         * lib/getaddrinfo.c: Don't include <netdb.h> included from
11118         getaddrinfo.h.
11119
11120 2005-09-20  Bruno Haible  <bruno@clisp.org>
11121
11122         * gnulib-tool: Remove trailing slashes from the values specified for
11123         --source-base, --m4-base, --tests-base, --aux-dir.
11124         Suggested by Simon Josefsson <jas@extundo.com>.
11125
11126 2005-09-20  Bruno Haible  <bruno@clisp.org>
11127
11128         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
11129         func_modules_to_filelist, func_import, func_create_testdir): Make all
11130         sorting results locale-independent, so that gnulib-cache.m4 doesn't
11131         change when gnulib-tool is invoked in a different locale.
11132
11133 2005-09-19  Simon Josefsson  <jas@extundo.com>
11134
11135         * m4/socklen.m4: Fix typo.
11136
11137 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11138
11139         Use a consistent style for including <config.h>.
11140         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
11141         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
11142         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
11143         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
11144         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
11145         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
11146         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
11147         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
11148         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
11149         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
11150         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
11151         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
11152         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
11153         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
11154         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
11155         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
11156         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
11157         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
11158         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
11159         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
11160         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
11161         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
11162         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
11163         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
11164         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
11165         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
11166         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
11167         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
11168         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
11169         lib/xstrtoumax.c, lib/yesno.c:
11170         Standardize inclusion of config.h.
11171         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
11172         lib/inttostr.h:  Removed inclusion of config.h from header files.
11173         * lib/inttostr.c:  Adjusted in-tree users.
11174         * lib/timespec.h: Remove superfluous warning to include config.h.
11175         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
11176         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
11177         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
11178         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
11179         config.h with HAVE_CONFIG_H.
11180
11181 2005-09-19  Jim Meyering  <jim@meyering.net>
11182
11183         * modules/pathmax (License): Change to LGPL.
11184
11185 2005-09-19  Derek Price  <derek@ximbiot.com>
11186
11187         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
11188
11189 2005-09-19  Bruno Haible  <bruno@clisp.org>
11190
11191         * gnulib-tool (import): Provide default for --tests-base.
11192
11193 2005-09-19  Bruno Haible  <bruno@clisp.org>
11194
11195         * doc/quote.texi: New file, extracted from gnulib.texi.
11196         * doc/ctime.texi: New file, extracted from gnulib.texi.
11197         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
11198         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
11199         * doc/gnulib.texi: Include them.
11200
11201 2005-09-18  Bruno Haible  <bruno@clisp.org>
11202
11203         Portability fix.
11204         * gnulib-tool (func_readlink): New function.
11205         (func_ln_if_changed): Use it.
11206
11207 2005-09-18  Bruno Haible  <bruno@clisp.org>
11208
11209         * gnulib-tool: Support --with-tests also with --import.
11210         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
11211         (func_import): Use variables $testsbase and $inctests. Emit a
11212         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
11213         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
11214         SUBDIRS += $testsdir.
11215         (func_create_testdir): Update.
11216
11217 2005-09-18  Bruno Haible  <bruno@clisp.org>
11218
11219         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
11220         instead of $dry_run.
11221         (func_cp_if_changed, func_mv_if_changed): Remove functions.
11222         (func_ln_if_changed): Don't handle dry-run here.
11223         (func_import): In dry-run mode, detect more precisely which actions
11224         would be performed, and don't use "...ing" verbs.
11225
11226 2005-09-18  Bruno Haible  <bruno@clisp.org>
11227
11228         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
11229         (func_import): Use join on two temporary files instead of three nested
11230         loops, in order to determine which files are new or old.
11231
11232 2005-09-18  Bruno Haible  <bruno@clisp.org>
11233
11234         * gnulib-tool (func_import): Comment out code that spits out the
11235         new files with --dry-run.
11236
11237 2005-09-18  Bruno Haible  <bruno@clisp.org>
11238
11239         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
11240
11241 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
11242
11243         * lib/stat-time.h: New file.
11244         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
11245         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
11246         in a different way.
11247         (timespec_cmp): New function.
11248         * lib/utimecmp.c: Include stat-time.h.
11249         (SYSCALL_RESOLUTION): Depend on whether various struct stat
11250         members exist, not on the obsolescent ST_MTIM_NSEC.
11251         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
11252
11253 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
11254
11255         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
11256
11257 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
11258
11259         * MODULES.html.sh (File system functions): Add stat-time.
11260         * modules/stat-time: New file.
11261         * modules/timespec (Files): Remove m4/st_mtim.m4; this
11262         is now done in a different way, by the stat-time module.
11263         * modules/utimecmp (Depends-on): Add stat-time.
11264
11265 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
11266
11267         * m4/st_mtim.m4: Remove.  Superseded by...
11268         * m4/stat-time.m4: New file.
11269         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
11270         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
11271
11272 2005-09-15  Derek Price  <derek@ximbiot.com>
11273
11274         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
11275
11276 2005-09-15  Derek Price  <derek@ximbiot.com>
11277
11278         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
11279         * lib/regex_internal.c: Ditto, using this...
11280         (__GNUC_PREREQ): ...new macro.
11281         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
11282         using...
11283         (__GNUC_PREREQ): ...this new macro.
11284
11285         * lib/strstr.h: Include string.h. Define strstr as a macro here.
11286
11287 2005-09-15  Derek Price  <derek@ximbiot.com>
11288             Paul Eggert  <eggert@cs.ucla.edu>
11289
11290         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
11291         changes, consolidating in...
11292         * lib/regex_internal.h: ...this file.
11293
11294 2005-09-13  Jim Meyering  <jim@meyering.net>
11295
11296         * lib/canon-host.c: Filter through gnu indent and reword comments
11297         slightly.
11298         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
11299
11300 2005-09-13  Derek Price  <derek@ximbiot.com>
11301
11302         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
11303         failure.
11304         Reported by Jim Meyering  <jim@meyering.net>.
11305
11306 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
11307
11308         * lib/base64.c: Typo.
11309         (base64_encode): Put b64str in initialized data section.
11310
11311 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
11312
11313         Merge glibc and coreutils changes into gnulib, plus a few
11314         extra fixes.
11315         * lib/md5.c: Use #error rather than a string.
11316         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
11317         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
11318         (__attribute__): Define to empty for non recent-GCC.
11319         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
11320         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
11321         Renamed from their non-__ counterparts, with new macros replacing
11322         them if not _LIBC.  Add __THROW attribute.
11323         (rol): Remove.
11324         (struct md5_ctx): Align buffer if using GCC.
11325         * lib/sha1.h (struct sha1_ctx): Likewise.
11326         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
11327         The old name was backwards.
11328         (NOTSWAP): Remove; not used.
11329         (rol): New macro, moved here from md5.h.
11330         (sha1_process_block): Remove a FIXME that doesn't make sense.
11331
11332 2005-09-12  Derek Price  <derek@ximbiot.com>
11333
11334         Return usable errors from canon-host.
11335         * lib/canon-host.h: New file.
11336         * lib/canon-host.c (canon_host): Wrap...
11337         (canon_host_r): ...this new function, which now relies exclusively on
11338         getaddrinfo.
11339         (ch_strerror): New function.
11340         (last_cherror): New global.
11341         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
11342         interface.
11343         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
11344         void *.
11345         (freeaddrinfo): Free ai->ai_canonname when set.
11346
11347 2005-09-12  Derek Price  <derek@ximbiot.com>
11348
11349         Make canon-host require getaddrinfo.
11350         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
11351         AC_LIBSOURCE canon-host.h.  Call...
11352         (gl_PREREQ_CANON_HOST): ...this new function, which requires
11353         gl_GETADDRINFO.
11354         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
11355
11356 2005-09-12  Derek Price  <derek@ximbiot.com>
11357
11358         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
11359         LGPL.
11360         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
11361
11362 2005-09-12  Derek Price  <derek@ximbiot.com>
11363
11364         * lib/gai_strerror.c: Include config.h when available.  Include
11365         getaddrinfo.h before other headers to test interface.
11366         Reported by Larry Jones <lawrence.jones@ugs.com>.
11367
11368 2005-09-12  Derek Price  <derek@ximbiot.com>
11369             Paul Eggert  <eggert@cs.ucla.edu>
11370
11371         * modules/glob (Files): Add glob-libc.h.
11372
11373 2005-09-12  Derek Price  <derek@ximbiot.com>
11374             Paul Eggert  <eggert@cs.ucla.edu>
11375
11376         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
11377         glob_.h, glob-libc.h.
11378         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
11379
11380 2005-09-12  Derek Price  <derek@ximbiot.com>
11381             Paul Eggert  <eggert@cs.ucla.edu>
11382
11383         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
11384         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
11385         protecting things that should be done only in gnulib contexts.
11386         * lib/glob_.h: New file, containing only the glob things needed for
11387         gnulib.
11388         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
11389         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
11390         (glob, globfree, glob_pattern_p): Now defined simply in terms of
11391         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
11392         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
11393         and to respect the namespace rules better.
11394
11395 2005-09-08  Simon Josefsson  <jas@extundo.com>
11396
11397         * modules/socklen: New file.
11398
11399 2005-09-08  Simon Josefsson  <jas@extundo.com>
11400
11401         * m4/socklen.m4: New file.
11402
11403 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
11404
11405         * modules/utimens (Files): Add m4/utimbuf.m4, since
11406         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
11407         Reported by Sergey Poznyakoff.
11408
11409 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
11410
11411         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
11412         definitions, since that's the preferred style in glibc.
11413         Fix a minor spacing issue, and update copyright notice to match
11414         glibc's.
11415
11416 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
11417
11418         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
11419
11420 2005-09-06  Simon Josefsson  <jas@extundo.com>
11421
11422         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
11423         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
11424
11425 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
11426
11427         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
11428         warning.
11429
11430 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
11431
11432         * config/srclist.txt: Add glibc bug 1302.
11433
11434 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
11435
11436         Change bitset word type from unsigned int to unsigned long int,
11437         as this has better performance on typical 64-bit hosts.
11438         Port bitset code to hosts with unusual word sizes.
11439         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
11440         (build_collating_symbol):
11441         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
11442         argument is a bitset.  This is merely a style issue, but it makes
11443         it clearer that an entire array is expected.
11444         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
11445         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
11446         Port to the case where bitset_word is not the same as unsigned int.
11447         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
11448         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
11449         Likewise.
11450         * lib/regexec.c (check_dst_limits_calc_pos_1,
11451         check_subexp_matching_top):
11452         (build_trtable, group_nodes_into_DFAstates):
11453         Likewise.
11454         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
11455         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
11456         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
11457         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
11458         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
11459         * lib/regcomp.c (optimize_subexps, lower_subexp):
11460         Work even if bitset_word has holes in its bitwise representation.
11461         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
11462         * lib/regexec.c (check_dst_limits_calc_pos_1,
11463         check_subexp_matching_top):
11464         Likewise.
11465         * lib/regex_internal.c (re_string_reconstruct):
11466         Don't assume UCHAR_MAX == 255.
11467         * lib/regex_internal.h (bitset_set_all): Likewise.
11468         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
11469         All uses changed.
11470         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
11471         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
11472         All uses changed.
11473         (BITSET_WORD_MAX): New macro.
11474         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
11475         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
11476         (bitset_empty, bitset_copy):
11477         Prefer sizeof (bitset) to multiplying it out ourselves.
11478         (bitset_not_merge): Remove; unused.
11479         (bitset_contain): Return bool, not unsigned int with one bit on.
11480         All callers changed.
11481         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
11482         alignment than re_node_set; do this by defining a new internal
11483         type struct dests_alloc and using it to allocate memory.
11484
11485 2005-09-05  Bruno Haible  <bruno@clisp.org>
11486
11487         * gnulib-tool (func_import): Fix comparison in handling of symbolic
11488         links.
11489
11490 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
11491
11492         * modules/size_max (Makefile.am): Add size_max.h
11493
11494 2005-09-04  Derek Price  <derek@ximbiot.com>
11495
11496         * gnulib-tool (func_import): Fix reversed $symbolic logic.
11497
11498 2005-09-03  Simon Josefsson  <jas@extundo.com>
11499
11500         * gnulib-tool: Fix typo.
11501
11502 2005-09-03  Simon Josefsson  <jas@extundo.com>
11503
11504         * config/srclist.txt: Add glibc bug 1293.
11505
11506 2005-09-03  Derek Price  <derek@ximbiot.com>
11507
11508         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
11509         From Larry Jones <lawrence.jones@ugs.com>.
11510
11511 2005-09-02  Simon Josefsson  <jas@extundo.com>
11512
11513         * modules/socklen: New file.
11514
11515 2005-09-02  Simon Josefsson  <jas@extundo.com>
11516
11517         * modules/havelib: New module.
11518
11519         * modules/gettext, modules/iconv, modules/lock, modules/readline:
11520         Use havelib.
11521
11522 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
11523
11524         Check for arithmetic overflow when calculating sizes, to prevent
11525         some buffer-overflow issues.  These patches are conservative, in the
11526         sense that when I couldn't determine whether an overflow was possible,
11527         I inserted a run-time check.
11528         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
11529         macros.
11530         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
11531         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
11532         (re_xnrealloc, re_x2nrealloc): New inline functions.
11533         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
11534         parse_bracket_exp):
11535         (build_equiv_class, build_charclass): Check for arithmetic overflow
11536         in size expression calculations.
11537         * lib/regex_internal.c (re_string_realloc_buffers):
11538         (build_wcs_upper_buffer, re_node_set_add_intersect):
11539         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
11540         (re_dfa_add_node, register_state): Likewise.
11541         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
11542         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
11543         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
11544         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
11545
11546 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
11547
11548         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
11549         m4/ulonglong.m4.  Problem reported by Martin Lambers.
11550
11551 2005-09-02  Bruno Haible  <bruno@clisp.org>
11552
11553         Support for lib vs. lib64 distinction on biarch platforms.
11554         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
11555         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
11556         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
11557
11558 2005-09-02  Bruno Haible  <bruno@clisp.org>
11559
11560         * gnulib-tool (import): In the other first-use case, provide defaults
11561         as well.
11562
11563 2005-09-02  Bruno Haible  <bruno@clisp.org>
11564
11565         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
11566         patches not yet found in the latest gettext release.
11567
11568 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
11569
11570         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
11571         to avoid a collision with bits/local_lim.h in glibc.
11572         All uses changed.  Problem reported by Dmitry V. Levin in
11573         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
11574
11575         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
11576         bugs in int versus size_t comparisons.
11577         (re_string_context_at): Fix bug where the code assumed that
11578         Idx is signed.
11579
11580         Use bool where appropriate.
11581         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
11582         All callers changed.
11583         (calc_eclosure_iter): Likewise, for ROOT arg.
11584         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
11585         (build_charclass_op): Likewise, for NON_MATCH arg.
11586         * lib/regex_internal.c (re_string_allocate, re_string_construct):
11587         (re_string_construct_common): Likewise, for ICASE arg.
11588         * lib/regexec.c (re_search_2_stub, re_search_stub):
11589         Likewise, for RET_LEN arg.
11590         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
11591         (set_regs): Likewise, for FL_BACKTRACK arg.
11592         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
11593         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
11594         (calc_eclosure_iter, parse_bracket_exp):
11595         Use bool for internal variables that are booleans.
11596         * lib/regexec.c (re_search_internal, check_matching,
11597         proceed_next_node):
11598         (set_regs, build_sifted_states, sift_states_bkref):
11599         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
11600         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
11601         (find_collation_sequence_value):
11602         Likewise.
11603         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
11604         (re_node_set_compare):
11605         Return bool, not int. All callers changed.
11606         * lib/regexec.c (check_halt_node_context, check_dst_limits):
11607         (build_trtable, check_node_accept): Likewise.
11608         * lib/regex_internal.h: Include stdbool.h.
11609
11610         Fix bugs uncovered when converting to bool.
11611         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
11612         failure instead of charging ahead blindly.
11613         * lib/regex_internal.c (register_state): Likewise.
11614         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
11615         for freeing internal storage.
11616         (group_nodes_into_DFA_states): Use unsigned int, not int, for
11617         bitset pieces used as boolean, to avoid undefined behavior
11618         on hosts that do int overflow checking.
11619
11620 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
11621
11622         * config/srclist.txt: Add glibc bugs 1285-1287.
11623
11624 2005-09-01  Jim Meyering  <jim@meyering.net>
11625
11626         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
11627         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
11628         Require gl_STAT_MACROS, too.
11629
11630 2005-09-01  Bruno Haible  <bruno@clisp.org>
11631
11632         * gnulib-tool (import): In the first-use case, provide defaults.
11633
11634 2005-09-01  Bruno Haible  <bruno@clisp.org>
11635
11636         * gnulib-tool (func_import): Remove the .tmp files.
11637
11638 2005-09-01  Bruno Haible  <bruno@clisp.org>
11639
11640         * gnulib-tool (func_import): Fix handling of symbolic links.
11641
11642 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
11643
11644         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
11645         old glibc regex code mishandles strings longer than 2**31 bytes.
11646         This patch fixes this when the regex code is used in gnulib
11647         (i.e., outside glibc).
11648
11649         This patch should not affect the use of the regex code inside
11650         glibc.  No doubt this problem also needs to be handled for glibc
11651         as well, but the result will be an incompatible change to the
11652         glibc ABI, and the old ABI will have to be supported too.  That
11653         can be the the subject for another patch.
11654
11655         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
11656         governing whether the rest of this patch is active.  By default,
11657         the macro is disabled and the patch has no effect.
11658         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
11659         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
11660         (struct re_pattern_buffer, re_search, re_search_2, re_match):
11661         (re_match_2, re_set_registers): Use the new types.
11662         * lib/regex_internal.h (Idx, re_hashval_t): New types.
11663         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
11664         New macros.
11665         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
11666         (re_string_context_at, bin_tree_t, re_dfastate_t):
11667         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
11668         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
11669         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
11670         (re_string_char_size_at, re_string_wchar_at):
11671         (re_string_elem_size_at):
11672         Use the new types and macros to port to 64-bit hosts.
11673         Use unsigned types for internal values, so that the code
11674         mostly works even for arrays larger than SSIZE_MAX.
11675         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
11676         (search_duplicated_node, calc_eclosure_iter, fetch_number):
11677         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
11678         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
11679         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
11680         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
11681         (calc_inveclosure, parse_dup_op, build_range_exp):
11682         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
11683         (fetch_number, create_token_tree, mark_opt_subexp):
11684         Likewise.
11685         * lib/regex_internal.c (re_string_construct_common,
11686         create_ci_newstate):
11687         (create_cd_newstate, re_string_allocate, re_string_construct):
11688         (re_string_realloc_buffers, build_wcs_upper_buffer):
11689         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
11690         (re_string_reconstruct, re_string_peek_byte_case):
11691         (re_string_fetch_byte_case, re_string_context_at):
11692         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
11693         (re_node_set_init_copy, re_node_set_add_intersect):
11694         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
11695         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
11696         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
11697         (re_acquire_state, re_acquire_state_context, register_state):
11698         Likewise.
11699         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
11700         search_cur_bkref_entry):
11701         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
11702         (re_search_internal, re_search_2_stub, re_search_stub)
11703         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
11704         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
11705         (update_cur_sifted_state, check_dst_limits):
11706         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
11707         (check_subexp_limits, sift_states_bkref, merge_state_array):
11708         (check_subexp_matching_top, get_subexp, get_subexp_sub):
11709         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
11710         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
11711         (expand_bkref_cache, check_node_accept_bytes):
11712         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
11713         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
11714         (acquire_init_state_context, check_halt_node_context):
11715         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
11716         (sift_states_backward, clean_state_log_if_needed):
11717         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
11718         (find_recover_state, transit_state_sb, transit_state_mb):
11719         (transit_state_bkref, build_trtable, match_ctx_clean):
11720         Likewise.
11721         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
11722         to work around an assumption that REG_MISSING is negative.
11723
11724         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
11725         (seek_collating_symbol_entry) [defined _LIBC]:
11726         (lookup_collation_sequence_value) [defined _LIBC]:
11727         (build_range_exp, build_collating_symbol) [defined _LIBC]:
11728         Use prototypes rather than old-style function definitions.
11729         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
11730         (transit_state_sb) [0]:
11731         (find_collation_sequence_value) [defined _LIBC]: Likewise.
11732
11733         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
11734         rm_eo.
11735
11736         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
11737         (optimize_subexps, lower_subexp):
11738         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
11739         since the signed shift might overflow.  Use 1u<<31 instead.
11740         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
11741         Likewise.
11742         * lib/regexec.c (check_dst_limits_calc_pos_1,
11743         check_subexp_matching_top): Likewise.
11744
11745         * lib/regcomp.c (optimize_subexps, lower_subexp):
11746         Use CHAR_BIT rather than 8, for clarity.
11747         * lib/regexec.c (check_dst_limits_calc_pos_1):
11748         (check_subexp_matching_top): Likewise.
11749         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
11750         have to worry about portability issues when shifting it left.
11751         Remove no-longer-needed test for table_size > 0.
11752         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
11753         in a word, as the resulting behavior is undefined.
11754         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
11755         in one case, a <= should have been an <, and in another case the
11756         whole test was missing.
11757         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
11758         the standard name CHAR_BIT.
11759         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
11760         this is not true on one's complement and signed-magnitude hosts.
11761
11762         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
11763         next_last_offset.
11764         (struct re_dfa_t): Remove unused member states_alloc.
11765         * lib/regcomp.c (init_dfa): Don't initialize unused members.
11766
11767 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
11768
11769         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
11770         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
11771         and large-file glibc and in 32-bit large-file Solaris.
11772
11773 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
11774
11775         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
11776         lengths fit in regoff_t; this isn't true if regoff_t is the same
11777         width as size_t.
11778         * lib/regex.c (re_search_internal): 5th arg is LAST_START
11779         (= START + RANGE) instead of RANGE.  This avoids overflow
11780         problems when regoff_t is the same width as size_t.
11781         All callers changed.
11782         (re_search_2_stub): Check for overflow when adding the
11783         sizes of the two strings.
11784         (re_search_stub): Check for overflow when adding START
11785         to RANGE; if it occurs, substitute the extreme value.
11786
11787 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
11788
11789         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
11790
11791 2005-08-31  Jim Meyering  <jim@meyering.net>
11792
11793         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
11794         a pointer-to-const.
11795         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
11796         (register_state): Likewise.
11797         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
11798         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
11799         (group_nodes_into_DFAstates): Likewise.
11800
11801 2005-08-31  Jim Meyering  <jim@meyering.net>
11802
11803         * check-module: Add a FIXME comment.
11804
11805 2005-08-31  Eric Blake  <ebb9@byu.net>
11806
11807         * modules/unistd-safer (Files): Add unistd--.h.
11808         * modules/stdio-safer (Files): Add stdio--.h.
11809
11810 2005-08-31  Derek Price  <derek@ximbiot.com>
11811
11812         * lib/getdelim.c (getdelim): Return EOF on EOF.
11813         Reported by Larry Jones <lawrence.jones@ugs.com>.
11814
11815 2005-08-31  Bruno Haible  <bruno@clisp.org>
11816
11817         Avoid unnecessary diffs in the generated lib/Makefile.am.
11818         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
11819         the generated files.
11820         (func_import): Don't set cmd.
11821
11822 2005-08-31  Bruno Haible  <bruno@clisp.org>
11823
11824         * lib/strstr.c: Include <stddef.h>, for NULL.
11825         * lib/strcasestr.c: Likewise.
11826         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
11827
11828 2005-08-31  Bruno Haible  <bruno@clisp.org>
11829
11830         * gnulib-tool: New option --macro-prefix.
11831         (func_import): Use macro_prefix.
11832         (import): Handle option --macro-prefix.
11833
11834 2005-08-31  Bruno Haible  <bruno@clisp.org>
11835
11836         * gnulib-tool (import): Rename most ac_* variables to cached_*.
11837         Also use new variables cached_lgpl, cached_libtool.
11838
11839 2005-08-31  Bruno Haible  <bruno@clisp.org>
11840
11841         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
11842         always instantiating them.
11843
11844 2005-08-31  Bruno Haible  <bruno@clisp.org>
11845
11846         * gnulib-tool (func_import): Read the previous cached settings
11847         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
11848         earlier added by gnulib but are now dropped. Warn when a gnulib file
11849         overwrites a non-gnulib file.
11850
11851 2005-08-31  Bruno Haible  <bruno@clisp.org>
11852
11853         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
11854         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
11855         projects that don't keep autogenerated files in CVS. Put into
11856         actioncmd only the specified modules, not the transitive closure.
11857
11858 2005-08-31  Bruno Haible  <bruno@clisp.org>
11859
11860         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
11861         Create directories that shall be filled.
11862         (import): Don't look for gl_* macros in configure.ac. Recurse across
11863         all directories containing a gnulib-cache.m4 files, if meaningful.
11864
11865 2005-08-31  Bruno Haible  <bruno@clisp.org>
11866
11867         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
11868         (import): Set seen_libtool when we see gl_LIBTOOL.
11869
11870 2005-08-31  Bruno Haible  <bruno@clisp.org>
11871
11872         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
11873         declaration macro definitions from generated gnulib.m4.
11874
11875 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
11876
11877         * lib/iconvme.h: Add prototype for iconv_alloc.
11878
11879 2005-08-29  Simon Josefsson  <jas@extundo.com>
11880
11881         * lib/iconvme.c: Fix errno.
11882
11883 2005-08-29  Bruno Haible  <bruno@clisp.org>
11884
11885         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
11886         that it works when the directory contains spaces.
11887
11888 2005-08-29  Bruno Haible  <bruno@clisp.org>
11889
11890         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
11891
11892 2005-08-29  Bruno Haible  <bruno@clisp.org>
11893
11894         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
11895         Emit more advice.
11896
11897 2005-08-29  Bruno Haible  <bruno@clisp.org>
11898         and Stepan Kasal  <kasal@ucw.cz>
11899
11900         * check-module: If more parameters are given, check each of them
11901         separately; add more exceptions, as noted by Jim Meyering.
11902         (check_module): New procedure.
11903         (%exempt_header): Now contains all exceptions.
11904
11905 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
11906
11907         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
11908
11909 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
11910
11911         * lib/iconvme.c: Split iconv_string into iconv_alloc.
11912
11913 2005-08-28  Bruno Haible  <bruno@clisp.org>
11914
11915         * m4/gnulib-tool.m4: New file.
11916
11917 2005-08-27  Jim Meyering  <jim@meyering.net>
11918
11919         * modules/unistd-safer (Files): Add pipe-safer.c.
11920         * modules/fcntl-safer (Files): Add creat-safer.c.
11921
11922 2005-08-27  Jim Meyering  <jim@meyering.net>
11923
11924         * m4/stdlib-safer.m4: New file.  From coreutils.
11925         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
11926         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
11927         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
11928         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
11929         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
11930
11931 2005-08-27  Jim Meyering  <jim@meyering.net>
11932
11933         * lib/fopen-safer.c: Merge minor changes from coreutils.
11934         * lib/dup-safer.c: Likewise.
11935         * lib/fd-safer.c: Likewise.
11936
11937         Merge from coreutils.
11938         * lib/stdio--.h: New file.
11939         * lib/stdlib--.h: New file.
11940         * lib/mkstemp-safer.c: New file.
11941
11942         GNU tar needs these.
11943         * lib/pipe-safer.c: New file.
11944         * lib/creat-safer.c: New file.
11945         * lib/fcntl--.h (creat): Define to creat_safer.
11946         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
11947         * lib/unistd--.h (pipe): Define to pipe_safer.
11948         * lib/unistd-safer.h: Declare pipe_safer.
11949
11950 2005-08-26  Simon Josefsson  <jas@extundo.com>
11951
11952         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
11953         Haible <bruno@clisp.org>.
11954
11955 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
11956
11957         * lib/regex_internal.h: Remove all references to
11958         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
11959         or better.
11960         (bitset_not, bitset_merge, bitset_not_merge):
11961         (bitset_mask, re_string_allocate, re_string_construct):
11962         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
11963         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
11964         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
11965         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
11966         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
11967         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
11968         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
11969         (re_acquire_state_context):
11970         Remove unnecessary forward decls.
11971         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
11972         Put __attribute at function definition,
11973         now that the function decl has been removed.
11974         * lib/regex_internal.c (re_string_peek_byte_case):
11975         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
11976         Likewise.
11977
11978 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
11979
11980         * m4/regex.m4: Add AC_PREREQ(2.50).
11981         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
11982
11983 2005-08-25  Simon Josefsson  <jas@extundo.com>
11984
11985         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
11986         __fsetlocking.
11987
11988 2005-08-25  Simon Josefsson  <jas@extundo.com>
11989
11990         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
11991         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
11992         GLIBC specific code.
11993
11994 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
11995
11996         Make regex safe for g++.  This fixes one real bug (an "err"
11997         that should have been "*err").  g++ problem reported by
11998         Sam Steingold.
11999         * lib/regex_internal.h (re_calloc): New macro, consistent with
12000         re_malloc etc.  All callers of calloc changed to use re_calloc.
12001         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
12002         not int.  All callers changed.
12003         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
12004         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
12005         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
12006         (find_recover_state): Change "err" to "*err"; this fixes what
12007         appears to be a real bug.
12008         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
12009         versus int.
12010
12011 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
12012
12013         * modules/regex (Depends-on): Add malloc, since the code
12014         assumes that !malloc(0) means failure.
12015
12016 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
12017
12018         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
12019
12020         alloca modernization/simplification for regex.
12021         * lib/regex.c: Remove portability cruft for alloca.  This no longer
12022         needs to be at the start of the file, and can be moved into
12023         regex_internal.h and simplified.
12024         * lib/regex_internal.h: Include <alloca.h>.
12025         (__libc_use_alloca) [!defined _LIBC]: New macro.
12026         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
12027         now works outside glibc.
12028
12029 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
12030
12031         * config/srclist.txt: Add glibc bugs 1241, 1245.
12032
12033 2005-08-25  Jim Meyering  <jim@meyering.net>
12034
12035         * lib/open-safer.c: Include <config.h>.
12036         Otherwise, we'd lose LARGEFILE support in any file using
12037         e.g. "fcntl--.h"
12038
12039 2005-08-25  Bruno Haible  <bruno@clisp.org>
12040
12041         * m4/minmax.m4: Require autoconf 2.52.
12042         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
12043         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
12044         alternatives of translit over the alphabet.
12045         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
12046
12047 2005-08-24  Simon Josefsson  <jas@extundo.com>
12048
12049         * tests/test-getpass.c: New file.
12050
12051 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
12052
12053         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
12054         for GNU regex features.
12055
12056 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
12057
12058         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
12059         * lib/regex.h (regerror): Likewise.
12060
12061         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
12062         requires this.  (The code never needed it.)
12063
12064         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
12065         All uses of recently-renamed identifiers changed to use the new,
12066         POSIX-compliant names.  The code will build and run just fine
12067         without these changes, but it's better to eat our own dog food
12068         and use the standard-conforming names.
12069
12070         * lib/regex.h: Fix a multitude of POSIX name space violations.
12071         These changes have an effect only for programs that define
12072         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
12073         do not change anything for programs compiled in the normal way.
12074         Also, there is no effect on the ABI.
12075
12076         (_REGEX_SOURCE): New macro.
12077         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
12078         defined and _GNU_SOURCE is not; this fixes a name space violation.
12079
12080         Rename the following macros to obey POSIX requirements.
12081         The old names are still visible as macros if _REGEX_SOURCE is defined.
12082         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
12083         RE_BACKSLASH_ESCAPE_IN_LISTS.
12084         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
12085         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
12086         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
12087         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
12088         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
12089         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
12090         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
12091         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
12092         (REG_INTERVALS): renamed from RE_INTERVALS.
12093         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
12094         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
12095         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
12096         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
12097         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
12098         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
12099         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
12100         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
12101         RE_UNMATCHED_RIGHT_PAREN_ORD.
12102         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
12103         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
12104         (REG_DEBUG): renamed from RE_DEBUG.
12105         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
12106         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
12107         unusual, since we can't clash with the POSIX REG_ICASE.
12108         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
12109         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
12110         (REG_NO_SUB): renamed from RE_NO_SUB.
12111         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
12112         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
12113         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
12114         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
12115         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
12116         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
12117         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
12118         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
12119         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
12120         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
12121         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
12122         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
12123         RE_SYNTAX_POSIX_MINIMAL_BASIC.
12124         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
12125         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
12126         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
12127         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
12128         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
12129         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
12130         (REG_FIXED): Renamed from REGS_FIXED.
12131         (REG_NREGS): Renamed from RE_NREGS.
12132
12133         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
12134         of other REG_* macros, since POSIX says the user is allowed to
12135         #undef these macros selectively.
12136
12137         (reg_errcode_t): Update comment stating what other tables need
12138         to be consistent.
12139
12140         Rename the following enum values to obey POSIX requirements.
12141         The old names are still visible as macros.
12142         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
12143         is not defined, since GNU is supposed to be a superset of POSIX as
12144         much as possible, and since we want reg_errcode_t to be a signed
12145         type for implementation consistency.
12146         (_REG_NOERROR): Renamed from REG_NOERROR.
12147         (_REG_NOMATCH): Renamed from REG_NOMATCH.
12148         (_REG_BADPAT): Renamed from REG_BADPAT.
12149         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
12150         (_REG_ECTYPE): Renamed from REG_ECTYPE.
12151         (_REG_EESCAPE): Renamed from REG_EESCAPE.
12152         (_REG_ESUBREG): Renamed from REG_ESUBREG.
12153         (_REG_EBRACK): Renamed from REG_EBRACK.
12154         (_REG_EPAREN): Renamed from REG_EPAREN.
12155         (_REG_EBRACE): Renamed from REG_EBRACE.
12156         (_REG_BADBR): Renamed from REG_BADBR.
12157         (_REG_ERANGE): Renamed from REG_ERANGE.
12158         (_REG_ESPACE): Renamed from REG_ESPACE.
12159         (_REG_BADRPT): Renamed from REG_BADRPT.
12160         (_REG_EEND): Renamed from REG_EEND.
12161         (_REG_ESIZE): Renamed from REG_ESIZE.
12162         (_REG_ERPAREN): Renamed from REG_ERPAREN.
12163         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
12164         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
12165         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
12166         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
12167
12168         (_REG_RE_NAME, _REG_RM_NAME): New macros.
12169         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
12170         changed.  But support the old name if the new one is not defined
12171         and if _REGEX_SOURCE.
12172
12173         Change the following member names in struct re_pattern_buffer.
12174         The old names are still supported if !_REGEX_SOURCE.
12175         The new names are always supported, regardless of _REGEX_SOURCE.
12176         (re_buffer): Renamed from buffer.
12177         (re_allocated): Renamed from allocated.
12178         (re_used): Renamed from used.
12179         (re_syntax): Renamed from syntax.
12180         (re_fastmap): Renamed from fastmap.
12181         (re_translate): Renamed from translate.
12182         (re_can_be_null): Renamed from can_be_null.
12183         (re_regs_allocated): Renamed from regs_allocated.
12184         (re_fastmap_accurate): Renamed from fastmap_accurate.
12185         (re_no_sub): Renamed from no_sub.
12186         (re_not_bol): Renamed from not_bol.
12187         (re_not_eol): Renamed from not_eol.
12188         (re_newline_anchor): Renamed from newline_anchor.
12189
12190         Change the following member names in struct re_registers.
12191         The old names are still supported if !_REGEX_SOURCE.
12192         The new names are always supported, regardless of _REGEX_SOURCE.
12193         (rm_num_regs): Renamed from num_regs.
12194         (rm_start): Renamed from start.
12195         (rm_end): Renamed from end.
12196
12197         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
12198         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
12199         Prepend __ to parameter names.
12200
12201         Undo yesterday's changes.
12202
12203 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
12204
12205         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
12206         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
12207         lib/regex.c.
12208
12209 2005-08-24  Jim Meyering  <jim@meyering.net>
12210
12211         Sync from coreutils.
12212         * m4/fcntl-safer.m4: New file.
12213
12214         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
12215         and object files for this module.
12216
12217 2005-08-24  Jim Meyering  <jim@meyering.net>
12218
12219         Sync from coreutils.
12220         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
12221
12222 2005-08-24  Jim Meyering  <jim@meyering.net>
12223
12224         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
12225         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
12226
12227 2005-08-24  Jim Meyering  <jim@meyering.net>
12228
12229         * modules/fcntl-safer: New module.
12230         * modules/fts (Depends-on): Add fcntl-safer.
12231         * MODULES.html.sh (File descriptor based Input/Output):
12232         Add fcntl-safer.
12233
12234 2005-08-24  Bruno Haible  <bruno@clisp.org>
12235
12236         Support for unit test modules.
12237         * modules/README: Mention tests modules.
12238         * modules/TEMPLATE-TESTS: New file.
12239         * gnulib-tool: New options --extract-tests-module, --with-tests and
12240         --tests-base (unused for the moment).
12241         (testsbase, inctests): New variables.
12242         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
12243         (func_verify_module): Exclude TEMPLATE-TESTS.
12244         (func_verify_nontests_module, func_verify_tests_module): New functions.
12245         (func_get_dependencies): Add implicit dependency for tests modules.
12246         (func_get_tests_module): New function.
12247         (func_modules_transitive_closure): When --with-tests was specified,
12248         include the unit tests as well, unless explicitly avoided.
12249         (func_emit_lib_Makefile_am): Ignore the tests modules here.
12250         (func_emit_tests_Makefile_am): New function.
12251         (func_create_testdir): When --with-tests was specified, emit a
12252         tests/ directory.
12253         * MODULES.html.sh (Future developments): Update.
12254
12255 2005-08-24  Bruno Haible  <bruno@clisp.org>
12256
12257         * modules/tls-tests: New file.
12258         * tests/test-tls.c: New file, from GNU gettext.
12259
12260 2005-08-24  Bruno Haible  <bruno@clisp.org>
12261
12262         * modules/lock-tests: New file.
12263         * tests/test-lock.c: New file, from GNU gettext.
12264
12265 2005-08-24  Bruno Haible  <bruno@clisp.org>
12266
12267         * lib/lock.h: Add multiple inclusion guard.
12268         * lib/tls.h: Add multiple inclusion guard.
12269
12270 2005-08-24  Bruno Haible  <bruno@clisp.org>
12271
12272         * gnulib-tool: Add support for the --aux-dir option to
12273         --create-testdir, --create-megatestdir, --test, --megatest.
12274         (func_create_testdir, func_create_megatestdir): Optionally emit a
12275         AC_CONFIG_AUX_DIR directive.
12276         (create-testdir, create-megatestdir, test, megatest): Provide a
12277         default value for $auxdir.
12278
12279 2005-08-24  Bruno Haible  <bruno@clisp.org>
12280
12281         * gnulib-tool (import): Use compound statement instead of subshell
12282         where possible.
12283
12284 2005-08-24  Bruno Haible  <bruno@clisp.org>
12285
12286         * gnulib-tool (import): Change --aux-dir default to "build-aux".
12287
12288 2005-08-24  Bruno Haible  <bruno@clisp.org>
12289
12290         * gnulib-tool (func_version): Update.
12291
12292 2005-08-24  Bruno Haible  <bruno@clisp.org>
12293
12294         * gnulib-tool (func_import, func_create_testdir,
12295         func_create_megatestdir): Quote all autoconf macro arguments.
12296
12297 2005-08-24  Bruno Haible  <bruno@clisp.org>
12298
12299         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
12300         option --force, because --force causes the aclocal.m4 of each
12301         subdirectory to be newer than the corresponding config.h.in.
12302
12303 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
12304
12305         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
12306         All contents moved to gl_REGEX.
12307         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
12308         assume that it does.
12309
12310 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
12311
12312         * lib/regex.h (REG_NOSYS)
12313         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
12314         Define, since POSIX requires it as of 2001.
12315         (_REG_ENOSYS)
12316         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
12317         New private symbol, used to keep the enum signed in all cases.
12318         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
12319         Youngman in
12320         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
12321
12322         * lib/regex_internal.c (re_string_skip_chars, register_state):
12323         (calc_state_hash):
12324         Remove forward decls; no longer needed now that we use prototypes.
12325         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
12326         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
12327         (clean_state_log_if_needed): Likewise.
12328
12329 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
12330
12331         * config/srclist.txt: Add glibc bugs 1231-1233.
12332
12333 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
12334
12335         Fix problems reported by Sam Steingold in
12336         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
12337         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
12338         assumed that reg_errcode_t is a signed type, which is not
12339         necessarily true if _XOPEN_SOURCE is not defined.
12340         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
12341         since some compilers warn about it otherwise.
12342
12343 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
12344
12345         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
12346         (init_word_char, create_initial_state, duplicate_node_closure):
12347         (fetch_token, peek_token_bracket, build_range_exp):
12348         (build_collating_symbol): Remove forward decls; no longer needed
12349         now that we use prototypes.
12350
12351         * lib/regcomp.c:
12352         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
12353         (re_compile_fastmap_iter, regcomp, regerror, regfree):
12354         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
12355         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
12356         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
12357         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
12358         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
12359         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
12360         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
12361         (build_range_exp, build_collating_symbol, parse_bracket_exp):
12362         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
12363         (build_charclass, build_charclass_op, fetch_number, create_tree):
12364         (create_token_tree, mark_opt_subexp, duplicate_tree):
12365         Use prototypes rather than old-style definitions.
12366
12367         * lib/regex_internal.c:
12368         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
12369         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
12370         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
12371         (re_string_reconstruct, re_string_peek_byte_case):
12372         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
12373         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
12374         (re_node_set_init_copy, re_node_set_add_intersect):
12375         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
12376         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
12377         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
12378         (re_acquire_state, re_acquire_state_context, register_state):
12379         (create_ci_newstate, create_cd_newstate, free_state):
12380         Likewise.
12381         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
12382         re_search_2):
12383         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
12384         (re_search_internal, prune_impossible_nodes):
12385         (acquire_init_state_context, check_matching, static):
12386         (check_halt_node_context, check_halt_state_context, proceed_next_node):
12387         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
12388         (update_regs, sift_states_backward, build_sifted_states):
12389         (clean_state_log_if_needed, merge_state_array):
12390         (update_cur_sifted_state, add_epsilon_src_nodes):
12391         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
12392         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
12393         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
12394         (find_recover_state, check_subexp_matching_top, transit_state_mb):
12395         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
12396         (check_arrival, check_arrival_add_next_nodes):
12397         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
12398         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
12399         (check_node_accept_bytes, check_node_accept, extend_buffers):
12400         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
12401         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
12402         (sift_ctx_init):
12403         Likewise.
12404
12405         * lib/regex_internal.h:
12406         (re_string_allocate, re_string_construct, re_string_reconstruct):
12407         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
12408         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
12409         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
12410         (re_string_context_at, re_string_peek_byte_case):
12411         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
12412         is defined, since we now use prototypes always.
12413
12414         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
12415         C89 or better.  All uses removed.
12416
12417 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
12418
12419         * config/srclist.txt: Add glibc bugs 1220-1227.
12420
12421 2005-08-20  Jim Meyering  <jim@meyering.net>
12422
12423         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
12424         of unused local, dfa.
12425
12426 2005-08-20  Bruno Haible  <bruno@clisp.org>
12427
12428         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
12429
12430 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
12431
12432         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
12433         (re_node_set_insert_last, re_dfa_add_node):
12434         Rename local variables to avoid GCC shadowing warnings.
12435
12436 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
12437
12438         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
12439         [defined lint]: Suppress bogus uninitialized-variable warnings.
12440
12441         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
12442         and let the caller return REG_ESPACE if out of space.  This
12443         removes an uninitialied-variable warning with GCC 4.0.1, and also
12444         avoids taking the address of a local variable.  All callers
12445         changed.
12446
12447 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
12448
12449         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
12450         $LIBCSRC/posix/regexec.c.
12451         Add glibc bug 1217 for regcomp.c.
12452
12453 2005-08-19  Jim Meyering  <jim@meyering.net>
12454
12455         * lib/regexec.c (proceed_next_node): Redo local variables to
12456         avoid GCC shadowing warnings.
12457
12458 2005-08-18  Bruno Haible  <bruno@clisp.org>
12459
12460         * lib/strstr.c (strstr): Fix return value in multibyte case.
12461         * lib/strcasestr.c (strcasestr): Likewise.
12462
12463 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
12464
12465         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
12466
12467 2005-08-17  Jim Meyering  <jim@meyering.net>
12468
12469         Make the %s format (seconds since the epoch) work for a negative
12470         number and when used with a zero-padded field width, e.g. %015s.
12471
12472         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
12473         label so that it precedes the code to set `digits'.  Otherwise,
12474         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
12475         print `00-22'.  Now, it prints `-0022', as it should.
12476
12477 2005-08-17  Bruno Haible  <bruno@clisp.org>
12478
12479         * modules/strstr (Files): Add m4/mbrtowc.m4.
12480         (Depends-on): Add mbuiter.
12481
12482 2005-08-17  Bruno Haible  <bruno@clisp.org>
12483
12484         * modules/strcasestr: New file.
12485         * MODULES.html.sh (String handling, based on ANSI C 89): Add
12486         strcasestr.
12487
12488 2005-08-17  Bruno Haible  <bruno@clisp.org>
12489
12490         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
12491
12492 2005-08-17  Bruno Haible  <bruno@clisp.org>
12493
12494         * modules/mbuiter: New file.
12495         * MODULES.html.sh (Extended multibyte and wide character utilities):
12496         Add mbuiter.
12497
12498 2005-08-17  Bruno Haible  <bruno@clisp.org>
12499
12500         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
12501         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
12502
12503 2005-08-17  Bruno Haible  <bruno@clisp.org>
12504
12505         * m4/strcasestr.m4: New file.
12506
12507 2005-08-17  Bruno Haible  <bruno@clisp.org>
12508
12509         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
12510         * lib/strstr.c: Completely rewritten, with multibyte locale support.
12511
12512 2005-08-17  Bruno Haible  <bruno@clisp.org>
12513
12514         * lib/strcasestr.h: New file.
12515         * lib/strcasestr.c: New file.
12516
12517 2005-08-17  Bruno Haible  <bruno@clisp.org>
12518
12519         * lib/strcasecmp.c: Use mbuiter.h.
12520
12521 2005-08-17  Bruno Haible  <bruno@clisp.org>
12522
12523         * lib/mbuiter.h: New file.
12524
12525 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
12526
12527         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
12528         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
12529         and gl_GETOPT are both invoked via different paths (as happens
12530         with GNU tar CVS because it uses both argp and getopt), the former
12531         wins.
12532
12533 2005-08-16  Bruno Haible  <bruno@clisp.org>
12534
12535         * modules/tls: New file.
12536         * MODULES.html.sh (Multithreading): Add tls.
12537
12538 2005-08-16  Bruno Haible  <bruno@clisp.org>
12539
12540         * modules/strnlen1: New file.
12541         * MODULES.html.sh (String handling): Add strnlen1.
12542
12543 2005-08-16  Bruno Haible  <bruno@clisp.org>
12544
12545         * modules/strcase (Files): Add m4/mbrtowc.m4.
12546         (Depends-on): Add strnlen1, mbchar.
12547
12548 2005-08-16  Bruno Haible  <bruno@clisp.org>
12549
12550         * modules/mbiter: New file.
12551         * MODULES.html.sh (Extended multibyte and wide character utilities):
12552         Add mbiter.
12553
12554 2005-08-16  Bruno Haible  <bruno@clisp.org>
12555
12556         * modules/mbfile: New file.
12557         * MODULES.html.sh (Extended multibyte and wide character utilities):
12558         Add mbfile.
12559
12560 2005-08-16  Bruno Haible  <bruno@clisp.org>
12561
12562         * modules/mbchar: New file.
12563         * MODULES.html.sh (Extended multibyte and wide character utilities):
12564         New section.
12565
12566 2005-08-16  Bruno Haible  <bruno@clisp.org>
12567
12568         * m4/tls.m4: New file, from GNU gettext.
12569
12570 2005-08-16  Bruno Haible  <bruno@clisp.org>
12571
12572         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
12573         always.
12574         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
12575
12576 2005-08-16  Bruno Haible  <bruno@clisp.org>
12577
12578         * m4/mbiter.m4: New file.
12579
12580 2005-08-16  Bruno Haible  <bruno@clisp.org>
12581
12582         * m4/mbfile.m4: New file.
12583
12584 2005-08-16  Bruno Haible  <bruno@clisp.org>
12585
12586         * m4/mbchar.m4: New file.
12587
12588 2005-08-16  Bruno Haible  <bruno@clisp.org>
12589
12590         * lib/tls.h: New file, from GNU gettext.
12591         * lib/tls.c: New file, from GNU gettext.
12592
12593 2005-08-16  Bruno Haible  <bruno@clisp.org>
12594
12595         * lib/strnlen1.h: New file.
12596         * lib/strnlen1.c: New file.
12597
12598 2005-08-16  Bruno Haible  <bruno@clisp.org>
12599
12600         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
12601         (mbi_init): Update.
12602         (mbi_avail, mbi_advance): Let the iteration end before the terminating
12603         NUL byte, not after it.
12604
12605 2005-08-16  Bruno Haible  <bruno@clisp.org>
12606
12607         * lib/strcase.h (strcasecmp): Add note in comments.
12608         * lib/strncasecmp.c: Use code from strcasecmp.c.
12609         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
12610         (strcasecmp): Work correctly in multibyte locales.
12611
12612 2005-08-16  Bruno Haible  <bruno@clisp.org>
12613
12614         * lib/mbiter.h: New file.
12615
12616 2005-08-16  Bruno Haible  <bruno@clisp.org>
12617
12618         * lib/mbfile.h: New file.
12619
12620 2005-08-16  Bruno Haible  <bruno@clisp.org>
12621
12622         * lib/mbchar.h: New file.
12623         * lib/mbchar.c: New file.
12624
12625 2005-08-16  Bruno Haible  <bruno@clisp.org>
12626
12627         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
12628         the valid ones. Makes the comparison operations transitive:
12629         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
12630         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
12631
12632 2005-08-15  Simon Josefsson  <jas@extundo.com>
12633
12634         * modules/ssize_t (License): Change to 'unlimited'.
12635
12636         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
12637
12638 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
12639
12640         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
12641         Add comments for each pending glibc patch.
12642
12643 2005-08-15  Bruno Haible  <bruno@clisp.org>
12644
12645         * lib/regex.h (__restrict_arr): Don't define to __restrict if
12646         __cplusplus is defined.
12647
12648 2005-08-14  Jim Meyering  <jim@meyering.net>
12649
12650         Sync from coreutils.
12651
12652         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
12653         Use the hash-table-based cycle-detection code not just when
12654         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
12655         Reported by James Youngman in
12656         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
12657         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
12658         FTS_TIGHT_CYCLE_CHECK.
12659         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
12660         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
12661         once again.
12662         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
12663         * lib/fts.c (fd_safer): Remove decl.
12664         Include fcntl--.h rather than unistd-safer.h
12665         (fts_safe_changedir): Don't call fd_safer; no longer needed
12666         now that we include fcntl--.h.
12667
12668 2005-08-12  Simon Josefsson  <jas@extundo.com>
12669
12670         * modules/getndelim2: Use ssize_t module.
12671         * modules/getnline: Likewise.
12672         * modules/safe-read: Likewise.
12673         * modules/xreadlink: Likewise.
12674
12675         * modules/ssize_t: New file.
12676
12677 2005-08-12  Simon Josefsson  <jas@extundo.com>
12678
12679         * m4/readline.m4: Look for termcap, curses or ncurses if required.
12680
12681 2005-08-12  Simon Josefsson  <jas@extundo.com>
12682
12683         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
12684         ssize_t.
12685
12686 2005-08-12  Simon Josefsson  <jas@extundo.com>
12687
12688         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
12689         readline, getdelim and check_version.
12690         (Support for systems lacking ISO C 99: Sizes of integer types):
12691         Add size_max.
12692
12693 2005-08-12  Bruno Haible  <bruno@clisp.org>
12694
12695         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
12696
12697 2005-08-11  Simon Josefsson  <jas@extundo.com>
12698
12699         * modules/readline: New file.
12700
12701         * modules/strnlen (Files): Add strnlen.h.
12702
12703 2005-08-11  Simon Josefsson  <jas@extundo.com>
12704
12705         * m4/readline.m4: New file.
12706
12707 2005-08-11  Simon Josefsson  <jas@extundo.com>
12708
12709         * lib/readline.h, readline.c: New file.
12710
12711 2005-08-11  Simon Josefsson  <jas@extundo.com>
12712
12713         * doc/gnulib.texi (Initial import, Finishing touches): Mention
12714         gl_AVOID.
12715
12716 2005-08-11  Bruno Haible  <bruno@clisp.org>
12717
12718         * lib/strnlen.h (strnlen): Change parameter name to match comment.
12719
12720 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
12721
12722         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
12723
12724 2005-08-10  Simon Josefsson  <jas@extundo.com>
12725
12726         * tests/test-iconvme.c: New file.
12727
12728 2005-08-10  Simon Josefsson  <jas@extundo.com>
12729
12730         * m4/strnlen.m4: New file.
12731
12732         * m4/strndup.m4: Don't check for strnlen declaration, done in
12733         strnlen.m4.
12734
12735 2005-08-10  Simon Josefsson  <jas@extundo.com>
12736
12737         * lib/strndup.c: Use strnlen.h.
12738
12739         * lib/strnlen.h: New file.
12740
12741 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
12742
12743         * README: Typos.
12744
12745 2005-08-02  Simon Josefsson  <jas@extundo.com>
12746
12747         * modules/readline: New file.
12748
12749 2005-08-02  Simon Josefsson  <jas@extundo.com>
12750
12751         * modules/getdelim: New file.
12752
12753         * modules/getline: Rewrite, don't use getndelim2.
12754
12755 2005-08-02  Simon Josefsson  <jas@extundo.com>
12756
12757         * m4/getline.m4: Separate out getdelim stuff into separate module.
12758
12759         * m4/getdelim.m4: New file.
12760
12761 2005-08-02  Simon Josefsson  <jas@extundo.com>
12762
12763         * lib/getline.h, getline.c: Rewrite.
12764
12765         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
12766
12767 2005-07-31  Bruno Haible  <bruno@clisp.org>
12768
12769         * lib/lock.h (gl_lock_initializer): New macro.
12770         (gl_lock_define_initialized): Use it.
12771         (gl_rwlock_initializer): New macro.
12772         (gl_rwlock_define_initialized): Use it.
12773         (gl_recursive_lock_initializer): New macro.
12774         (gl_recursive_lock_define_initialized): Use it.
12775
12776 2005-07-30  Karl Berry  <karl@gnu.org>
12777
12778         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
12779         Report from Ben Pfaff, regarding getopt.
12780
12781 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
12782
12783         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
12784         normal way.
12785         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
12786         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
12787         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
12788         (gl_GETOPT): Use the new macros.  Most of the implementation
12789         is moved to the new macros.  This is for programs like Emacs
12790         that don't want all the functionality of gl_GETOPT.
12791
12792 2005-07-26  Bruno Haible  <bruno@clisp.org>
12793
12794         * m4/lock.m4: Update from GNU gettext.
12795
12796 2005-07-26  Bruno Haible  <bruno@clisp.org>
12797
12798         * lib/lock.h: Update from GNU gettext.
12799         * lib/lock.c: Update from GNU gettext.
12800
12801 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
12802
12803         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
12804         obsolescent AC_TRY_RUN.  Include the default includes files, for
12805         'exit'.
12806
12807 2005-07-24  Bruno Haible  <bruno@clisp.org>
12808
12809         * modules/visibility: New file.
12810         * MODULES.html.sh (Misc): Add visibility.
12811
12812 2005-07-24  Bruno Haible  <bruno@clisp.org>
12813
12814         * m4/visibility.m4: New file.
12815
12816 2005-07-24  Bruno Haible  <bruno@clisp.org>
12817
12818         * doc/visibility.texi: New file.
12819
12820 2005-07-22  Bruno Haible  <bruno@clisp.org>
12821
12822         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
12823         $(ALLOCA_H), redundant through BUILT_SOURCES.
12824         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
12825         redundant through BUILT_SOURCES.
12826         * modules/byteswap (Makefile.am): Remove explicit dependency on
12827         $(BYTESWAP_H), redundant through BUILT_SOURCES.
12828         * modules/fnmatch (Makefile.am): Remove explicit dependency on
12829         $(FNMATCH_H), redundant through BUILT_SOURCES.
12830         * modules/getopt (Makefile.am): Remove explicit dependency on
12831         $(GETOPT_H), redundant through BUILT_SOURCES.
12832         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
12833         redundant through BUILT_SOURCES.
12834         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
12835         redundant through BUILT_SOURCES.
12836         * modules/stdbool (Makefile.am): Remove explicit dependency on
12837         $(STDBOOL_H), redundant through BUILT_SOURCES.
12838         * modules/stdint (Makefile.am): Remove explicit dependency on
12839         $(STDINT_H), redundant through BUILT_SOURCES.
12840         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
12841         Remove explicit dependency on $(SYSEXITS_H).
12842         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
12843
12844 2005-07-18  Simon Josefsson  <jas@extundo.com>
12845
12846         * lib/check-version.c (check_version): Accept identical versions too.
12847
12848 2005-07-18  Bruno Haible  <bruno@clisp.org>
12849
12850         * modules/lock: New file.
12851         * MODULES.html.sh (Multithreading): New section.
12852
12853 2005-07-18  Bruno Haible  <bruno@clisp.org>
12854
12855         * m4/lock.m4: New file, from GNU gettext.
12856
12857 2005-07-18  Bruno Haible  <bruno@clisp.org>
12858
12859         * lib/lock.h: New file, from GNU gettext.
12860         * lib/lock.c: New file, from GNU gettext.
12861
12862 2005-07-18  Bruno Haible  <bruno@clisp.org>
12863
12864         * lib/lock.h (gl_once_t): New type.
12865         (gl_once_define, gl_once): New macros.
12866         * lib/lock.c (fresh_once): New variable.
12867         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
12868         functions.
12869
12870 2005-07-16  Simon Josefsson  <jas@extundo.com>
12871
12872         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
12873         workaround, suggested by Bruno.
12874
12875 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
12876
12877         * modules/xalloc (Depends-on): Add xalloc-die.
12878         * modules/xvasprintf (Depends-on): Add xalloc-die.
12879
12880 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
12881
12882         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
12883         with a minor change.
12884
12885 2005-07-15  Bruno Haible  <bruno@clisp.org>
12886
12887         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
12888         When using lib/poll.c, define poll as rpl_poll.
12889
12890 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
12891
12892         * modules/argp (Depends-on): Remove unlocked-io.
12893
12894 2005-07-14  Derek Price  <derek@ximbiot.com>
12895
12896         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
12897         for glob symlink bug.
12898
12899 2005-07-14  Bruno Haible  <bruno@clisp.org>
12900
12901         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
12902         Instead, test for *_unlocked function declarations directly.
12903
12904 2005-07-11  Simon Josefsson  <jas@extundo.com>
12905
12906         * modules/size_max: New file.
12907
12908         * modules/xsize: Depend on size_max module for size_max.m4.
12909
12910 2005-07-11  Simon Josefsson  <jas@extundo.com>
12911
12912         * lib/size_max.h: New file.
12913
12914 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
12915
12916         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
12917         copyright symbol and the year.
12918         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
12919         (version_etc_va): Use parameterized copyright notice.
12920         Reword to conform to the current GNU coding standards.
12921
12922 2005-07-11  Karl Berry  <karl@gnu.org>
12923
12924         * doc/gnulib.texi (Quoting): new node.
12925         (Initial import): more info, from Patrice.
12926
12927 2005-07-11  Bruno Haible  <bruno@clisp.org>
12928
12929         * gnulib-tool (func_usage): Document option --avoid.
12930         (Command line options): Handle --avoid.
12931         (func_acceptable): New function.
12932         (func_modules_transitive_closure): Use it.
12933
12934 2005-07-11  Bruno Haible  <bruno@clisp.org>
12935
12936         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
12937         Reported by Jim Meyering.
12938
12939 2005-07-10  Bruno Haible  <bruno@clisp.org>
12940
12941         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
12942         Needed when size_t is smaller than 'unsigned int'.
12943         Reported by Paul Eggert.
12944
12945 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
12946
12947         * modules/argp (Depends-on): Add unlocked-io
12948
12949 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
12950
12951         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
12952         block of defines.
12953
12954 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
12955
12956         * config/srclist.txt: Comment out regcomp.c, since we have a porting
12957         fix now.
12958
12959 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
12960         and Paul Eggert  <eggert@cs.ucla.edu>
12961
12962         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
12963         in wint_t, not wchar_t.  Remove now-unnecessary cast.
12964
12965 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
12966
12967         * modules/regex (Files): Add lib/regex_internal.c,
12968         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
12969         (Depends-on): Add extensions.
12970         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
12971
12972 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
12973
12974         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
12975         pathconf.
12976         * m4/same.m4 (gl_SAME): Likewise.
12977         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
12978
12979         * m4/regex.m4: Adjust to new libc regex implementation.
12980         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
12981         all the .c and .h parts of (the new) regex.
12982         Quote the m4 stuff better.
12983         Check for RE_ICASE bug of old gnulib.
12984         Check for REG_STARTEND of recent libc.
12985         Rename local variables from jm_* to gl_*.
12986         Quote operand of "test -f".
12987         Say "recent enough" version of libc, not "version 2".
12988         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
12989         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
12990         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
12991         Remove check for btowc, isascii.
12992         Require AM_LANGINFO_CODESET.
12993
12994 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
12995
12996         * lib/regex.c, regex.h: Sync from libc.
12997         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
12998         * lib/regexec.c:
12999         New files, synced from libc, except that regex_internal.h
13000         currently has a small porting fix.
13001
13002 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
13003
13004         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
13005         regex_internal.c, regexec.c.
13006         Add regex_internal.h too, but as a comment, since the libc version
13007         is currently broken in gnulib mode.
13008
13009 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
13010
13011         Support programs like Emacs that use gnulib but not gettext.
13012         * MODULES.html.sh (Internationalization functions): Add gettext-h.
13013         * modules/gettext-h: New file.
13014         * modules/gettext (Files): Remove lib/gettext.h.
13015         (Depends-on): Add gettext-h.
13016         (Makefile.am): Remove lib_SOURCES.
13017         * modules/argmatch, modules/c-stack, modules/closeout:
13018         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
13019         * modules/execute, modules/file-type, modules/getaddrinfo:
13020         * modules/getopt, modules/human, modules/javacomp:
13021         * modules/javaexec, modules/mkdir-p, modules/obstack:
13022         * modules/openat, modules/pagealign_alloc, modules/pipe:
13023         * modules/quotearg, modules/regex, modules/rpmatch:
13024         * modules/unicodeio, modules/userspec, modules/version-etc:
13025         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
13026         * modules/xsetenv:
13027         Depend on gettext-h, not gettext.
13028
13029 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
13030
13031         * gnulib-tool (func_import): Add support for 'public domain' license.
13032         * modules/alloca, modules/atexit, modules/memmove:
13033         Now public domain, not GPL.
13034         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
13035         * modules/realloc, modules/strerror, modules/strtod:
13036         Now LGPL, not GPL.
13037
13038 2005-07-05  Bruno Haible  <bruno@clisp.org>
13039
13040         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
13041         autoconf CVS. Needed for mingw.
13042
13043 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
13044
13045         Remove the dependency of the strftime module on the tzset module.
13046         * modules/strftime (Depends-on): Remove dependency on tzset.
13047
13048 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
13049
13050         Remove the dependency of the strftime module on the tzset module.
13051         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
13052         gl_FUNC_TZSET_CLOBBER.
13053
13054 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
13055
13056         Remove the dependency of the strftime module on the tzset module.
13057         * lib/strftime.c (my_strftime)
13058         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
13059         Copy the input structure, to work around some of the bug with
13060         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
13061         Solaris releases, you should also use the tzset module, but we won't
13062         require it as a dependency any more since we don't want LGPLed code
13063         to depend on GPLed code.
13064
13065 2005-07-02  Jim Meyering  <jim@meyering.net>
13066
13067         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
13068         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
13069         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
13070         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
13071
13072 2005-07-02  Jim Meyering  <jim@meyering.net>
13073
13074         * lib/backupfile.c (backup_args): Change a `0' to NULL.
13075
13076 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
13077
13078         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
13079         declares only 'struct timespec;' (!).
13080
13081 2005-07-01  Jim Meyering  <jim@meyering.net>
13082
13083         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
13084         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
13085         * lib/save-cwd.c, tempname.c:
13086         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
13087         and don't include <sys/file.h>).
13088
13089 2005-06-29  Jim Meyering  <jim@meyering.net>
13090
13091         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
13092         type name.  Use the variable name instead.
13093         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
13094         Likewise.
13095
13096 2005-06-28  Simon Josefsson  <jas@extundo.com>
13097
13098         * modules/check-version (Files): Add check-version.m4.
13099
13100 2005-06-28  Simon Josefsson  <jas@extundo.com>
13101
13102         * m4/check-version.m4: New file, suggested by Jim Meyering
13103         <jim@meyering.net>.
13104
13105 2005-06-28  Simon Josefsson  <jas@extundo.com>
13106
13107         * lib/check-version.h, lib/check-version.c: New files.
13108
13109 2005-06-28  Simon Josefsson  <jas@extundo.com>
13110
13111         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
13112         collision with global variable.  Better indentation.  Don't
13113         increment buffer pointer beyond buffer end.  Based on comments
13114         from Paul Eggert <eggert@cs.ucla.edu>.
13115
13116         * lib/base64.h: Indent.
13117
13118 2005-06-28  Simon Josefsson  <jas@extundo.com>
13119
13120         * doc/gnulib.texi (Library version handling): New section.
13121
13122 2005-06-28  Jim Meyering  <jim@meyering.net>
13123
13124         * check-module (find_included_lib_files): Hard-code another
13125         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
13126         but modules/fts-lgpl (correctly) does not list those files.
13127
13128         * modules/canonicalize (Files): Add lib/pathmax.h.
13129
13130 2005-06-25  Simon Josefsson  <jas@extundo.com>
13131
13132         * modules/check-version: New file.
13133
13134 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
13135
13136         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
13137         initializer of struct addrinfo, as an indication that we don't
13138         care how many members the structure has.
13139
13140 2005-06-24  Derek Price  <derek@ximbiot.com>
13141         and Bruno Haible  <bruno@clisp.org>
13142
13143         Remove stat module & update lstat.
13144         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
13145         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
13146         * m4/stat.m4: Remove this file.
13147
13148 2005-06-24  Derek Price  <derek@ximbiot.com>
13149         and Bruno Haible  <bruno@clisp.org>
13150
13151         Remove stat module & update lstat.
13152         * lib/stat.c: Remove this file...
13153         (slash_aware_lstat): ...moving this content and its support...
13154         * lib/lstat.c (rpl_lstat): ...into here.
13155         * lib/lstat.h: New file.
13156
13157 2005-06-24  Derek Price  <derek@ximbiot.com>
13158         and Bruno Haible  <bruno@clisp.org>
13159
13160         Remove stat module & update lstat.
13161         * config/srclist.txt (libc sources): Remove stat.
13162
13163 2005-06-24  Derek Price  <derek@ximbiot.com>
13164         and Bruno Haible  <bruno@clisp.org>
13165
13166         Remove stat module & update lstat.
13167         * MODULES.html.sh (stat): Remove.
13168         * MODULES.html: Regenerated.
13169         * modules/lstat (Description): Correct function name.
13170         (Files): Add "lstat.h".
13171         (Depends-on): Remove stat, add xalloc, stat-macros.
13172         * modules/stat: Remove this file.
13173         (Include): Add "lstat.h", remove <sys/stat.h>.
13174
13175 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
13176
13177         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
13178         (ranged_convert): Don't save conversion in a temporary struct.
13179         This causes a warning with GCC 4.0.0, and anyway in the typical
13180         case it's not worth the extra 100 bytes or so of code.
13181         (ranged_convert, __mktime_internal): When calling a function via a
13182         pointer P, use P () rather than (*P) (), as we now assume C89 or
13183         better.
13184
13185 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
13186
13187         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
13188         "who -r" failed to give output.  Problem reported by Tim Waugh.
13189
13190         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
13191         (xcalloc): Use it to avoid needless tests.
13192         Problem reported by Jim Meyering.
13193
13194 2005-06-20  Derek Price  <derek@ximbiot.com>
13195
13196         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
13197         unnecessary for Autoconfs > 2.59c.
13198
13199 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
13200
13201         * lib/argp.h (__option_is_short): Check upper limit of
13202         __key. Isprint() requires its argument to have the value
13203         of an unsigned char or EOF.
13204
13205 2005-06-16  Jim Meyering  <jim@meyering.net>
13206
13207         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
13208         when either N or S is zero.
13209
13210 2005-06-16  Derek Price  <derek@ximbiot.com>
13211
13212         * m4/bison.m4: Declare YACC & YFLAGS precious.
13213
13214 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
13215
13216         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
13217         multibyte string or pattern, fall back on unibyte matching.
13218         Problem reported by James Youngman.
13219
13220 2005-06-08  Bruno Haible  <bruno@clisp.org>
13221
13222         * modules/csharpcomp: New file.
13223         * MODULES.html.sh (C#): Add csharpcomp.
13224
13225 2005-06-08  Bruno Haible  <bruno@clisp.org>
13226
13227         * m4/csharpcomp.m4: New file, from GNU gettext.
13228
13229 2005-06-08  Bruno Haible  <bruno@clisp.org>
13230
13231         * lib/csharpcomp.h: New file, from GNU gettext.
13232         * lib/csharpcomp.c: New file, from GNU gettext.
13233         * lib/csharpcomp.sh.in: New file, from GNU gettext.
13234
13235 2005-06-08  Bruno Haible  <bruno@clisp.org>
13236
13237         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
13238         warning on mingw.
13239
13240 2005-06-07  Derek Price  <derek@ximbiot.com>
13241
13242         Sync from CVS.
13243         * lib/glob_.h: Indent nested #ifdef.
13244
13245 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
13246
13247         Sync from coreutils.
13248         Use "file name" when talking about file names, instead of "filename"
13249         or "path", as per the GNU coding standards.
13250         * lib/mkdir-p.c: Renamed from makepath.c.
13251         (make_dir_parents): Renamed from make_path.  All callers changed.
13252         * lib/mkdir-p.h: Likewise.  All includers changed.
13253         * lib/filenamecat.c: Renamed from path-concat.c.
13254         (file_name_concat): Renamed from path_concat.  All callers changed.
13255         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
13256         * lib/filenamecat.h: Likewise.  All includers changed.
13257         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
13258         in comments or local variable names.
13259         * lib/basename.c: Likewise.
13260         * lib/canonicalize.c, canonicalize.h: Likewise.
13261         * lib/dirname.c, dirname.h: Likewise.
13262         * lib/euidaccess.c: Likewise.
13263         * lib/exclude.c: Likewise
13264         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
13265         * lib/fsusage.c, fsuage.h: Likewise.
13266         * lib/fts.c, fts_.h: Likewise.
13267         * lib/getcwd.c: Likewise.
13268         * lib/getloadavg.c: Likewise.
13269         * lib/mkstemp.c: Likewise.
13270         * lib/mountlist.c, mountlist.h: Likewise.
13271         * lib/openat.c, openat.h: Likewise.
13272         * lib/readlink-stub.c: Likewise.
13273         * lib/readutmp.c, readutmp.h: Likewise.
13274         * lib/rename.c: Likewise.
13275         * lib/rmdir.c: Likewise.
13276         * lib/same.c: Likewise.
13277         * lib/savedir.c: Likewise.
13278         * lib/stripslash.c: Likewise.
13279         * lib/tempname.c: Likewise.
13280         * lib/xreadlink.c: Likewise.
13281         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
13282         All uses changed.
13283         * lib/exclude.h: Likewise.
13284
13285         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
13286         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
13287         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
13288         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
13289         * lib/pathmax.h: Include <limits.h> unconditionally, since other
13290         files have been getting away with it for years (MORE/BSD 4.3
13291         is extinct now).
13292         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
13293         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
13294
13295         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
13296         Define to 256, not 255, as per modern POSIX.
13297
13298 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
13299
13300         Sync from coreutils.
13301         Use "file name" when talking about file names, instead of "filename"
13302         or "path", as per the GNU coding standards.
13303         * MODULES.html.sh: mkdir-p renamed from makepath.
13304         filenamecat renamed from path-concat.
13305         * modules/filenamecat: Renamed from modules/path-concat.
13306         (Files): filenamecat.h and filenamecat.c renamed from
13307         path-concat.h and path-concat.c.
13308         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
13309         (Include): filenamecat.h, not path-concat.h.
13310         * modules/mkdir-p: Renamed from modules/makepath.
13311         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
13312         makepath.c.
13313         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
13314         (Include): mkdir-p.h, not makepath.h.
13315
13316 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
13317
13318         Sync from coreutils.
13319         * m4/mkdir-p.m4: Renamed from makepath.m4.
13320         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
13321         Rename files from makepath.c to mkdir-p.c, and from
13322         makepath.h to mkdir-p.h.
13323         * m4/filenamecat.m4: Renamed from path-concat.m4.
13324         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
13325         Rename files from path-concat.c to filenamecat.c,
13326         and from path-concat.h to filenamecat.h.
13327         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
13328         "file name" in local variables or comments.
13329         * m4/rename.m4: Likewise.
13330
13331 2005-06-01  Bruno Haible  <bruno@clisp.org>
13332
13333         * modules/csharpexec: New file.
13334         * MODULES.html.sh (C#): New section.
13335
13336 2005-06-01  Bruno Haible  <bruno@clisp.org>
13337
13338         * m4/csharp.m4: New file, from GNU gettext.
13339         * m4/csharpexec.m4: New file, from GNU gettext.
13340
13341 2005-06-01  Bruno Haible  <bruno@clisp.org>
13342
13343         * lib/csharpexec.h: New file, from GNU gettext.
13344         * lib/csharpexec.c: New file, from GNU gettext.
13345         * lib/csharpexec.sh.in: New file, from GNU gettext.
13346
13347 2005-05-31  Derek Price  <derek@ximbiot.com>
13348             Paul Eggert  <eggert@cs.ucla.edu>
13349
13350         Sync from cvs.
13351         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
13352
13353 2005-05-31  Derek Price  <derek@ximbiot.com>
13354             Paul Eggert  <eggert@cs.ucla.edu>
13355
13356         Sync from cvs.
13357         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
13358
13359 2005-05-29  Derek Price  <derek@ximbiot.com>
13360
13361         * config/srclist.txt (glob_.h, glob.c): Add these files.
13362
13363 2005-05-29  Derek Price  <derek@ximbiot.com>
13364
13365         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
13366         * modules/glob: New file.
13367         * modules/getlogin_r: Add link to POSIX spec in description.
13368
13369 2005-05-29  Derek Price  <derek@ximbiot.com>
13370             Paul Eggert  <eggert@cs.ucla.edu>
13371
13372         * m4/glob.m4: New file.
13373
13374 2005-05-29  Derek Price  <derek@ximbiot.com>
13375             Paul Eggert  <eggert@cs.ucla.edu>
13376
13377         * lib/glob_.h, lib/glob.c: New files.
13378
13379 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
13380
13381         * modules/fts (Files): Remove m4/inttypes-pri.m4.
13382         * modules/fts-lgpl (Depends-on): Remove gettext.
13383
13384 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
13385
13386         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
13387         and don't require gt_INTTYPES_PRI.
13388
13389 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
13390
13391         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
13392
13393         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
13394         the configuration hassle isn't worth it.
13395         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
13396         (LONGEST_MODIFIER, PRIuMAX): Remove.
13397
13398 2005-05-27  Bruno Haible  <bruno@clisp.org>
13399
13400         * lib/getlogin_r.h: Remove second include of <stddef.h>.
13401
13402 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
13403
13404         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
13405         _POSIX_PTHREAD_SEMANTICS for Solaris.
13406
13407 2005-05-25  Derek Price  <derek@ximbiot.com>
13408
13409         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
13410
13411 2005-05-25  Derek Price  <derek@ximbiot.com>
13412             Paul Eggert  <eggert@cs.ucla.edu>
13413
13414         * modules/getlogin_r, m4/getlogin_r.m4: New files.
13415         * lib/getlogin_r.c, getlogin_r.h: New files.
13416
13417 2005-05-25  Bruno Haible  <bruno@clisp.org>
13418             Derek Price  <derek@ximbiot.com>
13419
13420         * lib/getlogin_r.h: Simplify API documentation.
13421
13422 2005-05-23  Derek Price  <derek@ximbiot.com>
13423
13424         * modules/minmax (Files): Add m4/minmax.m4.
13425         (configure.ac): Add gl_MINMAX.
13426
13427 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
13428
13429         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
13430         so that unistd-safer.h (GPL'ed code) need not be included.
13431
13432 2005-05-22  Bruno Haible  <bruno@clisp.org>
13433
13434         * m4/minmax.m4: New file.
13435         Based on a patch by Derek Price <derek@ximbiot.com>.
13436
13437 2005-05-22  Bruno Haible  <bruno@clisp.org>
13438
13439         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
13440         (INT64_MIN): Fix definition.
13441         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
13442
13443         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
13444         NEED_SIGNED_INT_TYPES.
13445
13446         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
13447         HAVE_SYSTEM_INTTYPES.
13448
13449 2005-05-22  Bruno Haible  <bruno@clisp.org>
13450
13451         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
13452         Also include <sys/param.h> if it defines MIN, MAX.
13453         Based on a patch by Derek Price <derek@ximbiot.com>.
13454
13455 2005-05-21  Jim Meyering  <jim@meyering.net>
13456
13457         * modules/fts (Files): Add m4/inttypes-pri.m4.
13458         (Depends-on): Add lstat and remove gettext.  Alphabetize.
13459
13460 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
13461
13462         New fts module.
13463         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
13464         (setup_dir, free_dir): New functions.
13465         (enter_dir, leave_dir): Define trivial
13466         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
13467         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
13468         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
13469         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
13470         Move to fts-cycle.c.
13471         (fts_open): Use setup_dir.
13472         (fts_close): Use free_dir.
13473         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
13474         This adds a label and some gotos, but the alternatives were messier.
13475         Check for memory allocation failure when entering a dir.
13476         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
13477         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
13478         (FTS): New member fts_cycle, that is a union that contains the
13479         old active_dir_ht and cycle_state.  All uses changed to mention
13480         fts_cycle.ht and fts_cycle.state.
13481         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
13482         fts.c, with the following changes:
13483         (setup_dir, free_dir): New functions.
13484         (enter_dir): Now returns bool.  Return true if successful, false
13485         if memory exhausted.  All callers changed.
13486         Do not bother partly cleaning up on
13487         memory allocation failure; that is free_dir's job.
13488         However, free ad if hash_insert fails, to avoid memory leak.
13489         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
13490         fts->fts_options to see which union member to use.
13491
13492 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
13493
13494         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
13495         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
13496
13497 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
13498
13499         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
13500
13501 2005-05-20  Jim Meyering  <jim@meyering.net>
13502
13503         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
13504         Now a macro, to pacify GCC.
13505
13506 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
13507
13508         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
13509         of -1.
13510
13511 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
13512
13513         * lib/chown.c (rpl_chown): Return -1 on failure.
13514
13515 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
13516
13517         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
13518         Don't check for stddef.h.
13519         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
13520         don't use its results.
13521         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
13522         since we include them unconditionally.  Don't require
13523         AM_STDBOOL_H, since stdbool is a prerequisite.
13524         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
13525         since we assume C89 or better.
13526         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
13527         as we don't use their results.
13528         Don't check for fchdir, memmove, memset, strrchr, as we use
13529         them unconditionally.
13530         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
13531         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
13532
13533 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
13534
13535         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
13536         Include <stddef.h> unconditionally, since we assume C89 now.
13537         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
13538         * lib/fts.c: Include fts_.h first, to check interface.
13539         Do not include intprops.h; no longer needed.
13540         Include cycle-check.h and hash.h, since fts_.h no longer does.
13541         Remove unnecessary casts of closedir to void.
13542         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
13543         decide whether to decrement nlinks.
13544         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
13545         (FTS): Use struct hash_table * instead of Hash_table, so that
13546         we no longer need to include hash.h here.
13547
13548 2005-05-18  Jim Meyering  <jim@meyering.net>
13549
13550         * modules/dirfd (License): Change to LGPL.  Most of the code
13551         is already in the public domain.
13552
13553 2005-05-18  Jim Meyering  <jim@meyering.net>
13554
13555         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
13556         Reported by Yoann Vandoorselaere.
13557
13558 2005-05-17  Jim Meyering  <jim@meyering.net>
13559
13560         * m4/fts.m4: New file, from coreutils.
13561
13562 2005-05-17  Jim Meyering  <jim@meyering.net>
13563
13564         * lib/fts.c, lib/fts_.h: New files, from coreutils.
13565
13566 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
13567
13568         Sync from coreutils.
13569         * m4/unlinkdir.m4: New file.
13570
13571 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
13572
13573         Sync from coreutils.
13574         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
13575         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
13576         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
13577         White space changes only.
13578         * lib/makepath.c (make_path): Port to hosts where leading "//" is
13579         special.
13580         * lib/yesno.c: Include getline.h, not ctype.h.
13581         (yesno): Don't remove leading white space; POSIX doesn't allow it.
13582         Use getline to remove arbitrary restriction on response length.
13583
13584 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
13585
13586         * config/srclist-update: Spell out "Street" in FSF postal
13587         mail address; this is the style the FSF seems to prefer.
13588
13589         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
13590         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
13591         this updates FSF postal mail address.
13592
13593         Sync from coreutils.
13594         * modules/unlinkdir: New file.
13595         * modules/yesno (Depends-on): Add getline.
13596         * MODULES.html.sh (File system functions): Add unlinkdir.
13597
13598 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
13599
13600         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
13601         lib/strsep.h:
13602         Change the initial comment to refer to GPL, not LGPL.
13603         gnulib-tool will change it to LGPL as needed.
13604
13605         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
13606         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
13607         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
13608         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
13609         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
13610         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
13611         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
13612         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
13613         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
13614         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
13615         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
13616         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
13617         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
13618         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
13619         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
13620         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
13621         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
13622         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
13623         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
13624         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
13625         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
13626         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
13627         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
13628         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
13629         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
13630         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
13631         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
13632         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
13633         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
13634         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
13635         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
13636         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
13637         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
13638         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
13639         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
13640         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
13641         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
13642         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
13643         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
13644         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
13645         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
13646         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
13647         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
13648         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
13649         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
13650         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
13651         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
13652         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
13653         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
13654         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
13655         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
13656         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
13657         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
13658         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
13659         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
13660         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
13661         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
13662         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
13663         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
13664         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
13665         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
13666         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
13667         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
13668         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
13669         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
13670         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
13671         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
13672         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
13673         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
13674         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
13675         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
13676         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
13677         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
13678         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
13679         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
13680         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
13681         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
13682         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
13683         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
13684         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
13685         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
13686         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
13687         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
13688         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
13689         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
13690         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
13691         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
13692         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
13693         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
13694         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
13695         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
13696         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
13697         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
13698         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
13699         lib/yesno.c, lib/yesno.h:
13700         Update FSF postal mail address.
13701
13702 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
13703
13704         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
13705         tests/test-memmem.c, tests/test-stpncpy.c:
13706         Update FSF postal mail address.
13707
13708 2005-05-13  Bruno Haible  <bruno@clisp.org>
13709
13710         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
13711         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
13712         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
13713         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
13714         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
13715         Add support for 64-bit integers in the MSVC compiler.
13716
13717 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
13718
13719         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
13720
13721 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
13722
13723         * gnulib-tool (func_import): Sort and uniquify recommended includes.
13724
13725 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
13726
13727         * doc/getdate.texi (General date syntax): Don't say that date
13728         date --iso-8601=ns generates acceptable dates; it doesn't yet.
13729         Problem reported by Nic Ferrier.
13730
13731 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
13732
13733         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
13734         specified in ai_socktype. Fix invalid ai_protocol
13735         check. ai_protocol is usually set to 0 or depending on
13736         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
13737         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
13738         ai_socktype / ai_protocol in the returned addrinfo structure.
13739
13740 2005-05-10  Simon Josefsson  <jas@extundo.com>
13741
13742         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
13743         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
13744
13745 2005-05-10  Karl Berry  <karl@gnu.org>
13746
13747         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
13748         (from http://www.gnu.org/licenses).
13749         * doc/COPYING.LIB: also rename to COPYING.LESSER.
13750         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
13751         fdl.texi suffices.
13752
13753 2005-05-10  Karl Berry  <karl@gnu.org>
13754
13755         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
13756         (COPYING.DOC): remove.
13757
13758         * config/srclist-update: new FSF address.
13759
13760 2005-05-10  Derek Price  <derek@ximbiot.com>
13761
13762         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
13763         possible.
13764
13765 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
13766             Bruno Haible  <bruno@clisp.org>
13767
13768         * modules/inet_ntop: New file.
13769         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
13770         inet_ntop.
13771
13772 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
13773             Bruno Haible  <bruno@clisp.org>
13774
13775         * m4/inet_ntop.m4: New file.
13776
13777 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
13778             Bruno Haible  <bruno@clisp.org>
13779
13780         * lib/inet_ntop.h: New file.
13781         * lib/inet_ntop.c: New file, from glibc with modifications.
13782
13783 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
13784
13785         * modules/time_r (License): Change to LGPL.
13786         * modules/extensions (License): Change to LGPL.  Actually,
13787         the license is more permissive than that, but currently gnulib-tool
13788         doesn't know how to handle more-permissive licenses.
13789
13790         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
13791         Problem reported by Dave Love.
13792
13793 2005-05-08  Jim Meyering  <jim@meyering.net>
13794
13795         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
13796         blank.
13797
13798 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
13799
13800         * modules/argmatch (Depends-on): Add stdbool.
13801         * modules/backupfile (Depends-on): Likewise.
13802         * modules/chdir-long (Depends-on): Likewise.
13803         * modules/closeout (Depends-on): Likewise.
13804         * modules/cycle-check (Depends-on): Likewise.
13805         * modules/dirname (Depends-on): Likewise.
13806         * modules/fnmatch (Depends-on): Likewise.
13807         * modules/fsusage (Depends-on): Likewise.
13808         * modules/fwriteerror (Depends-on): Likewise.
13809         * modules/getcwd (Depends-on): Likewise.
13810         * modules/getloadavg (Depends-on): Likewise.
13811         * modules/hard-locale (Depends-on): Likewise.
13812         * modules/makepath (Depends-on): Likewise.
13813         * modules/mountlist (Depends-on): Likewise.
13814         * modules/nanosleep (Depends-on): Likewise.
13815         * modules/posixtm (Depends-on): Likewise.
13816         * modules/quotearg (Depends-on): Likewise.
13817         * modules/readtokens (Depends-on): Likewise.
13818         * modules/readtokens0 (Depends-on): Likewise.
13819         * modules/readutmp (Depends-on): Likewise.
13820         * modules/save-cwd (Depends-on): Likewise.
13821         * modules/strftime (Depends-on): Likewise.
13822         * modules/userspec (Depends-on): Likewise.
13823         * modules/utimecmp (Depends-on): Likewise.
13824         * modules/xgetcwd (Depends-on): Likewise.
13825         * modules/xnanosleep (Depends-on): Likewise.
13826         * modules/xstrtod (Depends-on): Likewise.
13827         * modules/yesno (Depends-on): Likewise.
13828
13829 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
13830
13831         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
13832         needless checks.
13833
13834 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
13835
13836         Merge from coreutils.  Among other things,
13837         add bulletproofing for cases where stdin, stdout, or stderr are closed.
13838         * lib/fd-safer.c: New file.
13839         * lib/fcntl-safer.h, open-safer.c: Remove.
13840         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
13841         * lib/dup-safer.c: Include unistd-safer.h first.
13842         Don't include errno.h.
13843         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
13844         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
13845         * lib/file-type.c: Rely on file-type.h change.
13846         * lib/getloadavg.c: Include unistd-safer.h.
13847         (getloadavg): Use safer open.
13848         * lib/getusershell.c: Include "stdio-safer.h".
13849         (getusershell): Use safer fopen.
13850         * lib/long-options.c (long_options): Use NULL rather than 0.
13851         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
13852         'free'.
13853         * lib/modechange.c: Likewise.
13854         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
13855         (MODE_DONE): New constant.
13856         (struct mode_change): Remove 'next' member.
13857         (make_node_op_equals): New function; like the old one of the
13858         same name, except it allocates an array.
13859         (mode_compile, mode_create_from_ref): Use it.
13860         (mode_compile): Allocate result as an array, not a linked list.
13861         Parse octal string ourself, so that we catch mistakes like "+0".
13862         (mode_adjust): Arg is an array, not a linked list.
13863         * lib/modechange.c: Include stat-macros.h, xalloc.h.
13864         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
13865         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
13866         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
13867         Remove.  This is now stat-macros.h's job.
13868         (talloc): Remove.  All callers replaced by xalloc, so that
13869         our invokers don't have to worry about reporting memory failures.
13870         (make_node_op_equals): Remove.
13871         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
13872         New constants.
13873         (struct mode_change): Moved here from modechange.h.
13874         (mode_append_entry): Remove.
13875         (mode_compile): Remove MASKED_OPS arg, since it encouraged
13876         apps to have incorrect behavior.  Use simpler algorithm for head
13877         and tail.  Don't futz with umask; that's now the job of mode_adjust.
13878         Detect more invalid usages rather than having somewhat-random behavior.
13879         Don't insert an "a=" action, as that leads to incorrect behavior.
13880         (mode_compile, mode_create_from_ref): Return NULL on error instead
13881         of an enum, since now there's only one way to have an error.  All
13882         callers changed.
13883         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
13884         at the correct time.  Simplify calculation of "+u" and its ilk.
13885         Don't mishandle "+X".
13886         (mode_free): Remove "register" and localize decls.
13887         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
13888         (struct mode_change): Move to modechange.c; callers don't
13889         need to see this stuff.
13890         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
13891         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
13892         (mode_change, mode_adjust): Reflect the new signatures noted above.
13893         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
13894         that might redefine system include files.
13895         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
13896         (my_usleep): Use NULL rather than (void *) 0.
13897         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
13898         Use siginterrupt to specify that system calls should be interrupted.
13899         (rpl_nanosleep): Move initialization of suspended closer to call of
13900         my_usleep.
13901         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
13902         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
13903         (desirable_utmp_entry): New function.
13904         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
13905         using x2nrealloc, to simplify logic.
13906         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
13907         size calculation.  Do not assume utmp file is a regular file.
13908         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
13909         (READ_UTMP_CHECK_PIDS): New constant.
13910         * lib/save-cwd.c: Include unistd-safer.h.
13911         (save_cwd): Use fd_safer.
13912         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
13913         [!_LIBC] Include "stat-macros.h" instead.
13914         * lib/unistd-safer.h (fd_safer): New decl.
13915
13916 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
13917
13918         * modules/getloadavg (Depends-on): Add unistd-safer.
13919         * modules/getusershell (Depends-on): Add stdio-safer.
13920         * modules/lstat (Depends-on): Remove xalloc.
13921         * modules/mkstemp (Depends-on): Add stat-macros.
13922         * modules/modechange (Depends-on): Remove xstrtol.
13923         Add stat-macros, xalloc.
13924         * modules/save-cwd (Depends-on): Add unistd-safer.
13925         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
13926         * modules/unistd-safer (Files): Add lib/fd-safer.c
13927         (Makefile.am): Remove lib_SOURCES.
13928
13929         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
13930         Remove fcntl-safer; unistd-safer supersedes it.
13931
13932 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
13933
13934         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
13935         AC_HEADER_STAT.
13936         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
13937         (gl_PREREQ_CHOWN): Remove.
13938         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
13939         it.  Don't require AC_HEADER_STAT.
13940         (gl_PREREQ_LSTAT): Remove.
13941         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
13942         Don't require AC_HEADER_STAT.
13943         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
13944         (gl_PREREQ_RMDIR): Remove.
13945         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
13946         mention stat-macros.h or AC_HEADER_STAT, since we'll make
13947         the stat-macros module a prerequisite.
13948         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
13949         * m4/filemode.m4 (gl_FILEMODE): Likewise.
13950         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
13951         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
13952         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
13953         variable names.
13954         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
13955         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
13956         variable prefixes.
13957         * m4/fcntl-safer.m4: Remove.
13958         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
13959         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
13960         Invoke gl_PREREQ_FD_SAFER.
13961         (gl_PREREQ_FD_SAFER): New macro.
13962         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
13963         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
13964         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
13965         Remove duplicate call to AC_LIBOBJ(readutmp).
13966         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
13967
13968         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
13969         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
13970
13971 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
13972
13973         * MODULES.html.sh (Misc): Add byteswap.
13974
13975 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
13976
13977         * modules/getcwd (Depends-on): Add extensions.
13978         * modules/openat (Depends-on): Likewise.
13979
13980 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
13981
13982         * modules/byteswap: New file.
13983
13984 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
13985
13986         * m4/byteswap.m4: New file.
13987
13988 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
13989
13990         * lib/byteswap_.h: New file.
13991
13992 2005-04-25  Karl Berry  <karl@gnu.org>
13993
13994         * m4/gettext.m4: Update from GNU gettext 0.14.4.
13995
13996 2005-04-25  Albert Chin  <china@thewrittenword.com>
13997
13998         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
13999         Toolkit C bug.
14000
14001 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
14002
14003         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
14004         (func_ln_if_changed) Remove forcibly for no error message
14005         in case file does not exist.
14006
14007 2005-04-19  Simon Josefsson  <jas@extundo.com>
14008
14009         * gnulib-tool (Options): Make --symlink mean --symbolic.
14010
14011 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
14012
14013         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
14014
14015 2005-04-16  Simon Josefsson  <jas@extundo.com>
14016
14017         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
14018
14019 2005-04-15  Simon Josefsson  <jas@extundo.com>
14020
14021         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
14022
14023 2005-04-15  Simon Josefsson  <jas@extundo.com>
14024
14025         * gnulib-tool: Rename --symlink to --symbolic.
14026
14027 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
14028
14029         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
14030         symbolic links to files instead of copying/moving.  Add --aux-dir,
14031         specifying directory relative --dir where auxiliary build tools
14032         are placed.
14033
14034 2005-04-14  Bruno Haible  <bruno@clisp.org>
14035
14036         * modules/allocsa (License): Change to LGPL.
14037         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
14038
14039 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
14040
14041         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
14042         that "UTC +1 second" continues to work.  Problem reported
14043         by Dmitry V. Levin.
14044         (relunit_snumber): New rule.
14045         (relunit): Use it.
14046
14047 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
14048
14049         * lib/getdate.y (universal_time_zone_table): New constant.
14050         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
14051         universal_time_zone_table.
14052         (lookup_zone): Prefer universal_time_zone_table to
14053         local_time_zone_table, so that "GMT" time stamps are allowed in
14054         London during the summer.  Problem reported by Ian Abbott.
14055
14056 2005-04-12  Jim Meyering  <jim@meyering.net>
14057
14058         * lib/human.c (humblock): Set *options even when returning due to
14059         xstrtoumax conversion failure.  Thanks to a used-uninitialized
14060         warning from gcc-4.
14061
14062 2005-04-09  Jim Meyering  <jim@meyering.net>
14063
14064         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
14065         -Wuninitialized: initialize tm0.tm_year.
14066
14067 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
14068
14069         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
14070         count, since there's no maximum.  All uses changed.
14071         Add member dsts_seen.
14072         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
14073         not being INT_MAX.
14074         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
14075         Use pc_rels_seen to decide whther a date is absolute.
14076
14077         * lib/getdate.y (number): Don't overwrite year.
14078         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
14079         check.
14080
14081 2005-04-02  Simon Josefsson  <jas@extundo.com>
14082
14083         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
14084         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
14085
14086 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
14087
14088         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
14089         where no absolute path name can be longer than PATH_MAX.
14090
14091 2005-03-27  Jim Meyering  <jim@meyering.net>
14092
14093         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
14094
14095 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
14096
14097         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
14098         "one's complement" -> "ones' complement" in comment, as per Knuth.
14099         "value of type" -> "type or expression" in comment.
14100         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
14101
14102 2005-03-26  Jim Meyering  <jim@meyering.net>
14103
14104         Comment nits.
14105         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
14106         Correct typos: s/or/of/.
14107
14108 2005-03-26  Jim Meyering  <jim@meyering.net>
14109
14110         * modules/check-include-files: Move to ../ and rename to...
14111         * check-module: ...this.
14112
14113 2005-03-25  Jim Meyering  <jim@meyering.net>
14114
14115         * modules/xvasprintf (Files): Add xalloc.h.
14116
14117 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
14118
14119         * modules/gettext (Files): config/config.rpath ->
14120         build-aux/config.rpath
14121         * modules/iconv (Files): Likewise.
14122         Problem reported by Oskar Liljeblad.
14123
14124 2005-03-23  Jim Meyering  <jim@meyering.net>
14125
14126         * modules/check-include-files: New script to check for
14127         missing dependencies, multiple includes, etc.
14128
14129         * modules/c-strtold (Depends-on): Add xalloc.
14130         * modules/c-strtod (Depends-on): Add xalloc.
14131         * modules/hash (Depends-on): Add xalloc.
14132         (Files): Remove lib/xalloc.h.
14133
14134         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
14135         * modules/userspec (Files): Add lib/inttostr.h.
14136
14137 2005-03-23  Jim Meyering  <jim@meyering.net>
14138
14139         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
14140
14141 2005-03-22  Jim Meyering  <jim@meyering.net>
14142
14143         * modules/stat-macros: New module.
14144         * modules/canonicalize, modules/euidaccess, modules/file-type,
14145         * modules/filemode, modules/lchown, modules/makepath,
14146         * modules/rmdir, modules/stat: Depend on new stat-macros module
14147         rather than listing lib/stat-macros.h manually.
14148         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
14149
14150 2005-03-22  Jim Meyering  <jim@meyering.net>
14151
14152         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
14153
14154 2005-03-22  Bruno Haible  <bruno@clisp.org>
14155
14156         * config/srclist.txt: Replace target directory 'config' with
14157         'build-aux'.
14158         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
14159         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
14160         ../build-aux/.
14161
14162 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
14163
14164         * modules/chdir-long (Depends-on): Add mempcpy.
14165
14166         * modules/acl, modules/backupfile, modules/c-strtod,
14167         modules/c-strtold, modules/canon-host, modules/canonicalize,
14168         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
14169         modules/exclude, modules/exitfail, modules/file-type,
14170         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
14171         modules/getdate, modules/getline, modules/getpagesize,
14172         modules/getpass, modules/getugroups, modules/group-member,
14173         modules/hard-locale, modules/hash, modules/human, modules/idcache,
14174         modules/inttostr, modules/long-options, modules/makepath,
14175         modules/md5, modules/memcasecmp, modules/memcoll,
14176         modules/modechange, modules/mountlist, modules/path-concat,
14177         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
14178         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
14179         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
14180         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
14181         modules/strftime, modules/strndup, modules/strverscmp,
14182         modules/timespec, modules/unlocked-io, modules/userspec,
14183         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
14184         modules/yesno:
14185         Remove lib_SOURCES line from Makefile.am section, as this is now
14186         done automatically by the corresponding Autoconf macro.
14187
14188 2005-03-21  Jim Meyering  <jim@meyering.net>
14189
14190         Changes imported from coreutils.
14191
14192         * lib/cycle-check.c: Don't include xalloc.h.
14193
14194         * lib/path-concat.c: Don't include assert.h.
14195         (path_concat): Remove assertion that would have triggered
14196         for ABASE starting with more than one slash.
14197         Reported by Andreas Schwab.
14198
14199         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
14200         properly when ABASE is an absolute file name.
14201         Correct the description of this function.
14202         Include <assert.h>.
14203         Add an assertion and a test driver.
14204         This fixes a bug introduced on 2004-07-02.
14205         Andreas Schwab reported the resulting failure of cp --parents:
14206         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
14207
14208 2005-03-21  Jim Meyering  <jim@meyering.net>
14209
14210         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
14211         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
14212
14213 2005-03-21  Jim Meyering  <jim@meyering.net>
14214         and  Paul Eggert  <eggert@cs.ucla.edu>
14215
14216         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
14217         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
14218         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
14219         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
14220         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
14221         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
14222         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
14223         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
14224         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
14225         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
14226         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
14227         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
14228         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
14229         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
14230         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
14231         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
14232         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
14233         for these modules.
14234
14235 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
14236
14237         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
14238         (which shouldn't happen), generate nothing instead of returning 0
14239         immediately, so that nstrftime (NULL, ...) doesn't return 0.
14240
14241 2005-03-16  Bruno Haible  <bruno@clisp.org>
14242
14243         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
14244         HAVE_LONGLONG_64BIT.
14245
14246 2005-03-16  Bruno Haible  <bruno@clisp.org>
14247
14248         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
14249         HAVE_LONGLONG_64BIT.
14250
14251 2005-03-16  Bruno Haible  <bruno@clisp.org>
14252
14253         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
14254         HAVE_LONGLONG_64BIT.
14255
14256 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
14257
14258         * lib/strftime.c (my_strftime): Prepend space to format so that we can
14259         reliably distinguish strftime failure from empty output on POSIX
14260         hosts.
14261
14262 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
14263
14264         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
14265         (iconv_string): Don't guess a size-zero buffer, as that might cause
14266         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
14267         result would be 'too large', where 'too large' is (heuristically)
14268         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
14269         overflow concerns.  This will prevent some unwanted malloc failures
14270         when the inputs are very large.
14271
14272 2005-03-15  Karl Berry  <karl@gnu.org>
14273
14274         * config/srclist.txt (config.rpath): from gettext.
14275         * config/config.rpath: update.
14276
14277 2005-03-15  Bruno Haible  <bruno@clisp.org>
14278
14279         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
14280         to 'negate'.
14281
14282         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
14283         variable.
14284
14285         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
14286         results.
14287
14288 2005-03-14  Simon Josefsson  <jas@extundo.com>
14289
14290         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
14291         <fx@gnu.org>.
14292
14293 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
14294
14295         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
14296         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
14297         intprops.h.
14298         * lib/strtol.c: Likewise.
14299
14300 2005-03-14  Jim Meyering  <jim@meyering.net>
14301
14302         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
14303         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
14304         to be nonzero so that we (and caller) can detect the difference
14305         between a valid zero-length expansion and an error return, even
14306         when the underlying strftime fails before writing anything into
14307         that location.
14308
14309 2005-03-14  Bruno Haible  <bruno@clisp.org>
14310
14311         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
14312         Update from GNU gettext 0.14.3.
14313
14314 2005-03-10  Jim Meyering  <jim@meyering.net>
14315
14316         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
14317
14318 2005-03-10  Jim Meyering  <jim@meyering.net>
14319
14320         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
14321         so that this module works on systems without fchdir.
14322
14323 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
14324
14325         Factor int-properties macros into a single file, except for
14326         glibc-related files.
14327         * lib/intprops.h: New file.
14328         * lib/getloadavg.c: Include it instead of limits.h.
14329         (INT_STRLEN_BOUND): Remove.
14330         * lib/human.c: Include intprops.h.
14331         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
14332         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
14333         302/1000.
14334         * lib/inttostr.h: Include intprops.h instead of limits.h.
14335         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
14336         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
14337         for consistency with intprops.h.
14338         (time_t_is_integer, twos_complement_arithmetic): Use them.
14339         * lib/sig2str.h: Include <signal.h>, intprops.h.
14340         (INT_STRLEN_BOUND): Remove.
14341         * lib/strftime.c (TYPE_SIGNED): Remove.
14342         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
14343         * lib/strtol.c: Adjust comments to match intprops.h.
14344         * lib/userspec.c: Include intprops.h.
14345         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
14346         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
14347         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
14348         instead of rolling our own expressions.
14349         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
14350
14351         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
14352         instead of int.
14353         (my_strftime): Do not mishandle years close to INT_MAX, by doing
14354         the right thing even if adding 1900 would overflow.  Similarly
14355         for tm_mon + 1 and tm_yday + 1.
14356         Make %Y always equivalent to %C%y, and similarly for %G and %g.
14357         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
14358         (DO_SIGNED_NUMBER): New macro.
14359         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
14360
14361 2005-03-07  Bruno Haible  <bruno@clisp.org>
14362
14363         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
14364
14365 2005-03-07  Bruno Haible  <bruno@clisp.org>
14366
14367         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
14368
14369 2005-03-04  Derek R. Price  <derek@ximbiot.com>
14370
14371         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
14372         (func_import): Only replace files via --import when they have actually
14373         changed.
14374
14375 2005-03-03  Derek R. Price  <derek@ximbiot.com>
14376
14377         * m4/mmap-anon.m4: New file.
14378         * m4/pagealign_alloc.m4: New file.
14379
14380 2005-03-03  Derek R. Price  <derek@ximbiot.com>
14381             Bruno Haible  <bruno@clisp.org>
14382
14383         * modules/pagealign_alloc: New file.
14384         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
14385
14386 2005-03-03  Derek R. Price  <derek@ximbiot.com>
14387             Bruno Haible  <bruno@clisp.org>
14388
14389         * lib/pagealign_alloc.h: New file.
14390         * lib/pagealign_alloc.c: New file.
14391
14392 2005-03-03  Bruno Haible  <bruno@clisp.org>
14393
14394         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
14395         Use an all-permissive copyright notice, recommended by RMS.
14396
14397 2005-03-02  Bruno Haible  <bruno@clisp.org>
14398
14399         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
14400         of AIX, the replacement has to be done only after <string.h> is
14401         included, therefore not in config.h. stpncpy.h does the replacement,
14402         and stpncpy.c uses it.
14403
14404 2005-03-02  Bruno Haible  <bruno@clisp.org>
14405
14406         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
14407         stpncpy.c uses it.
14408
14409 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
14410
14411         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
14412         The workaround isn't strictly needed for POSIX conformance, and
14413         it's too much of a pain to configure and maintain.  We'll ask
14414         people to fix their kernels instead.
14415         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
14416         (NANOSLEEP_BUG_WORKAROUND): Remove.
14417         (xnanosleep): Remove the workaround.
14418
14419 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
14420
14421         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
14422         Reported by Derek Price.
14423         (Include): Add "timespec.h".
14424
14425         * modules/xnanosleep (Depends-on): Remove gethrxtime.
14426
14427 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
14428
14429         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
14430         to detect nanosleep bug.
14431
14432 2005-03-01  Bruno Haible  <bruno@clisp.org>
14433
14434         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
14435
14436 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
14437
14438         * modules/gethrxtime: New file.
14439         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
14440         (Depends-on): Add gethrxtime.
14441         (configure.ac): Add gl_XNANOSLEEP.
14442         (Makefile.am): Remove lib_SOURCES line.
14443
14444 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
14445
14446         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
14447         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
14448
14449 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
14450
14451         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
14452         * lib/timespec.h (gettime): Return void, since it always
14453         succeeds now.  All uses changed.
14454         * lib/gettime.c (gettime) Likewise.
14455         [HAVE_NANOTIME]: Prefer nanotime.
14456         Assume gettimeofday succeeds, as POSIX requires.
14457         Assime time () succeeds, since other code already does.
14458         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
14459         (timespec_subtract): Remove.
14460         (NANOSLEEP_BUG_WORKAROUND): New constant.
14461         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
14462         things considerably.  Use it only on GNU/Linux hosts, since the
14463         workaround shouldn't be needed elsewhere.
14464
14465 2005-02-24  Bruno Haible  <bruno@clisp.org>
14466
14467         * modules/gettext (Files): Add m4/glibc2.m4.
14468
14469 2005-02-24  Bruno Haible  <bruno@clisp.org>
14470
14471         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
14472         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
14473         * m4/progtest.m4:
14474         Update from GNU gettext 0.14.2.
14475         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
14476
14477 2005-02-24  Bruno Haible  <bruno@clisp.org>
14478
14479         * lib/localcharset.c: Update from GNU gettext 0.14.2.
14480         * lib/config.charset: Update from GNU gettext 0.14.2.
14481
14482 2005-02-24  Bruno Haible  <bruno@clisp.org>
14483
14484         * lib/gettext.h: Update from GNU gettext 0.14.2.
14485
14486 2005-02-23  Simon Josefsson  <jas@extundo.com>
14487
14488         * m4/iconvme.m4: New file.
14489
14490 2005-02-23  Jim Meyering  <jim@meyering.net>
14491
14492         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
14493         change.
14494         Thanks to Bruno Haible for catching it.
14495
14496 2005-02-22  Simon Josefsson  <jas@extundo.com>
14497
14498         * modules/iconvme: New file.
14499
14500         * MODULES.html.sh: Add iconvme.
14501
14502 2005-02-22  Simon Josefsson  <jas@extundo.com>
14503
14504         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
14505
14506 2005-02-22  Simon Josefsson  <jas@extundo.com>
14507
14508         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
14509
14510 2005-02-22  Jim Meyering  <jim@meyering.net>
14511
14512         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
14513         s/ifndef/ifdef/.
14514
14515 2005-02-20  Neil Conway  <neilc@samurai.com>
14516
14517         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
14518         returned by OSX/Darwin if the specified buffer is not large
14519         enough for the hostname.
14520
14521 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
14522
14523         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
14524         pass it to _help, otherwise the latter coredumps trying to
14525         dereference state.root_argp.
14526
14527 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
14528
14529         * modules/chdir-long (Depends-on): Add memrchr.
14530         * modules/memrchr (Files): Add lib/memrchr.h.
14531         (Include): "memrchr.h".
14532
14533 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
14534
14535         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
14536
14537 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
14538
14539         * lib/memrchr.h: New file.
14540         * lib/chdir-long.c: Include it.
14541         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
14542         Don't bother including stddef.h.
14543
14544 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
14545
14546         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
14547         inclusion.
14548         Include <sys/types.h>, for dev_t.
14549         (ME_DUMMY, ME_REMOTE): Move from here....
14550         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
14551         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
14552         Dmitry V. Levin.
14553         Include mountlist.h first, to test the interface.
14554
14555 2005-01-29  Bruno Haible  <bruno@clisp.org>
14556
14557         * lib/progname.c (program_name): Initialize.
14558         Needed when linking statically on MacOS X.
14559
14560 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
14561
14562         Sync from coreutils.
14563         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
14564         (Depends-on): Add c-strtod.
14565         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
14566
14567 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
14568
14569         Sync from coreutils.
14570         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
14571
14572         Remove files that are specific to coreutils.
14573         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
14574
14575 2005-01-28  Bruno Haible  <bruno@clisp.org>
14576
14577         * modules/javacomp: New file.
14578         * MODULES.html.sh (Java): Add javacomp.
14579
14580 2005-01-28  Bruno Haible  <bruno@clisp.org>
14581
14582         * m4/javacomp.m4: New file, from GNU gettext.
14583
14584 2005-01-28  Bruno Haible  <bruno@clisp.org>
14585
14586         * lib/javacomp.sh.in: New file, from GNU gettext.
14587         * lib/javacomp.h: New file, from GNU gettext.
14588         * lib/javacomp.c: New file, from GNU gettext.
14589
14590 2005-01-26  Simon Josefsson  <jas@extundo.com>
14591
14592         * lib/gai_strerror.c: Use GPL in header.
14593
14594 2005-01-26  Bruno Haible  <bruno@clisp.org>
14595
14596         * modules/javaexec: New file.
14597         * MODULES.html.sh (Java): Add javaexec.
14598
14599 2005-01-26  Bruno Haible  <bruno@clisp.org>
14600
14601         * m4/javaexec.m4: New file, from GNU gettext.
14602
14603 2005-01-26  Bruno Haible  <bruno@clisp.org>
14604
14605         * lib/javaexec.sh.in: New file, from GNU gettext.
14606         * lib/javaexec.h: New file, from GNU gettext.
14607         * lib/javaexec.c: New file, from GNU gettext.
14608
14609 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
14610
14611         * modules/lchown (Depends-on): Remove lchown.h
14612
14613 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
14614
14615         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
14616         must be defined if the header file was not found, in order
14617         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
14618
14619 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
14620
14621         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
14622         initializers for struct pentry_state.
14623         (__argp_error): Check return value of __asprintf
14624         (__argp_failure): Translate error message
14625
14626         * lib/argp-parse.c: Removed braces around the expansion of N_()
14627
14628 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
14629
14630         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
14631         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
14632         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
14633         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
14634         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
14635         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
14636         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
14637         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
14638         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
14639         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
14640         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
14641         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
14642         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
14643         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
14644         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
14645         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
14646         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
14647         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
14648         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
14649         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
14650         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
14651         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
14652         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
14653         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
14654         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
14655         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
14656         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
14657         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
14658         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
14659         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
14660         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
14661         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
14662         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
14663         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
14664         xstrtol.m4, xstrtoumax.m4, yesno.m4:
14665         Use an all-permissive copyright notice, recommended by RMS.
14666
14667 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
14668
14669         * modules/chdir-long (Depends-on): Remove mempcpy.
14670
14671 2005-01-21  Jim Meyering  <jim@meyering.net>
14672
14673         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
14674         same value as for Solaris 9.
14675
14676         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
14677         component length.  This included changing the parameter to be
14678         of type `char *' rather than `char const *'.
14679         * lib/chdir-long.h (chdir_long): Update prototype.
14680
14681         * lib/openat.c (fdopendir, fstatat): New functions.
14682         * lib/openat.h: Include headers required for use of DIR and struct
14683         stat.
14684         [AT_SYMLINK_NOFOLLOW]: Define.
14685         (fdopendir, fstatat): Add prototypes.
14686
14687 2005-01-21  Bruno Haible  <bruno@clisp.org>
14688
14689         * modules/classpath: New file.
14690         * MODULES.html.sh (Java): Add classpath.
14691
14692 2005-01-21  Bruno Haible  <bruno@clisp.org>
14693
14694         * lib/classpath.h: New file, from GNU gettext.
14695         * lib/classpath.c: New file, from GNU gettext.
14696
14697 2005-01-20  Simon Josefsson  <jas@extundo.com>
14698
14699         * modules/version-etc-fsf: New file.
14700
14701 2005-01-20  Simon Josefsson  <jas@extundo.com>
14702
14703         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
14704         * lib/version-etc.c: Remove version_etc_copyright.
14705         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
14706         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
14707
14708 2005-01-20  Simon Josefsson  <jas@extundo.com>
14709
14710         * lib/base64.h (isbase64): Add.
14711
14712         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
14713         using a unsigned prototype, don't inline.
14714         (base64_decode): Use it.
14715
14716 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
14717
14718         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
14719         it.
14720
14721 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
14722
14723         * lib/save-cwd.c (save_cwd): Remove code to support the case
14724         where fchdir is missing or flaky.
14725
14726 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
14727
14728         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
14729
14730 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
14731
14732         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
14733         AC_LIBSOURCES now does this.
14734         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
14735         with new ullong_max module.
14736
14737 2005-01-19  Bruno Haible  <bruno@clisp.org>
14738
14739         * modules/sh-quote: New file.
14740         * MODULES.html.sh (Executing programs): Add sh-quote.
14741
14742 2005-01-19  Bruno Haible  <bruno@clisp.org>
14743
14744         * lib/sh-quote.h: New file, from GNU gettext.
14745         * lib/sh-quote.c: New file, from GNU gettext.
14746
14747 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
14748
14749         Merge from coreutils.
14750         * m4/ullong_max.m4: New file.
14751         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
14752         (gl_MACROS): Assume localeconv exists.
14753
14754 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
14755
14756         Merge changes from coreutils, as described below in several
14757         changelogs dated today.
14758
14759         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
14760         (O_DIRECTORY): Remove; not needed here, since "." must be
14761         a directory.  All uses removed.
14762         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
14763         universal on Suns, and we also need to test for IRIX.
14764         Revamp code to use 'if' rather than '#if'.
14765         Avoid unnecessary comparison of cwd->desc to 0.
14766
14767         * lib/utimens.c (futimens): Robustify the previous patch, by checking
14768         for known valid error numbers rather than observed invalid ones.
14769
14770 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
14771
14772         * modules/ullong_max: New file.
14773
14774         * modules/chdir-long, modules/openat: New files.
14775         * modules/save-cwd (Depends-on): Depend on chdir-long.
14776         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
14777
14778 2005-01-18  Jim Meyering  <jim@meyering.net>
14779
14780         Merge from coreutils.
14781         * m4/chdir-long.m4, m4/openat.m4: New files.
14782         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
14783         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
14784         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
14785         is sane and DOES follow symlinks.  Besides, testing 20 different
14786         systems found no broken chown implementations.
14787         Prompted by a change in rsync's copy of this macro.
14788         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
14789
14790         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
14791
14792         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
14793         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
14794         NULL-means-set-to-current-time semantics.
14795         Remove temporary file immediately, rather than waiting
14796         for configure's at-exit trap code to do it.
14797
14798 2005-01-18  Jim Meyering  <jim@meyering.net>
14799
14800         * lib/version-etc.c (version_etc_copyright): Update copyright date.
14801
14802         * lib/utimens.c (futimens): Account for the fact that futimes
14803         can also fail with errno == ENOSYS or errno == ENOENT.
14804         Patch from Dmitry V. Levin.
14805
14806         Change the name of the robust chdir function from chdir to chdir_long.
14807         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
14808         (restore_cwd): Use chdir_long, not chdir.
14809         * lib/chdir-long.c: Renamed from chdir.c.
14810         * lib/chdir-long.h: Renamed from chdir.h.
14811         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
14812         Hurd.
14813
14814 2005-01-18  Bruno Haible  <bruno@clisp.org>
14815
14816         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
14817         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
14818         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
14819         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
14820         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
14821         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
14822         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
14823         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
14824         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
14825         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
14826         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
14827         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
14828         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
14829         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
14830         Use an all-permissive copyright notice, recommended by RMS.
14831
14832 2005-01-18  Bob Proulx  <bob@proulx.com>
14833
14834         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
14835         simplify offsetof() macro construct to avoid compile failure with
14836         native HP-UX 11.0 ANSI C compiler.
14837
14838 2005-01-17  Bruno Haible  <bruno@clisp.org>
14839
14840         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
14841         redundant because stpncpy.m4 takes care of it.
14842
14843 2005-01-17  Bruno Haible  <bruno@clisp.org>
14844
14845         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
14846
14847 2005-01-17  Bruno Haible  <bruno@clisp.org>
14848
14849         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
14850         used.
14851
14852 2005-01-17  Bruno Haible  <bruno@clisp.org>
14853
14854         * lib/fwriteerror.h (fwriteerror): Change specification to include
14855         fclose.
14856         * lib/fwriteerror.c: Include <stdbool.h>.
14857         (fwriteerror): At the end, close the file stream. Record whether
14858         stdout was already closed.
14859
14860 2005-01-17  Bruno Haible  <bruno@clisp.org>
14861
14862         * lib/execute.c (environ): Declare if needed.
14863         * lib/pipe.c (environ): Likewise.
14864         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
14865
14866 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
14867
14868         * modules/argp: Depend on vsnprintf
14869
14870 2005-01-10  Jim Meyering  <jim@meyering.net>
14871
14872         * modules/closeout (Depends-on): Add atexit.
14873
14874 2005-01-06  Bruno Haible  <bruno@clisp.org>
14875
14876         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
14877
14878 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
14879
14880         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
14881         definitions to be after all include files, to avoid collisions.
14882         Problem reported by Bob Proulx.
14883
14884 2005-01-04  Jim Meyering  <jim@meyering.net>
14885
14886         Changes imported from coreutils.
14887         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
14888         as the mkstemp template, use a temporary directory and an
14889         8.3-friendly template to avoid trouble on systems like DJGPP.
14890         Reported by Juan M. Guerrero via Stepan Kasal.
14891         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
14892         close. Remove the temporary directory right away, rather than waiting
14893         for configure's at-exit trap code to do it.
14894         Suggestion from Stepan Kasal.
14895
14896 2005-01-01  Simon Josefsson  <jas@extundo.com>
14897
14898         * gnulib-tool: Print #include directives when --import'ing.
14899
14900 2004-12-28  Simon Josefsson  <jas@extundo.com>
14901
14902         * tests/test-base64.c: Include required header files.  Remove
14903         unused variables.
14904
14905 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
14906
14907         * modules/error (Depends-on): Remove gettext.
14908
14909 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
14910
14911         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
14912         not needed.  This removes a dependency on the gettext module.
14913         [defined _LIBC]: Do not include <libintl.h>; not needed.
14914
14915 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
14916
14917         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
14918         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
14919
14920 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
14921
14922         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
14923         HAVE_DECL_STRTOLD.
14924
14925 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
14926
14927         * modules/getdate (Depends-on): Remove alloca-opt.
14928
14929 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
14930
14931         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
14932
14933 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
14934
14935         * lib/argp-parse.c: Include <stddef.h>.
14936         (alignof, alignto): New macros.
14937         (parser_init): Don't assume that void * is aligned sufficiently
14938         for struct option.
14939
14940         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
14941         need to extend the stack.
14942         (YYINITDEPTH): New macro, so that the initial stack isn't overly
14943         large.
14944
14945 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
14946
14947         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
14948
14949 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
14950
14951         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
14952         (2004-10-24) change.  Apparently this was a false alarm.
14953
14954         * modules/getdate: Depend on alloca-opt, not alloca.
14955
14956 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
14957
14958         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
14959         Remove now-obsolete comment about AIX.
14960         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
14961         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
14962         (YYMAXDEPTH): New macro.
14963
14964 2004-12-18  Simon Josefsson  <jas@extundo.com>
14965
14966         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
14967
14968 2004-12-18  Bruno Haible  <bruno@clisp.org>
14969
14970         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
14971
14972 2004-12-18  Bruno Haible  <bruno@clisp.org>
14973
14974         * lib/fatal-signal.c (fatal_signals): Make non-const.
14975         (init_fatal_signals): New function.
14976         (uninstall_handlers, install_handlers): Ignore signals that were set to
14977         SIG_IGN.
14978         (at_fatal_signal): Call init_fatal_signals.
14979         (init_fatal_signal_set): Likewise. Ignore signals that were set to
14980         SIG_IGN.
14981         Reported by Paul Eggert.
14982
14983 2004-12-18  Bruno Haible  <bruno@clisp.org>
14984
14985         * doc/alloca.texi: New file.
14986         * doc/alloca-opt.texi: New file.
14987
14988 2004-12-17  Jim Meyering  <jim@meyering.net>
14989
14990         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
14991         Otherwise, install-sh could exit with improper exit status when
14992         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
14993
14994 2004-12-16  Simon Josefsson  <jas@extundo.com>
14995
14996         * tests/test-base64.c: Add license.
14997
14998 2004-12-15  Stepan Kasal  <address@hidden>
14999
15000         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
15001
15002 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
15003
15004         * modules/getcwd (Files): Add m4/d-ino.m4.
15005         Suggested by Mark D. Baushke.
15006
15007 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
15008
15009         * lib/getdate.y (textint): New member "negative".
15010         (time_zone_hhmm): New function.
15011         Expect 14 shift-reduce conflicts, not 13.
15012         (o_colon_minutes): New rule.
15013         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
15014         (yylex): Set the "negative" member of signed numbers.
15015
15016 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
15017
15018         * doc/getdate.texi (Time of day items, Time zone items):
15019         Describe new formats +00:00, UTC+00:00.
15020
15021 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
15022
15023         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
15024         spurious "-l"s.  Problem reported by Stepan Kasal.
15025
15026 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
15027
15028         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
15029         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
15030
15031 2004-12-04  Simon Josefsson  <jas@extundo.com>
15032
15033         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
15034         Vandoorselaere <yoann@prelude-ids.org>.
15035
15036 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
15037
15038         Changes imported from coreutils.
15039         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
15040         exist.
15041         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
15042
15043 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
15044
15045         Changes imported from coreutils.
15046         * lib/hard-locale.c: Assume <locale.h> exists.
15047         Include "strdup.h".
15048         (GLIBC_VERSION): New macro.
15049         (hard_locale): Assume setlocale exists.
15050         Rewrite to avoid #ifdef.
15051         Use strdup rather than malloc + strcpy.
15052         * lib/human.c: Assume <locale.h> exists.
15053         (human_readable): Assume localeconv exists.
15054
15055 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
15056
15057         * modules/hard-locale (Depends-on): Add strdup.
15058
15059 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
15060
15061         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
15062         convert T2, not T.  (Imported from libc.)
15063
15064 2004-11-30  Simon Josefsson  <jas@extundo.com>
15065
15066         * modules/restrict (License): Change to LGPL.
15067
15068 2004-11-30  Simon Josefsson  <jas@extundo.com>
15069
15070         * m4/restrict.m4: Add copyright and copying conditions.
15071
15072 2004-11-30  Simon Josefsson  <jas@extundo.com>
15073
15074         * m4/base64.m4: New file.
15075
15076 2004-11-30  Simon Josefsson  <jas@extundo.com>
15077
15078         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
15079         base64.
15080
15081         * tests/test-base64.c: New file.
15082
15083         * modules/base64: New file.
15084
15085 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
15086
15087         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
15088         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
15089
15090         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
15091
15092 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
15093
15094         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
15095         (__getcwd.c): Don't restore errno; glibc doesn't.
15096         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
15097         first, falling back to our code only if its results look suspicious.
15098         Ensure that the resulting buffer is only as large as necessary.
15099
15100         * lib/readutmp.c: Include readutmp.h first.
15101         Include <errno.h>, since readutmp.h no longer does that.
15102         * lib/readutmp.h: Don't include <errno.h>,
15103         <sys/param.h>, <time.h>; not needed to establish interface.
15104         (errno): Remove decl.
15105         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
15106         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
15107         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
15108
15109 2004-11-28  Simon Josefsson  <jas@extundo.com>
15110
15111         * lib/base64.h, base64.c: New file.
15112
15113 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
15114
15115         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
15116
15117 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
15118
15119         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
15120         (Depends-on): Remove pathmax, same.  Add mempcpy.
15121         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
15122         (Makefile.am): Append getcwd.h to lib_SOURCES.
15123         (Include): Add getcwd.h.
15124         (Maintainer): Change from Jim Meyering to "all, glibc",
15125         since getdate now uses intended-for-glibc code.
15126         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
15127         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
15128
15129 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
15130
15131         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
15132         HP's ANSI C compiler.
15133         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
15134         Declaring int functions causes warnings on some modern systems and
15135         shouldn't be needed to compile on ancient ones.
15136         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
15137         defined.
15138
15139         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
15140         with the following changes.
15141         (__set_errno): Parenthesize properly.
15142         Include <stdbool.h>.
15143         (MIN, MAX, MATCHING_INO): New macros.
15144         (__getcwd): Define with prototype, not K&R form.
15145         Use heuristics to allocate default buffer on stack if possible.
15146         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
15147         behavior, and to avoid the PATH_MAX limit when computing
15148         ../../../../...
15149         Use MATCHING_INO to compare inode number to file.
15150         Check for arithmetic overflow in size calculations.
15151         Fix bug in reallocation of dot array that caused getcwd to fail
15152         on directories nested deeper than 75.
15153         Be more careful about saving errno on error.
15154         Do not use realloc; use only free+malloc, as this is a bit
15155         more flexible and avoids a needless copy operation.
15156         Do not inspect st_dev and st_ino for symbolic links; POSIX
15157         doesn't specify the latter.
15158         Check for closedir errors.
15159         Avoid needless casts.
15160         Use "#ifdef weak_alias" around weak_alias, to be like other
15161         glibc code.
15162         The following changes to getcwd.c have effect only when used in
15163         gnulib; they have no effect inside glibc proper.
15164         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
15165         as alloca isn't used.
15166         (alloca, __alloca): Likewise.
15167         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
15168         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
15169         unconditionally, as gnulib assumes C89 or better.
15170         Do not include <sys/param.h>.
15171         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
15172         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
15173         better.
15174         (NULL) [!defined NULL]: Remove; we assume C89 or better.
15175         Include <dirent.h> in a way that is compatible with modern Autoconf.
15176         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
15177         New macros, if not already defined.
15178         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
15179         Use "_LIBC", not "defined _LIBC", for consistency.
15180         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
15181         a mempcpy module.
15182         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
15183         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
15184         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
15185         credit only to Jim Meyering and adjust the copyright dates.
15186         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
15187         <stdlib.h>, <unistd.h>, "pathmax.h".
15188         Instead, include "xgetcwd.h" (first) and "getcwd.h".
15189         (INITIAL_BUFFER_SIZE): Remove.
15190         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
15191
15192 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
15193
15194         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
15195         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
15196         Use the _ONCE methods, for efficiency.
15197         Check for fcntl.h.  In test program, include <errno.h>
15198         and <fcntl.h> if available.  Remove old K&R cruft from
15199         test program.  Check for common errors in GNU/Linux,
15200         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
15201         don't do AC_LIBOBJ, as that's getcwd.m4's job.
15202         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
15203         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
15204         name accordingly.
15205         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
15206         accommodate new getcwd.c.
15207         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
15208         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
15209         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
15210         that's all we need now.
15211
15212 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
15213
15214         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
15215         argp-parse.c depends on getopt internals, that means we should
15216         always use our getopt, to be on the safe side.
15217         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
15218         order not to spoil the result of an eventual previous invocation
15219         of gl_GETOPT_SUBSTITUTE.
15220
15221 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
15222
15223         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
15224         redefinition warnings. To avoid them, include the defines
15225         in `#if !defined __need_getopt ... #endif'. The only place
15226         where __getopt_argv_const is used is in definitions
15227         of getopt_long and getopt_long_only below, which are as well
15228         protected by `#ifndef __need_getopt'.
15229         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
15230         __need_getopt after including <stdio.h> and <unistd.h> These
15231         headers might have defined it.
15232
15233 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
15234
15235         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
15236
15237 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
15238
15239         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
15240         (futimens): New function, which uses futimes if available.
15241         (futimens, utimens): Support timespec==NULL, with same semantics
15242         as utime and utimens.
15243         * lib/utimens.h (futimens): New decl.
15244
15245 2004-11-23  Jim Meyering  <jim@meyering.net>
15246
15247         * lib/getopt_.h: Remove trailing blanks.
15248
15249 2004-11-23  Jim Meyering  <jim@meyering.net>
15250
15251         * lib/__fpending.c: Add comment.
15252
15253 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
15254
15255         * modules/canonicalize (Depends-on): Add xreadlink.
15256         Problem reported by James Youngman.
15257
15258 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
15259
15260         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
15261         New macros.
15262         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
15263         optopt): Use them instead of invoking ## directly; otherwise, the
15264         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
15265
15266 2004-11-19  Bruno Haible  <bruno@clisp.org>
15267
15268         * lib/strtok_r.c: Move comments from here...
15269         * lib/strtok_r.h: ... to here.
15270
15271 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
15272
15273         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
15274         implementations that mishandle size_t overflow.
15275
15276 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
15277
15278         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
15279         might fail.  Problem reported by Yoann Vandoorselaere.
15280         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
15281         implementations that mishandle size_t overflow.
15282
15283 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
15284
15285         * modules/canon-host (Depends-on): Add strdup.
15286
15287 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
15288
15289         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
15290
15291 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
15292
15293         * lib/canon-host.c: Include "strdup.h".
15294         (canon_host): Use getaddrinfo if available, so that IPv6 works.
15295         Use strdup instead of malloc/strcpy to duplicate strings.
15296
15297         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
15298         (human_space_before_unit): New constant.
15299         * lib/human.c (human_readable): Support it.
15300
15301         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
15302         (xgetcwd): Set errno correctly when failing.
15303         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
15304         the failure is actually due to a PATH_MAX problem.
15305
15306         Further getopt changes to make it more likely that glibc will
15307         buy the changes back.
15308         * lib/getopt.c (POSIXLY_CORRECT): New constant.
15309         (getopt): Use it, so to preserve glibc semantic
15310         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
15311         when compiling for libc.
15312         * lib/getopt_.h (__getopt_argv_const): Bring it back.
15313         (getopt_long, getopt_long_only): Use it.
15314
15315         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
15316         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
15317         (getopt): Argv is now char * const *, as per standard.
15318         (_getopt_internal_r, _getopt_internal): Argv is now char **,
15319         not char *__getopt_argv_const *.
15320         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
15321         _getopt_long_only_r): Likewise.
15322         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
15323         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
15324         _getopt_long_r, _getopt_long_only_r): Likewise.
15325         * lib/getopt_.h (__getopt_argv_const): Remove.
15326         (getopt): Argv is now char * const *, as per standard.
15327
15328         * lib/getdate.y (tORDINAL): New token.
15329         (day, relunit): Allow it for relative times.
15330         (relative_time_table): Use tORDINAL for ordinals.
15331
15332 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
15333
15334         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
15335         Document that "second" isn't allowed as an ordinal number.
15336
15337 2004-11-16  Jim Meyering  <jim@meyering.net>
15338
15339         * modules/closeout (Depends-on): Add fpending.
15340
15341 2004-11-15  Jim Meyering  <jim@meyering.net>
15342
15343         * lib/closeout.c: Include "__fpending.h" once again.
15344         Include <stdbool.h>.
15345         (close_stdout): Don't fail just because stdout was closed initially,
15346         since some programs don't write to stdout in the normal course of
15347         operation (other than --version and --help), and we don't want this
15348         function to make e.g. `touch file >&-' fail.
15349         But do fail if it was closed and someone has tried to write to it.
15350         E.g., `printf foo >&-' must fail.
15351
15352 2004-11-13  Jim Meyering  <jim@meyering.net>
15353
15354         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
15355
15356 2004-11-12  Simon Josefsson  <jas@extundo.com>
15357
15358         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
15359         small doc fix is still pending.
15360
15361 2004-11-11  Simon Josefsson  <jas@extundo.com>
15362
15363         * modules/strtok_r: New file.
15364
15365         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
15366         strtok_r.
15367
15368 2004-11-11  Simon Josefsson  <jas@extundo.com>
15369
15370         * m4/strtok_r.m4: New file.
15371
15372         * m4/getopt.m4: Replace opterr.
15373
15374 2004-11-11  Simon Josefsson  <jas@extundo.com>
15375
15376         * lib/strtok_r.h, strtok_r.c: New file.
15377
15378 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
15379
15380         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
15381         of replacing opterr, getopt, etc.  This should handle the
15382         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
15383
15384 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
15385
15386         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
15387         we can stop lying to compilers about the constness of argv when we
15388         are compiled outside glibc.
15389         (getopt, getopt_long, getopt_long_only): Use it.
15390         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
15391         _getopt_internal, getopt): Likewise.
15392         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
15393         _getopt_long_only_r): Likewise.
15394         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
15395         _getopt_long_r, _getopt_long_only_r): Likewise.
15396
15397         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
15398         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
15399         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
15400         the other external symbols.
15401         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
15402         declaration, since the above renaming now works around collisions.
15403
15404 2004-11-11  Jim Meyering  <jim@meyering.net>
15405
15406         * lib/linebreak.c: Remove trailing blanks.
15407         * lib/alloca_.h: Likewise.
15408         * lib/acosl.c: Likewise.
15409         * lib/euidaccess.c: Likewise.
15410         * lib/allocsa.h: Likewise.
15411
15412 2004-11-10  Simon Josefsson  <jas@extundo.com>
15413
15414         * m4/getaddrinfo.m4: New file.
15415
15416 2004-11-10  Simon Josefsson  <jas@extundo.com>
15417
15418         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
15419
15420 2004-11-10  Simon Josefsson  <jas@extundo.com>
15421
15422         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
15423         getaddrinfo.
15424
15425         * modules/getaddrinfo: New file.
15426
15427 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
15428
15429         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
15430
15431 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
15432
15433         * lib/mktime.c (SHR): New macro, which is a portable
15434         substitute for >> that should work even on Crays.
15435         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
15436         Problem reported by Mark D. Baushke in
15437         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
15438         * lib/getdate.y (SHR): Likewise.
15439         (tm_diff): Use it.
15440         * lib/strftime.c (SHR): Likewise.
15441         (tm_diff): Use it.
15442         * lib/quotearg.c (struct quoting_options): Use unsigned int for
15443         quote_these_too, so that right shifts are well defined.  All uses
15444         changed.
15445
15446 2004-11-10  Jim Meyering  <jim@meyering.net>
15447
15448         Ensure that no close failure goes unreported.
15449         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
15450         return early when it seems there's nothing to flush.
15451         Don't include __fpending.h.
15452
15453 2004-11-10  Jim Meyering  <jim@meyering.net>
15454
15455         * modules/closeout (Depends-on): Remove fpending.
15456
15457 2004-11-10  Jim Meyering  <jim@meyering.net>
15458
15459         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
15460
15461 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
15462
15463         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
15464         gl_FUNC_STRFTIME.
15465         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
15466         and AC_REQUIRE when possible, to avoid duplicate checks.
15467         Check for <wchar.h>.
15468
15469 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
15470
15471         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
15472
15473 2004-11-09  Bruno Haible  <bruno@clisp.org>
15474
15475         * m4/sockpfaf.m4: New file.
15476
15477 2004-11-05  Bruno Haible  <bruno@clisp.org>
15478
15479         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
15480         Reported by Mark D. Baushke <mdb@cvshome.org>.
15481
15482 2004-11-04  Bruno Haible  <bruno@clisp.org>
15483
15484         2004-09-11  Bruno Haible  <bruno@clisp.org>
15485                 * allocsa.valgrind: New file.
15486         2004-02-06  Bruno Haible  <bruno@clisp.org>
15487                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
15488                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
15489                 Reported by Christopher Seip <chris.seip@hp.com>.
15490
15491 2004-11-04  Bruno Haible  <bruno@clisp.org>
15492
15493         * modules/allocsa (Files): Add lib/allocsa.valgrind.
15494         (Makefile.am): Distribute it.
15495
15496 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
15497
15498         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
15499         with errno == ERANGE if the buffer is too small.
15500         Problem reported by Mark D. Baushke.
15501
15502 2004-11-03  Albert Chin  <china@thewrittenword.com>
15503             Paul Eggert  <eggert@cs.ucla.edu>
15504
15505         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
15506         equivalent, substitute $ac_type for equivalent type rather than
15507         blindly using uint32_t *always* which won't work if uint32_t is not
15508         available.  Define _UINT32_T to work around typedef of uint32_t if
15509         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
15510         2.5.1.
15511
15512 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
15513
15514         * m4/jm-macros.m4: Sync from coreutils.
15515         (gl_MACROS): Check for mbrlen, for pathchk.
15516         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
15517
15518 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
15519
15520         * lib/xreadlink.c (MAXSIZE): New macro.
15521         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
15522         size does not exceed MAXSIZE.  Avoid cast.
15523         As suggested by Mark D. Baushke in
15524         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
15525         if readlink fails with buffer size just under MAXSIZE, try again
15526         with MAXSIZE.
15527
15528 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
15529
15530         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
15531
15532 2004-11-02  Derek R. Price  <derek@ximbiot.com>
15533         and  Paul Eggert  <eggert@cs.ucla.edu>
15534
15535         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
15536         (get_date): Overparenthesize to avoid GCC warning.
15537
15538 2004-11-02  Bruno Haible  <bruno@clisp.org>
15539
15540         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
15541         returns void.
15542
15543 2004-11-02  Bruno Haible  <bruno@clisp.org>
15544
15545         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
15546         function returns void.
15547
15548 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
15549
15550         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
15551         fflush_unlocked, flockfile, funlockfile, funlockfile,
15552         fputs_unlocked, putc_unlocked.
15553
15554 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
15555
15556         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
15557         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
15558         already declared.
15559
15560 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
15561
15562         * modules/getdate (Files): Add doc/getdate.texi.
15563         (Depends-on): Add setenv, xalloc.
15564
15565 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
15566
15567         * lib/getdate.y: Add support for TZ="foo" within a date string.
15568         Fix some bugs near time_t boundaries.  Reject dates with
15569         out-of-range components, e.g., "Sept 31".
15570         Include <stdlib.h>, "setenv.h", "xalloc.h".
15571         (ISDIGIT_LOCALE): Remove; unused.
15572         Note that the TZ and time functions used here are not reentrant.
15573         (mktime_ok, get_tz): New functions.
15574         (TZBUFSIZE): New constant.
15575         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
15576         This requires that we sometimes generate our own TZ="XXX..." setting.
15577
15578 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
15579
15580         * doc/getdate.texi: New file, from coreutils with modifications for
15581         the new TZ parsing.
15582
15583 2004-10-27  Derek R. Price  <derek@ximbiot.com>
15584
15585         * lib/mktime.c (not_equal_tm): Remove redundant check.
15586
15587 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
15588
15589         * modules/regex (lib_SOURCES): Add regex.c.
15590         Reported by James Youngman in
15591         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
15592
15593 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
15594
15595         * lib/getdate.y: Use Bison 1.875 features, and some minor
15596         code cleanups.  This change does not affect semantics.
15597         Don't include <stdlib.h>; no longer needed.
15598         Don't include unlocked-io.h; only the "#if TEST" code uses
15599         stdio, and performance isn't crucial there.
15600         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
15601         Bison 1.875 features as described below.
15602         All uses of "PC." replaced by "pc->".
15603         (YYSTYPE): Add a forward declaration.
15604         (yylex, yyerror): Use full prototypes in forward decls.
15605         Use "%pure-parser" rather than obsolescent "%pure_parser".
15606         Use %parse-param and %lex-param instead of obsolescent
15607         YYPARSE_PARAM and YYLEX_PARAM.
15608         (meridian_table, month_and_day_table, time_units_table,
15609         relative_time_table, time_zone_table, military_table,
15610         lookup_zone, lookup_word, get_date):
15611         Use NULL instead of 0 where appropriate.
15612         (to_hour): Avoid abort (), to avoid a dependency on
15613         stdlib.h.
15614         (yyerror, yylex): Now accepts parser_control * arg.
15615         (main) [TEST]: Use '\0' rather than 0 for char.
15616
15617 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
15618
15619         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
15620
15621 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
15622
15623         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
15624         It's now the caller's responsibility to handle the case where
15625         !HAVE_GETPAGESIZE && !defined getpagesize.
15626
15627         * lib/mktime.c (leapyear): Arg is long int, not int.
15628
15629 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
15630
15631         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
15632
15633 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
15634
15635         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
15636         missing.  Problem reported by James Youngman.
15637
15638 2004-10-16  Simon Josefsson  <jas@extundo.com>
15639
15640         * gnulib-tool: Fix comments.  Fix parse problem.
15641         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
15642
15643 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
15644
15645         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
15646         implementation of getopt_long.  Problem reported by Alexander Taler in:
15647         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
15648
15649 2004-10-15  Bruno Haible  <bruno@clisp.org>
15650
15651         * gnulib-tool: Untabify. Initialize supplied_libname.
15652         (func_usage): More homogenous output.
15653         (func_modules_transitive_closure, func_modules_to_filelist,
15654         func_emit_lib_Makefile_am): New functions.
15655         (func_import): New function, extracted from big case statement. Use
15656         func_get_license, func_modules_transitive_closure,
15657         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
15658         opt_lgpl. Don't use test -a, as it's not portable.
15659         (func_create_testdir): Use func_modules_transitive_closure,
15660         func_modules_to_filelist, func_emit_lib_Makefile_am.
15661
15662 2004-10-15  Bruno Haible  <bruno@clisp.org>
15663
15664         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
15665
15666 2004-10-15  Bruno Haible  <bruno@clisp.org>
15667
15668         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
15669         the portions belonging to each module.
15670         Suggested by Derek Robert Price <derek@ximbiot.com>.
15671
15672 2004-10-12  Simon Josefsson  <jas@extundo.com>
15673
15674         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
15675         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
15676         to real functions.
15677
15678 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
15679
15680         * modules/vsnprintf: New file.
15681
15682 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
15683
15684         * m4/vsnprintf.m4: New file.
15685
15686 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
15687
15688         * lib/vsnprintf.h: New file.
15689         * lib/vsnprintf.c: New file.
15690
15691 2004-10-11  Bruno Haible  <bruno@clisp.org>
15692
15693         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
15694         vsnprintf.
15695
15696 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
15697
15698         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
15699
15700 2004-10-07  Bruno Haible  <bruno@clisp.org>
15701
15702         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
15703         fits into the provided buffer.
15704
15705 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
15706
15707         * lib/diacrit.c, diacrit.h: Add GPL notice.
15708
15709         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
15710         notice.
15711         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
15712         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
15713         This avoids a potential constant-folding bug.
15714
15715 2004-10-05  Bruno Haible  <bruno@clisp.org>
15716
15717         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
15718         for the declaration of strsep.
15719
15720 2004-10-05  Bruno Haible  <bruno@clisp.org>
15721
15722         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
15723
15724 2004-10-04  Simon Josefsson  <jas@extundo.com>
15725
15726         * modules/memmem: New file.
15727         * tests/test-memmem.c: New file.
15728         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
15729
15730 2004-10-04  Simon Josefsson  <jas@extundo.com>
15731
15732         * m4/memmem.m4: New file.
15733
15734 2004-10-04  Simon Josefsson  <jas@extundo.com>
15735
15736         * lib/memmem.h: New file.
15737         * lib/memmem.c: New file, taken from glibc.
15738
15739 2004-10-04  Simon Josefsson  <jas@extundo.com>
15740
15741         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
15742         '#ifdef USE_UNLOCKED_IO'.
15743
15744 2004-10-04  Simon Josefsson  <jas@extundo.com>
15745
15746         * config/srclist.txt: Add memmem from glibc.
15747
15748 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
15749
15750         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
15751
15752         * modules/argmatch, modules/argp, modules/closeout, modules/error,
15753         modules/exclude, modules/getdate, modules/getline,
15754         modules/getndelim2, modules/getpass, modules/getpass-gnu,
15755         modules/getusershell, modules/linebuffer, modules/md5,
15756         modules/mountlist, modules/posixtm, modules/readtokens,
15757         modules/readutmp, modules/regex, modules/sha1,
15758         modules/version-etc, modules/yesno:
15759         Remove dependency on unlocked-io.
15760
15761 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
15762
15763         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
15764
15765         * m4/unlocked-io.m4: Add copyright notice.
15766         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
15767
15768 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
15769
15770         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
15771         * lib/xmalloc.c (xmemdup): Likewise.
15772         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
15773         XFREE): Remove these long-obsolescent macros.
15774         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
15775         * lib/xstrdup.c: Remove.
15776
15777         * lib/regex.c (re_comp): Cast gettext return value to char *,
15778         Problem reported by Martin Neitzel via Mark D. Baushke.
15779
15780 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
15781
15782         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
15783         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
15784         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
15785         regex.c, sha1.c, version-etc.c, yesno.c:
15786         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
15787         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
15788         the includer's responsibility.
15789
15790         Sync from coreutils.
15791
15792         * lib/modechange.c (mode_compile): Don't decrement a pointer that
15793         points to the start of a string, as the C Standard says the
15794         resulting behavior is undefined.
15795
15796         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
15797         simple -> simple_backups, numbered_existing ->
15798         numbered_existing_backups, numbered -> numbered_backups
15799         to avoid shadowing problems.  All uses changed.
15800         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
15801         * lib/backupfile.c (check_extension, numbered_backup):
15802         Rename locals to avoid shadowing 'basename'.
15803         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
15804         once.
15805
15806         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
15807         * lib/.cvsignore: Add getopt.h.
15808
15809 2004-10-04  Bruno Haible  <bruno@clisp.org>
15810
15811         * modules/README: New file.
15812         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
15813         not a module.
15814
15815 2004-10-02  Jim Meyering  <jim@meyering.net>
15816
15817         * lib/dirfd.h, getpagesize.h: Add copyright notice.
15818
15819 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
15820
15821         * modules/strsep: New file.
15822
15823 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
15824
15825         * m4/strsep.m4: New file.
15826
15827 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
15828
15829         * lib/strsep.h: New file.
15830         * lib/strsep.c: New file.
15831
15832 2004-10-01  Simon Josefsson  <jas@extundo.com>
15833
15834         * lib/snprintf.c (snprintf): Handle size==0.
15835
15836 2004-10-01  Simon Josefsson  <jas@extundo.com>
15837             Bruno Haible  <bruno@clisp.org>
15838
15839         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
15840         (snprintf): Declare 'args'.
15841
15842 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
15843
15844         * lib/snprintf.c: Remove comments as to why each header is needed.
15845
15846 2004-10-01  Bruno Haible  <bruno@clisp.org>
15847
15848         * MODULES.html.sh: Add strsep.
15849
15850 2004-09-30  Simon Josefsson  <jas@extundo.com>
15851
15852         * modules/snprintf: New file.
15853
15854 2004-09-30  Simon Josefsson  <jas@extundo.com>
15855
15856         * m4/snprintf.m4: New file.
15857
15858 2004-09-30  Simon Josefsson  <jas@extundo.com>
15859
15860         * lib/snprintf.h, lib/snprintf.c: New files.
15861
15862 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
15863
15864         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
15865         (hol_entry_help): Never translate an empty string.
15866         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
15867         * lib/argp.h (OPTION_NO_TRANS): New option.
15868
15869 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
15870
15871         * modules/argp (Maintainer): Replace Simon Josefsson
15872         by Sergey Poznyakoff.
15873
15874 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
15875
15876         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
15877         changes merged back into glibc.
15878
15879 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
15880
15881         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
15882
15883 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
15884
15885         * lib/xvasprintf.c: Include xalloc.h.
15886         (xvasprintf): Use xalloc_die, not xmalloc_die.
15887
15888 2004-09-29  Bruno Haible  <bruno@clisp.org>
15889
15890         * modules/alloca-opt: New file, derived from modules/alloca.
15891         * modules/allocsa: Depend on alloca-opt instead of alloca.
15892         * modules/setenv: Likewise.
15893         * modules/vasnprintf: Likewise.
15894         * MODULES.html.sh: Add alloca-opt.
15895
15896 2004-09-28  Simon Josefsson  <jas@extundo.com>
15897
15898         * gnulib-tool: New parameter --lgpl, to asseert that modules are
15899         LGPL, and to replace license template from GPL to LGPL.
15900
15901 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
15902
15903         * modules/dummy: Change license to LGPL.
15904
15905 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
15906
15907         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
15908
15909 2004-09-24  Simon Josefsson  <jas@extundo.com>
15910
15911         * modules/minmax (License): Change from GPL to LGPL.
15912
15913 2004-09-23  Simon Josefsson  <jas@extundo.com>
15914
15915         * gnulib-tool (--import): Typo.
15916
15917 2004-09-23  Simon Josefsson  <jas@extundo.com>
15918
15919         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
15920
15921 2004-09-22  Bruno Haible  <bruno@clisp.org>
15922
15923         * modules/*: Add 'License' field.
15924         * gnulib-tool: Accept --extract-license option.
15925         (func_get_license): New function.
15926
15927 2004-09-21  Bruno Haible  <bruno@clisp.org>
15928
15929         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
15930         Reported by Simon Josefsson.
15931
15932 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
15933
15934         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
15935         gl_AC_TYPE_LONG_LONG.
15936
15937 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
15938
15939         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
15940
15941 2004-09-18  Simon Josefsson  <jas@extundo.com>
15942         and  Paul Eggert  <eggert@cs.ucla.edu>
15943
15944         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
15945         calls with autoreconf.  Define GL_LIB.
15946
15947 2004-09-14  Karl Berry  <karl@gnu.org>
15948
15949         * config/srclist.txt: unsync setenv.c, sigh.
15950
15951 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
15952
15953         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
15954         Problem reported by Bruno Haible in:
15955         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
15956
15957 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
15958
15959         * config/srclist.txt: Comment out argp-pvh.c.
15960
15961 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
15962
15963         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
15964         in case some system header has #define'd it.  Problem reported by
15965         Soeren D. Schulze in
15966         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
15967
15968 2004-09-09  Karl Berry  <karl@gnu.org>
15969
15970         * regex.[ch]: delete from the root.  These were supposed to be
15971                 synced with emacs cvs, but this has not happened for about
15972                 a year, and anyway nothing else uses emacs regex.[ch].
15973                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
15974                 lib/regex[.ch] is untouched.
15975
15976 2004-09-09  Bruno Haible  <bruno@clisp.org>
15977
15978         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
15979
15980 2004-09-09  Bruno Haible  <bruno@clisp.org>
15981
15982         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
15983         modifications.
15984         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
15985
15986 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
15987
15988         * modules/xvasprintf: New file.
15989         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
15990
15991 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
15992
15993         * lib/xvasprintf.h: New file.
15994         * lib/xvasprintf.c: New file.
15995         * lib/xasprintf.c: New file.
15996
15997 2004-09-08  Bruno Haible  <bruno@clisp.org>
15998
15999         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
16000
16001 2004-09-08  Bruno Haible  <bruno@clisp.org>
16002
16003         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
16004         length is > INT_MAX.
16005         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
16006         more.
16007
16008 2004-09-08  Bruno Haible  <bruno@clisp.org>
16009
16010         * lib/stdint_.h: New file, taken from GNU clisp.
16011
16012 2004-09-08  Bruno Haible  <bruno@clisp.org>
16013             Oskar Liljeblad  <oskar@osk.mine.nu>
16014
16015         * modules/stdint: New file.
16016         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
16017
16018 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
16019
16020         Import from coreutils.
16021         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
16022         strings on unbounded length.  alloca's performance benefits aren't
16023         that important here.
16024         (V_STRDUP): Remove.
16025         (parse_with_separator): New function, with most of the internals
16026         of the old parse_user_spec.  Allow user to omit both user and group,
16027         for compatibility with FreeBSD.
16028         Clone only the user name, not the entire spec.
16029         Do not set *uid, *gid unless entirely successful.
16030         Avoid memory leak in some failing cases.
16031         Fix regression for USER.GROUP reported by Dmitry V. Levin in
16032         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
16033         (parse_user_spec): Rewrite to use parse_with_separator.
16034
16035 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
16036
16037         * modules/userspec: Don't depend on alloca.
16038
16039 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
16040
16041         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
16042
16043 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
16044
16045         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
16046         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
16047         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
16048
16049 2004-08-16  Simon Josefsson  <jas@extundo.com>
16050
16051         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
16052         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
16053         Add --dry-run for --import.
16054         Let user provided command line parameters override configure.ac
16055         settings.
16056
16057 2004-08-12  Simon Josefsson  <jas@extundo.com>
16058
16059         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
16060         as discussed with Paul Eggert in threads rooted at
16061         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
16062         and
16063         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
16064         Before, the test was empty, and relied on ELIDE_CODE in source
16065         code.)
16066         (gl_PREREQ_GETOPT): New macro.
16067         (gl_GETOPT): Use them.
16068
16069 2004-08-12  Simon Josefsson  <jas@extundo.com>
16070
16071         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
16072         * lib/getopt_.h: Renamed from getopt.h.
16073
16074 2004-08-12  Simon Josefsson  <jas@extundo.com>
16075
16076         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
16077         Change default library name from libfoo to libgnu.
16078         Now, if you have a configure.ac that says:
16079                 gl_SOURCE_BASE(gl)
16080                 gl_M4_BASE(gl/m4)
16081                 gl_MODULES(error getopt etcetera)
16082                 gl_INIT
16083         you can import all you need by running:
16084                 ../gnulib/gnulib-tool --import
16085
16086         * modules/getopt (Files): Rename getopt.h to getopt_.h.
16087         (Makefile.am): Rewrite, use logic from argz.
16088         (Include): Use <getopt.h> instead of "getopt.h".
16089
16090 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
16091
16092         * modules/argp (Files): Add m4/unlocked-io.m4.
16093         (Depends-on): Add extensions.
16094
16095 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
16096
16097         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
16098         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
16099         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
16100         Check for program_invocation_name, program_invocation_short_name,
16101         flockfile, funlockfile, features.h, _getopt_long_only_r.
16102
16103 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
16104
16105         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
16106         its complicated substitute.
16107         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
16108         and program_invocation_name.
16109         (__argp_basename) [!_LIBC]: Remove; the only use was
16110         replaced by its body.
16111         (__argp_short_program_name): Change condition from
16112         !defined __argp_short_program_name to
16113         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
16114         to match argp-namefrob.h.
16115         (__argp_failure): Don't assume strerror_r returns char *.
16116         * lib/argp-parse.c (N_): Define unconditionally.
16117         (argp_default_options): Fill out initializers with 0 to avoid
16118         gcc warnings.
16119
16120 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
16121
16122         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
16123         getopt1.c.
16124
16125 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
16126
16127         Merge from coreutils.
16128
16129         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
16130
16131         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
16132         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
16133
16134 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
16135
16136         Merge from coreutils.
16137
16138         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
16139         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
16140         for Reliant Unix 5.43.
16141
16142         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
16143         (union fooround): Use uintmax_t, not long int.
16144         The rest is a merge from libc:
16145         [defined _LIBC]: Include <shlib-compat.h>.
16146         (_obstack) [defined _LIBC]: Remove after 2.3.4.
16147
16148         * lib/settime.c (settime): Recode to avoid warning with
16149         Sun Forte C 6U2.
16150
16151         * lib/strverscmp.c: Convert to UTF-8.
16152
16153 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
16154
16155         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
16156         m4/uintmax_t.m4.
16157
16158 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
16159
16160         * modules/xalloc-die: New file.
16161         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
16162
16163         * modules/md5 (Files): Add m4/uint32_t.m4.
16164         * modules/sha1: Renamed from modules/sha.
16165         (Files):
16166         Rename lib/sha.h to lib/sha1.h.
16167         Rename lib/sha.c to lib/sha1.c.
16168         Rename m4/sha.m4 to m4/sha1.m4.
16169         (lib_SOURCES): Likewise.
16170         (configure.ac): Rename gl_SHA to gl_SHA1.
16171         (Include): sha.h -> sha1.h.
16172
16173 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
16174
16175         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
16176         * m4/sha1.m4: Renamed from sha.m4.
16177         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
16178
16179 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
16180
16181         * lib/obstack.h (obstack_empty_p):
16182         Don't assume that chunk->contents is suitably aligned.
16183         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
16184         Likewise. Problem reported by Benno in
16185         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
16186
16187         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
16188         readable.  This could be improved further but it'd take some work.
16189
16190 2004-08-08  Simon Josefsson  <jas@extundo.com>
16191
16192         * modules/xgethostname (Depends-on): Remove exit and error (not
16193         used).
16194
16195         * modules/getpass-gnu: Add getpass.h.
16196         (Depends-on): Add stdbool.
16197         * modules/getpass: Add getpass.h.
16198
16199 2004-08-08  Simon Josefsson  <jas@extundo.com>
16200
16201         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
16202         Check getpass declaration.
16203
16204 2004-08-08  Simon Josefsson  <jas@extundo.com>
16205
16206         * lib/xgethostname.c: Don't include error.h (not used).
16207
16208         * lib/getpass.h: Add.
16209         * lib/getpass.c: Include getpass.h first.
16210
16211 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
16212
16213         * lib/xalloc-die.c: New file.
16214         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
16215         All uses removed.
16216         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
16217         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
16218         xalloc-die.c.
16219         (_, N_, xalloc_die): Move to xalloc-die.c.
16220         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
16221         so that we needn't mess with xalloc_msg_memory_exhausted.
16222
16223         * lib/sha1.h: Renamed from sha.h.
16224         (SHA1_H): Renamed from _SHA_H.
16225         (sha1_ctx): Renamed from sha_ctx.
16226         (sha1_init_ctx): Renamed from sha_init_ctx.
16227         (sha1_process_block): Renamed from sha_process_block.
16228         (sha1_process_bytes): Renamed from sha_process_bytes.
16229         (sha1_finish_ctx): Renamed from sha_finish_ctx.
16230         (sha1_read_ctx): Renamed from sha_read_ctx.
16231         (sha1_stream): Renamed from sha_stream.
16232         (sha1_buffer): Renamed from sha_buffer.
16233         * lib/sha1.c: Likewise; renamed from sha.c.
16234         Do not include <sys/types.h>.
16235         Include <stddef.h> rather than <stdlib.h>.
16236
16237 2004-08-08  Bruno Haible  <bruno@clisp.org>
16238
16239         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
16240         FILESYSTEM_PREFIX_LEN.
16241         * lib/progreloc.c: Likewise.
16242         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
16243
16244 2004-08-06  Simon Josefsson  <jas@extundo.com>
16245
16246         * modules/progname (Depends-on): Don't depend on stdbool.
16247
16248 2004-08-06  Simon Josefsson  <jas@extundo.com>
16249
16250         * modules/getsubopt: New file.
16251         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
16252         getsubopt.
16253
16254 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
16255
16256         More merge from coreutils.
16257
16258         * m4/utimens.m4, m4/utimecmp.m4: New files.
16259         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
16260         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
16261         prereq.m4, sha.m4: Import changes from coreutils.
16262
16263 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
16264
16265         More merge from coreutils.
16266         * modules/raise, modules/readtokens0, modules/utimens:
16267         * modules/utimecmp, module/xnanosleep: New files.
16268         * modules/strftime: Add lib/strftime.h.
16269         Change include from <time.h> to "strftime.h".
16270         * modules/yesno: Add lib/yesno.h.
16271         * modules/backupfile: Remove lib/addext.c.
16272         * modules/euidaccess: Add stat-macros.h.
16273         * modules/canonicalize, modules/euidaccess,
16274         modules/filemode, modules/lchown, modules/makepath,
16275         modules/rmdir, modules/stat: Likewise.
16276
16277 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
16278
16279         Merge from tar.
16280         * lib/argp-help.c (make_hol, hol_append): Don't assume that
16281         SIZE_MAX is a valid preprocessor constant.
16282         (__argp_basename): Change from "#ifndef _LIBC"
16283         to "#ifndef __argp_short_program_name", so that
16284         we don't compile these functions for tar.
16285
16286         More merges from coreutils.
16287         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
16288         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
16289         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
16290         * lib/addext.c: Remove; no longer needed.
16291         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
16292         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
16293         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
16294         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
16295         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
16296         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
16297         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
16298         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
16299         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
16300         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
16301         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
16302         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
16303         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
16304         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
16305         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
16306         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
16307         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
16308         Import changes from coreutils.
16309
16310 2004-08-05  Simon Josefsson  <jas@extundo.com>
16311
16312         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
16313
16314 2004-08-05  Simon Josefsson  <jas@extundo.com>
16315
16316         * m4/getsubopt.m4: New file.
16317
16318 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
16319
16320         Merge from coreutils.
16321
16322         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
16323         * m4/getcwd-path-max.m4: New files.
16324
16325         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
16326         FILESYSTEM_PREFIX_LEN ->
16327         FILE_SYSTEM_PREFIX_LEN.
16328         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
16329         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
16330         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
16331         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
16332
16333         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
16334         prerequisite modules now handle the DOS stuff.
16335         Don't check for unistd.h.
16336
16337 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
16338
16339         Merge from coreutils.
16340
16341         * lib/.gdb-history: Remove; this doesn't belong here.
16342
16343         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
16344         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
16345         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
16346         * lib/getcwd.c: New files.
16347
16348         * lib/dirname.h: Include <stdbool.h>.
16349         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
16350         for consistency with POSIX terminology.  All uses changed.
16351         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
16352         (strip_trailing_slashes): Use bool for booleans.
16353         * lib/stripslash.c (strip_trailing_slashes): Likewise.
16354
16355         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
16356         sometimes returns a positive errno value even when it succeeds.
16357         (print_errno_message) [!LIBC]: Fall back on strerror if
16358         __strerror_r fails.
16359
16360         * lib/path-concat.c (mempcpy): Don't define if a system header defines
16361         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
16362         (longest_relative_suffix): New function.
16363         (path_concat): Use it.  Assume first argument is not NULL.
16364         Port to DOS.  Omit redundant separators.
16365         Report an error instead of returning NULL.
16366         Use mempcpy instead of memcpy.
16367         (xpath_concat): Remove: not declared or used.
16368
16369         * lib/same.h: Include <stdbool.h>
16370         (same_name): Return bool, not int.
16371         * lib/same.c (same_name): Likewise.
16372         (errno): Don't declare; we assume C89 or better now.
16373
16374         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
16375         if not already defined.
16376
16377         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
16378         * lib/dup-safer.c (errno): Likewise.
16379
16380 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
16381
16382         Merge from coreutils.
16383         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
16384         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
16385         * modules/path-concat: Don't depend on strdup.
16386
16387 2004-08-03  Simon Josefsson  <jas@extundo.com>
16388
16389         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
16390         * lib/progname.h: Don't include stdbool.h.
16391
16392 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
16393
16394         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
16395         * MODULES.html.sh (func_all_modules): Remove fatal.
16396
16397 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
16398
16399         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
16400
16401 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
16402
16403         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
16404         working.
16405
16406 2004-08-02  Simon Josefsson  <jas@extundo.com>
16407
16408         * lib/getsubopt.h: New file, with comments from Bruno Haible.
16409         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
16410         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
16411
16412 2004-08-01  Simon Josefsson  <jas@extundo.com>
16413
16414         * lib/xgetdomainname.c: Include stdlib.h, for free().
16415
16416 2004-07-19  Bruno Haible  <bruno@clisp.org>
16417
16418         * MODULES.html.sh (func_all_modules): Add dummy.
16419
16420 2004-07-16  Simon Josefsson  <jas@extundo.com>
16421
16422         * modules/dummy: New file.
16423
16424 2004-07-16  Simon Josefsson  <jas@extundo.com>
16425
16426         * lib/dummy.c: New file.
16427
16428 2004-07-16  Bruno Haible  <bruno@clisp.org>
16429
16430         * lib/backupfile.h: Add extern "C" for C++.
16431         * lib/closeout.h: Likewise.
16432         * lib/copy-file.h: Likewise.
16433         * lib/findprog.h: Likewise.
16434         * lib/full-write.h: Likewise.
16435         * lib/pathname.h: Likewise.
16436         * lib/progname.h: Likewise.
16437         * lib/stpcpy.h: Likewise.
16438         * lib/stpncpy.h: Likewise.
16439         * lib/strcase.h: Likewise.
16440         * lib/strstr.h: Likewise.
16441         * lib/xalloc.h: Likewise.
16442
16443         * lib/mbswidth.h: Add extern "C" for C++.
16444         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
16445
16446 2004-07-13  Robert Millan  <robertmh@gnu.org>
16447
16448         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
16449
16450 2004-07-09  Simon Josefsson  <jas@extundo.com>
16451
16452         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
16453         failed without this.)
16454
16455 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
16456
16457         * modules/chown (Files): Add lib/fchown-stub.c, since
16458         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
16459
16460 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
16461
16462         * lib/fchown-stub.c: New file.
16463
16464 2004-06-24  Jim Meyering  <jim@meyering.net>
16465
16466         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
16467
16468 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
16469
16470         * modules/argz: Omit "#include".
16471
16472         * MODULES.html.sh (func_all_modules): Add calloc, to match
16473         2004-06-01 addition of calloc module.
16474
16475 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
16476
16477         * m4/argz.m4: New file, which is autoupdated from libtool.
16478
16479 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
16480
16481         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
16482         libtool.
16483
16484 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
16485
16486         * config/srclist-update: Don't insist on "USA." before the
16487         close-comment, as libtool omits the period and puts the */ on a
16488         separate line.
16489         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
16490         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
16491
16492 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
16493
16494         * modules/argz: New file.
16495         * MODULES.html.sh (func_all_modules): Add argz.
16496
16497 2004-06-12  Jim Meyering  <jim@meyering.net>
16498         and  Paul Eggert  <eggert@cs.ucla.edu>
16499
16500         * modules/hash (Files): Add lib/xalloc.h.
16501         * modules/pipe (Depends-on): Add wait-process.
16502         * modules/stat (Depends-on): Add xalloc.
16503         * modules/userspec (Files): Add lib/userspec.h.
16504         * modules/xstrto
16505
16506         Upgrade from gettext-0.13.
16507         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
16508         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
16509         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
16510
16511 2004-06-10  Jim Meyering  <jim@meyering.net>
16512
16513         * lib/calloc.c: New file.
16514
16515 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
16516
16517         * lib/getdate.y (yylex): Allow space between sign and number.
16518         Problem reported by Dan Jacobson.
16519
16520 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
16521
16522         Merge from coreutils CVS.
16523
16524         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
16525         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
16526         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
16527         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
16528         xstrtol.m4: Fix copyright date and/or serial number.
16529
16530         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
16531         See if we need an fchown replacement.
16532         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
16533         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
16534         and use the replacement function if we detect either defect.
16535
16536         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
16537         gl_UTIMECMP.
16538
16539 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
16540         and  Jim Meyering  <jim@meyering.net>
16541
16542         Merge from coreutils CVS.
16543
16544         * lib/stat-macros.h: New file, with contents from file-type.h
16545         and coreutils' system.h.
16546         * lib/file-type.c: Include "stat-macros.h".
16547         * lib/file-type.h (file_type): Move all macro definitions to new file,
16548         stat-macros.h.
16549
16550         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
16551         Wrap old code with this conditional.
16552         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
16553         function that does not dereference symlinks.
16554         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
16555
16556         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
16557         dependency problems.
16558         (xreadlink): Accept new arg SIZE, for efficiency.
16559         All decls and uses changed.
16560         * lib/xreadlink.h: Include <stddef.h>, for size_t.
16561
16562         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
16563         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
16564
16565         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
16566         sysexits.h.
16567
16568 2004-06-01  Jim Meyering  <jim@meyering.net>
16569
16570         * m4/calloc.m4: New file.
16571
16572 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
16573
16574         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
16575         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
16576         Also, fix a typo in a diagnostic.
16577
16578 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
16579
16580         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
16581         or AC_FUNC_REALLOC.
16582
16583 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
16584
16585         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
16586         macros to be defined.
16587         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
16588         the allocator returns NULL because the requested size is zero.
16589
16590 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
16591
16592         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
16593         var.  Add comment explaining why libc still defines it.  This
16594         merges the following patch from glibc:
16595         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
16596
16597 2004-05-20  Andreas Schwab  <schwab@suse.de>
16598
16599         * m4/free.m4: Replace free if it not known to work, not the other
16600         way round.
16601
16602 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
16603
16604         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
16605         present in glibc since revision 1.1 of this file.
16606         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
16607         obstack_alignment_mask, obstack_alloc, obstack_base,
16608         obstack_blank, obstack_blank_fast, obstack_chunk_size,
16609         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
16610         obstack_grow0, obstack_init, obstack_int_grow,
16611         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
16612         obstack_next_free, obstack_object_size, obstack_ptr_grow,
16613         obstack_ptr_grow_fast, obstack_room): Remove declarations of
16614         nonexistent functions.
16615
16616 2004-05-18  Karl Berry  <karl@gnu.org>
16617
16618         * config/srclist.txt: break link for vasnprintf.c.
16619
16620 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
16621
16622         Port obstack to the AS/400, where pointers are 16 bytes wide and
16623         you cannot cast an integer to a valid pointer.  This patch is
16624         currently waiting to be integrated into glibc; see
16625         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
16626
16627         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
16628         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
16629         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
16630         (struct obstack): temp member is now a union of a pointer and
16631         an integer, instead of an integer.  All integer uses changed.
16632         This does not affect the physical layout of struct obstack,
16633         except on hosts (like the AS/400) where the size or alignment of
16634         void * is greater than that of ptrdiff_t.
16635         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
16636         __STDC__)]: Store temporary in pointer member of union, not
16637         integer member.
16638         * lib/obstack.c: Include <stddef.h>, for offsetof.
16639         (struct fooalign): Remove; it doesn't need a name.
16640         (union fooround): Change double to long double, and add void *.
16641         (DEFAULT_ALIGNMENT): Use offsetof to compute.
16642         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
16643         not a macro.  Hence the values are always int; so remove all
16644         casts-to-int in uses.
16645
16646 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
16647
16648         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
16649         we can get this patch merged into glibc.
16650
16651 2004-05-17  Derek R. Price  <derek@ximbiot.com>
16652             Paul Eggert  <eggert@cs.ucla.edu>
16653
16654         * m4/argp: Depend on alloca.
16655
16656 2004-05-17  Derek R. Price  <derek@ximbiot.com>
16657             Paul Eggert  <eggert@cs.ucla.edu>
16658
16659         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
16660         freecoding.
16661
16662 2004-05-17  Bruno Haible  <bruno@clisp.org>
16663
16664         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
16665         precision that consists of a '.' followed by an empty digit string.
16666         Patch by Tor Lillqvist <tml@iki.fi>.
16667
16668 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
16669
16670         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
16671         for backward compatibility with older code.  We need our own
16672         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
16673         it under some other name, and our alloca.h will define it.
16674
16675 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
16676             Derek Price  <derek@ximbiot.com>
16677
16678         * lib/alloca.c: Include <alloca.h>, to get our interface.
16679         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
16680         include <alloca.h> first.  Use C89 prototype for alloca; this
16681         requires including <stddef.h> for size_t.  Use extern "C" if C++.
16682         Use #elif for simplicity, since we can assume C89 now.
16683         Don't try to source the system alloca.h since it will not be found
16684         and to prevent recursively including its replacement.
16685         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
16686         * lib/regex.c: Likewise.
16687
16688 2004-05-16  Derek Price  <derek@ximbiot.com>
16689             Paul Eggert  <eggert@cs.ucla.edu>
16690
16691         getline cleanup.  This changes the getndelim2 API: both order of
16692         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
16693         no delimiter).
16694
16695         * lib/getline.c: Don't include stddef.h or stdio.h, since our
16696         interface does that.
16697         (getline): Always use getdelim, so that we don't have two
16698         copies of this code.
16699         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
16700         if available.
16701         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
16702         (GETNDELIM2_MAXIMUM): New macro.
16703         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
16704         instead of the old practice of delim2==0.  All callers changed.
16705         Return -1 on overflow, instead of returning junk.
16706         Do not set *linesize unless allocation succeeds.
16707         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
16708         that we include sys/types.h.
16709         * lib/getnline.h: Likewise.
16710         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
16711         (getndelim2): Reorder arguments.
16712         * lib/getnline.c (getnline, getndelim):
16713         Don't discard the NMAX argument.
16714         (getnline): Invoke getndelim, to avoid code duplication.
16715         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
16716         of (size_t) -1 by callers of the getnline family.
16717
16718 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
16719
16720         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
16721         Check for gettimeofday.
16722         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
16723         Check for settimeofday, stime.
16724
16725 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
16726
16727         * lib/nanosleep.c (suspended): Change its type from int to
16728         sig_atomic_t volatile.
16729         (first_call): Make it private to rpl_nanosleep, and have it
16730         be zero initially as that's a bit faster.
16731         (my_usleep): Round up fractional times instead of truncating them,
16732         as this is the usual meaning for 'sleep'.
16733
16734         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
16735         doesn't work.
16736         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
16737         (ENOSYS): Define if not defined.
16738         (settime): Fall back on stime if it exists and settimeofday fails.
16739         But don't bother with fallbacks if a method fails with errno == EPERM.
16740
16741 2004-05-11  Jim Meyering  <jim@meyering.net>
16742
16743         Prior to this change, the save_cwd caller required read access to the
16744         current directory on most systems (ones with the fchdir function).
16745
16746         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
16747         fails, try write-only, and finally, resort to using xgetcwd.
16748
16749 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
16750
16751         * lib/obstack.c, obstack.h: Import changes from libc.
16752
16753 2004-04-28  Bruno Haible  <bruno@clisp.org>
16754
16755         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
16756         also implicitly appends .exe to executables.
16757         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
16758         accepts Windows pathnames.
16759         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
16760         Treat Cygwin like Windows, since it now accepts Windows pathnames.
16761         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
16762         Treat Cygwin like Windows, since it now accepts Windows pathnames.
16763         Reported by Derek Robert Price <derek@ximbiot.com>.
16764
16765 2004-04-21  Karl Berry  <karl@gnu.org>
16766
16767         * config/srclist.txt (localcharset.c): break sync.
16768
16769 2004-04-20  Paul Eggert  <eggert@twinsun.com>
16770
16771         * m4/host-os.m4: Add a copyright notice.
16772
16773 2004-04-20  Jim Meyering  <jim@meyering.net>
16774
16775         Change UTILS_ to gl_ in AC_DEFINE'd names.
16776         Change utils_- and jm_-prefixed variables, too.
16777         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
16778         UTILS_FUNC_MKDIR_TRAILING_SLASH.
16779         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
16780
16781         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
16782         Don't emit trailing blanks.
16783         Also rename jm_-prefixed variables to have gl_ prefix.
16784
16785         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
16786         Also rename jm_-prefixed variables to have gl_ prefix.
16787
16788         * m4/jm-macros.m4: Reflect the renamings.
16789         * m4/prereq.m4: Likewise.
16790
16791 2004-04-20  Jim Meyering  <jim@meyering.net>
16792
16793         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
16794         memory.
16795
16796 2004-04-20  Jim Meyering  <jim@meyering.net>
16797             Bruno Haible  <bruno@clisp.org>
16798
16799         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
16800         memory when realloc fails.
16801
16802 2004-04-19  Jim Meyering  <jim@meyering.net>
16803
16804         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
16805         now that readutmp.c may call `free (0)'.
16806
16807 2004-04-19  Bruno Haible  <bruno@clisp.org>
16808
16809         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
16810         * m4/inttypes_h.m4: Likewise.
16811         * m4/stdint_h.m4: Likewise.
16812         * m4/intmax_t.m4: Likewise.
16813         * m4/uintmax_t.m4: Likewise.
16814
16815 2004-04-18  Jim Meyering  <jim@meyering.net>
16816
16817         * m4/prereq.m4: Don't forbid jm_ prefix.
16818
16819         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
16820         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
16821         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
16822         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
16823         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
16824         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
16825         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
16826         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
16827         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
16828         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
16829         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
16830         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
16831         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
16832         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
16833         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
16834         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
16835         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
16836         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
16837         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
16838
16839 2004-04-18  Jim Meyering  <jim@meyering.net>
16840
16841         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
16842         failure, don't leak memory and do call END_UTMP_ENT.
16843
16844 2004-04-16  Jim Meyering  <jim@meyering.net>
16845
16846         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
16847         coreutils' stat program.
16848         (gl_PREREQ): Don't require jm_PREREQ_STAT.
16849
16850 2004-04-11  Paul Eggert  <eggert@twinsun.com>
16851
16852         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
16853         C89.
16854         (CHAR_BIT): Remove, since we assume C89.
16855         Include <stdint.h> if available, as per current Autoconf CVS advice.
16856
16857 2004-03-31  Jim Meyering  <jim@meyering.net>
16858
16859         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
16860         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
16861         * m4/xalloc.m4: Likewise.
16862
16863 2004-03-30  Paul Eggert  <eggert@twinsun.com>
16864
16865         Merge from coreutils.
16866
16867         * m4/inttostr.m4: New file.
16868         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
16869         Require AM_STDBOOL_H and gl_TIMESPEC instead.
16870         Require gl_CLOCK_TIME.
16871         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
16872
16873 2004-03-30  Paul Eggert  <eggert@twinsun.com>
16874
16875         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
16876         not bool, to be more consistent with Unix conventions.
16877         Suggested by Bruno Haible.
16878
16879         Merge from coreutils.
16880
16881         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
16882         * lib/umaxtostr.c: New files.
16883
16884         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
16885         the usual <time.h> dance.
16886         (get_date): Change signature to support fractional time stamps.
16887         All callers changed.
16888         * lib/getdate.y: Include "getdate.h" first, as we can now
16889         assume C89 and don't need to worry about 'const'.
16890         Similarly, include "unlocked-io.h" near start, not in middle.
16891         Include <limits.h>.
16892         (textint.value): Use long int rather than int.
16893         (textint.digits): Use size_t rather than int.
16894         (BILLION, LOG10_BILLION): New constants.
16895         (parser_control): New member rel_ns.  Members day_ordinal,
16896         time_zone, month, day, hour, minutes, rel_year, rel_month,
16897         rel_day, rel_hour, rel_minutes, rel_seconds
16898         are now long int, not int.  Member seconds is now struct timespec,
16899         not int.  New member timespec_seen.  Members dates_seen, days_seen,
16900         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
16901         not int.
16902         (%union.intval): Now long int, not int.
16903         New member timespec.
16904         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
16905         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
16906         (spec): Now is a timespec or an item list.
16907         (timespec, items): New nonterminals.
16908         (time, rel, relunit, number, get_date):
16909         Add support for fractional seconds.
16910         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
16911         (gmtime, localtime, mktime): Remove decls; not needed with C89.
16912         (to_hour): First arg is now long int, not int.
16913         (to_year): Returns long int, not int.
16914         Don't treat year -70 like 70.
16915         (tm_diff): Returns long int, not int.
16916         (lookup_word): Use bool instead of int when appropriate.
16917         (yylex): Use size_t for count, not int.
16918         Detect overflow when parsing large integer constants.
16919         Add support for fractions.
16920         (get_date): Make pointers 'const' if possible.
16921         Use more-portable code to detect integer overflow.
16922         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
16923         Don't use ctime; it's not reliable if the year has >4 digits.
16924
16925         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
16926         This is for compatibility with BSD.
16927
16928         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
16929         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
16930         From coreutils' system.h.
16931
16932         * lib/userspec.c: Don't include "posixver.h".
16933         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
16934         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
16935         compatible extension.  Simplify code by removing a boolean int
16936         that was always nonzero if a string was nonnull.
16937
16938 2004-03-30  Jim Meyering  <jim@meyering.net>
16939
16940         Merge from coreutils.
16941
16942         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
16943         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
16944         on some systems one must include <grp.h> before it.
16945         Reported by Christian Krackowizer.
16946
16947 2004-03-30  Jim Meyering  <jim@meyering.net>
16948
16949         Merge from coreutils.
16950
16951         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
16952
16953         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
16954         an empty input stream.
16955
16956         * lib/readtokens.c: Include <stdbool.h>.
16957         (readtoken): Use `size_t' rather than int/long.
16958         All callers adjusted.
16959         Use `bool' rather than `int' where appropriate.
16960         Use memset rather than an explicit loop.
16961         Use x2nrealloc rather than xrealloc.
16962         Allow the use of `\0' as a delimiter.
16963         (readtokens): Likewise.
16964         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
16965
16966 2004-03-30  Jim Meyering  <jim@meyering.net>
16967
16968         * m4/realloc.m4: Remove file, since now it does no more than
16969         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
16970         the `configure.ac' section of module/realloc.
16971         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
16972
16973 2004-03-30  Bruno Haible  <bruno@clisp.org>
16974
16975         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
16976         nonnull.
16977
16978 2004-03-29  Paul Eggert  <eggert@twinsun.com>
16979
16980         Merge changes to getloadavg.c from coreutils and Emacs.
16981
16982         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
16983         Define to an expression, not to the empty string.
16984         Include cloexec.h and xalloc.h.
16985         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
16986         Use set_cloexec_flag rather than rolling our own.
16987         * lib/cloexec.c, lib/cloexec.h: New files.
16988
16989 2004-03-29  Paul Eggert  <eggert@twinsun.com>
16990
16991         * m4/cloexec.m4: New file.
16992
16993 2004-03-18  Paul Eggert  <eggert@twinsun.com>
16994
16995         * lib/getopt.h: Sync with libc CVS.
16996
16997 2004-03-18  Paul Eggert  <eggert@twinsun.com>
16998             Bruno Haible  <bruno@clisp.org>
16999
17000         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
17001         mbswidth.
17002
17003 2004-03-18  Paul Eggert  <eggert@twinsun.com>
17004             Bruno Haible  <bruno@clisp.org>
17005
17006         * lib/mbswidth.h: Include <wchar.h> only if
17007         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
17008         <wchar.h>.
17009         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
17010
17011 2004-03-09  Paul Eggert  <eggert@twinsun.com>
17012
17013         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
17014         Sync with libc CVS.
17015         * lib/getopt_int.h: New file, also synced from libc.
17016
17017 2004-03-09  Paul Eggert  <eggert@twinsun.com>
17018
17019         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
17020         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
17021         Bring back getopt.c, getopt.h, getopt1.c.
17022
17023 2004-03-07  Paul Eggert  <eggert@twinsun.com>
17024
17025         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
17026         All uses changed.  Check for sa_sigaction member; this fixes
17027         a bug first reported by Jason Andrade in
17028         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
17029
17030 2004-03-07  Paul Eggert  <eggert@twinsun.com>
17031
17032         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
17033         '#if' expressions.  Unlike the code it replaces, it does not
17034         depend on (defined _SC_PAGESIZE).  However, it does depend on
17035         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
17036         first reported by Jason Andrade in
17037         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
17038
17039 2004-02-25  Simon Josefsson  <jas@extundo.com>
17040
17041         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
17042
17043 2004-02-25  Simon Josefsson  <jas@extundo.com>
17044
17045         * lib/strdup.h: New file.
17046         * lib/strdup.c: Include it.
17047         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
17048         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
17049
17050 2004-02-23  Karl Berry  <karl@gnu.org>
17051
17052         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
17053         (from fencepost.gnu.org:/gd/gnuorg).
17054
17055 2004-02-23  Karl Berry  <karl@gnu.org>
17056
17057         * config/srclistvars.sh (GNUORG) [karl]: redefine.
17058         * config/srclist.txt: add maintain/standards documents.
17059
17060 2004-02-18  Bruno Haible  <bruno@clisp.org>
17061
17062         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
17063         Reported by Derek Robert Price <derek@ximbiot.com>.
17064
17065 2004-02-16  Karl Berry  <karl@gnu.org>
17066
17067         * config/mkinstalldirs, install-sh: update from automake.
17068
17069 2004-02-06  Karl Berry  <karl@gnu.org>
17070
17071         * m4/po.m4: update from gettext 0.14.1.
17072
17073 2004-02-06  Karl Berry  <karl@gnu.org>
17074
17075         * lib/config.charset: update from gettext 0.14.1.
17076
17077 2004-02-05  Paul Eggert  <eggert@twinsun.com>
17078
17079         Add comments and code, prompted by suggestions from Bruno Haible
17080         for sh-quote.
17081         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
17082         describing the enum quoting_style values.
17083         * lib/quotearg.c (quotearg_alloc): New function.
17084         (quotearg_buffer_restyled): Treat lone { and } as special.
17085         Treat = as special.  Work around bug with older shells
17086         that "see" a '\' that is really the 2nd byte of a multibyte char.
17087         Quote empty string with shell_quoting_style.
17088
17089 2004-02-03  Bruno Haible  <bruno@clisp.org>
17090
17091         * m4/pipe.m4: New file, from GNU gettext.
17092
17093 2004-02-03  Bruno Haible  <bruno@clisp.org>
17094
17095         * lib/pipe.h: New file, from GNU gettext.
17096         * lib/pipe.c: New file, from GNU gettext.
17097
17098 2004-01-27  Bruno Haible  <bruno@clisp.org>
17099
17100         * m4/execute.m4: New file, from GNU gettext.
17101
17102 2004-01-27  Bruno Haible  <bruno@clisp.org>
17103
17104         * lib/execute.h: New file, from GNU gettext.
17105         * lib/execute.c: New file, from GNU gettext.
17106         * lib/w32spawn.h: New file, from GNU gettext.
17107
17108 2004-01-24  Paul Eggert  <eggert@twinsun.com>
17109
17110         Merge from diffutils.
17111
17112         * lib/file-type.c (file_type): Add typed memory objects.
17113         * lib/file-type.h (S_TYPEISTMO): New macro.
17114
17115         * lib/c-stack.h (c_stack_action): Remove argv argument.
17116         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
17117         (die): Don't calculate message unless segv_action returns.
17118         (get_stack_location, min_address_from_argv, max_address_from_argv,
17119         volatile stack_base, volatile_stack_size): Remove.
17120         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
17121         that every segmentation violation is a stack overflow.  (Ouch!)
17122         See Debian bug 136249 (still outstanding) for more info about why
17123         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
17124
17125 2004-01-24  Paul Eggert  <eggert@twinsun.com>
17126
17127         Exit-status fix from coreutils.
17128
17129         Use exit_failure consistently in place of EXIT_FAILURE,
17130         so that program exit statuses are consistent on failure.
17131
17132         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
17133         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
17134         * lib/argmatch.h: Comment fix to match the above.
17135         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
17136         Now a macro referring to exit_failure, instead of a separate
17137         variable.  Include "exitfail.h" to get it.
17138         * lib/xstrtol.h: Include "exitfail.h".
17139         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
17140
17141         * lib/long-options.c (parse_long_options): Use prototype
17142         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
17143         for clarity.
17144
17145 2004-01-21  Jim Meyering  <jim@meyering.net>
17146
17147         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
17148         so as not to conflict with a different-sized __mktime_internal
17149         function in GNU libc.
17150         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
17151         Problem building statically-linked `ls' reported by Michael Brunnbauer.
17152
17153 2004-01-20  Karl Berry  <karl@gnu.org>
17154
17155         * config/config.guess: update from config.
17156
17157         * config/srclistvars.sh: GNUWWWLICENSES for karl.
17158
17159 2004-01-20  Bruno Haible  <bruno@clisp.org>
17160
17161         Safer stack allocation.
17162         * lib/setenv.c: Include allocsa.h.
17163         (alloca): Remove fallback definition.
17164         (freea): Remove macro.
17165         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
17166         instead of freea.
17167
17168 2004-01-20  Bruno Haible  <bruno@clisp.org>
17169
17170         * m4/eealloc.m4: New file, from GNU gettext.
17171
17172 2004-01-20  Bruno Haible  <bruno@clisp.org>
17173
17174         * m4/allocsa.m4: New file, from GNU gettext.
17175
17176 2004-01-20  Bruno Haible  <bruno@clisp.org>
17177
17178         * lib/xallocsa.h: New file, from GNU gettext.
17179         * lib/xallocsa.c: New file, from GNU gettext.
17180
17181 2004-01-20  Bruno Haible  <bruno@clisp.org>
17182
17183         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
17184
17185 2004-01-20  Bruno Haible  <bruno@clisp.org>
17186
17187         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
17188         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
17189         specially.
17190
17191 2004-01-20  Bruno Haible  <bruno@clisp.org>
17192
17193         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
17194         patch.
17195
17196 2004-01-20  Bruno Haible  <bruno@clisp.org>
17197
17198         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
17199
17200 2004-01-20  Bruno Haible  <bruno@clisp.org>
17201
17202         * lib/eealloc.h: New file.
17203
17204 2004-01-20  Bruno Haible  <bruno@clisp.org>
17205
17206         * lib/binary-io.h: Avoid warnings on Cygwin.
17207
17208 2004-01-20  Bruno Haible  <bruno@clisp.org>
17209
17210         * lib/allocsa.h: New file, from GNU gettext.
17211         * lib/allocsa.c: New file, from GNU gettext.
17212
17213 2004-01-18  Karl Berry  <karl@gnu.org>
17214
17215         * doc/gpl.texi, doc/lgpl.texi: new files.
17216
17217 2004-01-18  Karl Berry  <karl@gnu.org>
17218
17219         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
17220         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
17221
17222 2004-01-15  Paul Eggert  <eggert@twinsun.com>
17223
17224         Merge from coreutils.
17225
17226         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
17227         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
17228         (gl_DEFAULT_POSIX2_VERSION): Move
17229         the documentation from 'configure' into 'config.hin',
17230         so that 'configure --help' isn't burdened by it and
17231         we don't have to worry about its formatting there.
17232         Reword the documentation so that it's more succinct
17233         and can be run together into a single paragraph.
17234         * m4/same.m4 (gl_SAME): Check for pathconf.
17235
17236 2004-01-15  Paul Eggert  <eggert@twinsun.com>
17237
17238         Merge from coreutils.
17239
17240         * lib/posixver.c: Include posixver.h.
17241
17242         * lib/same.c: Include <stdbool.h>, <limits.h>.
17243         (_POSIX_NAME_MAX): Define if not defined.
17244         (MIN): New macro.
17245         (same_name): If file names are silently truncated, report
17246         that the file names are the same if they are the same after
17247         the silent truncation.
17248
17249         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
17250         conversion function.
17251         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
17252         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
17253         longer needed.
17254
17255 2004-01-15  Jim Meyering  <jim@meyering.net>
17256
17257         Merge from coreutils.
17258
17259         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
17260         if no library is required.
17261         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
17262         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
17263         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
17264         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
17265         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
17266         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
17267         value, $ac_cv_search_crypt, if it's "none required".
17268         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
17269         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
17270         not gl_FUNC_GETLOADAVG.
17271         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
17272         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
17273
17274 2004-01-15  Jim Meyering  <jim@meyering.net>
17275
17276         Merge from coreutils.
17277
17278         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
17279         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
17280         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
17281
17282         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
17283         optional configure-time default.
17284
17285         * lib/version-etc.c (version_etc_copyright): Update copyright date.
17286
17287         * lib/xreadlink.c (xreadlink): Correct outdated comment.
17288
17289 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
17290
17291         Merge from coreutils.
17292
17293         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
17294         value, $ac_cv_search_nanosleep, if it's "none required".
17295
17296 2004-01-14  Paul Eggert  <eggert@twinsun.com>
17297
17298         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
17299         with like-named macro in fnmatch.c.
17300         (EXT): Use an internal constant instead.
17301
17302         Merge fnmatch patches from glibc.
17303         * lib/fnmatch.c (mbsinit): Remove define.
17304         Add libc_hidden_ver (__fnmatch, fnmatch).
17305         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
17306         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
17307
17308 2004-01-14  Karl Berry  <karl@gnu.org>
17309
17310         * config/install-sh: update from automake.
17311
17312 2004-01-13  Karl Berry  <karl@gnu.org>
17313
17314         * config/install-sh: update from automake.
17315
17316 2004-01-09  Karl Berry  <karl@gnu.org>
17317
17318         * config/install-sh: update from automake.
17319
17320 2004-01-05  Karl Berry  <karl@gnu.org>
17321
17322         * config/config.{sub,guess}: update from config.
17323
17324 2003-12-31  Karl Berry  <karl@gnu.org>
17325
17326         * config/depcomp: update from automake.
17327
17328 2003-12-14  Karl Berry  <karl@gnu.org>
17329
17330         * lib/config.charset: update from gettext-runtime.
17331
17332 2003-12-03  Paul Eggert  <eggert@twinsun.com>
17333
17334         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
17335         Bug reported by Alfred M. Szmidt.
17336
17337 2003-12-03  Bruno Haible  <bruno@clisp.org>
17338
17339         * m4/gettext.m4: Upgrade from gettext-0.13.
17340         * m4/po.m4: Upgrade from gettext-0.13.
17341         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
17342         * m4/intmax.m4: New file, from gettext-0.13.
17343         * m4/printf-posix.m4: New file, from gettext-0.13.
17344
17345 2003-11-29  Karl Berry  <karl@gnu.org>
17346
17347         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
17348
17349 2003-11-25  Paul Eggert  <eggert@twinsun.com>
17350             Bruno Haible  <bruno@clisp.org>
17351
17352         * lib/printf-parse.h: Don't include sys/types.h.
17353         (ARG_NONE): New macro.
17354         (char_directive): Change type of *arg_index fields to size_t.
17355         * lib/printf-parse.c: Don't include sys/types.h.
17356         (SSIZE_MAX): Remove macro.
17357         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
17358         Remove unnecessary overflow check.
17359         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
17360         fields.
17361
17362 2003-11-25  Bruno Haible  <bruno@clisp.org>
17363
17364         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
17365
17366 2003-11-25  Bruno Haible  <bruno@clisp.org>
17367
17368         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
17369         gt_TYPE_SSIZE_T.
17370
17371 2003-11-24  Paul Eggert  <eggert@twinsun.com>
17372
17373         * modules/alloca: Remove dependency on xalloc.
17374
17375 2003-11-24  Paul Eggert  <eggert@twinsun.com>
17376
17377         * lib/alloca.c: Remove dependency on xalloc module.
17378         (xalloc_die): Remove.
17379         (memory_full) [!defined emacs]: New macro.
17380         [!defined emacs]: Don't include xalloc.h.
17381         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
17382         address arithmetic overflows.  Change datatypes a bit to avoid
17383         unnecessary casts.
17384
17385 2003-11-22  Jim Meyering  <jim@meyering.net>
17386
17387         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
17388         s/size/size_t/.
17389
17390 2003-11-21  Karl Berry  <karl@gnu.org>
17391
17392         * config/config.{sub,guess}: update from config.
17393
17394 2003-11-18  Karl Berry  <karl@gnu.org>
17395
17396         * config/config.{sub,guess}: update from config.
17397
17398         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
17399
17400 2003-11-17  Paul Eggert  <eggert@twinsun.com>
17401
17402         * README: Mention that S+T cannot overflow if S is the size of
17403         an existing object and T is sufficiently small.
17404
17405 2003-11-17  Jim Meyering  <jim@meyering.net>
17406
17407         On systems without utime and without a utimes function capable of
17408         dealing with a NULL struct utimbuf* argument, this utime replacement
17409         could -- in unusual circumstances -- leak a file descriptor.
17410         * lib/utime.c: Include <unistd.h> and <errno.h>.
17411         (utime_null): Be sure to close `fd' and to preserve errno.
17412         Reported by Geoff Collyer via Arnold Robbins.
17413
17414 2003-11-17  Bruno Haible  <bruno@clisp.org>
17415
17416         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
17417         (Depends-on): Add xsize.
17418
17419 2003-11-17  Bruno Haible  <bruno@clisp.org>
17420
17421         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
17422
17423 2003-11-17  Bruno Haible  <bruno@clisp.org>
17424
17425         * lib/vasnprintf.c (alloca): Remove fallback definition.
17426         (freea): Remove definition.
17427         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
17428         Reported by Paul Eggert.
17429
17430 2003-11-16  Paul Eggert  <eggert@twinsun.com>
17431             Bruno Haible  <bruno@clisp.org>
17432
17433         Protect against address arithmetic overflow.
17434         * lib/printf-args.h: Include stddef.h.
17435         (arguments): Change type of field 'count' to size_t.
17436         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
17437         'unsigned int' where appropriate.
17438         * lib/printf-parse.h: Include sys/types.h.
17439         (char_directive): Change type of *arg_index fields to ssize_t.
17440         (char_directives): Change type of fields 'count', max_*_length to
17441         size_t.
17442         * lib/printf-parse.c: Include sys/types.h and xsize.h.
17443         (SSIZE_MAX): Define fallback value.
17444         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
17445         instead of 'int' where appropriate. Check a_allocated, d_allocated
17446         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
17447         * lib/vasnprintf.c: Include xsize.h.
17448         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
17449         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
17450         overflow. Avoid wraparound when converting a width or precision from
17451         decimal to binary.
17452
17453 2003-11-16  Bruno Haible  <bruno@clisp.org>
17454
17455         Update from GNU gettext.
17456         * lib/printf-parse.c: Generalize to it can be compiled for wide
17457         strings.
17458         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
17459         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
17460         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
17461         SNPRINTF): New macros.
17462         Don't include <alloca.h> if the file is used inside libintl.
17463         (local_wcslen): New function, for Solaris 2.5.1.
17464         (VASNPRINTF): Use it instead of wcslen.
17465
17466 2003-11-16  Bruno Haible  <bruno@clisp.org>
17467
17468         * lib/xsize.h (xmax): New function.
17469         (xsum, xsum3, xsum4): Declare as "pure" functions.
17470
17471 2003-11-12  Paul Eggert  <eggert@twinsun.com>
17472
17473         * modules/xalloc (Files): Undo latest change, since xalloc.h
17474         no longer needs SIZE_MAX or PTRDIFF_MAX.
17475
17476 2003-11-12  Paul Eggert  <eggert@twinsun.com>
17477
17478         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
17479         gl_PTRDIFF_MAX.
17480
17481 2003-11-12  Paul Eggert  <eggert@twinsun.com>
17482
17483         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
17484         "return", to pacify some unknown compiler.  Problem reported
17485         by Joerg Schilling.
17486
17487 2003-11-12  Paul Eggert  <eggert@twinsun.com>
17488
17489         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
17490         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
17491         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
17492         heuristic is just as accurate as far as we know, and it removes a
17493         dependency on size_max.m4 and ptrdiff_max.m4.
17494
17495 2003-11-11  Bruno Haible  <bruno@clisp.org>
17496
17497         * modules/xsize (Files): Add m4/size_max.m4.
17498         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
17499
17500 2003-11-11  Bruno Haible  <bruno@clisp.org>
17501
17502         * m4/size_max.m4: New file.
17503         * m4/ptrdiff_max.m4: New file.
17504         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
17505         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
17506         (gl_XALLOC): Invoke it.
17507
17508 2003-11-11  Bruno Haible  <bruno@clisp.org>
17509
17510         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
17511         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
17512         defined.
17513
17514 2003-11-10  Paul Eggert  <eggert@twinsun.com>
17515
17516         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
17517         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
17518         rejected some allocations of exactly SIZE_MAX - 2 bytes.
17519         From Bruno Haible.
17520         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
17521         not (size_t) -1, since it's defined here.
17522
17523 2003-11-09  Karl Berry  <karl@gnu.org>
17524
17525         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
17526
17527 2003-11-06  Paul Eggert  <eggert@twinsun.com>
17528
17529         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
17530         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
17531         Reject sizes of exactly SIZE_MAX bytes.
17532         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
17533         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
17534
17535 2003-11-05  Bruno Haible  <bruno@clisp.org>
17536
17537         * lib/xsize.h: Include limits.h, to avoid a possible collision with
17538         SIZE_MAX defined in <limits.h> on Solaris.
17539
17540 2003-11-04  Jim Meyering  <jim@meyering.net>
17541
17542         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
17543         variable names, rather than @VAR@.
17544         * modules/poll: Likewise.
17545
17546 2003-11-04  Bruno Haible  <bruno@clisp.org>
17547
17548         * modules/xsize: New file.
17549         * modules/linebreak: Depend on xsize.
17550         * MODULES.html.sh (func_all_modules): Add xsize.
17551
17552 2003-11-04  Bruno Haible  <bruno@clisp.org>
17553
17554         * m4/xsize.m4: New file.
17555
17556 2003-11-04  Bruno Haible  <bruno@clisp.org>
17557
17558         * lib/xsize.h: New file.
17559         * lib/linebreak.c: Include xsize.h.
17560         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
17561         argument for overflow.
17562         Suggested by Paul Eggert.
17563
17564 2003-11-03  Karl Berry  <karl@gnu.org>
17565
17566         * config/config.{guess,sub}: update from config.
17567
17568 2003-11-03  Jim Meyering  <jim@meyering.net>
17569
17570         * modules/userspec (lib_SOURCES): Add userspec.h.
17571         (Include): Add "userspec.h".
17572         Improve description.
17573
17574 2003-11-03  Jim Meyering  <jim@meyering.net>
17575
17576         * lib/userspec.c: Include "userspec.h".
17577         * lib/userspec.h: New file.
17578
17579 2003-11-03  Bruno Haible  <bruno@clisp.org>
17580
17581         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
17582
17583 2003-11-03  Bruno Haible  <bruno@clisp.org>
17584
17585         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
17586         available, to avoid (extremely rare) race condition.
17587         Suggested by Paul Eggert.
17588
17589 2003-11-02  Karl Berry  <karl@gnu.org>
17590
17591         * config/srclist.txt (vasprintf.c): sync broken, sigh.
17592
17593 2003-10-31  Paul Eggert  <eggert@twinsun.com>
17594
17595         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
17596         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
17597         (read_filesystem_list): Set and use me_type_malloced.
17598         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
17599         whatever the type happens to be), for brevity and consistency.
17600         Check for size calculation overflow on Alphas running OSF/1.
17601
17602 2003-10-31  Jim Meyering  <jim@meyering.net>
17603
17604         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
17605
17606         * lib/linebuffer.c: Include <string.h> for declaration of memset.
17607
17608 2003-10-30  Paul Eggert  <eggert@twinsun.com>
17609             Bruno Haible  <bruno@clisp.org>
17610
17611         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
17612         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
17613
17614 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
17615
17616         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
17617         netbsd*-gnu*.  Suggested by Robert Millan.
17618
17619 2003-10-29  Paul Eggert  <eggert@twinsun.com>
17620
17621         * modules/group-member: Depend on stdbool.
17622
17623 2003-10-29  Paul Eggert  <eggert@twinsun.com>
17624
17625         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
17626
17627 2003-10-29  Paul Eggert  <eggert@twinsun.com>
17628
17629         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
17630         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
17631         after the 'gnu' in these cases.  This fixes some bugs in the
17632         previous change, and is based on suggestions by Robert Millan.
17633
17634 2003-10-29  Paul Eggert  <eggert@twinsun.com>
17635
17636         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
17637         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
17638         no longer needed.
17639         * lib/quotearg.c (quotearg_n_options): Use it.
17640         * lib/group-member.c: Include <stdbool.h>.
17641         (free_group_info): Arg is now const *; don't free arg.
17642         (get_group_info): Now returns bool and accepts struct group_info *,
17643         rather than returning a malloc'ed struct group_info *.
17644         All uses changed.  Check for overflow in internal size calculation.
17645
17646         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
17647         rather than xmalloc/xrealloc.
17648         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
17649         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
17650         conformance bug: the old code used a pointer after freeing the
17651         storage that it addressed.
17652         * lib/hash.c (hash_initialize): Simplify the code by using
17653         xalloc_oversized rather than doing it by hand.
17654         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
17655         the buffer preserved.  Use free and xmalloc instead.
17656         * lib/quotearg.c (quotearg_n_options): Likewise.
17657         Use a simpler test for size overflow.  Don't use xalloc_oversized
17658         because unsigned int might be wider than size_t (!); this suggests
17659         that we should switch from unsigned int to size_t for slot numbers.
17660
17661 2003-10-28  Paul Eggert  <eggert@twinsun.com>
17662
17663         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
17664         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
17665         NetBSD kernels.  Requested by Richard Stallman.
17666
17667 2003-10-27  Paul Eggert  <eggert@twinsun.com>
17668
17669         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
17670         to allocate the returned structure.  Do not allocate a subarray,
17671         as x2nrealloc will do that.
17672         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
17673         instead of xnrealloc.
17674         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
17675
17676 2003-10-27  Bruno Haible  <bruno@clisp.org>
17677
17678         * lib/stdbool_.h: Better support for BeOS.
17679
17680 2003-10-26  Paul Eggert  <eggert@twinsun.com>
17681
17682         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
17683         now uses inline.
17684
17685 2003-10-26  Paul Eggert  <eggert@twinsun.com>
17686
17687         * lib/xalloc.h (xalloc_oversized): New static inline function, for
17688         callers that want to do their own size-overflow checking.  Include
17689         <stdbool.h>, since xalloc_oversized returns bool.
17690         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
17691         to use xalloc_oversized.
17692
17693         Add two functions x2realloc, x2nrealloc, for programs that grow
17694         arrays dynamically by doubling their sizes.
17695         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
17696         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
17697         New functions.
17698
17699         Port to C99 semantics for 'inline' of external functions.
17700         Bug reported by Bruno Haible.
17701         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
17702         with the old contents of xnmalloc.
17703         (xnmalloc, xmalloc): Use it.
17704         (xnrealloc_inline): New static inline function,
17705         with the old contents of xnrealloc.
17706         (xnrealloc, xrealloc): Use it.
17707
17708         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
17709         that.
17710
17711 2003-10-26  Karl Berry  <karl@gnu.org>
17712
17713         * config/srclist.txt (COPYING.DOC): no longer available from
17714         /gd/gnuorg; don't know where the ultimate source is.
17715
17716 2003-10-25  Paul Eggert  <eggert@twinsun.com>
17717
17718         Fix several address-calculation bugs in the hash modules,
17719         plus some minor code cleanup.
17720
17721         * lib/hash.h: Include <stdbool.h>, for bool.
17722         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
17723         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
17724         hash_get_n_entries, hash_get_max_bucket_length,
17725         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
17726         hash_rehash): Use size_t rather than unsigned.
17727         * lib/hash.c (struct hash_table, hash_get_n_buckets,
17728         hash_get_n_buckets_used, hash_get_n_entries,
17729         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
17730         hash_get_entries, hash_do_for_each, hash_string, is_prime,
17731         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
17732         Likewise.
17733         (SIZE_MAX): Define if not defined.
17734         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
17735         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
17736         hash_print):
17737         Use const * when possible.
17738         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
17739         (check_tuning): Fix bug: if tuning parameters were very close to
17740         0 or 1, rounding errors could have caused subscript violations.
17741         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
17742         (hash_initialize): Add 'fail:' label
17743         to free table and return NULL, and use it to simplify code.
17744         Use calloc rather than clearing the storage ourself.
17745         (hash_initialize, hash_rehash): Check for arithmetic overflow in
17746         buffer size calculations.
17747         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
17748         Include <stddef.h>, for size_t.
17749         * lib/hash-pjw.c (hash_pjw): Likewise.
17750         Switch to method described by Bruno Haible.
17751         Include <limits.h>, for CHAR_BIT.
17752         (SIZE_BITS): New macro.
17753
17754 2003-10-23  Paul Eggert  <eggert@twinsun.com>
17755
17756         * m4/getline.m4 (AM_FUNC_GETLINE):
17757         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
17758         hosts.  Problem reported by Derek Robert Price in
17759         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
17760         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
17761         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
17762
17763 2003-10-21  Paul Eggert  <eggert@twinsun.com>
17764
17765         * lib/getndelim2.c (getndelim2): When size calculation overflows,
17766         ceiling the allocation at NMAX bytes rather than silently
17767         discarding input bytes before NMAX is reached.  This makes
17768         a difference only if NMAX exceeds SIZE_MAX / 2.
17769
17770         * lib/obstack.c: Merge from glibc.
17771         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
17772         Add libc_hidden_def (_obstack_newchunk).
17773         (_obstack_free) [! defined _LIBC]: Remove.
17774         [defined _LIBC]: Make a strong alias from obstack_free, rather than
17775         a clone of the function body.
17776         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
17777         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
17778
17779         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
17780         glibc.
17781         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
17782         arg to memcpy.
17783
17784         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
17785         (obstack_ptr_grow_fast, obstack_int_grow_fast):
17786         Don't use lvalue casts, as GCC plans to remove support for them
17787         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
17788         was also present in the non-GCC version, indicating that this
17789         code had always been buggy and had never been widely used.
17790         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
17791         Use the fast variant of each macro, rather than copying the
17792         definiens of the fast variant; that way, we'll be more likely to
17793         catch future bugs in the fast variants.
17794
17795 2003-10-20  Bruno Haible  <bruno@clisp.org>
17796
17797         * modules/wait-process: New file.
17798         * MODULES.html.sh (func_all_modules): Add wait-process.
17799
17800 2003-10-20  Bruno Haible  <bruno@clisp.org>
17801
17802         * m4/wait-process.m4: New file.
17803
17804 2003-10-20  Bruno Haible  <bruno@clisp.org>
17805
17806         * lib/wait-process.h: New file, from GNU gettext.
17807         * lib/wait-process.c: New file, from GNU gettext.
17808
17809 2003-10-19  Jim Meyering  <jim@meyering.net>
17810
17811         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
17812         HPUX 10.20.
17813
17814 2003-10-18  Karl Berry  <karl@gnu.org>
17815
17816         * config/config.guess: update from config.
17817
17818 2003-10-16  Paul Eggert  <eggert@twinsun.com>
17819
17820         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
17821         (getgroups): First arg is int, not size_t.
17822         Don't let 'free' mangle errno.
17823
17824 2003-10-16  Paul Eggert  <eggert@twinsun.com>
17825
17826         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
17827
17828 2003-10-16  Karl Berry  <karl@gnu.org>
17829
17830         * config/config.{guess,sub}: update from config.
17831
17832 2003-10-16  Jim Meyering  <jim@meyering.net>
17833
17834         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
17835         memcpy.
17836
17837 2003-10-15  Paul Eggert  <eggert@twinsun.com>
17838
17839         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
17840         (SIZE_MAX): Remove.
17841         (new_exclude, add_exclude_file): Initial size no longer needs to
17842         be a power of 2.
17843         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
17844         our own address arithmetic overflow checking.
17845
17846         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
17847         (fnmatch): Do not alloca more than 2000 wide characters;
17848         instead, use malloc for large buffers.
17849         Check for address arithmetic overflow, and return -1
17850         with errno set to ENOMEM in that case.
17851         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
17852         (NEW_PATTERN): Do not alloca more than 8000 bytes;
17853         instead, return -1.  Check for address arithmetic overflow.
17854
17855 2003-10-14  Paul Eggert  <eggert@twinsun.com>
17856
17857         Handle invalid suffixes and overflow independently, so that
17858         callers can treat them independently as needed.  Fix some bugs in
17859         suffix handling, e.g., "100k@" was not diagnosed as an invalid
17860         suffix for a human-readable blocksize.  The major caller-visible
17861         change is the addition of a new
17862         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
17863         that both overflow and suffix chars were found.
17864
17865         * lib/human.c (humblock): Don't check separately for invalid suffix
17866         char; that is xstrtoumax's job (now that its bug is fixed).
17867         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
17868         INTMAX_MAX]: New macros.
17869         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
17870         TYPE_MAXIMUM): New macros.
17871         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
17872         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
17873         if overflow occurs, as it's what __strtol does and it's more useful
17874         in practice.
17875         (__xstrtol): If __strtol reports some error other than ERANGE,
17876         reflect it to the caller as LONGINT_INVALID.  If it reports
17877         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
17878         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
17879         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
17880         value.
17881         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
17882         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
17883         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
17884         [defined UINTMAX_MAX]: New macros.
17885
17886 2003-10-14  Bruno Haible  <bruno@clisp.org>
17887
17888         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
17889
17890 2003-10-14  Bruno Haible  <bruno@clisp.org>
17891
17892         * m4/sig_atomic_t: New file, from GNU gettext.
17893         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
17894
17895 2003-10-14  Bruno Haible  <bruno@clisp.org>
17896
17897         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
17898         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
17899         Also use volatile where needed.
17900
17901 2003-10-12  Paul Eggert  <eggert@twinsun.com>
17902
17903         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
17904         Change maintainer from Bruno Haible to 'all'.
17905
17906 2003-10-12  Paul Eggert  <eggert@twinsun.com>
17907
17908         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
17909
17910 2003-10-12  Paul Eggert  <eggert@twinsun.com>
17911
17912         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
17913         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
17914         and define in terms of the other primitives.
17915         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
17916         (SIZE_MAX): Define if not already defined.
17917         (array_size_overflow): New function.
17918         (xalloc_die): Abort instead of exiting if 'error' returns.
17919         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
17920         (xmalloc, xrealloc): Use them.
17921         (xcalloc): Check for address arithmetic overflow.
17922         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
17923         a bit faster than strcpy.
17924
17925 2003-10-10  Simon Josefsson  <jas@extundo.com>
17926
17927         * modules/argp (Depends-on): Add restrict and strcase.
17928
17929 2003-10-10  Simon Josefsson  <jas@extundo.com>
17930
17931         * m4/argp.m4: Add AC_C_INLINE.
17932
17933 2003-10-08  Paul Eggert  <eggert@twinsun.com>
17934
17935         Merge getpass from libc, plus a few fixes.
17936
17937         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
17938         Include <stdbool.h>.
17939         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
17940         __fsetlocking to empty.
17941         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
17942         do include <bits/libc-lock.h>.
17943         Do not include <fcntl.h>; not needed.
17944         [_LIBC]: Include <wchar.h>.
17945         (NOTCANCEL_MODE): New macro.
17946         (flockfile, funlockfile) [_LIBC]: New macros.
17947         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
17948         [!_LIBC]: New macros.
17949         (call_fclose): New function.
17950         (getpass): Use it.  Save tty stream separately; this simplifies the
17951         code and makes it more reliable if stdin happens to equal stdout.
17952         Invoke __fsetlocking on tty.
17953         Handle thread cancellation if needed.
17954         Namespace cleanup (use __tcgetattr, __getline).
17955         Use bool for Booleans.
17956         [USE_IN_LIBIO]: Handle wide streams.
17957         [!_LIBC]: Unconditionally do the fseek, since we don't know what
17958         stream might go where.
17959
17960         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
17961         doesn't have to include <stdio.h> before us.
17962         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
17963         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
17964         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
17965         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
17966         if not declared, so that we can use getpass.c code from libc without
17967         rewriting it.
17968         (flockfile, ftrylockfile, funlockfile): New macros.
17969
17970 2003-10-08  Paul Eggert  <eggert@twinsun.com>
17971
17972         * modules/getpass: Depend on stdbool.
17973
17974 2003-10-08  Paul Eggert  <eggert@twinsun.com>
17975
17976         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
17977
17978 2003-10-07  Karl Berry  <karl@gnu.org>
17979
17980         * config/config.{guess,sub}: update from config.
17981
17982 2003-10-06  Jim Meyering  <jim@meyering.net>
17983             Bruno Haible  <bruno@clisp.org>
17984
17985         This lets translators provide better translations for the
17986         "Written by ..." part of --version output.
17987         * lib/version-etc.h: Include stdarg.h.
17988         (version_etc_copyright): Declare as readonly.
17989         (version_etc): Make this function variadic with a NULL-terminated list
17990         of author name strings.
17991         (version_etc_va): New declaration.
17992         * lib/version-etc.c: Include stdarg.h, stdlib.h.
17993         (version_etc_copyright): Declare as readonly.
17994         (version_etc_va): New function. Provide a different translatable string
17995         for each possible number of authors < 10. Abbreviate when there are 10
17996         authors or more.
17997         (version_etc): Make this function variadic. Call version_etc_va.
17998         Suggestion from Gary V. Vaughan.
17999
18000         * lib/long-options.h (parse_long_options): Change prototype: the
18001         authors string is moved to the end and becomes variadic.
18002         * lib/long-options.c: Include stdarg.h.
18003         (parse_long_options): Make this function variadic, too.
18004         Call version_etc_va, not version_etc.
18005
18006 2003-10-06  Bruno Haible  <bruno@clisp.org>
18007
18008         * modules/version-etc-2: Remove file.
18009         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
18010
18011 2003-10-06  Bruno Haible  <bruno@clisp.org>
18012
18013         * modules/fatal-signal: New file.
18014         * MODULES.html.sh (func_all_modules): Add fatal-signal.
18015
18016 2003-10-06  Bruno Haible  <bruno@clisp.org>
18017
18018         * m4/fatal-signal.m4: New file.
18019         * m4/signalblocking.m4: New file, from GNU gettext.
18020
18021 2003-10-06  Bruno Haible  <bruno@clisp.org>
18022
18023         * lib/version-etc-2.h: Remove file.
18024         * lib/version-etc-2.c: Remove file.
18025
18026 2003-10-06  Bruno Haible  <bruno@clisp.org>
18027
18028         * lib/fatal-signal.h: New file, from GNU gettext.
18029         * lib/fatal-signal.c: New file, from GNU gettext.
18030
18031 2003-10-05  Paul Eggert  <eggert@twinsun.com>
18032
18033         * README: Rework advice for preventing empty .o files.
18034         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
18035         not <sys/types.h>.
18036
18037 2003-10-04  Karl Berry  <karl@gnu.org>
18038
18039         * lib/argp*: update from libc.
18040
18041 2003-10-04  Karl Berry  <karl@gnu.org>
18042
18043         * config/config.{guess,sub}: update from config.
18044
18045 2003-10-02  Bruno Haible  <bruno@clisp.org>
18046
18047         * modules/lchown (Include): Add lchown.h.
18048         * modules/time_r (Include): Use "..." syntax.
18049         * modules/xgetdomainname (Include): Add xgetdomainname.h.
18050
18051 2003-10-01  Simon Josefsson  <jas@extundo.com>
18052
18053         * MODULES.html.sh (func_all_modules): Move gethostname from section
18054         'based on' to section 'lacking' POSIX:2001.
18055
18056 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
18057
18058         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
18059         to output mode on the same stream.
18060
18061 2003-09-29  Paul Eggert  <eggert@twinsun.com>
18062
18063         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
18064         Fix arg typo in previous patch.
18065
18066 2003-09-28  Jim Meyering  <jim@meyering.net>
18067
18068         * lib/error.c: Correct cpp indentation.
18069
18070 2003-09-27  Paul Eggert  <eggert@twinsun.com>
18071
18072         * modules/free: New file.
18073
18074 2003-09-27  Paul Eggert  <eggert@twinsun.com>
18075
18076         * m4/free.m4: New file.
18077
18078 2003-09-27  Paul Eggert  <eggert@twinsun.com>
18079
18080         * lib/minmax.h (MIN, MAX)
18081         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
18082         Omit the special code that used __typeof__, since we worry that
18083         it could be more trouble than it's worth.  See:
18084         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
18085         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
18086
18087         * lib/free.c: New file.
18088
18089 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
18090
18091         Trivial fixes to Makefile.am parts of module listings.
18092         * modules/strstr: Append strstr.h to lib_SOURCES.
18093         * modules/strcase: Likewise, for strcase.h.
18094
18095 2003-09-27  Karl Berry  <karl@gnu.org>
18096
18097         * config/mkinstalldirs: update from automake.
18098
18099 2003-09-26  Paul Eggert  <eggert@twinsun.com>
18100
18101         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
18102         (error_tail): Do not loop, reallocating temporary buffer, since
18103         the output cannot contain more wide characters than the input
18104         contains bytes, the size must be big enough already.  This avoids
18105         one potential size overflow calculation.  Check for size overflow
18106         when calculating temporary buffer size.  Free temporary buffer
18107         when done, if it was allocated with malloc; this plugs a memory
18108         leak.  Remove casts from void * to pointers, that are no longer
18109         needed now that we're assuming C89 or better.
18110
18111         Merge error changes from glibc.
18112
18113         * lib/error.c, error.h: Update copyright notice header to match glibc.
18114         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
18115         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
18116         Disable cancellation while printing error.
18117         * lib/error.h: Prepend __ to parameter names.
18118
18119 2003-09-26  Jim Meyering  <jim@meyering.net>
18120
18121         * lib/error.c (error_tail): Move some declarations
18122         into inner scope where the local variables are used.
18123
18124 2003-09-26  Bruno Haible  <bruno@clisp.org>
18125
18126         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
18127         stpncpy().
18128         Don't define stpncpy through config.h; it's now done through stpncpy.h.
18129
18130 2003-09-26  Bruno Haible  <bruno@clisp.org>
18131
18132         * lib/stpncpy.h (gnu_stpncpy): New declaration.
18133         (stpncpy): Define as alias for gnu_stpncpy.
18134         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
18135
18136 2003-09-25  Simon Josefsson  <jas@extundo.com>
18137
18138         * lib/xgetdomainname.h: New file.
18139         * lib/xgetdomainname.c: New file.
18140
18141 2003-09-25  Simon Josefsson  <jas@extundo.com>
18142             Bruno Haible  <bruno@clisp.org>
18143
18144         * modules/getdomainname: New file.
18145         * modules/xgetdomainname: New file.
18146         * MODULES.html.sh (func_all_modules): Add getdomainname,
18147         xgetdomainname.
18148
18149 2003-09-25  Simon Josefsson  <jas@extundo.com>
18150             Bruno Haible  <bruno@clisp.org>
18151
18152         * m4/getdomainname.m4: New file.
18153
18154 2003-09-25  Simon Josefsson  <jas@extundo.com>
18155             Bruno Haible  <bruno@clisp.org>
18156
18157         * lib/getdomainname.h: New file.
18158         * lib/getdomainname.c: New file.
18159
18160 2003-09-25  Karl Berry  <karl@gnu.org>
18161
18162         * lib/argp-fmtstream.c, argp-help.c: update from libc.
18163
18164 2003-09-25  Karl Berry  <karl@gnu.org>
18165
18166         * config/install-sh: update from automake.
18167
18168 2003-09-25  Bruno Haible  <bruno@clisp.org>
18169
18170         * modules/version-etc-2: New file, from modules/version-etc with
18171         modifications.
18172         * MODULES.html.sh (func_all_modules): Add version-etc-2.
18173
18174 2003-09-25  Bruno Haible  <bruno@clisp.org>
18175
18176         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
18177         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
18178
18179 2003-09-24  Simon Josefsson  <jas@extundo.com>
18180
18181         * modules/xgethostname: Add xgethostname.h.
18182
18183 2003-09-24  Paul Eggert  <eggert@twinsun.com>
18184
18185         * lib/linebuffer.c (freebuffer): Don't free the argument, just
18186         the buffer associated with the argument.  Bug reported by
18187         Simon Josefsson.
18188
18189 2003-09-24  Paul Eggert  <eggert@twinsun.com>
18190
18191         * README: Document assumptions that 'int' is at least 32 bits
18192         wide, that integer arithmetic is 2's complement without overflow,
18193         that there are no holes in integer values, that adding sizes of
18194         two nonoverlapping objects can't overflow, and that all-bits-zero
18195         yields scalar zero.  Fix spelling and capitalization typos.
18196
18197 2003-09-19  Karl Berry  <karl@gnu.org>
18198
18199         * lib/argp.h: update from libc.
18200
18201 2003-09-17  Paul Eggert  <eggert@twinsun.com>
18202
18203         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
18204         to avoid spurious warnings like "AC_RUN_IFELSE was called before
18205         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
18206
18207 2003-09-17  Paul Eggert  <eggert@twinsun.com>
18208
18209         * gnulib-tool: Use "test -h", not "test -L", for portability
18210         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
18211         (tags_regexp): Remove, since \| doesn't conform to POSIX.
18212         (sed_extract_prog): Issue s commands one-by-one, rather than
18213         using \| in one s command.
18214
18215 2003-09-16  Paul Eggert  <eggert@twinsun.com>
18216
18217         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
18218         input error, instead of returning NULL the next time we are called
18219         (and therefore losing track of errno).
18220
18221 2003-09-16  Bruno Haible  <bruno@clisp.org>
18222
18223         * gnulib-tool (func_create_testdir): Warn about duplicated
18224         dependencies.
18225
18226 2003-09-15  Paul Eggert  <eggert@twinsun.com>
18227
18228         * modules/argmatch, modules/fatal, modules/obstack,
18229         modules/xalloc, modules/xgethostname: Sort dependencies by
18230         importance, not alphabetically.
18231
18232 2003-09-15  Paul Eggert  <eggert@twinsun.com>
18233
18234         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
18235         fails, so that the caller gets the proper errno.
18236
18237         * lib/readutmp.c (read_utmp): Likewise.
18238         Check for fstat error.  Close stream and free storage
18239         when failing.
18240
18241 2003-09-14  Karl Berry  <karl@gnu.org>
18242
18243         * config/srclist.txt (strdup.c): disable for c89 changes.
18244
18245 2003-09-14  Jim Meyering  <jim@meyering.net>
18246
18247         * lib/getloadavg.c: Correct cpp indentation.
18248         * lib/strdup.c: Likewise.
18249         * lib/vasnprintf.c: Likewise.
18250
18251 2003-09-14  Bruno Haible  <bruno@clisp.org>
18252
18253         * modules/fwriteerror: New file.
18254         * MODULES.html.sh (func_all_modules): Add fwriteerror.
18255
18256 2003-09-14  Bruno Haible  <bruno@clisp.org>
18257
18258         * lib/fwriteerror.h: New file.
18259         * lib/fwriteerror.c: New file.
18260
18261 2003-09-12  Paul Eggert  <eggert@twinsun.com>
18262
18263         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
18264         modules/xgethostname, modules/xalloc: Depend on exit.
18265
18266 2003-09-12  Paul Eggert  <eggert@twinsun.com>
18267
18268         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
18269
18270         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
18271         and AC_MINIX, too, so that their extensions are available.
18272
18273         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
18274         This macro has been superseded by gl_BACKUPFILE.
18275
18276         More patches to assume C89 or better.
18277
18278         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
18279
18280         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
18281         unconditionally.
18282         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
18283         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
18284         Include <string.h>, <stdlib.h> unconditionally.
18285         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
18286         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
18287         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
18288         headers or for string.h.
18289         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
18290         or strtoul.
18291
18292         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
18293         headers.
18294         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
18295         * m4/userspec.m4 (gl_USERSPEC): Likewise.
18296         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
18297         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
18298         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
18299         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
18300         memcpy, memset.
18301         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
18302         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
18303         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
18304         strtol.
18305         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
18306         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
18307         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
18308         strtoul.
18309
18310 2003-09-12  Paul Eggert  <eggert@twinsun.com>
18311
18312         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
18313         * lib/obstack.c [!defined _LIBC]: Likewise.
18314         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
18315         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
18316         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
18317
18318         More changes to assume C89 or better.
18319
18320         * lib/error.c (error_tail): Assume vprintf.
18321
18322         * lib/argmatch.c (getenv): Remove decl.
18323         * lib/progreloc.c (get_full_program_name): Define via prototype.
18324         * lib/setenv.c (clearenv): Likewise.
18325         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
18326         needed.
18327         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
18328         (malloc, memcpy): Remove decls.
18329         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
18330         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
18331         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
18332         (memcpy): Remove macro.
18333         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
18334         (__P): Remove.  All uses removed.
18335         (PTR): Remove.  All uses changed to void *.
18336         (CHAR_BIT, NULL): Remove.
18337         (spaces, zeros, memset_space, memset_zero)
18338         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
18339         Remove.
18340         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
18341         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
18342         Define with prototype.
18343         Remove now-unnecessary prototype decl.
18344         (extra_args_spec): Assume ANSI C.  All uses changed.
18345         (extra_args_spec_iso): Remove.
18346         (my_strftime, emacs_strftimeu): Define via prototype.
18347         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
18348         unconditionally.
18349         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
18350         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
18351         (strtoul, strtol): Remove decls.
18352         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
18353         LONG_MAX): Remove.
18354         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
18355         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
18356         (LOCALE_PARAM_PROTO): New macro.
18357         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
18358         (INTERNAL (strtol), strtol): Define with a prototype.
18359         (PARAMS): Remove.  All uses removed.
18360         * lib/tempname.c: Include <string.h> unconditionally.
18361         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
18362         * lib/xgethostname.c (main): Define with a prototype.
18363         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
18364         Include <stdlib.h> unconditionally.
18365         (calloc, malloc, realloc, free): Remove decls.
18366         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
18367         Include <stdlib.h> unconditionally.  Sort include file names.
18368         (strtod): Remove.
18369         (xstrtod): Define with a prototype.
18370         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
18371         (strtol, strtoul): Remove decls.
18372
18373 2003-09-11  Paul Eggert  <eggert@twinsun.com>
18374
18375         More patches to assume C89 or better.
18376         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
18377         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
18378         string.h, memchr, STDC_HEADERS.
18379
18380 2003-09-11  Paul Eggert  <eggert@twinsun.com>
18381
18382         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
18383         Include <stdlib.h>, <string.h> unconditionally.
18384         Remove now-unnecessary cast to char *.
18385         * lib/strnlen.c: Include <string.h> unconditionally.
18386         * lib/yesno.c (yesno): Define with a prototype.
18387
18388 2003-09-11  Bruno Haible  <bruno@clisp.org>
18389
18390         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
18391
18392 2003-09-10  Jim Meyering  <jim@meyering.net>
18393
18394         * lib/error.c: Correct indentation of cpp directives.
18395
18396 2003-09-10  Bruno Haible  <bruno@clisp.org>
18397
18398         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
18399         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
18400         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
18401         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
18402         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
18403         <stdlib.h> and <string.h> checks.
18404         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
18405         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
18406
18407 2003-09-10  Bruno Haible  <bruno@clisp.org>
18408
18409         * lib/strcspn.c: Include <string.h> unconditionally.
18410         * lib/strpbrk.c: Include <string.h> unconditionally.
18411         * lib/strstr.c: Include <string.h> unconditionally.
18412         * lib/unicodeio.c: Include <string.h> unconditionally.
18413         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
18414         * lib/unsetenv.c: Likewise.
18415         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
18416         * lib/yesno.c: Include <stdlib.h> unconditionally.
18417         (rpmatch): Add prototype.
18418
18419 2003-09-09  Paul Eggert  <eggert@twinsun.com>
18420
18421         More patches to assume C89 or better.
18422         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
18423         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
18424         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
18425         or for string.h.
18426         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
18427         stdlib.h.
18428         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
18429         C headers.
18430         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
18431         string.h.
18432         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
18433         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
18434         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
18435         or for string.h.
18436         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
18437         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
18438         C headers.
18439         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
18440         memcpy.
18441         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
18442         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
18443         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
18444         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
18445         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
18446         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
18447         string.h, free.
18448         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
18449         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
18450         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
18451         C headers, or for string.h.
18452         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
18453         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
18454         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
18455         headers, memory.h, stdlib.h, string.h, strings.h.
18456         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
18457         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
18458         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
18459         strchr.
18460         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
18461         headers, memory.h, string.h.
18462         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
18463         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
18464         free.
18465         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
18466         headers.
18467         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
18468         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
18469         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
18470         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
18471         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
18472
18473 2003-09-09  Paul Eggert  <eggert@twinsun.com>
18474
18475         More K&R removal.
18476
18477         * lib/acosl.c (main): Use a prototype.
18478         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
18479         tanl.c: Likewise.
18480
18481         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
18482
18483         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
18484         (getopt, etopt_long, getopt_long_only, _getopt_internal)
18485         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
18486         with a prototype.
18487         * lib/getopt.c (const): Remove macro.
18488         Include <string.h> unconditionally.
18489         (my_index): Remove; all uses changed to strchr.
18490         (strlen): Remove decl.
18491         (exchange): Remove forward decl; no longer needed.
18492         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
18493         Define with prototype.
18494         * lib/getopt1.c (const): Remove macro.
18495         (getopt_long, getopt_long_only, main): Define with prototype.
18496
18497         * lib/getugroups.c: Include <string.h> unconditionally.
18498
18499         * lib/getusershell.c: Include <stdlib.h> unconditionally.
18500         (getusershell, setusershell, endusershell, readname, main):
18501         Define with prototypes.
18502
18503         * lib/group-member.c: Include group-member.h first.
18504         Include <stdlib.h> unconditionally.
18505
18506         * lib/hard-locale.c: Include hard-locale.h first.
18507         Include <stdlib.h>, <string.h> unconditionally.
18508
18509         * lib/hash.c (free, malloc): Remove decls.
18510         Include <stdlib.h> unconditionally.
18511
18512         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
18513         (getenv): Do not declare.
18514
18515         * lib/idcache.c: Include <string.h> unconditionally.
18516
18517         * lib/long-options.c: Include long-options.h first, to test interface.
18518         Include <stdlib.h> unconditionally.
18519
18520         * lib/makepath.c: Include makepath.h first, to test interface.
18521         Include <stdlib.h> and <string.h> unconditionally.
18522
18523         * lib/linebuffer.c: Include <stdlib.h>.
18524         (free): Remove decl.
18525
18526         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
18527         stddef.h. rpl_malloc returns void *, not char *.
18528         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
18529         prototype.
18530
18531         * lib/md5.h: Include <limits.h> unconditionally.
18532         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
18533         (__P): Remove; all uses removed.
18534         * lib/md5.c: Include "md5.h" first.
18535         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
18536         md5_buffer, md5_process_bytes, md5_process_block):
18537         Define with prototypes.
18538         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
18539         * lib/sha.c: Include "sha.h" first.
18540         Include <stdlib.h>, <string.h> unconditionally.
18541
18542         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
18543         * lib/memcmp.c (__ptr_t): Likewise.
18544         * lib/memrchr.c (__ptr_t): Likewise.
18545         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
18546         Include <string.h> unconditionally.
18547         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
18548         * lib/memchr.c: Include <stdlib.h> unconditionally.
18549         * lib/memchr.c (LONG_MAX): Remove.
18550         * lib/memrchr.c (LONG_MAX): Likewise.
18551         * lib/memchr.c (__memchr): Define via a prototype.
18552         * lib/memrchr.c (__memrchr): Likewise.
18553         * lib/memcmp.c (__P): Remove, and remove all uses.
18554         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
18555         Remove forward decls; no longer needed.
18556         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
18557         Use types required by C89 in prototype.
18558
18559         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
18560         * lib/savedir.c: Likewise.
18561         * lib/mkdir.c (free): Remove decl.
18562         * lib/rmdir.c (rmdir): Define with a prototype.
18563         * lib/savedir.c: Include savedir.h first, to test interface.
18564
18565         * lib/mktime.c (STDC_HEADERS): Remove.
18566         Include <stdlib.h>, <string.h> unconditionally.
18567
18568         * lib/modechange.c: Include <stdlib.h> unconditionally.
18569         (malloc): Remove decl.
18570
18571         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
18572         (free): Remove decl.
18573
18574         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
18575         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
18576         (This type really should be intptr_t, but that's a C99ism.)
18577         (_obstack_memcpy): Remove: all uses changed to memcpy.
18578         Include <string.h> unconditionally.
18579         (struct obstack): Assume __STDC__ for types of members
18580         chunkfun, freefun, extra_arg.
18581         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
18582         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
18583         obstack_begin, obstack_specify_allocation,
18584         obstack_specify_allocation_with_arg, obstack_chunkfun,
18585         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
18586         Remove unprototyped decls and the macros that use them.
18587         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
18588         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
18589         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
18590         (defined __STDC__ && __STDC__)]:
18591         Remove nonprototyped code.
18592         Include <stdlib.h> unconditionally.
18593         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
18594         _obstack_allocated_p, _obstack_free, obstack_free,
18595         _obstack_memory_used, print_and_abort):
18596         Define using prototypes.
18597         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
18598         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
18599         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
18600         obstack_next_free, obstack_object_size, obstack_room) [0]:
18601         Remove unused, unprototyped code.
18602
18603         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
18604
18605         * lib/physmem.c (physmem_total, physmem_available, main): Define
18606         with prototypes.
18607
18608         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
18609         (main): Define with a prototype.
18610
18611         * lib/posixver.c (getenv): Remove decl.
18612
18613         * lib/putenv.c (malloc): Returns void *, not char *.
18614         Include <string.h> unconditionally.
18615         (strchr, memcpy, NULL): Do not define.
18616
18617         * lib/readtokens.c: Include readtokens.h first, to test interface.
18618         Include <stdlib.h>, <string.h> unconditionally.
18619         (init_tokenbuffer): Define with a prototype.
18620
18621         * lib/regex.c (PARAMS): Remove.  All uses removed.
18622         All uses of _RE_ARGS removed, too.
18623         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
18624         unconditionally.
18625         (bzero): Assume memset exists.
18626         (memcmp, memcpy, NULL): Remove.
18627         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
18628         char, or assignments to local vars of type signed char.
18629         (init_syntax_once, PREFIX(extract_number_and_incr),
18630         PREFIX(print_partial_compiled_pattern),
18631         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
18632         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
18633         PREFIX(regex_grow_registers), PREFIX(regex_compile),
18634         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
18635         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
18636         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
18637         wcs_compile_range, byte_compile_range, truncate_wchar,
18638         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
18639         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
18640         count_mbs_length, wcs_re_match_2_internal,
18641         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
18642         PREFIX(alt_match_null_string_p),
18643         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
18644         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
18645         regfree, PREFIX(extract_number)): Define with prototype.  Remove
18646         now-unnecessary declaration, if any.
18647         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
18648         regcomp, regexec):
18649         Remove now-unnecessary casts among pointer types.
18650         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
18651
18652         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
18653         (free): Remove decl.
18654
18655         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
18656
18657         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
18658         (free): Remove decl.
18659
18660         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
18661         * lib/xgetcwd.c: Likewise.
18662
18663         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
18664         (free): Remove decl.
18665
18666         * lib/strchrnul.c (strchrnul): Define with a prototype.
18667         Fix bug: c_in was not converted to char before searching.
18668
18669         The following changes are not K&R related:
18670
18671         * lib/group-member.h: Include <sys/types.h>, so that this file is
18672         self-contained.
18673         * lib/makepath.h: Likewise.
18674
18675         * lib/getusershell.c (readname, default_index, line_size, readname):
18676         Use size_t, not int, for sizes.
18677         (readname): If the size overflows, report an error instead of
18678         looping forever.
18679
18680 2003-09-09  Paul Eggert  <eggert@twinsun.com>
18681
18682         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
18683         libc.
18684
18685 2003-09-09  Paul Eggert  <eggert@twinsun.com>
18686
18687         * README: New section: portability guidelines.
18688
18689 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
18690
18691         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
18692         C89 spec.
18693
18694 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
18695
18696         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
18697
18698 2003-09-08  Paul Eggert  <eggert@twinsun.com>
18699
18700         Assume C89 or better; remove K&R cruft.
18701         A few of these changes were first proposed by Derek Robert Price
18702         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
18703
18704         * lib/addext.c: Include <string.h> unconditionally.
18705         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
18706         Don't declare getenv or malloc.
18707
18708         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
18709         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
18710         (NULL): Remove.
18711         (find_stack_direction, alloca): Use prototypes.
18712
18713         * lib/atexit.c (atexit): Define using a prototype.
18714
18715         * lib/basename.c, dirname.c, stripslash.c:
18716         Include <string.h> unconditionally.
18717
18718         * lib/bcopy.c: Include <stddef.h>.
18719         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
18720
18721         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
18722
18723         * lib/error.h (error, error_at_line, error_print_progname)
18724         [! (defined (__STDC__) && __STDC__)]: Remove decls.
18725         * lib/error.c: Include error.h first, to check interface.
18726         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
18727         (VA_START): Remove; all uses changeed to va_start.
18728         (exit, strerror): Remove decls.
18729         (error_print_progname): Prototype uncondionally.
18730         Don't include <errno.h>; no longer needed.
18731         (private_strerror): Remove.
18732         (error_tail): Always define.
18733         (error, error_at_line): Assume C89 or better; always use prototypes.
18734         * lib/fatal.c: Include "fatal.h" first, to test interface.
18735         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
18736         (VA_START): Remove; all uses changed to va_start.
18737         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
18738         this case.
18739         (exit): Remove decl.
18740         (fatal): Prototype unconditionally.  Assume va_start works.
18741         Abort at end, to pacify gcc.
18742
18743         * lib/euidaccess.c (main): Define with a prototype.
18744
18745         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
18746
18747         * lib/exitfail.c: Include <stdlib.h> unconditionally.
18748
18749         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
18750         prototypes.
18751         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
18752         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
18753         (getenv): Remove decl.
18754         (fnmatch): Define using a prototype.
18755         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
18756         (FCT): Define using a prototype.
18757
18758         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
18759
18760         * lib/gethostname.c: Include <stddef.h>.
18761         (gethostname): Define with prototype.  Length is size_t, not int.
18762
18763 2003-09-08  Paul Eggert  <eggert@twinsun.com>
18764
18765         Assume C89 or better; remove K&R cruft.
18766         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
18767         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
18768         string.h, getenv, malloc.
18769         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
18770         headers.
18771         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
18772         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
18773         do not check for strerror.
18774         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
18775         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
18776         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
18777         do not check for doprnt or vprintf.
18778         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
18779         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
18780
18781 2003-09-08  Paul Eggert  <eggert@twinsun.com>
18782
18783         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
18784         getversion.c should have been removed then, but was accidentally
18785         preserved.
18786
18787         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
18788         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
18789
18790 2003-09-08  Karl Berry  <karl@gnu.org>
18791
18792         * config/config.sub, config.guess, srclistvars.sh: update from savannah
18793                 config, forget about prep.
18794
18795         * config/depcomp, missing: update from automake.
18796
18797 2003-09-07  Paul Eggert  <eggert@twinsun.com>
18798
18799         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
18800         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
18801
18802 2003-09-07  Paul Eggert  <eggert@twinsun.com>
18803
18804         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
18805         copy_tm_result.  Bug reported by Simon Josefsson in
18806         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
18807
18808 2003-09-06  Paul Eggert  <eggert@twinsun.com>
18809
18810         * m4/time_r.m4: New file.
18811         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
18812         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
18813         is. Check for timegm declaration.
18814         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
18815         Do not check for gmtime_r.
18816         Replace mktime if __mktime_internal does not exist and if mktime
18817         hasn't been replaced already.
18818
18819 2003-09-06  Paul Eggert  <eggert@twinsun.com>
18820
18821         * lib/time_r.c, lib/time_r.h: New files.
18822
18823         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
18824         __localtime_r.
18825         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
18826         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
18827
18828         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
18829         __gmtime_r.
18830         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
18831         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
18832         Include <time_r.h>.
18833
18834         * lib/timegm.c: Switch to glibc implementation, with the following
18835         changes:
18836         [defined HAVE_CONFIG_H]: Include <config.h>.
18837         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
18838         (__mktime_internal) [!defined _LIBC]: New decl.
18839         (__gmtime_r) [!defined _LIBC]: New macro and function.
18840         (timegm): Use a prototype, since gnulib assumes C89.
18841         Do not bother declaring tmp to be const, as it's not really usefu.
18842         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
18843         (timegm): Declare only if HAVE_DECL_TIMEGM.
18844
18845 2003-09-06  Paul Eggert  <eggert@twinsun.com>
18846
18847         * MODULES.html.sh (func_all_modules): Add time_r.
18848         * modules/time_r: New file.
18849         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
18850         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
18851
18852 2003-09-03  Paul Eggert  <eggert@twinsun.com>
18853
18854         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
18855         Bug reported by Lute Kamstra in
18856         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
18857
18858         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
18859         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
18860         course with correspondingly smaller numbers for tomorrow and
18861         yesterday.  From Tadayoshi Funaba.  Originally installed into
18862         sh-utils on 1999-08-07, but the patch got lost (I guess during the
18863         coreutils merge?).
18864
18865 2003-08-31  Simon Josefsson  <jas@extundo.com>
18866
18867         * modules/timegm: New file.
18868         * MODULES.html.sh (func_all_modules): Add timegm.
18869
18870 2003-08-31  Simon Josefsson  <jas@extundo.com>
18871
18872         * m4/timegm.m4: New file.
18873
18874 2003-08-31  Simon Josefsson  <jas@extundo.com>
18875
18876         * lib/timegm.h: New file.
18877         * lib/timegm.c: New file.  Based on
18878         wget-1.8.2/src/http.c:mktime_from_utc.
18879
18880 2003-08-31  Karl Berry  <karl@gnu.org>
18881
18882         * lib/argp.h: update from libc.
18883
18884 2003-08-28  Bruno Haible  <bruno@clisp.org>
18885
18886         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
18887         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
18888         followed by '#define fnmatch fnmatch_posix' gives an error.
18889
18890 2003-08-28  Bruno Haible  <bruno@clisp.org>
18891
18892         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
18893         warning on QNX, which defines O_BINARY to 000000.
18894
18895 2003-08-27  Jim Meyering  <jim@meyering.net>
18896
18897         * m4/mkstemp.m4: Require that the system mkstemp be able to create
18898         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
18899         would fail after 32.  Reported by Danny Levinson.  Details here:
18900         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
18901
18902 2003-08-24  Bruno Haible  <bruno@clisp.org>
18903
18904         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
18905         MSVC7 <stdio.h> is included later.
18906
18907 2003-08-22  Simon Josefsson  <jas@extundo.com>
18908
18909         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
18910
18911 2003-08-20  Karl Berry  <karl@gnu.org>
18912
18913         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
18914
18915 2003-08-20  Bruno Haible  <bruno@clisp.org>
18916
18917         * modules/progname: New file.
18918         * MODULES.html.sh (func_all_modules): Add progname.
18919
18920 2003-08-20  Bruno Haible  <bruno@clisp.org>
18921
18922         * lib/progname.h: New file, from GNU gettext.
18923         * lib/progname.c: New file, from GNU gettext.
18924         * lib/progreloc.c: New file, from GNU gettext.
18925
18926 2003-08-19  Jim Meyering  <jim@meyering.net>
18927
18928         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
18929         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
18930
18931 2003-08-19  Bruno Haible  <bruno@clisp.org>
18932
18933         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
18934         more.
18935
18936 2003-08-19  Bruno Haible  <bruno@clisp.org>
18937
18938         * lib/xstrdup.c: Assume <string.h> exists.
18939
18940 2003-08-18  Paul Eggert  <eggert@twinsun.com>
18941
18942         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
18943         in makefile rules.
18944
18945 2003-08-18  Jim Meyering  <jim@meyering.net>
18946
18947         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
18948         * m4/lib-ld.m4: Likewise.
18949
18950 2003-08-18  Jim Meyering  <jim@meyering.net>
18951
18952         * lib/setenv.h: Indent nested cpp directive.
18953         * lib/vasnprintf.c: Remove trailing blanks.
18954
18955 2003-08-17  Simon Josefsson  <jas@extundo.com>
18956
18957         * modules/xstrndup: New file.
18958         * MODULES.html.sh (func_all_modules): Add xstrndup.
18959
18960 2003-08-17  Simon Josefsson  <jas@extundo.com>
18961
18962         * modules/argp: Fix autoconf macro name. Add more dependencies.
18963
18964 2003-08-17  Simon Josefsson  <jas@extundo.com>
18965
18966         * m4/xstrndup.m4: New file.
18967
18968 2003-08-17  Simon Josefsson  <jas@extundo.com>
18969
18970         * m4/argp.m4: New file.
18971
18972 2003-08-17  Simon Josefsson  <jas@extundo.com>
18973             Bruno Haible  <bruno@clisp.org>
18974
18975         * lib/xstrndup.h: New file.
18976         * lib/xstrndup.c: New file.
18977
18978 2003-08-17  Bruno Haible  <bruno@clisp.org>
18979
18980         * modules/strndup (Files, Include): Add lib/strndup.h.
18981
18982 2003-08-17  Bruno Haible  <bruno@clisp.org>
18983
18984         * modules/euidaccess (Files): Add lib/euidaccess.h.
18985
18986 2003-08-17  Bruno Haible  <bruno@clisp.org>
18987
18988         * lib/strndup.h: New file.
18989
18990 2003-08-17  Bruno Haible  <bruno@clisp.org>
18991
18992         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
18993         like AC_GNU_SOURCE.
18994         * modules/extensions (configure.ac): Comment out the invocation of
18995         gl_USE_SYSTEM_EXTENSIONS.
18996
18997 2003-08-16  Paul Eggert  <eggert@twinsun.com>
18998
18999         Merges from coreutils, etc.
19000         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
19001         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
19002         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
19003         fixing a typo.
19004         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
19005         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
19006
19007 2003-08-16  Paul Eggert  <eggert@twinsun.com>
19008
19009         Document merge from coreutils.
19010         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
19011         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
19012         * modules/utime: Add m4/utimes-null.m4.
19013
19014 2003-08-16  Paul Eggert  <eggert@twinsun.com>
19015
19016         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
19017         space, undoing this 2003-08-12 change:
19018         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
19019
19020 2003-08-16  Paul Eggert  <eggert@twinsun.com>
19021
19022         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
19023         strtoul.c from libc, undoing this 2003-08-12 change:
19024         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
19025
19026 2003-08-16  Jim Meyering  <jim@meyering.net>
19027
19028         Merges from coreutils.
19029         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
19030         prefix.  Adjust cache variables similarly.  Create 500 rather than
19031         just 300 files, to exercise bug on Darwin6.5, too.
19032         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
19033         $missing_dir.
19034         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
19035         AM_SYS_POSIX_TERMIOS.
19036         Reported by mkc@mathdogs.com.
19037         Also change use of $am_cv_sys_posix_termios
19038         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
19039         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
19040         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
19041         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
19042         in /proc/mounts until it finds one with matching device number.  This
19043         is unnecessary when the FILE argument *is* a mount point.  No stat call
19044         is necessary in that case.  So, disable the statvfs-testing code on
19045         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
19046         as RedHat bug# 84846.
19047         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
19048         to 1MB, so as not to render systems with no stack size limit (e.g.,
19049         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
19050         Include <unistd.h>.  On some systems,
19051         it is required for the definition of _SC_PAGESIZE.
19052
19053 2003-08-16  Jim Meyering  <jim@meyering.net>
19054
19055         Merge from coreutils.
19056         * lib/xstrtoimax.c: #else #if -> #elif.
19057         * lib/xstrtoumax.c: Likewise.
19058
19059 2003-08-16  Jim Meyering  <jim@meyering.net>
19060
19061         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
19062         * m4/utimes.m4: Removed.
19063         * m4/utimes-null.m4: Renamed from utimes.m4.
19064
19065         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
19066         to 1MB, so as not to render systems with no stack size limit (e.g.,
19067         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
19068         Include <unistd.h>.  On some systems,
19069         it is required for the definition of _SC_PAGESIZE.
19070
19071 2003-08-16  Jim Meyering  <jim@meyering.net>
19072         and Paul Eggert  <eggert@cs.ucla.edu>
19073
19074         Merges from coreutils, etc.
19075
19076         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
19077         using the latest version from cvs.  This avoids problems with #line
19078         directives using a vendor (Sun) compiler.
19079         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
19080         Don't set GETGROUPS_LIB here; now it's
19081         done via getgroups.m4's wrapper function.
19082         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
19083         rather than just in sh-util/configure.in, so that the
19084         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
19085         same.
19086         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
19087         AC_FUNC_GETLOADAVG where to find getloadavg.c.
19088         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
19089         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
19090         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
19091         Remove code that is now done by the newly-required macros.
19092         Append $(EXEEXT) to DF_PROG.
19093         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
19094         Do not invoke or require the following here,
19095         since prereq.m4 or some gnulib .m4 now does this for us:
19096         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
19097         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
19098         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
19099         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
19100         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
19101         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
19102         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
19103         AC_FUNC_OBSTACK.
19104         Do not replace the following functions, as this is now the job
19105         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
19106         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
19107         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
19108         atexit getpass, strdup, getpagesize.
19109         Replace 'raise'.
19110         Do not check for the following functions, as this is now the job
19111         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
19112         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
19113         setregid.
19114         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
19115         Check for sys/sysctl.h.
19116         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
19117         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
19118         of checking for ssize_t ourselves.
19119
19120         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
19121         Require every macro that gnulib/modules/* suggests for us.
19122         (jm_PREREQ_ADDEXT): New macro.
19123         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
19124         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
19125
19126         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
19127         (gl_PHYSMEM): Use it.
19128         Also check for `table' function.
19129         Check for new headers and functions.
19130         Add check for sys/sysmp.h.
19131         With suggestions from Kaveh Ghazi.
19132         Ignore headers that are present but cannot be compiled.  This
19133         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
19134         C 5.4.
19135
19136 2003-08-15  Paul Eggert  <eggert@twinsun.com>
19137
19138         Document merge from coreutils.
19139         * modules/userspec: Depend on posixver.
19140         * modules/strftime: Depend on tzset.
19141
19142 2003-08-15  Paul Eggert  <eggert@twinsun.com>
19143
19144         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
19145         rather than tab, after '#' in shell-script copyright notices.
19146         Suggested by Bruno Haible.
19147
19148 2003-08-15  Paul Eggert  <eggert@twinsun.com>
19149
19150         * config/srclist-update: Use three spaces, rather than tab, after '#'
19151         in shell-script copyright notices.  Suggested by Bruno Haible.
19152         Remove unnecessary parenthesization in regular expression.
19153
19154 2003-08-15  Jim Meyering  <jim@meyering.net>
19155
19156         Merge from coreutils.
19157         * lib/xgethostname.c: Include <stdlib.h>.
19158         (xghostname): Don't exit for anything other than memory-related
19159         failure; just return NULL.
19160         * lib/userspec.c: Include "posixver.h".
19161         (parse_user_spec): Accept `.' as a separator only
19162         in pre-POSIX-200112 mode.
19163         * lib/strtoimax.c: Use #elif rather than #else #if.
19164         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
19165         Remove function, now that we can rely on a working tzset function.
19166         [!_LIBC]: Ensure that the required autoconf test has been run.
19167         [!defined _NL_CURRENT && HAVE_STRFTIME]:
19168         Use underlying_strftime for %r.
19169         * lib/sha.c: Merge in some clean-up and optimization changes from
19170         glibc.
19171         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
19172         Ensure that it is a multiple of 64.
19173         Rearrange loop exit tests so as to avoid performing an
19174         additional fread after encountering an error or EOF.
19175         * lib/realloc.c: Update copyright date.
19176
19177 2003-08-15  Jim Meyering  <jim@meyering.net>
19178         and Paul Eggert  <eggert@twinsun.com>
19179
19180         Merge from coreutils.
19181         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
19182         member but strut utmpx does not.  Needed for AIX 4.3.3.
19183         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
19184
19185 2003-08-15  Jim Meyering  <jim@meyering.net>
19186         and Paul Eggert  <eggert@cs.ucla.edu>
19187
19188         Merges from coreutils, etc.
19189         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
19190         Require gl_FUNC_TZSET_CLOBBER.
19191         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
19192         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
19193         members.
19194
19195 2003-08-14  Paul Eggert  <eggert@twinsun.com>
19196
19197         Help the merge from coreutils.
19198         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
19199         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
19200         * m4/tzset.m4: Use it too.
19201
19202 2003-08-14  Paul Eggert  <eggert@twinsun.com>
19203
19204         * modules/tzset: New file.
19205
19206 2003-08-14  Jim Meyering  <jim@meyering.net>
19207
19208         Merges from coreutils.
19209         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
19210         variable names, rather than @FNMATCH_H@.
19211         * modules/alloca: Likewise for $(ALLOCA_H).
19212
19213         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
19214         the three copies of the literal target, `fnmatch.h'.
19215         * modules/alloca (alloca.h): Likewise.
19216
19217 2003-08-14  Jim Meyering  <jim@meyering.net>
19218
19219         Merge from coreutils.
19220         * m4/tzset.m4: New file.
19221         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
19222         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
19223         otherwise, AIX 5.1 systems would end up using the latter.
19224         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
19225         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
19226         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
19227         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
19228
19229 2003-08-14  Jim Meyering  <jim@meyering.net>
19230
19231         Merge from coreutils.
19232         * lib/obstack.h: Whitespace changes.
19233         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
19234         and xcalloc return values.
19235         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
19236         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
19237         hang on OSF/1 5.1 for DIR on both local and remote file systems.
19238         Reported by (and fix confirmed by) Nelson H. F. Beebe.
19239         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
19240         error from mntctl.
19241         Use mntctl's return value to drive the entry-processing loop, since
19242         we can't rely on the value of the vmt_length member in the last
19243         entry.  On some systems doing so could result in exhausting
19244         virtual memory.  Based in part on a patch from Mike Jetzer.
19245
19246 2003-08-14  Jim Meyering  <jim@meyering.net>
19247         and Paul Eggert  <eggert@twinsun.com>
19248
19249         Merges from coreutils, plus other fixes.
19250         * lib/physmem.c: Merge in portability changes from gcc/libiberty
19251         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
19252         for credits and details.  Thanks to Kaveh Ghazi for helping
19253         to keep these files in sync.
19254         (ARRAY_SIZE): Define it.
19255         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
19256         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
19257         (memcasecmp): Don't assume size_t fits in unsigned int.
19258         Remove casts and duplicate code.
19259         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
19260         (memcpy): Remove definition.
19261         Merge in some clean-up and optimization changes from glibc.
19262         [BLOCKSIZE]: Move definition to top of file.
19263         Ensure that it is a multiple of 64.
19264         Rearrange loop exit tests so as to avoid performing an
19265         additional fread after encountering an error or EOF.
19266         * lib/md5.h (md5_uintptr): Define.
19267         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
19268         return to the initial working directory.  Preserve errno
19269         for caller.
19270         * lib/idcache.c: Include "xalloc.h".
19271         (xmalloc, xrealloc): Remove decls.
19272         (getuser): Remove casts no longer required in C89.
19273         * lib/human.c: Include stdio.h, for sprintf.
19274         * lib/group-member.c: Include "xalloc.h".
19275         (xmalloc, xrealloc): Remove decls.
19276         (get_group_info): Remove casts no longer required in C89.
19277         * lib/getusershell.c (readname): Remove casts no longer required in
19278         C89.
19279         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
19280         * lib/getline.c: Whitespace fix, from coreutils.
19281
19282 2003-08-13  Paul Eggert  <eggert@twinsun.com>
19283
19284         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
19285         Check for isascii.
19286
19287         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
19288         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
19289         Undo previous (whitespace-only) change.
19290
19291 2003-08-13  Paul Eggert  <eggert@twinsun.com>
19292
19293         * lib/exclude.c: Include <ctype.h>
19294         (IN_CTYPE_DOMAIN): New macro.
19295         (is_space): New fn.
19296         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
19297         and empty lines.
19298
19299         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
19300         Undo previous (whitespace-only) change.
19301
19302 2003-08-13  Paul Eggert  <eggert@twinsun.com>
19303
19304         * config/srclist-update: Change update back to the old behavior,
19305         leaving whitespace alone.  Use one 'sed' command rather than a
19306         pipeline.
19307         (fixlicense): Now a variable, not a function.
19308         (remove_trailing_blanks): Remove.
19309         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
19310         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
19311         Undo previous (whitespace-only) change.
19312
19313 2003-08-12  Paul Eggert  <eggert@twinsun.com>
19314
19315         Merge from coreutils.
19316         * modules/euidaccess: Add lib_SOURCES, include for new
19317         file euidaccess.h
19318
19319 2003-08-12  Paul Eggert  <eggert@twinsun.com>
19320
19321         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
19322         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
19323         Normalize leading white space and remove trailing white space.
19324
19325         Merge from coreutils
19326         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
19327
19328         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
19329         0.12.1.  These files are now being upgraded automatically by
19330         ../config/srclist-update.
19331
19332 2003-08-12  Paul Eggert  <eggert@twinsun.com>
19333
19334         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
19335         Normalize leading white space and remove trailing white space.
19336         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
19337         notice, as per ../config/srclist-update.
19338
19339         Merge from coreutils.
19340         * lib/euidaccess.h: New file.
19341         * lib/euidaccess.c: Include it.
19342         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
19343         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
19344         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
19345
19346 2003-08-12  Paul Eggert  <eggert@twinsun.com>
19347
19348         * config/srclist-update: Add copyright notice.
19349         (remove_id_lines, remove_trailing_blanks): New constants.
19350         (fixfile): Use them to normalize spacing a bit in copied files.
19351         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
19352         Normalize leading white space and remove trailing white space.
19353
19354         * config/texinfo.tex: Sync with texinfo.
19355
19356         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
19357         strtoul.c from libc, to merge coreutils whitespace changes.
19358
19359         * config/srclist.txt: Get the following m4 files from gettext:
19360         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
19361         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
19362         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
19363         wint_t.m4.
19364
19365 2003-08-12  Karl Berry  <karl@gnu.org>
19366
19367         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
19368         been made.
19369
19370 2003-08-11  Paul Eggert  <eggert@twinsun.com>
19371
19372         * modules/gnu-source, m4/gnu-source.m4:
19373         Remove; we're assuming Autoconf 2.54 or later now.
19374         Suggested by Bruno Haible.
19375         * MODULES.html.sh (func_all_modules): Remove gnu-source.
19376
19377 2003-08-11  Bruno Haible  <bruno@clisp.org>
19378
19379         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
19380
19381 2003-08-11  Bruno Haible  <bruno@clisp.org>
19382
19383         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
19384         (vasnprintf): Use it instead of wcslen.
19385
19386 2003-08-11  Bruno Haible  <bruno@clisp.org>
19387
19388         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
19389         value to ensure that _Bool promotes to int. Use #define for _Bool when
19390         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
19391
19392 2003-08-10  Karl Berry  <karl@gnu.org>
19393
19394         * lib/regex.h: update from libc (whitespace fix).
19395
19396 2003-08-09  Paul Eggert  <eggert@twinsun.com>
19397
19398         Merge some files from coreutils.  These changes were
19399         originally made by Jim Meyering.
19400         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
19401         many older Unixes require this.
19402         * lib/alloca.c (alloca): Remove cast to argument of free;
19403         no longer needed in C89.
19404         * lib/alloca_.h, regex.h: Fix white space to match
19405         what GNU indent does.
19406
19407 2003-08-09  Paul Eggert  <eggert@twinsun.com>
19408
19409         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
19410         apparently Emacs's Unicode mode got confused before my 2003-08-05
19411         checkin.
19412
19413 2003-08-08  Paul Eggert  <eggert@twinsun.com>
19414
19415         * m4/extensions.m4: New file.
19416         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
19417         Require gl_USE_SYSTEM_EXTENSIONS.
19418         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
19419         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
19420
19421 2003-08-08  Paul Eggert  <eggert@twinsun.com>
19422
19423         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
19424         * modules/extensions, modules/gnu-source: New files.
19425         * modules/timespec, modules/unlocked-io: Depend on extensions.
19426
19427 2003-08-07  Paul Eggert  <eggert@twinsun.com>
19428
19429         * modules/restrict: New file.
19430         * MODULES.html.sh (func_all_modules): Add restrict.
19431         * modules/regex: Depend on restrict.
19432
19433 2003-08-07  Paul Eggert  <eggert@twinsun.com>
19434
19435         * m4/restrict.m4: New file.
19436         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
19437
19438 2003-08-07  Bruno Haible  <bruno@clisp.org>
19439
19440         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
19441         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
19442
19443 2003-08-07  Bruno Haible  <bruno@clisp.org>
19444
19445         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
19446         makes the module 'getndelim2' compatible with the module 'getline'.
19447
19448 2003-08-05  Paul Eggert  <eggert@twinsun.com>
19449
19450         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
19451         byte with "\201" to avoid glitches when editing that source file
19452         with multi-gnome-terminal.
19453
19454 2003-08-05  Paul Eggert  <eggert@twinsun.com>
19455
19456         * lib/bumpalloc.h: Remove.
19457
19458 2003-08-05  Paul Eggert  <eggert@twinsun.com>
19459
19460         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
19461         * modules/bumpalloc: Remove.
19462
19463 2003-08-04  Paul Eggert  <eggert@twinsun.com>
19464
19465         * lib/getloadavg.c: Change copyright notice and spacing to conform to
19466         GNU coding style.
19467
19468         Merge from coreutils.
19469         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
19470         1. From glibc.
19471         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
19472         from Karl Berry, implemented by Jim Meyering.
19473         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
19474         from Dmitry V. Levin.
19475         Remove anachronistic cast of xrealloc.
19476         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
19477         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
19478         type. Otherwise, it wouldn't compile with at least /bin/cc on
19479         ymp-cray-unicos9.0.2.X.
19480         Combine two mostly-identical uses of alloca into one.
19481         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
19482
19483 2003-08-04  Dave Love  <d.love@dl.ac.uk>
19484
19485         [From Emacs.]
19486
19487         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
19488         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
19489         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
19490         obsolete NLIST_NAME_UNION.
19491         [__GNU__]: Undef BSD and FSCALE.
19492         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
19493
19494 2003-08-03  Paul Eggert  <eggert@twinsun.com>
19495
19496         * lib/stdbool_.h (_Bool): Make it signed char, instead of
19497         an enum type, so that it's guaranteed to promote to int.  See:
19498         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
19499
19500 2003-08-03  Karl Berry  <karl@gnu.org>
19501
19502         * config/depcomp: update from automake.
19503
19504 2003-07-31  Paul Eggert  <eggert@twinsun.com>
19505
19506         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
19507         (strerror): Don't assume that a printable int fits in 14 bytes.
19508
19509 2003-07-31  Bruno Haible  <bruno@clisp.org>
19510
19511         * modules/getpass-gnu: New file.
19512         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
19513
19514 2003-07-31  Bruno Haible  <bruno@clisp.org>
19515
19516         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
19517
19518 2003-07-24  Karl Berry  <karl@gnu.org>
19519
19520         * config/missing: update from automake.
19521
19522 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
19523             Bruno Haible  <bruno@clisp.org>
19524
19525         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
19526         * lib/getline.c (getline, getdelim): Likewise.
19527         Remove _GNU_SOURCE define; now it's defined in config.h through
19528         m4/getline.m4.
19529
19530 2003-07-23  Karl Berry  <karl@gnu.org>
19531
19532         * config/config.sub: update from prep.
19533
19534 2003-07-22  Paul Eggert  <eggert@twinsun.com>
19535
19536         * modules/xalloc (Depends-on): Add exitfail.
19537         * modules/xmemcoll: Likewise.
19538
19539 2003-07-22  Paul Eggert  <eggert@twinsun.com>
19540
19541         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
19542         over-parenthesization in macros.
19543
19544         Sync with coreutils.
19545
19546         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
19547         required by C99.
19548
19549         Use `exit_failure' for xalloc and xmemcoll instead of their own
19550         private exit-failure variables.
19551         * lib/xalloc.h (xalloc_exit_failure): Remove.
19552         * lib/xmalloc.c: Likewise.  Include exitfail.h.
19553         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
19554         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
19555         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
19556         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
19557
19558 2003-07-20  Jim Meyering  <jim@meyering.net>
19559
19560         * modules/closeout (Depends-on): Add exitfail.
19561         Suggestion from Bruno Haible.
19562
19563 2003-07-19  Karl Berry  <karl@gnu.org>
19564
19565         * config/config.sub: update from prep.
19566
19567 2003-07-18  Paul Eggert  <eggert@twinsun.com>
19568
19569         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
19570         Remove.
19571         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
19572         to test that it can stand by itself.  Include "exitfail.h".
19573         Clients should set exit_failure instead.
19574         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
19575
19576 2003-07-18  Bruno Haible  <bruno@clisp.org>
19577
19578         * modules/getndelim2: New file.
19579         * modules/getline: Share files with module getndelim2.
19580         * modules/getnline: Depend on getndelim2 instead of sharing files with
19581         it. Add getnline.c to lib_SOURCES.
19582         * MODULES.html.sh (func_all_modules): Add getndelim2.
19583
19584 2003-07-18  Bruno Haible  <bruno@clisp.org>
19585
19586         * m4/getndelim2.m4: New file.
19587         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
19588         invoke gl_PREREQ_GETNDELIM2.
19589         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
19590         gl_PREREQ_GETNDELIM2.
19591         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
19592         gl_GETNDELIM2.
19593
19594 2003-07-18  Bruno Haible  <bruno@clisp.org>
19595
19596         * lib/getndelim2.h: New file.
19597         * lib/getndelim2.c: Make into a module of its own. Include config.h,
19598         getndelim2.h.
19599         (getndelim2): Make non-static. Change return type to ssize_t.
19600         * lib/getline.h: Change argument names.
19601         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
19602         * lib/getnline.c: Include getndelim2.h.
19603
19604 2003-07-18  Andreas Schwab  <schwab@suse.de>
19605
19606         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
19607
19608 2003-07-17  Karl Berry  <karl@gnu.org>
19609
19610         * config/config.sub: update from prep.
19611
19612 2003-07-17  Bruno Haible  <bruno@clisp.org>
19613
19614         * modules/getnline: New file.
19615         * modules/getline: Add lib/getndelim2.c to source file list.
19616         * MODULES.html.sh (func_all_modules): Add getnline.
19617
19618 2003-07-17  Bruno Haible  <bruno@clisp.org>
19619
19620         * m4/getnline.m4: New file.
19621
19622 2003-07-17  Bruno Haible  <bruno@clisp.org>
19623
19624         * m4/Makefile.am.in: Remove file.
19625         * m4/Makefile.am: Remove file.
19626         * m4/Makefile.in: Remove file.
19627
19628 2003-07-17  Bruno Haible  <bruno@clisp.org>
19629
19630         * lib/getnline.h: New file.
19631         * lib/getnline.c: New file.
19632         * lib/getndelim2.c: New file, extracted from getline.c.
19633         (getndelim2): Renamed from getdelim2, with added nmax argument.
19634         * lib/getline.c: Include getndelim2.c.
19635         (getdelim2): Moved out to getndelim2.c.
19636         (getline, getdelim): Update.
19637
19638 2003-07-17  Bruno Haible  <bruno@clisp.org>
19639
19640         * lib/Makefile.am: Remove file.
19641         * lib/Makefile.in: Remove file.
19642
19643 2003-07-17  Bruno Haible  <bruno@clisp.org>
19644
19645         * configure.in: Remove file.
19646         * Makefile.in: Remove file.
19647
19648 2003-07-17  Bruno Haible  <bruno@clisp.org>
19649
19650         * MODULES.html.sh: Put the </BODY> right before </HTML>.
19651
19652 2003-07-16  Karl Berry  <karl@gnu.org>
19653
19654         * config/srclist-update: was running fixlicense twice, which caused
19655                 texinfo.tex to be nullified for some reason.  Simplify,
19656                 $gplsrc is no longer needed as far as I can see?
19657
19658 2003-07-16  Jim Meyering  <jim@meyering.net>
19659
19660         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
19661
19662 2003-07-15  Paul Eggert  <eggert@twinsun.com>
19663
19664         * config/srclist.txt: Get the following files from gettext-runtime/intl
19665         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
19666         ref-del.sin.  From Bruno Haible.
19667         * config/srclist-update (fixfile): Change grep pattern again, since the
19668         previous fix didn't work (there was another trailing $).  Use
19669         '[$]' to escape the $s.
19670
19671 2003-07-15  Karl Berry  <karl@gnu.org>
19672
19673         * lib/vasnprintf.c: update from gettext.
19674
19675 2003-07-15  Karl Berry  <karl@gnu.org>
19676
19677         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
19678         gets expanded when surrounded by '$'.
19679
19680 2003-07-15  Jim Meyering  <jim@meyering.net>
19681
19682         * modules/save-cwd: Don't depend on error.  From Derek Price.
19683
19684 2003-07-15  Jim Meyering  <jim@meyering.net>
19685
19686         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
19687
19688 2003-07-14  Simon Josefsson  <jas@extundo.com>
19689
19690         * modules/mempcpy: New file.
19691         * MODULES.html.sh (func_all_modules): Add mempcpy.
19692
19693 2003-07-14  Simon Josefsson  <jas@extundo.com>
19694
19695         * m4/mempcpy.m4: New file.
19696
19697 2003-07-14  Simon Josefsson  <jas@extundo.com>
19698
19699         * lib/mempcpy.h: New file.
19700         * lib/mempcpy.c: New file.
19701
19702 2003-07-14  Paul Eggert  <eggert@twinsun.com>
19703
19704         * modules/getdate, modules/posixtm: Depend on mktime.
19705
19706 2003-07-14  Paul Eggert  <eggert@twinsun.com>
19707
19708         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
19709         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
19710         unicodeio.c, unicodeio.h, unlocked-io.h:
19711         Switch from LGPL to GPL.
19712
19713 2003-07-14  Paul Eggert  <eggert@twinsun.com>
19714
19715         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
19716         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
19717         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
19718         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
19719         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
19720         updated automatically by ../config/srclist-update.  This changes
19721         their license from LPGL to GPL.
19722
19723 2003-07-14  Paul Eggert  <eggert@twinsun.com>
19724
19725         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
19726         assumed to refer to the root of the most recent stable gettext version.
19727         * config/srclistvars.sh: Add defaults for eggert.
19728         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
19729         Match "This program" as well as "The program".  This is needed
19730         for gettext.
19731
19732 2003-07-14  Jim Meyering  <jim@meyering.net>
19733
19734         Don't emit diagnostics.  Let callers do that.
19735         * lib/save-cwd.c: Don't include "error.h".
19736         (save_cwd): Don't call error.  Ensure that errno is valid
19737         when returning nonzero.
19738
19739         * lib/save-cwd.h (restore_cwd): Update prototype.
19740         * lib/save-cwd.c (restore_cwd): Remove two parameters.
19741         Simplify.  Don't call error upon failure.  Let callers do that.
19742         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
19743         when auditing is enabled.  But don't bother updating the #if.
19744
19745 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
19746
19747         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
19748         it breaks C++ compilation.
19749         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
19750
19751 2003-07-10  Simon Josefsson  <jas@extundo.com>
19752
19753         * modules/strchrnul (Makefile.am): Add strchrnul.h.
19754
19755 2003-07-10  Jim Meyering  <jim@meyering.net>
19756
19757         * m4/clock_time.m4: Remove trailing blank.
19758         * m4/intmax_t.m4: Likewise.
19759
19760 2003-07-10  Jim Meyering  <jim@meyering.net>
19761
19762         * lib/vasnprintf.c: Remove trailing blanks.
19763         Make cpp indentation consistent.
19764
19765 2003-07-09  Paul Eggert  <eggert@twinsun.com>
19766
19767         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
19768         posixver.c, strftime.c, strnlen.c, strverscmp.c:
19769         Switch from LGPL to GPL.
19770
19771 2003-07-09  Paul Eggert  <eggert@twinsun.com>
19772
19773         * config/srclist.txt: Sort sublists.  Add
19774         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
19775         that differ from gnulib for one reason or another; we'd like this list
19776         to be smaller but for now let's document what we have.
19777
19778 2003-07-08  Paul Eggert  <eggert@twinsun.com>
19779
19780         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
19781         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
19782         and sweeter "eval x=$x".
19783         * config/srclist.txt: Get lib/argp* from glibc.
19784
19785 2003-07-07  Paul Eggert  <eggert@twinsun.com>
19786
19787         * lib/mktime.c: Fix some boundary cases and remove need for floating
19788         point.
19789
19790         Issue a compile-time diagnostic if time_t is floating point, or if
19791         two's complement arithmetic is not in effect, or if arithmetic
19792         right shift does not propagate the sign.  These assumptions were
19793         all in the original code but they weren't checked.
19794
19795         (TIME_T_MIDPOINT, verify): New macros.
19796         (__isleap): Remove; it has integer overflow problems.
19797         (leapyear): New function, without those problems.
19798         (ydhms_tm_diff): Remove; splitting into two parts.
19799         (ydhms_diff): New function, containing the arithmetic part of
19800         the old ydhms_tm_diff function.  Issue a compile-time
19801         diagnostic if we are not using C99 integer division.
19802         Avoid casts when possible.
19803         (guess_time_tm): New function, containing the checking part of
19804         the old ydhms_tm_diff function.  Return the new value, rather than
19805         the difference between it and the old.  Accept a new argument T
19806         so that *T specifies the old value.  Check for overflow in the result.
19807
19808         (__mktime_internal): Use a time_t offset, not a long int offset.
19809         This undoes the 2003-06-04 change, which is no longer needed now
19810         that we have better overflow checking.
19811         (localtime_offset): Likewise.
19812
19813         (__mktime_internal): Avoid harmful overflow on hosts where time_t
19814         and long are 64-bit but int is only 32-bit.
19815         (ydhms_diff): Use long int to store year1 and yday1.
19816         Issue a compile-time diagnostic if long int is not wide enough.
19817
19818         (__mktime_internal): Use long int to store adjusted year and yday.
19819         Use plain C rather than preprocessor commands, if that doesn't
19820         affect efficiency.
19821         Check for overflow (and try to repair) after each probe
19822         rather than checking only at the very end.  This avoids some bugs
19823         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
19824         does not equal GMT offset at maximum time).
19825         Use integer to check for overflow rather than floating point; this
19826         is more portable to non-IEEE hosts, and is a tad faster.
19827         When we detect that we are oscillating between two values,
19828         don't check whether tm_isdst has the requested value, since
19829         we already know the answer.  When tm_isdst has the wrong value,
19830         use a different heuristic to find the right one, based on the
19831         extreme values actually observed in practice in tz2003a,
19832         rather than the (overly optimistic) "previous 3 calendar quarters".
19833
19834         (not_equal_tm, print_tm, check_result): Use "const T" rather than
19835         "T const" to accommodate glibc style.
19836         (check_result): Use less-confusing report format.  "long" -> "long int.
19837         (main): Likewise.
19838         Don't loop if the iteration overflows time_t.
19839         Allow a negative step in the iteration.
19840
19841 2003-07-06  Karl Berry  <karl@gnu.org>
19842
19843         * config/depcomp: update from automake.
19844         * config/config.sub: update from prep.
19845
19846 2003-07-03  Karl Berry  <karl@gnu.org>
19847
19848         * config/config.guess: update from prep.
19849
19850 2003-07-01  Paul Eggert  <eggert@twinsun.com>
19851
19852         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
19853         xreadlink.c now includes it unconditionally.
19854
19855 2003-07-01  Paul Eggert  <eggert@twinsun.com>
19856
19857         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
19858         having it depend on HAVE_SYS_TYPES_H.
19859
19860 2003-07-01  Bruno Haible  <bruno@clisp.org>
19861
19862         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
19863         <sys/types.h> should be sufficient.
19864         Reported by Paul Eggert.
19865
19866 2003-06-26  Karl Berry  <karl@gnu.org>
19867
19868         * config/depcomp: update from automake.
19869
19870 2003-06-26  Bruno Haible  <bruno@clisp.org>
19871
19872         * modules/human: Depend on module stdbool.
19873
19874 2003-06-25  Bruno Haible  <bruno@clisp.org>
19875
19876         * modules/readlink: New file.
19877         * modules/xreadlink: Depend on it.
19878         * MODULES.html.sh (func_all_modules): Add readlink.
19879
19880 2003-06-25  Bruno Haible  <bruno@clisp.org>
19881
19882         * m4/readlink.m4: New file.
19883
19884 2003-06-25  Bruno Haible  <bruno@clisp.org>
19885
19886         * lib/readlink.c: New file.
19887
19888 2003-06-22  Karl Berry  <karl@gnu.org>
19889
19890         * config/srclist.txt: update mkinstalldirs from automake.
19891         * config/mkinstalldirs: update.
19892
19893 2003-06-22  Bruno Haible  <bruno@clisp.org>
19894
19895         Portability to mingw32.
19896         * m4/ssize_t.m4: New file, from GNU gettext.
19897         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
19898         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
19899
19900 2003-06-22  Bruno Haible  <bruno@clisp.org>
19901
19902         * modules/safe-read: Add m4/ssize_t.m4.
19903         * modules/xreadlink: Add m4/ssize_t.m4.
19904
19905 2003-06-20  Bruno Haible  <bruno@clisp.org>
19906
19907         Assume C89, so PARAMS isn't needed.
19908         * lib/unicodeio.h (PARAMS): Remove.
19909         * lib/unicodeio.c: Don't use PARAMS.
19910
19911 2003-06-18  Karl Berry  <karl@gnu.org>
19912
19913         * config/config.{guess,sub}: update from prep.
19914
19915 2003-06-18  Jim Meyering  <jim@meyering.net>
19916
19917         Merge changes from coreutils.
19918         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
19919         Remove explicit declarations of xmalloc and realloc.
19920         Include xalloc.h.
19921         (read_utmp): Remove anachronistic cast of xmalloc.
19922
19923 2003-06-17  Paul Eggert  <eggert@twinsun.com>
19924
19925         Assume C89, so PARAMS isn't needed.
19926         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
19927         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
19928         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
19929         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
19930         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
19931         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
19932         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
19933         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
19934         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
19935         lib/xstrtod.h, lib/xstrtol.h: Likewise.
19936         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
19937         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
19938         no longer needed. Anyway, config.h should always be included before any
19939         other file.
19940
19941 2003-06-11  Simon Josefsson  <jas@extundo.com>
19942
19943         * modules/sysexits: New file.
19944         * MODULES.html.sh (func_all_modules): Add sysexits.
19945
19946 2003-06-11  Simon Josefsson  <jas@extundo.com>
19947
19948         * lib/sysexit_.h: New file.
19949
19950 2003-06-11  Derek Price  <derek@ximbiot.com>
19951
19952         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
19953         necessary.
19954
19955 2003-06-11  Bruno Haible  <bruno@clisp.org>
19956
19957         * m4/sysexits.m4: New file.
19958
19959 2003-06-10  Simon Josefsson  <jas@extundo.com>
19960
19961         * lib/argp.h: New file, from glibc.
19962         * lib/argp-ba.c: New file, from glibc.
19963         * lib/argp-eexst.c: New file, from glibc.
19964         * lib/argp-fmtstream.c: New file, from glibc.
19965         * lib/argp-fmtstream.h: New file, from glibc.
19966         * lib/argp-fs-xinl.c: New file, from glibc.
19967         * lib/argp-help.c: New file, from glibc.
19968         * lib/argp-namefrob.h: New file, from glibc.
19969         * lib/argp-parse.c: New file, from glibc.
19970         * lib/argp-pv.c: New file, from glibc.
19971         * lib/argp-pvh.c: New file, from glibc.
19972         * lib/argp-xinl.c: New file, from glibc.
19973
19974 2003-06-10  Simon Josefsson  <jas@extundo.com>
19975
19976         * modules/strchrnul: New file.
19977
19978 2003-06-10  Simon Josefsson  <jas@extundo.com>
19979
19980         * modules/argp: New file.
19981
19982 2003-06-10  Simon Josefsson  <jas@extundo.com>
19983
19984         * m4/strchrnul.m4: New file.
19985
19986 2003-06-10  Simon Josefsson  <jas@extundo.com>
19987
19988         * lib/strchrnul.h: New file.
19989         * lib/strchrnul.c: New file.
19990
19991 2003-06-10  Bruno Haible  <bruno@clisp.org>
19992
19993         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
19994
19995 2003-06-07  Karl Berry  <karl@gnu.org>
19996
19997         * config/config.{guess,sub}: update from prep.
19998
19999 2003-06-07  Jim Meyering  <jim@meyering.net>
20000
20001         * modules/strtod: Use $(...) notation, not @...@ for
20002         AC_REPLACE'd variables.
20003         * modules/localcharset: Likewise.
20004
20005 2003-06-07  Jim Meyering  <jim@meyering.net>
20006
20007         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
20008         in place of my name in the copyright comment.
20009         Remove definition and uses of __P.
20010
20011         From coreutils.
20012         * lib/stat.c: Don't declare xmalloc explicitly.
20013         Instead, include "xalloc.h".
20014         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
20015         xrealloc, and xcalloc return values.
20016         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
20017         Improve comment.
20018         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
20019
20020 2003-06-07  Bruno Haible  <bruno@clisp.org>
20021
20022         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
20023         avoid AC_CONFIG_LINKS.
20024         * modules/fnmatch (Makefile.am): Use explicit creation rule for
20025         fnmatch.h, to avoid AC_CONFIG_LINKS.
20026         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
20027
20028 2003-06-07  Bruno Haible  <bruno@clisp.org>
20029
20030         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
20031         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
20032         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
20033         directory.
20034         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
20035         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
20036         directory.
20037
20038 2003-06-06  Jim Meyering  <jim@meyering.net>
20039
20040         Merge from coreutils.
20041         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
20042         Consolidate declarations and initializations of *_base* locals.
20043
20044         Merge from coreutils.
20045         This avoids a core dump on systems without GNU putenv,
20046         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
20047         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
20048         (unsetenv): New static function, from GNU libc.
20049         (rpl_putenv): Use it.
20050
20051         * lib/modechange.c: Remove trailing blanks.
20052
20053         Merge from coreutils.
20054         * lib/fsusage.c: Remove declaration of statfs.
20055         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
20056
20057         * lib/posixtm.c: Include <stdbool.h> unconditionally.
20058
20059 2003-06-06  Jim Meyering  <jim@meyering.net>
20060
20061         * lib/stdbool_.h: Renamed from stdbool.h.in.
20062
20063 2003-06-06  Jim Meyering  <jim@meyering.net>
20064             Bruno Haible  <bruno@clisp.org>
20065
20066         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
20067         Adjust Makefile.am snippet not to redirect directly to target.
20068         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
20069
20070 2003-06-05  Paul Eggert  <eggert@twinsun.com>
20071
20072         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
20073         mismatch, look in future quarters as well as past.  This fixes a
20074         bug when processing fall-backwards gaps immediately after a long
20075         period of daylight-saving time.
20076
20077         * lib/mktime.c: Assume freestanding C89 or better.
20078         (HAVE_LIMITS_H): Remove.  Assume it's 1.
20079         (__P): Remove; not used.
20080         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
20081         (mktime, not_equal_tm, print_tm, check_result,
20082         main): Use prototypes.  Use const * where appropriate.
20083         (main): Fix typo in testing code that uncovered by above changes.
20084         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
20085
20086 2003-06-04  Paul Eggert  <eggert@twinsun.com>
20087
20088         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
20089         locale.h, localeconv.  This merges changes from coreutils.
20090
20091         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
20092         It can be removed after the next Autoconf is released.
20093         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
20094         needed.
20095
20096 2003-06-04  Paul Eggert  <eggert@twinsun.com>
20097
20098         * lib/mktime.c: Fix Debian bug 177940
20099         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
20100         (localtime_offset): Now long int, not time_t, because we want it
20101         to be guaranteed to be signed.  All uses changed.
20102         (__mktime_internal): If overflow would occur when adding offset,
20103         don't add it.
20104
20105         Merge 'human' changes from coreutils.  Rewrite to support
20106         locale-specific notations like thousands separators.
20107         * lib/human.c: Simplify authorship notice.
20108         Include human.h immediately after config.h.
20109         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
20110         <limits.h>: Do not include, since human.h does.
20111         (SIZE_MAX, UINTMAX_MAX): New macros.
20112         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
20113         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
20114         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
20115         (power_letter): Renamed from suffixes.
20116         (generate_suffix_backwards): Remove.
20117         (adjust_value): Now takes int style (because of human.h changes)
20118         and long double value (for greater precision on some platforms).
20119         (group_number): New function.
20120         (human_readable): Use it.  Use integer options, not enum.
20121         Put the options before the sizes in the arg list.
20122         Support all the new options.
20123         The old human_readable function has been removed;
20124         use inttostr.h instead.
20125         (human_readable, default_block_size, humblock):
20126         Use uintmax_t, not int, for block sizes.
20127         (human_readable_inexact, block_size_types): Remove.
20128         (block_size_opts): New constant.
20129         (human_options): Renamed from human_block_size, with new signature
20130         that allows block sizes up to UINTMAX_MAX.  All callers changed.
20131         * lib/human.h: Add copyright and authorship notice.
20132         Include <limits.h> and <stdbool.h> unconditionally.
20133         (PARAMS): Remove.  All uses removed.
20134         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
20135         (enum human_inexact_style): Remove tag; now a nameless enum.
20136         (human_floor, human_ceiling, human_round_to_even): Now have
20137         values 2, 0, 1 rather than -1, 1, 0.
20138         (human_group_digits, human_suppress_point_zero, human_autoscale,
20139         human_base_1024, human_SI, human_B): New constants.
20140         (human_readable_inexact, human_block_size): Remove.
20141         (human_readable): Size args are now uintmax_t, not int.
20142         (human_options): New decl.
20143
20144         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
20145         unnecessary now that we assume C89 or better.  This change
20146         imported from coreutils.
20147
20148         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
20149         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
20150         in the 2003-05-30 sync from glibc.
20151
20152         .h files should stand alone, but we shouldn't include <sys/types.h>
20153         if we can get away with just <stddef.h>.
20154
20155         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
20156         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
20157         rather than <sys/types.h>, as we merely need size_t.
20158         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
20159         to get size_t.
20160         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
20161         Include <stdio.h>, to get FILE.
20162         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
20163         memcasecmp.h has included <stddef.h> and all we need is size_t.
20164         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
20165         our interface, instead of including <sys/types.h>
20166
20167 2003-06-04  Paul Eggert  <eggert@twinsun.com>
20168
20169         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
20170         now, as glibc mktime is buggy on non-glibc systems.
20171
20172 2003-06-03  Karl Berry  <karl@gnu.org>
20173
20174         * config/config.sub: update from prep.
20175
20176 2003-06-02  Paul Eggert  <eggert@twinsun.com>
20177
20178         [from coreutils]
20179         Fix some minor time-related bugs with POSIX time arguments.
20180         Some valid time stamps were being rejected (notably -1, and
20181         time stamps before 1900 on 64-bit hosts).  And some invalid
20182         time stamps were being accepted, e.g. September 31.
20183
20184         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
20185         that we can return (time_t) -1 successfully.
20186         * lib/posixtm.c: Likewise.
20187         [HAVE_STDBOOL_H]: Include <stdbool.h>.
20188         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
20189         (t): Remove static var.
20190         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
20191         of static var.  All uses changed.
20192         (year): Do not reject years before 1900; they can occur with
20193         64-bit time_t.
20194         (posix_time_parse): Do not check for out-of-range components;
20195         that is now the caller's responsibility, since our checks were
20196         only approximations.
20197         (posixtime): Use mktime to check for out-of-range components,
20198         since it knows them exactly.
20199         If mktime returns (time_t) -1, check whether an error actually occurred
20200         by invoking localtime on -1.
20201         (main) [TEST_POSIXTIME]: Check for input data errors, and report
20202         posixtime failures better.
20203         Improve the test data (in comments only).
20204
20205 2003-06-02  Karl Berry  <karl@gnu.org>
20206
20207         * config/mkinstalldirs (version): new variable.
20208         (--version): new option.
20209         (usage): improve message.
20210
20211 2003-05-30  Karl Berry  <karl@gnu.org>
20212
20213         * lib/mktime.c: update from libc.
20214
20215 2003-05-30  Bruno Haible  <bruno@clisp.org>
20216
20217         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
20218         * config/config.rpath: Upgrade to gettext-0.12.1.
20219
20220 2003-05-30  Bruno Haible  <bruno@clisp.org>
20221
20222         * m4/gettext.m4: Upgrade to gettext-0.12.1.
20223         * m4/nls.m4: New file, from gettext-0.12.1.
20224         * m4/po.m4: New file, from gettext-0.12.1.
20225         * m4/progtest.m4: Upgrade to gettext-0.12.1.
20226
20227 2003-05-30  Bruno Haible  <bruno@clisp.org>
20228
20229         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
20230         * lib/localcharset.h: Likewise.
20231         * lib/localcharset.c: Likewise.
20232
20233 2003-05-29  Karl Berry  <karl@gnu.org>
20234
20235         * config/config.rpath: update from gettext.
20236
20237 2003-05-28  Paul Eggert  <eggert@twinsun.com>
20238
20239         Assume the headers required for C89 freestanding compilers.
20240         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
20241         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
20242         * m4/human.m4 (gl_HUMAN): Likewise.
20243         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
20244         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
20245         * m4/userspec.m4 (gl_USERSPEC): Likewise.
20246         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
20247         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
20248         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
20249
20250 2003-05-28  Paul Eggert  <eggert@twinsun.com>
20251
20252         Assume the headers required for C89 freestanding compilers.
20253         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
20254         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
20255         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
20256         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
20257         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
20258         define, since <limits.h> is guaranteed to do that.
20259         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
20260         * lib/exclude.c: Include <stdbool.h> unconditionally.
20261         * lib/tempname.c: Include <stddef.h> unconditionally.
20262         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
20263         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
20264         <stddef.h> does that.
20265         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
20266         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
20267         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
20268         needed.
20269         * lib/xstrtol.c: Likewise.
20270         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
20271         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
20272
20273         * lib/addext.c (addext): Use assignment rather than cast, to avoid
20274         warnings on some platforms.
20275
20276         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
20277         arbitrarily.
20278
20279 2003-05-26  Jim Meyering  <jim@meyering.net>
20280
20281         Merge in a change from coreutils:
20282         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
20283         that is guaranteed to be `no'.  Use `no_such_member' to indicate
20284         that condition, rather than `-1' which is slightly misleading.
20285         Change the name of the cache variable to have the gl_ prefix.
20286         Prompted by a patch from Richard Dawe for DJGPP.
20287
20288 2003-05-24  Karl Berry  <karl@gnu.org>
20289
20290         * config/config.guess: update from prep.
20291
20292 2003-05-22  Karl Berry  <karl@gnu.org>
20293
20294         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
20295
20296 2003-05-20  Karl Berry  <karl@gnu.org>
20297
20298         * config/config.guess: update from prep.
20299
20300 2003-05-18  Karl Berry  <karl@gnu.org>
20301
20302         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
20303         might actually be set by the user.
20304
20305         * config/depcomp, install-sh, mdate-sh: update from automake.
20306
20307 2003-05-17  Bruno Haible  <bruno@clisp.org>
20308
20309         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
20310         invalid expansion for AC_EGREP_CPP.
20311         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
20312         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
20313         Suggested by Akim Demaille <akim@epita.fr> in
20314         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
20315
20316 2003-05-12  Jim Meyering  <jim@meyering.net>
20317
20318         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
20319         the space-padded-by-default conversion specifiers, %e, %k, %l.
20320
20321 2003-05-12  Bruno Haible  <bruno@clisp.org>
20322
20323         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
20324         the string is longer than 4 KB.
20325
20326 2003-05-11  Karl Berry  <karl@gnu.org>
20327
20328         * config/config.{guess,sub}: update from prep.
20329
20330 2003-05-09  Bruno Haible  <bruno@clisp.org>
20331
20332         * modules/error: Add m4/strerror_r.m4 to file list.
20333
20334 2003-05-03  Bruno Haible  <bruno@clisp.org>
20335
20336         Upgrade to Unicode-4.0.
20337         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
20338         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
20339         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
20340         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
20341         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
20342         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
20343         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
20344         Change width of U+E0100..U+E01EF from 1 to 0.
20345
20346 2003-04-25  Jim Meyering  <jim@meyering.net>
20347
20348         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
20349         of type size_t, not int.
20350
20351 2003-04-25  Bruno Haible  <bruno@clisp.org>
20352
20353         * lib/copy-file.c: Include <stddef.h>, for size_t.
20354
20355 2003-04-21  Paul Eggert  <eggert@twinsun.com>
20356
20357         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
20358         code which expansion is under static control.  Patch imported from
20359         Akim Demaille's patch to Bison; see
20360         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
20361
20362 2003-04-14  Bruno Haible  <bruno@clisp.org>
20363
20364         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
20365
20366 2003-04-11  Jim Meyering  <jim@meyering.net>
20367
20368         Merge changes from Coreutils.
20369
20370         2003-03-22  Jim Meyering  <jim@meyering.net>
20371
20372         * lib/strftime.c (widen): Cast alloca return value to proper type.
20373
20374         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
20375
20376         From GNU libc.
20377         * lib/strftime.c (my_strftime): Handle very large width
20378         specifications for numeric values correctly.  Improve checks for
20379         overflow.
20380
20381         2003-01-19  Jim Meyering  <jim@meyering.net>
20382
20383         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
20384         definitions.
20385         (nl_get_alt_digit) [! defined my_strftime]: Define.
20386         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
20387         _nl_get_alt_digit and _nl_get_walt_digit.
20388
20389         * lib/strftime.c (my_strftime): Merge in locale-related changes from
20390         libc. These changes have no effect outside of _LIBC.
20391
20392 2003-04-10  Bruno Haible  <bruno@clisp.org>
20393
20394         * modules/findprog: New file.
20395         * MODULES.html.sh (func_all_modules): Add it.
20396
20397 2003-04-10  Bruno Haible  <bruno@clisp.org>
20398
20399         * m4/findprog.m4: New file.
20400         * m4/eaccess.m4: New file.
20401
20402 2003-04-10  Bruno Haible  <bruno@clisp.org>
20403
20404         * lib/findprog.h: New file, from GNU gettext.
20405         * lib/findprog.c: New file, from GNU gettext.
20406
20407 2003-04-05  Jim Meyering  <jim@meyering.net>
20408
20409         Merge changes from Coreutils.
20410
20411         * lib/exclude.h (PARAMS): Remove definition and uses.
20412         * lib/exclude.c: Remove uses of `PARAMS'.
20413
20414         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
20415         Add test-cases for DOS filenames. Declare program_name.
20416         (main): Set up program_name.  Patch by Rich Dawe.
20417
20418         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
20419         error from mntctl.
20420         Use mntctl's return value to drive the entry-processing loop, since
20421         we can't rely on the value of the vmt_length member in the last
20422         entry.  On some systems doing so could result in exhausting
20423         virtual memory.  Based in part on a patch from Mike Jetzer.
20424
20425 2003-04-04  Bruno Haible  <bruno@clisp.org>
20426
20427         * modules/linebreak: New file.
20428         * MODULES.html.sh (func_all_modules): Add it.
20429
20430 2003-04-04  Bruno Haible  <bruno@clisp.org>
20431
20432         * m4/linebreak.m4: New file.
20433
20434 2003-04-04  Bruno Haible  <bruno@clisp.org>
20435
20436         * lib/linebreak.h: New file, from GNU gettext.
20437         * lib/linebreak.c: New file, from GNU gettext with slight
20438         modifications.
20439         * lib/lbrkprop.h: New file, from GNU gettext.
20440
20441 2003-04-03  Bruno Haible  <bruno@clisp.org>
20442
20443         * modules/utf8-ucs4: New file.
20444         * modules/utf16-ucs4: New file.
20445         * modules/ucs4-utf8: New file.
20446         * modules/ucs4-utf16: New file.
20447         * MODULES.html.sh (func_all_modules): Add them.
20448
20449 2003-04-03  Bruno Haible  <bruno@clisp.org>
20450
20451         * m4/utf-ucs4.m4: New file.
20452         * m4/ucs4-utf.m4: New file.
20453
20454 2003-04-03  Bruno Haible  <bruno@clisp.org>
20455
20456         * lib/utf8-ucs4.h: New file, from GNU gettext.
20457         * lib/utf16-ucs4.h: New file, from GNU gettext.
20458         * lib/ucs4-utf8.h: New file, from GNU gettext.
20459         * lib/ucs4-utf16.h: New file, from GNU gettext.
20460
20461 2003-04-02  Bruno Haible  <bruno@clisp.org>
20462
20463         * modules/binary-io: New file.
20464         * MODULES.html.sh (func_all_modules): Add it.
20465
20466 2003-04-02  Bruno Haible  <bruno@clisp.org>
20467
20468         * lib/binary-io.h: New file, from GNU gettext.
20469
20470 2003-04-01  Bruno Haible  <bruno@clisp.org>
20471
20472         * modules/pathname: New file.
20473         * MODULES.html.sh (func_all_modules): Add it.
20474
20475 2003-04-01  Bruno Haible  <bruno@clisp.org>
20476
20477         * lib/pathname.h: New file, from GNU gettext.
20478         * lib/concatpath.c: New file, from GNU gettext.
20479
20480 2003-03-30  Bruno Haible  <bruno@clisp.org>
20481
20482         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
20483
20484 2003-03-30  Bruno Haible  <bruno@clisp.org>
20485
20486         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
20487         function chown() doesn't exist.
20488
20489 2003-03-28  Bruno Haible  <bruno@clisp.org>
20490
20491         * modules/copy-file: New file.
20492         * MODULES.html.sh (func_all_modules): Add it.
20493
20494 2003-03-28  Bruno Haible  <bruno@clisp.org>
20495
20496         * m4/copy-file.m4: New file.
20497
20498 2003-03-28  Bruno Haible  <bruno@clisp.org>
20499
20500         * lib/copy-file.h: New file, from GNU gettext.
20501         * lib/copy-file.c: New file, from GNU gettext.
20502
20503 2003-03-18  Jim Meyering  <jim@meyering.net>
20504
20505         * lib/quote.c (quote_n): Fix typo in comment.
20506
20507 2003-03-18  Bruno Haible  <bruno@clisp.org>
20508
20509         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
20510         checking.
20511         * m4/onceonly_2_57.m4: Likewise.
20512
20513 2003-03-17  Bruno Haible  <bruno@clisp.org>
20514
20515         * m4/onceonly.m4: Require autoconf 2.54 or newer.
20516         (m4_quote): Remove macro.
20517         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
20518
20519 2003-03-14  Jim Meyering  <jim@meyering.net>
20520
20521         Merge changes from Coreutils.
20522         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
20523         to be const, in order to avoid warnings.
20524         (obstack_room): Likewise.
20525         (obstack_empty_p): Likewise.
20526
20527 2003-03-14  Bruno Haible  <bruno@clisp.org>
20528
20529         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
20530         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
20531
20532 2003-03-13  Paul Eggert  <eggert@twinsun.com>
20533
20534         Merge changes from Bison.
20535         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
20536         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
20537         when compiling Bison 1.875's `bitset bset = obstack_alloc
20538         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
20539         * lib/hash.c: Include <stdbool.h> unconditionally.
20540
20541 2003-03-13  Paul Eggert  <eggert@twinsun.com>
20542
20543         * m4/onceonly.m4 (m4_quote): New macro.
20544         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
20545         Quote AC_FOREACH variable-expansions properly.
20546
20547 2003-03-13  Paul Eggert  <eggert@twinsun.com>
20548
20549         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
20550
20551 2003-03-09  Paul Eggert  <eggert@twinsun.com>
20552
20553         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
20554         Reported by Bruce Becker; see:
20555         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
20556
20557 2003-03-03  Paul Eggert  <eggert@twinsun.com>
20558             Bruno Haible  <bruno@clisp.org>
20559
20560         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
20561         Reported by John Hughes, see
20562         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
20563
20564 2003-02-20  Bruno Haible  <bruno@clisp.org>
20565
20566         * MODULES.html.sh (func_all_modules): Add poll.
20567
20568 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
20569
20570         * modules/poll: New file.
20571
20572 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
20573
20574         * lib/poll_.h: New file.
20575         * lib/poll.c: New file.
20576
20577 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
20578
20579         * m4/poll.m4: New file.
20580
20581 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
20582
20583         * modules/mathl: New file.
20584
20585 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
20586
20587         * lib/mathl.h: New file.
20588         * lib/acosl.c: New file.
20589         * lib/asinl.c: New file.
20590         * lib/atanl.c: New file.
20591         * lib/ceill.c: New file.
20592         * lib/cosl.c: New file.
20593         * lib/expl.c: New file.
20594         * lib/floorl.c: New file.
20595         * lib/frexpl.c: New file.
20596         * lib/ldexpl.c: New file.
20597         * lib/logl.c: New file.
20598         * lib/sincosl.c: New file.
20599         * lib/sinl.c: New file.
20600         * lib/sqrtl.c: New file.
20601         * lib/tanl.c: New file.
20602         * lib/trigl.c: New file.
20603         * lib/trigl.h: New file.
20604
20605 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
20606
20607         * m4/mathl.m4: New file.
20608
20609 2003-02-18  Bruno Haible  <bruno@clisp.org>
20610
20611         * MODULES.html.sh (func_all_modules): Add mathl.
20612
20613 2003-02-17  Bruno Haible  <bruno@clisp.org>
20614
20615         * modules/mkdtemp: New module.
20616         * MODULES.html.sh (func_all_modules): Add it.
20617
20618 2003-02-17  Bruno Haible  <bruno@clisp.org>
20619
20620         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
20621
20622 2003-02-17  Bruno Haible  <bruno@clisp.org>
20623
20624         * lib/mkdtemp.h: New file, from GNU gettext.
20625         * lib/mkdtemp.c: New file, from GNU gettext.
20626
20627 2003-02-02  Jim Meyering  <jim@meyering.net>
20628
20629         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
20630         e.g. glibc-2.2.93.
20631
20632 2003-01-31  Bruno Haible  <bruno@clisp.org>
20633
20634         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
20635         'rpl_rename'.
20636         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
20637         'rpl_strnlen'.
20638         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
20639         'rpl_strtod'.
20640         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
20641         'rpl_utime'.
20642
20643 2003-01-31  Bruno Haible  <bruno@clisp.org>
20644
20645         * lib/rename.c: #undef rename before defining rpl_rename.
20646         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
20647
20648 2003-01-30  Bruno Haible  <bruno@clisp.org>
20649
20650         * modules/vasnprintf, modules/vasprintf: New modules.
20651         * MODULES.html.sh (func_all_modules): Add them.
20652
20653 2003-01-30  Bruno Haible  <bruno@clisp.org>
20654
20655         * m4/signed.m4: New file, from GNU gettext.
20656         * m4/longdouble.m4: New file, from GNU gettext.
20657         * m4/wchar_t.m4: New file, from GNU gettext.
20658         * m4/wint_t.m4: New file, from GNU gettext.
20659         * m4/vasnprintf.m4: New file.
20660         * m4/vasprintf.m4: New file.
20661
20662 2003-01-30  Bruno Haible  <bruno@clisp.org>
20663
20664         * lib/printf-args.h: New file, from GNU gettext.
20665         * lib/printf-args.c: New file, from GNU gettext.
20666         * lib/printf-parse.h: New file, from GNU gettext.
20667         * lib/printf-parse.c: New file, from GNU gettext.
20668         * lib/vasnprintf.h: New file, from GNU gettext.
20669         * lib/vasnprintf.c: New file, from GNU gettext.
20670         * lib/asnprintf.c: New file, from GNU gettext.
20671         * lib/vasprintf.h: New file, from GNU gettext with modifications.
20672         * lib/vasprintf.c: New file, from GNU gettext.
20673         * lib/asprintf.c: New file, from GNU gettext.
20674
20675 2003-01-29  Bruno Haible  <bruno@clisp.org>
20676
20677         * modules/stpncpy: New module.
20678         * MODULES.html.sh (func_all_modules): Add it.
20679
20680 2003-01-29  Bruno Haible  <bruno@clisp.org>
20681
20682         * m4/stpncpy.m4: New file.
20683
20684 2003-01-29  Bruno Haible  <bruno@clisp.org>
20685
20686         * lib/stpncpy.h: New file, from GNU gettext with modifications.
20687         * lib/stpncpy.c: New file, from GNU gettext with modifications.
20688
20689 2003-01-28  Bruno Haible  <bruno@clisp.org>
20690
20691         * modules/c-ctype: New module.
20692         * MODULES.html.sh (func_all_modules): Add it.
20693
20694 2003-01-28  Bruno Haible  <bruno@clisp.org>
20695
20696         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
20697         Paul Eggert.
20698         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
20699         Paul Eggert.
20700
20701 2003-01-27  Bruno Haible  <bruno@clisp.org>
20702
20703         * modules/xsetenv: New module.
20704         * MODULES.html.sh (func_all_modules): Add it.
20705
20706 2003-01-27  Bruno Haible  <bruno@clisp.org>
20707
20708         * lib/xsetenv.h: New file, from GNU gettext.
20709         * lib/xsetenv.c: New file, from GNU gettext.
20710
20711 2003-01-23  Jim Meyering  <jim@meyering.net>
20712
20713         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
20714         from working on systems without dirfd (at least Irix and OSF1/Tru64).
20715
20716 2003-01-23  Bruno Haible  <bruno@clisp.org>
20717
20718         * modules/minmax: New module.
20719         * MODULES.html.sh (func_all_modules): Add it.
20720
20721 2003-01-23  Bruno Haible  <bruno@clisp.org>
20722
20723         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
20724         Eggert.
20725
20726 2003-01-22  Bruno Haible  <bruno@clisp.org>
20727
20728         * modules/exit: New module.
20729         * MODULES.html.sh (func_all_modules): Add it.
20730
20731 2003-01-22  Bruno Haible  <bruno@clisp.org>
20732
20733         * lib/exit.h: New file, from GNU gettext.
20734
20735 2003-01-19  Bruno Haible  <bruno@clisp.org>
20736
20737         * gnulib-tool: Recognize option --extract-maintainer.
20738         (func_get_maintainer): New function.
20739         * modules/*: Add Maintainer entry.
20740
20741 2003-01-16  Jim Meyering  <jim@meyering.net>
20742
20743         * m4/regex.m4: The `regex' struct is both input and output.
20744         Initialize it before each use.  Patch by Tim Waugh.
20745
20746 2003-01-16  Bruno Haible  <bruno@clisp.org>
20747
20748         * MODULES.html.sh: Add a table of contents. Add the module name as
20749         leftmost column. Add hyperlinks.
20750
20751 2003-01-15  Bruno Haible  <bruno@clisp.org>
20752
20753         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
20754
20755 2003-01-15  Bruno Haible  <bruno@clisp.org>
20756
20757         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
20758         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
20759         suffix.
20760
20761 2003-01-15  Bruno Haible  <bruno@clisp.org>
20762
20763         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
20764
20765 2003-01-15  Bruno Haible  <bruno@clisp.org>
20766
20767         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
20768         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
20769
20770 2003-01-14  Jim Meyering  <jim@meyering.net>
20771
20772         * lib/same.c (same_name): Tweak a comment.
20773
20774 2003-01-14  Bruno Haible  <bruno@clisp.org>
20775
20776         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
20777         when a string comparison is sufficient.
20778
20779 2003-01-14  Bruno Haible  <bruno@clisp.org>
20780
20781         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
20782         'unsigned int'.
20783
20784 2003-01-14  Bruno Haible  <bruno@clisp.org>
20785
20786         * lib/hash-pjw.c: Add comment about low quality of this function.
20787
20788 2003-01-13  Bruno Haible  <bruno@clisp.org>
20789
20790         * modules/stpcpy: Distribute lib/stpcpy.h.
20791         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
20792
20793 2003-01-13  Bruno Haible  <bruno@clisp.org>
20794
20795         * modules/*: Add a description.
20796         * modules/strpbrk: Fix Makefile.am snippet.
20797         * modules/strtoimax: Fix dependencies.
20798         * modules/strtoumax: Likewise.
20799
20800 2003-01-13  Bruno Haible  <bruno@clisp.org>
20801
20802         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
20803         * modules/alloca (Makefile.am): All object files depend on alloca.h.
20804         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
20805
20806 2003-01-13  Bruno Haible  <bruno@clisp.org>
20807
20808         * gnulib-tool (func_create_testdir): Store config/* files in the main
20809         directory.
20810         * config.rpath: Move to ...
20811         * config/config.rpath: ... here.
20812         * modules/gettext: Contains config/config.rpath, not config.rpath.
20813         * modules/iconv: Likewise.
20814
20815 2003-01-12  Paul Eggert  <eggert@twinsun.com>
20816
20817         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
20818         to avoid collisions with libcurses and libreadline.
20819
20820         * m4/getstr.m4: Remove.
20821         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
20822
20823 2003-01-12  Paul Eggert  <eggert@twinsun.com>
20824
20825         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
20826         to avoid collisions with libcurses and libreadline.
20827
20828         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
20829         * lib/getstr.h, getstr.c: Remove.
20830         * lib/getline.c: Include "getline.h", to check interface.
20831         Move body of old getstr.c here: this defines MIN_CHUNK and
20832         declares getdelim2, which is renamed from getstr.
20833         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
20834
20835         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
20836         All uses changed.
20837         * lib/linebuffer.h: Likewise.
20838         (readline): Remove backward-compatibility macro.
20839
20840 2003-01-12  Paul Eggert  <eggert@twinsun.com>
20841
20842         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
20843         to avoid collisions with libcurses and libreadline.
20844         * getstr: Remove.
20845         * MODULES.html.sh: Remove getstr.
20846         * modules/getline: Depend on unlocked-io, not getstr.
20847
20848 2003-01-12  Jim Meyering  <jim@meyering.net>
20849
20850         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
20851
20852 2003-01-10  Bruno Haible  <bruno@clisp.org>
20853
20854         * modules/alloca: Change Makefile.am requirements. Simplify Include
20855         requirements. Add lib/alloca_.h to file list.
20856
20857 2003-01-10  Bruno Haible  <bruno@clisp.org>
20858
20859         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
20860
20861 2003-01-10  Bruno Haible  <bruno@clisp.org>
20862
20863         * lib/alloca_.h: New file.
20864         * lib/getdate.y: Unconditionally include alloca.h.
20865         * lib/makepath.c: Likewise.
20866         * lib/setenv.c: Likewise.
20867         * lib/userspec.c: Likewise.
20868
20869 2003-01-09  Karl Berry  <karl@gnu.org>
20870
20871         * MODULES.html.sh: include `dirname $0` in PATH, to find
20872         gnulib-tool.
20873
20874 2003-01-09  Bruno Haible  <bruno@clisp.org>
20875
20876         * modules/stdbool: Change configure.ac, Makefile.am requirements.
20877         Simplify Include requirements. Add lib/stdbool.h.in to file list.
20878
20879 2003-01-09  Bruno Haible  <bruno@clisp.org>
20880
20881         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
20882
20883 2003-01-09  Bruno Haible  <bruno@clisp.org>
20884
20885         * lib/stdbool.h.in: New file.
20886
20887 2003-01-09  Bruno Haible  <bruno@clisp.org>
20888
20889         * gnulib-tool (func_all_modules): Ignore files ending in ~.
20890         * MODULES.html.sh: Likewise.
20891
20892 2003-01-08  Jim Meyering  <jim@meyering.net>
20893
20894         * lib/full-write.c: Undefine and define-away `const' after inclusion
20895         of errno.h, not before.  Suggestion from Bruno Haible.
20896
20897 2003-01-08  Bruno Haible  <bruno@clisp.org>
20898
20899         * modules/full-read: Depend on full-write.
20900
20901 2003-01-08  Bruno Haible  <bruno@clisp.org>
20902
20903         * lib/safe-read.c: Include specification header first, to ensure its
20904         selfcontainedness.
20905         * lib/full-write.c: Likewise.
20906
20907 2003-01-07  Jim Meyering  <jim@meyering.net>
20908
20909         * lib/full-write.c: Rework so that it may serve to define full_read,
20910         too.
20911         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
20912
20913 2003-01-07  Bruno Haible  <bruno@clisp.org>
20914
20915         * lib/strtoimax.c: Include <stdint.h> as an alternative to
20916         <inttypes.h>.
20917         * lib/xstrtol.h: Likewise.
20918         * lib/xstrtoimax.c: Likewise.
20919         * lib/xstrtoumax.c: Likewise.
20920         * lib/human.h: Likewise.
20921
20922         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
20923         on systems that have <inttypes.h> but not <stdint.h>.
20924
20925 2003-01-07  Bruno Haible  <bruno@clisp.org>
20926
20927         * MODULES.html.sh: Add copyright notice.
20928         (missed_files): Omit CVS directory entries.
20929         (func_module): Make it work with sed-3.02.
20930         * MODULES.txt: Remove file.
20931
20932 2003-01-06  Jim Meyering  <jim@meyering.net>
20933
20934         * lib/version-etc.c: Update year in translatable copyright string.
20935
20936 2003-01-03  Karl Berry  <karl@gnu.org>
20937
20938         * config/config.{guess,sub}: update from prep.
20939
20940 2003-01-02  Karl Berry  <karl@gnu.org>
20941
20942         * doc/COPYING.DOC: belatedly updated to 1.2.
20943
20944 2003-01-01  Karl Berry  <karl@gnu.org>
20945
20946         * gnulib-tool (func_verify_module): report module name $module in
20947         error message, not $1.
20948         * gnulib-tool (create-testdir): don't complain if destdir couldn't
20949         be created, only if it doesn't exist.
20950         * gnulib-tool (last_checkin_date): don't expand the $Date here.
20951
20952 2002-12-31  Paul Eggert  <eggert@twinsun.com>
20953
20954         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
20955
20956 2002-12-31  Paul Eggert  <eggert@twinsun.com>
20957
20958         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
20959         memcmp if strcoll doesn't work.
20960
20961 2002-12-31  Bruno Haible  <bruno@clisp.org>
20962
20963         * lib/utime.c (utime_null): No need to call ftruncate if the file was
20964         nonempty.
20965
20966 2002-12-31  Bruno Haible  <bruno@clisp.org>
20967
20968         * lib/memcoll.c (STRCOLL): New macro.
20969         (memcoll): Use it.
20970
20971 2002-12-31  Bruno Haible  <bruno@clisp.org>
20972
20973         * lib/localcharset.h: New file.
20974         * lib/localcharset.c: Include it.
20975         * lib/unicodeio.c: Likewise.
20976
20977 2002-12-31  Bruno Haible  <bruno@clisp.org>
20978
20979         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
20980         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
20981
20982 2002-12-31  Bruno Haible  <bruno@clisp.org>
20983
20984         * lib/getline.h: Include <stddef.h>, for size_t.
20985
20986         * lib/unicodeio.h: Include <stddef.h>, for size_t.
20987         * lib/unicodeio.c: Don't include <stddef.h>.
20988
20989 2002-12-31  Bruno Haible  <bruno@clisp.org>
20990
20991         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
20992         HAVE_TM_ZONE.
20993
20994 2002-12-24  Karl Berry  <karl@gnu.org>
20995
20996         * config/config.guess: update from prep.
20997
20998 2002-12-24  Bruno Haible  <bruno@clisp.org>
20999
21000         General infrasructure.
21001         * m4/README: Rewritten.
21002         * m4/onceonly.m4: New file.
21003         * m4/onceonly_2_57.m4: New file.
21004
21005         Module atexit.
21006         * m4/atexit.m4: New file.
21007
21008         Module strtod.
21009         * m4/strtod.m4: New file.
21010
21011         Module strtol.
21012         * m4/strtol.m4: New file.
21013
21014         Module strtoul.
21015         * m4/strtoul.m4: New file.
21016
21017         Module memchr.
21018         * m4/memchr.m4: New file.
21019
21020         Module memcmp.
21021         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
21022         (jm_FUNC_MEMCMP): Invoke it.
21023
21024         Module memcpy.
21025         * m4/memcpy.m4: New file.
21026
21027         Module memmove.
21028         * m4/memmove.m4: New file.
21029
21030         Module memset.
21031         * m4/memset.m4: New file.
21032
21033         Module strcspn.
21034         * m4/strcspn.m4: New file.
21035
21036         Module strpbrk.
21037         * m4/strpbrk.m4: New file.
21038
21039         Module strstr.
21040         * m4/strstr.m4: New file.
21041
21042         Module strerror.
21043         * m4/strerror.m4: New file.
21044
21045         Module mktime.
21046         * m4/mktime.m4: Renamed from jm-mktime.m4.
21047         (gl_PREREQ_MKTIME): New macro.
21048         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
21049
21050         Module malloc.
21051         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
21052         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
21053         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
21054
21055         Module realloc.
21056         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
21057         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
21058         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
21059
21060         Module strftime.
21061         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
21062         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
21063         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
21064         gl_TM_GMTOFF.
21065         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
21066
21067         Module xalloc.
21068         * m4/xalloc.m4: New file.
21069
21070         Module alloca.
21071         * m4/alloca.m4: New file.
21072
21073         Module putenv.
21074         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
21075         (jm_FUNC_PUTENV): Invoke it.
21076
21077         Module setenv.
21078         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
21079         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
21080         when invoked twice.
21081         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
21082         gt_FUNC_SETENV.
21083
21084         Module memrchr.
21085         * m4/memrchr.m4: New file.
21086
21087         Module stpcpy.
21088         * m4/stpcpy.m4: New file.
21089
21090         Module strcase.
21091         * m4/strcase.m4: New file.
21092
21093         Module strdup.
21094         * m4/strdup.m4: New file.
21095
21096         Module strnlen.
21097         * m4/strnlen.m4: New file.
21098
21099         Module strndup.
21100         * m4/strndup.m4: New file.
21101
21102         Module xstrtod.
21103         * m4/xstrtod.m4: New file.
21104
21105         Module xstrtol.
21106         * m4/xstrtol.m4: New file.
21107
21108         Module getdate.
21109         * m4/getdate.m4: New file.
21110
21111         Module unlocked-io.
21112         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
21113         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
21114         * m4/jm-glibc-io.m4n: Remove file.
21115
21116         Module long-options.
21117         * m4/long-options.m4: New file.
21118
21119         Module md5.
21120         * m4/md5.m4: New file.
21121
21122         Module sha.
21123         * m4/sha.m4: New file.
21124
21125         Module getstr.
21126         * m4/getstr.m4: New file.
21127
21128         Module getline.
21129         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
21130         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
21131         <sys/types.h>, for size_t. Use the function name gnu_getline, not
21132         simply getline. Infoke gl_PREREQ_GETLINE.
21133
21134         Module obstack.
21135         * m4/obstack.m4: New file.
21136
21137         Module hash.
21138         * m4/hash.m4: New file.
21139
21140         Module readtokens.
21141         * m4/readtokens.m4: New file.
21142
21143         Module strverscmp.
21144         * m4/strverscmp.m4: New file.
21145
21146         Module stdbool.
21147         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
21148         OSF/1.
21149
21150         Module strtoll.
21151         * m4/strtoll.m4: New file.
21152
21153         Module strtoull.
21154         * m4/strtoull.m4: New file.
21155
21156         Module strtoimax.
21157         * m4/strtoimax.m4: New file.
21158
21159         Module strtoumax.
21160         * m4/strtoumax.m4: New file.
21161
21162         Module xstrtoimax.
21163         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
21164         jm_AC_PREREQ_XSTRTOIMAX.
21165         Moved the strtol prerequisites to strtol.m4.
21166         Moved the strtoll prerequisites to strtoll.m4.
21167         Moved the strtoimax prerequisites to strtoimax.m4.
21168
21169         Module xstrtoumax.
21170         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
21171         jm_AC_PREREQ_XSTRTOUMAX.
21172         Moved the strtoul prerequisites to strtoul.m4.
21173         Moved the strtoull prerequisites to strtoull.m4.
21174         Moved the strtoumax prerequisites to strtoumax.m4.
21175
21176         Module chown.
21177         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
21178         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
21179
21180         Module dup2.
21181         * m4/dup2.m4: New file.
21182
21183         Module ftruncate.
21184         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
21185         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
21186
21187         Module getgroups.
21188         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
21189         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
21190
21191         Module gettimeofday.
21192         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
21193         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
21194         gl_PREREQ_GETTIMEOFDAY.
21195
21196         Module mkdir.
21197         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
21198         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
21199
21200         Module mkstemp.
21201         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
21202         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
21203         jm_AC_TYPE_UINTMAX_T.
21204         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
21205
21206         Module stat.
21207         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
21208         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
21209
21210         Module lstat.
21211         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
21212         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
21213
21214         Module timespec.
21215         * m4/timespec.m4 (gl_TIMESPEC): New macro.
21216         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
21217         * m4/st_mtim.m4: Indentation.
21218
21219         Module nanosleep.
21220         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
21221         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
21222         gl_PREREQ_NANOSLEEP.
21223
21224         Module regex.
21225         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
21226         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
21227         (gl_REGEX): New macro.
21228
21229         Module rename.
21230         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
21231         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
21232
21233         Module rmdir.
21234         * m4/rmdir.m4: New file.
21235
21236         Module utime.
21237         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
21238         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
21239         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
21240
21241         Module dirname.
21242         * m4/dirname.m4: New file.
21243
21244         Module getopt.
21245         * m4/getopt.m4: New file.
21246
21247         Module unistd-safer.
21248         * m4/unistd-safer.m4: New file.
21249
21250         Module fnmatch.
21251         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
21252         declaration.
21253         (gl_PREREQ_FNMATCH_EXTRA): New macro.
21254         (gl_FUNC_FNMATCH_POSIX): New macro.
21255         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
21256         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
21257         simply fnmatch.
21258
21259         Module exclude.
21260         * m4/exclude.m4: New file.
21261
21262         Module human.
21263         * m4/human.m4: New file.
21264
21265         Module acl.
21266         * m4/acl.m4: Nop.
21267
21268         Module backupfile.
21269         * m4/backupfile.m4: New file.
21270         * m4/d-ino.m4: Indentation.
21271
21272         Module fsusage.
21273         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
21274         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
21275         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
21276
21277         Module dirfd.
21278         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
21279         requirements.
21280
21281         Module euidaccess.
21282         * m4/euidaccess.m4: New file.
21283
21284         Module file-type.
21285         * m4/file-type.m4: New file.
21286
21287         Module fileblocks.
21288         * m4/fileblocks.m4: New file.
21289
21290         Module filemode.
21291         * m4/filemode.m4: New file.
21292
21293         Module isdir.
21294         * m4/isdir.m4: New file.
21295
21296         Module lchown.
21297         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
21298         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
21299
21300         Module makepath.
21301         * m4/makepath.m4: New file.
21302
21303         Module modechange.
21304         * m4/modechange.m4: New file.
21305
21306         Module mountlist.
21307         * m4/mountlist.m4: New file.
21308         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
21309         Indentation.
21310
21311         Module path-concat.
21312         * m4/path-concat.m4: New file.
21313
21314         Module pathmax.
21315         * m4/pathmax.m4: New file.
21316
21317         Module same.
21318         * m4/same.m4: New file.
21319
21320         Module save-cwd.
21321         * m4/save-cwd.m4: New file.
21322
21323         Module savedir.
21324         * m4/savedir.m4: New file.
21325
21326         Module xgetcwd.
21327         * m4/xgetcwd.m4: New file.
21328         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
21329
21330         Module xreadlink.
21331         * m4/xreadlink.m4: New file.
21332
21333         Module safe-read.
21334         * m4/safe-read.m4: New file.
21335
21336         Module safe-write.
21337         * m4/safe-write.m4: New file.
21338
21339         Module closeout.
21340         * m4/closeout.m4: New file.
21341
21342         Module stdio-safer.
21343         * m4/stdio-safer.m4: New file.
21344
21345         Module getpass.
21346         * m4/getpass.m4: New file.
21347
21348         Module getugroups.
21349         * m4/getugroups.m4: New file.
21350
21351         Module group-member.
21352         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
21353         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
21354
21355         Module idcache.
21356         * m4/idcache.m4: New file.
21357
21358         Module userspec.
21359         * m4/userspec.m4: New file.
21360
21361         Module gettime.
21362         * m4/clock_time.m4: New file.
21363         * m4/gettime.m4: New file.
21364
21365         Module settime.
21366         * m4/settime.m4: New file.
21367
21368         Module posixtm.
21369         * m4/posixtm.m4: New file.
21370
21371         Module gethostname.
21372         * m4/gethostname.m4: New file.
21373
21374         Module canon-host.
21375         * m4/canon-host.m4: New file.
21376
21377         Module gettext.
21378         * m4/codeset.m4: New file, from gettext-0.11.5.
21379         * m4/gettext.m4: New file, from gettext-0.11.5.
21380         * m4/glibc21.m4: New file, from gettext-0.11.5.
21381         * m4/iconv.m4: New file, from gettext-0.11.5.
21382         * m4/intdiv0.m4: New file, from gettext-0.11.5.
21383         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
21384         * m4/inttypes.m4: New file, from gettext-0.11.5.
21385         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
21386         * m4/isc-posix.m4: New file, from gettext-0.11.5.
21387         * m4/lcmessage.m4: New file, from gettext-0.11.5.
21388         * m4/lib-ld.m4: New file, from gettext-0.11.5.
21389         * m4/lib-link.m4: New file, from gettext-0.11.5.
21390         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
21391         * m4/progtest.m4: New file, from gettext-0.11.5.
21392         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
21393         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
21394         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
21395
21396         Module localcharset.
21397         * m4/localcharset.m4: New file.
21398
21399         Module hard-locale.
21400         * m4/hard-locale.m4: New file.
21401
21402         Module mbswidth.
21403         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
21404         onceonly macros.
21405         * m4/mbrtowc.m4: Add comment.
21406
21407         Module memcasecmp.
21408         * m4/memcasecmp.m4: New file.
21409
21410         Module memcoll.
21411         * m4/memcoll.m4: New file.
21412
21413         Module unicodeio.
21414         * m4/unicodeio.m4: New file.
21415
21416         Module rpmatch.
21417         * m4/rpmatch.m4: New file.
21418
21419         Module yesno.
21420         * m4/yesno.m4: New file.
21421
21422         Module exitfail.
21423         * m4/exitfail.m4: New file.
21424
21425         Module c-stack.
21426         * m4/c-stack.m4 (gl_C_STACK): New macro.
21427         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
21428
21429         Module error.
21430         * m4/error.m4 (gl_ERROR): New macro.
21431         (jm_PREREQ_ERROR): Use onceonly macros.
21432
21433         Module fatal.
21434         * m4/fatal.m4: New file.
21435
21436         Module getloadavg.
21437         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
21438         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
21439
21440         Module getpagesize.
21441         * m4/getpagesize.m4: New file.
21442
21443         Module getusershell.
21444         * m4/getusershell.m4: New file.
21445
21446         Module physmem.
21447         * m4/physmem.m4: New file.
21448
21449         Module posixver.
21450         * m4/posixver.m4: New file.
21451
21452         Module quotearg.
21453         * m4/quotearg.m4: New file.
21454
21455         Module quote.
21456         * m4/quote.m4: New file.
21457
21458         Module readutmp.
21459         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
21460
21461         Module sig2str.
21462         * m4/sig2str.m4: New file.
21463
21464         Other.
21465         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
21466         ulonglong.m4.
21467         * m4/intmax_t.m4: New file.
21468         * m4/d-type.m4: Indentation.
21469         * m4/jm-macros.m4: Update.
21470         * m4/prereq.m4 (jm_PREREQ): Update.
21471         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
21472         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
21473         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
21474         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
21475         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
21476         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
21477         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
21478         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
21479         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
21480         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
21481         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
21482         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
21483         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
21484         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
21485         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
21486         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
21487         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
21488         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
21489         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
21490
21491 2002-12-24  Bruno Haible  <bruno@clisp.org>
21492
21493         * MODULES.txt: Update according to m4/ changes.
21494
21495         Module gettext.
21496         * config.rpath: New file, from gettext-0.11.5.
21497
21498         * modules/*: New module descriptions.
21499         * gnulib-tool: New file.
21500         * MODULES.html.sh: New file.
21501
21502 2002-12-21  Karl Berry  <karl@gnu.org>
21503
21504         * doc/fdl.texi: update to version 1.2.
21505
21506 2002-12-19  Karl Berry  <karl@gnu.org>
21507
21508         * config/config.guess: update from prep.
21509
21510 2002-12-18  Bruno Haible  <bruno@clisp.org>
21511
21512         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
21513         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
21514
21515 2002-12-17  Bruno Haible  <bruno@clisp.org>
21516
21517         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
21518         stdlib.h, string.h.
21519
21520 2002-12-17  Bruno Haible  <bruno@clisp.org>
21521
21522         * lib/canon-host.c (strdup): Remove unused declaration.
21523
21524         * lib/fsusage.c: Include full_read.h.
21525         (get_fs_usage): Use full_read instead of safe_read.
21526
21527         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
21528
21529 2002-12-12  Karl Berry  <karl@gnu.org>
21530
21531         * config/config.guess: update from prep.
21532
21533 2002-12-11  Bruno Haible  <bruno@clisp.org>
21534
21535         * m4/setenv.m4: New file, from gettext-0.11.5.
21536
21537 2002-12-11  Bruno Haible  <bruno@clisp.org>
21538
21539         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
21540         not unsetenv().
21541         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
21542         modifications:
21543
21544         2002-12-11  Bruno Haible  <bruno@clisp.org>
21545
21546                 * setenv.c (alloca): Fall back to malloc.
21547                 (freea): New macro.
21548                 (setenv): Use freea() to free memory allocated with alloca().
21549
21550         2002-11-13  Bruno Haible  <bruno@clisp.org>
21551
21552                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
21553                 function declarations.
21554                 * unsetenv.c (unsetenv): Likewise.
21555
21556         2002-03-04  Bruno Haible  <bruno@clisp.org>
21557
21558                 Portability to AIX 4.3.3.
21559                 * unsetenv.c: New file, extracted from setenv.c.
21560                 * setenv.c: Move the unsetenv() function to unsetenv.c.
21561
21562         2001-12-20  Bruno Haible  <bruno@clisp.org>
21563
21564                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
21565                 use malloc instead. For SunOS 4.
21566
21567         2001-12-11  Bruno Haible  <bruno@clisp.org>
21568
21569                 * setenv.c: Declare alloca.
21570                 (compar_fn_t): New typedef.
21571                 (KNOWN_VALUE, STORE_VALUE): Use it.
21572
21573         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
21574         setenv.h.
21575
21576 2002-12-10  Paul Eggert  <eggert@twinsun.com>
21577
21578         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
21579         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
21580         Choose values that are less likely to collide with system fnmatch
21581         options.
21582         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
21583         defined (e.g., a pure POSIX system).
21584         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
21585         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
21586
21587 2002-12-06  Paul Eggert  <eggert@twinsun.com>
21588
21589         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
21590         a pain in practice to deal with generated m4 files.  This change
21591         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
21592
21593         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
21594         and jm-glibc-io.m4, as they are no longer a special case.
21595         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
21596         kludge and the auto-generation stuff.  Check only whether the
21597         functions are declared, not whether they exist, since older hosts
21598         that don't declare the functions can't use the optimization anyway.
21599
21600 2002-12-06  Jim Meyering  <jim@meyering.net>
21601
21602         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
21603
21604         Merge in changes from libc's misc/error.c, in preparation
21605         for the merge of gnulib's changes back into libc.
21606
21607         * lib/error.c (_): Define only if not already defined.
21608         Move definition to follow all #include directives.
21609         Include unlocked-io.h only if !_LIBC.
21610         [_LIBC]: Include <libio/libioP.h>.
21611         [USE_IN_LIBIO]: Include <libio/iolibio.h>
21612         (fflush): Tweak definition to use INTUSE.
21613         (putc): Define.
21614
21615 2002-12-05  Paul Eggert  <eggert@twinsun.com>
21616
21617         * lib/alloca.c [defined emacs]: Include "lisp.h".
21618         (xalloc_die) [defined emacs]: New macro.
21619         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
21620         [! defined emacs]: Include <xalloc.h>.
21621         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
21622         (pointer): Typedef to POINTER_TYPE *.
21623         (malloc): Remove decl; we now always use xmalloc.
21624         (alloca): Use old-style definition, since Emacs needs this.
21625         Check for arithmetic overflow when computing combined size.
21626
21627 2002-12-04  Paul Eggert  <eggert@twinsun.com>
21628
21629         Do not generate unlocked-io.h automatically, since it's easier to
21630         maintain it by hand.
21631
21632         * lib/unlocked-io.h: New file, from GNU diffutils,
21633         but with proper copyright notice and attribution.
21634         * lib/gen-uio: Remove.
21635         * lib/Makefile.am: Add copyright notice.
21636         (libfetish_a_SOURCES): Add unlocked-io.h.
21637         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
21638         (DISTCLEANFILES, io_functions): Remove macros.
21639         (EXTRA_DIST): Remove gen_uio.
21640         (unlocked-io.h): Remove rule.
21641
21642 2002-12-04  Jim Meyering  <jim@meyering.net>
21643
21644         Reflect the fact that stat.c and lstat.c are no longer generated.
21645         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
21646         (DISTCLEANFILES): Likewise.
21647         (EXTRA_DIST): Likewise.
21648         (all_local): Don't depend on stat.c or lstat.c.
21649         (stat.c, lstat.c): Remove rules.
21650         (EXTRA_DIST): Remove xstat.in.
21651
21652         * lib/xstat.in: Remove file.  Contents moved into stat.c.
21653         * lib/stat.c: New file.  Contents mostly from xstat.in.
21654         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
21655         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
21656
21657         * lib/safe-read.c: Rework so that it may serve to define safe_write,
21658         too.
21659         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
21660
21661 2002-12-03  Jim Meyering  <jim@meyering.net>
21662
21663         * lib/safe-read.c, safe-write.c: Change variable names and comments,
21664         but not semantics, to minimize the differences between these two files.
21665         (safe_read): Change comment to mention SAFE_READ_ERROR.
21666
21667         * lib/safe-read.c (IS_EINTR): Define.
21668         (safe_read): Use IS_EINTR in place of in-function cpp directives.
21669
21670 2002-12-02  Jim Meyering  <jim@meyering.net>
21671
21672         * lib/safe-read.c (EINTR): Define.
21673         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
21674         (INT_MAX): Provide fallback.
21675         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
21676
21677         * lib/safe-read.h (SAFE_READ_ERROR): Define.
21678
21679 2002-12-02  Bruno Haible  <bruno@clisp.org>
21680
21681         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
21682         Define, taken from safe-read.c.
21683         (INT_MAX): Provide fallback.
21684         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
21685         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
21686
21687         * lib/safe-read.c (EINTR): Remove definition.
21688         (safe_read): Don't use EINTR if it is absent.
21689
21690 2002-12-01  Jim Meyering  <jim@meyering.net>
21691
21692         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
21693         zero.
21694         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
21695
21696 2002-11-27  Paul Eggert  <eggert@twinsun.com>
21697
21698         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
21699         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
21700         with `if (! (value < limit)) abort ();', for readability.
21701
21702 2002-11-26  Karl Berry  <karl@gnu.org>
21703
21704         * lib/strdup.c: copy from libc again, with jim's ok.
21705         * lib/.cppi-disable: re-add strdup.c
21706
21707 2002-11-25  Karl Berry  <karl@gnu.org>
21708
21709         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
21710         instead of "strtol.c".
21711
21712 2002-11-25  Karl Berry  <karl@gnu.org>
21713
21714         * config/install-sh: update from automake for variable quoting, $0 in
21715         error msgs, etc.
21716
21717         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
21718         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
21719         entry.
21720
21721 2002-11-25  Jim Meyering  <jim@meyering.net>
21722
21723         * lib/mktime.c: Sync from libc, now that it has the latest fix.
21724
21725 2002-11-24  Karl Berry  <karl@gnu.org>
21726
21727         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
21728         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
21729
21730 2002-11-24  Jim Meyering  <jim@meyering.net>
21731
21732         Update from coreutils:
21733
21734         * lib/mktime.c: Merge in changes from libc.
21735
21736         Avoid a link-time failure on some Linux systems.
21737         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
21738         (otherwise).
21739         (__mon_yday): Declare with the STATIC attribute.
21740         (__mktime_internal): Likewise.
21741         Based on a report from Greg Schafer.
21742
21743 2002-11-23  Jim Meyering  <jim@meyering.net>
21744
21745         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
21746         Use `unsigned', not `int', as type of index.
21747
21748         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
21749
21750         * lib/fsusage.c: Remove unneeded parentheses around operands of
21751         `defined'.
21752
21753 2002-11-22  Paul Eggert  <eggert@twinsun.com>
21754
21755         * lib/quotearg.h: Allow multiple inclusion by surrounding with
21756         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
21757         so that we can be included first.
21758         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
21759         * lib/quotearg.c: Include quotearg.h immediately after config.h.
21760         No need to include stddef.h or sys/types.h any more.
21761         Surround local include files with "", not "<>".
21762         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
21763         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
21764         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
21765         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
21766         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
21767         (ISPRINT): Remove; no longer needed now that we assume C89.
21768
21769         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
21770         Preserve errno.
21771
21772         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
21773         quotearg_char): Use SIZE_MAX rather than
21774         (size_t) -1 when we are talking about "infinity".
21775
21776         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
21777
21778 2002-11-22  Paul Eggert  <eggert@twinsun.com>
21779
21780         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
21781         hint that one should use `if (! x) abort ();' rather than `assert
21782         (x);', and anyway it's one less thing to worry about configuring.
21783         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
21784         hash_rehash, hash_insert): Use abort rather than assert.
21785
21786 2002-11-22  Bruno Haible  <bruno@clisp.org>
21787
21788         * lib/safe-read.h: Assume C89. Add comments.
21789         (safe_read): Change return type to size_t.
21790         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
21791         byte counts > SSIZE_MAX correctly.
21792         * lib/safe-write.h: New file.
21793         * lib/safe-write.c: New file.
21794         * lib/full-read.h: New file.
21795         * lib/full-read.c: New file.
21796         * lib/full-write.h: Assume C89. Add comments.
21797         * lib/full-write.c: Include safe-write.h.
21798         (full_write): Rewritten to use safe_write.
21799         Suggested by Jim Meyering and Paul Eggert.
21800
21801 2002-11-21  Jim Meyering  <jim@meyering.net>
21802
21803         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
21804
21805         Merge in changes from the coreutils.
21806
21807         2002-09-25  Paul Eggert  <eggert@twinsun.com>
21808         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
21809         <stdint.h>.
21810         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
21811         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
21812         int.  Work more efficiently if X is the same width as uintmax_t.
21813         Do not compare X to -1, to avoid bogus compiler warning.
21814         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
21815         Don't assume that f_frsize and f_bsize are the same type.
21816
21817         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
21818         warning on FreeBSD.
21819
21820         * lib/makepath.c (make_path): Restore umask *before* creating the final
21821         component.
21822         (make_path): Minor reformatting.
21823
21824         * lib/xmalloc.c: Adjust to work with new autoconf macros,
21825         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
21826         HAVE_MALLOC/HAVE_REALLOC.
21827
21828         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
21829         dummy ones.  At least on GNU/Linux systems, `auto' means something
21830         else.
21831         From Michael Stone.
21832
21833 2002-11-21  Bruno Haible  <bruno@clisp.org>
21834
21835         Remove case insensitive option matching.
21836         * lib/argmatch.h (argcasematch): Remove declaration.
21837         (ARGCASEMATCH): Remove macro.
21838         (__xargmatch_internal): Remove case_sensitive argument.
21839         (XARGMATCH): Update.
21840         (XARGCASEMATCH): Remove macro.
21841         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
21842         case_sensitive argument.
21843         (argcasematch): Remove function.
21844         (__xargmatch_internal): Remove case_sensitive argument.
21845         (main): Use XARGMATCH instead of XARGCASEMATCH.
21846
21847         * lib/xmalloc.c: Change compile-time error message. Add comment about
21848         required autoconf version.
21849
21850 2002-11-20  Paul Eggert  <eggert@twinsun.com>
21851
21852         Merge argmatch cleanups from Bison.  Assume C89.
21853
21854         * lib/argmatch.c: Include config.h here, not in argmatch.h.
21855         Include stdlib.h, for EXIT_FAILURE.
21856         Always include <string.h>, since we assume C89.
21857         (EXIT_FAILURE): Remove pre-C89 bug workaround.
21858         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
21859         Include <stddef.h> instead, since it's all we need for size_t.
21860         (PARAMS): Remove.  All uses removed.
21861         (ARRAY_CARDINALITY): Do not bother to #undef.
21862         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
21863         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
21864         Remove unnecessary parentheses.
21865         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
21866         Insert necessary parentheses.
21867         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
21868         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
21869
21870 2002-11-19  Bruno Haible  <bruno@clisp.org>
21871
21872         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
21873         * lib/mbswidth.h: Include <stddef.h>, for size_t.
21874
21875         * lib/mbswidth.h (PARAMS): Remove macro.
21876         (mbswidth, mbsnwidth): Use ANSI C function declarations.
21877         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
21878
21879         * lib/gcd.h (PARAMS): Remove macro.
21880         (gcd): Use ANSI C function declarations.
21881         * lib/gcd.c (gcd): Likewise.
21882
21883 2002-11-15  Bruno Haible  <bruno@clisp.org>
21884
21885         * lib/strcspn.c: Include <stddef.h>.
21886         (strcspn): Use ANSI C function declaration. Change return type to
21887         size_t. Use NULL.
21888         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
21889         (strpbrk): Use NULL.
21890         * lib/strpbrk.h (PARAMS): Remove macro.
21891         (strpbrk): Use ANSI C function declaration.
21892         * lib/strstr.c: Don't include <sys/types.h>.
21893         * lib/strstr.h (PARAMS): Remove macro.
21894         (strstr): Use ANSI C function declarations.
21895
21896 2002-11-14  Karl Berry  <karl@gnu.org>
21897
21898         * config/mkinstalldirs: `do' on separate line, instead of
21899         `for var; do'.
21900
21901 2002-11-06  Bruno Haible  <bruno@clisp.org>
21902
21903         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
21904         * lib/gcd.c (gcd): Likewise.
21905
21906 2002-11-05  Bruno Haible  <bruno@clisp.org>
21907
21908         * lib/gcd.h: New file, from gettext-0.11.5.
21909         * lib/gcd.c: New file, from gettext-0.11.5.
21910
21911 2002-11-05  Bruno Haible  <bruno@clisp.org>
21912
21913         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
21914         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
21915         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
21916         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
21917
21918         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
21919         <libintl.h>.
21920         * lib/makepath.c: Include gettext.h instead of <locale.h> and
21921         <libintl.h>.
21922
21923         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
21924         * lib/human.c: Include gettext.h instead of <libintl.h>.
21925         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
21926         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
21927         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
21928         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
21929         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
21930         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
21931         (textdomain): Remove definition.
21932         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
21933
21934         * lib/long-options.c: Remove include of <libintl.h> and definition of
21935         _.
21936         * lib/same.c: Remove include of <libintl.h> and definition of _.
21937
21938 2002-11-04  Owen Taylor  <otaylor@redhat.com>
21939
21940         * lib/config.charset: A few additions for Solaris.
21941
21942 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
21943
21944         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
21945         * lib/localcharset.c (locale_charset): Declare as extern "C".
21946
21947 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
21948
21949         * lib/config.charset: msdos in uk_UA uses CP1125.
21950
21951 2002-11-04  Bruno Haible  <bruno@clisp.org>
21952
21953         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
21954         * lib/strcase.h: New file, from GNU gettext-0.11.5.
21955         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
21956         * lib/strstr.h: New file, from GNU gettext-0.11.5.
21957         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
21958
21959 2002-11-04  Bruno Haible  <bruno@clisp.org>
21960
21961         * lib/localcharset.c (locale_charset): Don't return an empty string.
21962
21963 2002-11-04  Bruno Haible  <bruno@clisp.org>
21964
21965         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
21966         aliases.
21967
21968 2002-11-04  Bruno Haible  <bruno@clisp.org>
21969
21970         * lib/config.charset: Update for newest glibc. Add canonical names
21971         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
21972
21973 2002-11-04  Bruno Haible  <bruno@clisp.org>
21974
21975         * lib/config.charset: Add support for NetBSD.
21976
21977 2002-11-04  Bruno Haible  <bruno@clisp.org>
21978
21979         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
21980
21981 2002-11-01  Bruno Haible  <bruno@clisp.org>
21982
21983         * configure.in: Add AC_CONFIG_AUX_DIR call.
21984         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
21985         test/Makefile.
21986         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
21987
21988 2002-09-28  Karl Berry  <karl@gnu.org>
21989
21990         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
21991         installed automake until the next release, since changes have been
21992         made.
21993
21994 2002-09-25  Karl Berry  <karl@gnu.org>
21995
21996         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
21997         * lib/getopt*: copy from libc/posix.
21998         * lib/gettext.h: copy from gettext.
21999         * lib/.cppi-disable: add strdup.c, gettext.h.
22000
22001 2002-09-25  Karl Berry  <karl@gnu.org>
22002
22003         * config/srclist.txt: enable gettext.h check.
22004         * config/config.{guess,sub}: update from prep.
22005         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
22006                 from automake 1.6.3.
22007         See srclist*.
22008
22009 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
22010
22011         * regex.c (PATFETCH): Remove the translating fetch.
22012         (PATFETCH_RAW): Rename to PATFETCH.
22013         (set_image_of_range): New fun.
22014         (SET_RANGE_TABLE_WORK_AREA): Use it.
22015         (regex_compile): Don't translate the pattern chars so eagerly.
22016         Only do it when inserting an `exactn' bytecode or when handling
22017         a char-range.
22018         (mutually_exclusive_p): Avoid empty statement.
22019
22020 2002-07-06  Jim Meyering  <meyering@lucent.com>
22021
22022         * m4/README: Don't mention Makefile.am.in.
22023         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
22024
22025 2002-07-01  Jim Meyering  <meyering@lucent.com>
22026
22027         * lib/c-stack.c: Include sys/time.h.
22028         From Volker Borchert.
22029
22030 2002-06-26  Paul Eggert  <eggert@twinsun.com>
22031
22032         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
22033
22034 2002-06-26  Paul Eggert  <eggert@twinsun.com>
22035
22036         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
22037         New macro.  Use it uniformly instead of
22038         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
22039         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
22040         reported by Vin Shelton.
22041
22042 2002-06-22  Paul Eggert  <eggert@twinsun.com>
22043
22044         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
22045         Do not assume SA_SIGINFO behavior.
22046         Bug reported by Jim Meyering on NetBSD 1.5.2.
22047
22048 2002-06-22  Jim Meyering  <meyering@lucent.com>
22049
22050         * m4/c-stack.m4: New file, from diffutils-2.8.2.
22051         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
22052
22053         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
22054         now that configure.ac uses AC_GNU_SOURCE.
22055         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
22056         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
22057
22058         Update to latest tools.  Suggestions from Paul Eggert.
22059         * m4/stdbool.m4: New file, from diffutils-2.8.2.
22060         * m4/gnu-source.m4: Update from diffutils-2.8.2.
22061         * m4/fnmatch.m4: Likewise.
22062         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
22063         to AC_HEADER_STDBOOL
22064
22065 2002-06-22  Jim Meyering  <meyering@lucent.com>
22066
22067         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
22068         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
22069
22070 2002-06-22  Jim Meyering  <meyering@lucent.com>
22071
22072         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
22073
22074         * lib/exitfail.c, exitfail.h: Likewise.
22075         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
22076
22077         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
22078         of fnmatch.h.
22079         (EXTRA_DIST): Add fnmatch_loop.c.
22080         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
22081
22082         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
22083         * lib/fnmatch.c: Update from diffutils-2.8.2.
22084         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
22085         * lib/fnmatch.h: Remove file.
22086
22087 2002-06-21  Jim Meyering  <meyering@lucent.com>
22088
22089         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
22090         * m4/mbrtowc.m4: Likewise.
22091
22092         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
22093         * m4/mbswidth.m4: Reflect name change:
22094         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
22095         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
22096
22097         * m4/lib-link.m4: Update from gettext-0.11.2.
22098         * m4/gettext.m4: Likewise.
22099
22100         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
22101         From Alfred M. Szmidt.
22102
22103 2002-06-18  Paul Eggert  <eggert@twinsun.com>
22104
22105         * lib/file-type.h: Report an error if neither S_ISREG nor
22106         S_IFREG is defined, instead of using a test specific to glibc
22107         2.2.  This should be safe, since POSIX requires S_ISREG and
22108         Unix Version 7 had S_IFREG.  We don't need to check for
22109         <sys/types.h> since we don't use any symbols that it defines.
22110
22111 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
22112
22113         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
22114         $@-t, so that each temporary file name is unique and valid in the first
22115         8 characters, for operation under DOS.
22116
22117 2002-06-15  Paul Eggert  <eggert@twinsun.com>
22118
22119         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
22120
22121 2002-06-15  Jim Meyering  <meyering@lucent.com>
22122
22123         Work even with DJGPP 2.03, which lacks support for symlinks.
22124         From Richard Dawe.
22125         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
22126         is defined.
22127         * lib/lchown.c (S_ISLNK): Likewise.
22128
22129 2002-06-15  Jim Meyering  <meyering@lucent.com>
22130
22131         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
22132         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
22133         have been included before this file.
22134
22135 2002-06-14  Jim Meyering  <meyering@lucent.com>
22136
22137         * lib/file-type.h: Use the version from diffutils-2.8.2.
22138         * lib/file-type.c: Likewise.
22139
22140 2002-06-07  Jim Meyering  <meyering@lucent.com>
22141
22142         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
22143         They're needed at least for NetBSD 1.5.2.
22144         ($statxfs_includes): Include those same headers.
22145         ($statxfs_includes): Include sys/vfs.h if available.
22146         ($statxfs_includes): Likewise for sys/statvfs.h.
22147         Check for the following members in both structs statfs and statvfs:
22148         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
22149
22150 2002-06-01  Jim Meyering  <meyering@lucent.com>
22151
22152         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
22153         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
22154
22155 2002-05-28  Jim Meyering  <meyering@lucent.com>
22156
22157         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
22158         Reported by Volker Borchert.
22159
22160 2002-05-27  Jim Meyering  <meyering@lucent.com>
22161
22162         Fix a problem seen only on nonconforming systems whereby ls.c's
22163         use of localtime, and then of gettimeofday would cause trouble:
22164         the localtime call used to initialize rpl_gettimeofday's save
22165         mechanism would clobber ls's current local time information so
22166         that in any long listing the first file would always be listed
22167         with date 1970-01-01.  Analysis by Volker Borchert.
22168
22169         * lib/gettimeofday.c (localtime): Undefine.
22170         (rpl_localtime): New function.
22171
22172 2002-05-27  Jim Meyering  <meyering@lucent.com>
22173
22174         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
22175         localtime.
22176
22177         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
22178         use the replacement function; it wouldn't resolve at link time.
22179         Reported by Volker Borchert.
22180
22181 2002-05-22  Jim Meyering  <meyering@lucent.com>
22182
22183         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
22184         file-type.h.
22185         * lib/file-type.h: New file.
22186         * lib/file-type.c (file_type): New file/function.  Extracted from
22187         diffutils.
22188
22189 2002-04-30  Jim Meyering  <meyering@lucent.com>
22190
22191         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
22192
22193 2002-04-29  Paul Eggert  <eggert@twinsun.com>
22194
22195         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
22196
22197 2002-04-29  Paul Eggert  <eggert@twinsun.com>
22198
22199         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
22200         Do not check for alloca.h (no longer used) or stdbool.h (was never
22201         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
22202
22203 2002-04-29  Paul Eggert  <eggert@twinsun.com>
22204
22205         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
22206
22207 2002-04-29  Jim Meyering  <meyering@lucent.com>
22208
22209         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
22210         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
22211         Use AC_FUNC_STRNLEN here instead.
22212
22213         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
22214         With autoconf-2.53a, it's part of AC_PROG_CC.
22215
22216 2002-04-28  Paul Eggert  <eggert@twinsun.com>
22217
22218         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
22219         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
22220
22221 2002-04-28  Paul Eggert  <eggert@twinsun.com>
22222
22223         * lib/sig2str.h, lib/sig2str.c: New files.
22224         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
22225
22226 2002-04-28  Paul Eggert  <eggert@twinsun.com>
22227
22228         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
22229         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
22230         of 127, since 64 is the largest conceivable number for ancient
22231         nonstandard hosts.
22232         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
22233
22234 2002-04-28  Jim Meyering  <meyering@lucent.com>
22235
22236         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
22237
22238 2002-04-24  Jim Meyering  <meyering@lucent.com>
22239
22240         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
22241         (jm_PREREQ): Use it.
22242
22243         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
22244         mach/mach.h fcntl.h.
22245         Check for this function: setlocale.
22246
22247 2002-04-24  Jim Meyering  <meyering@lucent.com>
22248
22249         * lib/gettext.h: New file, from Gettext.
22250         * lib/Makefile.am (INCLUDES): Remove -I../intl.
22251         (libfetish_a_SOURCES): Add gettext.h.
22252
22253 2002-04-16  Jim Meyering  <meyering@lucent.com>
22254
22255         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
22256         ut_pid, ut_id, ut_exit.
22257
22258 2002-04-16  Jim Meyering  <meyering@lucent.com>
22259
22260         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
22261         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
22262         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
22263
22264 2002-04-12  Jim Meyering  <meyering@lucent.com>
22265
22266         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
22267         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
22268         existence of the getmntinfo function.  Needed for Darwin 5.3.
22269
22270         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
22271         This is necessary at least on Darwin 5.3.
22272
22273         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
22274         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
22275         strnlen.o in the library, and that makes some versions of ranlib
22276         object.
22277
22278 2002-04-12  Jim Meyering  <meyering@lucent.com>
22279
22280         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
22281
22282 2002-04-09  Jim Meyering  <meyering@lucent.com>
22283
22284         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
22285         to be more precise.  Rather than saying we're checking whether the
22286         function `works', say what we're testing.
22287         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
22288         Reported by Bruno Haible.
22289
22290 2002-03-10  Jim Meyering  <meyering@lucent.com>
22291
22292         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
22293         Suggestion from Santiago Vila.
22294
22295 2002-03-08  Jim Meyering  <meyering@lucent.com>
22296
22297         * lib/rename.c: Mention that this wrapper is needed also on
22298         mips-dec-ultrix4.4 systems.
22299
22300 2002-03-02  Jim Meyering  <meyering@lucent.com>
22301
22302         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
22303         not HAVE_CLOCK_SETTIME.
22304
22305 2002-02-27  Paul Eggert  <eggert@twinsun.com>
22306
22307         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
22308         Check for clock_settime.
22309
22310 2002-02-27  Paul Eggert  <eggert@twinsun.com>
22311
22312         * lib/nanosleep.h: Rename to....
22313         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
22314
22315         * lib/gettime.c: New file.
22316         * lib/settime.c: New file.
22317         * lib/stime.c: Remove.
22318
22319         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
22320         timespec.h.  Remove nanosleep.h.
22321
22322 2002-02-25  Paul Eggert  <eggert@twinsun.com>
22323
22324         * m4/acl.m4: New file.
22325         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
22326         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
22327
22328 2002-02-25  Paul Eggert  <eggert@twinsun.com>
22329
22330         * lib/acl.c, lib/acl.h: New files.
22331         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
22332
22333 2002-02-24  Jim Meyering  <meyering@lucent.com>
22334
22335         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
22336         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
22337         cause trouble.  Reported by Nelson Beebe.
22338
22339 2002-02-23  Paul Eggert  <eggert@twinsun.com>
22340
22341         * lib/path-concat.c (xpath_concat): Reorder code to pacify
22342         compilers that don't know that xalloc_die never returns.
22343
22344 2002-02-20  Jim Meyering  <meyering@lucent.com>
22345
22346         * lib/getdate.c: Regenerate using bison-1.33.
22347
22348 2002-02-17  Jim Meyering  <meyering@lucent.com>
22349
22350         * config/config.guess (main): Don't use `head -1'; it's no longer
22351         portable. Use `sed 1q' instead.
22352
22353 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
22354
22355         * m4/codeset.m4: Upgrade to gettext-0.11.
22356         * m4/gettext.m4: Upgrade to gettext-0.11.
22357         * m4/glibc21.m4: Upgrade to gettext-0.11.
22358         * m4/iconv.m4: Upgrade to gettext-0.11.
22359         * m4/isc-posix.m4: Upgrade to gettext-0.11.
22360         * m4/lcmessage.m4: Upgrade to gettext-0.11.
22361         * m4/lib-ld.m4: New file, from gettext-0.11.
22362         * m4/lib-link.m4: New file, from gettext-0.11.
22363         * m4/lib-prefix.m4: New file, from gettext-0.11.
22364         * m4/progtest.m4: Upgrade to gettext-0.11.
22365
22366 2002-02-15  Paul Eggert  <eggert@twinsun.com>
22367
22368         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
22369         (jm_PREREQ): Use it.
22370
22371 2002-02-15  Paul Eggert  <eggert@twinsun.com>
22372
22373         * lib/posixver.c, lib/posixver.h: New files.
22374         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
22375
22376 2002-02-02  Paul Eggert  <eggert@twinsun.com>
22377             Bruno Haible  <bruno@clisp.org>
22378
22379         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
22380         (fwrite_success_callback): New declaration.
22381         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
22382         print_unicode_char. Call failure callback instead of error.
22383         (fwrite_success_callback): New function.
22384         (exit_failure_callback): New function.
22385         (fallback_failure_callback): New function.
22386         (print_unicode_char): Call unicode_to_mb.
22387
22388 2002-01-26  Jim Meyering  <meyering@lucent.com>
22389
22390         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
22391         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
22392
22393 2002-01-26  Jim Meyering  <meyering@lucent.com>
22394
22395         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
22396
22397 2002-01-22  Paul Eggert  <eggert@twinsun.com>
22398
22399         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
22400
22401 2002-01-22  Jim Meyering  <meyering@lucent.com>
22402
22403         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
22404         Otherwise, some versions of automake would omit the rule that makes
22405         Makefile from Makefile.in.
22406
22407 2002-01-21  Paul Eggert  <eggert@twinsun.com>
22408
22409         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
22410         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
22411         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
22412         (memcoll): Set errno to zero if there is no error.
22413
22414         * lib/quotearg.c (quotearg_buffer_restyled):
22415         Fix bug with quoting buffers containing NUL when backslashing escapes.
22416         This bug was exposed by the other changes in this patch.
22417         (quotearg_n_options): New arg ARGSIZE.
22418         All callers changed.
22419         (quoting_options_from_style): New function.
22420         (quotearg_n_style): Use it.
22421         (quotearg_n_style_mem): New function.
22422
22423         * lib/quotearg.h (quotearg_n_style_mem): New function.
22424
22425 2002-01-19  Jim Meyering  <meyering@lucent.com>
22426
22427         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
22428         Remove useless quotes: DF_PROG="df".
22429         * m4/strnlen.m4: New file.
22430
22431 2002-01-16  Paul Eggert  <eggert@twinsun.com>
22432
22433         * lib/backupfile.c (ISDIGIT): Comment fix.
22434         * lib/getdate.y (ISDIGIT): Likewise.
22435         * lib/posixtm.c (ISDIGIT, year): Likewise.
22436         * lib/strverscmp.c (ISDIGIT): Likewise.
22437         * lib/userspec.c (ISDIGIT): Likewise.
22438
22439 2002-01-16  Jim Meyering  <meyering@lucent.com>
22440
22441         * lib/getdate.y: Add three semicolons, each just before a closing
22442         brace. Bison (as of version 1.31) no longer papers over that mistake.
22443
22444 2002-01-05  Jim Meyering  <meyering@lucent.com>
22445
22446         * lib/version-etc.c (version_etc_copyright): Update copyright year.
22447
22448 2001-12-19  Paul Eggert  <eggert@twinsun.com>
22449
22450         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
22451         not silently exit merely because the output buffer happens to
22452         have nothing pending.
22453
22454 2001-12-18  Paul Eggert  <eggert@twinsun.com>
22455
22456         See the big note in ../ChangeLog.
22457         * lib/human.c (suffixes): Prefer K to k for 1024.
22458         (generate_suffix_backwards): New function.
22459         (human_readable_inexact): Use it.
22460         * lib/xstrtol.c (__xstrtol): If there is no number but there
22461         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
22462         Accept 'K' as well as 'k'.
22463
22464 2001-12-15  Jim Meyering  <meyering@lucent.com>
22465
22466         * lib/regex.h (__restrict_arr): Update from libc.
22467
22468         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
22469         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
22470         (STREQ): Define.
22471
22472 2001-12-14  Jim Meyering  <meyering@lucent.com>
22473
22474         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
22475         Suggestion from Bruno Haible.
22476
22477 2001-12-10  Jim Meyering  <meyering@lucent.com>
22478
22479         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
22480         xrealloc, Instead, include "xalloc.h".
22481         (initbuffer): Don't cast xmalloc return value to char*.
22482         (readline): Reword comment.
22483         Don't cast xrealloc return value to char*
22484         Return NULL, not 0.
22485
22486 2001-12-09  Jim Meyering  <meyering@lucent.com>
22487
22488         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
22489         about `signed and unsigned type in conditional expression'.
22490         * lib/posixtm.c (posix_time_parse): Likewise.
22491
22492         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
22493
22494         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
22495         to avoid a pedantic warning.
22496
22497         * lib/getstr.c: Don't include assert.h.
22498         (getstr): Remove warning-evoking assertions.
22499         Return -1 if offset parameter is out of bounds.
22500         Change the type of a local from int to size_t.
22501
22502         * lib/strftime.c (my_strftime_localtime_r): Include this function
22503         definition in the `#if ! HAVE_TM_GMTOFF' block.
22504
22505         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
22506         Include xalloc.h instead.
22507
22508 2001-12-02  Jim Meyering  <meyering@lucent.com>
22509
22510         * lib/tempname.c: Don't declare getenv, thus reverting the change of
22511         2001-11-18.  It's no longer necessary, now that stdlib.h is always
22512         included.
22513
22514         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
22515         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
22516
22517 2001-11-30  Akim Demaille  <akim@epita.fr>
22518
22519         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
22520         before being defined.
22521
22522 2001-11-27  Paul Eggert  <eggert@twinsun.com>
22523
22524         * lib/quotearg.h (quotearg_n, quotearg_n_style):
22525         First arg is int, not unsigned.
22526         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
22527         (SIZE_MAX, UINT_MAX): New macros.
22528         (quotearg_n_options): Abort if N is negative.
22529         Avoid overflow check on hosts where size_t is 64 bits and int
22530         is 32 bits, as overflow is impossible there.
22531         Fix off-by-one typo that caused unnecessary reallocation.
22532
22533 2001-11-27  Jim Meyering  <meyering@lucent.com>
22534
22535         * lib/tempname.c: Merge with version from libc.
22536         * lib/regex.c: Likewise.
22537
22538         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
22539         systems for which STDC_HEADERS is 0, it was not included, resulting in
22540         a warning about an integer-to-pointer conversion problem with getenv.
22541         Reported by Volker Borchert.
22542
22543 2001-11-26  Jim Meyering  <meyering@lucent.com>
22544
22545         * lib/gtod.h: Remove file.
22546         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
22547         * lib/gettimeofday.c: Don't include gtod.h.
22548         (GTOD_init): Remove function.
22549         (rpl_gettimeofday): Do its job here instead, rather than aborting.
22550         Suggestion from Volker Borchert.
22551
22552 2001-11-23  Jim Meyering  <meyering@lucent.com>
22553
22554         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
22555         it.
22556         * lib/hash.c (struct hash_table): Define it here instead.
22557
22558 2001-11-22  Jim Meyering  <meyering@lucent.com>
22559
22560         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
22561
22562 2001-11-20  Jim Meyering  <meyering@lucent.com>
22563
22564         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
22565         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
22566
22567 2001-11-19  Jim Meyering  <meyering@lucent.com>
22568
22569         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
22570         directory.  Use "conftestXXXXXX" as the template.
22571         Suggestion from Paul Eggert.
22572
22573         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
22574         immediately, so the test doesn't mistakenly hit the max-open-files
22575         limit.
22576
22577 2001-11-18  Paul Eggert  <eggert@twinsun.com>
22578
22579         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
22580         (TEMPORARIES): New macro.
22581         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
22582         removes an artificial limitation (e.g. HP-UX 10.20, where
22583         TMP_MAX is 17576).
22584
22585 2001-11-18  Jim Meyering  <meyering@lucent.com>
22586
22587         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
22588
22589 2001-11-18  Jim Meyering  <meyering@lucent.com>
22590
22591         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
22592         on SunOS 4.
22593
22594         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
22595         files will be created before anything else.
22596
22597 2001-11-17  Paul Eggert  <eggert@twinsun.com>
22598
22599         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
22600         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
22601
22602 2001-11-17  Jim Meyering  <meyering@lucent.com>
22603
22604         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
22605         Prompted by a report from Bob Proulx.
22606
22607         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
22608         Instead, require UTILS_FUNC_MKSTEMP.
22609
22610 2001-11-17  Jim Meyering  <meyering@lucent.com>
22611
22612         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
22613         Now, that's done as part of AC_FUNC_STRTOD.
22614
22615 2001-11-17  Jim Meyering  <meyering@lucent.com>
22616
22617         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
22618         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
22619         rather than group writable.  Patch by Juan F. Codagnone.
22620
22621         * lib/readtokens.c: Remove explicit declarations of xmalloc and
22622         xrealloc, Instead, include "xalloc.h".
22623
22624         * lib/mountlist.c: Include unlocked-io.h after all system headers.
22625         Remove explicit declarations of xmalloc, xrealloc,
22626         and xstrdup.  Instead, include "xalloc.h".
22627
22628         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
22629         unlocked-io.h.
22630         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
22631         Likewise.
22632         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
22633
22634         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
22635         Reported by Padraig Brady.
22636
22637         * lib/mkstemp.c: #undef mkstemp.
22638         Include config.h.
22639         (rpl_mkstemp): Rename from mkstemp.
22640         Protoize.
22641
22642 2001-11-16  Jim Meyering  <meyering@lucent.com>
22643
22644         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
22645         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
22646         determine the amount of total physical memory, use pstat_getstatic.
22647         HPUX-11 doesn't define _SC_PHYS_PAGES.
22648         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
22649         If sysconf couldn't be used to determine the amount of available
22650         physical memory, use both pstat_getstatic and pstat_getdynamic.
22651         Based on a patch from Bob Proulx.
22652
22653 2001-11-10  Jim Meyering  <meyering@lucent.com>
22654
22655         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
22656         (jm_PREREQ): Use it.
22657
22658 2001-11-09  Jim Meyering  <meyering@lucent.com>
22659
22660         * m4/jm-macros.m4: Require autoconf-2.52f.
22661         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
22662         Use these AC_-prefixed names, not the AM_-prefixed ones.
22663
22664         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
22665
22666 2001-11-05  Jim Meyering  <meyering@lucent.com>
22667
22668         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
22669
22670 2001-11-04  Jim Meyering  <meyering@lucent.com>
22671
22672         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
22673         $DEFS.
22674
22675 2001-11-03  Jim Meyering  <meyering@lucent.com>
22676
22677         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
22678         of AC_DEFUN.
22679
22680         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
22681         know the name of the variable in the macro definition.
22682
22683 2001-11-03  Jim Meyering  <meyering@lucent.com>
22684
22685         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
22686         in argmatch_to_argument call.
22687
22688         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
22689         argument.
22690
22691         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
22692         e.g., a fault due to an attempt to free a NULL pointer.
22693
22694 2001-11-01  Jim Meyering  <meyering@lucent.com>
22695
22696         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
22697         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
22698
22699 2001-11-01  Jim Meyering  <meyering@lucent.com>
22700
22701         * lib/dirfd.c, lib/dirfd.h: New files.
22702         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
22703
22704         * lib/hash.c (hash_print) [TESTING]: Clean up.
22705
22706 2001-10-22  Paul Eggert  <eggert@twinsun.com>
22707
22708         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
22709         to avoid a warning if -Wall.
22710
22711 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
22712
22713         * README: New file
22714         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
22715         (per RMS's instructions, this is now the canonical source)
22716         * lgpl/, gpl/: New directories.
22717
22718 2001-10-21  Paul Eggert  <eggert@twinsun.com>
22719
22720         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
22721
22722 2001-10-21  Jim Meyering  <meyering@lucent.com>
22723
22724         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
22725         this code would end up calling gettext even in packages built
22726         with --disable-nls.
22727         * lib/getopt.c (_): Likewise.
22728         * lib/regex.c (_): Likewise.
22729
22730 2001-10-20  Paul Eggert  <eggert@twinsun.com>
22731
22732         * m4/error.m4 (jm_PREREQ_ERROR):
22733         Do not invoke AC_CHECK_FUNCS with strerror_r, as
22734         AC_FUNC_STRERROR_R does that.
22735         Check for strerror declaration.
22736
22737         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
22738         are supposed to have them these days.
22739         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
22740         Merge changes from latest Autoconf CVS.
22741         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
22742         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
22743         POSIX decided to standardize on the int flavor of strerror_r.
22744
22745 2001-10-20  Paul Eggert  <eggert@twinsun.com>
22746
22747         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
22748         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
22749         Use strerror_r that is only a macro, even if it is not a function.
22750         (strerror): Check for HAVE_DECL_STRERROR before declaring.
22751         (private_strerror): Use prototypes, not old-style function definition.
22752         (print_errno_message): New function.
22753         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
22754         char*-flavored one.
22755         (error_tail, error, error_at_line): Use it.
22756
22757 2001-10-11  Jim Meyering  <meyering@lucent.com>
22758
22759         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
22760         and quote_n (1, ... to avoid clobbering a buffer.
22761
22762 2001-10-05  Jim Meyering  <meyering@lucent.com>
22763
22764         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
22765         hash-pjw.h.
22766         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
22767         * lib/hash-pjw.h: New file.
22768
22769 2001-09-30  Jim Meyering  <meyering@lucent.com>
22770
22771         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
22772         `struct fsstat' has the `f_fstypename' member.
22773         Use that to define FS_TYPE, which is now used to make
22774         the getfsstat link test tighter.
22775
22776 2001-09-30  Jim Meyering  <meyering@lucent.com>
22777
22778         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
22779         Include <sys/ucred.h>, for Apple Darwin.
22780         Include sys/mount.h and sys/fs_types.h only if available.
22781         (FS_TYPE): Define.
22782         (read_filesystem_list): Use FS_TYPE.
22783
22784 2001-09-29  Paul Eggert  <eggert@twinsun.com>
22785
22786         * lib/exclude.c (excluded_filename): 0 -> false, since it's
22787         a boolean context.
22788
22789 2001-09-29  Jim Meyering  <meyering@lucent.com>
22790
22791         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
22792         [one-argument getmntent function]): Include stdio.h before mntent.h.
22793         SunOS 4.1.x needs it for the declaration of `FILE'.
22794         Patch by Volker Borchert.
22795
22796         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
22797         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
22798         sys/fs_types.h, and make the link-test for getfsstat guard #include
22799         directives with appropriate #if HAVE_*_H tests so that we can
22800         detect getfsstat on Apple Darwin1.3.7 systems.
22801         Reported by Nelson Beebe.
22802         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
22803
22804 2001-09-28  Paul Eggert  <eggert@twinsun.com>
22805
22806         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
22807         #defines strtoimax.  Also treat the other strto* functions
22808         like strtoimax.
22809
22810         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
22811         Check for strtoul and strtoumax,
22812         as those declarations are made even in the signed case.
22813         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
22814         Likewise, for strtol and strtoimax.
22815
22816 2001-09-28  Paul Eggert  <eggert@twinsun.com>
22817
22818         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
22819         #defines strtoimax.  Also treat the other strto* functions
22820         like strtoimax.
22821
22822         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
22823         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
22824         (strtoimax, strtoumax): Do not declare if already defined as a macro.
22825
22826 2001-09-26  Jim Meyering  <meyering@lucent.com>
22827
22828         Most macros in unlocked-io.h had the wrong number of arguments.
22829         * lib/gen-uio: New script.
22830         (USE_UNLOCKED_IO): Define to 1 if not already defined.
22831         * lib/unlocked-io.hin: Remove file.
22832         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
22833         rather than trying to embed it here.
22834         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
22835         Reported by Padraig Brady.
22836
22837 2001-09-25  Volker Borchert  <bt@teknon.de>
22838
22839         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
22840         `result'.
22841
22842 2001-09-24  Jim Meyering  <meyering@lucent.com>
22843
22844         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
22845
22846 2001-09-23  Jim Meyering  <meyering@lucent.com>
22847
22848         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
22849         instead of the mere test for existence of mntent.h.  The latter
22850         would get a false-positive on AIX 3.4 systems.
22851         In the outer getmntent if-block, don't die if neither of the getmntent
22852         tests succeeds.  Instead, just fall through and continue with the
22853         remaining tests.
22854
22855 2001-09-23  Jim Meyering  <meyering@lucent.com>
22856
22857         * lib/mountlist.c: Remove useless parentheses in #if directives.
22858         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
22859         the deprecated MOUNTED symbol is no longer defined in mntent.h.
22860
22861 2001-09-22  Jim Meyering  <meyering@lucent.com>
22862
22863         * m4/gettext.m4: New file.  From gettext.
22864         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
22865         * m4/progtest.m4: Likewise
22866         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
22867         * m4/glibc21.m4: Likewise.
22868
22869         * m4/libintl.m4: Remove.  No longer used.
22870
22871 2001-09-22  Jim Meyering  <meyering@lucent.com>
22872
22873         * lib/localcharset.c: Update from latest gettext.
22874         * lib/config.charset: Likewise.
22875
22876 2001-09-20  Jim Meyering  <meyering@lucent.com>
22877
22878         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
22879         strtoimax.
22880         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
22881         strtoumax.
22882
22883 2001-09-20  Jim Meyering  <meyering@lucent.com>
22884
22885         * lib/xstrtol.c (strtoimax): Guard declaration with
22886         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
22887         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
22888         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
22889         (strtoumax): Likewise, for completeness (it wasn't necessary).
22890
22891 2001-09-17  Paul Eggert  <eggert@twinsun.com>
22892
22893         * lib/strtoimax.c (HAVE_LONG_LONG):
22894         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
22895         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
22896         to work around bug in IBM C compiler.
22897
22898 2001-09-17  Jim Meyering  <meyering@lucent.com>
22899
22900         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
22901         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
22902         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
22903         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
22904         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
22905         whenever the right hand side need not be expanded by the shell.
22906
22907 2001-09-16  Paul Eggert  <eggert@twinsun.com>
22908
22909         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
22910         library.  It's not correct, as some older glibcs are buggy.
22911         fnmatch wasn't fixed until glibc 2.2.
22912
22913         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
22914         special shell magic here.
22915
22916 2001-09-16  Jim Meyering  <meyering@lucent.com>
22917
22918         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
22919         * m4/jm-macros.m4: Require it.
22920
22921 2001-09-16  Jim Meyering  <meyering@lucent.com>
22922
22923         * lib/mkdir.c: New file.
22924
22925 2001-09-15  Jim Meyering  <meyering@lucent.com>
22926
22927         * m4/jm-macros.m4: Check for help2man.
22928
22929 2001-09-11  Jim Meyering  <meyering@lucent.com>
22930
22931         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
22932         The body, by Paul Eggert, was moved here from configure.in.
22933         * m4/jm-macros.m4: Require UTILS_HOST_OS.
22934
22935 2001-09-04  Paul Eggert  <eggert@twinsun.com>
22936
22937         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
22938         (jm_PREREQ): Use it.
22939
22940 2001-09-04  Paul Eggert  <eggert@twinsun.com>
22941
22942         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
22943         Use ssize_t, not int, to store result of readlink.
22944         Check for ssize_t overflow as well as size_t overflow,
22945         as POSIX says the result of readlink is implementation-defined
22946         when ssize_t overflows.
22947         Remove unnecessary cast to char*.
22948         Use free+malloc instead of realloc, as the storage doesn't need
22949         to be preserved and it's clearer and can be more efficient that way.
22950         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
22951         * lib/xreadlink.h (xreadlink): Update prototype.
22952
22953 2001-09-04  Paul Eggert  <eggert@twinsun.com>
22954
22955         * lib/xgetcwd.c: Revert some of the previous change; intead,
22956         fix the HAVE_GETCWD_NULL code to behave more like the
22957         !HAVE_GETCWD_NULL code used to.
22958
22959         Include "xalloc.h".
22960         (xgetcwd): Do not return NULL when memory is exhausted; instead,
22961         invoke xalloc_die.
22962
22963 2001-09-03  Paul Eggert  <eggert@twinsun.com>
22964
22965         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
22966         sys/param.h, as pathmax.h includes them.
22967
22968 2001-09-03  Paul Eggert  <eggert@twinsun.com>
22969
22970         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
22971         (jm_PREREQ_XGETCWD): New macro.
22972
22973         * m4/getcwd.m4: New file.
22974
22975 2001-09-03  Paul Eggert  <eggert@twinsun.com>
22976
22977         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
22978         like the HAVE_GETCWD_NULL code.
22979         Include pathmax.h if not HAVE_GETCWD.
22980         Do not include xalloc.h.
22981         (INITIAL_BUFFER_SIZE): New symbol.
22982         Do not use xmalloc / xrealloc, since the caller is responsible for
22983         handling errors.  Preserve errno around `free' during failure.
22984         Do not overrun buffer when using getwd.
22985
22986 2001-09-03  Paul Eggert  <eggert@twinsun.com>
22987
22988         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
22989         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
22990         getcwd (NULL, 0).
22991
22992 2001-09-03  Paul Eggert  <eggert@twinsun.com>
22993
22994         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
22995         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
22996         spotted by Jim Meyering.
22997
22998 2001-09-03  Jim Meyering  <meyering@lucent.com>
22999
23000         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
23001         failure.
23002
23003 2001-09-02  Jim Meyering  <meyering@lucent.com>
23004
23005         * lib/error.c: Update from GNU libc.
23006
23007 2001-09-01  Jim Meyering  <meyering@lucent.com>
23008
23009         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
23010         Used by df.
23011
23012 2001-09-01  Jim Meyering  <meyering@lucent.com>
23013
23014         * lib/xreadlink.c: New file.
23015         * lib/xreadlink.h: New file.
23016         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
23017         xreadlink.h.
23018
23019         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
23020         doesn't conflict with sparc Solaris 7's definition in
23021         /usr/include/sys/int_types.h.
23022
23023         * lib/exclude.c: Use `""', not `<>' to #include non-system header
23024         files.
23025         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
23026         and strncasecmp as r-values.  Unixware didn't have declarations.
23027
23028 2001-08-31  Paul Eggert  <eggert@twinsun.com>
23029
23030         * lib/xstrtol.h: Add copyright notice.
23031         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
23032         LONGINT_INVALID_SUFFIX_CHAR.
23033
23034 2001-08-31  Paul Eggert  <eggert@twinsun.com>
23035
23036         * lib/xstrtol.c (strtoimax): New decl.
23037
23038 2001-08-31  Paul Eggert  <eggert@twinsun.com>
23039
23040         * lib/xgetcwd.c: Don't include pathmax.h.
23041         Include stdlib.h and unistd.h if available.
23042         Include xalloc.h.
23043         (xmalloc, xstrdup, free): Remove decls.
23044         (xgetcwd): Don't assume sizes fit in unsigned.
23045         Check for overflow when computing sizes.
23046         Simplify reallocation code.
23047
23048 2001-08-31  Paul Eggert  <eggert@twinsun.com>
23049
23050         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
23051         a directory's st_size can have an arbitrary value, so the old
23052         usage could waste an arbitrary amount of memory.  All uses
23053         changed.
23054         * lib/savedir.h: Update prototype.
23055
23056 2001-08-31  Paul Eggert  <eggert@twinsun.com>
23057
23058         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
23059
23060         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
23061         old strtoimax.c.
23062
23063         Also, make the following further changes to make this file's
23064         configuration more similar to that of strtol.c:
23065         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
23066         (strtoumax, uintmax_t, strtoull, strtol): Remove.
23067         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
23068         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
23069         changed to signed values.
23070
23071         And make the following changes as well:
23072         Fix copyright notice, as 1999 was missing.
23073         (verify): New macro.
23074         (strtoimax): Check sizes at compile-time, not run-time.
23075         Prefer strtol to strtoll if both work.
23076         (main): Remove; it was not that useful and was a pain to maintain.
23077
23078         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
23079
23080 2001-08-31  Jim Meyering  <meyering@lucent.com>
23081
23082         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
23083         Use an initial, malloc'd, buffer of length 128 rather than
23084         a statically allocated one of length 1024.
23085
23086 2001-08-30  Paul Eggert  <eggert@twinsun.com>
23087
23088         Simplify code, partly by assuming autoconf 2.52 semantics.
23089
23090         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
23091
23092         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
23093         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
23094         All uses removed.
23095         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
23096         Move AC_REQUIRE to next-to-top level, to avoid confusion.
23097         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
23098         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
23099         jm_AC_HEADER_INTTYPES_H.
23100         * m4/jm-macros.m4 (jm_MACROS): Likewise.
23101
23102         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
23103
23104         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
23105         Quote first arg of AC_DEFUN.
23106         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
23107         since they are needed to parse the include file even if we need
23108         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
23109         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
23110         but with opposite signedness.
23111
23112 2001-08-30  Paul Eggert  <eggert@twinsun.com>
23113
23114         Merge 'exclude' changes from tar 1.13.22.
23115         This fixes one or two unlikely storage allocation overflow bugs,
23116         but doesn't change user-visible behavior otherwise.
23117
23118 2001-08-30  Paul Eggert  <eggert@twinsun.com>
23119
23120         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
23121         (jm_PREREQ_EXCLUDE): New macro.
23122
23123 2001-08-30  Paul Eggert  <eggert@twinsun.com>
23124
23125         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
23126         tm to be declared.
23127
23128 2001-08-30  Paul Eggert  <eggert@twinsun.com>
23129
23130         * lib/hash.c: Remove '2001' from copyright notice.
23131
23132 2001-08-30  Paul Eggert  <eggert@twinsun.com>
23133
23134         * lib/full-write.h: New file.
23135         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
23136         * lib/full-write.c: Correct credits, as cccp.c no longer
23137         exists and anyway it was so heavily changed from the old cccp
23138         code as to be unrecognizable.  Include full-write.h.
23139         (full_write) Return size_t, with short writes meaning failure.
23140         All callers changed.  This fixes a bug with large buffers
23141         on 64-bit hosts.
23142         * lib/utime.c: Include full-write.h.
23143
23144 2001-08-30  Paul Eggert  <eggert@twinsun.com>
23145
23146         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
23147         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
23148         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
23149         Include if available.
23150         (<xalloc.h>): Include
23151         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
23152         (verify): New macro.  Use it to verify that EXCLUDE macros do not
23153         collide with FNM macros.
23154         (struct patopts): New struct.
23155         (struct exclude): Use it, as exclude patterns now come with options.
23156         (new_exclude): Support above changes.
23157         (new_exclude, add_exclude_file):
23158         Initial size must now be a power of two to simplify overflow checking.
23159         (free_exclude, fnmatch_no_wildcards): New function.
23160         (excluded_filename): No longer requires options arg, as the options
23161         are determined by add_exclude.  Now returns bool, not int.
23162         (excluded_filename, add_exclude):
23163         Add support for the fancy new exclusion options.
23164         (add_exclude, add_exclude_file): Now takes int options arg.
23165         Check for arithmetic overflow when computing sizes.
23166         (add_exclude_file): xrealloc might modify errno, so don't
23167         realloc until after errno might be used.
23168
23169         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
23170         New macros.
23171         (free_exclude): New decl.
23172         (add_exclude, add_exclude_file): Now takes int options arg.
23173         (excluded_filename): No longer requires options arg, as the options
23174         are determined by add_exclude.  Now returns bool, not int.
23175
23176 2001-08-30  Paul Eggert  <eggert@twinsun.com>
23177
23178         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
23179
23180 2001-08-27  Jim Meyering  <meyering@lucent.com>
23181
23182         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
23183
23184         * lib/version-etc.c (N_): Remove definition.
23185         Revert most of last change.
23186         Instead, simply don't mark the `Copyright...' string for translation.
23187         Based on advice from Paul Eggert.
23188
23189         * lib/strtoxmax.c: Tweak comment.
23190
23191 2001-08-26  Jim Meyering  <meyering@lucent.com>
23192
23193         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
23194
23195         * m4/xstrtoimax.m4: New file.
23196         * m4/xstrtoumax.m4: Add comments explaining why we
23197         AC_REPLACE_FUNCS(strtol).
23198
23199 2001-08-26  Jim Meyering  <meyering@lucent.com>
23200
23201         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
23202         of copyright with `%s' so translators don't get an untranslated
23203         message in 2002.
23204         (COPYRIGHT_YEAR): Define.
23205         (version_etc): Use fprintf rather than fputs.
23206         Suggestion from Ulrich Drepper.
23207
23208         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
23209
23210         * lib/strtoll.c: New file, from GNU libc.
23211         * lib/xstrtoimax.c: New file.
23212
23213         * lib/xstrtol.h: Add xstrtoimax.
23214         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
23215         * lib/strtoimax.c: New file.  Likewise, but first define
23216         STRTOUXMAX_SIGNED.
23217
23218         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
23219         ...
23220         * lib/strtoxmax.c: ... then renamed to this.
23221
23222 2001-08-18  Paul Eggert  <eggert@twinsun.com>
23223
23224         * m4/inttypes.m4: Add AC_PREREQ(2.13).
23225         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
23226         (jm_AC_TYPE_INTMAX_T): New macro.
23227         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
23228
23229         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
23230
23231         * m4/longlong.m4: Renamed from ulonglong.m4.
23232         * m4/inttypes.m4: Renamed from inttypes_h.m4.
23233         * m4/uintmax_t.m4: Removed.
23234
23235 2001-08-13  Paul Eggert  <eggert@twinsun.com>
23236
23237         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
23238         Port to Solaris 8, where 'sed' requires a space after the 'r'
23239         command, and where sh dislikes "$/".  Clean up the spacing a bit.
23240         Redirect output to $tmp just once.
23241
23242 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
23243
23244         * lib/addext.c (<errno.h>): Include.
23245         (errno): Declare if not defined.
23246         (addext): Work correctly when pathconf returns -1 and leaves
23247         errno alone because there is no limit.  Also, work even if
23248         pathconf returns a value greater than SIZE_MAX.
23249
23250 2001-08-12  Jim Meyering  <meyering@lucent.com>
23251
23252         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
23253         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
23254         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
23255         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
23256         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
23257         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
23258         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
23259         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
23260         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
23261         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
23262         utime.m4, utimes.m4, xstrtoumax.m4:
23263         Quote the first argument in each use of AC_DEFUN.
23264
23265 2001-08-12  Jim Meyering  <meyering@lucent.com>
23266
23267         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
23268         Simply `return getcwd (NULL, 0);'.
23269         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
23270         Use 1300 as initial value for length, not PATH_MAX.
23271
23272         * lib/pathmax.h: Clean up cpp syntax.
23273
23274 2001-08-12  Jim Meyering  <meyering@lucent.com>
23275
23276         * lib/gettimeofday.c: New file.
23277         * lib/gtod.h: New file.
23278         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
23279
23280 2001-08-05  Jim Meyering  <meyering@lucent.com>
23281
23282         * m4/jm-macros.m4: Require autoconf-2.52.
23283
23284 2001-08-04  Jim Meyering  <meyering@lucent.com>
23285
23286         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
23287         stmt, to get in sync with glibc.
23288
23289 2001-08-03  Paul Eggert  <eggert@twinsun.com>
23290
23291         The following changes are from gettext 0.10.39 as maintained by
23292         Bruno Haible.
23293
23294         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
23295         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
23296         with inverted sense.  All uses changed.
23297
23298         * lib/mbswidth.c: Don't include <limits.h>.
23299         Include <stdlib.h> and <string.h> unconditionally.
23300         (iswcntrl, mbsinit, ISCNTRL): New macros.
23301         (mbsnwidth): Use K&R style function declarations.
23302         Don't bother checking for MB_LEN_MAX == 1, since the compiler
23303         can optimize it when MB_CUR_MAX == 1.
23304         The width of control characters is zero, not 1.
23305
23306 2001-08-03  Paul Eggert  <eggert@twinsun.com>
23307
23308         The following changes are from gettext 0.10.39 as maintained by
23309         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
23310
23311         * m4/codeset.m4: Upgrade to serial AM1.
23312         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
23313         all uses changed.  Quote first arg of AC_DEFUN.
23314         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
23315
23316         * m4/iconv.m4: Upgrade to serial AM2.
23317         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
23318         Add --with-libconv-prefix.
23319         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
23320         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
23321         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
23322         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
23323         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
23324
23325         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
23326         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
23327         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
23328         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
23329         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
23330         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
23331         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
23332         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
23333         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
23334
23335         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
23336         string.h any more.
23337
23338         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
23339         not the default value.
23340
23341         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
23342         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
23343         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
23344         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
23345         Also check for iswcntrl, used for wcwidth fallback.
23346         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
23347         to Autoconf 2.13.
23348
23349 2001-08-03  Jim Meyering  <meyering@lucent.com>
23350
23351         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
23352         as it was in the original.  Reported by Paul Eggert.
23353
23354 2001-07-16  Jim Meyering  <meyering@lucent.com>
23355
23356         * m4/gettimeofday.m4: New file.
23357         Prompted by a report from Bernhard Baehr.
23358
23359 2001-07-15  Jim Meyering  <meyering@lucent.com>
23360
23361         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
23362         stuff. Now it's in ../Makefile.cfg.
23363
23364 2001-07-15  Jim Meyering  <meyering@lucent.com>
23365
23366         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
23367         (BUILT_SOURCES): Add unlocked-io.h.
23368         (io_functions): Define.
23369         (unlocked-io.h): New rule.
23370         (DISTCLEANFILES): Add unlocked-io.h.
23371         (all-local): Depend on unlocked-io.h, to ensure it is created.
23372
23373         * lib/unlocked-io.hin: New file
23374
23375         * lib/regex.c: Update from glibc.
23376
23377 2001-07-05  Jim Meyering  <meyering@lucent.com>
23378
23379         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
23380         recommendation.
23381         (libfetish_a_SOURCES): Put all .h files here instead.
23382         Remove a thus-exposed (better checks in automake) duplicate and
23383         two unnecessary .h files.
23384
23385 2001-07-04  Jim Meyering  <meyering@lucent.com>
23386
23387         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
23388         that generates jm-glibc-io.m4 so that it doesn't trigger any make
23389         distcheck failure.
23390
23391 2001-07-02  Jim Meyering  <meyering@lucent.com>
23392
23393         The following changes were prompted by suggestions from Bruno Haible.
23394
23395         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
23396         is now generated.
23397         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
23398         definition of EXTRA_DIST.
23399         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
23400         ensure that the generated file is created/updated whenever the list
23401         of $(unlocked_functions) is changed.
23402         (jm-glibc-io.m4): New rule.
23403         (unlocked-io.h): New rule -- currently unused.
23404
23405 2001-06-24  Jim Meyering  <meyering@lucent.com>
23406
23407         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
23408         unmatched right bracket, rather than kludging it with an extra,
23409         falsely-matching quote in a comment.  Patch by Akim Demaille.
23410
23411 2001-06-11  Jim Meyering  <meyering@lucent.com>
23412
23413         * lib/regex.c: Update from GNU libc.
23414
23415 2001-05-27  Jim Meyering  <meyering@lucent.com>
23416
23417         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
23418         Check for ut_type in struct utmp.
23419
23420 2001-05-27  Jim Meyering  <meyering@lucent.com>
23421
23422         * lib/readutmp.h (UT_TYPE): Define.
23423
23424 2001-05-24  Jim Meyering  <meyering@lucent.com>
23425
23426         * lib/argmatch.c: Include "quote.h".
23427         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
23428         quote function.  Reported by Göran Uddeborg.
23429
23430 2001-05-22  Jim Meyering  <meyering@lucent.com>
23431
23432         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
23433         now that we use the package-supplied version unconditionally.
23434         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
23435
23436 2001-05-21  Jim Meyering  <meyering@lucent.com>
23437
23438         * m4/regex.m4: Change a couple backticks to single quotes to avoid
23439         shell syntax errors.
23440
23441 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
23442
23443         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
23444
23445 2001-05-20  Paul Eggert  <eggert@twinsun.com>
23446
23447         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
23448         Don't bother to check library strftime, since
23449         we'll be using our own my_strftime function anyway.
23450         Define my_strftime instead of strftime.
23451
23452 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
23453
23454         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
23455         which is not yet declared.
23456
23457 2001-05-15  Jim Meyering  <meyering@lucent.com>
23458
23459         * m4/regex.m4: Use proper quoting so brackets appear in the test
23460         program.
23461         Reported by, and with help from, Bruno Haible.
23462
23463 2001-05-13  Jim Meyering  <meyering@lucent.com>
23464
23465         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
23466         undefined.
23467
23468 2001-05-11  Paul Eggert  <eggert@twinsun.com>
23469
23470         dirname code cleanup.  base_name now behaves more compatibly
23471         with POSIX basename when given file names that have trailing
23472         slashes, and similarly for dir_name.  Add new primitives
23473         base_len and dir_len.  Put the directory-name-related decls
23474         into dirname.h.
23475
23476         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
23477         * lib/backupfile.c (base_name): Likewise.
23478         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
23479         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
23480         * lib/makepath.c (strip_trailing_slashes): Likewise.
23481         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
23482         ISSLASH): Likewise.
23483         * lib/rename.c (strip_trailing_slashes): Likewise.
23484         * lib/same.c (base_name): Likewise.
23485         * lib/stripslash.c (ISSLASH): Likewise.
23486
23487         * lib/addext.c: Include <dirname.h> after size_t is defined.
23488         * lib/backupfile.c: Likewise.
23489
23490         * lib/addext.c (addext): Use base_len to trim redundant
23491         trailing slashes instead of doing it ourselves.
23492         But do not trim the last slash if it is not redundant.
23493
23494         * lib/backupfile.c (find_backup_file_name,
23495         max_backup_version): Use base_len instead of rolling it ourselves.
23496         Handle the case of "" and (on DOS) "C:" correctly.
23497
23498         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
23499         needed. Include <string.h>, <dirname.h>.
23500         (base_name): Allow file names ending in slashes, other than names
23501         that are all slashes.  In this case, return the basename followed
23502         by the slashes.  This is more general, and can be used in places
23503         where the original base_name purposely had an assertion failure.
23504         (base_len): New function.
23505
23506         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
23507         Do not include <assert.h>; no longer needed.
23508         Include xalloc.h.
23509         (memrchr): Remove decl.
23510         (dir_name_r): Remove.
23511         (dir_len): Renamed from dirlen.  All callers changed.
23512         Rewrite in terms of base_name, for simplicity and consistency.
23513         (dir_name): Never return NULL.  All callers changed.
23514         Do not include <stdlib.h> in test program; no longer needed.
23515         return 0; is fine for test program.
23516
23517         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
23518         New macros.
23519         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
23520
23521         * lib/path-concat.c (path_concat): Use base_len to compute
23522         base length, not strlen; this means we cannot rely on memcpy
23523         to null-terminate.
23524
23525         * lib/same.c (STREQ): Remove.
23526         (same_name): Handle the case where the basename ends in trailing '/'.
23527
23528         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
23529         a slash was stripped.  Do not strip the last slash after a
23530         file system prefix.
23531
23532 2001-05-11  Paul Eggert  <eggert@twinsun.com>
23533
23534         * lib/Makefile.am (libfetish_a_SOURCES):
23535         Add strftime.c, since we now compile it on all hosts.
23536
23537         * lib/strftime.c (my_strftime):
23538         Define to nstrftime if emacs, but only if my_strftime is not defined.
23539         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
23540         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
23541         Add one more extra argument: a nanoseconds value.
23542         All uses changed.
23543         (ns): New macro.
23544         (my_strftime function): Add %N format.
23545         (emacs_strftimeu): Renamed from emacs_strftime,
23546         with extra ut argument.
23547
23548 2001-05-09  Paul Eggert  <eggert@twinsun.com>
23549
23550         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
23551
23552 2001-04-21  Jim Meyering  <meyering@lucent.com>
23553
23554         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
23555         doesn't interfere.
23556
23557 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
23558
23559         * m4/ftruncate.m4: Check for chsize.
23560         Link with ftruncate.o unconditionally if ftruncate is missing.
23561         This was required when cross-compiling to i586-mingw32msvc.
23562
23563 2001-04-08  Jim Meyering  <meyering@lucent.com>
23564
23565         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
23566         recomputed; that's necessary when the offset spans a DST transition.
23567         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
23568
23569 2001-04-02  Jim Meyering  <meyering@lucent.com>
23570
23571         * lib/regex.h, regex.c: Update from GNU libc.
23572
23573 2001-03-24  Jim Meyering  <meyering@lucent.com>
23574
23575         * m4/jm-macros.m4: Require autoconf-2.49d.
23576
23577 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
23578
23579         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
23580
23581 2001-03-19  Paul Eggert  <eggert@twinsun.com>
23582
23583         * lib/version-etc.c (version_etc_copyright): Update to 2001.
23584
23585 2001-03-17  Jim Meyering  <meyering@lucent.com>
23586
23587         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
23588         now that the version in autoconf is equivalent.
23589         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
23590
23591         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
23592         Suggestion from Akim Demaille.
23593
23594         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
23595         (jm_PREREQ_TEMPNAME): New function.
23596
23597 2001-03-16  Paul Eggert  <eggert@twinsun.com>
23598
23599         * lib/tempname.c (uint64_t): Define to uintmax_t if
23600         not defined, and if UINT64_MAX is not defined.
23601         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
23602         Reported by John David Anglin.
23603
23604 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
23605
23606         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
23607         resolve alias if codeset is empty.
23608         * lib/config.charset (BeOS): Use wildcard syntax.
23609
23610 2001-03-13  Jim Meyering  <meyering@lucent.com>
23611
23612         * lib/path-concat.c (path_concat)
23613         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
23614         concatenating e.g., `C:' and `foo'.
23615         From Bruno Haible.
23616
23617 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
23618
23619         * lib/localcharset.c (locale_charset): Don't use
23620         setlocale(LC_CTYPE,NULL). Don't return NULL.
23621         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
23622
23623 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
23624
23625         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
23626         support for DOS/DJGPP.
23627
23628 2001-03-01  Paul Eggert  <eggert@twinsun.com>
23629
23630         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
23631         lacks mkstemp.  Compile our own tempname.c if we compile our own
23632         mkstemp.c, as mkstemp relies on tempname.
23633
23634 2001-03-01  Jim Meyering  <meyering@lucent.com>
23635
23636         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
23637         AH_VERBATIM really does output its argument verbatim.
23638
23639 2001-02-28  Paul Eggert  <eggert@twinsun.com>
23640
23641         * lib/Makefile.am (libfetish_a_SOURCES):
23642         Add dup-safer.c, fopen-safer.c.
23643         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
23644
23645         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
23646         * lib/unistd-safer.h: New files.
23647
23648 2001-02-25  Paul Eggert  <eggert@twinsun.com>
23649
23650         The mkstemp replacement is taken from glibc 2.2.2, with some
23651         portability fixes for use outside glibc, as follows:
23652
23653         * lib/tempname.c (struct_stat64): New macro.
23654         (direxists, __gen_tempname): Use it.
23655         This avoids a portability problem with Solaris 8.
23656
23657         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
23658         (<stddef.h>, <stdint.h>, <string.h>):
23659         Include only if STDC_HEADERS || _LIBC.
23660         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
23661         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
23662         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
23663         (__set_errno): Define this macro if <errno.h> doesn't.
23664         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
23665         Define these macros if <stdio.h> doesn't.
23666         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
23667         Define these macros if <sys/stat.h>
23668         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
23669         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
23670         __xstat64): Define if not _LIBC.
23671         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
23672         (__gen_tempname): Invoke gettimeofday only if
23673         HAVE_GETTIMEOFDAY || _LIBC;
23674         otherwise, fall back on plain "time".
23675         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
23676
23677         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
23678
23679         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
23680
23681 2001-02-18  Paul Eggert  <eggert@twinsun.com>
23682
23683         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
23684
23685 2001-02-17  Paul Eggert  <eggert@twinsun.com>
23686
23687         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
23688         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
23689         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
23690         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
23691
23692 2001-02-17  Paul Eggert  <eggert@twinsun.com>
23693
23694         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
23695         Remove workaround macros for hosts that have mbrtowc but not
23696         mbstate_t, as we now insist on proper declarations for both
23697         before using mbrtowc.
23698
23699 2001-02-17  Jim Meyering  <meyering@lucent.com>
23700
23701         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
23702         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
23703         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
23704         UnixWare 7.1.1.
23705
23706         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
23707         rather than AC_CACHE_VAL.
23708
23709 2001-02-17  Jim Meyering  <meyering@lucent.com>
23710
23711         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
23712         around included file name.
23713
23714         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
23715
23716         * lib/strftime.c: Update from GNU libc (the only changes were to
23717         comments).
23718
23719 2001-02-17  Jim Meyering  <meyering@lucent.com>
23720
23721         * lib/regex.c: Update from libc.
23722
23723 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
23724
23725         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
23726         clash.
23727
23728 2001-02-16  Paul Eggert  <eggert@twinsun.com>
23729
23730         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
23731         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
23732         Reported by Mark Hounschell via Paul Eggert.
23733
23734 2001-02-07  Jim Meyering  <meyering@lucent.com>
23735
23736         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
23737
23738 2001-02-05  Jim Meyering  <meyering@lucent.com>
23739
23740         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
23741         it includes the patch required for `large file' support with at least
23742         HP-UX's 10.20 /bin/cc.
23743
23744 2001-02-03  Jim Meyering  <meyering@lucent.com>
23745
23746         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
23747         AS_IF, now that it works once again (mysteriously).
23748         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
23749
23750 2001-01-30  Jim Meyering  <meyering@lucent.com>
23751
23752         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
23753         * m4/chown.m4: Rename conftestchown to conftest.chown.
23754         * m4/rename.m4: s/conftestdir/conftest.d1/ and
23755         s/conftestdir2/conftest.d2/.
23756         * m4/utimes.m4: s/conftestdata/conftest.data/
23757         Inspired by Pavel Roskin's change in autoconf.
23758
23759 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
23760
23761         * lib/config.charset: Update for FreeBSD 4.2.
23762
23763 2001-01-27  Jim Meyering  <meyering@lucent.com>
23764
23765         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
23766         a use of AS_IF.
23767         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
23768
23769 2001-01-26  Jim Meyering  <meyering@lucent.com>
23770
23771         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
23772         quotearg.c includes it.
23773
23774 2001-01-26  Jim Meyering  <meyering@lucent.com>
23775
23776         * lib/quotearg.c: Include stddef.h.
23777         * lib/quote.c: Include stddef.h.
23778         Reported by Axel Kittenberger.
23779
23780         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
23781         line in double quotes so that it evokes a better diagnostic.
23782         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
23783         Reported by Axel Kittenberger.
23784
23785 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
23786
23787         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
23788         as if it was a `charset'.
23789
23790 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
23791
23792         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
23793         has const.
23794
23795 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
23796
23797         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
23798         to avoid a warning.  Add back 'const' to inptr.
23799
23800 2001-01-20  Jim Meyering  <meyering@lucent.com>
23801
23802         Be sure that headers are checked before used in code compiled
23803         for the type checks.
23804         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
23805         In place of that, invoke jm_CHECK_ALL_TYPES.
23806         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
23807         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
23808         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
23809         The check for ssize_t was mistakenly run before the test for unistd.h.
23810
23811         The configure-time check for stdbool.h was missing.
23812         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
23813         (jm_PREREQ_HASH): New function.
23814
23815 2001-01-17  Jim Meyering  <meyering@lucent.com>
23816
23817         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
23818         for autoconf-2.49c.
23819         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
23820
23821 2001-01-16  Jim Meyering  <meyering@lucent.com>
23822
23823         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
23824         From Bruno Haible.
23825
23826 2001-01-14  Jim Meyering  <meyering@lucent.com>
23827
23828         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
23829         foo and bar.  Create conftestdir/ in the script, not in the C code.
23830         Remove directories in the script, not in the C code.
23831         Remove conftestdir{,2} before trying to create the directory.
23832         Make the entire configure script fail if the mkdir fails.
23833
23834 2001-01-14  Jim Meyering  <meyering@lucent.com>
23835
23836         * lib/rename.c: New file.  From Volker Borchert.
23837         Include stdlib.h, string.h or strings.h, and xalloc.h.
23838         Use strip_trailing_slashes rather than open-coding it.
23839
23840 2001-01-03  Paul Eggert  <eggert@twinsun.com>
23841
23842         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
23843
23844 2001-01-03  Jim Meyering  <meyering@lucent.com>
23845
23846         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
23847         of local `inptr' to avoid warning with some system declarations of
23848         iconv.
23849
23850 2001-01-02  Volker Borchert  <bt@teknon.de>
23851
23852         * m4/rename.m4: New file.
23853         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
23854
23855 2001-01-01  Jim Meyering  <meyering@lucent.com>
23856
23857         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
23858         even on systems with utmpx.h.  It's necessary for the declaration of
23859         utmp's ut_user member.  Reported by Andreas Jaeger.
23860
23861         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
23862         available. They are required for the declarations of getgrgid and
23863         getpwuid resp.
23864         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
23865         Reported by Andreas Jaeger.
23866
23867 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
23868
23869         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
23870         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
23871         so `make install' also works in VPATH builds.
23872
23873 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
23874
23875         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
23876         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
23877         can be used in subdirectories.
23878
23879 2000-12-29  Paul Eggert  <eggert@twinsun.com>
23880
23881         * lib/modechange.c: Do not assume that mode_t uses the
23882         traditional octal encoding.  E.g. "chmod 1 FOO" should set
23883         the other-execute bit of FOO even if S_IXOTH != 1.
23884
23885         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
23886         WOTH, XOTH, ALLM): New macros.
23887         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
23888          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
23889         Use them.
23890         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
23891         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
23892         (mode_compile):
23893         No need to use uintmax_t; unsigned long is long enough.
23894         Don't bother to get suffix since we don't use it.
23895
23896 2000-12-26  Jim Meyering  <meyering@lucent.com>
23897
23898         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
23899         better with autoheader.
23900
23901 2000-12-24  Jim Meyering  <meyering@lucent.com>
23902
23903         * lib/hash.c (is_prime): Return explicit boolean values.
23904         (hash_get_first): Return NULL to appease Irix5.6's 89.
23905         Reported by Nelson Beebe.
23906
23907 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
23908
23909         * lib/localcharset.c (locale_charset): Add support for Win32.
23910
23911 2000-12-18  Paul Eggert  <eggert@twinsun.com>
23912
23913         * lib/physmem.h, lib/physmem.c: New files.
23914
23915         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
23916         (noinst_HEADERS): Add physmem.h.
23917
23918         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
23919         't' for compatibility with Solaris 8 sort.
23920
23921 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
23922
23923         * lib/config.charset: Add support for BeOS.
23924
23925 2000-12-17  Jim Meyering  <meyering@lucent.com>
23926
23927         * m4/dos.m4 (jm_AC_DOS): New file and macro.
23928         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
23929
23930 2000-12-16  Jim Meyering  <meyering@lucent.com>
23931
23932         This bug had a serious impact on chown: `chown N:M FILE' (for integer
23933         N and M) would have treated it like `chown N:N FILE'.
23934
23935         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
23936
23937 2000-12-16  Jim Meyering  <meyering@lucent.com>
23938
23939         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
23940         SHELLS_FILE to a file name that's useful on djgpp systems.
23941         Include stdlib.h.
23942         (ADDITIONAL_DEFAULT_SHELLS): Define.
23943         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
23944         Based mostly on a patch from Prashant TR.
23945
23946 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
23947
23948         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
23949         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
23950         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
23951
23952 2000-12-08  Andreas Schwab  <schwab@suse.de>
23953
23954         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
23955         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
23956
23957 2000-12-07  Jim Meyering  <meyering@lucent.com>
23958
23959         * lib/stripslash.c (ISSLASH): Define.
23960         (strip_trailing_slashes): Use ISSLASH rather than comparing against
23961         `/'.
23962         From Prashant TR.
23963
23964         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
23965         (dir_name_r): Declare this function as static.
23966         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
23967         manifest itself on a name containing a mix of slashes and
23968         backslashes.
23969         Make this function work with names starting with a DOS-style
23970         drive letter and colon prefix.
23971         (dir_name): Append `.' if necessary.
23972         Based mostly on patches from Prashant TR and Eli Zaretskii.
23973
23974         * lib/dirname.h (dir_name_r): Remove prototype.
23975
23976 2000-12-06  Paul Eggert  <eggert@twinsun.com>
23977
23978         * m4/off_t-format.m4: Remove this file.
23979         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
23980
23981 2000-12-06  Jim Meyering  <meyering@lucent.com>
23982
23983         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
23984         replacement strtoull, we may well need the replacement strtoul, too.
23985         Check for declarations of strtoul and strtoull.
23986         Check for strtol.  Mainly as a cue to cause automake to include
23987         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
23988         Check for limits.h -- strtol.c needs it.
23989
23990 2000-12-05  Jim Meyering  <meyering@lucent.com>
23991
23992         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
23993
23994 2000-12-04  Jim Meyering  <meyering@lucent.com>
23995
23996         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
23997         Also include memory.h, stdlib.h, unistd.h if appropriate.
23998         Reported by Andreas Jaeger (conflicting declaration of malloc).
23999
24000 2000-12-02  Jim Meyering  <meyering@lucent.com>
24001
24002         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
24003         * m4/jm-macros.m4 (jm_MACROS): require it.
24004
24005 2000-12-02  Jim Meyering  <meyering@lucent.com>
24006
24007         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
24008
24009 2000-12-01  Paul Eggert  <eggert@twinsun.com>
24010
24011         * lib/memrchr.c: Include <config.h> before any system include file.
24012
24013 2000-11-30  Jim Meyering  <meyering@lucent.com>
24014
24015         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
24016
24017 2000-11-30  Jim Meyering  <meyering@lucent.com>
24018
24019         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
24020
24021 2000-11-29  Paul Eggert  <eggert@twinsun.com>
24022
24023         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
24024
24025 2000-11-26  Jim Meyering  <meyering@lucent.com>
24026
24027         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
24028
24029 2000-11-22  Paul Eggert  <eggert@twinsun.com>
24030
24031         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
24032         size of (size_t) -1; it's not portable.
24033
24034 2000-11-17  Jim Meyering  <meyering@lucent.com>
24035
24036         * lib/strstr.c: Update from GNU libc.
24037
24038 2000-11-17  Akim Demaille  <akim@epita.fr>
24039
24040         * lib/obstack.h: Formatting changes.
24041         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
24042         prevent type checking.
24043         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
24044         cast the value to (void *): assigning a `foo *' to a `void *'
24045         variable is valid.
24046         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
24047
24048 2000-11-16  Jim Meyering  <meyering@lucent.com>
24049
24050         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
24051
24052 2000-11-11  Jim Meyering  <meyering@lucent.com>
24053
24054         * lib/error.c: Add a couple #includes, merging from GNU libc version.
24055
24056 2000-11-10  Jim Meyering  <meyering@lucent.com>
24057
24058         * lib/obstack.h: Update from GNU libc.
24059         * lib/obstack.c: Likewise.
24060
24061 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
24062
24063         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
24064
24065 2000-11-06  Paul Eggert  <eggert@twinsun.com>
24066
24067         * lib/getusershell.c (setusershell): Use rewind rather than
24068         fseek/fseeko, to avoid configuration hassles with fseeko.
24069         Don't bother opening SHELLS_FILE if shellstream is NULL;
24070         it's not necessary.
24071
24072 2000-11-05  Jim Meyering  <meyering@lucent.com>
24073
24074         * lib/makepath.h (make_dir): Declare.
24075         * lib/makepath.c (make_dir): Remove `static' attribute.
24076         Tweak a comment.
24077
24078 2000-11-04  Jim Meyering  <meyering@lucent.com>
24079
24080         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
24081
24082 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
24083
24084         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
24085         last one in a bucket, advance to the next bucket.
24086
24087 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
24088
24089         * lib/fnmatch.c: Do not comment out all the code if we are using
24090         the GNU C library, because in some cases we are replacing buggy
24091         code in the GNU C library itself.
24092
24093 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
24094
24095         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
24096         (regex_compile): Catch bogus \(\1\).
24097
24098 2000-10-30  Paul Eggert  <eggert@twinsun.com>
24099
24100         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
24101         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
24102         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
24103
24104 2000-10-30  Paul Eggert  <eggert@twinsun.com>
24105
24106         * lib/error.h, getline.h, modechange.h:
24107         Remove "2000" from Copyright line, as the file hasn't been
24108         changed this year other than in the copyright notice.
24109
24110         * lib/xalloc.h: Add "2000" to Copyright line, as this file
24111         was changed this year.
24112
24113 2000-10-29  Jim Meyering  <meyering@lucent.com>
24114
24115         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
24116         renaming.
24117         * m4/ls-mntd-fs.m4: Likewise
24118
24119 2000-10-29  Jim Meyering  <meyering@lucent.com>
24120
24121         * lib/xstat.in: Fix grammar in comment.
24122
24123 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
24124
24125         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
24126         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
24127         doesn't define __restrict_arr.
24128
24129 2000-10-28  Jim Meyering  <meyering@lucent.com>
24130
24131         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
24132         (jm_PREREQ_MEMCHR): New function.
24133
24134 2000-10-28  Jim Meyering  <meyering@lucent.com>
24135
24136         * lib/memchr.c: Update from libc.
24137         Adjust for portability:
24138         [HAVE_STDLIB_H]: Include stdlib.h.
24139         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
24140         Undef __memchr, too.
24141         [!weak_alias]: Define __memchr to memchr.
24142
24143         * lib/regex.c: Update from libc.
24144         * lib/regex.h: Likewise.
24145         * lib/getopt1.c: Likewise.
24146         * lib/memcmp.c: Likewise.
24147
24148         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
24149         Avoid using fseek, when possible -- it's broken by design.
24150         Patch by Ulrich Drepper.
24151
24152 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
24153
24154         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
24155         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
24156         Giving in to popular pressure to shut up the compiler with casts.
24157
24158 2000-10-26  Jim Meyering  <meyering@lucent.com>
24159
24160         * lib/strftime.c: Update from libc.
24161
24162 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
24163
24164         * regex.c: More `unsigned char' -> `re_char' changes.
24165         Also change several `int' into `re_wchar_t'.
24166         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
24167         (PUSH_FAILURE_POINTER): Don't cast any more.
24168         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
24169         We want GCC to complain, since this piece of code makes
24170         re_match non-reentrant, which *should* be fixed.
24171         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
24172         (EXTEND_BUFFER): Use RETALLOC.
24173         (SET_LIST_BIT): Don't cast.
24174         (re_wchar_t): New type.
24175         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
24176         that those two functions will always properly return.
24177         (IMMEDIATE_QUIT_CHECK): Cast to void.
24178         (analyse_first): Use recursion rather than an explicit stack.
24179         (re_compile_fastmap): Can't fail anymore.
24180         (re_search_2): Don't check re_compile_fastmap for failure.
24181         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
24182         Now also sets the new value (passed in a new argument).
24183         (re_match_2_internal): Use it.
24184         Also, use a new var `reg' of type size_t when looping through regs
24185         rather than reuse the inappropriate `mcnt'.
24186
24187 2000-10-25  Jim Meyering  <meyering@lucent.com>
24188
24189         * lib/obstack.c: Update from libc.
24190
24191 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
24192
24193         * regex.c (regex_compile): Change the way of handling a range from
24194         a char less than 256 to a char not less than 256.
24195
24196 2000-10-24  Andrew Innes  <andrewi@gnu.org>
24197
24198         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
24199         NT-Emacs only.
24200         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
24201         so that re_search functions only quit when callers expect them to.
24202
24203 2000-10-23  Jim Meyering  <meyering@lucent.com>
24204
24205         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
24206         wrong.  That set_locale call must not have any side effects.
24207         From Paul Eggert.
24208
24209 2000-10-22  Jim Meyering  <meyering@lucent.com>
24210
24211         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
24212         [CYCLIC]: Remove now-unused definition.
24213
24214         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
24215         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
24216         Suggestion from Ulrich Drepper.
24217
24218 2000-10-21  Jim Meyering  <meyering@lucent.com>
24219
24220         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
24221         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
24222         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
24223
24224 2000-10-21  Jim Meyering  <meyering@lucent.com>
24225
24226         * lib/dirname.c (memrchr): Declare if necessary.
24227         (dir_name): Remove the restriction that there be no
24228         trailing slashes.  Now, this code skips past them, effectively
24229         ignoring them.
24230         [TEST_DIRNAME] (main): New unit tests.
24231
24232         * lib/memrchr.c: New file from GNU libc.
24233         Undef __memrchr, too.
24234         [!weak_alias]: Define __memrchr to memrchr.
24235         Guard weak_alias use with `#ifdef weak_alias'.
24236
24237 2000-10-21  Jim Meyering  <meyering@lucent.com>
24238
24239         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
24240         (dir_name): Use dir_name_r.
24241         * lib/dirname.h (dir_name_r): Declare it.
24242
24243 2000-10-17  Jim Meyering  <meyering@lucent.com>
24244
24245         * lib/quote.h (PARAMS): Define and use.
24246         Reported by Akim Demaille.
24247
24248         * lib/getopt.c: Update from libc.
24249
24250 2000-10-16  Jim Meyering  <meyering@lucent.com>
24251
24252         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
24253         setlocale.
24254         From Jan Fedak.
24255
24256 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
24257
24258         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
24259
24260 2000-09-25  Jim Meyering  <meyering@lucent.com>
24261
24262         * lib/md5.h (rol): Define (from GnuPG).
24263
24264         * lib/sha.c: Give credit (GnuPG) where due.
24265         (M): Use rol rather than open-coding it.
24266         Add a FIXME comment.
24267
24268 2000-09-21  Jim Meyering  <meyering@lucent.com>
24269
24270         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
24271         Reported by Michael Stone.
24272
24273 2000-09-20  Jim Meyering  <meyering@lucent.com>
24274
24275         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
24276         (noinst_HEADERS): Add sha.h.
24277         Based on code from Scott G. Miller and from GnuPG.
24278
24279 2000-09-18  Jim Meyering  <meyering@lucent.com>
24280
24281         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
24282         LIBS. Otherwise, everyone ends up linking with -lelf for some
24283         configurations.
24284         Reported by Mike Stone.
24285
24286 2000-09-15  Jim Meyering  <meyering@lucent.com>
24287
24288         * lib/regex.c: Update from libc.
24289
24290 2000-09-10  Jim Meyering  <meyering@lucent.com>
24291
24292         * lib/getopt.c (_getopt_internal): Update from glibc.
24293
24294 2000-09-09  Jim Meyering  <meyering@lucent.com>
24295
24296         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
24297         think it should be used as a general replacement for isascii.
24298         * lib/fnmatch.c: Likewise.
24299         * lib/mbswidth.c: Likewise
24300         * lib/regex.c: Likewise.
24301
24302         Don't use atoi.
24303         * lib/userspec.c: Include sys/param.h and limits.h.
24304         Include xstrtol.h.
24305         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
24306         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
24307         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
24308         UID, GID.  Check range.
24309
24310 2000-09-06  Jim Meyering  <meyering@lucent.com>
24311
24312         * lib/getopt.c (_getopt_internal): Update from glibc.
24313
24314 2000-08-30  Jim Meyering  <meyering@lucent.com>
24315
24316         * lib/strftime.c: Merge in changes from GNU libc.
24317
24318 2000-08-26  Jim Meyering  <meyering@lucent.com>
24319
24320         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
24321         * m4/fpending.m4: New file.
24322
24323 2000-08-26  Jim Meyering  <meyering@lucent.com>
24324
24325         * lib/closeout.c: Include "__fpending.h".
24326         (close_stdout_status): Return right away if there's nothing to flush.
24327
24328         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
24329         * lib/__fpending.c: New file.
24330         * lib/__fpending.h: New file.
24331
24332 2000-08-20  Jim Meyering  <meyering@lucent.com>
24333
24334         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
24335         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
24336         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
24337
24338 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
24339
24340         Improve fileutils installation on systems where running
24341         programs (like install) can't be unlinked.
24342         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
24343         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
24344
24345 2000-08-07  Paul Eggert  <eggert@twinsun.com>
24346
24347         Standardize on "memory exhausted" instead of "Memory exhausted"
24348         or "virtual memory exhausted".
24349         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
24350         "virtual memory exhausted".
24351         * lib/same.c (same_name): Invoke xalloc_die instead of printing
24352         our own message.
24353         * lib/userspec.c (parse_user_spec): Likewise.
24354         * lib/bumpalloc.h: comment fix
24355         * lib/same.c, userspec.c: Include xalloc.h.
24356
24357         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
24358         not char *const and pointing to a constant array.
24359         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
24360         (xrealloc): Comment fix.
24361
24362         * lib/userspec.c (parse_user_spec):
24363         Don't translate a message until just before returning,
24364         to avoid unnecessary translation.
24365
24366 2000-08-07  Jim Meyering  <meyering@lucent.com>
24367
24368         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
24369         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
24370         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
24371         getgroups.c, gethostname.c, getopt.h, group-member.c,
24372         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
24373         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
24374         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
24375         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
24376         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
24377         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
24378         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
24379         yesno.c: Back out Copyright date changes for each file with no change
24380         this year.  This eases coordination with other programs using the same
24381         source code modules.  From Paul Eggert.
24382
24383 2000-08-06  Paul Eggert  <eggert@twinsun.com>
24384
24385         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
24386         not char, for compatibility with glibc 2.1.3 strftime.c.
24387
24388 2000-08-03  Greg McGary  <greg@mcgary.org>
24389
24390         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
24391         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
24392         (EXTEND_BUFFER): Use them.
24393
24394 2000-08-01  Jim Meyering  <meyering@lucent.com>
24395
24396         * lib/dirname.c (ISSLASH): Define.
24397         (BACKSLASH_IS_PATH_SEPARATOR): Define.
24398         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
24399         both `\' and `/' may be use as path separators.
24400         Based on a patch from Prashant TR.
24401
24402 2000-07-31  Paul Eggert  <eggert@twinsun.com>
24403
24404         * lib/quotearg.c (quotearg_n_options): Don't make the initial
24405         slot vector a constant, since it might get modified.
24406
24407 2000-07-31  Jim Meyering  <meyering@lucent.com>
24408
24409         * lib/xmalloc.c: Use `virtual memory exhausted', not
24410         `Memory exhausted'.
24411         * lib/obstack.c (print_and_abort): Likewise.
24412
24413 2000-07-30  Paul Eggert  <eggert@twinsun.com>
24414
24415         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
24416         buffer, so that the caller can always quote one small
24417         component of a "memory exhausted" message in slot 0.
24418         From a suggestion by Jim Meyering.
24419
24420 2000-07-30  Jim Meyering  <meyering@lucent.com>
24421
24422         * lib/makepath.c (make_path): Quote the other instance, too.
24423
24424         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
24425         (STATIC_BUF_SIZE): Define.
24426         (quotearg_n_options): Use only statically allocated storage when
24427         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
24428         than STATIC_BUF_SIZE.
24429
24430 2000-07-29  Jim Meyering  <meyering@lucent.com>
24431
24432         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
24433         * lib/dirname.c (dir_name): Likewise.
24434
24435         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
24436         `/'.
24437
24438         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
24439         (dir_name): Assert that there are no trailing slashes.
24440
24441 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
24442
24443         * lib/mbswidth.h (mbswidth): Add a flags argument.
24444         (mbswidth): New declaration.
24445         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
24446         * lib/mbswidth.c (mbswidth): Add a flags argument.
24447         (mbsnwidth): New function.
24448
24449 2000-07-24  Jim Meyering  <meyering@lucent.com>
24450
24451         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
24452
24453 2000-07-23  Paul Eggert  <eggert@twinsun.com>
24454
24455         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
24456
24457 2000-07-23  Paul Eggert  <eggert@twinsun.com>
24458
24459         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
24460         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
24461         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
24462         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
24463         invoke multibyte primitives.
24464
24465 2000-07-23  Paul Eggert  <eggert@twinsun.com>
24466
24467         * lib/quotearg.c:
24468         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
24469         so that mbstate_t is always defined.
24470
24471         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
24472         be 1 in at least one GCC installation, and this configuration
24473         error is likely to be common.  Ignoring MB_LEN_MAX hurts
24474         performance on hosts that have mbrtowc but have only unibyte
24475         locales, but I assume these hosts are rare.
24476
24477 2000-07-23  Paul Eggert  <eggert@twinsun.com>
24478
24479         * lib/mbswidth.c (_XOPEN_SOURCE):
24480         Don't define; this causes problems on Solaris 7.
24481         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
24482
24483 2000-07-23  Jim Meyering  <meyering@lucent.com>
24484
24485         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
24486         too: getgrgid, getpwuid, getuid.
24487
24488 2000-07-23  Jim Meyering  <meyering@lucent.com>
24489
24490         * lib/basename.c (base_name): Add an assertion.
24491
24492 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
24493
24494         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
24495         shadow its mbsinit function.
24496
24497 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
24498
24499         * lib/mbswidth.h: New file.
24500         * lib/mbswidth.c: New file.
24501         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
24502         (noinst_HEADERS): Add mbswidth.h.
24503
24504 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
24505
24506         * lib/config.charset: Add support for FreeBSD. Improve support for
24507         HP-UX and IRIX 6.
24508
24509 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
24510
24511         * m4/mbswidth.m4: New file.
24512         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
24513
24514 2000-07-15  Jim Meyering  <meyering@lucent.com>
24515
24516         * lib/makepath.c: Include quote.h.
24517         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
24518         corresponding argument in a `quote (...)' call.
24519         Give better diagnostics.
24520
24521         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
24522         (noinst_HEADERS): Add quote.h.
24523
24524         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
24525         from tar's src/misc.c.
24526         * lib/quote.h: New file.  Prototypes for same.
24527
24528 2000-07-14  Paul Eggert  <eggert@twinsun.com>
24529
24530         From a suggestion by Bruno Haible.
24531         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
24532         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
24533         to decide whether to define the BeOS workaround macro;
24534         this adjusts to the change to AC_MBSTATE_T.
24535
24536 2000-07-14  Jim Meyering  <meyering@lucent.com>
24537
24538         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
24539         jm_AC_TYPE_UINTMAX_T.
24540
24541 2000-07-13  Paul Eggert  <eggert@twinsun.com>
24542
24543         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
24544
24545         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
24546         quotearg_buffer_restyled): Add support for
24547         clocale_quoting_style.  Undo previous change to
24548         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
24549         and "{RIGHT QUOTATION MARK}" msgids.
24550
24551 2000-07-10  Paul Eggert  <eggert@twinsun.com>
24552
24553         From a suggestion by Bruno Haible.
24554         * m4/mbstate_t.m4 (AC_MBSTATE_T):
24555         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
24556         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
24557         and mbstate_t, to a single-part test that simply defines mbstate_t.
24558         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
24559         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
24560
24561 2000-07-10  Jim Meyering  <meyering@lucent.com>
24562
24563         * m4/strerror_r.m4: Mirror the correction made in autoconf.
24564
24565         * m4/gnu-source.m4: Output to confdefs.h directly.
24566         Suggestion from Akim Demaille.
24567
24568 2000-07-09  Paul Eggert  <eggert@twinsun.com>
24569
24570         The old behavior of quoting `like this' doesn't look good with
24571         newer, ISO-style fonts.  See:
24572         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
24573
24574         Instead, quote "like this" by default.  Let the translator
24575         tailor the locale-specific quoting behavior by providing
24576         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
24577
24578         * lib/quotearg.c (N_): New macro.
24579         (gettext_default): New function.
24580         (quotearg_buffer_restyled): Use
24581         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
24582         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
24583
24584 2000-07-09  Jim Meyering  <meyering@lucent.com>
24585
24586         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
24587         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
24588
24589         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
24590         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
24591
24592 2000-07-09  Jim Meyering  <meyering@lucent.com>
24593
24594         * lib/Most files: Update copyright dates to include 2000.
24595
24596 2000-07-08  Jim Meyering  <meyering@lucent.com>
24597
24598         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
24599         if not defined.
24600         (xgethostname): Remove now-unnecessary #ifdef.
24601         Move declaration of `err' into loop where it's used.
24602
24603 2000-07-05  Paul Eggert  <eggert@twinsun.com>
24604         and Bruno Haible  <haible@clisp.cons.org>
24605
24606         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
24607         only if the test for an object-type mbstate_t fails.  This
24608         prevents us from mistakenly reporting that mbstate_t is a
24609         system object type after we "#define mbstate_t int" to work
24610         around its lack.
24611
24612 2000-07-05  Paul Eggert  <eggert@twinsun.com>
24613         and Bruno Haible  <haible@clisp.cons.org>
24614
24615         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
24616
24617 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
24618
24619         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
24620         to strerror_r.
24621         Include <ctype.h> for use of isalpha.
24622
24623 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
24624
24625         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
24626         by allocating a larger buffer. Test the gethostname return value for
24627         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
24628         returns an error and ENAMETOOLONG isn't defined.
24629
24630 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
24631
24632         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
24633         dimension.
24634
24635 2000-07-04  Jim Meyering  <meyering@lucent.com>
24636
24637         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
24638         of the deprecated AC_CHECKING.
24639
24640 2000-07-04  Jim Meyering  <meyering@lucent.com>
24641
24642         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
24643         Reported by Bruno Haible.
24644
24645 2000-07-04  Jim Meyering  <meyering@lucent.com>
24646
24647         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
24648         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
24649         lacks mbrtowc.
24650
24651 2000-07-03  Paul Eggert  <eggert@twinsun.com>
24652
24653         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
24654         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
24655
24656 2000-07-03  Paul Eggert  <eggert@twinsun.com>
24657         and Bruno Haible  <haible@clisp.cons.org>
24658
24659         * lib/quotearg.c (mbrtowc):
24660         Assign to *pwc, and return 1 only if result is nonzero.
24661         (iswprint): Use ISPRINT when substituting our own mbrtowc.
24662
24663 2000-07-03  Jim Meyering  <meyering@lucent.com>
24664
24665         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
24666
24667 2000-07-03  Jim Meyering  <meyering@lucent.com>
24668
24669         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
24670         This is necessary to get a definition of e.g., UTMP_FILE on
24671         HP-UX 10.20.
24672         From Bob Proulx.
24673
24674 2000-07-02  Jim Meyering  <meyering@lucent.com>
24675
24676         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
24677
24678         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
24679         AC_LIBOBJ(function_name).
24680         * m4/chown.m4: Likewise.
24681         * m4/fnmatch.m4: Likewise.
24682         * m4/ftruncate.m4: Likewise.
24683         * m4/getgroups.m4: Likewise.
24684         * m4/getline.m4: Likewise.
24685         * m4/group-member.m4: Likewise.
24686         * m4/jm-macros.m4: Likewise.
24687         * m4/lstat.m4: Likewise.
24688         * m4/malloc.m4: Likewise.
24689         * m4/memcmp.m4: Likewise.
24690         * m4/nanosleep.m4: Likewise.
24691         * m4/putenv.m4: Likewise.
24692         * m4/realloc.m4: Likewise.
24693         * m4/regex.m4: Likewise.
24694         * m4/stat.m4: Likewise.
24695         * m4/strftime.m4: Likewise.
24696
24697 2000-07-02  Jim Meyering  <meyering@lucent.com>
24698
24699         * lib/quotearg.c (mbstate_t): Don't define here.
24700
24701 2000-07-02  Jim Meyering  <meyering@lucent.com>
24702
24703         * lib/nanosleep.c (SIGCONT): Define if not already defined.
24704
24705 2000-07-01  Jim Meyering  <meyering@lucent.com>
24706
24707         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
24708
24709 2000-07-01  Jim Meyering  <meyering@lucent.com>
24710
24711         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
24712         problem.
24713
24714 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
24715
24716         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
24717         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
24718
24719 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
24720
24721         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
24722         per change in ../m4/ls-mntd-fs.m4.
24723         (read_filesystem_list): Ignore symbolic links.
24724
24725 2000-06-29  Jim Meyering  <meyering@lucent.com>
24726
24727         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
24728         for declaration of strcmp.
24729
24730         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
24731
24732         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
24733         Avoid warning by casting result to `char *' to remove `const'.
24734
24735 2000-06-28  Jim Meyering  <meyering@lucent.com>
24736
24737         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
24738         included by quotearg.c, for which we perform this test.  From
24739         Bruno Haible.
24740
24741 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
24742
24743         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
24744         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
24745         <utmpx.h> exists, put readutmp.o into LIBOBJS.
24746
24747 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
24748
24749         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
24750
24751 2000-06-26  Paul Eggert  <eggert@twinsun.com>
24752
24753         savedir now sets errno on failure and invokes xmalloc to get memory.
24754         Fix a couple of other minor bugs while we're at it.
24755
24756         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
24757         (NAMLEN): Remove macro.
24758         (malloc, realloc): Remove decls.
24759         (stpcpy): Likewise.
24760         ("xalloc.h"): Include.
24761         (NAME_SIZE_DEFAULT): New macro.
24762         (savedir): Use xmalloc / xrealloc to allocate memory.
24763         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
24764         Skip "" directory entries.
24765         Use strlen to calculate directory entry length, since the old method
24766         is rarely used these days and isn't worth supporting.
24767         Don't use a pointer after freeing it.
24768         Check for integer overflow when calculating allocation size.
24769         Use memcpy to copy entries, instead of stpcpy.
24770         Set errno properly when returning NULL.
24771         Check for readdir error.
24772
24773 2000-06-26  Jim Meyering  <meyering@lucent.com>
24774
24775         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
24776
24777 2000-06-25  Jim Meyering  <meyering@lucent.com>
24778
24779         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
24780         Linux header bug when _XOPEN_SOURCE is defined to 500.
24781
24782 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
24783
24784         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
24785         deficiency.
24786
24787 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
24788
24789         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
24790         Include xalloc.h.
24791         Don't include <stdlib.h>.  Don't declare malloc, realloc.
24792
24793 2000-06-24  Jim Meyering  <meyering@lucent.com>
24794
24795         * m4/strerror_r.m4: Revive this file -- to try out an experimental
24796         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
24797         for which strerror does return char*, but which lacks a conveniently
24798         accessible declaration of the function.  If the compile-test says
24799         strerror_r doesn't work, then resort to a `run'-test that works on
24800         BeOS and segfaults on DEC Unix.
24801
24802 2000-06-24  Jim Meyering  <meyering@lucent.com>
24803
24804         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
24805
24806 2000-06-23  Paul Eggert  <eggert@twinsun.com>
24807
24808         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
24809         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
24810
24811 2000-06-23  Paul Eggert  <eggert@twinsun.com>
24812
24813         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
24814         (mbrtowc, mbstate_t): Define substitutes if
24815         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
24816         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
24817         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
24818
24819 2000-06-23  Jim Meyering  <meyering@lucent.com>
24820
24821         * m4/afs.m4: Add missing AC_MSG_RESULT.
24822         Reported by Bruno Haible.
24823
24824         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
24825         Suggestion from Bruno Haible.
24826
24827 2000-06-23  Jim Meyering  <meyering@lucent.com>
24828
24829         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
24830
24831 2000-06-21  Jim Meyering  <meyering@lucent.com>
24832
24833         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
24834
24835 2000-06-21  Jim Meyering  <meyering@lucent.com>
24836
24837         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
24838         (noinst_HEADERS): Add getstr.h.
24839
24840         * lib/getline.c (getstr): Move into a separate file.
24841         * lib/getstr.c (getstr): New file, extracted from getline.c, with
24842         the following changes: new parameter, delim2; both delim[12]
24843         parameters have type `int', not `char'.  The latter would lose
24844         with 8-bit delimiters.
24845         * lib/getstr.h: New file.
24846
24847 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
24848
24849         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
24850         than 1024, return a memory chunk of least possible size, instead
24851         of size PATH_MAX + 2. In the loop, increment the size proportionally.
24852         Use free/xmalloc instead of xrealloc to avoid copying for very long
24853         paths.
24854
24855 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
24856
24857         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
24858         the empty string.
24859
24860 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
24861
24862         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
24863         address, not strdup.  Include <stdlib.h> and don't declare free().
24864
24865 2000-06-19  Jim Meyering  <meyering@lucent.com>
24866
24867         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
24868
24869 2000-06-18  Jim Meyering  <meyering@lucent.com>
24870
24871         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
24872
24873         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
24874         `checking whether...' message to be consistent with that of the
24875         lstat test.
24876
24877 2000-06-18  Jim Meyering  <meyering@lucent.com>
24878
24879         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
24880         Besides, these days every porting target provides a mkdir function.
24881
24882         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
24883         needed. (this snippet comes from src/system.h).
24884
24885 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
24886
24887         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
24888
24889 2000-06-15  Paul Eggert  <eggert@twinsun.com>
24890
24891         * lib/human.c (adjust_value): New function.
24892         (human_readable_inexact): Apply rounding style even when
24893         printing approximate values.
24894
24895 2000-06-14  Paul Eggert  <eggert@twinsun.com>
24896
24897         * lib/human.c (human_readable_inexact): Allow an input block
24898         size that is not a multiple of the output block size, and vice versa.
24899         Reported by Piergiorgio Sartor.
24900
24901 2000-06-14  Paul Eggert  <eggert@twinsun.com>
24902
24903         * lib/getdate.y (get_date): Apply relative times after time
24904         zone indicator, not before.  Reported by Todd A. Jacobs.
24905
24906 2000-06-13  Jim Meyering  <meyering@lucent.com>
24907
24908         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
24909
24910         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
24911
24912 2000-06-12  Paul Eggert  <eggert@twinsun.com>
24913
24914         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
24915
24916 2000-06-12  Jim Meyering  <meyering@lucent.com>
24917
24918         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
24919         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
24920         optional argument.
24921         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
24922         the optional argument, `lib'.
24923
24924 2000-06-08  Jim Meyering  <meyering@lucent.com>
24925
24926         * m4/largefile.m4: Remove file (now that it's part of autoconf).
24927
24928 2000-06-04  Paul Eggert  <eggert@twinsun.com>
24929
24930         Rewrite largefile configuration so that we don't need to run
24931         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
24932         AC_CANONICAL_HOST in configure.in -- jmm]
24933
24934         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
24935         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
24936         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
24937         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
24938         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
24939         All uses changed.
24940         Instead of inspecting the output of getconf, try to compile the
24941         test program without and with the macro definition.
24942         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
24943         for getconf.  Instead, check for the needed flags by compiling
24944         test programs.
24945
24946 2000-06-04  Paul Eggert  <eggert@twinsun.com>
24947
24948         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
24949
24950 2000-06-04  Jim Meyering  <meyering@lucent.com>
24951
24952         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
24953         SunOS 4.1.4 for which gid_t is an unsigned type.
24954
24955 2000-06-03  Jim Meyering  <meyering@lucent.com>
24956
24957         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
24958         now that autoconf requires that.
24959
24960         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
24961         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
24962         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
24963
24964 2000-06-03  Jim Meyering  <meyering@lucent.com>
24965
24966         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
24967
24968 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
24969
24970         * m4/glibc21.m4: New file.
24971         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
24972
24973 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
24974
24975         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
24976         newer, don't install charset.alias.
24977         * lib/config.charset: Change the Linux/glibc rules so they become empty
24978         on glibc-2.1 or newer.
24979
24980 2000-06-02  Jim Meyering  <meyering@lucent.com>
24981
24982         * lib/mountlist.c: Back out last change.  Instead, do this...
24983         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
24984         me_dummy member using the same `ignore'-testing code.
24985         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
24986         fs_type strings.
24987         From Mark D. Roth.
24988
24989 2000-05-29  Jim Meyering  <meyering@lucent.com>
24990
24991         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
24992         mounts with the `ignore' attribute.  Based on a patch from
24993         Mark D. Roth.
24994
24995 2000-05-28  Jim Meyering  <meyering@lucent.com>
24996
24997         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
24998         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
24999         * m4/stat.m4: Likewise.
25000         * m4/lstat.m4: Likewise.
25001         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
25002
25003         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
25004         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
25005
25006 2000-05-26  Jim Meyering  <meyering@lucent.com>
25007
25008         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
25009
25010 2000-05-24  Jim Meyering  <meyering@lucent.com>
25011
25012         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
25013         autoconf requires that.
25014         * m4/lib-check.m4: Likewise.
25015         * m4/jm-macros.m4: Likewise.
25016         * m4/strftime.m4: Likewise.
25017
25018         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
25019         AC_CHECK_DECLS, now that autoconf requires that.
25020
25021 2000-05-22  Jim Meyering  <meyering@lucent.com>
25022
25023         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
25024         * m4/lstat.m4: Likewise.
25025
25026 2000-05-22  Jim Meyering  <meyering@lucent.com>
25027
25028         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
25029
25030 2000-05-20  Jim Meyering  <meyering@lucent.com>
25031
25032         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
25033         (jm_PREREQ): Use it.
25034
25035 2000-05-18  Jim Meyering  <meyering@lucent.com>
25036
25037         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
25038         back, too, since it may have been modified by allocate_entry.
25039         (hash_delete): Rewrite to use neither the assignment operator
25040         nor the comma operator in an if-expression.
25041
25042 2000-05-15  Paul Eggert  <eggert@twinsun.com>
25043
25044         * lib/closeout.c:
25045         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
25046         Remove; no longer needed.
25047         "quotearg.h": Add include.
25048         (file_name): Do not bother to explicitly initialize to NULL; it's less
25049         efficient on some hosts.
25050         (close_stdout_status): Remove test as to whether stdout was already
25051         closed; it breaks for the case "echo x | sort >&-".
25052         Quote file name colons.
25053         Do not assume that _("write error") lacks format strings.
25054
25055 2000-05-15  Jim Meyering  <meyering@lucent.com>
25056
25057         * lib/version-etc.c (version_etc_copyright): Update the copyright
25058         string used in all --version output.
25059
25060 2000-05-14  Jim Meyering  <meyering@lucent.com>
25061
25062         * lib/closeout.c (close_stdout_set_file_name): New function.
25063         (close_stdout_status): Use new file-scoped global.
25064         Return right away if fstat says the stdout file descriptor is invalid.
25065         * lib/closeout.h (close_stdout_set_file_name): Declare.
25066
25067 2000-05-10  Jim Meyering  <meyering@lucent.com>
25068
25069         * lib/closeout.c [default_exit_status]: New file-scoped variable.
25070         (close_stdout_set_status): New function.
25071         * lib/closeout.h (close_stdout_set_status): Declare.
25072
25073 2000-05-09  Jim Meyering  <meyering@lucent.com>
25074
25075         * m4/gettext.m4: Rename this...
25076         * m4/libintl.m4: ...to this.
25077
25078 2000-05-08  Jim Meyering  <meyering@lucent.com>
25079
25080         * lib/long-options.c: Don't include closeout.h.
25081         (parse_long_options): Don't call close_stdout for --version.
25082
25083 2000-05-06  Paul Eggert  <eggert@twinsun.com>
25084
25085         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
25086         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
25087         2.1.3 bug.  This avoids a clash when files like regex.c define
25088         _GNU_SOURCE.
25089
25090 2000-05-06  Jim Meyering  <meyering@lucent.com>
25091
25092         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
25093         (AC_REPLACE_FUNCS): Add strnlen.
25094
25095         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
25096         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
25097
25098         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
25099         AC_SEARCH_LIBS call for nanosleep.
25100         (LIB_NANOSLEEP): Set and AC_SUBST.
25101
25102 2000-05-06  Jim Meyering  <meyering@lucent.com>
25103
25104         * lib/strnlen.c: Undefine __strnlen and strnlen.
25105         [!weak_alias]: Define __strnlen to strnlen.
25106
25107         * lib/atexit.c: New file, from libiberty.
25108
25109 2000-05-06  Jim Meyering  <meyering@lucent.com>
25110
25111         * lib/closeout.c (close_stdout_status): Also check for errors on the
25112         stderr stream.
25113
25114 2000-05-05  Jim Meyering  <meyering@lucent.com>
25115
25116         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
25117         AC_SEARCH_LIBS call for clock_gettime.
25118         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
25119
25120         * m4/search-libs.m4: Update from autoconf.
25121
25122         su doesn't work on Solaris 2.6.
25123         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
25124         <shadow.h>.  Reported by Dragos Harabor.
25125
25126 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
25127
25128         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
25129         memcpy instead of xmalloc, xrealloc, path_concat.
25130         (locale_charset): Treat empty environment variables as absent.
25131         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
25132
25133 2000-05-04  Jim Meyering  <meyering@lucent.com>
25134
25135         * lib/getopt.c: Update from glibc.
25136         * lib/obstack.c: Likewise.
25137         * lib/obstack.h: Likewise.
25138         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
25139         file
25140
25141         * lib/regex.h: Likewise.
25142         * lib/strndup.c: Likewise.
25143         * lib/strnlen.c: New file, from glibc.
25144
25145 2000-05-03  Jim Meyering  <meyering@lucent.com>
25146
25147         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
25148
25149 2000-05-02  Paul Eggert  <eggert@twinsun.com>
25150
25151         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
25152         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
25153         compile-time test, rather than inspecting host and OS, to
25154         decide whether to define _LARGEFILE_SOURCE.
25155
25156 2000-05-01  Jim Meyering  <meyering@lucent.com>
25157
25158         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
25159
25160         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
25161         Based on a patch from Bruno Haible.
25162
25163 2000-05-01  Jim Meyering  <meyering@lucent.com>
25164
25165         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
25166
25167 2000-04-29  Jim Meyering  <meyering@lucent.com>
25168
25169         * lib/path-concat.c: Declare strdup only if it's not defined.
25170         * lib/canon-host.c: Likewise.
25171
25172 2000-04-28  Jim Meyering  <meyering@lucent.com>
25173
25174         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
25175         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
25176         is included first, then limits.h is included by locale.h by libintl.h.
25177         From John David Anglin.
25178
25179 2000-04-25  Jim Meyering  <meyering@lucent.com>
25180
25181         * lib/makepath.c (S_IRWXUGO): Define.
25182         (make_path): Always perform explicit chmod if MODE specifies any
25183         of the `special' permission bits.  Prompted by a bug report against
25184         install from Mate Wierdl and Joost van Baal.
25185
25186 2000-04-18  Jim Meyering  <meyering@lucent.com>
25187
25188         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
25189         (jm_PREREQ): Use it.
25190
25191 2000-04-18  Jim Meyering  <meyering@lucent.com>
25192
25193         * lib/README: New file.
25194
25195         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
25196         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
25197
25198 2000-04-17  Jim Meyering  <meyering@lucent.com>
25199
25200         Get it right :-)
25201         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
25202         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
25203         Suggestion from Akim Demaille.
25204
25205 2000-04-17  Jim Meyering  <meyering@lucent.com>
25206
25207         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
25208         the definition of it to rpl_strftime also defined-away the system's
25209         declaration.
25210
25211 2000-04-15  Jim Meyering  <meyering@lucent.com>
25212
25213         Use `C' to denote so-called `contiguous' files, the same way
25214         that tar does.
25215         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
25216         (ftypelet): Use S_ISCTG.
25217         From Michael Deutschmann.
25218
25219 2000-04-14  Jim Meyering  <meyering@lucent.com>
25220
25221         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
25222         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
25223         clobbered.
25224
25225 2000-04-14  Jim Meyering  <meyering@lucent.com>
25226
25227         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
25228
25229 2000-04-13  Jim Meyering  <meyering@lucent.com>
25230
25231         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
25232         AH_VERBATIM to insert required #ifndef into config.h.in.
25233         Suggestion from Akim Demaille.
25234
25235 2000-04-12  Jim Meyering  <meyering@lucent.com>
25236
25237         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
25238         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
25239         Christian Krackowizer.
25240
25241         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
25242         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
25243         (AC_SYS_LARGEFILE): Require.
25244         (AM_C_PROTOTYPES): Require.
25245
25246 2000-04-08  Jim Meyering  <meyering@lucent.com>
25247
25248         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
25249         names don't conflict.  Reported by Eli Zaretskii.
25250
25251 2000-04-07  Jim Meyering  <meyering@lucent.com>
25252
25253         * lib/putenv.c: Move inclusion of errno.h so it follows that of
25254         sys/types.h, to work around system header problems on AIX 3.2.5.
25255         From Bruno Haible.
25256
25257 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
25258
25259         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
25260         bug.  Deal with the different error behavior of Irix iconv.
25261
25262 2000-04-05  Paul Eggert  <eggert@twinsun.com>
25263
25264         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
25265         IRIX if the installer said otherwise.
25266
25267 2000-04-05  Jim Meyering  <meyering@lucent.com>
25268
25269         Portability tweaks required for ultrix4.3.
25270         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
25271         (jm_CHECK_DECLS): Add getutent to the list of functions.
25272         (_jm_DECL_HEADERS): Add utmpx.h.
25273         From John David Anglin.
25274
25275         * m4/strftime.m4: Back out the 2000-04-02 change.
25276         Instead of that change, simply undefine putenv in the test program.
25277
25278 2000-04-05  Jim Meyering  <meyering@lucent.com>
25279
25280         Portability tweaks required for ultrix4.3.
25281         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
25282         getutent.
25283         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
25284         * lib/canon-host.c: Declare strdup.
25285         * lib/path-concat.c: Likewise.
25286         From John David Anglin.
25287
25288 2000-04-04  Jim Meyering  <meyering@lucent.com>
25289
25290         Be more DOS 8.3-friendly.
25291         * lib/ref-add.sin: Renamed from ref-add.sed.in.
25292         * lib/ref-del.sin: Renamed from ref-del.sed.in.
25293         * lib/Makefile.am: Reflect renaming.
25294         Reported by Eli Zaretskii.
25295
25296         Use a temporary file name that won't clash with `charset.alias'
25297         in the DOS 8.3 name space.
25298         * lib/Makefile.am (charset_tmp): Define.
25299         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
25300         (uninstall-local): Likewise.
25301         Reported by Eli Zaretskii.
25302
25303 2000-04-03  Jim Meyering  <meyering@lucent.com>
25304
25305         * m4/gettext.m4: Fix typo in comment.
25306
25307         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
25308         textutils/configure.in).  Suggestion from Paul Eggert.
25309         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
25310
25311 2000-04-02  Paul Eggert  <eggert@twinsun.com>
25312
25313         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
25314         variable in the shell rather than using putenv, which isn't
25315         portable.  This avoids the configure-time inter-test dependency
25316         on the potentially-renamed putenv function.
25317
25318 2000-03-30  Paul Eggert  <eggert@twinsun.com>
25319
25320         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
25321         before checking struct stat.st_blksize, so that
25322         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
25323
25324 2000-03-29  Paul Eggert  <eggert@twinsun.com>
25325
25326         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
25327         since strftime.c uses HAVE_STRFTIME to decide whether to use
25328         the underlying strftime.
25329
25330 2000-03-29  Paul Eggert  <eggert@twinsun.com>
25331
25332         * lib/time/strftime.c (my_strftime): Make sure we call the system
25333         strftime, not ourselves, when invoking the underlying strftime.
25334
25335 2000-03-24  Jim Meyering  <meyering@lucent.com>
25336
25337         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
25338         (charset_alias): Define.
25339         (install-exec-local): Factor out common code.
25340         (uninstall-local): Split lines longer than 80.
25341         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
25342         (SUFFIXES): Define.
25343         (.sed.in.sed): New rule.  Don't redirect directly to $@.
25344         (CLEANFILES): Add ref-add.sed and ref-del.sed.
25345
25346 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
25347
25348         * lib/config.charset: Output a line containing "Packages using this
25349         file".
25350         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
25351         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
25352         ref-del.sed): New rules.
25353
25354 2000-03-17  Jim Meyering  <meyering@lucent.com>
25355
25356         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
25357         Otherwise, include <strings.h>
25358
25359 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
25360
25361         * lib/unicodeio.c (utf8_wctomb): New function.
25362         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
25363         format instead of in UCS-4 with platform dependent endianness.
25364
25365 2000-03-10  Jim Meyering  <meyering@lucent.com>
25366
25367         * m4/lib-check.m4: Look for getspnam in -lgen, too.
25368         From Marco Franzen.
25369
25370 2000-03-07  Paul Eggert  <eggert@twinsun.com>
25371
25372         * lib/savedir.c (savedir): Work even if directory size is
25373         negative; this can happen with some screwy NFS configurations.
25374
25375 2000-03-06  Jim Meyering  <meyering@lucent.com>
25376
25377         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
25378         if it's NULL (because we ran out of memory).  From Bruno Haible.
25379
25380 2000-03-05  Jim Meyering  <meyering@lucent.com>
25381
25382         * lib/localcharset.c ("path-concat.h"): Include.
25383         (get_charset_aliases): Use path_concat instead of ANSI string
25384         concatenation.
25385
25386         * lib/unicodeio.h (PARAMS): Define.
25387         Use it to guard prototype.
25388
25389 2000-03-04  Jim Meyering  <meyering@lucent.com>
25390
25391         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
25392         for lib/localcharset.c.
25393
25394 2000-03-04  Jim Meyering  <meyering@lucent.com>
25395
25396         * lib/Makefile.am (install-exec-local): Create $(libdir) before
25397         installing into it.
25398         (uninstall-local): Uncomment this rule so `make distcheck' works
25399         once again.
25400
25401         * lib/unicodeio.c (<errno.h>): Include it.
25402         (errno): Declare if not defined.
25403
25404         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
25405
25406         * lib/config.charset: New version, incorporating remarks from a linux
25407         i18n mailing list.  From Bruno Haible.
25408
25409 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
25410
25411         * m4/codeset.m4: New file.
25412         * m4/iconv.m4: New file.
25413         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
25414
25415 2000-03-03  Jim Meyering  <meyering@lucent.com>
25416
25417         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
25418
25419 2000-03-02  Jim Meyering  <meyering@lucent.com>
25420
25421         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
25422         the messages come out on separate lines.
25423
25424         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
25425         rather than jm_CHECK_DECLARATIONS.
25426         * m4/decl.m4: Remove now-unused file.
25427
25428         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
25429         geteuid.
25430
25431 2000-03-02  Jim Meyering  <meyering@lucent.com>
25432
25433         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
25434
25435 2000-03-01  Jim Meyering  <meyering@lucent.com>
25436
25437         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
25438         * lib/unicodeio.c: Likewise.
25439
25440 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
25441
25442         * lib/config.charset: New file.
25443         * lib/localcharset.c: New file.
25444         * lib/unicodeio.h, lib/unicodeio.c: New files.
25445         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
25446         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
25447         (noinst_HEADERS): Add unicodeio.h.
25448         (all-local, install-exec-local, charset.alias): New targets.
25449
25450 2000-02-28  Paul Eggert  <eggert@twinsun.com>
25451
25452         * lib/quotearg.c (ALERT_CHAR): New macro.
25453         (quotearg_buffer_restyled): Use it.
25454
25455 2000-02-27  Jim Meyering  <meyering@lucent.com>
25456
25457         * m4/check-decl.m4: Add getenv to the list.
25458
25459 2000-02-27  Jim Meyering  <meyering@lucent.com>
25460
25461         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
25462         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
25463
25464         * lib/backupfile.c: Guard inclusion of stdlib.h with
25465         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
25466         Declare malloc if needed.
25467
25468         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
25469         `#ifndef HAVE_DECL..'
25470         now that autoconf always defines the HAVE_DECL_ symbols.
25471         * lib/human.c: Likewise.
25472         * lib/same.c: Likewise.
25473         * lib/strtoumax.c: Likewise.
25474
25475         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
25476         declaration check was not run.
25477         * lib/hash.c: Likewise.
25478         * lib/human.c: Likewise.
25479         * lib/same.c: Likewise.
25480         * lib/strtoumax.c: Likewise.
25481
25482         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
25483         `.', then first look up the entire `.'-containing string as a login
25484         name.
25485
25486 2000-02-23  Jim Meyering  <meyering@lucent.com>
25487
25488         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
25489         in place of my hack.
25490
25491 2000-02-18  Paul Eggert  <eggert@twinsun.com>
25492
25493         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
25494         (textint): New typedef.
25495         (parser_control): Member year changed from int to textint.
25496         All uses changed.
25497         (YYSTYPE): Removed; replaced by %union with int and textint members.
25498         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
25499         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
25500         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
25501         (tSNUMBER, tUNUMBER): Now of type <textintval>.
25502         (date, number, to_year): Use width of number in digits, not its value,
25503         to determine whether it's a 2-digit year, or a 2-digit time.
25504         (yylex): Store number of digits of numeric tokens.
25505         Reported by John Kendall.
25506
25507         (parser_control): Changed from struct parser_control to typedef (for
25508         consistency).  All uses changed.
25509
25510         (tID): Removed; not used.
25511         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
25512
25513 2000-02-14  Paul Eggert  <eggert@twinsun.com>
25514
25515         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
25516         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
25517
25518 2000-02-12  Jim Meyering  <meyering@lucent.com>
25519
25520         * lib/userspec.c (ISDIGIT): Define it.
25521         (isdigit): Remove definition.
25522         (is_number): Use ISDIGIT, not isdigit.
25523         <libintl.h>: Include.
25524         (_ and N_): Define.
25525         (parse_user_spec): Mark translatable strings.
25526
25527 2000-02-10  Jim Meyering  <meyering@lucent.com>
25528
25529         With these changes, nanosleep.[ch] are finally enough like the other
25530         lib/* replacement files to compile on a few more losing systems.
25531
25532         * lib/nanosleep.h: Don't include config.h.
25533         Remove prototype from declaration of nanosleep.
25534         (PARAMS): Remove now-unneeded definition.
25535         * lib/nanosleep.c: #undef nanosleep.
25536         (rpl_nanosleep): Rename from nanosleep.
25537
25538 2000-02-10  Jim Meyering  <meyering@lucent.com>
25539
25540         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
25541         gnu_nanosleep to rpl_nanosleep.
25542
25543 2000-02-09  Jim Meyering  <meyering@lucent.com>
25544
25545         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
25546         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
25547
25548 2000-02-08  Akim Demaille  <akim@epita.fr>
25549
25550         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
25551         `[' and `]' and remove uses of `changequote'.
25552         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
25553         (AC_SYS_LARGEFILE): Likewise.
25554         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
25555         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
25556         of changequote.
25557         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
25558         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
25559         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
25560         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
25561
25562 2000-02-05  Jim Meyering  <meyering@lucent.com>
25563
25564         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
25565         Remove explicit use of AC_HEADER_TIME.  It is required by
25566         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
25567         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
25568         in autoconf whereby the expansion of the latter ended up preceding
25569         the expansion of its prerequisite, AC_HEADER_TIME.
25570         Reported by Volker Borchert.
25571
25572 2000-02-03  Jim Meyering  <meyering@lucent.com>
25573
25574         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
25575
25576 2000-02-03  Jim Meyering  <meyering@lucent.com>
25577
25578         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
25579         rather than with `#if HAVE_UTMPNAME'.
25580
25581 2000-02-02  Jim Meyering  <meyering@lucent.com>
25582
25583         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
25584         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
25585         Reported by Eli Zaretskii.
25586
25587 2000-02-01  Jim Meyering  <meyering@lucent.com>
25588
25589         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
25590
25591 2000-01-31  Jim Meyering  <meyering@lucent.com>
25592
25593         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
25594         functions.  Add the time.h and sys/time.h headers along with the
25595         AC_REQUIRE'ment of AC_HEADER_TIME.
25596
25597 2000-01-31  Jim Meyering  <meyering@lucent.com>
25598
25599         * lib/nanosleep.h (nanosleep): Guard declaration with
25600         `#if ! HAVE_DECL_NANOSLEEP'.
25601         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
25602         the declaration in that vendor's sys/timers.h.
25603         Reported by Christian Krackowizer.
25604
25605         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
25606         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
25607         (ISPRINT): Likewise.
25608         Reported by Tom Tromey.
25609
25610 2000-01-30  Jim Meyering  <meyering@lucent.com>
25611
25612         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
25613
25614         * m4/prereq.m4 (utmp_includes): Define.
25615         Check for ut_user and ut_name members in both struct utmpx
25616         and struct utmp.
25617
25618 2000-01-30  Jim Meyering  <meyering@lucent.com>
25619
25620         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
25621         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
25622         header files where only utmpx.ut_user is declared.
25623
25624         * lib/readutmp.h (UT_USER): Define.
25625
25626 2000-01-29  Jim Meyering  <meyering@lucent.com>
25627
25628         * m4/lib-check.m4: New file containing library-related checks from
25629         fileutils and sh-utils (textutils had none).
25630
25631 2000-01-28  Jim Meyering  <meyering@lucent.com>
25632
25633         * m4/perl.m4: Change format of warning message to look more like that
25634         from the missing script.  Suggestion from François Pinard.
25635
25636 2000-01-25  Jim Meyering  <meyering@lucent.com>
25637
25638         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
25639         well as time.h in the compile check.
25640         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
25641         Fix typo in cross-compiling case: s/yes/no/.
25642
25643 2000-01-23  Jim Meyering  <meyering@lucent.com>
25644
25645         * m4/jm-macros.m4: Move df-related tests here from
25646         fileutils/configure.in
25647
25648         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
25649         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
25650
25651         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
25652         s/space/ac_fsusage_space/.
25653         (jm_FILE_SYSTEM_USAGE): Take two parameters.
25654
25655         * m4/ftruncate.m4: New file (derived from part of
25656         fileutils/configure.in).
25657         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
25658         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
25659
25660         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
25661         AC_SUBST these here, rather than just in sh-util/configure.in, so
25662         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
25663         all the same.
25664         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
25665         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
25666         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
25667         (AC_SUBST(POW_LIBM)): Likewise.
25668         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
25669
25670 2000-01-23  Jim Meyering  <meyering@lucent.com>
25671
25672         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
25673         obstack.c.
25674
25675 2000-01-22  Jim Meyering  <meyering@lucent.com>
25676
25677         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
25678
25679         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
25680
25681         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
25682         configure.in
25683         (AC_CHECK_HEADERS): Likewise for sh-utils.
25684         (AC_CHECK_HEADERS): Likewise for textutils.
25685         Merge the three lists of headers.
25686
25687         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
25688         from fileutils' configure.in.
25689
25690         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
25691         code. Moved tests into their own function (_jm_DECL_HEADERS) in
25692         check-decl.m4.
25693
25694         * m4/check-decl.m4: Use #if rather than #ifdef.
25695         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
25696         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
25697         (_jm_DECL_HEADERS): Define new function.
25698         (jm_CHECK_DECLARATIONS): Require it.
25699
25700 2000-01-22  Jim Meyering  <meyering@lucent.com>
25701
25702         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
25703         [! HAVE_DECL_STRTOULL]: Declare strtoull.
25704         Required for some AIX systems.  Reported by Christian Krackowizer.
25705         [TESTING] (main): New function.
25706
25707         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
25708         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
25709         letters.
25710
25711         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
25712         iswprint.
25713
25714         * lib/strverscmp.c (ISDIGIT): Define.
25715         (strverscmp): Use ISDIGIT, not isdigit.
25716
25717 2000-01-19  Jim Meyering  <meyering@lucent.com>
25718
25719         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
25720         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
25721         defines `struct timespec' in <sys/time.h>
25722
25723         * m4/c-bs-a.m4: Remove uses of changequote altogether.
25724         Thanks to Akim for explaining.
25725
25726 2000-01-17  Paul Eggert  <eggert@twinsun.com>
25727
25728         * lib/nanosleep.c (nanosleep):
25729         Don't use SA_INTERRUPT to decide whether to call sigaction, as
25730         POSIX.1 doesn't require SA_INTERRUPT and some systems
25731         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
25732         it's been part of POSIX.1 since day 1 (in 1988).
25733
25734 2000-01-17  Jim Meyering  <meyering@lucent.com>
25735
25736         * lib/interlock: Remove unused file.  Reported by François Pinard.
25737
25738 2000-01-16  Paul Eggert  <eggert@twinsun.com>
25739
25740         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
25741         alert, backslash, formfeed, and vertical tab unnecessarily in
25742         shell quoting style.
25743
25744 2000-01-16  Jim Meyering  <meyering@lucent.com>
25745
25746         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
25747         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
25748         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
25749         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
25750
25751 2000-01-16  Jim Meyering  <meyering@lucent.com>
25752
25753         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
25754         because the latter didn't work.
25755
25756 2000-01-15  Jim Meyering  <meyering@lucent.com>
25757
25758         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
25759         (AC_REPLACE_FUNCS): Add memcpy and memset.
25760         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
25761         Add strpbrk.
25762         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
25763
25764 2000-01-12  Jim Meyering  <meyering@lucent.com>
25765
25766         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
25767         (jm_PREREQ): Use it.
25768         (jm_PREREQ_READUTMP): New macro.
25769         (jm_PREREQ): Use it.
25770
25771 2000-01-11  Paul Eggert  <eggert@twinsun.com>
25772
25773         Quote multibyte characters correctly.
25774         * m4/c-bs-a.m4: New file.
25775         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
25776         (jm_PREREQ): Use it.
25777
25778 2000-01-11  Paul Eggert  <eggert@twinsun.com>
25779
25780         * m4/uintmax_t.m4: Port to autoconf 2.13.
25781
25782 2000-01-08  Jim Meyering  <meyering@ascend.com>
25783
25784         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
25785         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
25786
25787 2000-01-04  Jim Meyering  <meyering@ascend.com>
25788
25789         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
25790         jm_STRUCT_DIRENT_D_TYPE.
25791         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
25792         jm_STRUCT_DIRENT_D_INO.
25793         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
25794         jm_STRUCT_UTIMBUF.
25795         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
25796         renamings.
25797         * m4/utime.m4: Likewise.
25798
25799         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
25800         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
25801
25802 2000-01-03  Paul Eggert  <eggert@twinsun.com>
25803
25804         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
25805         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
25806
25807 2000-01-02  Jim Meyering  <meyering@ascend.com>
25808
25809         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
25810         remember if this is necessary.
25811
25812 1999-12-26  Jim Meyering  <meyering@ascend.com>
25813
25814         * m4/jm-macros.m4: Use it here.
25815         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
25816
25817 1999-12-23  Jim Meyering  <meyering@ascend.com>
25818
25819         * m4/jm-macros.m4: Check for clock_gettime (moved from
25820         fileutils/configure.in)
25821         Check for gettimeofday.
25822
25823 1999-12-20  Jim Meyering  <meyering@ascend.com>
25824
25825         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
25826         autoconf-2.14a-1999-12-20.
25827
25828 1999-12-19  Jim Meyering  <meyering@ascend.com>
25829
25830         * m4/lstat-slash.m4: New file.
25831         * m4/jm-macros.m4: Use the new macro:
25832         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
25833
25834 1999-12-07  Jim Meyering  <meyering@ascend.com>
25835
25836         * m4/perl.m4: Require that File::Compare be available, too.
25837         Too many systems seem to lack it.
25838
25839         * m4/strftime.m4: Add checks for most of the cpp macros tested in
25840         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
25841
25842 1999-11-18  Paul Eggert  <eggert@twinsun.com>
25843
25844         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
25845         problem with the QNX 4.25 shell, which doesn't propagate exit
25846         status of failed commands inside shell assignments.
25847
25848 1999-11-17  Jim Meyering  <meyering@ascend.com>
25849
25850         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
25851
25852 1999-11-07  Jim Meyering  <meyering@ascend.com>
25853
25854         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
25855
25856 1999-11-06  Jim Meyering  <meyering@ascend.com>
25857
25858         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
25859         * m4/jm-macros.m4 (jm_MACROS): Use it here.
25860
25861 1999-11-05  Jim Meyering  <meyering@ascend.com>
25862
25863         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
25864         configure.in of textutils, fileutils, and sh-utils into this one
25865         (shared between those packages) file.
25866         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
25867         AC_STRUCT_ST_BLKSIZE.
25868
25869 1999-11-03  Jim Meyering  <meyering@ascend.com>
25870
25871         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
25872         of AC_CHECK_TYPE checks includes unistd.h.
25873         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
25874         Suggestion from Akim Demaille.
25875
25876 1999-10-30  Jim Meyering  <meyering@ascend.com>
25877
25878         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
25879         m4-quoted string.
25880         * m4/ls-mntd-fs.m4: Likewise.
25881         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
25882         * m4/jm-winsz1.m4: Likewise.
25883
25884         * m4/const.m4: Remove file, since the fix made it into the experimental
25885         version of autoconf.
25886         * m4/mktime.m4: Likewise.
25887
25888         * m4/check-type.m4: Remove file, now that the latest version of
25889         AC_CHECK_TYPE takes a third arg to specify additional #includes.
25890
25891         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
25892         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
25893         AC_CHECK_TYPE.
25894
25895 1999-10-04  Jim Meyering  <meyering@ascend.com>
25896
25897         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
25898
25899 1999-09-22  Paul Eggert  <eggert@twinsun.com>
25900
25901         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
25902         2.95.1 bug with HP-UX 10.20.
25903
25904 1999-09-17  Jim Meyering  <meyering@ascend.com>
25905
25906         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
25907         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
25908         due to missing strdup (against sh-utils-2.0).
25909
25910 1999-08-29  Jim Meyering  <meyering@ascend.com>
25911
25912         * m4/jm-macros.m4: Require jm_BISON.
25913         * m4/bison.m4: New file.
25914
25915 1999-08-17  Paul Eggert  <eggert@twinsun.com>
25916
25917         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
25918         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
25919
25920 1999-08-05  Jim Meyering  <meyering@ascend.com>
25921
25922         * m4/getline.m4: Rename test file from conftestdata to conftest.data
25923         to avoid conflicts with `conftest' on 8+3 filesystems.
25924         Suggestion from Eli Zaretskii.
25925
25926 1999-08-04  Jim Meyering  <meyering@ascend.com>
25927
25928         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
25929         fileutils and sh-utils (textutils's getline test was inadequate).
25930         (AM_FUNC_GETLINE): Run this test.
25931         (AC_CHECK_FUNCS): Check for getdelim.
25932         Reported by Bob Proulx.
25933
25934 1999-08-02  Jim Meyering  <meyering@ascend.com>
25935
25936         * m4/jm-macros.m4: Add a comment.
25937
25938 1999-08-01  Paul Eggert  <eggert@twinsun.com>
25939
25940         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
25941         <inttypes.h> defines strtoumax as a macro (and not as a
25942         function).
25943
25944 1999-08-01  Paul Eggert  <eggert@twinsun.com>
25945
25946         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
25947         that we can shift, multiply and divide unsigned long long
25948         values; Ultrix cc can't do it.
25949
25950 1999-08-01  Paul Eggert  <eggert@twinsun.com>
25951
25952         * m4/mktime.m4: New file, which is a preview of what should appear
25953         in the next public autoconf release.
25954
25955 1999-08-01  Paul Eggert  <eggert@twinsun.com>
25956
25957         * m4/lfs.m4: Remove this file.
25958         * m4/largefile.m4: New file.  It contains the old contents of
25959         lfs.m4, except that all names with prefix AC_LFS have been
25960         changed to use the prefix AC_SYS_LARGEFILE instead, to be
25961         compatible with future autoconf versions.  Also, some minor m4
25962         quoting problems have been fixed.
25963
25964 1999-08-01  Paul Eggert  <eggert@twinsun.com>
25965
25966         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
25967         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
25968         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
25969         and simplify the shell code.
25970
25971 1999-08-01  Jim Meyering  <meyering@ascend.com>
25972
25973         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
25974         m4.
25975
25976 1999-07-20  Jim Meyering  <meyering@ascend.com>
25977
25978         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
25979
25980 1999-07-15  Jim Meyering  <meyering@ascend.com>
25981
25982         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
25983
25984 1999-05-22  Jim Meyering  <meyering@ascend.com>
25985
25986         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
25987
25988 1999-05-20  Jim Meyering  <meyering@ascend.com>
25989
25990         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
25991         Add a colon after each `then' in case $4 is empty.
25992
25993 1999-05-16  Jim Meyering  <meyering@ascend.com>
25994
25995         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
25996
25997 1999-05-10  Jim Meyering  <meyering@ascend.com>
25998
25999         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
26000
26001         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
26002         AC_FUNC_MKTIME.
26003
26004 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
26005
26006         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
26007
26008 1999-05-04  Paul Eggert  <eggert@twinsun.com>
26009
26010         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
26011         not CPPFLAGS, so that linking works correctly in IRIX.
26012
26013 1999-04-30  Paul Eggert  <eggert@twinsun.com>
26014
26015         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
26016
26017 1999-04-20  Paul Eggert  <eggert@twinsun.com>
26018
26019         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
26020         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
26021         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
26022         jm_AC_TYPE_UNSIGNED_LONG_LONG.
26023         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
26024
26025         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
26026
26027 1999-04-20  Jim Meyering  <meyering@ascend.com>
26028
26029         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
26030         AC_REPLACE xstroull if necessary.  From Paul Eggert.
26031         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
26032
26033 1999-04-18  Jim Meyering  <meyering@ascend.com>
26034
26035         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
26036         * m4/jm-macros.m4: Use it.
26037
26038 1999-04-06  Jim Meyering  <meyering@ascend.com>
26039
26040         * m4/strftime.m4: Remove test for %f.
26041
26042 1999-03-29  Jim Meyering  <meyering@ascend.com>
26043
26044         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
26045         superset of the AC_TYPE_* checks in the textutils, fileutils,
26046         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
26047         AC_TYPE_PID_T.
26048
26049 1999-03-28  Jim Meyering  <meyering@ascend.com>
26050
26051         * m4/jm-macros.m4: Define GNU_PACKAGE here.
26052         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
26053         replaced e.g., in the *.sh files of the sh-utils.
26054
26055 1999-03-20  Jim Meyering  <meyering@ascend.com>
26056
26057         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
26058         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
26059         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
26060
26061 1999-03-19  Jim Meyering  <meyering@ascend.com>
26062
26063         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
26064
26065 1999-03-12  Jim Meyering  <meyering@ascend.com>
26066
26067         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
26068
26069 1999-03-07  Jim Meyering  <meyering@ascend.com>
26070
26071         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
26072         declared.
26073
26074 1999-02-17  Jim Meyering  <meyering@ascend.com>
26075
26076         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
26077         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
26078
26079 1999-02-07  Jim Meyering  <meyering@ascend.com>
26080
26081         * m4/group-member.m4: New file -- extracted from sh-utils'
26082         configure.in.
26083
26084         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
26085         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
26086
26087 1999-02-06  Jim Meyering  <meyering@ascend.com>
26088
26089         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
26090         * m4/fnmatch.m4: Likewise.
26091         * m4/getgroups.m4: Likewise.
26092         * m4/lstat.m4: Likewise.
26093         * m4/malloc.m4: Likewise.
26094         * m4/putenv.m4: Likewise.
26095         * m4/realloc.m4: Likewise.
26096         * m4/regex.m4: Likewise.
26097         * m4/stat.m4: Likewise.
26098         * m4/strftime.m4: Likewise.
26099         Suggestion from Alain Magloire.
26100
26101         * m4/chown.m4: Use `.$ac_objext', not `.o'.
26102         * m4/fnmatch.m4: Likewise.
26103         * m4/getgroups.m4: Likewise.
26104         * m4/getline.m4: Likewise.
26105         * m4/lstat.m4: Likewise.
26106         * m4/malloc.m4: Likewise.
26107         * m4/memcmp.m4: Likewise.
26108         * m4/putenv.m4: Likewise.
26109         * m4/realloc.m4: Likewise.
26110         * m4/regex.m4: Likewise.
26111         * m4/stat.m4: Likewise.
26112         * m4/strftime.m4: Likewise.
26113         Suggestion from Alain Magloire.
26114
26115         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
26116         an argument.
26117
26118         * m4/regex.m4: Add a run-time Test for proper operation of
26119         re_compile_pattern.
26120
26121 1999-01-31  Jim Meyering  <meyering@ascend.com>
26122
26123         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
26124
26125 1999-01-30  Jim Meyering  <meyering@ascend.com>
26126
26127         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
26128
26129         * m4/jm-mktime.m4: Make this a wrapper around the official
26130         AM_FUNC_MKTIME rather than my private copy, now that the official one
26131         is up to date.
26132         * m4/mktime.m4: Remove file.
26133
26134         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
26135         * m4/uptime.m4: Likewise.
26136         * m4/uintmax_t.m4: Likewise.
26137
26138 1999-01-28  Jim Meyering  <meyering@ascend.com>
26139
26140         * m4/jm-macros.m4: Use jm_AFS.
26141         * m4/afs.m4: New file (from fileutils' configure.in).
26142
26143         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
26144         * m4/chown.m4: Likewise.
26145         * m4/d-ino.m4: Likewise.
26146         * m4/d-type.m4: Likewise.
26147         * m4/fnmatch.m4: Likewise.
26148         * m4/getgroups.m4: Likewise.
26149         * m4/gettext.m4: Likewise.
26150         * m4/jm-mktime.m4: Likewise.
26151         * m4/jm-winsz2.m4: Likewise.
26152         * m4/lcmessage.m4: Likewise.
26153         * m4/ls-mntd-fs.m4: Likewise.
26154         * m4/malloc.m4: Likewise.
26155         * m4/memcmp.m4: Likewise.
26156         * m4/putenv.m4: Likewise.
26157         * m4/realloc.m4: Likewise.
26158         * m4/st_mtim.m4: Likewise.
26159         * m4/strftime.m4: Likewise.
26160
26161 1999-01-16  Jim Meyering  <meyering@ascend.com>
26162
26163         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
26164         (ARGMATCH_DIE_DECL): Define.
26165
26166 1999-01-12  Jim Meyering  <meyering@ascend.com>
26167
26168         * m4/Makefile.am.in: Rewrite to avoid using fmt.
26169         Reported by Lars Hecking.
26170
26171 1999-01-10  Jim Meyering  <meyering@ascend.com>
26172
26173         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
26174         gross kludge.
26175         * m4/inttypes_h.m4: Likewise.
26176         * m4/lstat.m4: Likewise.
26177         * m4/malloc.m4: Likewise.
26178         * m4/readdir.m4: Likewise.
26179         * m4/realloc.m4: Likewise.
26180         * m4/st_dm_mode.m4: Likewise.
26181         * m4/stat.m4: Likewise.
26182         * m4/utimbuf.m4: Likewise.
26183         * m4/utimes.m4: Likewise.
26184
26185         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
26186         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
26187         comments in config.h.in are meaningful.
26188
26189         * m4/jm-macros.m4: Require autoconf-2.13 here.
26190
26191         * m4/regex.m4: By default, don't use the included regex.c on systems
26192         with glibc 2.  Suggestion from Uli Drepper.
26193
26194 1999-01-02  Jim Meyering  <meyering@ascend.com>
26195
26196         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
26197
26198 1998-12-18  Jim Meyering  <meyering@ascend.com>
26199
26200         * m4/Makefile.am.in (Makefile.am): Simplify rule.
26201         Based on a suggestion from Lars Hecking.
26202
26203 1998-11-16  Paul Eggert  <eggert@twinsun.com>
26204
26205         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
26206
26207 1998-11-16  Jim Meyering  <meyering@ascend.com>
26208
26209         * m4/lfs.m4: Double-quote the `uname...` expression.
26210
26211 1998-11-14  Jim Meyering  <meyering@ascend.com>
26212
26213         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
26214         * m4/stat.m4: Likewise.
26215
26216 1998-11-03  Jim Meyering  <meyering@ascend.com>
26217
26218         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
26219         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
26220
26221 1998-10-18  Jim Meyering  <meyering@ascend.com>
26222
26223         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
26224
26225 1998-10-17  Jim Meyering  <meyering@ascend.com>
26226
26227         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
26228         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
26229         calls for those previously hard-coded headers.  Instead, take a new
26230         parameter.
26231         (jm_CHECK_DECLARATIONS): Reflect interface change.
26232         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
26233         (jm_CHECK_DECL_LOCALTIME_R): New macro.
26234
26235         * m4/mktime.m4: Test for spring-forward gap before long-running test.
26236
26237 1998-10-14  Jim Meyering  <meyering@ascend.com>
26238
26239         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
26240         instead of "TZ=America/Vancouver".  From Paul Eggert.
26241
26242 1998-10-11  Jim Meyering  <meyering@ascend.com>
26243
26244         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
26245         This adds a test for a recently added compatibility fix for mktime.c.
26246         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
26247
26248 1998-09-27  Jim Meyering  <meyering@ascend.com>
26249
26250         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
26251
26252         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
26253         ../configure.in, including a change from Gordon Matzigkeit to allow
26254         cross-compiling for the Hurd.
26255
26256         * m4/glibc.m4: New file/macro to test for the GNU C Library
26257         versions 1 and 2.  From Gordon Matzigkeit.
26258         Indent.
26259
26260 1998-09-21  Jim Meyering  <meyering@ascend.com>
26261
26262         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
26263
26264 1998-08-18  Paul Eggert  <eggert@twinsun.com>
26265
26266         Port nanosecond-resolution times to UnixWare 2.1.2 and
26267         pedantic Solaris 2.6.
26268
26269         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
26270         AC_STRUCT_ST_MTIM.
26271         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
26272         Generate name of ns member, instead of just 1 or undef.
26273         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
26274
26275 1998-08-15  Jim Meyering  <meyering@ascend.com>
26276
26277         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
26278         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
26279         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
26280         instead of jm_TYPE_SSIZE_T.
26281
26282 1998-08-12  Jim Meyering  <meyering@ascend.com>
26283
26284         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
26285
26286 1998-08-02  Jim Meyering  <meyering@ascend.com>
26287
26288         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
26289         in acconfig.h manually.
26290
26291 1998-07-31  Paul Eggert  <eggert@twinsun.com>
26292
26293         * m4/st_mtim.m4: New file.
26294
26295 1998-07-28  Jim Meyering  <meyering@ascend.com>
26296
26297         * m4/utimes.m4: Undef stat.
26298
26299 1998-07-25  Jim Meyering  <meyering@ascend.com>
26300
26301         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
26302         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
26303
26304 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
26305
26306         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
26307         uid and gid actually remain unchanged.
26308
26309 1998-07-07  Jim Meyering  <meyering@ascend.com>
26310
26311         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
26312
26313 1998-07-04  Jim Meyering  <meyering@ascend.com>
26314
26315         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
26316         to prove that this macro can be used in packages without regex.c.
26317
26318 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
26319
26320         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
26321         is to be used.
26322
26323 1998-07-03  Jim Meyering  <meyering@ascend.com>
26324
26325         * m4/gettext.m4: Add -lintl if it's found to be necessary.
26326
26327         * m4/gettext.m4: New file -- from gettext-0.10.35.
26328         * m4/lcmessage.m4: Likewise.
26329         * m4/progtest.m4: Likewise.
26330
26331         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
26332         * m4/jm-macros.m4: Require the new macro.
26333
26334 1998-06-29  Jim Meyering  <meyering@ascend.com>
26335
26336         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
26337         for the definition of NGROUPS (used in a system header included
26338         by sys/mount.h).
26339
26340 1998-06-28  Jim Meyering  <meyering@ascend.com>
26341
26342         * m4/ls-mntd-fs.m4: New file.
26343         * m4/fstypename.m4: New file.
26344
26345         * m4/jm-macros.m4: Require the new macro.
26346         * m4/jm-glibc-io.m4: New file.
26347
26348 1998-05-19  Jim Meyering  <meyering@ascend.com>
26349
26350         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
26351         * m4/lchown.m4: New file.
26352
26353         * m4/Makefile.am.in: New file.
26354         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
26355
26356 1998-05-14  Jim Meyering  <meyering@ascend.com>
26357
26358         * m4/Makefile.am (EXTRA_DIST): Add them.
26359         * m4/jm-macros.m4: New file.
26360         * m4/utimbuf.m4: New file.
26361
26362 1998-05-12  Jim Meyering  <meyering@ascend.com>
26363
26364         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
26365
26366 1998-05-11  Jim Meyering  <meyering@ascend.com>
26367
26368         * m4/isc-posix.m4: New file.
26369
26370 1998-05-10  Jim Meyering  <meyering@ascend.com>
26371
26372         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
26373
26374 1998-05-09  Jim Meyering  <meyering@ascend.com>
26375
26376         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
26377         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
26378         with automake.
26379
26380         * m4/ssize_t.m4: New file.
26381         * m4/mktime.m4: Remove file -- the new automake has this now.
26382
26383 1998-04-26  Jim Meyering  <meyering@ascend.com>
26384
26385         * m4/assert.m4: New file.
26386         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
26387
26388 1998-04-05  Jim Meyering  <meyering@ascend.com>
26389
26390         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
26391         (jm_PREREQ): Use it here.
26392
26393 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
26394
26395         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
26396         in acconfig.h.
26397
26398 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
26399
26400         * m4/prereq.m4: New file.
26401         * m4/error.m4: New file.
26402         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
26403
26404 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
26405
26406         * m4/getline.m4: Don't set am_cv_func_working_getline before the
26407         cache-check for the same variable -- that defeated the purpose of
26408         the test; the test program was never run.  This was a problem only
26409         on systems with losing getline functions -- HP-UX 10.20 is one.
26410         Reported by Bjorn Helgaas.
26411
26412 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
26413
26414         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
26415
26416 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
26417
26418         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
26419
26420         * m4/const.m4: New file.  Use an initializer in this declaration
26421         typedef int charset[2]; const charset x;
26422         Reported by Bob Glickstein.
26423
26424 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
26425
26426         * m4/chown.m4: Fix reversed types on -1 args to chown.
26427         From Kaveh Ghazi.
26428
26429 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
26430
26431         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
26432         Add lseek and memchr.
26433
26434         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
26435         T.E.Dickey <dickey@clark.net> said that some older preprocessors
26436         have a 20-character limit on names.
26437
26438 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
26439
26440         * m4/inttypes_h.m4: New file.
26441         * m4/uintmax_t.m4: New file.
26442         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
26443
26444 Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
26445   Free Software Foundation, Inc.
26446 Copying and distribution of this file, with or without modification,
26447 are permitted provided the copyright notice and this notice are preserved.