* modules/regex (Depends-on): Add stdbool.
[gnulib.git] / ChangeLog
1 2007-02-08  Bruno Haible  <bruno@clisp.org>
2
3         * modules/regex (Depends-on): Add stdbool.
4         Reported by Dalibor Topic <robilad@kaffe.org>.
5
6 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
7
8         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
9         Prefer returning from main to exiting from it.
10         Remove unnecessary parens after sizeof.
11
12 2007-02-05  Bruno Haible  <bruno@clisp.org>
13
14         New module mbssep.
15         * modules/mbssep: New file.
16         * lib/mbssep.c: New file.
17         * lib/string_.h (strsep): Add a conditional link warning.
18         (mbssep): New declaration.
19         * m4/mbssep.m4: New file.
20         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
21         GNULIB_MBSSEP.
22         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
23         * MODULES.html.sh (Internationalization functions): Add mbssep.
24
25 2007-02-05  Bruno Haible  <bruno@clisp.org>
26
27         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
28         Optimize search in case of 1 delimiter.
29
30 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
31
32         * lib/acl.h: Include sys/types.h before sys/acl.h.
33
34 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
35
36         Merge upstream fix for glibc bugzilla #3957:
37
38         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
39
40         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
41         bit for RE_HAT_LISTS_NOT_NEWLINE.
42         (build_charclass_op): Remove bogus comment.
43
44 2007-02-05  Simon Josefsson  <simon@josefsson.org>
45
46         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
47
48 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
49
50         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
51         * lib/memmem.c [!defined _LIBC]: Include config.h.
52
53 2007-02-04  Bruno Haible  <bruno@clisp.org>
54
55         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
56         warning message.
57
58 2007-02-04  Bruno Haible  <bruno@clisp.org>
59
60         New module mbstok_r.
61         * modules/mbstok_r: New file.
62         * lib/mbstok_r.c: New file.
63         * lib/string_.h (strtok_r): Change argument names to match the
64         comments. Add a conditional link warning.
65         (mbstok_r): New declaration.
66         * m4/mbstok_r.m4: New file.
67         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68         GNULIB_MBSTOK_R.
69         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
70         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
71
72 2007-02-04  Bruno Haible  <bruno@clisp.org>
73
74         New module mbsspn.
75         * modules/mbsspn: New file.
76         * lib/mbsspn.c: New file.
77         * lib/string_.h (strspn): Add a conditional link warning.
78         (mbsspn): New declaration.
79         * m4/mbsspn.m4: New file.
80         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
81         GNULIB_MBSSPN.
82         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
83         * MODULES.html.sh (Internationalization functions): Add mbsspn.
84
85 2007-02-04  Bruno Haible  <bruno@clisp.org>
86
87         New module mbspbrk.
88         * modules/mbspbrk: New file.
89         * lib/mbspbrk.c: New file.
90         * lib/string_.h (strpbrk): Add a conditional link warning.
91         (mbspbrk): New declaration.
92         * m4/mbspbrk.m4: New file.
93         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
94         GNULIB_MBSPBRK.
95         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
96         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
97
98 2007-02-04  Bruno Haible  <bruno@clisp.org>
99
100         New module mbscspn.
101         * modules/mbscspn: New file.
102         * lib/mbscspn.c: New file.
103         * lib/string_.h (strcspn): Add a conditional link warning.
104         (mbscspn): New declaration.
105         * m4/mbscspn.m4: New file.
106         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
107         GNULIB_MBSCSPN.
108         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
109         * MODULES.html.sh (Internationalization functions): Add mbscspn.
110
111 2007-02-04  Bruno Haible  <bruno@clisp.org>
112
113         New module mbscasestr, reduced goal of strcasestr.
114         * modules/mbscasestr: New file.
115         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
116         (mbscasestr): Renamed from strcasestr.
117         * lib/strcasestr.c: Don't include mbuiter.h.
118         (strcasestr): Remove support for multibyte locales.
119         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
120         Change the conditional link warning.
121         (mbscasestr): New declaration.
122         * m4/mbscasestr.m4: New file.
123         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
124         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
125         REPLACE_STRCASESTR.
126         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
127         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
128         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
129         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
130         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
131         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
132         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
133         (Depends-on): Remove mbuiter.
134         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
135
136 2007-02-04  Bruno Haible  <bruno@clisp.org>
137
138         Simplify handling of strncasecmp.
139         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
140         the conditional link warning.
141         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
142         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
143         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
144         * modules/strcase (configure.ac): Don't invoke
145         gl_STRING_MODULE_INDICATOR.
146         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
147
148 2007-02-04  Bruno Haible  <bruno@clisp.org>
149
150         New module mbscasecmp, reduced goal of strcasecmp.
151         * modules/mbscasecmp: New file.
152         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
153         (mbscasecmp): Renamed from strcasecmp.
154         * lib/strcasecmp.c: Don't include mbuiter.h.
155         (strcasecmp): Remove support for multibyte locales.
156         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
157         Change the conditional link warning.
158         (mbscasecmp): New declaration.
159         * m4/mbscasecmp.m4: New file.
160         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
161         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
162         REPLACE_STRCASECMP.
163         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
164         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
165         GNULIB_MBSCASECMP.
166         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
167         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
168         * modules/strcase (Files): Remove m4/mbrtowc.m4.
169         (Depends-on): Remove mbuiter.
170         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
171
172 2007-02-04  Bruno Haible  <bruno@clisp.org>
173
174         New module mbsstr. Remove module strstr.
175         * modules/mbsstr: New file.
176         * modules/strstr: Remove file.
177         * lib/mbsstr.c: Renamed from lib/strstr.c.
178         (mbsstr): Renamed from strstr.
179         * lib/string_.h (strstr): Remove declaration. Change the conditional
180         link warning.
181         (mbsstr): New declaration.
182         * m4/mbsstr.m4: New file.
183         * m4/strstr.m4: Remove file.
184         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
185         REPLACE_STRSTR.
186         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
187         Don't initialize GNULIB_STRSTR.
188         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
189         substitute GNULIB_STRSTR and REPLACE_STRSTR.
190         * MODULES.html.sh (Internationalization functions): Add mbsstr.
191         (Support for systems lacking ANSI C 89): Remove strstr.
192
193 2007-02-04  Bruno Haible  <bruno@clisp.org>
194
195         New module mbsrchr.
196         * modules/mbsrchr: New file.
197         * lib/mbsrchr.c: New file.
198         * lib/string_.h (strrchr): Add a conditional link warning.
199         (mbsrchr): New declaration.
200         * m4/mbsrchr.m4: New file.
201         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
202         GNULIB_MBSRCHR.
203         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
204         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
205
206 2007-02-04  Bruno Haible  <bruno@clisp.org>
207
208         New module mbschr.
209         * modules/mbschr: New file.
210         * lib/mbschr.c: New file.
211         * lib/string_.h (strchr): Add a conditional link warning.
212         (mbschr): New declaration.
213         * m4/mbschr.m4: New file.
214         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
215         GNULIB_MBSCHR.
216         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
217         * MODULES.html.sh (Internationalization functions): Add mbschr.
218
219 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
220
221         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
222
223         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
224
225 2007-02-04  Bruno Haible  <bruno@clisp.org>
226
227         New module description section 'configure.ac-early'.
228         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
229         (func_get_autoconf_early_snippet): New function.
230         (func_import, func_create_testdir): Use it. Remove special cases for
231         modules 'extensions' and 'lock'.
232         * modules/extensions (configure.ac-early): Require
233         gl_USE_SYSTEM_EXTENSIONS.
234         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
235
236 2007-02-04  Bruno Haible  <bruno@clisp.org>
237
238         Make use of gcj-4.3's -fsource and -ftarget option.
239         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
240         and if so try the options -fsource and -ftarget.
241         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
242         source_version, ftarget_option, target_version arguments.
243         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
244         (is_envjavac_oldgcj_14_14_usable): Renamed from
245         is_envjavac_gcj_14_14_usable.
246         (is_envjavac_oldgcj_14_13_usable): Renamed from
247         is_envjavac_gcj_14_13_usable.
248         (is_gcj_present): Update.
249         (is_gcj_43, is_gcj43_usable): New functions.
250         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
251         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
252         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
253         try the options -fsource and -ftarget.
254
255 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
256
257         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
258         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
259         larger value.
260
261 2007-02-03  Jim Meyering  <jim@meyering.net>
262
263         Give tools a better chance to allocate space for very large buffers.
264         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
265
266         Make pwd and readlink work also when run with an unreadable parent dir
267         on systems with openat support.
268         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
269         provided getcwd function, even when we have openat support.
270         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
271
272 2007-02-02  Bruno Haible  <bruno@clisp.org>
273
274         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
275         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
276         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
277         portability problems if one of these functions is only used on specific
278         platforms.
279         Reported by Paul Eggert.
280
281 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
282
283         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
284         is causing more trouble than it's curing.
285         * lib/regex_internal.h (__mempcpy): Remove.
286         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
287         (and make the code a tad smaller to boot).
288         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
289
290 2007-02-02  Jim Meyering  <jim@meyering.net>
291
292         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
293         section, not in the Makefile.am: one.
294
295 2007-02-02  Eric Blake  <ebb9@byu.net>
296
297         * lib/strchrnul.c: Always include config.h first.
298
299         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
300         gnulib strstr is not necessary here.
301
302 2007-02-02  Simon Josefsson  <simon@josefsson.org>
303
304         * m4/socklen.m4: Fix typo.
305
306 2007-02-02  Eric Blake  <ebb9@byu.net>
307
308         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
309         * modules/netinet_in (Makefile.am): Likewise.
310
311 2007-02-01  Bruno Haible  <bruno@clisp.org>
312
313         * lib/string_.h (GL_LINK_WARNING): New macro.
314         (strcasecmp, strstr, strcasestr): If provided by the system,
315         conditionally define as a macro that leads to a warning instead of to
316         an error.
317         (strncasecmp): Conditionally define as a macro that leads to a warning.
318
319 2007-02-01  Jim Meyering  <jim@meyering.net>
320
321         Give tools a better chance to allocate space for very large buffers.
322         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
323
324 2007-02-01  Karl Berry  <karl@gnu.org>
325
326         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
327
328 2007-02-01  Bruno Haible  <bruno@clisp.org>
329
330         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
331         renamings.
332
333 2007-02-01  Eric Blake  <ebb9@byu.net>
334
335         * modules/regex (Depends-on): Revert dependence on mempcpy.
336         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
337         module's definition of mempcpy.
338         Reported by Paul Eggert.
339
340 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
341
342         * lib/string_.h: If the gnulib module XYZ is not present, undefine
343         the symbol XYZ before redefining it.  This fixes a problem with
344         programs that don't use XYZ, when compiled on systems that define
345         XYZ to something else.
346
347 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
348
349         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
350         occurs when "mkdir -m foo" creates a setgid directory that is (1)
351         writeable to group or other and (2) is intended to have a special
352         mode bit that is set or cleared.  In such a case, the directory
353         should be neither group- nor other-writeable until the special
354         mode bits are right.
355
356 2007-01-31  Eric Blake  <ebb9@byu.net>
357
358         * modules/mountlist (Depends-on): Add strstr.
359
360         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
361         bug.
362         * modules/string (Makefile.am): Remove redundant replacement.
363         * modules/regex (Depends-on): Add mempcpy.
364
365 2007-01-31  Bruno Haible  <bruno@clisp.org>
366
367         New module description field 'Link'.
368         * gnulib-tool (func_usage): Document --extract-link-directive.
369         (sed_extract_prog): Recognize 'Link' directive.
370         (func_get_link_directive): New function.
371         (func_import): Show summary of link directives.
372         Handle --extract-link-directive option.
373         * modules/acl (Link): New section.
374         * modules/clock-time (Link): New section.
375         * modules/euidaccess (Link): New section.
376         * modules/gettext (Link): New section.
377         * modules/iconv (Link): New section.
378         * modules/lock (Link): New section.
379         * modules/nanosleep (Link): New section.
380         * modules/readline (Link): New section.
381
382 2007-01-27  Bruno Haible  <bruno@clisp.org>
383
384         Enforce the use of gnulib modules for unportable <string.h> functions.
385         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
386         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
387         (gl_HEADER_STRING_H_BODY): Require it.
388         * lib/string_.h: If the gnulib module XYZ is not present, redefine
389         the symbol XYZ to one that gives a link error.
390         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
391         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
392         * modules/mempcpy (configure.ac): Likewise.
393         * modules/memrchr (configure.ac): Likewise.
394         * modules/stpcpy (configure.ac): Likewise.
395         * modules/stpncpy (configure.ac): Likewise.
396         * modules/strcase (configure.ac): Likewise.
397         * modules/strcasestr (configure.ac): Likewise.
398         * modules/strchrnul (configure.ac): Likewise.
399         * modules/strdup (configure.ac): Likewise.
400         * modules/strndup (configure.ac): Likewise.
401         * modules/strnlen (configure.ac): Likewise.
402         * modules/strpbrk (configure.ac): Likewise.
403         * modules/strsep (configure.ac): Likewise.
404         * modules/strstr (configure.ac): Likewise.
405         * modules/strtok_r (configure.ac): Likewise.
406
407 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
408
409         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
410
411 2007-01-30  Jim Meyering  <jim@meyering.net>
412
413         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
414
415 2007-01-29  Bruno Haible  <bruno@clisp.org>
416
417         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
418         * lib/execute.c: Likewise.
419         * lib/pipe.c: Likewise.
420         * lib/printf-args.h: Likewise.
421         * lib/printf-args.c: Likewise.
422         * lib/printf-parse.c: Likewise.
423         * lib/vasnprintf.c: Likewise.
424
425 2007-01-29  Eric Blake  <ebb9@byu.net>
426
427         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
428         declaration.
429
430 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
431
432         * lib/strptime.h (strptime): Use 'restrict' for args where
433         POSIX requires this.
434         * lib/strptime.c (strptime): Likewise.
435         Change license notice from LGPL to GPL, since gnulib-tool will
436         change this as needed.
437         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
438         defined.
439         Include "strptime.h" first, to check interface.
440         Do not #undef _LIBC and _NL_CURRENT.
441         Do not include <stdlib.h>; no longer needed.
442         Include "time_r.h" and declare ptime_locale_status
443         only if _LIBC is not defined.
444         (__P): Remove unused macro.
445         (match_string): Bring back glibc version, but use it only if _LIBC
446         is defined.
447         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
448         Remove unnecessary assertion and abort() call.
449         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
450         * m4/strptime.m4: Fix serial number comment.
451         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
452         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
453         (Depends-on): Add time_r.
454
455 2007-01-29  Bruno Haible  <bruno@clisp.org>
456
457         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
458         strptime.
459         * modules/strptime (Depends-on): Add stdbool.
460         * lib/strptime.h: Include <time.h> always. Add comments.
461
462 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
463
464         * modules/strptime: New file.
465         * lib/strptime.h: New file.
466         * lib/strptime.c: New file.
467         * m4/strptime.m4: New file.
468
469 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
470
471         * MODULES.html.sh: New module mpsort.
472         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
473
474         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
475         a circularity problem with HP-UX ia64 reported by Bob Proulx in
476         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
477         All uses changed.
478         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
479         All uses changed.
480         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
481         to _Restrict_.
482         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
483         the parameter matches the prototype.
484
485 2007-01-28  Jim Meyering  <jim@meyering.net>
486
487         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
488         sys/time.h here, reverting that part of the previous patch:
489         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
490
491 2007-01-28  Bruno Haible  <bruno@clisp.org>
492
493         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
494         value of $(SYS_TIME_H).
495         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
496         remove it conditionally, too. [added by Jim Meyering]
497         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
498         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
499         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
500         GETTIMEOFDAY_REPLACEMENT to 1.
501
502 2007-01-28  Bruno Haible  <bruno@clisp.org>
503
504         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
505         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
506         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
507         Set UNISTD_H instead of UNISTD_H2.
508         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
509
510 2007-01-28  Bruno Haible  <bruno@clisp.org>
511
512         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
513         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
514
515 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
516
517         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
518         (func_create_testdir): Ensure C locale for `grep' and `tr'
519         character ranges.
520         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
521         ACLOCAL_AMFLAGS parsing state machine.
522
523 2007-01-27  Bruno Haible  <bruno@clisp.org>
524
525         * modules/unistr/base: Update.
526
527 2007-01-27  Bruno Haible  <bruno@clisp.org>
528
529         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
530         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
531         * modules/unistr/u32-mbtouc-unsafe: Renamed from
532         modules/unistr/u32-mbtouc.
533         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
534         * lib/unistr.h: Update.
535         * lib/linebreak.c: Update.
536         * modules/unistr/u32-mbtouc: Renamed from
537         modules/unistr/u32-mbtouc-safe.
538         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
539         * lib/unistr.h: Update.
540         * lib/unistr/u32-to-u8.c: Update.
541         * lib/unistr/u32-to-u16.c: Update.
542
543 2007-01-27  Bruno Haible  <bruno@clisp.org>
544
545         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
546         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
547         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
548         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
549         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
550         * modules/unistr/u16-mbtouc-unsafe: Renamed from
551         modules/unistr/u16-mbtouc.
552         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
553         * lib/unistr.h: Update.
554         * lib/linebreak.c: Update.
555         * modules/linebreak: Update.
556         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
557         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
558         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
559         * modules/unistr/u16-mbtouc: Renamed from
560         modules/unistr/u16-mbtouc-safe.
561         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
562         * lib/unistr.h: Update.
563         * lib/unistr/u16-to-u8.c: Update.
564         * modules/unistr/u16-to-u8: Update.
565         * lib/unistr/u16-to-u32.c: Update.
566         * modules/unistr/u16-to-u32: Update.
567
568 2007-01-27  Bruno Haible  <bruno@clisp.org>
569
570         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
571         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
572         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
573         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
574         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
575         * modules/unistr/u8-mbtouc-unsafe: Renamed from
576         modules/unistr/u8-mbtouc.
577         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
578         * lib/unistr.h: Update.
579         * lib/striconveh.c: Update.
580         * modules/striconveh: Update.
581         * lib/linebreak.c: Update.
582         * modules/linebreak: Update.
583         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
584         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
585         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
586         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
587         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
588         * lib/unistr.h: Update.
589         * lib/striconveh.c: Update.
590         * modules/striconveh: Update.
591         * lib/unistr/u8-to-u16.c: Update.
592         * modules/unistr/u8-to-u16: Update.
593         * lib/unistr/u8-to-u32.c: Update.
594         * modules/unistr/u8-to-u32: Update.
595
596 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
597
598         Sync from Libtool.
599         * lib/argz.c: Do not include strings.h nor memory.h, include
600         string.h unconditionally.  Patch by Simon Josefsson.
601
602 2007-01-27  Bruno Haible  <bruno@clisp.org>
603
604         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
605         from gl_HEADER_STRING_H_BODY.
606         (gl_HEADER_STRING_H_BODY): Require it.
607         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
608         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
609         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
610         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
611         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
612         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
613         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
614         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
615         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
616         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
617         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
618         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
619         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
620         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
621         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
622
623 2007-01-27  Bruno Haible  <bruno@clisp.org>
624
625         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
626         check_PROGRAMS into noinst_PROGRAMS.
627         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
628         check_PROGRAMS in this case.
629         (func_import): Set for_test to false.
630         (func_create_testdir): Set for_test to true.
631
632 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
633             Bruno Haible  <bruno@clisp.org>
634
635         * modules/strcasestr (Files): Remove lib/strcasestr.h.
636         (Depends-on): Add string.
637         (Includes): Use <string.h> instead of strcasestr.h.
638         * modules/string (Makefile.am): Also substitute the value of
639         REPLACE_STRCASESTR.
640         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
641         assume strcasestr is declared in <string.h> not <strings.h>. Also
642         set REPLACE_STRCASESTR.
643         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
644         REPLACE_STRCASESTR.
645         * lib/strcasestr.h: Remove file.
646         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
647         * lib/string_.h (strcasestr): New declaration.
648
649 2007-01-27  Bruno Haible  <bruno@clisp.org>
650
651         * lib/string_.h: Use 'extern'.
652
653 2007-01-27  Jim Meyering  <jim@meyering.net>
654
655         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
656         of set-but-not-used local, "q".
657
658         * lib/mempcpy.c: Include <config.h> before <string.h>.
659         This fixes a compilation error on HP-UX, due to the system's
660         "restrict"-using mempcpy prototype.
661
662 2007-01-26  Bruno Haible  <bruno@clisp.org>
663
664         Small optimization.
665         * lib/javacomp.c: Include c-strstr.h.
666          (is_envjavac_gcj): Use c_strstr instead of strstr.
667         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
668
669 2007-01-26  Bruno Haible  <bruno@clisp.org>
670
671         * MODULES.html.sh (Unicode string functions): Add the new modules.
672
673         * modules/uniconv/u32-strconv-to-locale: New file.
674         * lib/uniconv/u32-strconv-to-locale.c: New file.
675
676         * modules/uniconv/u16-strconv-to-locale: New file.
677         * lib/uniconv/u16-strconv-to-locale.c: New file.
678
679         * modules/uniconv/u8-strconv-to-locale: New file.
680         * lib/uniconv/u8-strconv-to-locale.c: New file.
681
682         * modules/uniconv/u32-strconv-from-locale: New file.
683         * lib/uniconv/u32-strconv-from-locale.c: New file.
684
685         * modules/uniconv/u16-strconv-from-locale: New file.
686         * lib/uniconv/u16-strconv-from-locale.c: New file.
687
688         * modules/uniconv/u8-strconv-from-locale: New file.
689         * lib/uniconv/u8-strconv-from-locale.c: New file.
690
691         * modules/uniconv/u32-strconv-to-enc: New file.
692         * lib/uniconv/u32-strconv-to-enc.c: New file.
693         * modules/uniconv/u32-strconv-to-enc-tests: New file.
694         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
695
696         * modules/uniconv/u16-strconv-to-enc: New file.
697         * lib/uniconv/u16-strconv-to-enc.c: New file.
698         * lib/uniconv/u-strconv-to-enc.h: New file.
699         * modules/uniconv/u16-strconv-to-enc-tests: New file.
700         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
701
702         * modules/uniconv/u8-strconv-to-enc: New file.
703         * lib/uniconv/u8-strconv-to-enc.c: New file.
704         * modules/uniconv/u8-strconv-to-enc-tests: New file.
705         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
706
707         * modules/uniconv/u32-strconv-from-enc: New file.
708         * lib/uniconv/u32-strconv-from-enc.c: New file.
709         * modules/uniconv/u32-strconv-from-enc-tests: New file.
710         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
711
712         * modules/uniconv/u16-strconv-from-enc: New file.
713         * lib/uniconv/u16-strconv-from-enc.c: New file.
714         * modules/uniconv/u16-strconv-from-enc-tests: New file.
715         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
716
717         * modules/uniconv/u8-strconv-from-enc: New file.
718         * lib/uniconv/u8-strconv-from-enc.c: New file.
719         * lib/uniconv/u-strconv-from-enc.h: New file.
720         * modules/uniconv/u8-strconv-from-enc-tests: New file.
721         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
722
723         * modules/uniconv/u32-conv-from-enc: New file.
724         * lib/uniconv/u32-conv-from-enc.c: New file.
725         * modules/uniconv/u32-conv-from-enc-tests: New file.
726         * tests/uniconv/test-u32-conv-from-enc.c: New file.
727
728         * modules/uniconv/u16-conv-from-enc: New file.
729         * lib/uniconv/u16-conv-from-enc.c: New file.
730         * lib/uniconv/u-conv-from-enc.h: New file.
731         * modules/uniconv/u16-conv-from-enc-tests: New file.
732         * tests/uniconv/test-u16-conv-from-enc.c: New file.
733
734         * modules/uniconv/u8-conv-from-enc: New file.
735         * lib/uniconv/u8-conv-from-enc.c: New file.
736         * modules/uniconv/u8-conv-from-enc-tests: New file.
737         * tests/uniconv/test-u8-conv-from-enc.c: New file.
738
739         * modules/uniconv/base: New file.
740         * lib/uniconv.h: New file.
741
742 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
743
744         * doc/gnulib-tool.texi (Initial import): Update to match current
745         behavior with strdup module.
746         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
747         * lib/memmem.h: Remove; all uses removed.  This is now done
748         by <string.h>.
749         * lib/mempcpy.h: Likewise.
750         * lib/memrchr.h: Likewise.
751         * lib/stpcpy.h: Likewise.
752         * lib/stpncpy.h: Likewise.
753         * lib/strcase.h: Likewise.
754         * lib/strchrnul.h: Likewise.
755         * lib/strdup.h: Likewise.
756         * lib/strndup.h: Likewise.
757         * lib/strnlen.h: Likewise.
758         * lib/strpbrk.h: Likewise.
759         * lib/strsep.h: Likewise.
760         * lib/strstr.h: Likewise.
761         * lib/strtok_r.h: Likewise.
762         * lib/string_.h: New file.
763         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
764         Rely on <string.h> instead.
765         * lib/canon-host.c: Likewise.
766         * lib/chdir-long.c: Likewise.
767         * lib/concatpath.c: Likewise.
768         * lib/exclude.c: Likewise.
769         * lib/fchdir.c: Likewise.
770         * lib/getaddrinfo.c: Likewise.
771         * lib/getcwd.c: Likewise.
772         * lib/getsubopt.c: Likewise.
773         * lib/glob.c: Likewise.
774         * lib/hard-locale.c: Likewise.
775         * lib/iconvme.c: Likewise.
776         * lib/javacomp.c: Likewise.
777         * lib/mempcpy.c: Likewise.
778         * lib/memrchr.c: Likewise.
779         * lib/regex_internal.h: Likewise.
780         * lib/stpncpy.c: Likewise.
781         * lib/strcasecmp.c: Likewise.
782         * lib/strchrnul.c: Likewise.
783         * lib/strdup.c: Likewise.
784         * lib/striconv.c: Likewise.
785         * lib/striconveh.c: Likewise.
786         * lib/striconveha.c: Likewise.
787         * lib/strncasecmp.c: Likewise.
788         * lib/strndup.c: Likewise.
789         * lib/strnlen.c: Likewise.
790         * lib/strsep.c: Likewise.
791         * lib/strstr.c: Likewise.
792         * lib/strtok_r.c: Likewise.
793         * lib/userspec.c: Likewise.
794         * lib/w32spawn.h: Likewise.
795         * lib/xstrndup.c: Likewise.
796         * lib/mountlist.c (strstr): Remove decl.
797         * m4/string_h.m4: New file.
798         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
799         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
800         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
801         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
802         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
803         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
804         Set REPLACE_STRCASECMP if necessary.
805         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
806         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
807         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
808         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
809         HAVE_DECL_STRDUP if necessary.
810         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
811         since gl_FUNC_STRNDUP does that now.
812         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
813         Check for decl here...
814         (gl_PREREQ_STRNLEN): ... not here.
815         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
816         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
817         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
818         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
819         necessary.
820         * modules/string: New file.
821         * modules/memmem (Files): Remove special-purpose include file.
822         (Depends-on): Add string.
823         (Include): Include <string.h>, not the removed file.
824         * modules/mempcpy: Likewise.
825         * modules/memrchr: Likewise.
826         * modules/stpcpy: Likewise.
827         * modules/stpncpy: Likewise.
828         * modules/strcase: Likewise.
829         * modules/strchrnul: Likewise.
830         * modules/strdup: Likewise.
831         * modules/strndup: Likewise.
832         * modules/strnlen: Likewise.
833         * modules/strpbrk: Likewise.
834         * modules/strsep: Likewise.
835         * modules/strstr: Likewise.
836         * modules/strtok_r: Likewise.
837         * tests/test-dirname.c: Don't include "strdup.h", since
838         <string.h> now suffices.
839         * tests/test-memmem.c: Don't include "memmem.h", since
840         <string.h> now suffices.
841
842 2007-01-25  Bruno Haible  <bruno@clisp.org>
843
844         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
845         *resultp is 0.
846
847         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
848         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
849         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
850         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
851
852         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
853         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
854         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
855         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
856         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
857         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
858
859 2007-01-24  Bruno Haible  <bruno@clisp.org>
860
861         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
862         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
863         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
864         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
865         gl_FUNC_FTS_CORE.
866         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
867         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
868         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
869         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
870         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
871         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
872         gl_FUNC_FCHOWNAT.
873         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
874         gl_FUNC_STRFTIME.
875         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
876         Reported by Ralf Wildenhues.
877
878 2007-01-24  Bruno Haible  <bruno@clisp.org>
879
880         Drop AC_REQUIRE calls that are redundant with the module dependencies.
881         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
882         gl_GETADDRINFO.
883         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
884         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
885         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
886
887 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
888
889         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
890         Don't use 'exit'; just return from 'main'.
891         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
892
893         * lib/fnmatch_.h: Readjust white space and comments to match
894         glibc, to avoid spurious diffs.
895
896 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
897
898         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
899         2004-12-01 change by Jakub Jelinek, since this code won't compile
900         if !LIBC.  Problem reported by Bob Proulx.
901
902 2007-01-23  Bruno Haible  <bruno@clisp.org>
903
904         * lib/striconveh.c: Include c-strcaseeq.h.
905         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
906         * modules/striconveh (Depends-on): Add c-strcaseeq.
907
908 2007-01-23  Bruno Haible  <bruno@clisp.org>
909
910         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
911
912         * modules/c-strcaseeq: New file.
913         * lib/c-strcaseeq.h: New file.
914
915         * modules/streq: New file.
916         * lib/streq.h: New file.
917
918 2007-01-23  Bruno Haible  <bruno@clisp.org>
919
920         * modules/striconveha-tests: New file.
921         * tests/test-striconveha.c: New file.
922
923         * lib/striconveha.h: Include <stdbool.h>.
924         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
925         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
926         (mem_iconveha_notranslit): Renamed from mem_iconveha.
927         (mem_iconveha): New function.
928         (str_iconveha_notranslit): Renamed from str_iconveha.
929         (str_iconveha): New function.
930         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
931         c-strcase.
932
933 2007-01-23  Bruno Haible  <bruno@clisp.org>
934
935         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
936         encodings without forgiving before trying any encoding with handler.
937         (str_iconveha): Try all encodings without forgiving before trying any
938         encoding with handler.
939
940 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
941
942         Import the following changes from libc.
943
944         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
945
946         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
947
948         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
949
950         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
951         normal_bracket label.
952
953         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
954
955         [BZ #361]
956         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
957         to normal_bracket after fetching the next character.
958
959 2007-01-22  Bruno Haible  <bruno@clisp.org>
960
961         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
962         argument.
963         * lib/striconveh.c (iconv_carefully_1): New function.
964         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
965         argument.
966         (str_cd_iconveh): Update.
967         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
968         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
969         * tests/test-striconveh.c (MAGIC): New macro.
970         (new_offsets): New function.
971         (main): Test call with and without offsets.
972
973 2007-01-22  Bruno Haible  <bruno@clisp.org>
974
975         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
976         * modules/sys_select (Makefile.am): Likewise.
977         * modules/sys_socket (Makefile.am): Likewise.
978         * modules/sys_time (Makefile.am): Likewise.
979
980 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
981
982         * modules/gettimeofday (License): Change from GPL to LGPL, since
983         gettimeofday is a library function.
984
985 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
986
987         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
988
989 2007-01-21  Bruno Haible  <bruno@clisp.org>
990
991         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
992
993 2007-01-21  Bruno Haible  <bruno@clisp.org>
994
995         * modules/striconveha: New file.
996         * lib/striconveha.h: New file.
997         * lib/striconveha.c: New file.
998         * MODULES.html.sh (Internationalization functions): Add striconveha.
999         * lib/striconv.c (str_iconv): Optimize the case of an empty input
1000         string.
1001         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
1002
1003 2007-01-21  Bruno Haible  <bruno@clisp.org>
1004
1005         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
1006         * lib/striconveh.c (str_iconveh): Likewise.
1007
1008 2007-01-21  Bruno Haible  <bruno@clisp.org>
1009
1010         * lib/striconveh.h (mem_iconveh): New declaration.
1011         * lib/striconveh.c (mem_iconveh): New function.
1012         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
1013
1014 2007-01-21  Bruno Haible  <bruno@clisp.org>
1015
1016         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
1017
1018         * lib/striconveh.h (mem_cd_iconveh): Change specification.
1019         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
1020         original result buffer.
1021         (str_cd_iconveh): Update.
1022         * tests/test-striconveh.c (main): Update.
1023
1024         * lib/striconv.h (mem_cd_iconv): Change specification.
1025         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
1026         result buffer.
1027         (str_cd_iconv): Update.
1028         * tests/test-striconv.c (main): Update.
1029
1030 2007-01-21  Bruno Haible  <bruno@clisp.org>
1031
1032         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
1033
1034 2007-01-20  Jim Meyering  <jim@meyering.net>
1035
1036         * lib/userspec.c (parse_with_separator): If a user or group string
1037         starts with "+", skip the corresponding name-to-ID look-up, since
1038         such a look-up must fail: user and group names may not include "+".
1039
1040 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
1041
1042         * lib/poll.c: Include sys/time.h and time.h unconditionally,
1043         since we now assume the sys_time module.
1044         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
1045         check for sys/time.h; no longer needed.
1046         * modules/poll (Depends-on): Depend on sys_time.
1047
1048 2007-01-18  Bruno Haible  <bruno@clisp.org>
1049
1050         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
1051         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
1052
1053         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
1054         gettimeofday.
1055
1056         * tests/test-gettimeofday.c: Include <time.h>.
1057         (dummy): Remove variable.
1058
1059         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
1060         gl_HEADER_SYS_TIME_H.
1061         (gl_HEADER_SYS_TIME_H): New macro.
1062
1063         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
1064         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
1065         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
1066         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
1067         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
1068         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
1069         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
1070         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
1071         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
1072         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
1073         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
1074
1075         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
1076         last change; it caused a compilation error when cross-compiling to
1077         Cygwin.
1078
1079 2007-01-18  Jim Meyering  <jim@meyering.net>
1080
1081         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
1082         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
1083         than the race-prone "test -d sys || mkdir sys".
1084         (configure.ac): Use AC_PROG_MKDIR_P.
1085         * modules/sys_select: Likewise.
1086         * modules/sys_socket: Likewise.
1087         * modules/sys_time: Likewise.
1088
1089 2007-01-18  Eric Blake  <ebb9@byu.net>
1090
1091         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
1092         replace gettimeofday.
1093         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
1094         name, to avoid infinite recursion.
1095
1096 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
1097
1098         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
1099         module sys_time.
1100         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
1101         assume timespec.h defines struct timeval.
1102         * lib/settime.c: Likewise.
1103         * lib/utimens.c: Likewise.
1104         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
1105         since we now assume the gettimeofday module.
1106         * lib/tempname.c (__gen_tempname): Likewise.
1107         * lib/gettimeofday.h: Remove.
1108         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
1109         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
1110         Include <time.h>, for 'time()'.
1111         (localtime_buffer_addr): Also use this workaround if
1112         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
1113         to simplify the uses.  All uses changed.
1114         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
1115         that #undef is inside {}, and 'const' follows type name consistently.
1116         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
1117         (gettimeofday): Do not use the maximum possible value for
1118         tv->tv_usec, since that might break usages other than ls.c.
1119         Instead, we'll leave ls.c alone.  This undoes today's patch
1120         by Bruno.  Add a compile-time warning for 1s-clock resolution;
1121         we've never observed the problem but might as well keep the
1122         canary.
1123         * lib/nanosleep.c: Include timespec.h first, for interface check.
1124         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
1125         now assume the sys_time module.
1126         * lib/tempname.c: Likewise.
1127         * lib/timespec.h: Likewise.
1128         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
1129         needed.
1130         * lib/strftime.c: Likewise.
1131         * lib/timespec.h: Likewise.
1132         * lib/posixtm.c: Include posixtm.h first, for interface check.
1133         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
1134         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
1135         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
1136         * lib/sys_time_.h: New file.
1137         * lib/timespec.h (struct timespec): Use long int, not long.
1138         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
1139         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
1140         Remove obsolescent call to AC_HEADER_TIME.
1141         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
1142         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
1143         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
1144         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
1145         Likewise.
1146         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
1147         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
1148         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
1149         into the sys_time module.  Check for gettimeofday just once.
1150         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
1151         for gettimeofday signature to just check the signature.  Merely
1152         compile it, since linking doesn't test signature.  Improve test for
1153         whether gettimeofday.o is actually needed.
1154         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
1155         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
1156         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
1157         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
1158         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
1159         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
1160         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
1161         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
1162         than worrying about sys/time.h.
1163         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
1164         Don't bother worrying about TIME_WITH_SYS_TIME.
1165         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
1166         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
1167         * m4/sys_time_h.m4: New file.
1168         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
1169         Don't include sys/time.h.  Return from main rather than exiting.
1170         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
1171         all uses changed.
1172         * modules/gethrxtime (Depends-on): Add sys_time.
1173         * modules/gettime (Depends-on): Likewise.
1174         * modules/gettimeofday (Depends-on): Likewise.
1175         * modules/nanosleep (Depends-on): Likewise.
1176         * modules/settime (Depends-on): Likewise.
1177         * modules/tempname (Depends-on): Likewise.
1178         * modules/utimens (Depends-on): Likewise.
1179         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
1180         (Include:) Change back to <sys/time.h>.
1181         (Maintainer:) Add self.
1182         * modules/sys_time: New file.
1183         * modules/tempname (Depends-on): Add gettimeofday.
1184         * tests/test-gettimeofday.c: Include <sys/time.h>
1185         rather than gettimeofday.h.
1186
1187 2007-01-17  Bruno Haible  <bruno@clisp.org>
1188
1189         * gnulib-tool (func_get_license): Revert last patch. Instead, let
1190         the license default to GPL.
1191         (func_create_testdir): Don't complain if a module is LGPL and its
1192         tests module depends on GPLed modules.
1193
1194 2007-01-17  Bruno Haible  <bruno@clisp.org>
1195
1196         * lib/gettimeofday.c (gettimeofday): Add code for the case
1197         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
1198         maximum possible value for tv->tv_usec, rather than the minimum one.
1199
1200 2005-10-08  Martin Lambers  <marlam@marlam.de>
1201 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
1202 2007-01-16  Bruno Haible  <bruno@clisp.org>
1203
1204         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
1205         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
1206         gl_FUNC_GETTIMEOFDAY.
1207         (Include): Add gettimeofday.h.
1208         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
1209         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
1210         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
1211         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
1212         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
1213         * lib/gettimeofday.h: New file.
1214         * lib/gettimeofday.c: Include <sys/timeb.h>.
1215         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
1216         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
1217         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
1218         fall back on time().
1219
1220         * tests/test-gettimeofday.c: New file.
1221         * modules/gettimeofday-tests: New file.
1222
1223 2007-01-16  Eric Blake  <ebb9@byu.net>
1224
1225         * modules/fnmatch (Depends-on): Depend on wchar.
1226         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
1227         * m4/fnmatch.m4: Likewise.
1228         * modules/mbchar (Makefile.am): Assume <wchar.h>.
1229         * m4/mbchar.m4: Likewise.
1230         * modules/mbswidth (Depends-on): Depend on wchar.
1231         * lib/mbswidth.c: Assume <wchar.h>.
1232         * m4/mbswidth.m4: Likewise.
1233         * modules/quotearg (Depends-on): Depend on wchar.
1234         * lib/quotearg.c: Assume <wchar.h>.
1235         * m4/quotearg.m4: Likewise.
1236         * modules/regex (Depends-on): Depend on wchar.
1237         * lib/regex_internal.h: Assume <wchar.h>.
1238         * m4/regex.m4: Likewise.
1239         * modules/stdint (Depends-on): Depend on wchar.
1240         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
1241         * m4/stdint.m4: Likewise.
1242         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
1243         * modules/strftime (Depends-on): Depend on wchar.
1244         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
1245         * modules/strtol (Depends-on): Depend on wchar.
1246         * lib/strtol.c: Assume <wchar.h>.
1247         * modules/wcwidth (Depends-on): Depend on wchar.
1248         * lib/wcwidth.h: Assume <wchar.h>.
1249         * m4/wcwidth.m4: Likewise.
1250
1251 2007-01-16  Bruno Haible  <bruno@clisp.org>
1252
1253         * modules/csharpexec-script: New, created from...
1254         * modules/csharpexec: ... this.
1255
1256 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
1257
1258         * modules/javaexec-script: New, created from...
1259         * modules/javaexec: ... this.
1260
1261 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
1262
1263         * modules/poll (Dependencies): Add sys_select.
1264
1265 2007-01-15  Jim Meyering  <jim@meyering.net>
1266
1267         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
1268         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
1269         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
1270         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
1271
1272 2007-01-15  Bruno Haible  <bruno@clisp.org>
1273
1274         * modules/striconveh: New file.
1275         * lib/striconveh.h: New file.
1276         * lib/striconveh.c: New file.
1277         * MODULES.html.sh (Internationalization functions): Add striconveh.
1278
1279         * modules/striconveh-tests: New file.
1280         * tests/test-striconveh.c: New file.
1281
1282 2007-01-15  Bruno Haible  <bruno@clisp.org>
1283
1284         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
1285         not from GNU libiconv or GNU libc.
1286
1287 2007-01-15  Bruno Haible  <bruno@clisp.org>
1288
1289         * doc/gnulib-intro.texi (Copyright): Explain the different license
1290         terms for module descriptions, autoconf macros, tests, documentation.
1291
1292 2007-01-14  Bruno Haible  <bruno@clisp.org>
1293
1294         * modules/striconv-tests: New file.
1295         * tests/test-striconv.c: New file.
1296
1297 2007-01-14  Bruno Haible  <bruno@clisp.org>
1298
1299         * modules/iconv-tests: New file.
1300         * tests/test-iconv.c: New file.
1301
1302 2007-01-14  Bruno Haible  <bruno@clisp.org>
1303
1304         * gnulib-tool (func_get_license): For test modules, use the license of
1305         the main module.
1306
1307 2007-01-14  Bruno Haible  <bruno@clisp.org>
1308
1309         * modules/iconv (Include): Clarify that <iconv.h> can only be included
1310         if iconv is found to exist.
1311
1312 2007-01-14  Bruno Haible  <bruno@clisp.org>
1313
1314         * modules/c-ctype-tests: New file.
1315         * tests/test-c-ctype.c: New file.
1316
1317 2007-01-14  Bruno Haible  <bruno@clisp.org>
1318
1319         * modules/binary-io-tests: New file.
1320         * tests/test-binary-io.sh: New file.
1321         * tests/test-binary-io.c: New file.
1322
1323 2007-01-14  Bruno Haible  <bruno@clisp.org>
1324
1325         * modules/array-oset-tests: New file.
1326         * tests/test-array_oset.c: New file.
1327
1328 2007-01-14  Bruno Haible  <bruno@clisp.org>
1329
1330         * modules/array-list-tests: New file.
1331         * tests/test-array_list.c: New file.
1332
1333 2007-01-14  Bruno Haible  <bruno@clisp.org>
1334
1335         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
1336         and make.
1337         Reported by Simon Josefsson in
1338         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
1339
1340 2007-01-14  Bruno Haible  <bruno@clisp.org>
1341
1342         * modules/allocsa-tests: New file.
1343         * tests/test-allocsa.c: New file.
1344
1345 2007-01-14  Bruno Haible  <bruno@clisp.org>
1346
1347         * modules/fchdir (Depends-on): Add absolute-header.
1348         * modules/unistd (Depends-on): Likewise.
1349
1350 2006-12-30  Bruno Haible  <bruno@clisp.org>
1351
1352         * modules/fchdir: New file.
1353         * modules/unistd (Files): Add lib/unistd_.h.
1354         (Makefile.am): Generate unistd.h from unistd_.h.
1355         * lib/fchdir.c: New file.
1356         * lib/dirent_.h: New file.
1357         * lib/unistd_.h: New file.
1358         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
1359         * m4/fchdir.m4: New file.
1360         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
1361         (gl_HEADER_UNISTD): Invoke it.
1362         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
1363         function.
1364         * lib/backupfile.c (opendir, closedir): Undefine.
1365         * lib/chown.c (open, close): Undefine.
1366         * lib/clean-temp.c (open, close): Undefine.
1367         * lib/copy-file.c (open, close): Undefine.
1368         * lib/execute.c (open, close): Undefine.
1369         * lib/fsusage.c (open, close): Undefine.
1370         * lib/gc-gnulib.c (open, close): Undefine.
1371         * lib/getcwd.c (opendir, closedir): Undefine.
1372         * lib/glob.c (opendir, closedir): Undefine.
1373         * lib/javacomp.c (open, close): Undefine.
1374         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
1375         * lib/openat-proc.c (open, close): Undefine.
1376         * lib/pagealign_alloc.c (open, close): Undefine.
1377         * lib/pipe.c (open, close): Undefine.
1378         * lib/progreloc.c (open, close): Undefine.
1379         * lib/savedir.c (opendir, closedir): Undefine.
1380         * lib/utime.c (open, close): Undefine.
1381         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
1382
1383 2007-01-10  Bruno Haible  <bruno@clisp.org>
1384
1385         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
1386
1387 2007-01-12  Eric Blake  <ebb9@byu.net>
1388
1389         Provide a robust <wchar.h>.  Further simplifications are now
1390         possible in other modules, but not included here.
1391         * modules/wchar: New module.
1392         * m4/wchar.m4: New file.
1393         * lib/wchar_.h: Likewise.
1394         * modules/mbchar (Depends-on): Depend on wchar, as the first use
1395         of the new module.
1396         * MODULES.html.sh (Extended multibyte and wide character utilities):
1397         New section.
1398
1399 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
1400
1401         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
1402         to a reasonable default for memory allocation.
1403         (xreadlink): Don't allocate a huge buffer, to work around a buggy
1404         file system that reports garbage st_size values for symlinks.
1405         Problem reported by Liyang Hu.
1406
1407 2007-01-11  Simon Josefsson  <simon@josefsson.org>
1408
1409         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
1410         Emacs .#* auto-save files).
1411
1412 2007-01-11  Bruno Haible  <bruno@clisp.org>
1413
1414         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
1415         directory.
1416
1417 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
1418
1419         Use @...@ consistently in lib/wctype_.h.
1420         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
1421         on it being set to 1 or 0.
1422         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
1423         go back to AC_SUBSTing it.
1424         * modules/wctype (Makefile.am): Undo previous change.
1425
1426 2007-01-10  Eric Blake  <ebb9@byu.net>
1427
1428         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
1429         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
1430         * modules/wctype (Makefile.am): Likewise.
1431         Reported by Chris McGuire.
1432
1433 2007-01-10  Jim Meyering  <jim@meyering.net>
1434
1435         fts.c: a small readability/maintainability improvement
1436         * lib/fts.c (fts_read): Make this code slightly more readable and
1437         maintainable by hoisting the "sp->fts_cur = p" assignments to
1438         immediately follow the statements that set P.  Derived from
1439         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
1440
1441 2007-01-10  Eric Blake  <ebb9@byu.net>
1442
1443         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
1444         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
1445         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
1446         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
1447         Reported by Chris McGuire.
1448
1449 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1450
1451         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
1452         in sed script.
1453
1454 2007-01-09  Bruno Haible  <bruno@clisp.org>
1455
1456         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
1457         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
1458         variables.
1459         (func_module): Use them.
1460
1461 2007-01-09  Bruno Haible  <bruno@clisp.org>
1462
1463         * modules/unistr/base: New file.
1464         * lib/unistr.h: New file.
1465
1466         * modules/unistr/u8-to-u16: New file.
1467         * lib/unistr/u8-to-u16.c: New file.
1468
1469         * modules/unistr/u8-to-u32: New file.
1470         * lib/unistr/u8-to-u32.c: New file.
1471
1472         * modules/unistr/u16-to-u8: New file.
1473         * lib/unistr/u16-to-u8.c: New file.
1474
1475         * modules/unistr/u16-to-u32: New file.
1476         * lib/unistr/u16-to-u32.c: New file.
1477
1478         * modules/unistr/u32-to-u8: New file.
1479         * lib/unistr/u32-to-u8.c: New file.
1480
1481         * modules/unistr/u32-to-u16: New file.
1482         * lib/unistr/u32-to-u16.c: New file.
1483
1484         * modules/unistr/u8-check: New file.
1485         * modules/unistr/u16-check: New file.
1486         * modules/unistr/u32-check: New file.
1487         * lib/unistr/u8-check.c: New file.
1488         * lib/unistr/u16-check.c: New file.
1489         * lib/unistr/u32-check.c: New file.
1490
1491         * modules/unistr/u8-chr: New file.
1492         * modules/unistr/u16-chr: New file.
1493         * modules/unistr/u32-chr: New file.
1494         * lib/unistr/u8-chr.c: New file.
1495         * lib/unistr/u16-chr.c: New file.
1496         * lib/unistr/u32-chr.c: New file.
1497
1498         * modules/unistr/u8-cmp: New file.
1499         * modules/unistr/u16-cmp: New file.
1500         * modules/unistr/u32-cmp: New file.
1501         * lib/unistr/u8-cmp.c: New file.
1502         * lib/unistr/u16-cmp.c: New file.
1503         * lib/unistr/u32-cmp.c: New file.
1504
1505         * modules/unistr/u8-cpy: New file.
1506         * modules/unistr/u16-cpy: New file.
1507         * modules/unistr/u32-cpy: New file.
1508         * lib/unistr/u8-cpy.c: New file.
1509         * lib/unistr/u16-cpy.c: New file.
1510         * lib/unistr/u32-cpy.c: New file.
1511         * lib/unistr/u-cpy.h: New file.
1512
1513         * modules/unistr/u8-cpy-alloc: New file.
1514         * modules/unistr/u16-cpy-alloc: New file.
1515         * modules/unistr/u32-cpy-alloc: New file.
1516         * lib/unistr/u8-cpy-alloc.c: New file.
1517         * lib/unistr/u16-cpy-alloc.c: New file.
1518         * lib/unistr/u32-cpy-alloc.c: New file.
1519         * lib/unistr/u-cpy-alloc.h: New file.
1520
1521         * modules/unistr/u8-endswith: New file.
1522         * modules/unistr/u16-endswith: New file.
1523         * modules/unistr/u32-endswith: New file.
1524         * lib/unistr/u8-endswith.c: New file.
1525         * lib/unistr/u16-endswith.c: New file.
1526         * lib/unistr/u32-endswith.c: New file.
1527         * lib/unistr/u-endswith.h: New file.
1528
1529         * modules/unistr/u8-mblen: New file.
1530         * modules/unistr/u16-mblen: New file.
1531         * modules/unistr/u32-mblen: New file.
1532         * lib/unistr/u8-mblen.c: New file.
1533         * lib/unistr/u16-mblen.c: New file.
1534         * lib/unistr/u32-mblen.c: New file.
1535
1536         * modules/unistr/u8-mbtouc: New file.
1537         * modules/unistr/u16-mbtouc: New file.
1538         * modules/unistr/u32-mbtouc: New file.
1539         * lib/unistr/u8-mbtouc.c: New file.
1540         * lib/unistr/u16-mbtouc.c: New file.
1541         * lib/unistr/u32-mbtouc.c: New file.
1542
1543         * modules/unistr/u8-mbtouc-safe: New file.
1544         * modules/unistr/u16-mbtouc-safe: New file.
1545         * modules/unistr/u32-mbtouc-safe: New file.
1546         * lib/unistr/u8-mbtouc-safe.c: New file.
1547         * lib/unistr/u16-mbtouc-safe.c: New file.
1548         * lib/unistr/u32-mbtouc-safe.c: New file.
1549
1550         * modules/unistr/u8-move: New file.
1551         * modules/unistr/u16-move: New file.
1552         * modules/unistr/u32-move: New file.
1553         * lib/unistr/u8-move.c: New file.
1554         * lib/unistr/u16-move.c: New file.
1555         * lib/unistr/u32-move.c: New file.
1556         * lib/unistr/u-move.h: New file.
1557
1558         * modules/unistr/u8-next: New file.
1559         * modules/unistr/u16-next: New file.
1560         * modules/unistr/u32-next: New file.
1561         * lib/unistr/u8-next.c: New file.
1562         * lib/unistr/u16-next.c: New file.
1563         * lib/unistr/u32-next.c: New file.
1564
1565         * modules/unistr/u8-prev: New file.
1566         * modules/unistr/u16-prev: New file.
1567         * modules/unistr/u32-prev: New file.
1568         * lib/unistr/u8-prev.c: New file.
1569         * lib/unistr/u16-prev.c: New file.
1570         * lib/unistr/u32-prev.c: New file.
1571
1572         * modules/unistr/u8-set: New file.
1573         * modules/unistr/u16-set: New file.
1574         * modules/unistr/u32-set: New file.
1575         * lib/unistr/u8-set.c: New file.
1576         * lib/unistr/u16-set.c: New file.
1577         * lib/unistr/u32-set.c: New file.
1578         * lib/unistr/u-set.h: New file.
1579
1580         * modules/unistr/u8-startswith: New file.
1581         * modules/unistr/u16-startswith: New file.
1582         * modules/unistr/u32-startswith: New file.
1583         * lib/unistr/u8-startswith.c: New file.
1584         * lib/unistr/u16-startswith.c: New file.
1585         * lib/unistr/u32-startswith.c: New file.
1586         * lib/unistr/u-startswith.h: New file.
1587
1588         * modules/unistr/u8-stpcpy: New file.
1589         * modules/unistr/u16-stpcpy: New file.
1590         * modules/unistr/u32-stpcpy: New file.
1591         * lib/unistr/u8-stpcpy.c: New file.
1592         * lib/unistr/u16-stpcpy.c: New file.
1593         * lib/unistr/u32-stpcpy.c: New file.
1594         * lib/unistr/u-stpcpy.h: New file.
1595
1596         * modules/unistr/u8-stpncpy: New file.
1597         * modules/unistr/u16-stpncpy: New file.
1598         * modules/unistr/u32-stpncpy: New file.
1599         * lib/unistr/u8-stpncpy.c: New file.
1600         * lib/unistr/u16-stpncpy.c: New file.
1601         * lib/unistr/u32-stpncpy.c: New file.
1602         * lib/unistr/u-stpncpy.h: New file.
1603
1604         * modules/unistr/u8-strcat: New file.
1605         * modules/unistr/u16-strcat: New file.
1606         * modules/unistr/u32-strcat: New file.
1607         * lib/unistr/u8-strcat.c: New file.
1608         * lib/unistr/u16-strcat.c: New file.
1609         * lib/unistr/u32-strcat.c: New file.
1610         * lib/unistr/u-strcat.h: New file.
1611
1612         * modules/unistr/u8-strchr: New file.
1613         * modules/unistr/u16-strchr: New file.
1614         * modules/unistr/u32-strchr: New file.
1615         * lib/unistr/u8-strchr.c: New file.
1616         * lib/unistr/u16-strchr.c: New file.
1617         * lib/unistr/u32-strchr.c: New file.
1618
1619         * modules/unistr/u8-strcmp: New file.
1620         * modules/unistr/u16-strcmp: New file.
1621         * modules/unistr/u32-strcmp: New file.
1622         * lib/unistr/u8-strcmp.c: New file.
1623         * lib/unistr/u16-strcmp.c: New file.
1624         * lib/unistr/u32-strcmp.c: New file.
1625
1626         * modules/unistr/u8-strcpy: New file.
1627         * modules/unistr/u16-strcpy: New file.
1628         * modules/unistr/u32-strcpy: New file.
1629         * lib/unistr/u8-strcpy.c: New file.
1630         * lib/unistr/u16-strcpy.c: New file.
1631         * lib/unistr/u32-strcpy.c: New file.
1632         * lib/unistr/u-strcpy.h: New file.
1633
1634         * modules/unistr/u8-strcspn: New file.
1635         * modules/unistr/u16-strcspn: New file.
1636         * modules/unistr/u32-strcspn: New file.
1637         * lib/unistr/u8-strcspn.c: New file.
1638         * lib/unistr/u16-strcspn.c: New file.
1639         * lib/unistr/u32-strcspn.c: New file.
1640         * lib/unistr/u-strcspn.h: New file.
1641
1642         * modules/unistr/u8-strdup: New file.
1643         * modules/unistr/u16-strdup: New file.
1644         * modules/unistr/u32-strdup: New file.
1645         * lib/unistr/u8-strdup.c: New file.
1646         * lib/unistr/u16-strdup.c: New file.
1647         * lib/unistr/u32-strdup.c: New file.
1648         * lib/unistr/u-strdup.h: New file.
1649
1650         * modules/unistr/u8-strlen: New file.
1651         * modules/unistr/u16-strlen: New file.
1652         * modules/unistr/u32-strlen: New file.
1653         * lib/unistr/u8-strlen.c: New file.
1654         * lib/unistr/u16-strlen.c: New file.
1655         * lib/unistr/u32-strlen.c: New file.
1656         * lib/unistr/u-strlen.h: New file.
1657
1658         * modules/unistr/u8-strmblen: New file.
1659         * modules/unistr/u16-strmblen: New file.
1660         * modules/unistr/u32-strmblen: New file.
1661         * lib/unistr/u8-strmblen.c: New file.
1662         * lib/unistr/u16-strmblen.c: New file.
1663         * lib/unistr/u32-strmblen.c: New file.
1664
1665         * modules/unistr/u8-strmbtouc: New file.
1666         * modules/unistr/u16-strmbtouc: New file.
1667         * modules/unistr/u32-strmbtouc: New file.
1668         * lib/unistr/u8-strmbtouc.c: New file.
1669         * lib/unistr/u16-strmbtouc.c: New file.
1670         * lib/unistr/u32-strmbtouc.c: New file.
1671
1672         * modules/unistr/u8-strncat: New file.
1673         * modules/unistr/u16-strncat: New file.
1674         * modules/unistr/u32-strncat: New file.
1675         * lib/unistr/u8-strncat.c: New file.
1676         * lib/unistr/u16-strncat.c: New file.
1677         * lib/unistr/u32-strncat.c: New file.
1678         * lib/unistr/u-strncat.h: New file.
1679
1680         * modules/unistr/u8-strncmp: New file.
1681         * modules/unistr/u16-strncmp: New file.
1682         * modules/unistr/u32-strncmp: New file.
1683         * lib/unistr/u8-strncmp.c: New file.
1684         * lib/unistr/u16-strncmp.c: New file.
1685         * lib/unistr/u32-strncmp.c: New file.
1686
1687         * modules/unistr/u8-strncpy: New file.
1688         * modules/unistr/u16-strncpy: New file.
1689         * modules/unistr/u32-strncpy: New file.
1690         * lib/unistr/u8-strncpy.c: New file.
1691         * lib/unistr/u16-strncpy.c: New file.
1692         * lib/unistr/u32-strncpy.c: New file.
1693         * lib/unistr/u-strncpy.h: New file.
1694
1695         * modules/unistr/u8-strnlen: New file.
1696         * modules/unistr/u16-strnlen: New file.
1697         * modules/unistr/u32-strnlen: New file.
1698         * lib/unistr/u8-strnlen.c: New file.
1699         * lib/unistr/u16-strnlen.c: New file.
1700         * lib/unistr/u32-strnlen.c: New file.
1701         * lib/unistr/u-strnlen.h: New file.
1702
1703         * modules/unistr/u8-strpbrk: New file.
1704         * modules/unistr/u16-strpbrk: New file.
1705         * modules/unistr/u32-strpbrk: New file.
1706         * lib/unistr/u8-strpbrk.c: New file.
1707         * lib/unistr/u16-strpbrk.c: New file.
1708         * lib/unistr/u32-strpbrk.c: New file.
1709         * lib/unistr/u-strpbrk.h: New file.
1710
1711         * modules/unistr/u8-strrchr: New file.
1712         * modules/unistr/u16-strrchr: New file.
1713         * modules/unistr/u32-strrchr: New file.
1714         * lib/unistr/u8-strrchr.c: New file.
1715         * lib/unistr/u16-strrchr.c: New file.
1716         * lib/unistr/u32-strrchr.c: New file.
1717
1718         * modules/unistr/u8-strspn: New file.
1719         * modules/unistr/u16-strspn: New file.
1720         * modules/unistr/u32-strspn: New file.
1721         * lib/unistr/u8-strspn.c: New file.
1722         * lib/unistr/u16-strspn.c: New file.
1723         * lib/unistr/u32-strspn.c: New file.
1724         * lib/unistr/u-strspn.h: New file.
1725
1726         * modules/unistr/u8-strstr: New file.
1727         * modules/unistr/u16-strstr: New file.
1728         * modules/unistr/u32-strstr: New file.
1729         * lib/unistr/u8-strstr.c: New file.
1730         * lib/unistr/u16-strstr.c: New file.
1731         * lib/unistr/u32-strstr.c: New file.
1732         * lib/unistr/u-strstr.h: New file.
1733
1734         * modules/unistr/u8-strtok: New file.
1735         * modules/unistr/u16-strtok: New file.
1736         * modules/unistr/u32-strtok: New file.
1737         * lib/unistr/u8-strtok.c: New file.
1738         * lib/unistr/u16-strtok.c: New file.
1739         * lib/unistr/u32-strtok.c: New file.
1740         * lib/unistr/u-strtok.h: New file.
1741
1742         * modules/unistr/u8-uctomb: New file.
1743         * modules/unistr/u16-uctomb: New file.
1744         * modules/unistr/u32-uctomb: New file.
1745         * lib/unistr/u8-uctomb.c: New file.
1746         * lib/unistr/u16-uctomb.c: New file.
1747         * lib/unistr/u32-uctomb.c: New file.
1748
1749         * MODULES.html.sh (Unicode string functions): Add the new modules.
1750
1751 2007-01-08  Bruno Haible  <bruno@clisp.org>
1752
1753         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
1754         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
1755         subdirectories.
1756
1757 2007-01-08  Karl Berry  <karl@gnu.org>
1758
1759         * doc/error.texi: mention that main() fns must set program_name
1760         when progname is used.
1761
1762 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
1763
1764         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
1765         WCTYPE_H is empty, for the benefit of builds from non-distclean
1766         directories.  Problem reported by Eric Blake in
1767         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
1768
1769 2007-01-08  Bruno Haible  <bruno@clisp.org>
1770
1771         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
1772         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
1773         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
1774         PROVIDE_CANONICALIZE_FILENAME_MODE.
1775         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
1776
1777 2007-01-08  Bruno Haible  <bruno@clisp.org>
1778
1779         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
1780         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
1781         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
1782         * lib/fts.c: Likewise.
1783         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
1784
1785 2006-12-25  Bruno Haible  <bruno@clisp.org>
1786
1787         * modules/utf8-ucs4-safe: New file.
1788         * lib/utf8-ucs4-safe.h: New file.
1789         * lib/unistr/utf8-ucs4-safe.c: New file.
1790
1791         * modules/utf16-ucs4-safe: New file.
1792         * lib/utf16-ucs4-safe.h: New file.
1793         * lib/unistr/utf16-ucs4-safe.c: New file.
1794
1795         * MODULES.html.sh (Unicode string functions): Add the new modules.
1796
1797 2007-01-08  Bruno Haible  <bruno@clisp.org>
1798
1799         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
1800         (Depends-on): Add unitypes.
1801         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
1802         (u8_mbtouc_aux): Move out to separate file.
1803         (u8_mbtouc): Use ucs4_t, uint8_t types.
1804         * lib/unistr/utf8-ucs4.c: New file.
1805
1806         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
1807         (Depends-on): Add unitypes.
1808         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
1809         (u16_mbtouc_aux): Move out to separate file.
1810         (u16_mbtouc): Use ucs4_t, uint16_t types.
1811         * lib/unistr/utf16-ucs4.c: New file.
1812
1813         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
1814         (Depends-on): Add unitypes.
1815         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
1816         (u8_uctomb_aux): Move out to separate file.
1817         (u8_uctomb): Use ucs4_t, uint8_t types.
1818         * lib/unistr/ucs4-utf8.c: New file.
1819
1820         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
1821         (Depends-on): Add unitypes.
1822         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
1823         (u16_uctomb_aux): Move out to separate file.
1824         (u16_uctomb): Use ucs4_t, uint16_t types.
1825         * lib/unistr/ucs4-utf16.c: New file.
1826
1827 2006-12-25  Bruno Haible  <bruno@clisp.org>
1828
1829         * modules/unitypes: New file.
1830         * lib/unitypes.h: New file.
1831         * MODULES.html.sh (func_all_modules): New section "Unicode string
1832         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
1833         this section. Add unitypes.
1834
1835 2007-01-08  Bruno Haible  <bruno@clisp.org>
1836
1837         Avoid variable names that conflict with those from libtool.
1838         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
1839         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
1840         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
1841         library_names_spec to acl_library_names_spec, hardcode_* to
1842         acl_hardcode_*.
1843         Reported by Ralf Wildenhues.
1844
1845 2007-01-08  Bruno Haible  <bruno@clisp.org>
1846
1847         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
1848         definition.
1849         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
1850         definition.
1851         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
1852         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
1853         definition.
1854         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
1855         definition.
1856         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
1857         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
1858         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
1859         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
1860         definition.
1861         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
1862         definition.
1863         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
1864         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
1865         GC_USE_<algorithm>.
1866         * lib/gc-libgcrypt.c: Likewise.
1867         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
1868         * modules/gc-arctwo (configure.ac): Likewise.
1869         * modules/gc-des (configure.ac): Likewise.
1870         * modules/gc-hmac-md5 (configure.ac): Likewise.
1871         * modules/gc-hmac-sha1 (configure.ac): Likewise.
1872         * modules/gc-md2 (configure.ac): Likewise.
1873         * modules/gc-md4 (configure.ac): Likewise.
1874         * modules/gc-md5 (configure.ac): Likewise.
1875         * modules/gc-random (configure.ac): Likewise.
1876         * modules/gc-rijndael (configure.ac): Likewise.
1877         * modules/gc-sha1 (configure.ac): Likewise.
1878
1879 2007-01-08  Bruno Haible  <bruno@clisp.org>
1880
1881         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
1882         macro definition.
1883         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
1884         definition.
1885         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
1886         definition.
1887         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
1888         * modules/fcntl-safer (configure.ac): Likewise.
1889         * modules/fopen-safer (configure.ac): Likewise.
1890         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
1891         GNULIB_FWRITEERROR macro definition.
1892
1893 2007-01-08  Bruno Haible  <bruno@clisp.org>
1894
1895         * m4/gnulib-common.m4: New file.
1896         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
1897         (func_get_filelist): Add m4/gnulib-common.m4.
1898
1899 2007-01-08  Bruno Haible  <bruno@clisp.org>
1900
1901         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
1902         command.
1903
1904 2007-01-08  Jim Meyering  <jim@meyering.net>
1905
1906         Use a more robust test for a "can't happen" condition.
1907         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
1908         narrowed the st_size value.  Presuming the "can't happen" condition
1909         is true, that narrowing could conceivably convert an invalid st_size
1910         value into a valid one.  Instead, use a change based on Matthew
1911         Woehlke's original patch.
1912
1913         Slight readability improvement: use an assert-like macro
1914         in place of literal "abort ()" uses.
1915         * lib/fts.c (fts_assert): Define.
1916         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
1917         Use this macro instead of a bare 'abort'.
1918
1919 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
1920
1921         Don't worry about using IRIX 5.3's wctype.h broken definitions;
1922         simply work around them.
1923         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
1924         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
1925         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before declaring.
1926         Don't bother to define as macros, since the standard doesn't require it.
1927         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
1928         longer worry about IRIX 5.3.
1929         (HAVE_WCTYPE_CTMP_BUG): Remove.
1930
1931 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
1932
1933         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
1934         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
1935         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
1936         Problems reported by Georg Schwarz for IRIX 5.3.
1937
1938         * gnulib-tool (autoconf_minversion): Take the maximum version number
1939         found, not the minimum.  Problem reported by James Youngman.
1940
1941 2007-01-03  Karl Berry  <karl@gnu.org>
1942
1943         * doc/error.texi: new file, explaining interaction with progname.
1944         * doc/gnulib.texi: include it.  Update copyright.
1945
1946 2007-01-03  Simon Josefsson  <simon@josefsson.org>
1947
1948         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
1949         AC_CANONICAL_HOST, to improve autobuild outputs.
1950
1951 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
1952             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
1953
1954         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
1955         sockets, server sockets, and other file descriptors.  Count errors
1956         to compute the return value.  Reorder the code a bit to be easier
1957         to follow.  Don't set event bits that were not requested (except
1958         POLLERR and POLLHUP).
1959
1960 2007-01-01  Bruno Haible  <bruno@clisp.org>
1961
1962         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
1963
1964 2007-01-03  Jim Meyering  <jim@meyering.net>
1965
1966         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
1967
1968 2007-01-02  Bruno Haible  <bruno@clisp.org>
1969
1970         * modules/settime (Include): Require timespec.h.
1971         * modules/nanosleep (Include): Likewise.
1972
1973 2007-01-01  Bruno Haible  <bruno@clisp.org>
1974
1975         * gnulib-tool (func_emit_copyright_notice): Bump year.
1976         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
1977
1978 2007-01-01  Bruno Haible  <bruno@clisp.org>
1979
1980         Improve support for OpenBSD.
1981         * build-aux/config.rpath (libname_spec): Export.
1982         (library_names_spec): New variable. Export.
1983         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
1984         library_names_spec from the config.rpath output. Locate shared library
1985         through the name pattern in library_names_spec.
1986
1987 2007-01-01  Eric Blake  <ebb9@byu.net>
1988
1989         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
1990
1991 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
1992
1993         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
1994         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
1995         assume the C locale, and avoid an "eval" that could cause trouble.
1996         Problem with SORT reported by Bob Proulx.
1997
1998         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
1999         Define.  Trivial patch from Henning Nielsen Lund, originally
2000         sent to bug-grep@gnu.org today.
2001
2002 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
2003
2004         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
2005         struct stat.  Problem reported by Henning Nielsen Lund.
2006         * lib/acl.c: Include acl.h first, to check interface.  Don't
2007         bother to include sys/types.h and sys/stat.h again.
2008
2009 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
2010
2011         Import the following change from libc; problem reported by
2012         Sven Verdoolaege.
2013
2014         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
2015
2016         [BZ #1373]
2017         * lib/argp.h: Remove __NTH for __argp_usage inline function.
2018
2019 2006-12-28  Jim Meyering  <jim@meyering.net>
2020
2021         * build-aux/announce-gen: Do not assume that the package
2022         builds any of tar.gz, tar.bz2, and .xdelta files.
2023         Suggestion from Simon Josefsson.
2024
2025 2006-12-28  Simon Josefsson  <simon@josefsson.org>
2026
2027         * modules/announce-gen: New file.
2028
2029 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
2030
2031         * lib/mbchar.h: Just include <wctype.h>; the wctype module
2032         handles its gotchas now.
2033         * lib/mbswidth.c: Likewise.
2034         * lib/wcwidth.h: Likewise.
2035         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
2036         and iswcntrl; the wctype module does this stuff now.
2037         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
2038         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
2039         * modules/mbchar (Depends-on): Add wctype.
2040         * modules/mbswidth (Depends-on): Likewise.
2041         * modules/wcwidth (Depends-on): Likewise.
2042
2043 2006-12-27  Eric Blake  <ebb9@byu.net>
2044
2045         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
2046         module uses more than what <wctype.h> is required to provide.
2047
2048 2006-12-26  Eric Blake  <ebb9@byu.net>
2049
2050         * gnulib-tool (sed_extract_prog): Avoid space-tab.
2051
2052 2006-12-26  Eric Blake  <ebb9@byu.net>
2053
2054         * modules/absolute-header: New module.
2055         * modules/fcntl (Depends-on): Depend on it.
2056         * modules/inttypes (Depends-on): Likewise.
2057         * modules/stdint (Depends-on): Likewise.
2058         * modules/sys_stat (Depends-on): Likewise.
2059         * modules/wctype (Depends-on): Likewise.
2060         * MODULES.html.sh (Support for building libraries and
2061         executables): Document it.
2062
2063 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
2064
2065         * gnulib-tool (SED): Remove, undoing previous change.
2066         The problem was that it broke coreutils on Solaris, because
2067         "sed --posix" leaked into a makefile.
2068         (sed): New alias, if 'alias' and GNU sed.
2069
2070 2006-12-24  Jim Meyering  <jim@meyering.net>
2071
2072         Work around an fchownat bug in glibc-2.4:
2073         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
2074         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
2075         in spite of the -P option.
2076         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
2077         New macros.
2078         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
2079         * modules/openat (Files): Add lib/fchownat.c.
2080         * lib/openat.c (fchownat): Don't define here.  Move to...
2081         * lib/fchownat.c: ...this new file.
2082
2083 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
2084
2085         Fix bug reported by Bruno Haible in
2086         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
2087         where quotearg.c didn't compile on Mac OS X 10.2 because it
2088         lacks <wchar.h> and wint_t.
2089         * lib/wctype_.h (__wctype_wint_t): New type.
2090         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
2091         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
2092         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
2093         Arg is now of type __wctype_wint_t, not wint_t.
2094         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
2095         substitute HAVE_WINT_T.
2096         * modules/wctype (Files): Add m4/wint_t.m4.
2097         (wctype.h): Substitute HAVE_WINT_T.
2098
2099 2006-12-23  Bruno Haible  <bruno@clisp.org>
2100
2101         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
2102
2103 2006-12-23  Bruno Haible  <bruno@clisp.org>
2104
2105         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
2106         S_ISLNK.
2107         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
2108         mingw.
2109
2110 2006-12-22  Bruno Haible  <bruno@clisp.org>
2111
2112         * lib/copy-file.c: Include acl.h.
2113         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
2114         Close the file descriptors only after being done with copy_acl.
2115         * modules/copy-file (Depends-on): Add acl.
2116
2117 2006-12-22  Bruno Haible  <bruno@clisp.org>
2118
2119         * gnulib-tool (SED): New variable.
2120         Use $SED instead of sed everywhere.
2121
2122 2006-12-22  Bruno Haible  <bruno@clisp.org>
2123
2124         * modules/no-c++: New file.
2125         * m4/no-c++.m4: New file.
2126         * MODULES.html.sh (Support for building libraries and executables):
2127         Add no-c++.
2128
2129 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
2130
2131         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
2132         Include <limits.h>, and use its INT_MAX to rewrite the
2133         j loop so that it does not overflow 'int'.  Problem reported by
2134         Ralf Wildenhues in
2135         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
2136         Play it safe by shifting left by 1 rather than multiplying by 2,
2137         as GCC is less likely to optimize this away when the value
2138         is signed (when it assumes overflow leads to undefined behavior).
2139         Also, don't assume time_t uses two's complement.
2140
2141 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
2142
2143         * MODULES.html.sh: New module wctype.
2144         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
2145         * lib/fnmatch.c: Don't bother to include <wchar.h> before
2146         <wctype.h>, since the new wctype module should fix this.
2147         * lib/quotearg.c: Include <wctype.h> unconditionally, since
2148         the wctype module should arrange for it.
2149         * lib/regex_internal.h: Likewise.
2150         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
2151         since the wctype module should handle this now.
2152         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
2153         * modules/fnmatch (Depends-on): Add wctype.
2154         * modules/quotearg (Depends-on): Likewise.
2155         * modules/regex (Depends-on): Likewise.
2156
2157 2006-12-19  Bruno Haible  <bruno@clisp.org>
2158
2159         * lib/strdup.h [C++]: Wrap definitions in extern "C".
2160         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
2161
2162 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2163
2164         * modules/savewd (Depends-on): Fix dependency on fcntl.
2165
2166 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
2167
2168         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
2169         conforms to C99, rather than relying on the user's environment
2170         setting of STDINT_H.
2171
2172 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
2173         and Eric Blake  <ebb9@byu.net>
2174
2175         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
2176         This is more consistent with the other defines here.
2177         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
2178         Port to z/OS.  Problem reported by Paul Gilmartin.
2179         Change local vars to use gl_ prefix rather than ac_.
2180         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
2181         with other defines.
2182         * modules/double-slash-root: New module.
2183         * modules/dirname (Files): Remove m4/double-slash-root.m4.
2184         (Depends-on): Add double-slash-root.
2185         * MODULES.html.sh (File system functions): Mention new module.
2186
2187 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
2188
2189         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
2190         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
2191         This is for the benefit of gzip, which doesn't do i18n.
2192
2193 2006-12-12  Jim Meyering  <jim@meyering.net>
2194
2195         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
2196         Reported by Andreas Schwab <schwab@suse.de>.
2197
2198 2006-12-12  Bruno Haible  <bruno@clisp.org>
2199
2200         Merge these changes.
2201         2006-09-05  Bruno Haible  <bruno@clisp.org>
2202         * lib/iconvme.c (iconv_string): No need to save and restore errno when
2203         iconv_alloc succeeded.
2204         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
2205         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
2206         test for " && dest " at the end - dest is always != NULL there. Call
2207         iconv with 4xNULL arguments initially, to reset the state. Call iconv
2208         with 2xNULL arguments, also to flush the state storage. Handle the
2209         IRIX iconv behaviour. Realloc the final result, to throw away unused
2210         memory.
2211
2212 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
2213
2214         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
2215         and fchmodat unconditionally, since glibc 2.4 has them.
2216         Problem reported by Arkadiusz Miskiewicz.
2217
2218 2006-12-10  Bruno Haible  <bruno@clisp.org>
2219
2220         * gnulib-tool (func_import): Show the include files only for those
2221         modules that are copied and specified.
2222         Reported by Karl Berry.
2223
2224 2006-12-08  Jim Meyering  <jim@meyering.net>
2225
2226         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
2227         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
2228
2229         * build-aux/announce-gen: Add two new options, both optional:
2230         --bootstrap-tools=TOOL_LIST
2231               a comma-separated list of tools, e.g.,
2232               autoconf,automake,bison,gnulib
2233         --gnulib-snapshot-date=DATE
2234               if gnulib is in the bootstrap tool list,
2235               then report this as the snapshot date.
2236               If not specified, use the current date/time.
2237               If you specify a date here, be sure it's UTC.
2238
2239 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2240
2241         * tests/test-argp-2.sh: Fix test to match actual output.
2242         (func_compare): Fix sed script to be portable.
2243
2244 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
2245
2246         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
2247         workaround for this case.  It is not autoconfigured now; offhand
2248         it's hard to see how to autoconfigure it.
2249
2250 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
2251
2252         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
2253         a directory that is about to be chowned.  Such a directory's
2254         initial file permissions should permit the owner only and this
2255         should not be changed until after the chown, since the group and
2256         other bits would be incorrect if they granted permission before
2257         the chown.
2258
2259         Fix porting problem for iswctype reported by Georg Schwarz in:
2260         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
2261         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
2262         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
2263         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
2264         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
2265
2266 2006-12-03  Jim Meyering  <jim@meyering.net>
2267
2268         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
2269         p->fts_statp may not yet be defined.
2270         (fts_read): Instead, set it in the caller, once p->fts_statp is
2271         sure to be defined, and corresponds to a top-level directory.
2272         This bug made du -x fail.  Here's the coreutils test case:
2273         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
2274         Reported by Mike Frysinger.
2275
2276 2006-12-01  Jim Meyering  <jim@meyering.net>
2277
2278         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
2279         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
2280         Reported by Simon Josefsson.
2281
2282 2006-11-30  Jim Meyering  <jim@meyering.net>
2283
2284         * m4/warning.m4: Use the all-permissive copyright notice
2285         recommended by RMS (rather than LGPL).
2286         * m4/vararrays.m4: Likewise.
2287         * m4/flexmember.m4: Likewise.
2288
2289 2006-11-29  Bruno Haible  <bruno@clisp.org>
2290
2291         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
2292         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
2293         using +=.
2294         Reported by Simon Josefsson <simon@josefsson.org>.
2295
2296 2006-11-28  James Youngman <jay@gnu.org>
2297
2298         * README: Advise users that they might find the bug-gnulib@gnu.org
2299         and autotools-announce@gnu.org mailing lists useful.
2300
2301 2006-11-28  Bruno Haible  <bruno@clisp.org>
2302
2303         * m4/ptrdiff_max.m4: Remove file.
2304
2305 2006-11-21  Bruno Haible  <bruno@clisp.org>
2306
2307         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
2308         _AC_COMPUTE_INT.
2309         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
2310         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
2311         _AC_COMPUTE_INT.
2312         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
2313         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
2314         _AC_COMPUTE_INT.
2315         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
2316
2317 2006-11-28  Jim Meyering  <jim@meyering.net>
2318
2319         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
2320         warning from "gcc -Wshadow" about shadowing the builtin.
2321
2322 2006-11-27  Bruno Haible  <bruno@clisp.org>
2323
2324         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
2325         _AC_COMPUTE_INT.
2326         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
2327
2328 2006-11-27  Bruno Haible  <bruno@clisp.org>
2329             Paul Eggert  <eggert@cs.ucla.edu>
2330
2331         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
2332
2333 2006-11-26  Bruno Haible  <bruno@clisp.org>
2334
2335         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
2336         noinst_LTLIBRARIES.
2337
2338 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
2339             Bruno Haible  <bruno@clisp.org>
2340
2341         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
2342         if compiling with "gcc -ansi".
2343
2344 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
2345
2346         Fix some incompatibilities with gcc -ansi -pedantic.
2347         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
2348         if compiling pedantically with GCC, unless it's C99 or later.
2349         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
2350         it mishandles gcc -ansi -pedantic as well.
2351         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
2352         if gcc -pedantic.
2353         * lib/regexec.c (check_node_accept_bytes): Don't use auto
2354         initializers for struct if -pedantic, unless it's C99 or later.
2355
2356 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
2357
2358         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
2359         Don't close an fd more than once. Identical atimes indicate
2360         success, not failure.
2361
2362 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
2363
2364         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
2365
2366 2006-11-23  Jim Meyering  <jim@meyering.net>
2367
2368         * build-aux/announce-gen: New file.  From coreutils.
2369
2370 2006-11-22  Jim Meyering  <jim@meyering.net>
2371
2372         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
2373         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
2374         (fts_read): Use a temporary to narrow the overused st_size member
2375         before using it in a switch statement.  Reported by Matthew Woehlke.
2376
2377         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
2378         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
2379
2380 2006-11-20  Bruno Haible  <bruno@clisp.org>
2381
2382         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
2383         changequote instead of pairs of brackets.
2384         Reported by Andreas Schwab <schwab@suse.de>.
2385
2386 2006-11-21  Jim Meyering  <jim@meyering.net>
2387
2388         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
2389         so as to remain compatible with older compilers.
2390         Patch from Michael Deutschmann.
2391
2392 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
2393
2394         * MODULES.html.sh (File system functions): Add openat.
2395
2396         * lib/openat.h (rpl_fstatat): New macro, if
2397         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
2398         (fstatat): Define to rpl_fstatat under the same conditions,
2399         unless COMPILING_FSTATAT.
2400         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
2401         seems to have the bug.
2402         * lib/fstatat.c: New file.
2403         * modules/openat (Files): Add it.
2404
2405 2006-11-20  Bruno Haible  <bruno@clisp.org>
2406
2407         * Makefile: New file.
2408
2409 2006-11-20  Jim Meyering  <jim@meyering.net>
2410
2411         The beginnings of syntax-related checks for gnulib.
2412         * lib/Makefile: New file.
2413         * lib/t-idcache: New script.  Ensure that the two halves of
2414         idcache.c stay in sync.
2415
2416         * lib/idcache.c: Adjust comments in user- and group- portions to
2417         be more accurate, and to be consistent with one another.
2418
2419 2006-11-20  Jim Meyering  <jim@meyering.net>
2420
2421         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
2422         continue using the flexible array member (thus, this module performs
2423         half as many malloc calls), with the addition that...
2424         (getgroup, getuser): Consistently record a non-match via an empty
2425         "name" string, and map an empty string match to a NULL return value.
2426         * modules/idcache (Depends-on): Re-add flexmember.
2427
2428         * lib/idcache.c (getuser): Remove all uses of the register keyword.
2429         (getuidbyname, getgroup, getgidbyname): Likewise.
2430
2431         Use cleaner syntax: NULL rather than 0.
2432         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
2433
2434 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
2435
2436         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
2437         It mishandled the case where the group was missing.
2438         Problem reported by Greg Schafer.
2439         * modules/idcache: Likewise.
2440
2441 2006-11-18  Jim Meyering  <jim@meyering.net>
2442
2443         * check-module (%exempt_header): Add exception for some
2444         conditionally-included headers.
2445
2446         * modules/i-ring (Depends-on): Add verify.
2447         (License): Change to LGPL.
2448
2449 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
2450
2451         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
2452         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
2453         and inttostr.h.  Use snprintf rather than uinttostr, so that
2454         LGPLed code doesn't depend on GPLed.
2455
2456 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
2457
2458         * modules/inline (License): Change from GPL to LGPL.
2459
2460 2006-11-17  Jim Meyering  <jim@meyering.net>
2461
2462         * modules/d-type (License): Switch to LGPL.
2463
2464 2006-11-15  Bruno Haible  <bruno@clisp.org>
2465
2466         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
2467
2468 2006-11-15  Eric Blake  <ebb9@byu.net>
2469
2470         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
2471         the module dependency.
2472
2473 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
2474             Bruno Haible  <bruno@clisp.org>
2475
2476         * gnulib-tool (func_create_testdir): Add license consistency check.
2477
2478 2006-11-15  Eric Blake  <ebb9@byu.net>
2479
2480         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
2481         random "(cached)" in configure output.
2482
2483 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2484
2485         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
2486         test for conforming inttypes.h is both announced and cached.
2487
2488         * MODULES.html.sh (seen_modules, seen_files): New variables.
2489         (func_module): Rewrite to use a few less gnulib-tool and sed
2490         invocations.  Avoid a couple of quadratic algorithms for ...
2491         (missed_modules, missed_files): ... these, with ...
2492         (func_append, func_tmpdir): ... these new functions, from
2493         gnulib-tool.  Analogously, install traps for cleanup.
2494
2495         * tests/test-gc.c (main): Remove unused variables.
2496         * tests/test-read-file.c: Include stdlib.h, for 'free'.
2497
2498 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
2499
2500         * modules/inttostr (License): Change to LGPL.
2501
2502 2006-11-14  Eric Blake  <ebb9@byu.net>
2503
2504         * modules/tempname (License): Change to LGPL.
2505
2506 2006-11-14  Eric Blake  <ebb9@byu.net>
2507
2508         * doc/functions.texi (Function Portability): *printf functions on
2509         Cygwin now understand all POSIX size specifiers.
2510
2511 2006-11-14  Bruno Haible  <bruno@clisp.org>
2512
2513         * modules/c-ctype (License): Change to LGPL.
2514
2515 2006-11-12  Bruno Haible  <bruno@clisp.org>
2516
2517         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
2518         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
2519         for GNOME libraries, for which the include files are installed in
2520         subdirectories of $prefix/include.
2521
2522 2006-11-12  Bruno Haible  <bruno@clisp.org>
2523
2524         * m4/lib-link.m4: Require at least autoconf-2.54.
2525         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
2526         name to underscores for the --with option.
2527
2528 2006-11-13  Bruno Haible  <bruno@clisp.org>
2529
2530         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
2531         the tests directory.
2532         Reported by Ralf Wildenhues.
2533
2534 2006-11-13  Bruno Haible  <bruno@clisp.org>
2535
2536         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
2537         (func_emit_initmacro_end): Undo the override here.
2538         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
2539         Works around the famous automake error in coreutils.
2540
2541 2006-11-13  Eric Blake  <ebb9@byu.net>
2542
2543         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
2544         element, not its node.
2545
2546 2006-11-12  Bruno Haible  <bruno@clisp.org>
2547
2548         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
2549         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
2550
2551 2006-11-12  Bruno Haible  <bruno@clisp.org>
2552
2553         * gnulib-tool: New option --local-symlink.
2554         (func_usage): Document it.
2555         (lsymbolic): New variable.
2556         (func_import, func_create_testdir): If --symlink was not specified,
2557         test whether --local-symlink was specified and the file comes from
2558         the local_gnulib_dir.
2559
2560 2006-11-12  Bruno Haible  <bruno@clisp.org>
2561
2562         * gnulib-tool (func_ln): New function.
2563         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
2564
2565 2006-11-12  Bruno Haible  <bruno@clisp.org>
2566
2567         Finish support for source files in subdirectories.
2568         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
2569         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
2570         AUTOMAKE_OPTIONS.
2571         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
2572
2573 2006-11-12  Bruno Haible  <bruno@clisp.org>
2574
2575         * gnulib-tool (func_get_automake_snippet): Synthesize also an
2576         EXTRA_lib_SOURCES augmentation.
2577         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
2578
2579 2006-11-12  Jim Meyering  <jim@meyering.net>
2580
2581         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
2582         file descriptors.  This also averts a failure on systems with
2583         native openat support when a traversed directory lacks "x" access.
2584         * lib/fts_.h: Include "i-ring.h"
2585         (struct FTS) [fts_fd_ring]: New member.
2586         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
2587         (FCHDIR): Add parentheses.
2588         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
2589         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
2590         When descending, rather than simply closing the previous
2591         fts_cwd_fd value, push that file descriptor onto the ring.
2592         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
2593         (fts_open): Initialize the new fd_ring member.
2594         (fts_close): Clear the ring.
2595         (fts_safe_changedir): When possible, use our new fd_ring to skip
2596         the diropen and fstat and dev/ino comparison that would normally
2597         accompany a virtual `chdir ("..")'.
2598
2599         * modules/fts (Depends-on): Add i-ring.
2600         * modules/i-ring: New module.
2601         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
2602         * m4/i-ring.m4: New file.
2603
2604 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2605
2606         * gnulib-tool (func_create_testdir): Fix replacement of
2607         `build-aux' in configure.ac.  Run autotools in gltests
2608         subdirectory.
2609         (func_create_testdir, func_create_megatestdir, test): There is
2610         no need for '--force' in most autotool invocations in a new
2611         tree.  Actually fail the whole test if any of the tools, or the
2612         configure or make stages fail.
2613
2614         Sync from Automake.
2615         * build-aux/gnupload: Revert last change.  Add pointer to upload
2616         instructions of the GNU Maintenance Instructions.
2617         Suggestion by Karl Berry.
2618
2619 2006-11-10  Jim Meyering  <jim@meyering.net>
2620
2621         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
2622
2623 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
2624
2625         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
2626         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
2627         (bind_textdomain_codeset) [! ENABLE_NLS]:
2628         Evaluate all the arguments.  That way, callers get compatible behavior
2629         if the arguments have side effects.  Also, it avoids some GCC
2630         diagnostics in some cases; Joel E. Denny reported problems when Bison
2631         was configured with --enable-gcc-warnigs.
2632
2633 2006-11-10  Jim Meyering  <jim@meyering.net>
2634
2635         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
2636         relevant options in CFLAGS (like -O, -fno-inline) are taken into
2637         account.
2638
2639 2006-11-10  Jim Meyering  <jim@meyering.net>
2640
2641         * modules/inline: New file/module.
2642         * modules/xalloc (Files): Remove m4/inline.m4.
2643         (Depends-on): Add inline, instead.
2644         * modules/oset: Likewise.
2645         * modules/list: Likewise.
2646
2647 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
2648
2649         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
2650         Problem reported by Matthew Woehlke.
2651
2652 2006-11-09  Bruno Haible  <bruno@clisp.org>
2653
2654         * lib/tempname.c (gen_tempname): Remove variant that invokes
2655         __gen_tempname.
2656         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
2657         __gen_tempname.
2658
2659 2006-11-08  Bruno Haible  <bruno@clisp.org>
2660
2661         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
2662         to 'yes' instead of 'cross-compiling'.
2663
2664 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
2665
2666         * lib/quotearg.h (quotearg_free): New decl.
2667         * lib/quotearg.c (quotearg_free): New function.
2668         (slot0, nslots, slotvec0, slotvec):
2669         Now file-scope so that quotearg_free can get at them.
2670
2671 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2672
2673         Sync from Automake.
2674         * build-aux/gnupload: Add missing 'gnu' to example URL.
2675         Report by Karl Berry.
2676
2677 2006-11-08  Bruno Haible  <bruno@clisp.org>
2678
2679         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
2680         Suggested by Paul Eggert.
2681
2682 2006-11-08  Jim Meyering  <jim@meyering.net>
2683
2684         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
2685         It's already included if !_LIBC.
2686         (fts_safe_changedir): Add a comment.
2687
2688 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
2689
2690         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
2691         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
2692         Matthew Woehlke.
2693
2694         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
2695         definitions up, to avoid colliding with change below.
2696         (static_inline) [HAVE_INLINE]: New macro.
2697         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
2698         Provide extern decls when !HAVE_INLINE.  Do not define unless
2699         static_inline is defined, either by us or by xmalloc.c.  Use
2700         static_inline rather than static inline.
2701         (XCALLOC): Optimize sizeof(T) = 1 case.
2702         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
2703
2704 2006-11-07  Bruno Haible  <bruno@clisp.org>
2705
2706         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
2707         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
2708         AC_C_INLINE.
2709         * modules/xalloc (Files): Add m4/inline.m4.
2710
2711 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2712
2713         * README: Fix typo.
2714         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
2715         (Miscellanous Notes): ...from this.
2716
2717 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
2718
2719         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
2720         Mention that offsetof should be used instead of sizeof.
2721         From Bruno Haible.
2722
2723 2006-11-07  Bruno Haible  <bruno@clisp.org>
2724
2725         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
2726
2727 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
2728
2729         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
2730         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
2731         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
2732         (gl_tree_add_before, gl_tree_add_after):
2733         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
2734         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
2735         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
2736         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
2737         (gl_linked_add_after, gl_linked_add_at): Likewise.
2738         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
2739         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
2740         (gl_tree_add_before, gl_tree_add_after): Likewise.
2741         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
2742         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
2743         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
2744
2745 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2746
2747         * lib/gl_oset.h: Use C comment style, not C++ comment style.
2748
2749 2006-11-06  Bruno Haible  <bruno@clisp.org>
2750
2751         * m4/inline.m4: New file.
2752         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
2753         * modules/list (Files): Add m4/inline.m4.
2754         * modules/oset (Files): Likewise.
2755
2756 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
2757
2758         * lib/idcache.c: Include <stddef.h>, for offsetof.
2759         (struct userid.name): Change from char * to a flexible array member.
2760         All uses changed.
2761         * modules/idcache (Depends-on): Add flexmember.
2762
2763         * MODULES.html.sh (Core language properties): New module flexmember.
2764         * modules/flexmember, m4/flexmember.m4: New files.
2765
2766         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
2767         inline functions that are identical with the old xnmalloc_inline,
2768         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
2769         that we can avoid some unnecessary integer multiplications and
2770         divisions in the common case where the element size is known at
2771         compile time.
2772         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
2773         needed.
2774         (xnboundedmalloc): Remove.
2775         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
2776         arguments, for consistency with rest of this header.
2777         (xcharalloc): Rewrite using XNMALLOC.
2778         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
2779         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
2780         versions have been moved to lib/xalloc.h and renamed to be the
2781         non-*_inline versions.
2782         (xmalloc, xrealloc): Implement without reference to the xnmalloc
2783         and xnrealloc functions, since those functions are now inline and
2784         now call us.
2785         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
2786         renaming described above.
2787         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
2788         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
2789         captures the dependency in AC_C_INLINE.
2790
2791         New module canonicalize-lgpl, proposed by Charles Wilson in
2792         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
2793         with a few small changes afterwards.
2794         * MODULES.html.sh (File system functions): New module
2795         canonicalize-lgpl.
2796         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
2797         and canonicalize_file_name.
2798         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
2799         * modules/canonicalize-lgpl: New files.
2800
2801 2006-11-05  Bruno Haible  <bruno@clisp.org>
2802
2803         * gnulib-tool (func_import, func_create_testdir): Create directories
2804         also for files in subdirectories of lib/.
2805
2806 2006-11-05  Bruno Haible  <bruno@clisp.org>
2807
2808         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
2809         ANSI C compliant.
2810
2811 2006-11-03  Bruno Haible  <bruno@clisp.org>
2812
2813         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
2814         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
2815         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
2816         (xnboundedmalloc): New inline function.
2817         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
2818         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
2819         xmalloc.
2820         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
2821         xmalloc.
2822         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
2823         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
2824         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
2825         xmalloc.
2826         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
2827         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
2828         xmalloc.
2829         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
2830         gl_tree_add_after): Use XMALLOC instead of xmalloc.
2831         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
2832         xmalloc.
2833         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
2834         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
2835         gl_tree_add_after): Use XMALLOC instead of xmalloc.
2836         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
2837         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
2838         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
2839         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
2840
2841 2006-11-03  Bruno Haible  <bruno@clisp.org>
2842
2843         * lib/c-ctype.h [C++]: Define functions without name mangling.
2844         * lib/fwriteerror.h [C++]: Likewise.
2845         * lib/gcd.h [C++]: Likewise.
2846         * lib/linebreak.h [C++]: Likewise.
2847
2848 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
2849
2850         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
2851         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
2852         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
2853         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
2854         Check for functions and headers just once.
2855         Check for declaration of canonicalize_file_name.
2856         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
2857
2858 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
2859
2860         * gnulib-tool (func_import): Fix typo in actioncmd.
2861
2862 2006-11-02  Bruno Haible  <bruno@clisp.org>
2863
2864         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
2865         newline sequence in the Makefile.am snippet as a space, like "make"
2866         does.
2867         Reported by Roger Persson <perrog@gmail.com>.
2868
2869 2006-11-01  Bruno Haible  <bruno@clisp.org>
2870
2871         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
2872         already declared in <string.h>.
2873         * lib/strcase.h (strncasecmp): Don't declare it if yes.
2874
2875 2006-11-01  Bruno Haible  <bruno@clisp.org>
2876
2877         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
2878         * lib/strcase.h: Include <string.h>.
2879         (strcasecmp): Define to rpl_strcasecmp here.
2880
2881 2006-11-01  Bruno Haible  <bruno@clisp.org>
2882
2883         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
2884
2885 2006-11-01  Eric Blake  <ebb9@byu.net>
2886
2887         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
2888
2889         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
2890
2891 2006-10-29  Bruno Haible  <bruno@clisp.org>
2892
2893         Make it compile in C++ mode.
2894         * lib/full-write.c (full_rw): Add a cast.
2895
2896 2006-11-01  Bruno Haible  <bruno@clisp.org>
2897
2898         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
2899         be POSIX compliant.
2900         Reported by Roger Persson <perrog@gmail.com>.
2901
2902 2006-11-01  Eric Blake  <ebb9@byu.net>
2903
2904         * lib/getopt_.h: Fix comments.
2905
2906 2006-10-31  Eric Blake  <ebb9@byu.net>
2907
2908         * modules/tmpdir (Depends-on): Add sys_stat.
2909         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
2910         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
2911         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
2912         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
2913         tempname.
2914
2915 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
2916
2917         Avoid some C++ diagnostics reported by Bruno Haible.
2918         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
2919         xmalloc.
2920         (quotearg_alloc): Use xcharalloc rather than xmalloc.
2921         (struct slotvec): Move to top level.
2922         (quotearg_n_options): Rewrite to avoid xmalloc.
2923         * lib/xalloc.h (xcharalloc): New function.
2924         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
2925         [defined __cplusplus]: Add function template that provides result
2926         type propagation.  This part of the change is from Bruno Haible.
2927
2928 2006-10-29  Bruno Haible  <bruno@clisp.org>
2929
2930         Make it compile in C++ mode.
2931         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
2932         * lib/strnlen1.c (strnlen1): Cast memchr result.
2933         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
2934         * lib/clean-temp.c (string_equals, string_hash): Add casts.
2935         (create_temp_dir): Rename local variable 'template'.
2936         (compile_csharp_using_sscli): Add cast.
2937         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
2938         * lib/findprog.c (find_in_path): Likewise.
2939         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
2940         * lib/wait-process.c (register_slave_subprocess): Likewise.
2941
2942 2006-10-22  Bruno Haible  <bruno@clisp.org>
2943
2944         * modules/tsearch: New file.
2945         * lib/tsearch.h: New file.
2946         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
2947         * m4/tsearch.m4: New file.
2948         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
2949
2950 2006-10-29  Eric Blake  <ebb9@byu.net>
2951
2952         * lib/arcfour.c: Assume config.h.
2953         * lib/arctwo.c: Likewise.
2954         * lib/base64.c: Likewise.
2955         * lib/check-version.c: Likewise.
2956         * lib/crc.c: Likewise.
2957         * lib/des.c: Likewise.
2958         * lib/gc-gnulib.c: Likewise.
2959         * lib/gc-libgcrypt.c: Likewise.
2960         * lib/gc-pbkdf2-sha1.c: Likewise.
2961         * lib/getaddrinfo.c: Likewise.
2962         * lib/getdelim.c: Likewise.
2963         * lib/getline.c: Likewise.
2964         * lib/hmac-md5.c: Likewise.
2965         * lib/hmac-sha1.c: Likewise.
2966         * lib/iconvme.c: Likewise.
2967         * lib/md2.c: Likewise.
2968         * lib/md4.c: Likewise.
2969         * lib/memxor.c: Likewise.
2970         * lib/read-file.c: Likewise.
2971         * lib/readline.c: Likewise.
2972         * lib/rijndael-alg-fst.c: Likewise.
2973         * lib/rijndael-api-fst.c: Likewise.
2974         * lib/xgetdomainname.c: Likewise.
2975
2976 2006-10-28  Eric Blake  <ebb9@byu.net>
2977
2978         * lib/xstrndup.c: Assume config.h.
2979
2980 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
2981
2982         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
2983         stat-macros.h is now for our own macros, whereas stat_h is for
2984         macros in the <sys/stat.h> name space.
2985         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
2986         (STAT_MACROS_H): Remove.
2987         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
2988         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
2989         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
2990         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
2991         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
2992         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
2993         Move these macros to ...
2994         * lib/stat_.h: here.  Don't include stat-macros.h.
2995         * lib/canonicalize.c: Don't include stat-macros.h.
2996         * lib/chown.c: Likewise.
2997         * lib/euidaccess.c: Likewise.
2998         * lib/file-type.c: Likewise.
2999         * lib/filemode.c: Likewise.
3000         * lib/glob.c: Likewise.
3001         * lib/isapipe.c: Likewise.
3002         * lib/lchown.c: Likewise.
3003         * lib/lstat.c: Likewise.
3004         * lib/mkdir-p.c: Likewise.
3005         * lib/rmdir.c: Likewise.
3006         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
3007         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
3008         unless mkdir isn't declared, to speed up 'configure'.
3009         Always create sys/stat.h, since it's unlikely any real sys/stat.h
3010         would define all the S_* symbols.
3011         * modules/canonicalize (Depends-on):
3012         Depend on sys_stat, not stat-macros.
3013         * modules/chown: Likewise.
3014         * modules/euidaccess: Likewise.
3015         * modules/filemode: Likewise.
3016         * modules/file-type: Likewise.
3017         * modules/glob: Likewise.
3018         * modules/isapipe: Likewise.
3019         * modules/lchown: Likewise.
3020         * modules/lstat: Likewise.
3021         * modules/mkancesdirs: Likewise.
3022         * modules/rmdir: Likewise.
3023         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
3024         * modules/modechange: Likewise.
3025         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
3026         (configure.ac): Remove gl_STAT_MACROS.
3027         * modules/sys_stat (Depends-on): Remove stat-macros.
3028
3029 2006-10-27  Bruno Haible  <bruno@clisp.org>
3030
3031         * m4/signed.m4: Remove file.
3032         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
3033         invocation.
3034         * modules/vasnprintf (Files): Remove m4/signed.m4.
3035
3036 2006-10-27  Bruno Haible  <bruno@clisp.org>
3037
3038         Update to GNU gettext 0.16.
3039         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
3040         m4/inttypes-h.m4, m4/signed.m4.
3041         * m4/gettext.m4: Update to GNU gettext 0.16.
3042         * m4/intl.m4: New file, from GNU gettext.
3043         * m4/intldir.m4: New file, from GNU gettext.
3044         * config/srclist.txt: Update
3045
3046 2006-10-27  Eric Blake  <ebb9@byu.net>
3047
3048         * MODULES.html.sh: Document tempname.
3049         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
3050         dependencies.
3051         (Files): Move lib/tempname.c...
3052         * modules/tempname: ...to this new module.
3053         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
3054         (gl_PREREQ_TEMPNAME): Move...
3055         * m4/tempname.m4: ...to this new file.
3056         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
3057         * modules/sys_stat (Depends-on): Add stat-macros.
3058         * lib/stat_.h (includes): Pick up stat macros.
3059         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
3060         if stat macros are broken.
3061         * lib/tempname.c (includes): No need to include "stat-macros.h".
3062         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
3063         (direxists, __path_search) [!_LIBC]: Don't compile these in
3064         gnulib; the tmpdir module covers that.
3065         * lib/tempname.h: New file.
3066
3067 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
3068
3069         * COPYING: Explain how gnulib-tool converts licence headers.
3070         Almost all wording by Eric Blake.
3071
3072 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
3073
3074         * lib/mbchar.h (is_basic_table): Make read-only.
3075         * lib/mbchar.c (is_basic_table): Likewise.
3076         Reported by John Darrington.
3077
3078 2006-10-25  Bruno Haible  <bruno@clisp.org>
3079
3080         * lib/progname.h (set_program_name): Undefine before defining.
3081
3082 2006-10-25  Bruno Haible  <bruno@clisp.org>
3083
3084         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
3085         false for non-gcc C++ compilers.
3086         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
3087
3088 2006-10-24  Bruno Haible  <bruno@clisp.org>
3089
3090         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
3091         iconv implementations like Irix iconv.
3092
3093 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
3094
3095         * modules/vararrays: New file.
3096         * m4/vararrays.m4: New file, taken from diffutils.
3097         * MODULES.html.sh: New module vararrays.
3098
3099 2006-10-24  Karl Berry  <karl@gnu.org>
3100
3101         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
3102         Don't call GNU Unix.
3103
3104 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3105
3106         * users.txt: Add Libtool.
3107
3108         Sync from Libtool:
3109
3110         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
3111
3112         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
3113         to gnulib's policy of including config.h unconditionally.
3114
3115 2006-10-24  Bruno Haible  <bruno@clisp.org>
3116
3117         * modules/wcwidth (Files): Add m4/wint_t.m4.
3118         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
3119         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
3120
3121 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
3122
3123         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
3124         to pacify GCC with some -W flags enabled.  Problem reported by
3125         Bruno Haible.
3126
3127 2006-10-24  Jim Meyering  <jim@meyering.net>
3128
3129         * MODULES.html.sh: Remove uinttostr.  It's not a module.
3130         Reported by Karl Berry.
3131
3132 2006-10-23  Bruno Haible  <bruno@clisp.org>
3133
3134         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
3135
3136 2006-10-24  Bruno Haible  <bruno@clisp.org>
3137
3138         * lib/gl_list.h: Use C comment style, not C++ comment style.
3139
3140 2006-10-23  Eric Blake  <ebb9@byu.net>
3141
3142         * lib/getaddrinfo.c (includes): Add missing include.
3143
3144 2006-10-23  Bruno Haible  <bruno@clisp.org>
3145             Paul Eggert  <eggert@cs.ucla.edu>
3146
3147         Ability to rename obstack_free.
3148         * lib/obstack.h (__obstack_free): New macro. Declare instead of
3149         obstack_free.
3150         (obstack_free): Invoke the __obstack_free macro.
3151         * lib/obstack.c (obstack_free): Use __obstack_free macro.
3152
3153 2006-10-23  Bruno Haible  <bruno@clisp.org>
3154             Paul Eggert  <eggert@cs.ucla.edu>
3155
3156         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
3157         __argc, __argv from the declaration. (They are defined as macros on
3158         mingw.)
3159
3160 2006-10-22  Bruno Haible  <bruno@clisp.org>
3161
3162         * doc/gnulib-intro.texi: New file.
3163         * doc/gnulib.texi: Include it.
3164
3165 2006-10-21  Bruno Haible  <bruno@clisp.org>
3166
3167         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
3168         "Introduction", "Miscellanous Notes", "Particular Modules".
3169
3170 2006-10-21  Bruno Haible  <bruno@clisp.org>
3171
3172         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
3173         Change mostlyclean-local rule to avoid sh syntax error from bash
3174         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
3175
3176 2006-10-23  Jim Meyering  <jim@meyering.net>
3177
3178         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
3179         in place of snprintf.
3180
3181         * modules/inttostr (Files): Add lib/uinttostr.c.
3182         * lib/uinttostr.c (inttostr): New file/function.
3183         * lib/inttostr.h (uinttostr): Declare.
3184         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
3185         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
3186         Add uinttostr.
3187         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
3188
3189 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
3190
3191         * lib/canonicalize.c (ELOOP): Define if not already defined.
3192         Problem reported by Bruno Haible in
3193         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
3194
3195 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
3196
3197         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
3198         Problem reported by Perry Smith and Ville Laurikari.
3199
3200         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
3201         uses.
3202
3203 2006-10-19  Bruno Haible  <bruno@clisp.org>
3204
3205         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
3206         for mingw.
3207
3208 2006-10-19  Bruno Haible  <bruno@clisp.org>
3209
3210         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
3211         Needed for mingw.
3212
3213 2006-10-19  Bruno Haible  <bruno@clisp.org>
3214
3215         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
3216
3217 2006-10-19  Bruno Haible  <bruno@clisp.org>
3218
3219         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
3220         it.
3221
3222 2006-10-19  Bruno Haible  <bruno@clisp.org>
3223
3224         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
3225         invocation.
3226
3227 2006-10-19  Bruno Haible  <bruno@clisp.org>
3228
3229         * gnulib-tool (func_create_testdir): Don't include ftruncate and
3230         mountlist by default.
3231
3232 2006-10-16  Bruno Haible  <bruno@clisp.org>
3233
3234         * lib/c-strstr.c: Include c-strstr.h.
3235
3236 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
3237
3238         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
3239         in a slash.
3240
3241 2006-10-18  Bruno Haible  <bruno@clisp.org>
3242
3243         * lib/lock.h [C++]: Wrap definitions in extern "C".
3244
3245 2006-10-18  Bruno Haible  <bruno@clisp.org>
3246
3247         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
3248         gl_LIBOBJS list.
3249
3250 2006-10-18  Bruno Haible  <bruno@clisp.org>
3251
3252         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
3253
3254 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
3255
3256         * lib/xstrtol.h: Include gettext.h.
3257         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
3258         Problem reported by Eric Blake.
3259         * modules/xstrtol (Depends-on): Add gettext-h.
3260
3261 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
3262
3263         * lib/strftime.c (advance): New macro.
3264         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
3265         incomplete type, so you can't add 0 to it.  Problem and patch
3266         reported by Eelco Dolstra for dietlibc.
3267
3268 2006-10-18  Jim Meyering  <jim@meyering.net>
3269
3270         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
3271         type for a local, and rename it: s/up/user_proc/.
3272
3273 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
3274
3275         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
3276         READ_UTMP_USER_PROCESS.
3277         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
3278
3279 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
3280
3281         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
3282         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
3283
3284 2006-10-17  Eric Blake  <ebb9@byu.net>
3285
3286         * lib/sigprocmask.c (sigprocmask): Fix typo.
3287
3288         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
3289
3290         * modules/clean-temp (Makefile.am): Don't add to make output...
3291         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
3292         config.h.
3293
3294 2006-10-17  Bruno Haible  <bruno@clisp.org>
3295
3296         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
3297         differently if DEFAULT_TEXT_DOMAIN is set.
3298
3299 2006-10-16  Bruno Haible  <bruno@clisp.org>
3300
3301         * lib/clean-temp.c: Include fwriteerror.h.
3302
3303 2006-10-16  Bruno Haible  <bruno@clisp.org>
3304
3305         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
3306
3307 2006-10-16  Bruno Haible  <bruno@clisp.org>
3308
3309         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
3310         * lib/sigprocmask.h: Include <sys/types.h>.
3311         (sigset_t): Use the system's definition if present.
3312
3313 2006-10-17  Eric Blake  <ebb9@byu.net>
3314
3315         * lib/xvasprintf.c (includes): Assume config.h.
3316         * lib/xasprintf.c (includes): Likewise.
3317
3318 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
3319
3320         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
3321         at least as wide as intmax_t.
3322
3323 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
3324
3325         (Imported from Automake.)
3326         * build-aux/gnupload: Update to version 1.1 of directive file.
3327
3328 2006-10-16  Eric Blake  <ebb9@byu.net>
3329
3330         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
3331         match Automake 1.10a.
3332
3333 2006-10-14  Bruno Haible  <bruno@clisp.org>
3334
3335         * modules/sigprocmask: New file.
3336         * lib/sigprocmask.h: New file.
3337         * lib/sigprocmask.c: New file.
3338         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
3339         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
3340         request sigprocmask.o.
3341         (gl_PREREQ_SIGPROCMASK): New macro.
3342         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
3343         (Depends-on): Add sigprocmask.
3344         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
3345         gt_SIGNALBLOCKING. Test for 'raise' only once.
3346         * lib/fatal-signal.c: Include sigprocmask.h.
3347         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
3348         unblock_fatal_signals): Define always.
3349         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
3350         sigprocmask.
3351
3352 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
3353
3354         Sync from Automake.
3355         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
3356         which incorrectly sets the mode of an existing destination
3357         directory.  In some cases the unpatched install-sh could do the
3358         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
3359         system.  We hope this is rare in practice, but it's clearly worth
3360         fixing.  Problem reported by Alex Unleashed in
3361         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
3362         Also, don't bother to check for -m bugs unless we're using -m;
3363         suggested by Stepan Kasal.
3364
3365 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3366
3367         Sync from Automake.
3368         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
3369         `-c' flag, so they appear at the same position as in %FASTDEP%
3370         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
3371         which ignores unknown options only after the first non-option.
3372         Bug report against M4 by Nelson H. F. Beebe.
3373
3374 2006-10-13  Jim Meyering  <jim@meyering.net>
3375
3376         Fix a bug in yesterday's change.
3377         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
3378         p->fts_statp->st_dev would be used uninitialized.
3379         Ensures that we always call fts_stat on the very first entry.
3380         Miklos Szeredi reported that find -xdev stopped working.
3381
3382 2006-10-12  Bruno Haible  <bruno@clisp.org>
3383
3384         * gnulib-tool (func_get_automake_snippet): Append an automatically
3385         computed EXTRA_DIST augmentation.
3386         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
3387         * modules/alloca-opt (Makefile.am): Likewise.
3388         * modules/allocsa (Makefile.am): Likewise.
3389         * modules/arcfour (Makefile.am): Likewise.
3390         * modules/arctwo (Makefile.am): Likewise.
3391         * modules/argmatch (Makefile.am): Likewise.
3392         * modules/argz (Makefile.am): Likewise.
3393         * modules/atexit (Makefile.am): Likewise.
3394         * modules/backupfile (Makefile.am): Likewise.
3395         * modules/byteswap (Makefile.am): Likewise.
3396         * modules/c-strtod (Makefile.am): Likewise.
3397         * modules/c-strtold (Makefile.am): Likewise.
3398         * modules/calloc (Makefile.am): Likewise.
3399         * modules/canon-host (Makefile.am): Likewise.
3400         * modules/canonicalize (Makefile.am): Likewise.
3401         * modules/chdir-long (Makefile.am): Likewise.
3402         * modules/chdir-safer (Makefile.am): Likewise.
3403         * modules/check-version (Makefile.am): Likewise.
3404         * modules/chown (Makefile.am): Likewise.
3405         * modules/cloexec (Makefile.am): Likewise.
3406         * modules/close-stream (Makefile.am): Likewise.
3407         * modules/closeout (Makefile.am): Likewise.
3408         * modules/crc (Makefile.am): Likewise.
3409         * modules/csharpexec (Makefile.am): Likewise.
3410         * modules/cycle-check (Makefile.am): Likewise.
3411         * modules/des (Makefile.am): Likewise.
3412         * modules/dev-ino (Makefile.am): Likewise.
3413         * modules/dirfd (Makefile.am): Likewise.
3414         * modules/dirname (Makefile.am): Likewise.
3415         * modules/dup2 (Makefile.am): Likewise.
3416         * modules/eealloc (Makefile.am): Likewise.
3417         * modules/error (Makefile.am): Likewise.
3418         * modules/euidaccess (Makefile.am): Likewise.
3419         * modules/exclude (Makefile.am): Likewise.
3420         * modules/exitfail (Makefile.am): Likewise.
3421         * modules/fcntl-safer (Makefile.am): Likewise.
3422         * modules/fcntl (Makefile.am): Likewise.
3423         * modules/file-type (Makefile.am): Likewise.
3424         * modules/fileblocks (Makefile.am): Likewise.
3425         * modules/filemode (Makefile.am): Likewise.
3426         * modules/filenamecat (Makefile.am): Likewise.
3427         * modules/fnmatch (Makefile.am): Likewise.
3428         * modules/fopen-safer (Makefile.am): Likewise.
3429         * modules/fpending (Makefile.am): Likewise.
3430         * modules/fprintftime (Makefile.am): Likewise.
3431         * modules/free (Makefile.am): Likewise.
3432         * modules/fsusage (Makefile.am): Likewise.
3433         * modules/ftruncate (Makefile.am): Likewise.
3434         * modules/fts (Makefile.am): Likewise.
3435         * modules/gc-arcfour (Makefile.am): Likewise.
3436         * modules/gc-des (Makefile.am): Likewise.
3437         * modules/gc-hmac-md5 (Makefile.am): Likewise.
3438         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
3439         * modules/gc-md4 (Makefile.am): Likewise.
3440         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
3441         * modules/gc-sha1 (Makefile.am): Likewise.
3442         * modules/gc (Makefile.am): Likewise.
3443         * modules/getaddrinfo (Makefile.am): Likewise.
3444         * modules/getcwd (Makefile.am): Likewise.
3445         * modules/getdelim (Makefile.am): Likewise.
3446         * modules/getdomainname (Makefile.am): Likewise.
3447         * modules/getgroups (Makefile.am): Likewise.
3448         * modules/gethostname (Makefile.am): Likewise.
3449         * modules/gethrxtime (Makefile.am): Likewise.
3450         * modules/getline (Makefile.am): Likewise.
3451         * modules/getloadavg (Makefile.am): Likewise.
3452         * modules/getlogin_r (Makefile.am): Likewise.
3453         * modules/getndelim2 (Makefile.am): Likewise.
3454         * modules/getopt (Makefile.am): Likewise.
3455         * modules/getpagesize (Makefile.am): Likewise.
3456         * modules/getpass-gnu (Makefile.am): Likewise.
3457         * modules/getpass (Makefile.am): Likewise.
3458         * modules/getsubopt (Makefile.am): Likewise.
3459         * modules/gettime (Makefile.am): Likewise.
3460         * modules/gettimeofday (Makefile.am): Likewise.
3461         * modules/getugroups (Makefile.am): Likewise.
3462         * modules/getusershell (Makefile.am): Likewise.
3463         * modules/glob (Makefile.am): Likewise.
3464         * modules/group-member (Makefile.am): Likewise.
3465         * modules/hard-locale (Makefile.am): Likewise.
3466         * modules/hash (Makefile.am): Likewise.
3467         * modules/hmac-md5 (Makefile.am): Likewise.
3468         * modules/hmac-sha1 (Makefile.am): Likewise.
3469         * modules/human (Makefile.am): Likewise.
3470         * modules/idcache (Makefile.am): Likewise.
3471         * modules/imaxabs (Makefile.am): Likewise.
3472         * modules/imaxdiv (Makefile.am): Likewise.
3473         * modules/inet_ntop (Makefile.am): Likewise.
3474         * modules/inet_pton (Makefile.am): Likewise.
3475         * modules/intprops (Makefile.am): Likewise.
3476         * modules/inttostr (Makefile.am): Likewise.
3477         * modules/inttypes (Makefile.am): Likewise.
3478         * modules/isapipe (Makefile.am): Likewise.
3479         * modules/javaversion (Makefile.am): Likewise.
3480         * modules/lchmod (Makefile.am): Likewise.
3481         * modules/lchown (Makefile.am): Likewise.
3482         * modules/localcharset (Makefile.am): Likewise.
3483         * modules/long-options (Makefile.am): Likewise.
3484         * modules/lstat (Makefile.am): Likewise.
3485         * modules/malloc (Makefile.am): Likewise.
3486         * modules/mathl (Makefile.am): Likewise.
3487         * modules/mbchar (Makefile.am): Likewise.
3488         * modules/md2 (Makefile.am): Likewise.
3489         * modules/md4 (Makefile.am): Likewise.
3490         * modules/md5 (Makefile.am): Likewise.
3491         * modules/memcasecmp (Makefile.am): Likewise.
3492         * modules/memchr (Makefile.am): Likewise.
3493         * modules/memcmp (Makefile.am): Likewise.
3494         * modules/memcoll (Makefile.am): Likewise.
3495         * modules/memcpy (Makefile.am): Likewise.
3496         * modules/memmem (Makefile.am): Likewise.
3497         * modules/memmove (Makefile.am): Likewise.
3498         * modules/mempcpy (Makefile.am): Likewise.
3499         * modules/memrchr (Makefile.am): Likewise.
3500         * modules/memset (Makefile.am): Likewise.
3501         * modules/memxor (Makefile.am): Likewise.
3502         * modules/mkancesdirs (Makefile.am): Likewise.
3503         * modules/mkdir-p (Makefile.am): Likewise.
3504         * modules/mkdir (Makefile.am): Likewise.
3505         * modules/mkdtemp (Makefile.am): Likewise.
3506         * modules/mkstemp (Makefile.am): Likewise.
3507         * modules/mktime (Makefile.am): Likewise.
3508         * modules/modechange (Makefile.am): Likewise.
3509         * modules/mountlist (Makefile.am): Likewise.
3510         * modules/nanosleep (Makefile.am): Likewise.
3511         * modules/obstack (Makefile.am): Likewise.
3512         * modules/openat (Makefile.am): Likewise.
3513         * modules/pagealign_alloc (Makefile.am): Likewise.
3514         * modules/pathmax (Makefile.am): Likewise.
3515         * modules/physmem (Makefile.am): Likewise.
3516         * modules/poll (Makefile.am): Likewise.
3517         * modules/posixtm (Makefile.am): Likewise.
3518         * modules/posixver (Makefile.am): Likewise.
3519         * modules/putenv (Makefile.am): Likewise.
3520         * modules/quote (Makefile.am): Likewise.
3521         * modules/quotearg (Makefile.am): Likewise.
3522         * modules/raise (Makefile.am): Likewise.
3523         * modules/read-file (Makefile.am): Likewise.
3524         * modules/readline (Makefile.am): Likewise.
3525         * modules/readlink (Makefile.am): Likewise.
3526         * modules/readtokens (Makefile.am): Likewise.
3527         * modules/readutmp (Makefile.am): Likewise.
3528         * modules/realloc (Makefile.am): Likewise.
3529         * modules/regex (Makefile.am): Likewise.
3530         * modules/rename-dest-slash (Makefile.am): Likewise.
3531         * modules/rename (Makefile.am): Likewise.
3532         * modules/rijndael (Makefile.am): Likewise.
3533         * modules/rmdir (Makefile.am): Likewise.
3534         * modules/rpmatch (Makefile.am): Likewise.
3535         * modules/safe-read (Makefile.am): Likewise.
3536         * modules/safe-write (Makefile.am): Likewise.
3537         * modules/same-inode (Makefile.am): Likewise.
3538         * modules/same (Makefile.am): Likewise.
3539         * modules/save-cwd (Makefile.am): Likewise.
3540         * modules/savedir (Makefile.am): Likewise.
3541         * modules/setenv (Makefile.am): Likewise.
3542         * modules/settime (Makefile.am): Likewise.
3543         * modules/sha1 (Makefile.am): Likewise.
3544         * modules/sig2str (Makefile.am): Likewise.
3545         * modules/snprintf (Makefile.am): Likewise.
3546         * modules/stat-macros (Makefile.am): Likewise.
3547         * modules/stat-time (Makefile.am): Likewise.
3548         * modules/stdbool (Makefile.am): Likewise.
3549         * modules/stdint (Makefile.am): Likewise.
3550         * modules/stdlib-safer (Makefile.am): Likewise.
3551         * modules/stpcpy (Makefile.am): Likewise.
3552         * modules/stpncpy (Makefile.am): Likewise.
3553         * modules/strcase (Makefile.am): Likewise.
3554         * modules/strcasestr (Makefile.am): Likewise.
3555         * modules/strchrnul (Makefile.am): Likewise.
3556         * modules/strcspn (Makefile.am): Likewise.
3557         * modules/strdup (Makefile.am): Likewise.
3558         * modules/strerror (Makefile.am): Likewise.
3559         * modules/strftime (Makefile.am): Likewise.
3560         * modules/strndup (Makefile.am): Likewise.
3561         * modules/strnlen (Makefile.am): Likewise.
3562         * modules/strpbrk (Makefile.am): Likewise.
3563         * modules/strsep (Makefile.am): Likewise.
3564         * modules/strstr (Makefile.am): Likewise.
3565         * modules/strtod (Makefile.am): Likewise.
3566         * modules/strtoimax (Makefile.am): Likewise.
3567         * modules/strtok_r (Makefile.am): Likewise.
3568         * modules/strtol (Makefile.am): Likewise.
3569         * modules/strtoll (Makefile.am): Likewise.
3570         * modules/strtoul (Makefile.am): Likewise.
3571         * modules/strtoull (Makefile.am): Likewise.
3572         * modules/strtoumax (Makefile.am): Likewise.
3573         * modules/strverscmp (Makefile.am): Likewise.
3574         * modules/sys_socket (Makefile.am): Likewise.
3575         * modules/sys_stat (Makefile.am): Likewise.
3576         * modules/sysexits (Makefile.am): Likewise.
3577         * modules/time_r (Makefile.am): Likewise.
3578         * modules/timegm (Makefile.am): Likewise.
3579         * modules/timespec (Makefile.am): Likewise.
3580         * modules/tmpfile-safer (Makefile.am): Likewise.
3581         * modules/trim (Makefile.am): Likewise.
3582         * modules/unistd-safer (Makefile.am): Likewise.
3583         * modules/unlinkdir (Makefile.am): Likewise.
3584         * modules/unlocked-io (Makefile.am): Likewise.
3585         * modules/userspec (Makefile.am): Likewise.
3586         * modules/utime (Makefile.am): Likewise.
3587         * modules/utimecmp (Makefile.am): Likewise.
3588         * modules/utimens (Makefile.am): Likewise.
3589         * modules/vasnprintf (Makefile.am): Likewise.
3590         * modules/vasprintf (Makefile.am): Likewise.
3591         * modules/vsnprintf (Makefile.am): Likewise.
3592         * modules/xalloc (Makefile.am): Likewise.
3593         * modules/xgetcwd (Makefile.am): Likewise.
3594         * modules/xnanosleep (Makefile.am): Likewise.
3595         * modules/xreadlink (Makefile.am): Likewise.
3596         * modules/xstrtod (Makefile.am): Likewise.
3597         * modules/xstrtol (Makefile.am): Likewise.
3598         * modules/xstrtold (Makefile.am): Likewise.
3599         * modules/yesno (Makefile.am): Likewise.
3600         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
3601
3602 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
3603
3604         * modules/error (Makefile.am): Distribute files through
3605         EXTRA_DIST, not lib_SOURCES.
3606
3607 2006-10-12  Eric Blake  <ebb9@byu.net>
3608
3609         * modules/error (Makefile.am): Distribute files in /lib.
3610         * modules/obstack (Makefile.am): Likewise.
3611
3612 2006-10-12  Bruno Haible  <bruno@clisp.org>
3613
3614         * modules/acl (Makefile.am): Distribute all files in lib/ through
3615         EXTRA_DIST.
3616         * modules/arcfour (Makefile.am): Likewise.
3617         * modules/arctwo (Makefile.am): Likewise.
3618         * modules/argmatch (Makefile.am): Likewise.
3619         * modules/argz (Makefile.am): Likewise.
3620         * modules/atexit (Makefile.am): Likewise.
3621         * modules/backupfile (Makefile.am): Likewise.
3622         * modules/c-strtod (Makefile.am): Likewise.
3623         * modules/c-strtold (Makefile.am): Likewise.
3624         * modules/calloc (Makefile.am): Likewise.
3625         * modules/canon-host (Makefile.am): Likewise.
3626         * modules/canonicalize (Makefile.am): Likewise.
3627         * modules/chdir-long (Makefile.am): Likewise.
3628         * modules/chdir-safer (Makefile.am): Likewise.
3629         * modules/check-version (Makefile.am): Likewise.
3630         * modules/chown (Makefile.am): Likewise.
3631         * modules/cloexec (Makefile.am): Likewise.
3632         * modules/close-stream (Makefile.am): Likewise.
3633         * modules/closeout (Makefile.am): Likewise.
3634         * modules/crc (Makefile.am): Likewise.
3635         * modules/cycle-check (Makefile.am): Likewise.
3636         * modules/des (Makefile.am): Likewise.
3637         * modules/dirfd (Makefile.am): Likewise.
3638         * modules/dirname (Makefile.am): Likewise.
3639         * modules/dup2 (Makefile.am): Likewise.
3640         * modules/euidaccess (Makefile.am): Likewise.
3641         * modules/exclude (Makefile.am): Likewise.
3642         * modules/exitfail (Makefile.am): Likewise.
3643         * modules/fcntl-safer (Makefile.am): Likewise.
3644         * modules/file-type (Makefile.am): Likewise.
3645         * modules/fileblocks (Makefile.am): Likewise.
3646         * modules/filemode (Makefile.am): Likewise.
3647         * modules/filenamecat (Makefile.am): Likewise.
3648         * modules/fnmatch (Makefile.am): Likewise.
3649         * modules/fopen-safer (Makefile.am): Likewise.
3650         * modules/fpending (Makefile.am): Likewise.
3651         * modules/fprintftime (Makefile.am): Likewise.
3652         * modules/free (Makefile.am): Likewise.
3653         * modules/fsusage (Makefile.am): Likewise.
3654         * modules/ftruncate (Makefile.am): Likewise.
3655         * modules/fts (Makefile.am): Likewise.
3656         * modules/gc (Makefile.am): Likewise.
3657         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
3658         * modules/getaddrinfo (Makefile.am): Likewise.
3659         * modules/getcwd (Makefile.am): Likewise.
3660         * modules/getdelim (Makefile.am): Likewise.
3661         * modules/getdomainname (Makefile.am): Likewise.
3662         * modules/getgroups (Makefile.am): Likewise.
3663         * modules/gethostname (Makefile.am): Likewise.
3664         * modules/gethrxtime (Makefile.am): Likewise.
3665         * modules/getline (Makefile.am): Likewise.
3666         * modules/getloadavg (Makefile.am): Likewise.
3667         * modules/getlogin_r (Makefile.am): Likewise.
3668         * modules/getopt (Makefile.am): Likewise.
3669         * modules/getpass (Makefile.am): Likewise.
3670         * modules/getpass-gnu (Makefile.am): Likewise.
3671         * modules/getsubopt (Makefile.am): Likewise.
3672         * modules/gettime (Makefile.am): Likewise.
3673         * modules/gettimeofday (Makefile.am): Likewise.
3674         * modules/getugroups (Makefile.am): Likewise.
3675         * modules/getusershell (Makefile.am): Likewise.
3676         * modules/glob (Makefile.am): Likewise.
3677         * modules/group-member (Makefile.am): Likewise.
3678         * modules/hard-locale (Makefile.am): Likewise.
3679         * modules/hash (Makefile.am): Likewise.
3680         * modules/hmac-md5 (Makefile.am): Likewise.
3681         * modules/hmac-sha1 (Makefile.am): Likewise.
3682         * modules/human (Makefile.am): Likewise.
3683         * modules/idcache (Makefile.am): Likewise.
3684         * modules/imaxabs (Makefile.am): Likewise.
3685         * modules/imaxdiv (Makefile.am): Likewise.
3686         * modules/inet_ntop (Makefile.am): Likewise.
3687         * modules/inet_pton (Makefile.am): Likewise.
3688         * modules/inttostr (Makefile.am): Likewise.
3689         * modules/isapipe (Makefile.am): Likewise.
3690         * modules/lchown (Makefile.am): Likewise.
3691         * modules/long-options (Makefile.am): Likewise.
3692         * modules/lstat (Makefile.am): Likewise.
3693         * modules/malloc (Makefile.am): Likewise.
3694         * modules/mathl (Makefile.am): Likewise.
3695         * modules/mbchar (Makefile.am): Likewise.
3696         * modules/md2 (Makefile.am): Likewise.
3697         * modules/md4 (Makefile.am): Likewise.
3698         * modules/md5 (Makefile.am): Likewise.
3699         * modules/memcasecmp (Makefile.am): Likewise.
3700         * modules/memchr (Makefile.am): Likewise.
3701         * modules/memcmp (Makefile.am): Likewise.
3702         * modules/memcoll (Makefile.am): Likewise.
3703         * modules/memcpy (Makefile.am): Likewise.
3704         * modules/memmem (Makefile.am): Likewise.
3705         * modules/memmove (Makefile.am): Likewise.
3706         * modules/mempcpy (Makefile.am): Likewise.
3707         * modules/memrchr (Makefile.am): Likewise.
3708         * modules/memset (Makefile.am): Likewise.
3709         * modules/memxor (Makefile.am): Likewise.
3710         * modules/mkancesdirs (Makefile.am): Likewise.
3711         * modules/mkdir (Makefile.am): Likewise.
3712         * modules/mkdir-p (Makefile.am): Likewise.
3713         * modules/mkdtemp (Makefile.am): Likewise.
3714         * modules/mkstemp (Makefile.am): Likewise.
3715         * modules/mktime (Makefile.am): Likewise.
3716         * modules/modechange (Makefile.am): Likewise.
3717         * modules/mountlist (Makefile.am): Likewise.
3718         * modules/nanosleep (Makefile.am): Likewise.
3719         * modules/openat (Makefile.am): Likewise.
3720         * modules/pagealign_alloc (Makefile.am): Likewise.
3721         * modules/physmem (Makefile.am): Likewise.
3722         * modules/poll (Makefile.am): Likewise.
3723         * modules/posixtm (Makefile.am): Likewise.
3724         * modules/posixver (Makefile.am): Likewise.
3725         * modules/putenv (Makefile.am): Likewise.
3726         * modules/quote (Makefile.am): Likewise.
3727         * modules/quotearg (Makefile.am): Likewise.
3728         * modules/raise (Makefile.am): Likewise.
3729         * modules/read-file (Makefile.am): Likewise.
3730         * modules/readline (Makefile.am): Likewise.
3731         * modules/readlink (Makefile.am): Likewise.
3732         * modules/readtokens (Makefile.am): Likewise.
3733         * modules/readutmp (Makefile.am): Likewise.
3734         * modules/realloc (Makefile.am): Likewise.
3735         * modules/regex (Makefile.am): Likewise.
3736         * modules/rename (Makefile.am): Likewise.
3737         * modules/rename-dest-slash (Makefile.am): Likewise.
3738         * modules/rijndael (Makefile.am): Likewise.
3739         * modules/rmdir (Makefile.am): Likewise.
3740         * modules/rpmatch (Makefile.am): Likewise.
3741         * modules/safe-read (Makefile.am): Likewise.
3742         * modules/safe-write (Makefile.am): Likewise.
3743         * modules/same (Makefile.am): Likewise.
3744         * modules/save-cwd (Makefile.am): Likewise.
3745         * modules/savedir (Makefile.am): Likewise.
3746         * modules/setenv (Makefile.am): Likewise.
3747         * modules/settime (Makefile.am): Likewise.
3748         * modules/sha1 (Makefile.am): Likewise.
3749         * modules/sig2str (Makefile.am): Likewise.
3750         * modules/snprintf (Makefile.am): Likewise.
3751         * modules/stdlib-safer (Makefile.am): Likewise.
3752         * modules/stpcpy (Makefile.am): Likewise.
3753         * modules/stpncpy (Makefile.am): Likewise.
3754         * modules/strcase (Makefile.am): Likewise.
3755         * modules/strcasestr (Makefile.am): Likewise.
3756         * modules/strchrnul (Makefile.am): Likewise.
3757         * modules/strcspn (Makefile.am): Likewise.
3758         * modules/strdup (Makefile.am): Likewise.
3759         * modules/strerror (Makefile.am): Likewise.
3760         * modules/strftime (Makefile.am): Likewise.
3761         * modules/strndup (Makefile.am): Likewise.
3762         * modules/strnlen (Makefile.am): Likewise.
3763         * modules/strpbrk (Makefile.am): Likewise.
3764         * modules/strsep (Makefile.am): Likewise.
3765         * modules/strstr (Makefile.am): Likewise.
3766         * modules/strtod (Makefile.am): Likewise.
3767         * modules/strtoimax (Makefile.am): Likewise.
3768         * modules/strtok_r (Makefile.am): Likewise.
3769         * modules/strtol (Makefile.am): Likewise.
3770         * modules/strtoll (Makefile.am): Likewise.
3771         * modules/strtoul (Makefile.am): Likewise.
3772         * modules/strtoull (Makefile.am): Likewise.
3773         * modules/strtoumax (Makefile.am): Likewise.
3774         * modules/strverscmp (Makefile.am): Likewise.
3775         * modules/time_r (Makefile.am): Likewise.
3776         * modules/timegm (Makefile.am): Likewise.
3777         * modules/tmpfile-safer (Makefile.am): Likewise.
3778         * modules/unistd-safer (Makefile.am): Likewise.
3779         * modules/unlinkdir (Makefile.am): Likewise.
3780         * modules/userspec (Makefile.am): Likewise.
3781         * modules/utime (Makefile.am): Likewise.
3782         * modules/utimecmp (Makefile.am): Likewise.
3783         * modules/utimens (Makefile.am): Likewise.
3784         * modules/vasnprintf (Makefile.am): Likewise.
3785         * modules/vasprintf (Makefile.am): Likewise.
3786         * modules/vsnprintf (Makefile.am): Likewise.
3787         * modules/xalloc (Makefile.am): Likewise.
3788         * modules/xgetcwd (Makefile.am): Likewise.
3789         * modules/xnanosleep (Makefile.am): Likewise.
3790         * modules/xreadlink (Makefile.am): Likewise.
3791         * modules/xstrtod (Makefile.am): Likewise.
3792         * modules/xstrtol (Makefile.am): Likewise.
3793         * modules/xstrtold (Makefile.am): Likewise.
3794         * modules/yesno (Makefile.am): Likewise.
3795
3796 2006-10-12  Jim Meyering  <jim@meyering.net>
3797
3798         * m4/getloadavg.m4: Revert the change below.
3799
3800         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
3801         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
3802         fail with a symlink, which is what coreutils' ./bootstrap now
3803         creates by default.
3804
3805 2006-10-12  Bruno Haible  <bruno@clisp.org>
3806
3807         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
3808         mingw.
3809         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
3810         MSVC and mingw explicitly.
3811
3812 2006-10-11  Simon Josefsson  <jas@extundo.com>
3813             Bruno Haible  <bruno@clisp.org>
3814
3815         Add support for multiple gnulib-tool invocations in the scope of a
3816         single configure.ac file.
3817         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
3818         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
3819         with the same contents as the _LIBADD variable.
3820         (func_emit_initmacro_start, func_emit_initmacro_end,
3821         func_emit_initmacro_done): New functions.
3822         (func_import, func_create_testdir): Invoke them. Allow the identifiers
3823         gl_LIBOBJS and gl_LTLIBOBJS.
3824
3825 2006-10-11  Bruno Haible  <bruno@clisp.org>
3826
3827         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
3828         (func_create_testdir): Don't create po/Makefile.am, don't invoke
3829         autoreconf. Instead, invoke autopoint explicitly but move back the
3830         *.m4 files from gnulib.
3831
3832 2006-10-11  Bruno Haible  <bruno@clisp.org>
3833
3834         * gnulib-tool (func_usage): Make module names after --create-testdir
3835         optional.
3836         (func_create_testdir): If no module was specified, use nearly all
3837         modules.
3838
3839 2006-10-12  Jim Meyering  <jim@meyering.net>
3840
3841         Big performance improvement for fts-based tools that use FTS_NOSTAT.
3842         Avoid spurious inode-mismatch problems on non-POSIX file systems.
3843         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
3844         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
3845         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
3846         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
3847         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
3848         (fts_set_stat_required): New function.
3849         (fts_open): Defer the calls to fts_stat, if possible or requested.
3850         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
3851         into fts_stat itself.
3852         (fts_read): Perform any required (deferred) fts_stat call.
3853         (fts_build): Likewise, for the directory we're about to open and read.
3854         In the readdir loop, carefully decide whether each entry will require
3855         an eventual call to fts_stat, using dirent.d_type info if available.
3856         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
3857         a command line argument into this function.  Update all callers.
3858         Map a return value of FTS_DOT to FTS_D for a command line argument.
3859         * modules/fts (Depends-on): Add d-type.  Alphabetize.
3860         Thanks to Miklos Szeredi for his tenacity and for the initial
3861         bug report about "find" failing on a FUSE-based file system.
3862
3863         * lib/fts.c (fts_open): Use consistent indentation.
3864
3865 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
3866
3867         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
3868         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
3869         reported by Jim Meyering.  All uses of cache variables renamed
3870         to match Autoconf's.
3871         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
3872         the other one.
3873
3874         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
3875         Fix misspelling in diagnostic.
3876
3877 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
3878
3879         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
3880         defined.  Problem reported by Matthew Woehlke.
3881
3882         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
3883         Add support for Tandem NonStop R series.
3884         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
3885         Use new macro.
3886
3887         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
3888         (has_trailing_slash): Omit size arg; all callers changed.
3889         Omit 'inline', since it doesn't help performance and we'd
3890         need to configure it.
3891         Don't count //, ///, etc. as having a trailing slash.
3892         As a side effect, this removes a C99ism reported by Matthew Woehlke.
3893         (rpl_rename_dest_slash): On failure, use rename's errno rather
3894         than (in some cases) an incorrect or junk errno.
3895         Simplify code by removing need to compute length; this does
3896         cause it to make two passes instead of one over the file name,
3897         but it's worth it.
3898
3899         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
3900         change, since Autoconf's version may no longer be appropriate now
3901         that we are using CVS Autoconf's version.  Add support for Tandem.
3902
3903 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
3904             Bruno Haible  <bruno@clisp.org>
3905
3906         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
3907         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
3908         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
3909         gl_AC_TYPE_LONG_LONG.
3910
3911         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
3912         instead of HAVE_LONG_LONG.
3913         * lib/printf-args.c (printf_fetchargs): Likewise.
3914         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
3915         * lib/vasnprintf.c (VASNPRINTF): Likewise.
3916         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
3917         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
3918         gl_AC_TYPE_LONG_LONG.
3919
3920 2006-10-11  Bruno Haible  <bruno@clisp.org>
3921
3922         * m4/longlong.m4: Add comments.
3923         * m4/ulonglong.m4: Likewise.
3924
3925 2006-10-10  Bruno Haible  <bruno@clisp.org>
3926
3927         Make it possible to #define stpcpy, strdup to aliases.
3928         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
3929         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
3930
3931 2006-10-10  Bruno Haible  <bruno@clisp.org>
3932
3933         Make it possible to #define gcd to an alias.
3934         * lib/gcd.c: Include config.h.
3935
3936 2006-10-10  Bruno Haible  <bruno@clisp.org>
3937
3938         Make it possible to #define c_isascii to an alias.
3939         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
3940         defined. Undefine the macros before defining them, to avoid gcc
3941         warnings.
3942         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
3943         define NO_C_CTYPE_MACROS early.
3944
3945 2006-10-10  Bruno Haible  <bruno@clisp.org>
3946
3947         Make it possible to #define set_program_name to an alias.
3948         * lib/progname.c: Don't undefine set_program_name; instead, undefine
3949         ENABLE_RELOCATABLE early.
3950
3951 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
3952
3953         Port to Tandem NSK OSS, which has 64-bit signed int but at most
3954         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
3955         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
3956         More generally, don't assume that 64-bit signed int is available
3957         if unsigned int is, and vice versa.
3958         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
3959         unsigned symbols, not on their signed counterparts.
3960         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
3961         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
3962         (UINT64_C, UINTMAX_C):
3963         Likewise.
3964         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
3965         unsigned counterparts.
3966         (Have_long_long, Unsigned): New macros.
3967         (Int): Renamed from INT.
3968         (strtoimax): Use the new macros.
3969         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
3970         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
3971         * modules/inttypes (inttypes.h): Substitute
3972         HAVE_UNSIGNED_LONG_LONG_INT.
3973         * modules/stdint (stdint.h): Likewise.
3974         (Files): Add m4/ulonglong.m4.
3975
3976 2006-10-10  Bruno Haible  <bruno@clisp.org>
3977
3978         Fix a gcc -Wshadow warning.
3979         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
3980         to 'bucket'.
3981         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
3982         gl_linked_indexof_from_to): Likewise.
3983         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
3984         Likewise.
3985         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
3986         Likewise.
3987         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
3988         Reported by Eric Blake.
3989
3990 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
3991
3992         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
3993         for NetBSD.  Problem reported by Bruno Haible.
3994
3995 2006-10-09  Jim Meyering  <jim@meyering.net>
3996
3997         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
3998         Patch from Bruno Haible.
3999
4000 2006-10-09  Jim Meyering  <jim@meyering.net>
4001
4002         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
4003         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
4004         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
4005
4006 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
4007
4008         Don't include <config.h> twice; this doesn't work in some cases,
4009         e.g., when config.h has "#define intmax_t long long int" and
4010         we include <config.h>, <inttypes.h>, <config.h> in that order.
4011         Problem reported by Matthew Woehlke in:
4012         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
4013         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
4014         * lib/fts-cycle.c: Don't include config.h.
4015         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
4016         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
4017         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
4018         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
4019         inttypes.h.
4020         * lib/xstrtoumax.c: Likewise.
4021         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
4022         __strtol and the like, so that this module is more like its siblings.
4023         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
4024         Remove; no longer needed now that we assume gnulib inttypes.h.
4025
4026 2006-10-08  Bruno Haible  <bruno@clisp.org>
4027
4028         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
4029         option.
4030
4031 2006-10-07  Jim Meyering  <jim@meyering.net>
4032
4033         * modules/inttypes (inttypes.h): Revert what seems to have been
4034         an inadvertent part of today's change: use "|", not "/" in the
4035         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
4036
4037 2006-10-07  Bruno Haible  <bruno@clisp.org>
4038
4039         * modules/sublist: New file.
4040
4041 2006-10-07  Bruno Haible  <bruno@clisp.org>
4042
4043         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
4044         * modules/argz (argz.h): Likewise.
4045         * modules/arpa_inet (arpa/inet.h): Likewise.
4046         * modules/byteswap (byteswap.h): Likewise.
4047         * modules/configmake (configmake.h): Likewise.
4048         * modules/fcntl (fcntl.h): Likewise.
4049         * modules/fnmatch (fnmatch.h): Likewise.
4050         * modules/getopt (getopt.h): Likewise.
4051         * modules/glob (glob.h): Likewise.
4052         * modules/inttypes (inttypes.h): Likewise.
4053         * modules/netinet_in (netinet/in.h): Likewise.
4054         * modules/poll (poll.h): Likewise.
4055         * modules/stdbool (stdbool.h): Likewise.
4056         * modules/stdint (stdint.h): Likewise.
4057         * modules/sys_select (sys/select.h): Likewise.
4058         * modules/sys_socket (sys/socket.h): Likewise.
4059         * modules/sys_stat (sys/stat.h): Likewise.
4060         * modules/sysexits (sysexits.h): Likewise.
4061         * modules/unistd (unistd.h): Likewise.
4062         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
4063         Add a "DO NOT EDIT" comment to the generated file.
4064         (func_import): Likewise for gnulib-comp.m4.
4065
4066 2006-10-07  Bruno Haible  <bruno@clisp.org>
4067
4068         * lib/gl_sublist.h: New file.
4069         * lib/gl_sublist.c: New file.
4070
4071 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
4072
4073         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
4074         name (relative to the original working directory) and the file
4075         name component (relative to the temporary working directory).  All
4076         callers changed.
4077         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
4078         * lib/mkdir-p.c (make_dir_parents): Likewise.
4079         * lib/mkdir-p.h (make_dir_parents): Likewise.
4080
4081 2006-10-06  Eric Blake  <ebb9@byu.net>
4082
4083         Define several macros for use by the clean-temp module.
4084         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
4085         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
4086         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
4087
4088         * lib/clean-temp.h (close_stream_temp): New declaration.
4089         * lib/clean-temp.c (includes): Pull in headers according to what
4090         other modules are in use.
4091         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
4092
4093 2006-10-06  Bruno Haible  <bruno@clisp.org>
4094
4095         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
4096         instead of fopen, fwriteerror.
4097
4098 2006-10-06  Bruno Haible  <bruno@clisp.org>
4099
4100         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
4101         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
4102         int.
4103         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
4104         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
4105         Return an error indicator.
4106         Suggested by Eric Blake.
4107
4108 2006-10-06  Bruno Haible  <bruno@clisp.org>
4109
4110         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
4111         Reported by Eric Blake.
4112
4113 2006-10-06  Bruno Haible  <bruno@clisp.org>
4114
4115         * modules/closeout (Description): Mention stderr too.
4116
4117 2006-10-06  Bruno Haible  <bruno@clisp.org>
4118         and Paul Eggert  <eggert@cs.ucla.edu>
4119
4120         * lib/closeout.c (close_stdout): Also close stderr.
4121         * lib/closeout.h: Update comment.
4122
4123 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
4124
4125         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
4126         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
4127         * lib/dirchownmod.c: Include lchown.h.
4128         * lib/lchown.c: Don't include files that lchown.h now includes.
4129         Don't declare chown, since lchown.h now does that.
4130         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
4131         (lchown): Define to rpl_chown if lchown is declared but
4132         does not exist.  Declare using a prototype if lchown is not
4133         declared.  Add a copyright notice.
4134         * lib/mkstemp.h: Include <unistd.h>.
4135         * lib/openat.c: Include lchown.h.
4136
4137         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
4138         we now test for that separately.
4139         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
4140         rather than O_NOFOLLOW, when testing whether it's possible to
4141         avoid a race condition reliably.
4142         * lib/savewd.c (savewd_chdir): Likewise.
4143
4144         Remove macros that are no longer needed now that stdint.h is
4145         reliable.
4146         * lib/fsusage.c (UINTMAX_MAX): Remove.
4147         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
4148         * lib/utimecmp.c (SIZE_MAX): Remove.
4149
4150         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
4151
4152         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
4153         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
4154         O_NOATIME works.
4155
4156 2006-10-05  Bruno Haible  <bruno@clisp.org>
4157
4158         * lib/gl_list.h (gl_sortedlist_search_from_to,
4159         gl_sortedlist_indexof_from_to): New declarations.
4160         (gl_list_implementation): New fields sortedlist_search_from_to,
4161         sortedlist_indexof_from_to.
4162         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
4163         inline functions.
4164         * lib/gl_list.c (gl_sortedlist_search_from_to,
4165         gl_sortedlist_indexof_from_to): New functions.
4166         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
4167         function.
4168         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
4169         (gl_array_sortedlist_search_from_to): New function.
4170         (gl_array_list_implementation): Update.
4171         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
4172         function.
4173         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
4174         (gl_carray_sortedlist_search_from_to): New function.
4175         (gl_carray_list_implementation): Update.
4176         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
4177         gl_linked_sortedlist_indexof_from_to): New functions.
4178         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
4179         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
4180         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
4181         gl_tree_sortedlist_indexof_from_to): New functions.
4182         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
4183         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
4184         Update.
4185         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
4186         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
4187         Update.
4188
4189 2006-10-05  Bruno Haible  <bruno@clisp.org>
4190
4191         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
4192         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
4193         (struct gl_list_implementation): Add fields search_from_to,
4194         indexof_from_to. Remove fields search, indexof.
4195         (gl_list_search): Use the search_from_to method.
4196         (gl_list_search_from, gl_list_search_from_to): New functions.
4197         (gl_list_indexof): Use the indexof_from_to method.
4198         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
4199         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
4200         (gl_list_search_from, gl_list_search_from_to): New functions.
4201         (gl_list_indexof): Use the indexof_from_to method.
4202         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
4203         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
4204         gl_array_indexof. Add start_index, end_index arguments.
4205         (gl_array_search_from_to): Renamed from gl_array_search. Add
4206         start_index, end_index arguments.
4207         (gl_array_remove, gl_array_list_implementation): Update.
4208         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
4209         gl_carray_indexof. Add start_index, end_index arguments.
4210         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
4211         start_index, end_index arguments.
4212         (gl_carray_remove, gl_carray_list_implementation): Update.
4213         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
4214         gl_linked_search. Add start_index, end_index arguments.
4215         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
4216         start_index, end_index arguments.
4217         (gl_linked_remove): Update.
4218         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
4219         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
4220         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
4221         field to 'size_t'.
4222         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
4223         gl_tree_search. Add start_index, end_index arguments.
4224         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
4225         start_index, end_index arguments.
4226         (gl_tree_remove): Update.
4227         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
4228         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
4229         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
4230         function.
4231         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
4232         gl_tree_search. Add start_index, end_index arguments.
4233         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
4234         start_index, end_index arguments.
4235         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
4236         Update.
4237         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
4238
4239 2006-10-05  Bruno Haible  <bruno@clisp.org>
4240
4241         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
4242
4243         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
4244         fwriteerror_temp): New declarations.
4245         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
4246         (descriptors): New variable.
4247         (cleanup): First, close the descriptors.
4248         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
4249         fclose_temp, fwriteerror_temp): New functions.
4250
4251 2006-10-04  Jim Meyering  <jim@meyering.net>
4252
4253         * lib/fts.c (fts_open): Tiny comment change.
4254
4255 2006-10-04  Bruno Haible  <bruno@clisp.org>
4256
4257         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
4258         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
4259         gl_LOCK_BODY.
4260         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
4261         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
4262         gl_LOCK_EARLY_BODY.
4263         (gl_LOCK): Require gl_LOCK_BODY.
4264
4265 2006-10-04  Bruno Haible  <bruno@clisp.org>
4266
4267         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
4268         (gl_oset_search_atleast): New declaration.
4269         (struct gl_oset_implementation): Add field 'search_atleast'.
4270         (gl_oset_search_atleast): New inline function.
4271         * lib/gl_oset.c (gl_oset_search_atleast): New function.
4272         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
4273         (gl_array_oset_implementation): Update.
4274         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
4275         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
4276         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
4277
4278 2006-10-04  Bruno Haible  <bruno@clisp.org>
4279
4280         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
4281
4282 2006-10-03  Bruno Haible  <bruno@clisp.org>
4283
4284         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
4285         from gl_avltreehash_list_implementation.
4286
4287 2006-10-03  Bruno Haible  <bruno@clisp.org>
4288
4289         * lib/gl_oset.c (gl_oset_add): Fix return type.
4290
4291 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
4292
4293         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
4294
4295 2006-10-02  Eric Blake  <ebb9@byu.net>
4296
4297         * modules/strnlen (Depends-on): Add extensions.
4298
4299 2006-10-02  Eric Blake  <ebb9@byu.net>
4300
4301         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
4302         definition in 2.60+.
4303
4304 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
4305
4306         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
4307         checks.
4308
4309 2006-10-02  Bruno Haible  <bruno@clisp.org>
4310
4311         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
4312         to the AUTOMAKE_OPTIONS.
4313         Reported by Jim Meyering.
4314
4315 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
4316
4317         Work around bug in Solaris 10 /proc file system:
4318         /proc/self/fd/NNN/.. isn't the parent directory of
4319         the directory whose file descriptor is NNN.  This needs to
4320         be worked around at run time, not compile time, since a
4321         program might be built on Solaris 8, where things work, and
4322         run on Solaris 10.
4323         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
4324         to use the following interface instead:
4325         (OPENAT_BUFFER_SIZE): New macro.
4326         (openat_proc_name): New function.
4327         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
4328         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
4329         Likewise.
4330         * lib/openat-proc.c: New file.
4331         * modules/openat (Files): Add lib/openat-proc.c.
4332         (Depends-on): Add same-inode, stdbool.
4333         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
4334
4335 2006-09-29  Bruno Haible  <bruno@clisp.org>
4336
4337         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
4338         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
4339         argument. Set stdout_closed before testing for ferror, not after.
4340         (fwriteerror, fwriteerror_no_ebadf): New functions.
4341
4342 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4343
4344         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
4345
4346 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
4347
4348         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
4349         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
4350
4351 2006-09-28  Jim Meyering  <jim@meyering.net>
4352
4353         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
4354         Include <unistd.h>.
4355
4356 2006-09-28  Bruno Haible  <bruno@clisp.org>
4357
4358         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
4359         * modules/linkedhash-list (Depends-on): Likewise.
4360         * modules/rbtreehash-list (Depends-on): Likewise.
4361
4362 2006-09-28  Bruno Haible  <bruno@clisp.org>
4363
4364         * lib/strndup.h: Simplify the redefinition of strndup.
4365         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
4366         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
4367
4368 2006-09-28  Bruno Haible  <bruno@clisp.org>
4369
4370         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
4371         * lib/gl_linkedhash_list.c: Likewise.
4372         * lib/gl_rbtreehash_list.c: Likewise.
4373
4374 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
4375
4376         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
4377         getaddrinfo.
4378
4379         * lib/__fpending.h: Don't include <stdio_ext.h> unless
4380         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
4381         it causes <stdio_ext.h> to cause a compile-time error.
4382         Problem reported by Nelson H. F. Beebe.
4383         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
4384         of HAVE_DECL___PENDING.
4385
4386         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
4387         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
4388         declaration.
4389
4390 2006-09-27  Jim Meyering  <jim@meyering.net>
4391
4392         This file could end up with a definition for a function
4393         named __strndup, rather than rpl_strndup on a system with
4394         incomplete weak_alias support.
4395         * lib/strndup.c (strndup): Rename from __strndup.
4396         Remove #defines that used to map __strndup to strndup.
4397         Don't use K&R prototypes.
4398         Remove LIBC-related code, since this file is not sync'd with glibc.
4399         * lib/strndup.h: Revamp, accordingly.
4400         * m4/strndup.m4: Modernize.
4401
4402 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
4403
4404         * modules/savewd (Depends-on): Add 'raise'.
4405         * lib/savewd.c: Include <signal.h>, for 'raise'.
4406
4407 2006-09-26  Jim Meyering  <jim@meyering.net>
4408
4409         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
4410         when we detect Darwin 8.7.0's acl_get_file bug.
4411         Rearrange to perform the new (below) run-test while $LIBS
4412         contains any acl-related library.  Set USE_ACL at the end.
4413         (gl_ACL_GET_FILE): New function.
4414
4415 2006-09-26  Eric Blake  <ebb9@byu.net>
4416
4417         * lib/verror.c: Include <config.h> unconditionally.
4418
4419 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
4420
4421         * modules/clock-time (Maintainer): Add self.
4422         * modules/getlogin_r (Depends-on): Add extensions.
4423
4424 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4425
4426         * modules/clock-time: New module.
4427         * modules/nanosleep (Depends-on): Add clock-time.
4428         * modules/gethrxtime (Depends-on): Likewise.
4429         * modules/gettime (Depends-on): Likewise.
4430         * modules/settime (Depends-on): Likewise.
4431
4432         * modules/fts-lgpl: Depend on openat.
4433         * modules/mkancesdirs: Depend on savewd.
4434         * modules/mkdir-p: Likewise.
4435
4436 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4437
4438         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
4439
4440         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
4441         `gl_have_arbitrary_file_name_length_limit' to
4442         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
4443         actually works between configure runs.
4444
4445 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4446             Bruno Haible  <bruno@clisp.org>
4447
4448         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
4449
4450 2006-09-25  Jim Meyering  <jim@meyering.net>
4451
4452         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
4453         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
4454
4455 2006-09-25  Eric Blake  <ebb9@byu.net>
4456
4457         * gnulib-tool (func_import, func_create_testdir): Fix typos in
4458         exec's in 2006-09-18 patch when shuffling fds.
4459
4460 2006-09-25  Bruno Haible  <bruno@clisp.org>
4461
4462         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
4463         Reported by Jim Meyering.
4464
4465 2006-09-24  Jim Meyering  <jim@meyering.net>
4466
4467         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
4468         compare a pointer against a literal "0".  That caused failures with
4469         at least HP-UX's hpcc.
4470
4471 2006-09-22  Simon Josefsson  <jas@extundo.com>
4472
4473         * modules/gc-sha1:
4474         * modules/gc-md4:
4475         * modules/gc-hmac-sha1:
4476         * modules/gc-hmac-md5:
4477         * modules/gc-des:
4478         * modules/gc-arcfour: Distribute more files.
4479
4480 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4481
4482         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
4483         (gl_linked_iterator_from_to): Initialize struct completely.
4484         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
4485         (gl_tree_iterator_from_to): Likewise
4486         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
4487         * lib/gl_array_list.c [lint] (gl_array_iterator)
4488         (gl_array_iterator_from_to): Likewise.
4489         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
4490         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
4491         (gl_carray_iterator_from_to): Likewise.
4492
4493         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
4494         * lib/md4.c (md4_process_block): Remove unused variable.
4495         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
4496         parentheses for clarity.
4497
4498 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4499
4500         * modules/bison-i18n (Depends-on): Add gettext.
4501
4502 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4503
4504         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
4505         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
4506         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
4507         also add missing comma that caused broken test.
4508         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
4509         stdlib.h, for `abort'.
4510         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
4511         variables.
4512         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
4513         include unistd.h if present, for `rmdir'.
4514         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
4515         variables.
4516         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
4517         in the process include standard headers for prototypes.
4518         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
4519         gets declared on GNU/Linux.
4520         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
4521         unistd.h, for `rmdir'.
4522         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
4523
4524         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
4525         always true.
4526         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
4527
4528         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
4529
4530 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4531
4532         * gnulib-tool (func_version): Create output all at once.  This
4533         may help avoid triggering unnecessary SIGPIPEs, and at any
4534         rate it doesn't hurt.
4535
4536 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4537             Bruno Haible  <bruno@clisp.org>
4538
4539         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
4540         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
4541         * m4/signed.m4 (bh_C_SIGNED): Likewise.
4542
4543         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
4544         (gl_FUNC_VASPRINTF): Invoke it.
4545
4546 2006-09-22  Bruno Haible  <bruno@clisp.org>
4547
4548         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
4549         getloadavg.c as first argument.
4550
4551 2006-09-22  Bruno Haible  <bruno@clisp.org>
4552
4553         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
4554         at the beginning of the gl_INIT macro.
4555         * modules/getloadavg (configure.ac): Pass $gl_source_base to
4556         gl_GETLOADAVG.
4557
4558 2006-09-22  Bruno Haible  <bruno@clisp.org>
4559
4560         * gnulib-tool (func_create_megatestdir): Don't include the config-h
4561         module.
4562         Suggested by Ralf Wildenhues.
4563
4564 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
4565
4566         Import this patch from libc:
4567
4568         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
4569
4570         * lib/regex_internal.c (re_string_reconstruct): Handle
4571         offset < pstr->valid_raw_len && pstr->offsets_needed case.
4572         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
4573         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
4574         re_string_context_at.
4575
4576         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
4577         now requires it.
4578         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
4579         gl_REGEX now does it for us.
4580         (gl_REGEX): Add test taken from
4581         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
4582
4583         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
4584         Check that large offsets work.  Modernize Autoconf usages.
4585         Prefer "yes" to mean a good thing rather than a bad.
4586         Don't put "#define mkstemp" in config.h, as this might interfere
4587         with standard system headers that "#define mkstemp mkstemp64".
4588
4589         * modules/mkstemp (Depends-on): Add extensions, so that
4590         mkstemp is visible on some platforms.
4591         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
4592         (Include): Change to "mkstemp.h" from <stdlib.h>.
4593         (Files): Add mkstemp.h.
4594
4595         * lib/mkstemp.h: New file, since some standard headers
4596         #define mkstemp.
4597         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
4598         Include "mkstemp.h".
4599         Make the _LIBC code resemble glibc original more,
4600         e.g., use K&R style.
4601         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
4602         (mkstemp): Remove, since mkstemp.h does this for us.
4603         * lib/stdlib--.h: Include mkstemp.h.
4604
4605         Import this patch from libc:
4606
4607         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
4608
4609         * lib/tempname.c (__gen_tempname): Change attempts_min
4610         into a macro.  Use preprocessor to decide how to initialize
4611         attempts [Coverity CID 67].
4612
4613 2006-09-20  Bruno Haible  <bruno@clisp.org>
4614
4615         * lib/mkdtemp.c: Import from libc.
4616         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
4617                 * sysdeps/posix/tempname.c (__gen_tempname): Change
4618                 attempts_min into a macro.  Use preprocessor to decide how to
4619                 initialize attempts [Coverity CID 67].
4620         2001-11-27  Paul Eggert  <eggert@twinsun.com>
4621                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
4622                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
4623
4624 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4625
4626         * gnulib-tool (func_exit): New function, to allow to pass the
4627         exit status portably through the trap.  Use everywhere.
4628         (--help, --version): Signal a write error.
4629         (trap): catch SIGPIPE, for write errors.
4630         Exit at the end of the trap, with the correct exit status.
4631
4632 2006-09-19  Karl Berry  <karl@gnu.org>
4633
4634         * doc/gnulib.texi: note about the license texinfo files.
4635
4636 2006-09-19  Eric Blake  <ebb9@byu.net>
4637
4638         * gnulib-tool: Avoid space-tab.
4639
4640 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
4641
4642         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
4643         that prevented coreutils 6.1 from building.  Problem reported
4644         by Petter Reinholdtsen.
4645
4646 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
4647
4648         * gnulib-tool (avoidlist): Fix typo that broke options like
4649         --avoid=lock that are used by coreutils bootstrap.
4650
4651 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
4652
4653         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
4654         more systematically.
4655
4656 2006-09-18  Jim Meyering  <jim@meyering.net>
4657
4658         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
4659
4660 2006-09-18  Bruno Haible  <bruno@clisp.org>
4661
4662         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
4663
4664 2006-09-18  Bruno Haible  <bruno@clisp.org>
4665
4666         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
4667         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
4668         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
4669         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
4670         * m4/gettext.m4: Require autoconf >= 2.52.
4671         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
4672         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
4673         of gl_cv_header_inttypes_h.
4674
4675 2006-09-18  Bruno Haible  <bruno@clisp.org>
4676
4677         * lib/javaversion.c: Include configmake.h.
4678
4679 2006-09-18  Bruno Haible  <bruno@clisp.org>
4680
4681         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
4682         avoid that the while loops be executed in a subshell.
4683
4684 2006-09-18  Bruno Haible  <bruno@clisp.org>
4685
4686         * MODULES.html.sh (func_module): Break long lines.
4687         Suggested by Bruce Korb <bkorb@gnu.org>.
4688
4689 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4690
4691         Speed up by a factor of 1.12.
4692         * gnulib-tool (nl): New variable.
4693         (func_import): Rewrite include directive extraction to only read each
4694         directive once.
4695
4696 2006-09-17  Bruno Haible  <bruno@clisp.org>
4697
4698         * modules/javaversion (Makefile.am): Remove DEFS setting.
4699         (Depends-on): Add configmake, for PKGDATADIR definition.
4700
4701 2006-09-17  Bruno Haible  <bruno@clisp.org>
4702
4703         * gnulib-tool (func_create_testdir): Rewrite all files at once.
4704
4705 2006-09-17  Bruno Haible  <bruno@clisp.org>
4706
4707         * gnulib-tool (func_append): New function, stolen from libtool.m4.
4708         (func_modules_transitive_closure, func_modules_add_dummy,
4709         func_modules_to_filelist, func_import, func_create_testdir,
4710         func_create_megatestdir, ...): Use it wherever possible.
4711         Suggested by Ralf Wildenhues.
4712
4713 2006-09-16  Karl Berry  <karl@gnu.org>
4714
4715         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
4716         to avoid sectioning errors.
4717         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
4718         [ifinfo]: blank line after @center-ed titles.
4719         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
4720         Spell FSF address consistently with others.
4721         (These changes approved by rms.)
4722
4723 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4724
4725         Speed up by a factor of 1.61.
4726         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
4727         already checked module names again.
4728
4729 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4730
4731         Speed up by a factor of 1.13.
4732         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
4733         for new_files, and the input to func_add_or_update.
4734
4735 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4736
4737         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
4738         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
4739
4740 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
4741
4742         * modules/mkancesdirs (Depends-on): Add fcntl.
4743         * modules/savewd: New file.
4744         * MODULES.html.sh (File system functions): Add savewd.
4745
4746         * modules/configmake (Makefile.am): Add support for the
4747         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
4748
4749 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
4750
4751         * m4/savewd.m4: New file.
4752
4753 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
4754
4755         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
4756         (dirchownmod): New arg FD.  All callers changed.
4757         Use FD rather than opening the directory ourself, as opening is
4758         now the caller's responsibility.
4759         * lib/dirchownmod.h: Likewise.
4760         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
4761         hosts that require <sys/types.h> before <sys/stat.h>.  Include
4762         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
4763         (test_dir): Remove.
4764         (mkancesdirs): Return length of prefix of FILE that has already
4765         been made, or -2 if there is a child doing the work.  Redo
4766         algorithm so that it is O(N) rather than O(N**2).  Optimize away
4767         ".", and treat ".." specially since it might stray back into
4768         already-created areas.  Use a subprocess if necessary.  New arg
4769         WD; all users changed.  MAKE_DIR function should now return 1
4770         if it creates a directory that is not readable.  Return -2 if
4771         a child process is spun off.
4772         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
4773         Adjust signature to match code.
4774         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
4775         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
4776         all users changed.
4777         * lib/savewd.c, lib/savewd.h: New files.
4778
4779 2006-09-15  Jim Meyering  <jim@meyering.net>
4780
4781         * modules/rename-dest-slash: New module.
4782         * MODULES.html.sh (posix_compat): Add it here.
4783
4784         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
4785
4786 2006-09-15  Jim Meyering  <jim@meyering.net>
4787
4788         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
4789         file.
4790
4791         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
4792
4793 2006-09-15  Jim Meyering  <jim@meyering.net>
4794
4795         * lib/rename-dest-slash.c (has_trailing_slash): Use
4796         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
4797         (rpl_rename_dest_slash): Perform the cheaper trailing slash
4798         test before testing whether SRC is a directory.
4799         Suggestions from Bruno Haible.
4800
4801         Avoid a warning about an unused variable.
4802         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
4803         into the #ifdef block where it's used.
4804
4805         * lib/rename-dest-slash.c: New file.
4806
4807 2006-09-14  Bruno Haible  <bruno@clisp.org>
4808
4809         * lib/allocsa.c: Include <config.h> unconditionally.
4810         * lib/asnprintf.c: Likewise.
4811         * lib/asprintf.c: Likewise.
4812         * lib/c-strcasecmp.c: Likewise.
4813         * lib/c-strcasestr.c: Likewise.
4814         * lib/c-strncasecmp.c: Likewise.
4815         * lib/c-strstr.c: Likewise.
4816         * lib/classpath.c: Likewise.
4817         * lib/clean-temp.c: Likewise.
4818         * lib/concatpath.c: Likewise.
4819         * lib/copy-file.c: Likewise.
4820         * lib/csharpcomp.c: Likewise.
4821         * lib/csharpexec.c: Likewise.
4822         * lib/execute.c: Likewise.
4823         * lib/fatal-signal.c: Likewise.
4824         * lib/findprog.c: Likewise.
4825         * lib/fwriteerror.c: Likewise.
4826         * lib/gl_array_list.c: Likewise.
4827         * lib/gl_array_oset.c: Likewise.
4828         * lib/gl_avltree_list.c: Likewise.
4829         * lib/gl_avltree_oset.c: Likewise.
4830         * lib/gl_avltreehash_list.c: Likewise.
4831         * lib/gl_carray_list.c: Likewise.
4832         * lib/gl_linked_list.c: Likewise.
4833         * lib/gl_linkedhash_list.c: Likewise.
4834         * lib/gl_list.c: Likewise.
4835         * lib/gl_oset.c: Likewise.
4836         * lib/gl_rbtree_list.c: Likewise.
4837         * lib/gl_rbtree_oset.c: Likewise.
4838         * lib/gl_rbtreehash_list.c: Likewise.
4839         * lib/imaxabs.c: Likewise.
4840         * lib/imaxdiv.c: Likewise.
4841         * lib/javacomp.c: Likewise.
4842         * lib/javaexec.c: Likewise.
4843         * lib/javaversion.c: Likewise.
4844         * lib/linebreak.c: Likewise.
4845         * lib/localcharset.c: Likewise.
4846         * lib/lock.c: Likewise.
4847         * lib/mbchar.c: Likewise.
4848         * lib/mbswidth.c: Likewise.
4849         * lib/mkdtemp.c: Likewise.
4850         * lib/pipe.c: Likewise.
4851         * lib/printf-args.c: Likewise.
4852         * lib/printf-parse.c: Likewise.
4853         * lib/progname.c: Likewise.
4854         * lib/progreloc.c: Likewise.
4855         * lib/readlink.c: Likewise.
4856         * lib/sh-quote.c: Likewise.
4857         * lib/stpcpy.c: Likewise.
4858         * lib/stpncpy.c: Likewise.
4859         * lib/strcasecmp.c: Likewise.
4860         * lib/strcasestr.c: Likewise.
4861         * lib/strcspn.c: Likewise.
4862         * lib/striconv.c: Likewise.
4863         * lib/strncasecmp.c: Likewise.
4864         * lib/strnlen1.c: Likewise.
4865         * lib/strstr.c: Likewise.
4866         * lib/strtok_r.c: Likewise.
4867         * lib/tls.c: Likewise.
4868         * lib/tmpdir.c: Likewise.
4869         * lib/unicodeio.c: Likewise.
4870         * lib/unsetenv.c: Likewise.
4871         * lib/vasnprintf.c: Likewise.
4872         * lib/vasprintf.c: Likewise.
4873         * lib/wait-process.c: Likewise.
4874         * lib/xallocsa.c: Likewise.
4875         * lib/xsetenv.c: Likewise.
4876         * lib/xstriconv.c: Likewise.
4877
4878 2006-09-13  Simon Josefsson  <jas@extundo.com>
4879
4880         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
4881         that internally, suggested by Ralf Wildenhues
4882         <Ralf.Wildenhues@gmx.de>.
4883
4884 2006-09-13  Simon Josefsson  <jas@extundo.com>
4885
4886         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
4887         @LIBOBJS@.
4888         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4889
4890 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
4891
4892         * lib/_fpending.c: Include <config.h> unconditionally, since we no
4893         longer worry about uses that don't define HAVE_CONFIG_H.
4894         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
4895         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
4896         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
4897         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
4898         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
4899         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
4900         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
4901         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
4902         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
4903         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
4904         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
4905         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
4906         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
4907         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
4908         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
4909         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
4910         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
4911         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
4912         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
4913         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
4914         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
4915         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
4916         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
4917         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
4918         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
4919         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
4920         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
4921         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
4922         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
4923         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
4924         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
4925         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
4926         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
4927         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
4928         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
4929         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
4930         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
4931         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
4932         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
4933         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
4934         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
4935         Likewise.
4936
4937 2006-09-13  Eric Blake  <ebb9@byu.net>
4938
4939         * lib/getopt.c: Fix typo in last commit.
4940
4941 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
4942
4943         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
4944         dgettext.
4945
4946 2006-09-12  Jim Meyering  <jim@meyering.net>
4947
4948         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
4949         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
4950         Reported by Nelson H. F. Beebe.
4951
4952 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
4953
4954         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
4955         program_invocation_name and program_invocation_short_name are
4956         initialized.
4957         * lib/argp-namefrob.h: Move declarations of program_invocation_name
4958         and program_invocation_short_name to argp.h, so they are visible
4959         to user programs.
4960         * lib/argp.h: Likewise
4961
4962 2006-09-10  Bruno Haible  <bruno@clisp.org>
4963
4964         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
4965         m4/inttypes_h.m4, m4/uintmax_t.m4.
4966
4967 2006-09-10  Bruno Haible  <bruno@clisp.org>
4968
4969         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
4970         gl_AC_TYPE_UINTMAX_T.
4971
4972 2006-09-10  Bruno Haible  <bruno@clisp.org>
4973
4974         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
4975
4976 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
4977
4978         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
4979         convention.  Text proposed by Bruno Haible.
4980         (struct argp_option): Document the use of N_() wrappers.
4981
4982         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
4983         '\v', and translate the two parts separately, instead of feeding
4984         the whole string to gettext.  This allows to exclude
4985         '\v' from the strings visible to the translator by writing doc
4986         strings as N_("..") "\v" N_("..").
4987
4988 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
4989
4990         * config/srclist.txt: Undo latest change; the bug was fixed.
4991
4992 2006-09-09  Bruno Haible  <bruno@clisp.org>
4993
4994         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
4995         assignments if building a library without libtool.
4996         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
4997         in func_emit_lib_Makefile_am.
4998         (func_import): When building a static library libfoo.a, arrange to
4999         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
5000         (func_create_testdir): Likewise.
5001         * modules/gc (configure.ac, Makefile.am): If building statically,
5002         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
5003         * modules/iconvme (configure.ac, Makefile.am): Likewise.
5004         * modules/striconv (configure.ac, Makefile.am): Likewise.
5005         Based on a suggestion by Ralf Wildenhues.
5006
5007 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
5008
5009         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
5010         Check for unistd.h too, since Autoconf doesn't assume POSIX.
5011         Also:
5012
5013         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
5014         Add year_2050_test to catch glibc bug 2821
5015         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
5016
5017         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
5018         Prefer #ifdef to #if.
5019
5020         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
5021         Return from 'main' instead of calling 'exit'.
5022
5023 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
5024
5025         * lib/mktime.c (guess_time_tm): Fix bug where mktime
5026         returned the maximum time_t value rather than (time_t) -1.
5027         Problem originally reported by William Bardwell
5028         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
5029
5030         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
5031         Moved to here ...
5032         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
5033         ... from here.
5034
5035 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
5036
5037         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
5038         2821 is fixed.
5039
5040 2006-09-08  Jim Meyering  <jim@meyering.net>
5041
5042         Don't make generated files read-only.  That would bother too many
5043         people.  However, do retain the ability to work when targets are
5044         read-only: remove the destination and temporary files before writing
5045         them (when generated via sed or echo), or by using the -f option for
5046         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
5047         * modules/alloca-opt, modules/argz, modules/arpa_inet:
5048         * modules/byteswap, modules/configmake, modules/fcntl:
5049         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
5050         * modules/localcharset, modules/netinet_in, modules/poll:
5051         * modules/stdbool, modules/stdint, modules/sys_select:
5052         * modules/sys_socket, modules/sys_stat, modules/sysexits:
5053
5054 2006-09-08  Jim Meyering  <jim@meyering.net>
5055
5056         Avoid new build failure on FreeBSD 6.0.
5057         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
5058         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
5059         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
5060
5061 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5062
5063         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
5064
5065 2006-09-07  Jim Meyering  <jim@meyering.net>
5066
5067         Fix global typo in last change: use chmod u-w, not chmod u-x.
5068         Spotted by Paul Eggert and Bruce Korb.
5069         * modules/alloca-opt, modules/argz, modules/arpa_inet:
5070         * modules/byteswap, modules/configmake, modules/fcntl:
5071         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
5072         * modules/localcharset, modules/netinet_in, modules/poll:
5073         * modules/stdbool, modules/stdint, modules/sys_select:
5074         * modules/sys_socket, modules/sys_stat, modules/sysexits:
5075
5076 2006-09-06  Jim Meyering  <jim@meyering.net>
5077
5078         Make generated files be read-only.
5079         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
5080         Ensure that each generated file is now read-only.
5081         * modules/argz: Likewise.
5082         * modules/arpa_inet: Likewise.
5083         * modules/byteswap: Likewise.
5084         * modules/configmake: Likewise.
5085         * modules/fcntl: Likewise.
5086         * modules/fnmatch: Likewise.
5087         * modules/getopt: Likewise.
5088         * modules/glob: Likewise.
5089         * modules/inttypes: Likewise.
5090         * modules/netinet_in: Likewise.
5091         * modules/poll: Likewise.
5092         * modules/stdbool: Likewise.
5093         * modules/stdint: Likewise.
5094         * modules/sys_select: Likewise.
5095         * modules/sys_socket: Likewise.
5096         * modules/sys_stat: Likewise.
5097         * modules/sysexits: Likewise.
5098         * modules/localcharset: Same as above, but continue using temporary
5099         file named "t-$@" (why different?) rather than the "$@-t" used
5100         everywhere else.
5101
5102         * modules/sysexits (Makefile.am): Replace literal occurrences
5103         of "sysexit.h" more readable, and more consistent, "$@".
5104
5105 2006-09-06  Bruno Haible  <bruno@clisp.org>
5106
5107         * modules/striconv: New file.
5108         * modules/xstriconv: New file.
5109         * MODULES.html.sh (Internationalization functions): Add striconv,
5110         xstriconv.
5111
5112 2006-09-06  Bruno Haible  <bruno@clisp.org>
5113
5114         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
5115         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
5116         not using libtool correctly.
5117
5118 2006-09-06  Bruno Haible  <bruno@clisp.org>
5119
5120         * lib/striconv.h: New file.
5121         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
5122         iconvstring.c.
5123         * lib/xstriconv.h: New file.
5124         * lib/xstriconv.c: New file.
5125
5126 2006-09-06  Bruno Haible  <bruno@clisp.org>
5127
5128         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
5129         lib_..._LDFLAGS.
5130
5131 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5132
5133         * lib/argz_.h: Sync from Libtool.
5134
5135         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
5136                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5137
5138         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
5139
5140 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
5141
5142         * modules/trim: New file.
5143
5144 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
5145
5146         * lib/trim.h: New file.
5147         * lib/trim.c: New file.
5148
5149 2006-09-05  Bruno Haible  <bruno@clisp.org>
5150
5151         * MODULES.html.sh (String handling): Add trim.
5152
5153 2006-09-04  Karl Berry  <karl@gnu.org>
5154
5155         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
5156         until next release.
5157
5158 2006-09-03  Bruno Haible  <bruno@clisp.org>
5159
5160         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
5161         correctly.
5162
5163 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
5164
5165         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
5166         not gl_GETLOADAVG.  Omit unneeded semicolons.
5167         Problems reported by Ralf Wildenhues in
5168         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
5169         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
5170         at the end, which is the usual gnulib style.
5171
5172         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
5173         of doing all the work ourselves.
5174         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
5175         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
5176
5177 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
5178
5179         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
5180         Problem reported by Ralf Wildenhues in
5181         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
5182
5183         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
5184         HAVE_STRUCT_STATFS_F_FSTYPENAME.
5185
5186 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
5187
5188         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
5189         yesterday's patch by changing test -n to test -z.
5190
5191 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
5192
5193         * modules/getloadavg (Files): Add m4/getloadavg.m4.
5194         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
5195         the former is now obsolescent.
5196
5197         * modules/chdir-long (Depends-on): Add fcntl.
5198
5199 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
5200
5201         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
5202         obsolescent, and programs should use gnulib instead.
5203         * m4/getloadavg.m4: New file, with contents taken from Autoconf
5204         but with prefixes changed.
5205
5206 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
5207
5208         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
5209         or stdbool.h, because they might not exist while configuring.
5210
5211         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
5212         Don't include unistd.h or limits.h; not needed, since chdir-long.h
5213         does that for us.
5214         (O_DIRECTORY): Remove.
5215
5216 2006-08-31  Eric Blake  <ebb9@byu.net>
5217
5218         * gnulib-tool: Don't let emacs change spaces to TAB.
5219
5220 2006-08-31  Bruno Haible  <bruno@clisp.org>
5221
5222         * gnulib-tool: When calling func_import more than once, do it in a
5223         subshell.
5224         Reported by Eric Blake <ebb9@byu.net>.
5225
5226 2006-08-31  Bruno Haible  <bruno@clisp.org>
5227
5228         * gnulib-tool (nl): Remove variable.
5229         (sed_transform_lib_file): Use more robust test for config-h module.
5230         (func_import): Fix typo in 2006-08-25 patch.
5231
5232 2006-08-31  Bruno Haible  <bruno@clisp.org>
5233
5234         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
5235         specified, augment Makefile.am variables instead of assigning them.
5236
5237 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
5238
5239         Work around a bug in both the Linux and SunOS 64-bit kernels:
5240         nanosleep mishandles sleeps for longer than 2**31 seconds.
5241         Problem reported by Frank v Waveren in
5242         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
5243         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
5244         Check for nanosleep bug.
5245         (LIB_NANOSLEEP): Append clock_gettime library if needed.
5246
5247 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
5248
5249         Work around a bug in both the Linux and SunOS 64-bit kernels:
5250         nanosleep mishandles sleeps for longer than 2**31 seconds.
5251         Problem reported by Frank v Waveren in
5252         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
5253         * lib/nanosleep.c (BILLION): New constant.
5254         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
5255         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
5256         implementation.
5257
5258 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
5259
5260         * modules/nanosleep (Depends-on): Add gettime.
5261
5262 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
5263         and Simon Josefsson  <jas@extundo.com>
5264         and Oskar Liljeblad  <oskar@osk.mine.nu>
5265
5266         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
5267         * gnulib-tool (func_import): New license type 'unmodifiable license
5268         text'.
5269         * modules/fdl: Use it.  Longer description.
5270         * module/gpl, module/lgpl: New files.
5271
5272 2006-08-30  Jim Meyering  <jim@meyering.net>
5273
5274         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
5275         shadowing the parameter.
5276
5277 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5278
5279         Sync from Libtool:
5280
5281         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5282
5283         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
5284         sharing with gnulib.  Report by Eric Blake.
5285
5286 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
5287
5288         * modules/isapipe: New file.
5289         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
5290
5291 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
5292
5293         * modules/configmake (Makefile.am): Add a comment, and omit
5294         the CONFIGMAKE_ prefix from generated macro names.  Suggested
5295         by Bruno Haible.
5296
5297 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
5298
5299         * m4/isapipe.m4: New file.
5300
5301 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
5302
5303         * lib/isapipe.c, lib/isapipe.h: New files.
5304
5305 2006-08-29  Jim Meyering  <jim@meyering.net>
5306
5307         * modules/configmake (Makefile.am): Make configmake.h depend on
5308         Makefile.  Otherwise, a stale configmake.h could hang around.
5309
5310 2006-08-29  Eric Blake  <ebb9@byu.net>
5311
5312         * lib/error.c (error_at_line, print_errno_message): Match libc, after
5313         resolution of upstream bug 3044.
5314
5315 2006-08-29  Bruno Haible  <bruno@clisp.org>
5316
5317         * modules/localcharset (Depends-on): Add configmake.
5318         (Makefile.am): Remove setting of LIBDIR through DEFS.
5319
5320 2006-08-29  Bruno Haible  <bruno@clisp.org>
5321
5322         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
5323         defined.
5324
5325 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
5326
5327         * modules/fcntl: New file.
5328         * modules/chdir-safer (Depends-on): Add fcntl.
5329         * modules/fts: Likewise.
5330         * modules/mkdir-p: Likewise.
5331
5332         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
5333         This undoes the most recent change, since we're now addressing the
5334         problem in a different way.
5335
5336         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
5337         into output, since the output might be called Makefile.am even
5338         if $makefile_name is something different.
5339         (func_import): Use $makefile_am rather than
5340         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
5341         empty.
5342
5343         * modules/inttypes (Files): Add m4/inttypes-h.m4.
5344
5345 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
5346
5347         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
5348         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
5349         recent change to stdint.m4, since we're now addressing the problem in a
5350         different way.
5351
5352 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
5353
5354         * m4/fcntl_h.m4: New file.
5355
5356 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
5357
5358         * lib/fcntl_.h: New file.
5359         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
5360         the fcntl module.
5361         * lib/dirchownmod.c: Likewise.
5362         * lib/fts.c: Likewise.
5363
5364         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
5365         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
5366         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
5367         just before including <inttypes.h>, to avoid circular inclusion.
5368
5369 2006-08-28  Jim Meyering  <jim@meyering.net>
5370
5371         * doc/visibility.texi: Actually read and correct the grammar of the
5372         sentence affected by yesterday's change.
5373
5374 2006-08-28  Eric Blake  <ebb9@byu.net>
5375
5376         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
5377         needs wrapper.
5378
5379 2006-08-28  Eric Blake  <ebb9@byu.net>
5380
5381         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
5382
5383 2006-08-28  Eric Blake  <ebb9@byu.net>
5384
5385         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
5386
5387 2006-08-28  Bruno Haible  <bruno@clisp.org>
5388
5389         * modules/c-strstr: New file, from GNU gettext.
5390         * MODULES.html.sh (String handling): Add c-strstr.
5391
5392 2006-08-28  Bruno Haible  <bruno@clisp.org>
5393
5394         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
5395         macros.
5396         Reported by Eric Blake.
5397
5398 2006-08-28  Bruno Haible  <bruno@clisp.org>
5399
5400         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
5401         (VASNPRINTF): Return a string of length > INT_MAX without failing.
5402         * lib/vasprintf.c: Include errno.h, limits.h.
5403         (EOVERFLOW): New fallback definition.
5404         (vasprintf): Test here whether the string length is > INT_MAX.
5405         * lib/vsnprintf.c: Include errno.h, limits.h.
5406         (EOVERFLOW): New fallback definition.
5407         (vsnprintf): Fix bug when generated string was too long for the buffer.
5408         Test here whether the string length is > INT_MAX.
5409
5410 2006-08-28  Bruno Haible  <bruno@clisp.org>
5411
5412         * lib/inttypes_.h (SCNX*): Remove definitions.
5413         Reported by Eric Blake.
5414
5415 2006-08-28  Bruno Haible  <bruno@clisp.org>
5416
5417         * lib/c-strstr.h: New file, from GNU gettext.
5418         * lib/c-strstr.c: New file, from GNU gettext.
5419
5420 2006-08-28  Bruno Haible  <bruno@clisp.org>
5421
5422         * gnulib-tool: Reorder some statements.
5423
5424 2006-08-28  Bruno Haible  <bruno@clisp.org>
5425
5426         * gnulib-tool: New option --makefile-name.
5427         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
5428         $makefile_name.
5429         (func_import): Write $makefile_name to the cache file, and read it from
5430         there unless explicitly specified. Use $makefile_name as file name
5431         instead of Makefile.am. Adjust the recommendations accordingly.
5432
5433 2006-08-28  Bruno Haible  <bruno@clisp.org>
5434
5435         * gnulib-tool (func_verify_module): Check against misapplying patch.
5436
5437 2006-08-28  Bruno Haible  <bruno@clisp.org>
5438
5439         * gnulib-tool (func_relativize, func_relconcat): New functions.
5440         Give an error if --local-dir is given with --update.
5441         Remove trailing slashes from $local_gnulib_dir.
5442         (func_import): Store the relativized $local_gnulib_dir in
5443         gnulib-cache.m4, and read it from there if not specified explicitly.
5444
5445 2006-08-28  Bruno Haible  <bruno@clisp.org>
5446
5447         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
5448         is the current directory. Respect also $local_gnulib_dir.
5449
5450 2006-08-28  Bruno Haible  <bruno@clisp.org>
5451             Simon Josefsson  <jas@extundo.com>
5452
5453         BeOS portability.
5454         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
5455
5456 2006-08-27  Jim Meyering  <jim@meyering.net>
5457
5458         * doc/visibility.texi: Remove duplicate word: "pointer".
5459
5460 2006-08-26  Bruno Haible  <bruno@clisp.org>
5461
5462         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
5463         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
5464         (Makefile.am): Create inttypes.h from inttypes_.h.
5465         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
5466
5467         * modules/imaxabs: New file.
5468
5469         * modules/imaxdiv: New file.
5470
5471 2006-08-26  Bruno Haible  <bruno@clisp.org>
5472
5473         * m4/inttypes.m4: New file.
5474         * m4/_inttypes_h.m4: Remove file.
5475         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
5476         PRI_MACROS_BROKEN.
5477         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
5478
5479         * m4/imaxabs.m4: New file.
5480
5481         * m4/imaxdiv.m4: New file.
5482
5483 2006-08-26  Bruno Haible  <bruno@clisp.org>
5484
5485         * lib/inttypes_.h: New file.
5486         * lib/inttypes.h: Remove file.
5487         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
5488
5489         * lib/imaxabs.c: New file.
5490
5491         * lib/imaxdiv.c: New file.
5492
5493 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
5494
5495         New config-h module, so that "make" output needn't be cluttered
5496         by -DHAVE_CONFIG_H.
5497         * MODULES.html.sh (Support for building libraries and executables):
5498         Add config-h.
5499         * modules/config-h: New file.
5500         * gnulib-tool (nl, sed_transform_lib_file): New vars.
5501         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
5502         the config-h module is used.
5503
5504         New configmake module, so that "make" output needn't be cluttered
5505         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
5506         * MODULES.html.sh (Support for building libraries and executables):
5507         Add configmake.
5508         * modules/configmake: New file.
5509
5510 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
5511
5512         * m4/config-h.m4: New file.
5513
5514 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
5515
5516         * config/srclist.txt: Add elisp-comp.
5517
5518 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
5519
5520         * MODULES.html.sh (Support for building libraries and executables):
5521         Add elisp-comp.
5522         * build-aux/elisp-comp: New file.
5523         * modules/elisp-comp: New file.
5524
5525 2006-08-24  Bruno Haible  <bruno@clisp.org>
5526
5527         * gnulib-tool (func_create_testdir): Use non-default values of
5528         sourcebase and m4base.
5529
5530 2006-08-24  Bruno Haible  <bruno@clisp.org>
5531
5532         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
5533         HTML structure.
5534
5535 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
5536
5537         * modules/openat (Depends-on): Add lchown.
5538
5539 2006-08-23  Bruno Haible  <bruno@clisp.org>
5540
5541         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
5542         of gl_LOCK_EARLY instead of gl_LOCK.
5543
5544 2006-08-23  Bruno Haible  <bruno@clisp.org>
5545
5546         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
5547         on OSF/1 to no.
5548         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
5549
5550 2006-08-23  Bruno Haible  <bruno@clisp.org>
5551
5552         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
5553         as unusable.
5554
5555         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
5556         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
5557         (gl_LOCK): New macro.
5558
5559 2006-08-22  Simon Josefsson  <jas@extundo.com>
5560
5561         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
5562         to md5 module.
5563
5564 2006-08-22  Simon Josefsson  <jas@extundo.com>
5565
5566         * MODULES.html.sh: Add "Support for maintaining and release
5567         projects".
5568
5569         * build-aux/gnupload: New file, from coreutils.
5570
5571 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
5572
5573         Avoid the need for AC_LIBSOURCES in m4 macros.
5574         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
5575         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
5576         * modules/check-version (EXTRA_DIST): Add check-version.h.
5577         * modules/crc (EXTRA_DIST): Add crc.h.
5578         * modules/des (EXTRA_DIST): Add des.h.
5579         * modules/gc (EXTRA_DIST): Add gc.h.
5580         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
5581         * modules/getline (EXTRA_DIST): Add getline.h.
5582         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
5583         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
5584         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
5585         * modules/md2 (EXTRA_DIST): Add md2.h.
5586         * modules/md4 (EXTRA_DIST): Add md4.h.
5587         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
5588         * modules/read-file (EXTRA_DIST): Add read-file.h.
5589         * modules/readline (EXTRA_DIST): Add readline.h.
5590         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
5591         rijndael-api-fst.h.
5592
5593 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
5594
5595         * m4/rijndael.m4 (gl_ARCFOUR):
5596         * m4/arctwo.m4 (gl_ARCTWO):
5597         * m4/check-version.m4 (gl_CHECK_VERSION):
5598         * m4/crc.m4 (gl_CRC):
5599         * m4/des.m4 (gl_DES):
5600         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
5601         * m4/gc.m4 (gl_GC):
5602         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
5603         * m4/getline.m4 (gl_FUNC_GETLINE):
5604         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
5605         * m4/hmac-md5.m4 (gl_HMAC_MD5):
5606         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
5607         * m4/md2.m4 (gl_MD2):
5608         * m4/md4.m4 (gl_MD4):
5609         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
5610         * m4/read-file.m4 (gl_FUNC_READ_FILE):
5611         * m4/readline.m4 (gl_FUNC_READLINE):
5612         * m4/rijndael.m4 (gl_RIJNDAEL):
5613         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
5614         to get the necessary .h files and whatnot.
5615
5616 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
5617
5618         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
5619         gnulib rather than the other way around.
5620         * config/srclistvars.sh (COREUTILS): Remove.
5621
5622 2006-08-22  Jim Meyering  <jim@meyering.net>
5623
5624         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
5625
5626         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
5627
5628 2006-08-22  Eric Blake  <ebb9@byu.net>
5629
5630         * modules/regexprops-generic: New file.
5631         * MODULES.html.sh (Support for building documentation): List it.
5632
5633 2006-08-22  Eric Blake  <ebb9@byu.net>
5634
5635         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
5636         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
5637         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
5638         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
5639
5640 2006-08-22  Bruno Haible  <bruno@clisp.org>
5641
5642         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
5643         and lib_LTLIBRARIES like the other lib_* variables.
5644
5645 2006-08-22  Bruno Haible  <bruno@clisp.org>
5646
5647         * build-aux/x-to-1.in: New file, from GNU gettext.
5648
5649 2006-08-22  Bruno Haible  <bruno@clisp.org>
5650
5651         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
5652         <utmpx.h> exists.
5653
5654 2006-08-22  Bruno Haible  <bruno@clisp.org>
5655
5656         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
5657         <utmpx.h> exists.
5658
5659 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
5660
5661         BeOS portability.
5662         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
5663         exist.
5664         Problem reported by Bruno Haible.
5665
5666 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
5667
5668         Avoid the need for AC_LIBSOURCES in m4 macros.
5669         * modules/acl (EXTRA_DIST): Add acl.h.
5670         * modules/argmatch (Files): Add m4/argmatch.m4.
5671         (configure.ac): Add gl_ARGMATCH.
5672         (EXTRA_DIST): Renamed from lib_SOURCES, for
5673         consistency with the other modules.  Remove argmatch.c.
5674         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
5675         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
5676         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
5677         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
5678         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
5679         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
5680         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
5681         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
5682         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
5683         * modules/closeout (EXTRA_DIST): Add closeout.h.
5684         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
5685         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
5686         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
5687         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
5688         dirname.h; remove basename.c and stripslash.c.
5689         * modules/exclude (EXTRA_DIST): Add exclude.h.
5690         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
5691         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
5692         * modules/file-type (EXTRA_DIST): Add file-type.h.
5693         * modules/filemode (EXTRA_DIST): Add filemode.h.
5694         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
5695         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
5696         * modules/fpending (EXTRA_DIST): Add __fpending.h.
5697         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
5698         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
5699         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
5700         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
5701         * modules/getdate (EXTRA_DIST): Add getdate.c.
5702         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
5703         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
5704         * modules/getpass (EXTRA_DIST): Add getpass.h.
5705         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
5706         * modules/group-member (EXTRA_DIST): Add group-member.h.
5707         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
5708         * modules/hash (EXTRA_DIST): Add hash.h.
5709         * modules/human (EXTRA_DIST): Add human.h.
5710         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
5711         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
5712         * modules/lchown (EXTRA_DIST): Add lchown.h.
5713         * modules/long-options (EXTRA_DIST): Add long-options.h.
5714         * modules/lstat (EXTRA_DIST): Add lstat.h.
5715         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
5716         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
5717         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
5718         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
5719         * modules/memxor (EXTRA_DIST): Add memxor.h.
5720         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
5721         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
5722         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
5723         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
5724         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
5725         * modules/physmem (EXTRA_DIST): Add physmem.h.
5726         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
5727         * modules/posixver (EXTRA_DIST): Add posixver.h.
5728         * modules/quote (EXTRA_DIST): Add quote.h.
5729         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
5730         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
5731         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
5732         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
5733         regex_internal.h regexec.c.
5734         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
5735         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
5736         * modules/same (EXTRA_DIST): Add same.h.
5737         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
5738         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
5739         * modules/savedir (EXTRA_DIST): Add savedir.h.
5740         * modules/sha1 (EXTRA_DIST): Add sha1.h.
5741         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
5742         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
5743         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
5744         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
5745         * modules/strdup (EXTRA_DIST): Add strdup.h.
5746         * modules/strftime (EXTRA_DIST): Add strftime.h.
5747         * modules/strndup (EXTRA_DIST): Add strndup.h.
5748         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
5749         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
5750         * modules/time_r (EXTRA_DIST): Add time_r.h.
5751         * modules/timespec (EXTRA_DIST): Add timespec.h.
5752         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
5753         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
5754         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
5755         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
5756         * modules/userspec (EXTRA_DIST): Add userspec.h.
5757         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
5758         * modules/utimens (EXTRA_DIST): Add utimens.h.
5759         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
5760         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
5761         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
5762         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
5763         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
5764         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
5765         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
5766         * modules/yesno (EXTRA_DIST): Add yesno.h.
5767
5768 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
5769
5770         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
5771
5772         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
5773         * m4/dev-ino.m4, same-inode.m4: Remove.
5774
5775         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
5776         * m4/acl.m4 (AC_FUNC_ACL):
5777         * m4/backupfile.m4 (gl_BACKUPFILE):
5778         * m4/c-strtod.m4 (gl_C99_STRTOLD):
5779         * m4/canon-host.m4 (gl_CANON_HOST):
5780         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
5781         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
5782         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
5783         * m4/cloexec.m4 (gl_CLOEXEC):
5784         * m4/close-stream.m4 (gl_CLOSE_STREAM):
5785         * m4/closeout.m4 (gl_CLOSEOUT):
5786         * m4/dirfd.m4 (gl_FUNC_DIRFD):
5787         * m4/dirname.m4 (gl_DIRNAME):
5788         * m4/exclude.m4 (gl_EXCLUDE):
5789         * m4/exitfail.m4 (gl_EXITFAIL):
5790         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
5791         * m4/file-type.m4 (gl_FILE_TYPE):
5792         * m4/filemode.m4 (gl_FILEMODE):
5793         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
5794         * m4/fpending.m4 (gl_FUNC_FPENDING):
5795         * m4/fprintftime.m4 (gl_FPRINTFTIME):
5796         * m4/fts.m4 (gl_FUNC_FTS):
5797         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
5798         * m4/getdate.m4 (gl_GETDATE):
5799         * m4/gethrxtime.m4 (gl_GETHRXTIME):
5800         * m4/getpagesize.m4 (gl_GETPAGESIZE):
5801         * m4/getpass.m4 (gl_FUNC_GETPASS):
5802         * m4/gettime.m4 (gl_GETTIME):
5803         * m4/getugroups.m4 (gl_GETUGROUPS):
5804         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
5805         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
5806         * m4/hard-locale.m4 (gl_HARD_LOCALE):
5807         * m4/hash.m4 (gl_HASH):
5808         * m4/idcache.m4 (gl_IDCACHE):
5809         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
5810         * m4/lchown.m4 (gl_FUNC_LCHOWN):
5811         * m4/long-options.m4 (gl_LONG_OPTIONS):
5812         * m4/lstat.m4 (gl_FUNC_LSTAT):
5813         * m4/md5.m4 (gl_MD5):
5814         * m4/memcasecmp.m4 (gl_MEMCASECMP):
5815         * m4/memcoll.m4 (gl_MEMCOLL):
5816         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
5817         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
5818         * m4/memxor.m4 (gl_MEMXOR):
5819         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
5820         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
5821         * m4/modechange.m4 (gl_MODECHANGE):
5822         * m4/mountlist.m4 (gl_MOUNTLIST):
5823         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
5824         * m4/openat.m4 (gl_FUNC_OPENAT):
5825         * m4/pathmax.m4 (gl_PATHMAX):
5826         * m4/physmem.m4 (gl_PHYSMEM):
5827         * m4/posixtm.m4 (gl_POSIXTM):
5828         * m4/posixver.m4 (gl_POSIXVER):
5829         * m4/quote.m4 (gl_QUOTE):
5830         * m4/quotearg.m4 (gl_QUOTEARG):
5831         * m4/readtokens.m4 (gl_READTOKENS):
5832         * m4/readutmp.m4 (gl_READUTMP):
5833         * m4/regex.m4 (gl_REGEX):
5834         * m4/safe-read.m4 (gl_SAFE_READ):
5835         * m4/safe-write.m4 (gl_SAFE_WRITE):
5836         * m4/same.m4 (gl_SAME):
5837         * m4/save-cwd.m4 (gl_SAVE_CWD):
5838         * m4/savedir.m4 (gl_SAVEDIR):
5839         * m4/settime.m4 (gl_SETTIME):
5840         * m4/sha1.m4 (gl_SHA1):
5841         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
5842         * m4/stat-macros.m4 (gl_STAT_MACROS):
5843         * m4/stat-time.m4 (gl_STAT_TIME):
5844         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
5845         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
5846         * m4/strdup.m4 (gl_FUNC_STRDUP):
5847         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
5848         * m4/strndup.m4 (gl_FUNC_STRNDUP):
5849         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
5850         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
5851         * m4/time_r.m4 (gl_TIME_R):
5852         * m4/timespec.m4 (gl_TIMESPEC):
5853         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
5854         * m4/unlinkdir.m4 (gl_UNLINKDIR):
5855         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
5856         * m4/userspec.m4 (gl_USERSPEC):
5857         * m4/utimecmp.m4 (gl_UTIMECMP):
5858         * m4/utimens.m4 (gl_UTIMENS):
5859         * m4/xalloc.m4 (gl_XALLOC):
5860         * m4/xgetcwd.m4 (gl_XGETCWD):
5861         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
5862         * m4/xreadlink.m4 (gl_XREADLINK):
5863         * m4/xstrtod.m4 (gl_XSTRTOD):
5864         * m4/yesno.m4 (gl_YESNO):
5865         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
5866         to get the necessary .h files and whatnot.
5867
5868 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
5869             Bruno Haible  <bruno@clisp.org>
5870
5871         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
5872         /bin/sh understanding of '!' conditional negation.
5873
5874 2006-08-21  Jim Meyering  <jim@meyering.net>
5875
5876         * modules/openat (Depends-on): Really alphabetize.
5877
5878         * modules/acl (Depends-on): Add error and quote.
5879
5880         * check-module (find_included_lib_files): Add at-func.c to the
5881         ok-to-include-more-than-once white list.
5882
5883         * modules/openat (Depends-on): Add lstat.  Alphabetize.
5884
5885 2006-08-21  Bruno Haible  <bruno@clisp.org>
5886
5887         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
5888         Emit a pkgdata_DATA variable only if some snippets add contents to it.
5889         Reported by Martin Lambers <marlam@marlam.de>.
5890
5891 2006-08-21  Bruno Haible  <bruno@clisp.org>
5892
5893         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
5894         specify an installation location, don't emit a noinst_LIBRARIES or
5895         noinst_LTLIBRARIES assignment.
5896
5897 2006-08-21  Bruno Haible  <bruno@clisp.org>
5898
5899         BeOS portability.
5900         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
5901         BeOS has mbrtowc() but no <wctype.h>.
5902
5903 2006-08-21  Bruno Haible  <bruno@clisp.org>
5904
5905         BeOS portability.
5906         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
5907         exist.
5908
5909 2006-08-21  Bruno Haible  <bruno@clisp.org>
5910
5911         BeOS portability.
5912         * lib/mbchar.h: Include <wctype.h> only if it exists.
5913
5914 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
5915
5916         Remove files that are no longer needed by their respective modules.
5917         * m4/obstack.m4: Remove.
5918         * m4/strerror_r.m4: Remove.
5919         * m4/uint32_t.m4: Remove.
5920         * m4/uintptr_t.m4: Remove.
5921         * m4/ullong_max.m4: Remove.
5922         * m4/xstrtoimax.m4: Remove.
5923         * m4/xstrtoumax.m4: Remove.
5924
5925         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
5926         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
5927         dependencies now capture this.
5928
5929         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
5930         Do not use AC_LIBSOURCES, since gnulib modules now do this.
5931         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
5932         * m4/human.m4 (gl_HUMAN): Likewise.
5933         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
5934         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
5935
5936         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
5937
5938         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
5939         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
5940         stdint.
5941         * m4/human.m4 (gl_HUMAN): Likewise.
5942         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
5943         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
5944         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
5945         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
5946         * m4/xstrtol (gl_XSTRTOL): Likewise.
5947
5948         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
5949         AC_TYPE_LONG_LONG_INT.
5950         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
5951         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
5952         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
5953         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
5954
5955         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
5956         on stdbool.
5957
5958         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
5959         (gl_PREREQ_XSTRTOUL): Remove.
5960
5961         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
5962
5963         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
5964         mode.
5965
5966 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
5967
5968         Add and change modules to make it easier for coreutils to use
5969         gnulib-tool.
5970         * modules/backupfile (Files): Remove m4/d-ino.m4.
5971         (Depends-on): Add d-ino.
5972         * modules/cycle-check (Depends-on): Add stdint.
5973         (lib_SOURCES): Add cycle-check.h.
5974         * modules/d-ino: New module.
5975         * modules/d-type: New module.
5976         * modules/error (Files): Remove m4/strerror_r.m4.
5977         * modules/filemode (Files): Add m4/st_dm_mode.m4.
5978         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
5979         m4/inttypes_h.m4, m4/uintmax_t.m4.
5980         (Depends-on): Add stdint.
5981         (lib_SOURCES): Add fsusage.h.
5982         * modules/getcwd (Files): Remove d-ino.m4.
5983         (Depends-on): Add d-ino.
5984         * modules/getndelim2 (Depends-on): Add stdint.
5985         * modules/glob (Files): Remove m4/d-type.m4.
5986         (Depends-on): Add d-type.
5987         * modules/host-os: New module.
5988         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
5989         m4/inttypes_h.m4, m4/uintmax_t.m4.
5990         * Depends-on: Add stdint.
5991         (lib_SOURCES): Add human.h.
5992         * modules/inttostr (Files): Remove m4/intmax_t.m4,
5993         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
5994         m4/uintmax_t.m4, m4/ulonglong.m4.
5995         (Depends-on): Add stdint.
5996         (EXTRA_DIST): Add inttostr.h.
5997         * modules/lchmod: New module.
5998         * modules/link-follow: New module.
5999         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
6000         (Depends-on): Add lchmod.
6001         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
6002         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
6003         (Depends-on): Add stdint.
6004         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
6005         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
6006         (Depends-on): Add stdint.
6007         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
6008         * modules/perl: New module.
6009         * modules/regex (Depends-on): Add stdint.
6010         * modules/rmdir-errno: New module.
6011         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
6012         m4/intmax_t.m4.
6013         (Depends-on): Add stdint.
6014         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
6015         m4/uintmax_t.m4.
6016         (Depends-on): Add stdint.
6017         * modules/unlink-busy: New module.
6018         * modules/utimecmp (Depends-on): Add stdint.
6019         * modules/uptime: New module.
6020         * modules/winsz-ioctl: New module.
6021         * modules/winsz-termios: New module.
6022         * modules/xnanosleep (Depends-on): Add nanosleep.
6023         * modules/ullong_max: Remove.
6024         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
6025         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
6026         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
6027         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
6028         (Depends-on): Add inttypes.
6029         (lib_SOURCES): Add xstrtol.h.
6030         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
6031         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
6032         * MODULES.html.sh: Move 'assert' into the assert section.
6033         Move 'dummy' into the linking section.
6034         Remove ullong_max.
6035         Add section for compatibility checks for POSIX:2001 functions,
6036         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
6037         winsz-ioctl, and winsz-termios into it.
6038         Add lchmod.
6039         Add top-level Misc section and put host-os, perl, and uptime
6040         into it.
6041
6042 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
6043
6044         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
6045         now assume the stdint module.  Do not include inttypes.h.
6046         * lib/fsusage.h: Likewise.
6047         * lib/getndelim2.c: Likewise.
6048         * lib/human.h: Likewise.
6049         * lib/inttostr.h: Likewise.
6050         * lib/obstack.c: Likewise.
6051         * lib/regex_internal.h: Likewise.
6052         * lib/tempname.c: Likewise.
6053         * lib/utimecmp.c: Likewise.
6054         * lib/xstrtol.h: Likewise.
6055
6056         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
6057
6058         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
6059         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
6060         * lib/xtime.h: Likewise.
6061
6062 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
6063
6064         * modules/openat (Files): Add lib/fchmodat.c.
6065         Fixes problem reported by Jay Youngman.
6066
6067 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
6068
6069         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
6070         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
6071
6072 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
6073             Bruno Haible  <bruno@clisp.org>
6074
6075         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
6076         and is a script that invokes bison. Tighten the code. Add comments.
6077
6078 2006-08-18  Jim Meyering  <jim@meyering.net>
6079
6080         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
6081         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
6082         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
6083         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
6084
6085 2006-08-18  Bruno Haible  <bruno@clisp.org>
6086
6087         * modules/bison-i18n: New file.
6088         * MODULES.html.sh (Internationalization functions): Add it.
6089
6090 2006-08-18  Bruno Haible  <bruno@clisp.org>
6091
6092         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
6093         sys/statvfs.h. When getmntinfo was found, check its declaration and
6094         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
6095
6096 2006-08-18  Bruno Haible  <bruno@clisp.org>
6097
6098         * m4/bison-i18n.m4: New file, from bison.
6099
6100 2006-08-18  Bruno Haible  <bruno@clisp.org>
6101
6102         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
6103         (ME_DUMMY): Treat "kernfs" as a dummy.
6104         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
6105
6106 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
6107
6108         Update from coreutils.
6109
6110         2006-08-15  Jim Meyering  <jim@meyering.net>
6111
6112         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
6113
6114         2006-01-17  Jim Meyering  <jim@meyering.net>
6115
6116         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
6117
6118         2006-01-11  Jim Meyering  <jim@meyering.net>
6119
6120         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
6121         Check for the lchmod function.
6122
6123 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
6124
6125         Update from coreutils.
6126
6127         * lib/__fpending.h: Add copyright notice.
6128         * lib/fprintftime.h: Likewise.
6129         * lib/savedir.c: Use (C) in copyright notice.
6130         * lib/savedir.h: Likewise.
6131
6132         2006-08-15  Jim Meyering  <jim@meyering.net>
6133
6134         * lib/at-func.c: New file, with the logic of all emulated at-functions.
6135         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
6136         in support of the EXPECTED_ERRNO macro.
6137         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
6138         definitions.  Instead, define the appropriate symbols and include
6139         "at-func.c".
6140         * lib/mkdirat.c (mkdirat): Likewise.
6141         * lib/fchmodat.c (fchmodat): Likewise.
6142         (ENOSYS): Remove definition.
6143         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
6144         it.  Don't include "unistd--.h" -- it wasn't ever used.
6145
6146         2006-01-17  Jim Meyering  <jim@meyering.net>
6147
6148         Rewrite fts.c not to change the current working directory,
6149         by using openat, fstatat, fdopendir, etc..
6150
6151         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
6152         (HAVE_OPENAT_SUPPORT): Define.
6153         [_LIBC] (fchdir): Don't undef or define; no longer used.
6154         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
6155         Now, this `function' always succeeds, and consumes its file descriptor
6156         parameter -- so callers must not close such FDs.  Update callers.
6157         (diropen_fd, opendirat, cwd_advance_fd): New functions.
6158         (diropen): Add parameter, SP.  Adjust all callers.
6159         Implement using diropen_fd, rather than open.
6160         (fts_open): Initialize new member, fts_cwd_fd.
6161         Remove fts_rft-setting code.
6162         (fts_close): Close fts_cwd_fd, if necessary.
6163         (__opendir2): Define in terms of opendir or opendirat,
6164         depending on whether the FST_NOCHDIR flag is set.
6165         (fts_build): Since fts_safe_changedir consumes its FD, and since
6166         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
6167         and close the dup'd file descriptor upon failure.
6168         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
6169         (fts_safe_changedir): Tweak semantics to reflect that this function
6170         now calls cwd_advance_fd and hence consumes its FD argument.
6171         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
6172         [struct FTS] (fts_rft): Remove now-unused member.
6173         [struct FTS] (fts_cycle.state): Improve comment.
6174
6175         * lib/openat.c (openat_needs_fchdir): New function.
6176         * lib/openat.h (openat_needs_fchdir): Declare it.
6177
6178 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
6179
6180         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
6181         Problem and fix reported by Pádraig Brady in
6182         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
6183
6184 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
6185
6186         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
6187
6188 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
6189
6190         * lib/memcoll.c (memcoll): Optimize for the common case where the
6191         arguments are bytewise equal.
6192
6193 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
6194
6195         * doc/regexprops-generic.texi: Add a copyright notice.
6196
6197 2006-08-15  Bruno Haible  <bruno@clisp.org>
6198
6199         * modules/tmpdir (License): Change to LGPL.
6200
6201 2006-08-15  Bruno Haible  <bruno@clisp.org>
6202
6203         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
6204         module.
6205
6206 2006-08-14  Simon Josefsson  <jas@extundo.com>
6207
6208         * config/srclist.txt: Add gnupload.
6209
6210 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
6211
6212         Change copyright notice from LGPL 2 to GPL 2, since that's the
6213         standard form used in the gnulib repository.
6214         * tests/test-lock.c: Likewise.
6215         * tests/test-stdint.c: Likewise.
6216         * tests/test-tls.c: Likewise.
6217
6218         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
6219         prelude-manager.  User shorter URLs for GNU projects, without '?'.
6220         Add copyright notice.
6221
6222         * check-module: Add copyright notice.  Output a copyright
6223         notice if "--version" is specified.
6224         * modules/COPYING: New file.
6225         * tests/test-getaddrinfo.c: Add copyright notice.
6226         * tests/test-verify.c: Likewise.
6227
6228 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
6229
6230         Change copyright notice from LGPL 2 to GPL 2, since that's the
6231         standard form used in the gnulib repository.
6232         * lib/lock.c: LGPL -> GPL.
6233         * lib/lock.h: Likewise.
6234         * lib/strnlen1.c: Likewise.
6235         * lib/strnlen1.h: Likewise.
6236         * lib/tls.c: Likewise.
6237         * lib/tls.h: Likewise.
6238         * lib/tmpdir.c: Likewise.
6239
6240         * lib/TODO: Remove; this belongs only in coreutils.
6241
6242 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
6243
6244         Add copyright notices to long-enough files that lack them, since
6245         otherwise the files aren't clearly free.  Use the same notice that
6246         getdate.texi already uses.
6247         * doc/alloca-opt.texi: Add copyright notice.
6248         * doc/alloca.texi: Likewise.
6249         * doc/ctime.texi: Likewise.
6250         * doc/functions.texi: Likewise.
6251         * doc/gcd.texi: Likewise.
6252         * doc/gnulib-tool.texi: Likewise.
6253         * doc/inet_ntoa.texi: Likewise.
6254         * doc/visibility.texi: Likewise.
6255
6256         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
6257         * doc/quote.texi: Add copyright notice.
6258
6259         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
6260         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
6261         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
6262         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
6263         is now obsolete, and give a pointer to the Sun list.
6264         Add copyright notice.
6265
6266 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
6267
6268         * config/srclistvars.sh: Add copyright notice.
6269
6270 2006-08-14  Eric Blake  <ebb9@byu.net>
6271
6272         Import the following change from libc:
6273
6274         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
6275
6276         Upstream bug 2997.
6277         * lib/misc/error.c: Add space between program name and message if file
6278         name is missing.
6279
6280 2006-08-12  Karl Berry  <karl@gnu.org>
6281
6282         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
6283         remove, these originate in gnulib now.
6284
6285 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6286
6287         * doc/Makefile (standards.info standards.html standards.dvi):
6288         Also depend on make-stds.texi.
6289
6290 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
6291
6292         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
6293         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
6294
6295         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
6296         in wchar_t.  Problem reported by Eric Blake.
6297
6298         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
6299         LEN is smaller than SIZE.  Suggested by Bruno Haible.
6300         Also, help the compiler to keep LEN in a register.
6301
6302 2006-08-11  Eric Blake  <ebb9@byu.net>
6303
6304         * users.txt: Sort.  Add tar.
6305
6306 2006-08-11  Bruno Haible  <bruno@clisp.org>
6307
6308         * users.txt: New file.
6309
6310 2006-08-11  Bruno Haible  <bruno@clisp.org>
6311
6312         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
6313         before <wchar.h>. Needed for OSF/1 and BSD/OS.
6314
6315 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
6316
6317         * modules/snprintf (Depends-on): Remove minmax.
6318         (Maintainer): Add self and Bruno.
6319
6320 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
6321
6322         * lib/.cppi-disable: Add snprintf.h, socket_.h.
6323         * lib/snprintf.c: Include <errno.h> and <limits.h>.
6324         (EOVERFLOW): Define if the system does not.
6325         Do not include "minmax.h"; it wasn't used.
6326         (snprintf): Don't assume size_t promotes to an unsigned type.
6327         Fix bug when generated string was too long for the buffer: the
6328         buffer's contents are supposed to be the initial prefix of the
6329         output.  Don't assume vasnprintf returns EOVERFLOW if the size
6330         exceeds INT_MAX; do the check ourselves.
6331
6332         Import the following changes from libc:
6333
6334         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
6335
6336         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
6337         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
6338         set wc to the byte which couldn't be converted.
6339         (re_string_reconstruct): Don't clear valid_raw_len before calling
6340         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
6341         tip_context using re_string_context_at.
6342
6343         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
6344
6345         * lib/posix/regex.h: g++ still cannot handled [restrict].
6346
6347         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
6348
6349         * lib/posix/regex.h: Remove special handling for VMS.
6350
6351 2006-08-10  Jim Meyering  <jim@meyering.net>
6352
6353         * modules/same-inode: New module.
6354         * modules/dev-ino: New module.
6355         * modules/cycle-check: Depend on these modules, rather than simply
6356         including their .h files.
6357         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
6358         required via m4/cycle-check.m4.
6359         * modules/same: Depend on new same-inode module, rather than
6360         including same-inode.h.
6361         * modules/chdir-safer: New file.
6362
6363         * modules/chown (Depends-on): Add stat-macros.
6364
6365 2006-08-10  Jim Meyering  <jim@meyering.net>
6366
6367         * m4/cycle-check.m4: New file.
6368         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
6369         * m4/dev-ino.m4, m4/same-inode.m4: New files.
6370
6371 2006-08-10  Eric Blake  <ebb9@byu.net>
6372
6373         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
6374         in from original proposal.
6375
6376 2006-08-10  Eric Blake  <ebb9@byu.net>
6377         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6378
6379         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
6380         namespace.
6381
6382 2006-08-10  Bruno Haible  <bruno@clisp.org>
6383
6384         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
6385         as well.
6386
6387 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
6388
6389         Sync from coreutils.
6390
6391         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
6392
6393         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
6394         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
6395
6396 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
6397
6398         * modules/restrict: Remove; no longer needed now that we assume
6399         Autoconf 2.59 or later.
6400         * MODULES.html.sh: Remove 'restrict'.
6401         * modules/argp (Depends-on): Remove 'restrict'.
6402         * modules/base64 (Depends-on): Likewise.
6403         * modules/gc (Depends-on): Likewise.
6404         * modules/getaddrinfo (Depends-on): Likewise.
6405         * modules/glob (Depends-on): Likewise.
6406         * modules/inet_ntop (Depends-on): Likewise.
6407         * modules/inet_pton (Depends-on): Likewise.
6408         * modules/memxor (Depends-on): Likewise.
6409         * modules/regex (Depends-on): Likewise.
6410         * modules/strtok_r (Depends-on): Likewise.
6411         * modules/time_r (Depends-on): Likewise.
6412
6413 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
6414
6415         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
6416         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
6417         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
6418         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
6419         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
6420         * m4/memxor.m4 (gl_MEMXOR): Likewise.
6421         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
6422         gl_C_RESTRICT replaced by AC_C_RESTRICT.
6423
6424         Merge from coreutils.
6425         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
6426         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
6427         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
6428         * m4/time_r.m4 (gl_TIME_R): Likewise.
6429
6430 2006-08-09  Karl Berry  <karl@gnu.org>
6431
6432         * config/srclist.txt: no more gettext-tools, per Bruno.
6433
6434 2006-08-08  Eric Blake  <ebb9@byu.net>
6435
6436         * modules/verror: New module.
6437         * MODULES.html.sh: Document it.
6438
6439 2006-08-08  Eric Blake  <ebb9@byu.net>
6440
6441         * lib/verror.h, lib/verror.c: New files.
6442
6443 2006-08-08  Eric Blake  <ebb9@byu.net>
6444
6445         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
6446         verror_at_line output complies with GNU Coding Standards even when
6447         file is NULL.
6448
6449 2006-08-07  Bruno Haible  <bruno@clisp.org>
6450
6451         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
6452         versions of AIX.
6453         Reported by Ralf Wildenhues.
6454
6455 2006-08-07  Bruno Haible  <bruno@clisp.org>
6456
6457         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
6458         in an AC_DEFUN. Needed so that the autoconf snippets can use
6459         AC_REQUIRE.
6460
6461 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6462
6463         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
6464         Initialize pkgdata_DATA.
6465         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
6466         overriding it.
6467
6468 2006-08-06  Eric Blake  <ebb9@byu.net>
6469
6470         * lib/error.h: Fold in some upstream changes from glibc.
6471         * lib/error.c: Likewise.
6472
6473 2006-08-04  Bruno Haible  <bruno@clisp.org>
6474
6475         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
6476         Make the mostlyclean-local rule depend on mostlyclean-generic.
6477         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
6478
6479 2006-07-31  Bruno Haible  <bruno@clisp.org>
6480
6481         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
6482         <stdlib.h>, <string.h>.
6483
6484 2006-07-30  Bruno Haible  <bruno@clisp.org>
6485
6486         * modules/readlink (License): Change to LGPL.
6487
6488 2006-07-30  Bruno Haible  <bruno@clisp.org>
6489
6490         * modules/javaversion (Makefile.am): Distribute javaversion.java and
6491         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
6492         set PKGDATADIR to point to it.
6493
6494 2006-07-30  Bruno Haible  <bruno@clisp.org>
6495
6496         * modules/csharpexec (configure.ac): Comment out macro invocation.
6497         * modules/javaexec (configure.ac): Likewise.
6498         * modules/javacomp-script (configure.ac): Likewise.
6499
6500         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
6501
6502 2006-07-30  Bruno Haible  <bruno@clisp.org>
6503
6504         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
6505         linked-list.
6506
6507 2006-07-30  Bruno Haible  <bruno@clisp.org>
6508
6509         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
6510
6511 2006-07-30  Bruno Haible  <bruno@clisp.org>
6512
6513         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
6514         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
6515         get removed.
6516
6517 2006-07-29  Bruno Haible  <bruno@clisp.org>
6518
6519         Make it possible for gnulib-tool to work with locally modified or
6520         augmented gnulib repositories.
6521         * gnulib-tool (func_usage): Document --local-dir option.
6522         (local_gnulib_dir): New variable.
6523         Handle --local-dir option.
6524         (func_lookup_file): New function.
6525         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
6526         (func_get_description, func_get_filelist, func_get_description,
6527         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
6528         func_get_automake_snippet, func_get_include_directive,
6529         func_get_license, func_get_maintainer): Use func_lookup_file.
6530         (func_import, func_create_testdir): Use func_lookup_file.
6531
6532 2006-07-29  Bruno Haible  <bruno@clisp.org>
6533
6534         * modules/setenv (Depends-on): Add unistd.
6535
6536 2006-07-29  Bruno Haible  <bruno@clisp.org>
6537
6538         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
6539
6540 2006-07-29  Bruno Haible  <bruno@clisp.org>
6541
6542         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
6543
6544 2006-07-29  Bruno Haible  <bruno@clisp.org>
6545
6546         * gnulib-tool (import, update): If there is no Makefile.am, look at
6547         aclocal.m4, instead of bailing out.
6548
6549 2006-07-29  Bruno Haible  <bruno@clisp.org>
6550
6551         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
6552         Categorize the options by when they are useful.
6553
6554 2006-07-29  Bruno Haible  <bruno@clisp.org>
6555
6556         * gnulib-tool (func_usage): Document option --no-libtool.
6557         Handle option --no-libtool.
6558         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
6559         for changed semantics of $libtool variable.
6560         (func_import): Likewise. If libtool is not used, show this through
6561         an option --no-libtool.
6562         (func_create_testdir): Update.
6563
6564 2006-07-29  Bruno Haible  <bruno@clisp.org>
6565
6566         * gnulib-tool (func_import): Extend error message about missing
6567         --doc-base.
6568
6569 2006-07-29  Bruno Haible  <bruno@clisp.org>
6570
6571         * gnulib-tool (func_import): Don't create the $docbase directory if
6572         there is no file to store there.
6573
6574 2006-07-29  Bruno Haible  <bruno@clisp.org>
6575
6576         * gnulib-tool (autoconf_minversion): If a --dir option is given and
6577         relevant, look for configure.ac there, not in the current directory.
6578         Also use a simple search for AC_PREREQ, not "autoconf --trace".
6579
6580 2006-07-29  Bruno Haible  <bruno@clisp.org>
6581
6582         * gnulib-tool (SORT): New variable.
6583         (func_usage): Undocument --assume-autoconf option.
6584         Remove --assume-autoconf option handling.
6585         (autoconf_minversion): Determine from the contents of configure.ac.
6586         (func_import): Remove autoconf_minversion handling.
6587         Suggested by Eric Blake.
6588
6589 2006-07-29  Bruno Haible  <bruno@clisp.org>
6590
6591         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
6592
6593 2006-07-29  Bruno Haible  <bruno@clisp.org>
6594
6595         * config/srclist.txt (*setenv.[ch]): Remove rules.
6596
6597 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
6598
6599         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
6600
6601 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
6602
6603         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
6604         arpa/inet.h.
6605
6606 2006-07-28  Simon Josefsson  <jas@extundo.com>
6607
6608         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
6609         * modules/inet_pton (Depends-on): Likewise.
6610
6611 2006-07-28  Simon Josefsson  <jas@extundo.com>
6612
6613         * m4/netinet_in_h.m4: New file.
6614
6615 2006-07-28  Simon Josefsson  <jas@extundo.com>
6616
6617         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
6618         #include's.
6619
6620 2006-07-28  Simon Josefsson  <jas@extundo.com>
6621
6622         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
6623         #include's.
6624
6625 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
6626
6627         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
6628         setgid on directories only if they set these bits.
6629         * lib/modechange.h: Remove obsolete comment about masks.
6630
6631 2006-07-28  Eric Blake  <ebb9@byu.net>
6632
6633         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
6634         macro expansion.
6635
6636 2006-07-28  Bruno Haible  <bruno@clisp.org>
6637
6638         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
6639
6640 2006-07-28  Bruno Haible  <bruno@clisp.org>
6641
6642         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
6643
6644 2006-07-28  Bruno Haible  <bruno@clisp.org>
6645
6646         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
6647         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
6648         Define fallbacks.
6649         Avoids link error on FreeBSD 4.x.
6650         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
6651
6652         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
6653         encoding.
6654         * lib/mbswidth.c (iswcntrl): Likewise.
6655
6656 2006-07-27  Bruno Haible  <bruno@clisp.org>
6657
6658         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
6659         test.
6660
6661 2006-07-27  Bruno Haible  <bruno@clisp.org>
6662
6663         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
6664         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
6665         defined.
6666
6667 2006-07-26  Eric Blake  <ebb9@byu.net>
6668
6669         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
6670
6671 2006-07-26  Eric Blake  <ebb9@byu.net>
6672
6673         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
6674         like mingw that lack mkstemp.
6675         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
6676         avoid compilation warning on mingw.
6677
6678 2006-07-26  Bruno Haible  <bruno@clisp.org>
6679
6680         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
6681         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
6682         INT_FAST*_MIN, INTPTR_MIN.
6683
6684 2006-07-25  Bruno Haible  <bruno@clisp.org>
6685
6686         * modules/version-etc (Depends-on): Add stdarg.
6687
6688 2006-07-25  Bruno Haible  <bruno@clisp.org>
6689
6690         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
6691         complex commands.
6692
6693 2006-07-25  Bruno Haible  <bruno@clisp.org>
6694
6695         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
6696         defined in <stdarg.h> or config.h.
6697
6698 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
6699
6700         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
6701         (gl_STDIO_SAFER): Remove.
6702
6703 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
6704
6705         * MODULES.html.sh (File stream based Input/Output):
6706         Add fopen-safer, tmpfile-safer; remove stdio-safer.
6707         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
6708         * modules/fopen-safer, modules/tmpfile-safer: New files.
6709         * modules/stdio-safer: Remove.
6710
6711 2006-07-24  Bruno Haible  <bruno@clisp.org>
6712
6713         * modules/tmpdir: New file.
6714         * MODULES.html.sh (File system functions): Add it.
6715
6716 2006-07-24  Bruno Haible  <bruno@clisp.org>
6717
6718         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
6719         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
6720
6721 2006-07-24  Bruno Haible  <bruno@clisp.org>
6722
6723         * modules/clean-temp: New file.
6724
6725 2006-07-24  Bruno Haible  <bruno@clisp.org>
6726
6727         * m4/tmpdir.m4: New file, from GNU gettext.
6728
6729 2006-07-24  Bruno Haible  <bruno@clisp.org>
6730
6731         * lib/tmpdir.h: New file, from GNU gettext.
6732         * lib/tmpdir.c: New file, from GNU gettext.
6733
6734 2006-07-24  Bruno Haible  <bruno@clisp.org>
6735
6736         * lib/clean-temp.h: New file, from GNU gettext.
6737         * lib/clean-temp.c: New file, from GNU gettext.
6738
6739 2006-07-23  Eric Blake  <ebb9@byu.net>
6740
6741         * modules/stdio-safer (Files): Add tmpfile-safer.c.
6742         (Depends-on): Add binary-io.
6743
6744 2006-07-23  Eric Blake  <ebb9@byu.net>
6745
6746         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
6747
6748 2006-07-23  Eric Blake  <ebb9@byu.net>
6749
6750         * lib/tmpfile-safer.c: New file.
6751         * lib/stdio-safer.h (fopen_safer): Add prototype.
6752         * lib/stdio--.h (tmpfile): Make safer.
6753
6754 2006-07-23  Bruno Haible  <bruno@clisp.org>
6755
6756         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
6757         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
6758         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
6759         gl_linked_remove_at): Use it.
6760
6761 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
6762         and Simon Josefsson <jas@extundo.com>
6763
6764         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
6765
6766         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
6767
6768 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
6769
6770         * modules/close-stream: New file.
6771         * modules/closeout (Description): Make it clear that it exits
6772         with a diagnostic on error.
6773         (Depends-on): Add close-stream.  Remove fpending, stdbool.
6774         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
6775
6776 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
6777
6778         * m4/close-stream.m4: New file.
6779
6780 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
6781
6782         * lib/close-stream.c, lib/close-stream.h: New files.
6783
6784 2006-07-22  Bruno Haible  <bruno@clisp.org>
6785
6786         Merge from GNU gettext 0.15.
6787
6788         2006-05-01  Bruno Haible  <bruno@clisp.org>
6789
6790                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
6791
6792         2006-07-22  Bruno Haible  <bruno@clisp.org>
6793
6794                 * modules/javaversion: New file.
6795                 * MODULES.html.sh (Java): Add javaversion.
6796
6797         2006-03-12  Bruno Haible  <bruno@clisp.org>
6798
6799                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
6800
6801         2005-12-04  Bruno Haible  <bruno@clisp.org>
6802
6803                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
6804                 (untested).
6805
6806         2006-06-21  Bruno Haible  <bruno@clisp.org>
6807
6808                 Avoid warnings from recent versions of mcs.
6809                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
6810                 -o, -L, -r any more. Use options documented since mcs-1.0
6811                 instead. Similarly for -g.
6812
6813         2005-12-04  Bruno Haible  <bruno@clisp.org>
6814
6815                 * build-aux/csharpcomp.sh.in: Suffix for resources is
6816                 .resources, not .resource.
6817
6818         2005-07-09  Bruno Haible  <bruno@clisp.org>
6819
6820                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
6821                 add a .dll suffix.
6822                 Reported by Mark Junker <mjscod@gmx.de>.
6823
6824         2006-07-22  Bruno Haible  <bruno@clisp.org>
6825
6826                 * modules/gettext: Upgrade to gettext-0.15.
6827                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
6828                 m4/visibility.m4.
6829                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
6830
6831 2006-07-22  Bruno Haible  <bruno@clisp.org>
6832
6833         Merge from GNU gettext 0.15.
6834
6835         2006-03-25  Bruno Haible  <bruno@clisp.org>
6836
6837                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
6838
6839         2006-07-21  Bruno Haible  <bruno@clisp.org>
6840
6841                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
6842                 "1.1".
6843
6844         2006-05-09  Bruno Haible  <bruno@clisp.org>
6845
6846                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
6847                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
6848                 for the conftestver execution.
6849
6850         2006-05-01  Bruno Haible  <bruno@clisp.org>
6851
6852                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
6853                 optional target-version argument. Verify that the compiler
6854                 groks source of the specified source-version, or add -source
6855                 option as necessary. Verify that the compiler produces
6856                 bytecode in the specified target-version, or add -target and
6857                 -source options as necessary. Make the result of the test
6858                 available as variable CONF_JAVAC. Also log error output in
6859                 config.log.
6860
6861         2006-03-11  Bruno Haible  <bruno@clisp.org>
6862
6863                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
6864
6865         2006-05-09  Bruno Haible  <bruno@clisp.org>
6866
6867                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
6868                 CLASSPATH_SEPARATOR to a semicolon.
6869
6870         2006-03-12  Bruno Haible  <bruno@clisp.org>
6871
6872                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
6873                 available as variable CONF_JAVA, for subsequent autoconf
6874                 tests. Also log error output in config.log.
6875
6876         2006-07-19  Bruno Haible  <bruno@clisp.org>
6877
6878                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
6879                 that getline works on glibc2 systems. Needed to avoid trouble
6880                 in relocatable.c.
6881                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
6882
6883         2005-12-04  Bruno Haible  <bruno@clisp.org>
6884
6885                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
6886                 launcher (untested).
6887
6888         2005-12-04  Bruno Haible  <bruno@clisp.org>
6889
6890                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
6891
6892         2006-07-22  Bruno Haible  <bruno@clisp.org>
6893
6894                 * gettext.m4: Update from GNU gettext-0.15.
6895                 * nls.m4: Likewise.
6896                 * po.m4: Likewise.
6897                 * inttypes-pri.m4: Likewise.
6898                 * inttypes-h.m4: Renamed from inttypes.m4.
6899                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
6900
6901 2006-07-22  Bruno Haible  <bruno@clisp.org>
6902
6903         Merge from GNU gettext 0.15.
6904
6905         2005-07-05  Bruno Haible  <bruno@clisp.org>
6906
6907                 * printf-args.c (printf_fetchargs): Work around broken
6908                 definition of wint_t on mingw.
6909
6910         2005-02-12  Bruno Haible  <bruno@clisp.org>
6911
6912                 * xallocsa.h: Add extern "C" for C++.
6913
6914         2006-05-17  Bruno Haible  <bruno@clisp.org>
6915
6916                 Cygwin portability.
6917                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
6918
6919         2006-04-30  Bruno Haible  <bruno@clisp.org>
6920
6921                 * progreloc.c: Include <mach-o/dyld.h> if available.
6922                 (find_executable): Use _NSGetExecutablePath when possible.
6923
6924         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
6925
6926                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
6927                 function.
6928
6929         2005-12-29  Bruno Haible  <bruno@clisp.org>
6930
6931                 * progreloc.c (set_program_name_and_installdir): Fix
6932                 compilation error.
6933
6934         2005-12-04  Bruno Haible  <bruno@clisp.org>
6935
6936                 Cygwin portability.
6937                 * progreloc.c: Include <windows.h> also on Cygwin.
6938                 (find_executable): Add support for Cygwin.
6939                 (set_program_name_and_installdir): Handle also platforms with
6940                 nonempty EXEEXT.
6941
6942         2006-07-11  Bruno Haible  <bruno@clisp.org>
6943
6944                 * javacomp.c: Fix a comment.
6945                 Reported by Jim Meyering.
6946
6947         2006-04-30  Bruno Haible  <bruno@clisp.org>
6948
6949                 * javacomp.h (compile_java_class): Add source_version,
6950                 target_version arguments.
6951                 * javacomp.c: Rewritten to choose only a compiler that
6952                 respects the specified source_version and target_version.
6953
6954         2006-06-27  Bruno Haible  <bruno@clisp.org>
6955
6956                 Assume correct S_ISDIR macro.
6957                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
6958
6959         2006-07-22  Bruno Haible  <bruno@clisp.org>
6960
6961                 * javaversion.h: New file, from GNU gettext.
6962                 * javaversion.c: New file, from GNU gettext.
6963                 * javaversion.java: New file, from GNU gettext.
6964                 * javaversion.class: New file, from GNU gettext.
6965
6966         2006-05-17  Bruno Haible  <bruno@clisp.org>
6967
6968                 Cygwin portability.
6969                 * javaexec.c (execute_java_class): Test for jview program
6970                 also on Cygwin.
6971
6972         2006-04-09  Bruno Haible  <bruno@clisp.org>
6973
6974                 * fatal-signal.c: Don't include string.h.
6975                 (at_fatal_signal): Use a copying loop instead of memcpy.
6976
6977         2005-12-04  Bruno Haible  <bruno@clisp.org>
6978
6979                 * csharpexec.c: Add support for 'clix' launcher (untested).
6980                 (execute_csharp_using_sscli): New function.
6981                 (execute_csharp_program): Call it.
6982
6983         2006-06-21  Bruno Haible  <bruno@clisp.org>
6984
6985                 Avoid warnings from recent versions of mcs.
6986                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
6987                 -o, -L, -r any more. Use options documented since mcs-1.0
6988                 instead. Similarly for -g.
6989
6990         2005-07-09  Bruno Haible  <bruno@clisp.org>
6991
6992                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
6993                 add a .dll suffix.
6994                 Reported by Mark Junker <mjscod@gmx.de>.
6995
6996         2006-06-17  Bruno Haible  <bruno@clisp.org>
6997
6998                 * config.charset: Update for NetBSD 3.0.
6999
7000         2006-05-17  Bruno Haible  <bruno@clisp.org>
7001
7002                 Cygwin portability.
7003                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
7004
7005         2006-05-16  Bruno Haible  <bruno@clisp.org>
7006
7007                 * localcharset.c [CYGWIN]: Include <windows.h>.
7008                 (get_charset_aliases): For Cygwin, return the same CPxxx
7009                 aliases list as under WIN32.
7010                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
7011                 the environment variables. Fall back to GetACP().
7012
7013         2006-04-05  Bruno Haible  <bruno@clisp.org>
7014
7015                 * config.charset: Update Juan Manuel Guerrero's address.
7016
7017         2005-02-12  Bruno Haible  <bruno@clisp.org>
7018
7019                 * allocsa.h: Add extern "C" for C++.
7020
7021         2005-02-10  Bruno Haible  <bruno@clisp.org>
7022
7023                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
7024                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
7025
7026         2006-07-22  Bruno Haible  <bruno@clisp.org>
7027
7028                 * gettext.h: Update to GNU gettext-0.15.
7029
7030 2006-07-22  Bruno Haible  <bruno@clisp.org>
7031
7032         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
7033         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
7034         lib-prefix.m4, longdouble.m4, ssize_t.m4.
7035
7036 2006-07-21  Eric Blake  <ebb9@byu.net>
7037
7038         * modules/stdlib-safer: New file.
7039         * MODULES.html.sh (File stream based Input/Output): Add
7040         stdlib-safer.
7041
7042 2006-07-21  Eric Blake  <ebb9@byu.net>
7043
7044         * lib/stdlib-safer.h: New file from coreutils, required by
7045         stdlib--.h.
7046
7047 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
7048
7049         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
7050
7051 2006-07-20  Bruno Haible  <bruno@clisp.org>
7052
7053         * gnulib-tool: Recognize new option --assume-autoconf.
7054         (autoconf_minversion): New variable.
7055         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
7056
7057 2006-07-20  Bruno Haible  <bruno@clisp.org>
7058
7059         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
7060
7061 2006-07-19  Derek R. Price  <derek@ximbiot.com>
7062
7063         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
7064         Reindent and repaginate.
7065
7066 2006-07-19  Derek Price  <derek@ximbiot.com>
7067
7068         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
7069         Correct grammar.
7070
7071 2006-07-17  Bruno Haible  <bruno@clisp.org>
7072
7073         * modules/list: New file.
7074         * modules/array-list: New file.
7075         * modules/carray-list, modules/carray-list-tests: New files.
7076         * modules/linked-list, modules/linked-list-tests: New files.
7077         * modules/avltree-list, modules/avltree-list-tests: New files.
7078         * modules/rbtree-list, modules/rbtree-list-tests: New files.
7079         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
7080         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
7081         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
7082         * modules/oset: New file.
7083         * modules/array-oset: New file.
7084         * modules/avltree-oset, modules/avltree-oset-tests: New files.
7085         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
7086         * tests/test-carray_list.c: New file.
7087         * tests/test-linked_list.c: New file.
7088         * tests/test-avltree_list.c: New file.
7089         * tests/test-rbtree_list.c: New file.
7090         * tests/test-linkedhash_list.c: New file.
7091         * tests/test-avltreehash_list.c: New file.
7092         * tests/test-rbtreehash_list.c: New file.
7093         * tests/test-avltree_oset.c: New file.
7094         * tests/test-rbtree_oset.c: New file.
7095         * MODULES.html.sh (Container data structures): New section.
7096
7097 2006-07-17  Bruno Haible  <bruno@clisp.org>
7098
7099         * m4/gl_list.m4: New file.
7100
7101 2006-07-17  Bruno Haible  <bruno@clisp.org>
7102
7103         * lib/gl_list.h: New file.
7104         * lib/gl_list.c: New file.
7105         * lib/gl_array_list.h: New file.
7106         * lib/gl_array_list.c: New file.
7107         * lib/gl_carray_list.h: New file.
7108         * lib/gl_carray_list.c: New file.
7109         * lib/gl_linked_list.h: New file.
7110         * lib/gl_linked_list.c: New file.
7111         * lib/gl_anylinked_list1.h: New file.
7112         * lib/gl_anylinked_list2.h: New file.
7113         * lib/gl_avltree_list.h: New file.
7114         * lib/gl_avltree_list.c: New file.
7115         * lib/gl_anyavltree_list1.h: New file.
7116         * lib/gl_anyavltree_list2.h: New file.
7117         * lib/gl_rbtree_list.h: New file.
7118         * lib/gl_rbtree_list.c: New file.
7119         * lib/gl_anyrbtree_list1.h: New file.
7120         * lib/gl_anyrbtree_list2.h: New file.
7121         * lib/gl_anytree_list1.h: New file.
7122         * lib/gl_anytree_list2.h: New file.
7123         * lib/gl_linkedhash_list.h: New file.
7124         * lib/gl_linkedhash_list.c: New file.
7125         * lib/gl_anyhash_list1.h: New file.
7126         * lib/gl_anyhash_list2.h: New file.
7127         * lib/gl_avltreehash_list.h: New file.
7128         * lib/gl_avltreehash_list.c: New file.
7129         * lib/gl_rbtreehash_list.h: New file.
7130         * lib/gl_rbtreehash_list.c: New file.
7131         * lib/gl_anytreehash_list1.h: New file.
7132         * lib/gl_anytreehash_list2.h: New file.
7133
7134         * lib/gl_oset.h: New file.
7135         * lib/gl_oset.c: New file.
7136         * lib/gl_array_oset.h: New file.
7137         * lib/gl_array_oset.c: New file.
7138         * lib/gl_avltree_oset.h: New file.
7139         * lib/gl_avltree_oset.c: New file.
7140         * lib/gl_rbtree_oset.h: New file.
7141         * lib/gl_rbtree_oset.c: New file.
7142         * lib/gl_anytree_oset.h: New file.
7143
7144 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
7145
7146         * m4/mkancesdirs.m4: New file.
7147         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
7148         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
7149         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
7150         it.
7151
7152 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
7153
7154         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
7155         * lib/mkancesdirs.h: New files.
7156         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
7157         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
7158         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
7159         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
7160         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
7161         callers changed.  Revamp internals significantly, by not
7162         attempting to create directories that are temporarily more
7163         permissive than the final results.  Do not attempt to use
7164         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
7165         This removes some race conditions, fixes some bugs, and simplifies
7166         things.  Use new dirchownmod function to do owner and mode changes.
7167         * lib/mkdir-p.h: Likewise.
7168         * lib/modechange.c (octal_to_mode): New function.
7169         (struct mode_change): New member mentioned.
7170         (make_node_op_equals): New arg mentioned.  All callers changed.
7171         (mode_compile): Keep track of which mode bits the user has explicitly
7172         mentioned.
7173         (mode_adjust): New arg DIR, so that we implement the X op correctly.
7174         New arg PMODE_BITS, to keep track of which mode bits the user
7175         mentioned; it treats S_ISUID and S_ISGID speciall.
7176         All callers changed.
7177         * lib/modechange.h: Likewise.
7178
7179 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
7180
7181         * MODULES.html.sh: Add mkancestors.
7182         * modules/mkancesdirs: New module.
7183         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
7184         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
7185         The chdir-safer and afs files are now orphans; I'll remove them
7186         unless someone speaks up.
7187         Add lib/dirchownmod.c, lib/dirchownmod.h.
7188         (Depends-on): Remove alloca, chown, save-cwd, dirname.
7189         Add lchown, mkancesdirs.
7190         (Maintainer): Add self.
7191
7192 2006-07-15  Karl Berry  <karl@gnu.org>
7193
7194         * gnulib-tool: help message wording/arrangement.
7195
7196 2006-07-14  Simon Josefsson  <jas@extundo.com>
7197
7198         * doc/gnulib.texi (Libtool and Windows): New section.
7199
7200 2006-07-12  Simon Josefsson  <jas@extundo.com>
7201
7202         * modules/gendocs (License): Fix license, approved by Karl.
7203
7204 2006-07-12  Eric Blake  <ebb9@byu.net>
7205
7206         * MODULES.html.sh: Add gendocs.
7207
7208 2006-07-11  Eric Blake  <ebb9@byu.net>
7209
7210         * modules/fdl: New module, to install doc/fdl.texi.
7211         * MODULES.html.sh: Add new section for documentation modules.
7212         * gnulib-tool: Avoid space-tab.
7213         (--doc-base): New option, to manage files from doc.
7214
7215 2006-07-11  Eric Blake  <ebb9@byu.net>
7216
7217         * m4/absolute-header.m4: Fix comments to match recent change.
7218
7219 2006-07-11  Eric Blake  <ebb9@byu.net>
7220
7221         * gnulib-tool: List --doc-base before --tests-base.
7222
7223 2006-07-11  Derek R. Price  <derek@ximbiot.com>
7224
7225         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
7226
7227 2006-07-11  Bruno Haible  <bruno@clisp.org>
7228
7229         * README: Mention where to put documentation.
7230
7231 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7232
7233         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
7234
7235 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
7236
7237         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
7238         to stdint.m4.
7239
7240 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
7241
7242         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
7243         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
7244         "no/such/file/stdint.h" when there is no such file, so that
7245         the resulting C code can be parsed by dodgy compilers.
7246         Problems reported by Bob Proulx.
7247
7248 2006-07-10  Derek R. Price  <derek@ximbiot.com>
7249
7250         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
7251         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
7252         macros into the GNU _D_EXACT_NAMLEN.
7253         * lib/savedir.c:  Likewise.
7254         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
7255
7256 2006-07-10  Derek R. Price  <derek@ximbiot.com>
7257         and Paul Eggert  <eggert@cs.ucla.edu>
7258
7259         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
7260         * m4/savedir.m4:
7261         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
7262         macros into the GNU _D_EXACT_NAMLEN.
7263
7264 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
7265
7266         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
7267         around the absolute name, to work around a problem with the HP-UX
7268         11.23 native C compiler, reported by Bob Proulx.
7269
7270 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
7271
7272         * doc/maintain.texi, make-stds.texi: Sync from
7273         <http://savannah.gnu.org/projects/gnustandards>.
7274
7275 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
7276
7277         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
7278
7279 2006-07-09  Jim Meyering  <jim@meyering.net>
7280
7281         * m4/glob.m4: Remove a doubled word in a comment.
7282
7283 2006-07-09  Jim Meyering  <jim@meyering.net>
7284
7285         * lib/argp-pv.c: Remove a doubled word in a comment.
7286         * lib/check-version.c (check_version): Likewise.
7287         * lib/javacomp.c (compile_java_class): Likewise.
7288
7289 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
7290
7291         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
7292         for the benefit of people using Autoconf 2.60.  If you want to
7293         support older Autoconf versions you can copy m4/onceonly_2_57.m4
7294         (or m4/onceonly.m4, if pre-2.57) manually.
7295
7296 2006-07-08  Jim Meyering  <jim@meyering.net>
7297
7298         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
7299         comment.
7300         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
7301         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
7302         comment.
7303
7304 2006-07-08  Jim Meyering  <jim@meyering.net>
7305
7306         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
7307
7308 2006-07-07  Simon Josefsson  <jas@extundo.com>
7309
7310         * tests/test-crc.c: Change expected crc value, the test vector
7311         were probably computed using the old broken crc.c?
7312
7313 2006-07-06  Simon Josefsson  <jas@extundo.com>
7314
7315         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
7316         now the canonical place for the M4 file).
7317
7318         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
7319         from the sys_socket dependency now.
7320
7321         * modules/inet_pton (Files): Ditto.
7322
7323         * modules/inet_ntop (Files): Ditto.
7324
7325 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
7326
7327         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
7328         not gl_PREREQ_GETUSERSHELL.
7329
7330 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7331
7332         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
7333         with only one argument, for Autoconf 2.60.
7334         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
7335         expand to nothing, so add a shell command to avoid syntax error.
7336         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
7337
7338 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7339
7340         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
7341
7342 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
7343
7344         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
7345         no longer needed.  Check for isblank decl.
7346         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
7347         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
7348         of existence.
7349
7350 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
7351
7352         * lib/getloadavg.c: Use __VMS, not VMS.
7353         * lib/getopt.c: Likewise.
7354         * lib/getpagesize.h: Likewise.
7355         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
7356         and probably does not work.
7357
7358 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
7359
7360         * lib/.cppi-disable: Add wcwidth.
7361         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
7362         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
7363         (ISGRAPH): Remove.  All uses changed to isgraph.
7364         (FOLD) [!defined _LIBC]: Remove special case.
7365         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
7366         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
7367         HAVE_ISBLANK.
7368         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
7369         case.
7370
7371 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
7372
7373         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
7374         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
7375         brackets.  Other minor changes to suppress some compiler
7376         warnings.
7377
7378 2006-07-06  Derek R. Price  <derek@ximbiot.com>
7379         and Paul Eggert  <eggert@cs.ucla.edu>
7380
7381         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
7382         of invoking obsolescent AC_HEADER_DIRENT macro.
7383         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
7384         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
7385         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
7386         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
7387         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
7388         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
7389         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
7390         * m4/readdir.m4: Remove; no longer needed.
7391
7392 2006-07-06  Derek R. Price  <derek@ximbiot.com>
7393         and Paul Eggert  <eggert@cs.ucla.edu>
7394
7395         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
7396         Don't worry about this obsolete case any more.
7397         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
7398         directories.
7399         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
7400         worry about this obsolete case any more.
7401         * lib/fts.c: Likewise.
7402         * lib/getcwd.c: Likewise.
7403         * lib/glob.h: Likewise.
7404         * lib/savedir.c: Likewise.
7405
7406 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
7407
7408         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
7409         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
7410         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
7411         needed.
7412         All uses removed.
7413         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
7414         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
7415         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
7416         needed.
7417         * m4/getdate.m4 (gl_GETDATE): Likewise.
7418         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
7419         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
7420         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
7421         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
7422         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
7423         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
7424         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
7425         needed.
7426
7427 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
7428
7429         * lib/memcasecmp.c: Include <limits.h>.
7430         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
7431         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
7432         Don't assume isdigit succeeds only on '0' through '9'.
7433
7434 2006-07-05  Eric Blake  <ebb9@byu.net>
7435
7436         * modules/getaddrinfo (Depends-on): Add snprintf.
7437
7438 2006-07-05  Eric Blake  <ebb9@byu.net>
7439
7440         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
7441         to avoid 'header present but could not be compiled' on cygwin.
7442
7443 2006-07-05  Eric Blake  <ebb9@byu.net>
7444
7445         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
7446         missing from netdb.h.
7447         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
7448
7449 2006-07-05  Derek R. Price  <derek@ximbiot.com>
7450
7451         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
7452         no longer needed.
7453         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
7454         * m4/getdate.m4 (gl_GETDATE): Likewise.
7455         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
7456         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
7457         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
7458         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
7459         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
7460
7461 2006-07-05  Derek R. Price  <derek@ximbiot.com>
7462
7463         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
7464         All uses of is_space replaced by isspace.
7465         * lib/exit.h: Don't talk about STDC_HEADERS.
7466         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
7467         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
7468         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
7469         replaced by isprint etc.
7470         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
7471         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
7472         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
7473         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
7474         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
7475         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
7476
7477 2006-07-05  Bruno Haible  <bruno@clisp.org>
7478
7479         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
7480         the function exists, before testing against AIX.
7481         Reported by Martin Lambers <marlam@marlam.de>.
7482
7483 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
7484
7485         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
7486         From Mark D. Baushke.
7487
7488 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
7489
7490         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
7491         to the absolute name, not just one, to bypass Sun C 5.8's
7492         "warning: #include of /usr/include/... may be non-portable".
7493
7494 2006-07-04  Eric Blake  <ebb9@byu.net>
7495
7496         * modules/dirname-tests: New test module.
7497         * tests/test-dirname.c: New file, replacing dirname.c
7498         TEST_DIRNAME section that was recently deleted.
7499
7500 2006-07-04  Bruno Haible  <bruno@clisp.org>
7501
7502         Assume ANSI C header files and <ctype.h> functions.
7503         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
7504         (mbsnwidth): Use isprint, iscntrl instead.
7505
7506 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
7507
7508         Merge from coreutils.
7509         * MODULES.html.sh: Add xstrtold.
7510         * modules/xstrtold: New file.
7511         * modules/cycle-check (Files): Add lib/same-inode.h.
7512         * modules/dirname (Files): Add m4/double-slash-root.m4.
7513         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
7514         * modules/mkdir-p (Files): Add lib/same-inode.h.
7515         * modules/same (Files): Add lib/same-inode.h.
7516
7517 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
7518
7519         * m4/absolute-header.m4: Renamed from full-header-path.m4.
7520         This is to keep the terminology clean; POSIX talks about
7521         "absolute pathnames", not "full pathnames", but the GNU
7522         Coding Standards say to use "path" for something else;
7523         so use "absolute" to keep both sides happy.
7524         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
7525         Set gl_absolute_header, not gl_full_header_path.
7526         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
7527         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
7528         All uses changed.
7529
7530         Merge from coreutils.
7531
7532         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
7533
7534         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
7535         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
7536         want to require the building of c-strtod.o.
7537         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
7538         needs -lm directly.
7539         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
7540
7541         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
7542
7543         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
7544         --as-needed option if available.  Problem reported by Albert Chin in
7545         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
7546         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
7547         cc merely issues a bunch of annoying warnings for --as-needed
7548         (this problem was reported by Bob Proulx).  Also, try linking with
7549         -lm to detect a bug in binutils 2.16 (this problem was reported
7550         by Ralf Wildenhues).
7551
7552         2006-06-18  Jim Meyering  <jim@meyering.net>
7553
7554         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
7555         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
7556         macro.
7557         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
7558         also check for glibc-2.4's abort-inducing bug.
7559
7560         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
7561         Low-probability clean-up should be to use rmdir to get rid of
7562         the just-created directory, not unlink.
7563
7564         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
7565         configure fail, and request a bug report to inform us about it.
7566         Add a comment that, barring reports to the contrary, in 2007 we'll
7567         assume ftruncate is universally available.
7568
7569         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
7570
7571         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
7572
7573         2006-03-12  Jim Meyering  <jim@meyering.net>
7574
7575         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
7576         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
7577         * m4/same.m4 (gl_SAME): Likewise.
7578         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
7579
7580         2006-03-11  Eric Blake  <ebb9@byu.net>
7581
7582         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
7583         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
7584         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
7585         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
7586
7587 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
7588
7589         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
7590         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
7591         reported by Mark D. Baushke, one in
7592         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
7593
7594         Merge from coreutils.
7595
7596         * lib/.cppi-disable: Add stdint_.h.
7597         * lib/.cvsignore: Add stdint.h.
7598
7599         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
7600
7601         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
7602         both double and long double versions.
7603         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
7604         * lib/xstrtold.c: New file.
7605         * lib/xstrtod.h (xstrtold): New decl.
7606
7607         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
7608
7609         * lib/filemode.c (setst): Remove.
7610         (strmode): Rewrite to avoid setst.  This makes the code shorter,
7611         (arguably) clearer, and the generated code is a bit smaller on my
7612         Debian GNU/Linux stable x86 host.
7613
7614         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
7615
7616         * lib/filemode.c: Include "filemode.h" first, to test the interface.
7617         Assume that filemode.h includes sys/types.h and sys/stat.h.
7618         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
7619         (ftypelet): Reorder to put common cases first, for efficiency.
7620         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
7621         to do 'M'.
7622         (strmode): Renamed from mode_string, and now stores 12 bytes instead
7623         of 10, for compatibility with FreeBSD.  All callers changed.
7624         (filemodestring): Now stores 12 bytes instead of 10, and sets file
7625         types that can't be deduced solely from st_mode.  First arg is now a
7626         const pointer.
7627         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
7628         (strmode): Renamed from mode_string.
7629         (filemodestring): New decl.
7630         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
7631         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
7632         needed.
7633         (S_ISPORT, S_ISWHT): New macros, if not already defined.
7634
7635         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
7636
7637         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
7638         fsusage.h now does that.  Include fsusage.h first, to test interface.
7639         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
7640         at most one method (the old code could have generated decls that
7641         didn't conform to C89, not that this was ever exercised).
7642         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
7643
7644         2006-03-19  Jim Meyering  <jim@meyering.net>
7645
7646         Work even in a chroot where d_ino values for entries in "/"
7647         don't match the stat.st_ino values for the same names.
7648         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
7649         number, iterate through all entries again, using lstat instead.
7650         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
7651         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
7652
7653         * lib/getcwd.c (__getcwd): Clarify a comment.
7654         Use memcpy in place of a call to strcpy.
7655
7656         2006-03-12  Jim Meyering  <jim@meyering.net>
7657
7658         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
7659         matches that of the current directory (which we're about to chdir ".."
7660         out of), then save the dev-ino of the parent, instead.
7661
7662         * lib/same-inode.h (SAME_INODE): New file/macro.
7663         * lib/chdir-safer.c (SAME_INODE): Remove definition.
7664         Include "same-inode.h", instead.
7665         * lib/same.c: Likewise.
7666         * lib/cycle-check.h: Include "same-inode.h".
7667         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
7668         * lib/cycle-check.c (SAME_INODE): Remove definition.
7669         * lib/root-dev-ino.h: Include "same-inode.h".
7670
7671         2006-03-11  Eric Blake  <ebb9@byu.net>
7672
7673         * lib/same.c (same_name): s/base_name/last_component/
7674         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
7675         * lib/filenamecat.c (file_name_concat): Likewise.
7676
7677         2006-03-11  Eric Blake  <ebb9@byu.net>,
7678                     Paul Eggert  <eggert@cs.ucla.edu>
7679
7680         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
7681         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
7682         drive prefix.
7683         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
7684         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
7685         (last_component): New method.
7686         * lib/dirname.c (dir_len): Determine when drive letters need a
7687         subsequent slash.  Preserve // when it is special.
7688         (dir_name): Don't append dot when drive letter is absolute.
7689         [TEST_DIRNAME]: Move into a full-blown gnulib test.
7690         * lib/basename.c (base_name): New semantics - malloc the result.
7691         Preserve // when it is special.  Preserve relative files that look
7692         like drive letters.
7693         (base_len): Preserve // when it is special.
7694         (last_component): New method, similar to old base_name semantics.
7695         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
7696         base_name.  Strip redundant slashes from ///.
7697
7698 2006-07-03  Jim Meyering  <jim@meyering.net>
7699
7700         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
7701         macro is used before the first cycle_check call.
7702
7703 2006-07-03  Eric Blake  <ebb9@byu.net>
7704
7705         * modules/dirname (Depends-on): Add xstrndup.
7706
7707 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
7708
7709         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
7710         test cases, so that config.log is a bit easier to follow.
7711
7712 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
7713
7714         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
7715         both are 64 bits, since this seems to be the tradition, and this
7716         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
7717         we ever run into a host that prefers long long to long in this
7718         case, we'll need another configure-time test.  Problem reported by
7719         Jim Meyering.
7720
7721 2006-07-02  Eric Blake  <ebb9@byu.net>
7722
7723         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
7724
7725 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
7726
7727         * modules/inttypes (Depends-on): No longer depends on stdint.
7728         * modules/stdint (Description): Say more about assumptions.
7729         Say that the fast types might differ.  Say macros are used.
7730         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
7731         (Makefile.am): Revise list of substituted symbols to match
7732         new stdint.m4.
7733         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
7734         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
7735         * tests/test-stdint.c (verify_same_types)
7736         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
7737         the code conforms to C99/C89.
7738         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
7739         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
7740
7741 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
7742
7743         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
7744         but fix a bug, by requiring at least 64 bits.
7745         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
7746         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
7747         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
7748         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
7749
7750         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
7751         changes.  Make 2.59 a prerequisite.  Check and substitute for
7752         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
7753         inttypes.h.  Do not use special include files; just use the
7754         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
7755         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
7756         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
7757         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
7758         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
7759         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
7760         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
7761         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
7762         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
7763         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
7764         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
7765         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
7766         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
7767         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
7768         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
7769         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
7770         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
7771         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
7772         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
7773         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
7774         WINT_MAX.  Check for C99 conformance more strictly, by detecting
7775         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
7776         not check for things that C99 does not require, e.g., int8_t.  If
7777         a test isn't needed unless <stdint.h> isn't working, and is
7778         unlikely to be needed for any other reason, then don't do it
7779         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
7780         size_t, since we assume C89 freestanding at least.  Do not check
7781         for sig_atomic_t, wchar_t, or wint_t, since the code now does
7782         the right thing even if the types are not defined.  Instead use:
7783         (gl_STDINT_TYPE_PROPERTIES): New macro.
7784         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
7785         testing whether <sys/types.h> clashes, as Autoconf does this for
7786         us now.  All uses removed.
7787         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
7788         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
7789         (gl_CHECK_TYPE_SAME):
7790         Remove; no longer needed.
7791         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
7792         exists, since we'll return 0 anyway in that case.
7793         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
7794
7795 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
7796
7797         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
7798         possible collision with system files.
7799         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
7800         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
7801         WCHAR_MIN and WCHAR_MAX in this case.
7802         (<stddef.h>): Do not include; no longer needed.
7803         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
7804         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
7805         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
7806         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
7807         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
7808         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
7809         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
7810         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
7811         !defined(__c99))]: Include in this case too, since it's harmless
7812         now.
7813         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
7814         dangerous to do so.
7815         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
7816         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
7817         (_STDINT_MIN, _STDINT_MAX): New macros.
7818         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
7819         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
7820         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
7821         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
7822         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
7823         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
7824         macros, not typedefs; this simplifies things quite a bit.
7825         Use long int for all types narrower than int64_t.
7826         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
7827         Define in terms of long long int or int64_t or long int,
7828         not int64_t or int32_t.  This saves some compile-time testing.
7829         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
7830         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
7831         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
7832         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
7833         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
7834         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
7835         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
7836         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
7837         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
7838         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
7839         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
7840         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
7841         undef any previous version and define our own version, for
7842         simplicity and consistency with the new macros for types.
7843         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
7844         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
7845         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
7846         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
7847         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
7848         @WINT_T_SUFFIX@ to keep things simple here.
7849         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
7850         Simplify by assuming typical 8/16/32/64 host, since we're
7851         already doing that elsewhere anyway.
7852         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
7853         and assume long long int is 64 bits if available.  This
7854         speeds up 'configure'.
7855
7856 2006-07-01  Eric Blake  <ebb9@byu.net>
7857
7858         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
7859         Reported by Andreas Buening.
7860
7861 2006-07-01  Eric Blake  <ebb9@byu.net>
7862
7863         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
7864
7865 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
7866
7867         * lib/getaddrinfo.c: fixed typo
7868
7869 2006-06-29  Jim Meyering  <jim@meyering.net>
7870
7871         * modules/strftime (Maintainer): Add my name, since with the
7872         FPRINTFTIME changes strftime.c has forked from glibc.
7873
7874 2006-06-29  Eric Blake  <ebb9@byu.net>
7875
7876         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
7877
7878 2006-06-29  Eric Blake  <ebb9@byu.net>
7879
7880         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
7881
7882 2006-06-29  Eric Blake  <ebb9@byu.net>
7883
7884         * lib/stat_.h: New file.
7885
7886 2006-06-29  Eric Blake  <ebb9@byu.net>
7887
7888         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
7889         unused static function.
7890
7891 2006-06-29  Eric Blake  <ebb9@byu.net>
7892
7893         * doc/functions.texi (Function Portability): Document missing lstat
7894         on mingw.
7895
7896 2006-06-29  Eric Blake  <ebb9@byu.net>
7897
7898         * MODULES.html.sh: Add sys_stat.
7899         * modules/sys_stat: New module.
7900         * modules/mkstemp (Depends-on): Add sys_stat.
7901
7902 2006-06-29  Derek R. Price  <derek@ximbiot.com>
7903
7904         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
7905
7906 2006-06-29  Derek R. Price  <derek@ximbiot.com>
7907
7908         * m4/c-bs-a.m4: Removed.
7909
7910 2006-06-29  Derek R. Price  <derek@ximbiot.com>
7911
7912         * lib/strftime.c: Assume strftime() exists.
7913
7914 2006-06-29  Derek Price  <derek@ximbiot.com>
7915
7916         * modules/c-bs-a: Removed - \a is C89.
7917         * MODULES.html.sh: Remove c-bs-a.
7918
7919 2006-06-29  Bruno Haible  <bruno@clisp.org>
7920
7921         * modules/wcwidth (License): Change to LGPL.
7922
7923 2006-06-28  Simon Josefsson  <jas@extundo.com>
7924
7925         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
7926         on _WIN32.
7927
7928         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
7929         getnameinfo.
7930
7931 2006-06-28  Simon Josefsson  <jas@extundo.com>
7932
7933         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
7934
7935 2006-06-28  Simon Josefsson  <jas@extundo.com>
7936
7937         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
7938         functions there.  It will succeed on Windows XP, but on Windows
7939         2000 and (presumably) earlier, it will fail, and use the internal
7940         re-implementation.
7941         (use_win32_p): New function.
7942         (getaddrinfo): Use strtoul on servname, to support numeric ports.
7943         Support AI_NUMERICSERV to disable getservbyname.
7944         (getnameinfo): New function, only supports
7945         NI_NUMERICHOST|NI_NUMERICSERV for now.
7946
7947         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
7948         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
7949         getnameinfo.
7950
7951 2006-06-28  Eric Blake  <ebb9@byu.net>
7952
7953         * modules/wcwidth: New file.
7954         * modules/mbchar (Depends-on): Add wcwidth.
7955         * modules/mbswidth (Depends-on): Add wcwidth.
7956         * MODULES.html.sh: Add wcwidth.
7957
7958 2006-06-28  Eric Blake  <ebb9@byu.net>
7959
7960         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
7961         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
7962
7963 2006-06-28  Eric Blake  <ebb9@byu.net>
7964
7965         * lib/xvasprintf.h: Fix comments.
7966
7967 2006-06-28  Eric Blake  <ebb9@byu.net>
7968
7969         * lib/mbchar.h (wcwidth): Include wcwidth.h.
7970         * lib/mbswidth.c (wcwidth): Move from here...
7971         * lib/wcwidth.h: ...to this new file.
7972
7973 2006-06-28  Derek R. Price  <derek@ximbiot.com>
7974
7975         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
7976
7977         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
7978         it's obsolete.
7979         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
7980
7981 2006-06-28  Derek R. Price  <derek@ximbiot.com>
7982
7983         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
7984         Autoconf 2.60 says this stuff was obsolete.
7985
7986 2006-06-28  Bruno Haible  <bruno@clisp.org>
7987
7988         * modules/wcwidth (Files): Add m4/wchar_t.m4.
7989
7990 2006-06-28  Bruno Haible  <bruno@clisp.org>
7991
7992         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
7993         gt_TYPE_WCHAR_T.
7994
7995 2006-06-28  Bruno Haible  <bruno@clisp.org>
7996
7997         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
7998         declaration for wcwidth.
7999         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
8000
8001 2006-06-28  Bruno Haible  <bruno@clisp.org>
8002
8003         * lib/mkdtemp.c [MINGW]: Include <io.h>.
8004         (mkdir): Define using _mkdir.
8005
8006 2006-06-28  Bruno Haible  <bruno@clisp.org>
8007
8008         * lib/getaddrinfo.h: Fix POSIX URL.
8009         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
8010         _WIN32.
8011         (use_win32_p): Make static.
8012         (getaddrinfo): Reject service name if it is empty or does not consist
8013         solely of decimal digits, or if its value is > 65535.
8014         (getnameinfo): Remove useless casts.
8015
8016 2006-06-27  Simon Josefsson  <jas@extundo.com>
8017
8018         * modules/sys_select: New file, suggested by Bruno Haible, Paul
8019         Eggert and Martin Lambers.
8020
8021 2006-06-27  Simon Josefsson  <jas@extundo.com>
8022
8023         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
8024         Eggert and Martin Lambers.
8025
8026 2006-06-27  Bruno Haible  <bruno@clisp.org>
8027
8028         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
8029         result to 0, not to empty.
8030         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
8031
8032 2006-06-27  Bruno Haible  <bruno@clisp.org>
8033
8034         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
8035
8036 2006-06-26  Simon Josefsson  <jas@extundo.com>
8037
8038         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
8039         present.
8040
8041 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
8042
8043         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
8044         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
8045         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
8046
8047 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
8048
8049         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
8050
8051 2006-06-26  Bruno Haible  <bruno@clisp.org>
8052
8053         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
8054
8055 2006-06-26  Bruno Haible  <bruno@clisp.org>
8056
8057         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
8058
8059 2006-06-26  Bruno Haible  <bruno@clisp.org>
8060
8061         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
8062         SGI C compiler in pre-C99 mode.
8063         Suggested by Mark D. Baushke and Larry Jones.
8064
8065 2006-06-26  Bruno Haible  <bruno@clisp.org>
8066
8067         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
8068         WCHAR_MAX.
8069         Reported by Mark D. Baushke and Larry Jones.
8070
8071 2006-06-26  Bruno Haible  <bruno@clisp.org>
8072
8073         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
8074         in pre-C99 mode.
8075         Suggested by Mark D. Baushke and Larry Jones.
8076
8077 2006-06-23  Simon Josefsson  <jas@extundo.com>
8078             Bruno Haible  <bruno@clisp.org>
8079
8080         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
8081         Emit mostlyclean-local rule.
8082         (func_emit_tests_Makefile_am): Likewise.
8083         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
8084
8085 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
8086
8087         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
8088
8089 2006-06-23  Bruno Haible  <bruno@clisp.org>
8090
8091         * tests/test-stdint.c: Update to match ISO C 99 Technical
8092         Corrigendum 1.
8093
8094 2006-06-23  Bruno Haible  <bruno@clisp.org>
8095
8096         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
8097
8098 2006-06-23  Bruno Haible  <bruno@clisp.org>
8099
8100         * lib/stdint_.h: Treat IRIX like OpenBSD.
8101
8102 2006-06-23  Bruno Haible  <bruno@clisp.org>
8103
8104         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
8105         ISO C 99 Technical Corrigendum 1.
8106
8107 2006-06-22  Simon Josefsson  <jas@extundo.com>
8108
8109         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
8110         MinGW.
8111
8112 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
8113
8114         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
8115         needed.  Some compiler complained about some of them.  Problem reported
8116         by Larry Jones in
8117         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
8118
8119 2006-06-21  Simon Josefsson  <jas@extundo.com>
8120
8121         * tests/test-getaddrinfo.c: New file.
8122
8123         * modules/getaddrinfo-tests: New file.
8124
8125         * MODULES.html.sh: Add inet_pton.
8126
8127         * modules/inet_pton: New file.
8128
8129 2006-06-21  Simon Josefsson  <jas@extundo.com>
8130
8131         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
8132         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
8133         of using the (limited) gnulib implementation on Windows XP.
8134
8135         * m4/inet_pton.m4: New file.
8136
8137 2006-06-21  Simon Josefsson  <jas@extundo.com>
8138
8139         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
8140         variable.
8141
8142         * lib/socket_.h: Don't define WINVER.
8143
8144         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
8145         slightly modified to work in gnulib.
8146
8147 2006-06-21  Simon Josefsson  <jas@extundo.com>
8148
8149         * doc/gnulib.texi (Windows sockets): Add.
8150
8151 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
8152
8153         * lib/read-file.c (fread_file): Start with buffer allocation of
8154         0 bytes rather than 1 byte; this simplifies the code.
8155         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
8156         code to free buffer and save/restore errno.
8157         (internal_read_file): Remove unused local.
8158
8159 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
8160
8161         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
8162         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
8163         Problem reported by Denis Excoffier in
8164         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
8165
8166 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
8167
8168         * modules/sys_socket, modules/socklen: Include sys/types since
8169         FreeBSD 4.x's sys/socket.h needs it.
8170
8171 2006-06-19  Simon Josefsson  <jas@extundo.com>
8172
8173         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
8174
8175 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
8176
8177         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
8178
8179 2006-06-19  Bruno Haible  <bruno@clisp.org>
8180
8181         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
8182         and FULL_PATH_INTTYPES_H in angle brackets.
8183         Reported by Mark D. Baushke <mdb@gnu.org>.
8184
8185 2006-06-17  Eric Blake  <ebb9@byu.net>
8186
8187         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
8188         errno.
8189
8190 2006-06-17  Bruno Haible  <bruno@clisp.org>
8191
8192         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
8193         <sys/inttypes.h>.
8194
8195 2006-06-17  Bruno Haible  <bruno@clisp.org>
8196
8197         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
8198         whether errno is declared. Assume <errno.h> declares errno.
8199
8200 2006-06-17  Bruno Haible  <bruno@clisp.org>
8201
8202         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
8203
8204 2006-06-17  Bruno Haible  <bruno@clisp.org>
8205
8206         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
8207         problem on Solaris 2.5.1.
8208
8209 2006-06-16  Eric Blake  <ebb9@byu.net>
8210
8211         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
8212         * lib/unicodeio.c [!defined errno]: Likewise.
8213         * lib/strtol.c [!defined errno]: Likewise.
8214         * lib/strtod.c [!defined errno]: Likewise.
8215
8216 2006-06-15  Eric Blake  <ebb9@byu.net>
8217
8218         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
8219
8220 2006-06-15  Eric Blake  <ebb9@byu.net>
8221
8222         * config/srclist.txt (ssize_t.m4): Lose sync.
8223
8224 2006-06-15  Bruno Haible  <bruno@clisp.org>
8225
8226         * modules/stdint (Files): Include m4/full-header-path.m4,
8227         m4/size_max.m4, m4/wchar_t.m4.
8228         (Makefile.am): Many more substitutions.
8229         * modules/stdint-tests: New file.
8230         * tests/test-stdint.c: New file.
8231
8232 2006-06-15  Bruno Haible  <bruno@clisp.org>
8233
8234         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
8235         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
8236         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
8237         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
8238         gl_CHECK_TYPE_SAME): New macros.
8239
8240 2006-06-15  Bruno Haible  <bruno@clisp.org>
8241
8242         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
8243
8244 2006-06-15  Bruno Haible  <bruno@clisp.org>
8245
8246         * lib/stdint_.h: Rewritten to be fully auto-configured.
8247         Fixes bug on HP-UX/IA64.
8248
8249 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
8250
8251         * lib/getdate.y (__attribute__): Don't define if already defined.
8252         Problem reported by Larry Jones.
8253         * lib/utimens.c (__attribute__): Likewise.
8254
8255 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
8256
8257         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
8258         reported by Andreas Schwab.
8259
8260 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8261             Bruno Haible  <bruno@clisp.org>
8262
8263         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
8264         check for the declaration of strnlen and a run test that exposes the
8265         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
8266         rpl_strndup.
8267
8268 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8269             Bruno Haible  <bruno@clisp.org>
8270
8271         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
8272
8273 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8274
8275         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
8276         compile test, for Tru64 4.0D.
8277
8278 2006-05-28  Karl Berry  <karl@gnu.org>
8279
8280         * config/srclist.txt (printf-args.c): lose sync.
8281
8282 2006-05-26  Martin Lambers  <marlam@marlam.de>
8283
8284         * lib/getpass.c: Updates the test for the native W32 API, and adds
8285         missing includes, thus fixing compilation warnings.
8286
8287 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
8288
8289         * lib/exclude.c (exclude_fnmatch): New function.
8290         (excluded_file_name): Call exclude_fnmatch.
8291         * lib/exclude.h (excluded_file_name): New prototype
8292
8293 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
8294
8295         * lib/tempname.c (small_open, large_open): New macros.
8296         (__open, __open64) [!_LIBC]: Remove.
8297         (__gen_tempname): Use small_open and large_open instead of __open
8298         and __open64.  This fixes a portability bug on HP-UX 11.11i
8299         reported by Simon Wing-Tang in
8300         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
8301
8302 2006-05-24  Bruno Haible  <bruno@clisp.org>
8303
8304         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
8305         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
8306         Reported by Thorsten Maerz <torte@netztorte.de> via
8307         Aaron Stone <aaron@serendipity.cx>.
8308
8309 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
8310
8311         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
8312         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
8313         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
8314         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
8315         not really conditional on the cache.
8316         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
8317
8318 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
8319
8320         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
8321         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
8322         (my_usleep): Don't mishandle maximum value.
8323
8324 2006-05-19  Jim Meyering  <jim@meyering.net>
8325
8326         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
8327
8328 2006-05-17  Bruno Haible  <bruno@clisp.org>
8329
8330         Cygwin portability.
8331         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
8332
8333 2006-05-17  Bruno Haible  <bruno@clisp.org>
8334
8335         * lib/stdint_.h: Fix recognition of Cygwin.
8336
8337 2006-05-15  Bruno Haible  <bruno@clisp.org>
8338
8339         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
8340         on libtool patch by Ralf Wildenhues.
8341
8342 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
8343
8344         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
8345         test for C99 conformance; (bool) 0.5 is an integer constant
8346         expression, but (bool) -0.5 is not.  Problem reported by Fedor
8347         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
8348
8349 2006-05-11  Simon Josefsson  <jas@extundo.com>
8350
8351         * m4/xvasprintf.m4: Fix obvious typo.
8352
8353 2006-05-11  Jim Meyering  <jim@meyering.net>
8354
8355         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
8356         James Lemley.
8357
8358 2006-05-10  Simon Josefsson  <jas@extundo.com>
8359
8360         * lib/md4.c: Typo fix, update copyright years.
8361         (K1, K2): Don't use L because it turn computations into 64-bit on
8362         64-bit platforms.
8363
8364 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
8365
8366         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
8367         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
8368         unwanted sign propagation, e.g., on hosts with 64-bit int.
8369         There still are some problems with reeelly weird theoretical hosts
8370         (e.g., 33-bit int) but it's not worth worrying about now.
8371         * lib/sha1.c (rol): Likewise.
8372         (K1, K2, K3, K4): Remove unnecessary L suffix.
8373
8374 2006-05-10  Bruno Haible  <bruno@clisp.org>
8375
8376         * lib/des.c: Cast to avoid warnings.
8377
8378 2006-05-09  Bruno Haible  <bruno@clisp.org>
8379
8380         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
8381         (Depends-on): Depend also on xsize, stdarg.
8382         (configure.ac): Add gl_XVASPRINTF.
8383
8384 2006-05-09  Bruno Haible  <bruno@clisp.org>
8385
8386         * m4/xvasprintf.m4: New file.
8387
8388 2006-05-09  Bruno Haible  <bruno@clisp.org>
8389
8390         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
8391         (EOVERFLOW): Define fallback value.
8392         (xstrcat): New function.
8393         (xvasprintf): Recognize the special case of a string concatenation.
8394
8395 2006-05-08  Eric Blake  <ebb9@byu.net>
8396
8397         * gnulib-tool (func_version): Base copyright year on CVS date.
8398         (func_emit_copyright_notice): New function.
8399         (func_emit_lib_Makefile_am): Use it.
8400         (func_emit_tests_Makefile_am): Likewise.
8401         (func_import): Likewise.
8402
8403 2006-05-08  Bruno Haible  <bruno@clisp.org>
8404
8405         * modules/stdarg: New file.
8406         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
8407
8408 2006-05-08  Bruno Haible  <bruno@clisp.org>
8409
8410         * m4/stdarg.m4: New file, from GNU gettext.
8411
8412 2006-05-08  Bruno Haible  <bruno@clisp.org>
8413
8414         * config/srclist.txt (build-aux/config.rpath): different from latest
8415         release.
8416
8417 2006-05-08  Bruno Haible  <bruno@clisp.org>
8418
8419         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
8420
8421 2006-05-05  Jim Meyering  <jim@meyering.net>
8422
8423         * m4/warning.m4: New file, derived from bison's file by the same name.
8424
8425 2006-05-03  Bruno Haible  <bruno@clisp.org>
8426
8427         * lib/stdint_.h: Shorter URL.
8428         * lib/inttypes.h: Likewise.
8429
8430 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
8431
8432         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
8433
8434 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
8435
8436         * lib/verify.h: Document the internals better.  Most of this change
8437         was written by Bruno Haible.
8438
8439 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
8440
8441         * doc/verify.texi: New file, partly based on a proposal by
8442         Bruno Haible.
8443
8444 2006-05-02  Bruno Haible  <bruno@clisp.org>
8445
8446         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
8447         test from here...
8448         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
8449
8450 2006-04-29  Bruno Haible  <bruno@clisp.org>
8451
8452         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
8453         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
8454
8455 2006-04-29  Bruno Haible  <bruno@clisp.org>
8456
8457         * gnulib-tool: Make --update option actually work.
8458
8459 2006-04-29  Bruno Haible  <bruno@clisp.org>
8460
8461         * doc/gcd.texi: New file.
8462         * doc/gnulib.texi: Include it.
8463
8464 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
8465
8466         * lib/getdate.y (get_date): When adding relative date, start with the
8467         initial time, not with the result of the first mktime call.
8468
8469 2006-04-25  Bruno Haible  <bruno@clisp.org>
8470
8471         * gnulib-tool (func_import): Output the include directives in three
8472         blocks, sorted separately.
8473         Reported by Ben Pfaff <blp@cs.stanford.edu>.
8474
8475 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
8476
8477         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
8478         to define main with arguments, for C++.  Reported by Eric Blake.
8479         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
8480         Prefer 'int main ()' to 'int main (void)', for C++.
8481         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
8482         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
8483         for 'main', for C99 and C++.
8484
8485 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
8486
8487         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
8488         Don't assume that exit status -1 is valid.
8489         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
8490         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
8491         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
8492         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
8493         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
8494         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
8495         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
8496         functions can be used without declaring them, or that you can
8497         exit with status -1.
8498         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
8499
8500 2006-04-24  Karl Berry  <karl@gnu.org>
8501
8502         * config/srclist.txt (longdouble.m4): sync lost.
8503
8504 2006-04-24  Eric Blake  <ebb9@byu.net>
8505
8506         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
8507
8508 2006-04-24  Bruno Haible  <bruno@clisp.org>
8509
8510         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
8511         poll() implementation in AIX.
8512         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8513
8514 2006-04-24  Bruno Haible  <bruno@clisp.org>
8515
8516         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
8517         assigned exactly once.
8518
8519 2006-04-23  Claudio Fontana  <claudio@gnu.org>
8520             Bruno Haible  <bruno@clisp.org>
8521
8522         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
8523         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
8524         for AM_CPPFLAGS.
8525
8526 2006-04-23  Bruno Haible  <bruno@clisp.org>
8527
8528         * modules/copy-file: Depend on unistd.
8529         * modules/execute: Likewise.
8530         * modules/fatal-signal: Likewise.
8531         * modules/findprog: Likewise.
8532         * modules/mkdtemp : Likewise.
8533         * modules/pipe: Likewise.
8534         * modules/wait-process: Likewise.
8535
8536 2006-04-23  Bruno Haible  <bruno@clisp.org>
8537
8538         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
8539         condition was already detected.
8540         Reported by Ben Pfaff <blp@cs.stanford.edu>.
8541
8542 2006-04-23  Bruno Haible  <bruno@clisp.org>
8543
8544         * lib/copy-file.c: Include <unistd.h> unconditionally.
8545         * lib/execute.c: Likewise.
8546         * lib/fatal-signal.c: Likewise.
8547         * lib/findprog.c: Likewise.
8548         * lib/mkdtemp.c: Likewise.
8549         * lib/pipe.h: Likewise.
8550         * lib/pipe.c: Likewise.
8551         * lib/wait-process.h: Likewise.
8552
8553 2006-04-23  Bruno Haible  <bruno@clisp.org>
8554
8555         * gnulib-tool (func_usage): Fix --import description. Document
8556         --update.
8557         (func_import): Create temporary file in a temporary directory, if
8558         --dry-run is specified. Silence errors from 'grep' when there are no
8559         m4 files in $m4dir.
8560         (func_create_testdir): Silence errors from 'grep' when there are no
8561         m4 files in $m4dir.
8562         Reported by Karl Berry <karl@freefriends.org>.
8563
8564 2006-04-20  Bruno Haible  <bruno@clisp.org>
8565
8566         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
8567         one argument, so that the code will be portable to Autoconf 2.60.
8568         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
8569         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
8570         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
8571
8572 2006-04-19  Derek Price  <derek@ximbiot.com>
8573             Eric Blake  <ebb9@byu.net>
8574
8575         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
8576         rather than "/full/path.h".  Update comment to match.  Shorten &
8577         generalize m4_translit call via AS_TR_CPP.
8578
8579 2006-04-19  Derek Price  <derek@ximbiot.com>
8580             Eric Blake  <ebb9@byu.net>
8581
8582         * lib/inttypes.h: Correct grammar in comment.
8583
8584 2006-04-18  Derek Price  <derek@ximbiot.com>
8585             Paul Eggert  <eggert@cs.ucla.edu>
8586
8587         * modules/inttypes: New file.
8588         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
8589
8590 2006-04-18  Derek Price  <derek@ximbiot.com>
8591             Paul Eggert  <eggert@cs.ucla.edu>
8592
8593         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
8594         New files.
8595
8596 2006-04-18  Derek Price  <derek@ximbiot.com>
8597             Paul Eggert  <eggert@cs.ucla.edu>
8598
8599         * lib/inttypes.h: New file.
8600         * lib/strtoimax.c: Assume <inttypes.h>.
8601
8602 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
8603
8604         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
8605         isn't mounted.  Problem reported by Kir Kolyshkin.
8606
8607 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
8608
8609         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
8610         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
8611         Derek R. Price.
8612         * lib/regex.h (RE_DUP_MAX): Update comment to match current
8613         implementation.
8614
8615 2006-04-12  Eric Blake  <ebb9@byu.net>
8616
8617         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
8618         is now done automatically by the corresponding Autoconf macro.
8619
8620 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
8621
8622         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
8623         time_r.h.
8624
8625 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
8626
8627         Merge regex changes from libc, removing some of our
8628         POSIX-conformance changes that were rejected and redoing them in a
8629         less-intrusive way.
8630
8631         * lib/regcomp.c (re_compile_internal, init_dfa):
8632         Length arg is now size_t, not Idx.  All uses changed.
8633         (peek_token): Forward decl now says internal_function.
8634         (__re_error_msgid, __re_error_msgid_idx):
8635         Now static rather than extern with attribute_hidden.
8636         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
8637         For some reason libc prefers K&R style defns for external functions.
8638         (regerror) [!defined _LIBC]: Likewise.
8639         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
8640         (seek_collating_symbol_entry, lookup_collation_sequence_value):
8641         (build_range_exp, build_collating_symbol):
8642         Use K&R-style defn.
8643         (re_compile_fastmap): Use '\0' to memset, not 0.
8644         (utf8_sb_map): Make the calculations more obvious.
8645         (init_dfa, parse_bracket_exp, build_charclass_op):
8646         Call calloc and cast result, as glibc does.
8647         (init_word_char, fetch_token, peek_token, peek_token_bracket):
8648         (build_range_exp, build_collating_symbol):
8649         Now internal functions.
8650
8651         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
8652
8653         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
8654         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
8655         Don't depend on VMS; depend on __VMS instead, for POSIX
8656         namespace cleanness.
8657         (regoff_t): Define to ssize_t, not long int.
8658
8659         Remove the REG_ macros named below.  Instead, make the old names
8660         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
8661         __USE_GNU_REGEX.
8662         (REG_BACKSLASH_ESCAPE_IN_LISTS):
8663         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
8664         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
8665         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
8666         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
8667         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
8668         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
8669         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
8670         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
8671         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
8672         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
8673         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
8674         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
8675         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
8676         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
8677         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
8678         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
8679         (REG_NREGS):
8680         Remove.  All uses replaced by the old RE_* names.
8681         (RE_BACKSLASH_ESCAPE_IN_LISTS):
8682         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
8683         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
8684         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
8685         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
8686         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
8687         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
8688         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
8689         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
8690         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
8691         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
8692         Don't bother having these macros be independent of each others'
8693         values, since they no longer exist in the POSIX name space.
8694
8695         Rename the following member names back to their old names,
8696         unless !__USE_GNU_REGEX.  All uses changed back.
8697         (buffer): Renamed from re_buffer.
8698         (allocated): Renamed from re_allocated.
8699         (used): Renamed from re_used.
8700         (syntax): Renamed from re_syntax.
8701         (fastmap): Renamed from re_fastmap.
8702         (translate): Renamed from re_translate.
8703         (can_be_null): Renamed from re_can_be_null.
8704         (regs_allocated): Renamed from re_regs_allocated.
8705         (fastmap_accurate): Renamed from re_fastmap_accurate.
8706         (no_sub): Renamed from re_no_sub.
8707         (not_bol): Renamed from re_not_bol.
8708         (not_eol): Renamed from re_not_eol.
8709         (newline_anchor): Renamed from re_newline_anchor.
8710         (num_regs): Renamed from rm_num_regs.
8711         (start): Renamed from rm_start.
8712         (end): Renamed from rm_end.
8713
8714         (free_state): Move up a bit.
8715
8716         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
8717         #define to be empty.
8718         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
8719         when that is what is intended.
8720         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
8721         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
8722         (MAX): New macro.
8723         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
8724         All uses changed back to re_malloc, etc.  It's now the caller's
8725         responsibility to check for overflow; all callers changed.
8726         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
8727         (re_x2nrealloc): Remove.
8728         (free_state): Remove decl.
8729
8730         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
8731         (re_set_registers, re_exec):
8732         Use K&R-style defn.
8733
8734         2006-01-31  Roland McGrath  <roland@redhat.com>
8735
8736         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
8737         Reported by Mike Frysinger <vapier@gentoo.org>.
8738
8739         2006-01-15  Andreas Jaeger  <aj@suse.de>
8740
8741         [BZ #1950]
8742         * lib/regex_internal.c (re_string_reconstruct): Adjust for
8743         build_wcs_upper_buffer change.
8744         (build_wcs_upper_buffer): Change return type.
8745
8746         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
8747
8748         * lib/regex_internal.h: Include <stdint.h> if available.
8749
8750         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
8751
8752         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
8753
8754         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
8755
8756         * lib/regcomp.c: Adjust for changed secondary hash function.
8757
8758         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
8759
8760         * lib/regex.h: Pretty printing.
8761         Clean up namespace a bit.
8762
8763         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
8764
8765         * lib/regexec.c (update_cur_sifted_state, check_arrival,
8766         check_arrival_add_next_nodes): Avoid using uninitialized variable.
8767
8768         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
8769                     Ulrich Drepper  <drepper@redhat.com>
8770
8771         [BZ #1302]
8772         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
8773         changed.
8774         (bitset_word_t): Renamed from bitset_word.  All uses changed.
8775
8776         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
8777
8778         [BZ #281]
8779         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
8780         * lib/regcomp.c: Remove unnecessary uses of
8781         unsigned RE_TRANSLATE_TYPE.
8782         * lib/regex_internal.h: Likewise.
8783         * lib/regex_internal.c: Likewise.
8784         * lib/regexec.c: Likewise.
8785         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
8786
8787         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
8788
8789         * lib/regexec.c (find_recover_state): Remove unnecessary
8790         initialization.
8791         (transit_state_bkref): Make DFA a const pointer.
8792         (get_subexp): Likewise.
8793         (check_arrival): Likewise.
8794         (update_cur_sifted_state): Likewise.
8795         (re_search_internal): Likewise.
8796         (prune_impossible_nodes): Likewise.
8797         (acquire_init_state_context): Likewise.
8798         (proceed_next_node): Likewise.
8799         (set_regs): Likewise.
8800         (free_fail_stack_return): Likewise.
8801         (check_arrival_expand_ecl): Mark DFA parameter as const.
8802         (check_arrival_expand_ecl_sub): Likewise.
8803         (check_subexp_limits): Likewise.
8804         (sub_epsilon_src_nodes):  Likewise.
8805         (add_epsilon_src_nodes):  Likewise.
8806         (merge_state_array): Likewise.
8807         (update_regs): Likewise.
8808         (build_trtable): Likewise.
8809         (sift_states_backward): Mark MCTX parameter as const.
8810         (build_sifted_states): Likewise.
8811         (update_cur_sifted_state): Likewise.
8812         (sift_states_mkref): Likewise.
8813         (check_arrival_expand_ecl): Mark eclosure as const.
8814         (check_dst_limits_calc_pos_1): Likewise.
8815         * lib/regex_internal.h (re_match_context_t): Make dfa a const
8816         pointer.
8817
8818         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
8819
8820         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
8821         (transit_state_sb): Likewise.
8822         (transit_state_mb): Likewise.
8823         (sift_states_iter_mb): Likewise.
8824         (check_arrival_add_next_nodes): Likewise.
8825         (check_node_accept_bytes): Change first parameter to pointer-to-const.
8826         [_LIBC] (re_search_2_stub): Use mempcpy.
8827
8828         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
8829         mbrtowc for very simple UTF-8 case.
8830
8831         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
8832         a pointer-to-const.
8833         (re_acquire_state_context): Likewise.
8834         * lib/regex_internal.h: Adjust prototypes.
8835
8836         * lib/regex.c: Prevent using C++ compilers.
8837
8838         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
8839         (re_acquire_state_context): Likewise.
8840
8841 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
8842
8843         * modules/regex (Depends-on): Add ssize_t.
8844
8845 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
8846
8847         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
8848         translation table.
8849
8850 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
8851
8852         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
8853
8854 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
8855             Bruno Haible  <bruno@clisp.org>
8856
8857         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
8858         <sys/types.h> and <inttypes.h>.
8859
8860 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8861
8862         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
8863         `__error_t_defined', so argp.h will not typedef the former.
8864
8865 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
8866
8867         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
8868         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
8869         glibc names.  Even if glibc is changed to conform to POSIX, the
8870         traditional names will be available anyway, since regex depends on
8871         the extensions module.  Also, fix a longstanding typo in the
8872         implementation of Spencer ERE test #75 from grep 2.3.  Problems
8873         reported by Emanuele Giaquinta.  Also, change sense of cached
8874         variable, so that the message makes sense.
8875
8876 2006-03-24  Simon Josefsson  <jas@extundo.com>
8877
8878         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
8879         including some doc fixes.
8880         (base64_encode_alloc): Fix +1 bug on allocation failures.
8881
8882 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8883
8884         * lib/base64.c (base64_encode): Do not read past end of array with
8885         unsanitized input on systems with CHAR_BIT > 8.
8886
8887 2006-03-24  Eric Blake  <ebb9@byu.net>
8888
8889         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
8890
8891 2006-03-22  Karl Berry  <karl@gnu.org>
8892
8893         * config/srclist.txt (*setenv.[ch]): get from coreutils.
8894         * config/srclistvars.sh (COREUTILS): new var.
8895
8896 2006-03-17  Jim Meyering  <jim@meyering.net>
8897
8898         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
8899         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
8900
8901 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
8902
8903         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
8904         no longer needs it.  Instead, check that regoff_t is as least
8905         as wide as ptrdiff_t.
8906
8907         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
8908         so that our regex.h stays compatible with the installed regex.
8909         This is helpful for installers who configure --without-included-regex.
8910         Problem reported by Emanuele Giaquinta.
8911
8912 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
8913
8914         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
8915         Typedef to long int, not to off_, as POSIX will likely change
8916         in that direction.
8917
8918 2006-03-15  Eric Blake  <ebb9@byu.net>
8919
8920         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
8921
8922 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
8923
8924         * lib/argp-help.c (validate_uparams): Fix typo
8925         * lib/argp-parse.c (argp_default_options): Consistently begin help
8926         messages with a lowercase letter.
8927
8928 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
8929
8930         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
8931         overrun buffers and shouldn't be used (much as gets shouldn't be
8932         used).
8933         * lib/time_r.c (asctime_r, ctime_r): Likewise.
8934
8935 2006-03-08  Simon Josefsson  <jas@extundo.com>
8936
8937         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
8938         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8939
8940 2006-03-08  Simon Josefsson  <jas@extundo.com>
8941
8942         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
8943         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8944
8945 2006-03-08  Simon Josefsson  <jas@extundo.com>
8946
8947         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
8948         signal that configure disabled the device.
8949
8950 2006-03-08  Simon Josefsson  <jas@extundo.com>
8951
8952         * build-aux/maint.mk: Fix refresh-po, to handle no translated
8953         languages.
8954
8955 2006-03-07  Simon Josefsson  <jas@extundo.com>
8956
8957         * modules/getopt (Depends-on): Add unistd.
8958
8959         * modules/unistd: New file.
8960
8961 2006-03-07  Simon Josefsson  <jas@extundo.com>
8962
8963         * modules/gc-random: New file.
8964
8965 2006-03-07  Simon Josefsson  <jas@extundo.com>
8966
8967         * m4/unistd_h.m4: New file.
8968
8969 2006-03-07  Simon Josefsson  <jas@extundo.com>
8970
8971         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
8972         test to be side-effect free by storing the result in the cache
8973         variable gl_cv_lib_readline, and moving the assignment of
8974         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
8975         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8976
8977 2006-03-07  Simon Josefsson  <jas@extundo.com>
8978
8979         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
8980         error on missing devices (the functions will return an error).
8981
8982         * m4/gc.m4: Move random stuff to gc-random.m4
8983
8984 2006-03-07  Simon Josefsson  <jas@extundo.com>
8985
8986         * lib/unistd_.h: New file.
8987
8988 2006-03-07  Simon Josefsson  <jas@extundo.com>
8989
8990         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
8991
8992 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
8993
8994         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
8995         Problem reported by Juan Manuel Guerrero.
8996
8997 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
8998
8999         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
9000         the unistd module.
9001         * lib/getlogin_r.c: Likewise.
9002         * lib/getlogin_r.h: Likewise.
9003         * lib/glob.c: Likewise.
9004         * lib/pagealign_alloc.c: Likewise.
9005         * lib/unistd_.h: Remove; no longer needed.
9006
9007 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
9008
9009         * MODULES.html.sh (Support for systems lacking POSIX:2001):
9010         Add unistd.
9011         * modules/c-stack (Depends-on): Add unistd.
9012         * modules/getlogin_r: Likewise.
9013         * modules/glob: Likewise.
9014         * modules/pagealign_alloc: Likewise.
9015         * modules/unistd (Files): Remove lib/unistd_.h.
9016         (EXTRA_DIST): Remove.
9017         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
9018         need unistd_.h.
9019         (MOSTLYCLEANFILES): Remove unistd.h-t.
9020
9021 2006-03-03  Simon Josefsson  <jas@extundo.com>
9022
9023         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
9024
9025 2006-03-03  Simon Josefsson  <jas@extundo.com>
9026
9027         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
9028         libidn and bison.
9029
9030 2006-03-03  Simon Josefsson  <jas@extundo.com>
9031
9032         * build-aux/maint.mk: Add indent target.
9033
9034 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
9035
9036         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
9037         our replacement poll.h in any case, to avoid a differing
9038         declaration from a system header.  Seen on AIX.
9039
9040 2006-03-01  Simon Josefsson  <jas@extundo.com>
9041
9042         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
9043         <kasal@ucw.cz>.
9044
9045 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
9046
9047         * modules/gettime (Depends-on): Add extensions module.
9048         * modules/nanosleep (Depends-on): Likewise.
9049         * modules/settime (Depends-on): Likewise.
9050
9051 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
9052
9053         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
9054         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
9055         pedantically.
9056         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
9057         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
9058
9059         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
9060         not "==".  Reported by Ralf Wildenhues.
9061
9062 2006-03-01  Karl Berry  <karl@gnu.org>
9063
9064         * doc/Copyright/request-*: new files, synced from gnuorg.
9065
9066 2006-03-01  Karl Berry  <karl@gnu.org>
9067
9068         * config/srclist.txt (Copyright/*): new entries.
9069
9070 2006-02-28  Simon Josefsson  <jas@extundo.com>
9071
9072         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
9073
9074 2006-02-27  Simon Josefsson  <jas@extundo.com>
9075
9076         * lib/base64.h: Indent #define's.  From Jim Meyering
9077         <jim@meyering.net>.
9078
9079 2006-02-27  Jim Meyering  <jim@meyering.net>
9080
9081         Revert the change of 2006-02-24, so these files can continue
9082         to be sync'd from gettext.
9083         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
9084         of `config.h'.
9085
9086 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
9087
9088         * modules/intprops: New file.
9089         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
9090         Add intprops.
9091         * modules/getloadavg (Files): Remove lib/intprops.h.
9092         (Depends-on): Add intprops.
9093         * modules/human: Likewise.
9094         * modules/inttostr: Likewise.
9095         * modules/openat: Likewise.
9096         * modules/sig2str: Likewise.
9097         * modules/userspec: Likewise.
9098         * modules/utimecmp: Likewise.
9099         * modules/xnanosleep: Likewise.
9100         * modules/xstrtol: Likewise.
9101
9102 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
9103
9104         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
9105         * modules/lock-tests (TESTS): Use $(EXEEXT).
9106         * modules/tls-tests: Likewise.
9107         * modules/argp-tests: Likewise.
9108         (check_PROGRAMS): New var, replacing...
9109         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
9110
9111 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9112
9113         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
9114         `config.h'.
9115
9116 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
9117
9118         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
9119
9120 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9121
9122         Sync from coreutils.
9123         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
9124         gl_CHDIR_SAFER.
9125
9126 2006-02-22  Jim Meyering  <jim@meyering.net>
9127
9128         Sync from coreutils.
9129         * m4/chdir-safer.m4: New file.
9130
9131 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
9132
9133         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
9134         AT_FDCWD exceeds INT_MAX.
9135         * lib/openat.h (AT_FDCWD): Likewise.
9136
9137 2006-02-17  Eric Blake  <address@hidden>
9138
9139         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
9140
9141 2006-02-16  Simon Josefsson  <jas@extundo.com>
9142
9143         * modules/getaddrinfo (Depends-on): Add sys_socket.
9144
9145 2006-02-15  Simon Josefsson  <jas@extundo.com>
9146
9147         * build-aux/maint.mk: Add dsyntax-check rule.
9148
9149 2006-02-15  Eric Blake  <ebb9@byu.net>
9150
9151         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
9152         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
9153         'present but cannot compile' warnings on cygwin.
9154         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
9155         use ws2tcpip.h if sys/socket.h works.
9156         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
9157         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
9158
9159 2006-02-14  Simon Josefsson  <jas@extundo.com>
9160
9161         * modules/maintainer-makefile (Files): Rename.
9162
9163         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
9164         and (the local) Makefile.cfg to maint-cfg.mk.
9165
9166         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
9167         to the latter.
9168
9169         * modules/maintainer-makefile: New module.
9170
9171         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
9172         severaly stripped to make it possible to build it up from scratch
9173         with reliable tests.
9174
9175         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
9176         fixes to permit overriding the default actions when configure and
9177         makefile are not available.
9178
9179 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
9180
9181         Sync from coreutils.
9182         * modules/lstat (Depends-on): Don't depend on xalloc.
9183         (License): Change from GPL to LGPL, since this is now simply a
9184         replacement for a libc function.
9185
9186 2006-02-14  Jim Meyering  <jim@meyering.net>
9187
9188         Sync from coreutils.
9189
9190         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
9191         failure on deficient systems, and simplify gnulib lgpl dependencies.
9192         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
9193         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
9194
9195         * lib/xalloc-die.c: Remove unused definition of N_.
9196
9197 2006-02-14  Jim Meyering  <jim@meyering.net>
9198
9199         Sync from coreutils.
9200         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
9201         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
9202         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
9203         double-quote uses of that variable, to accommodate the rare case in
9204         which getmntent is available in none of the libraries checked.  This
9205         happens at least on FreeBSD 5.0.
9206
9207 2006-02-13  Simon Josefsson  <jas@extundo.com>
9208
9209         * gnulib-tool (Usage): Fix --import, from
9210         karl@freefriends.org (Karl Berry).
9211
9212 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
9213
9214         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
9215
9216 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
9217
9218         * lib/argp-namefrob.h: Restore changes accidentally lost during the
9219         "autoupdate" on 2005-12-12.
9220
9221 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
9222
9223         * modules/closeout (Depends-on): Remove atexit.
9224
9225 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
9226
9227         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
9228         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
9229
9230 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
9231
9232         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
9233         __EXTENSIONS__ if this causes compilation to fail.  Problem
9234         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
9235         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
9236
9237 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
9238
9239         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
9240         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
9241         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
9242         All uses changed.
9243
9244 2006-01-26  Simon Josefsson  <jas@extundo.com>
9245
9246         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
9247         prototype is visible on mingw32.
9248
9249         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
9250         for mingw32.
9251
9252         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
9253         mingw32).
9254
9255 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
9256
9257         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
9258         attempt to open for write; this always fails, at least on POSIX
9259         hosts.  This reinstates the 2006-01-09 change, which was
9260         inadvertently removed.
9261
9262 2006-01-26  Bruno Haible  <bruno@clisp.org>
9263
9264         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
9265         Reported by Paul Eggert.
9266
9267 2006-01-26  Bruno Haible  <bruno@clisp.org>
9268             Paul Eggert  <eggert@cs.ucla.edu>
9269
9270         * lib/stdbool_.h (_Bool)
9271         [(! (defined __cplusplus || defined __BEOS__)
9272           && !defined __GNUC__
9273           && !(defined __HP_cc || defined __xlc__
9274                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
9275                || defined __sgi))]:
9276         #define to signed char in these cases too; this simplifies
9277         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
9278         etc., separately) and makes it more conservative.
9279
9280 2006-01-25  Simon Josefsson  <jas@extundo.com>
9281
9282         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
9283         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
9284         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
9285
9286 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
9287
9288         * lib/argp-namefrob.h: Bugfix. Remove stray #
9289
9290 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
9291
9292         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
9293         so that we test the test.
9294         Check for yet another HP-UX cc bug involving *bool |= bool.
9295
9296 2006-01-25  Karl Berry  <karl@gnu.org>
9297
9298         * config/srclist.txt (vasnprintf.c): sync lost.
9299
9300 2006-01-25  Jim Meyering  <jim@meyering.net>
9301
9302         Sync from the stable (b5) branch of coreutils:
9303
9304         * lib/fts.c (fts_children): Don't let close() clobber errno from
9305         failed fchdir().
9306
9307         * lib/fts.c (fts_stat): When following a symlink-to-directory,
9308         don't necessarily interpret stat-fails+lstat-succeeds as indicating
9309         a dangling symlink.  That can also happen at least for ELOOP.
9310         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
9311         FYI, this bug predates the inclusion of fts.c in coreutils.
9312
9313         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
9314         in their own block, so pre-c99 compilers don't object.
9315
9316         Avoid the double-free (first in fts_read, second in fts_close) that
9317         would occur when an `active' directory is made inaccessible (e.g.,
9318         via chmod a-x) during a traversal.
9319         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
9320         before returning.  Reproduce this failure by
9321         mkdir -p a/b; cd a; chmod a-x . b
9322         Reported by Stavros Passas.
9323
9324 2006-01-25  Jim Meyering  <jim@meyering.net>
9325
9326         * lib/fileblocks.c: Remove more useless parentheses.
9327         * lib/readutmp.h: Likewise.
9328
9329 2006-01-25  Bruno Haible  <bruno@clisp.org>
9330
9331         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
9332         warnings.
9333         Reported by Paul Eggert.
9334
9335 2006-01-25  Bruno Haible  <bruno@clisp.org>
9336
9337         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
9338         rid of a trap command. For Solaris sh.
9339         Reported by Mark D. Baushke <mdb@gnu.org>.
9340
9341 2006-01-24  Simon Josefsson  <jas@extundo.com>
9342
9343         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
9344         Bruno.
9345
9346 2006-01-24  Karl Berry  <karl@gnu.org>
9347
9348         * config/srclist.txt (argp-namefrob.h): sync lost.
9349
9350 2006-01-24  Jim Meyering  <jim@meyering.net>
9351
9352         * modules/openat (Files): Add lib/intprops.h.
9353         From Mark D. Baushke.
9354
9355 2006-01-24  Jim Meyering  <jim@meyering.net>
9356
9357         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
9358         Reported by Mark D. Baushke.
9359
9360 2006-01-24  Jim Meyering  <jim@meyering.net>
9361
9362         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
9363
9364 2006-01-24  Bruno Haible  <bruno@clisp.org>
9365
9366         * modules/strnlen (Maintainer): Change from glibc to all.
9367
9368 2006-01-24  Bruno Haible  <bruno@clisp.org>
9369
9370         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
9371         Patch by Paul Eggert.
9372
9373 2006-01-24  Bruno Haible  <bruno@clisp.org>
9374
9375         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
9376         already has it.
9377         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
9378         2005-11-26.
9379
9380         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
9381         'signed char' to avoid problems with the built-in _Bool type.
9382         Reported by Paul Eggert on 2005-11-26.
9383
9384 2006-01-24  Bruno Haible  <bruno@clisp.org>
9385
9386         * gnulib-tool (func_import): Avoid constructing complicated sed
9387         expressions inside backquote.
9388         Report and solution by Mark D. Baushke <mdb@gnu.org>.
9389
9390 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
9391
9392         These changes imported from libc.
9393         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
9394         test and two separate function calls.
9395         * lib/strndup.c (__strndup): Add libc_hidden_def.
9396
9397 2006-01-23  Simon Josefsson  <jas@extundo.com>
9398
9399         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
9400         Remove the test_*_SOURCES variable: automake infers it by default.
9401         * modules/tls-tests: Likewise.
9402
9403 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
9404
9405         Work around porting bugs reported by Dieter in
9406         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
9407         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
9408         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
9409         Include "getopt.h" first, to check interface.
9410         (getenv): Declare only if defined HAVE_DECL_GETENV &&
9411         !HAVE_DECL_GETENV.
9412         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
9413         (__strndup): Revert to K&R-style function dfns, the glibc style.
9414         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
9415         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
9416         Include strnlen.h first, to get prototype properly.
9417         (strnlen): Renamed from __strnlen.
9418         Remove weak alias.
9419
9420 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
9421
9422         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
9423
9424 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
9425
9426         * config/srclist.txt: Adjust to reflect glibc reorganization.
9427         This affects only comments.
9428
9429 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
9430
9431          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
9432          Reported by Bruce Korb <bkorb@gnu.org>.
9433
9434 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
9435
9436         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
9437         to pacify gcc -Wswitch-default.
9438
9439 2006-01-22  Bruno Haible  <bruno@clisp.org>
9440
9441         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
9442         temporary buffer for sprintf, take into account the precision also
9443         for 'd', 'i', 'u', 'o', 'x', 'X'.
9444
9445 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
9446
9447         * modules/argp-tests: New module
9448         * tests/test-argp.c: New file
9449         * tests/test-argp-2.sh: New file
9450
9451 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
9452
9453         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
9454         (__argp_base_name): Removed
9455         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
9456         typo.
9457         (__argp_base_name): Provide macro definition or extern declaration
9458         depending on the configuration
9459
9460 2006-01-20  Simon Josefsson  <jas@extundo.com>
9461
9462         * modules/inet_ntop (Depends-on): Depend on sys_socket.
9463
9464 2006-01-20  Simon Josefsson  <jas@extundo.com>
9465
9466         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
9467
9468 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
9469
9470         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
9471         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
9472         Suggested by Bruno Haible.
9473
9474 2006-01-20  Karl Berry  <karl@gnu.org>
9475
9476         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
9477         until changes propagate, I guess.
9478
9479 2006-01-19  Simon Josefsson  <jas@extundo.com>
9480
9481         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
9482
9483 2006-01-19  Simon Josefsson  <jas@extundo.com>
9484
9485         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
9486
9487 2006-01-19  Simon Josefsson  <jas@extundo.com>
9488
9489         * gnulib-tool: Set check_PROGRAMS.
9490
9491         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
9492         modules/des-tests, modules/gc-arcfour-tests,
9493         modules/gc-arctwo-tests, modules/gc-des-tests,
9494         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
9495         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
9496         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
9497         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
9498         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
9499         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
9500         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
9501         test_*_SOURCES.
9502
9503 2006-01-18  Simon Josefsson  <jas@extundo.com>
9504
9505         * modules/socklen (Depends-on): Depend on sys_socket.
9506
9507 2006-01-18  Simon Josefsson  <jas@extundo.com>
9508
9509         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
9510         modules/des-tests, modules/gc-arcfour-tests,
9511         modules/gc-arctwo-tests, modules/gc-des-tests,
9512         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
9513         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
9514         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
9515         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
9516         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
9517         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
9518         $(EXEEXT) to automake TESTS variable, for mingw32.
9519
9520 2006-01-17  Simon Josefsson  <jas@extundo.com>
9521
9522         * modules/socklen (Include): Need sys/socket.h.
9523
9524 2006-01-17  Bruno Haible  <bruno@clisp.org>
9525
9526         * modules/ssize_t (Include): Add <sys/types.h>.
9527
9528 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
9529
9530         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
9531         it's not portable and it doesn't work with cross-compiles.
9532         Problem reported by Bruno Haible.  Fix missing-$ typo in
9533         'test "gl_cv_ignore_unused_libraries" ...' that prevented
9534         -zignore from being used with Sun's C compiler.
9535
9536 2006-01-12  Simon Josefsson  <jas@extundo.com>
9537
9538         * lib/base64.c: Fix warning, reported by Bruno Haible
9539         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
9540
9541 2006-01-12  Bruno Haible  <bruno@clisp.org>
9542
9543         * modules/ldd: New file.
9544         * build-aux/ldd.sh.in: New file.
9545         * MODULES.html.sh (Support for building libraries and executables): Add
9546         ldd.
9547
9548 2006-01-12  Bruno Haible  <bruno@clisp.org>
9549
9550         * m4/ldd.m4: New file.
9551
9552 2006-01-12  Bruno Haible  <bruno@clisp.org>
9553
9554         * gnulib-tool (func_import, func_create_testdir): Don't go into an
9555         endless loop while replacing $auxdir with build-aux.
9556
9557 2006-01-11  Simon Josefsson  <jas@extundo.com>
9558
9559         * lib/stdint_.h (SIZE_MAX): Add missing (.
9560
9561 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
9562
9563         Sync from coreutils.
9564         * lib/md5.c: Fix commentary typos.
9565         (alignof, UNALIGNED_P): No need for a GCC-specific version.
9566         * lib/md5.h (__attribute__): Remove; unused.
9567         * lib/sha1.c: Fix commentary to match md5 better.
9568         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
9569         so that we don't need to worry about alignment.  All uses changed.
9570         This merges the 2005-10-28 md5 change into sha1.
9571
9572 2006-01-11  Jim Meyering  <jim@meyering.net>
9573
9574         Sync from coreutils.
9575         * lib/md5.c (OP): Fix spacing.
9576
9577 2006-01-11  Bruno Haible  <bruno@clisp.org>
9578
9579         Ensure automatic ordering between gl_LOCK and gl_ARGP.
9580         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
9581         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
9582
9583 2006-01-11  Bruno Haible  <bruno@clisp.org>
9584
9585         Ensure automatic ordering between gl_LOCK and gl_ARGP.
9586         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
9587         the "early" section as well.
9588
9589 2006-01-11  Bruno Haible  <bruno@clisp.org>
9590
9591         Avoid "ar: no archive members specified" error on MacOS X.
9592         * gnulib-tool (func_modules_add_dummy): New function.
9593         (func_import, func_create_testdir): Invoke it.
9594
9595 2006-01-11  Bruno Haible  <bruno@clisp.org>
9596
9597         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
9598         with $auxdir in AC_CONFIG_FILES statements.
9599
9600 2006-01-11  Bruno Haible  <bruno@clisp.org>
9601
9602         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
9603         Initialize also noinst_HEADERS to empty.
9604
9605 2006-01-11  Bruno Haible  <bruno@clisp.org>
9606
9607         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
9608         variables.
9609         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
9610         autoreconf.
9611
9612 2006-01-11  Bruno Haible  <bruno@clisp.org>
9613
9614         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
9615         overridable by the user.
9616         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9617
9618 2006-01-10  Simon Josefsson  <jas@extundo.com>
9619
9620         * modules/sys_socket: New file.
9621
9622 2006-01-10  Simon Josefsson  <jas@extundo.com>
9623
9624         * m4/sys_socket_h.m4: New file.
9625
9626 2006-01-10  Simon Josefsson  <jas@extundo.com>
9627
9628         * lib/socket_.h: New file.
9629
9630 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
9631
9632         * modules/readutmp (Maintainer): Add myself.
9633
9634 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
9635
9636         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
9637         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
9638         People who are still concerned with buggy memcmp implementations
9639         can invoke gl_FUNC_MEMCMP themselves.
9640
9641 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
9642
9643         * lib/regex_internal.h (BITSET_WORD_BITS):
9644         Work around a bug in 64-bit PGC (before version 6.1-2), where the
9645         preprocessor mishandles large unsigned values as if they were signed.
9646         Problem reported by Claudio Fontana in
9647         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
9648
9649 2006-01-10  Jim Meyering  <jim@meyering.net>
9650
9651         Avoid the double-free (first in fts_read, second in fts_close) that
9652         would occur when an `active' directory is made inaccessible (e.g.,
9653         via chmod a-x) during a traversal.
9654         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
9655         before returning.  Reproduce this failure by
9656         mkdir -p a/b; cd a; chmod a-x . b
9657         Reported by Stavros Passas.
9658
9659         Sync from coreutils.
9660         * lib/sha1.c: Tweak grammar in a comment.
9661
9662 2006-01-10  Jim Meyering  <jim@meyering.net>
9663
9664         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
9665         Patch by Joerg Sonnenberger.
9666
9667 2006-01-10  Bruno Haible  <bruno@clisp.org>
9668
9669         * modules/readutmp: Depend on module free.
9670         * modules/strtok_r: Depend on module restrict.
9671
9672 2006-01-10  Bruno Haible  <bruno@clisp.org>
9673
9674         * modules/gettext (configure.ac): Add an invocation of
9675         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
9676
9677 2006-01-10  Bruno Haible  <bruno@clisp.org>
9678
9679         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
9680         Reported by Werner Lemberg <wl@gnu.org>.
9681
9682 2006-01-10  Bruno Haible  <bruno@clisp.org>
9683
9684         * lib/localcharset.c: Update from GNU gettext.
9685
9686 2006-01-10  Bruno Haible  <bruno@clisp.org>
9687
9688         * lib/argp.h (__const): Remove macro. Use const instead.
9689         * lib/argp-fmtstream.h (__const): Likewise.
9690         * lib/glob_.h (__const): Remove macro.
9691         * lib/glob-libc.h: Use const instead of __const.
9692
9693 2006-01-10  Bruno Haible  <bruno@clisp.org>
9694
9695         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
9696         variable.
9697         Needed to avoid an automake error regarding the 'gettext' module.
9698
9699 2006-01-09  Simon Josefsson  <jas@extundo.com>
9700
9701         * modules/inet_ntop (Depends-on): Add restrict.
9702
9703 2006-01-09  Simon Josefsson  <jas@extundo.com>
9704
9705         * modules/gc-rijndael-tests (License): Put under LGPL.
9706
9707         * modules/gc-des-tests (License): Likewise.
9708
9709         * modules/gc-arcfour-tests (License): Likewise.
9710
9711         * modules/gc-arctwo-tests (License): Likewise.
9712
9713         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
9714
9715         * modules/gc-hmac-sha1-tests (Files): Likewise.
9716
9717         * modules/gc-hmac-md5-tests (License): Likewise.
9718
9719         * modules/gc-sha1-tests (License): Likewise.
9720
9721         * modules/gc-md5-tests (License): Likewise.
9722
9723         * modules/gc-md4-tests (License): Likewise.
9724
9725         * modules/gc-md2-tests (License): Likewise.
9726
9727         * modules/gc-tests (License): Likewise.
9728
9729         * modules/des-tests (License): Likewise.
9730
9731         * modules/md4-tests (License): Likewise.
9732
9733         * modules/md2-tests (License): Likewise.
9734
9735 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
9736
9737         Sync from coreutils:
9738
9739         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
9740         * modules/lib-ignore: New file.
9741         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
9742         chdir-safer.m4, lchmod.m4.
9743         * modules/openat: Add mkdirat.c, openat-priv.h.
9744
9745 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
9746
9747         Sync from coreutils.
9748         * m4/lib-ignore.m4: New file.
9749         * m4/lchmod.m4: New file.
9750
9751 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
9752
9753         Sync from coreutils.
9754         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
9755         for write access: POSIX says that must fail.
9756         * lib/fts.c (diropen): Likewise.
9757         * lib/save-cwd.c (save_cwd): Likewise.
9758         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
9759         well, for minor improvements on hosts that lack O_DIRECTORY.
9760         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
9761         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
9762         Fall back on chown if open failed with EACCES.
9763
9764         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
9765         Report an error at compile-time if only a 1-second nominal clock
9766         resolution is found.
9767
9768         * lib/lchmod.h: New file.
9769         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
9770         (make_dir_parents): Use lchown rather than chown, and
9771         lchmod rather than chmod.
9772
9773         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
9774         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
9775         "proc" reported by n0dalus.
9776
9777         * lib/mountlist.c: Include <limits.h>.
9778         (dev_from_mount_options)
9779         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
9780         New function.  It no longer assumes "dev=" has the System V meaning
9781         on Linux (since it doesn't).  It also parses "dev=" more carefully.
9782         (read_file_system_list)
9783         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
9784         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
9785         dev= in that case.
9786
9787         * lib/posixtm.h (PDS_PRE_2000): New macro.
9788         * lib/posixtm.c (year): Arg is now syntax_bits rather than
9789         allow_century.  All usages changed.  Reject dates outside the range
9790         1969-1999 if PDS_PRE_2000 is used.
9791
9792 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
9793
9794         Sync from coreutils.
9795         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
9796         (Time of day items): Mention the possibility of leap seconds.
9797         Problem reported by Dr. David Alan Gilbert.
9798
9799 2006-01-09  Jim Meyering  <jim@meyering.net>
9800
9801         Sync from coreutils.
9802
9803         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
9804
9805         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
9806
9807         * lib/modechange.c (mode_compile): Reject an invalid mode string
9808         that starts with an octal digit.  From Andreas Gruenbacher.
9809
9810         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
9811         and dup to open_safer and dup_safer, respectively.
9812         (openat_permissive): Fix typo in comment.
9813
9814         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
9815         "gettext.h"; either no longer needed or are guaranteed by openat.h.
9816         (_): Remove; no longer needed.
9817         (openat): Renamed from rpl_openat; no need for rpl_openat
9818         since openat.h renames openat for us.
9819         Replace most of the body with a call to openat_permissive,
9820         to avoid duplicate code.
9821         Port to (probably hypothetical) environments were mode_t is
9822         wider than int.
9823         (openat_permissive): Require mode arg, so that we can check
9824         types better.  Put it just after flags.  Change cwd failure
9825         indicator from pointer-to-bool to pointer-to-errno-value.
9826         All callers changed.
9827         Invoke openat_save_fail and/or openat_restore_fail if
9828         cwd_errno is null, so that openat can call us.
9829         (openat_permissive, fdopendir, fstatat, unlinkat):
9830         Simplify errno handling to avoid some duplicate code,
9831         as it's OK to set errno on success.
9832         * lib/openat.h: Revamp code so that function macros depend on
9833         __OPENAT_PREFIX only, not also on AT_FDCWD.
9834         (openat_ro): Remove.  Caller changed to use openat_permissive.
9835         (openat_permissive): Now a macro, if not a function.
9836         (openat_restore_fail, openat_save_fail): Now always functions,
9837         since mkdirat needs them even if __OPENAT_PREFIX is defined.
9838
9839         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
9840         and openat.c.
9841         * lib/mkdirat.c: Include openat-priv.h.
9842         Remove definitions of macros defined therein.
9843         * lib/openat.c: Likewise.
9844
9845         * lib/mkdirat.c (mkdirat): New file and function.
9846         * lib/openat.h (mkdirat): Declare.
9847
9848         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
9849
9850         * lib/openat.h (openat_permissive): Declare.
9851         (openat_ro): Define.
9852
9853         * lib/openat.c (EXPECTED_ERRNO): New macro.
9854         (openat_permissive): New function -- used in remove.c rewrite.
9855         (all functions): Set errno just before returning, only if there
9856         was an actual failure.
9857         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
9858
9859         Emulate openat-family functions using Linux's procfs, if possible.
9860         Idea and some code based on Ulrich Drepper's glibc changes.
9861
9862         * lib/openat.c: (BUILD_PROC_NAME): New macro.
9863         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
9864         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
9865         before falling back on save_cwd and restore_cwd.
9866         (fdopendir, fstatat, unlinkat): Likewise.
9867
9868         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
9869         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
9870
9871         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
9872         as second argument to va_arg.  Otherwise, some versions of gcc
9873         warn that `if this code is reached, the program will abort'.
9874
9875 2006-01-09  Jim Meyering  <jim@meyering.net>
9876
9877         Sync from coreutils.
9878         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
9879         Require openat-priv.h.
9880
9881 2006-01-09  Bruno Haible  <bruno@clisp.org>
9882
9883         * modules/strnlen (Include): Use strnlen.h.
9884
9885 2006-01-09  Bruno Haible  <bruno@clisp.org>
9886
9887         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
9888
9889 2006-01-09  Bruno Haible  <bruno@clisp.org>
9890
9891         * lib/sysexit_.h (EX_OK): New macro.
9892         Suggested by Martin Lambers <marlam@marlam.de>.
9893
9894 2006-01-09  Bruno Haible  <bruno@clisp.org>
9895
9896         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
9897         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
9898
9899 2006-01-09  Bruno Haible  <bruno@clisp.org>
9900
9901         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
9902         numbers.
9903
9904 2006-01-09  Bruno Haible  <bruno@clisp.org>
9905
9906         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
9907         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
9908         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
9909         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
9910
9911 2006-01-09  Bruno Haible  <bruno@clisp.org>
9912
9913         * build-aux/javacomp.sh.in: New file, moved from lib/.
9914         * modules/javacomp-script (Files): Update.
9915         (configure.ac): Add AC_CONFIG_FILES invocation.
9916         (EXTRA_DIST): Remove variable.
9917
9918         * build-aux/javaexec.sh.in: New file, moved from lib/.
9919         * modules/javaexec (Files): Update.
9920         (configure.ac): Add AC_CONFIG_FILES invocation.
9921         (EXTRA_DIST): Remove javaexec.sh.in.
9922
9923         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
9924         * modules/csharpcomp-script (Files): Update.
9925         (configure.ac): Add AC_CONFIG_FILES invocation.
9926         (EXTRA_DIST): Remove variable.
9927
9928         * build-aux/csharpexec.sh.in: New file, moved from lib/.
9929         * modules/csharpexec (Files): Update.
9930         (configure.ac): Add AC_CONFIG_FILES invocation.
9931         (EXTRA_DIST): Remove csharpexec.sh.in.
9932
9933 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
9934
9935         Sync from coreutils.
9936
9937         Add POSIX ACL support
9938         * lib/acl.h (copy_acl, set_acl): Add declarations.
9939         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
9940         systems other than Linux.
9941         (chmod_or_fchmod): New function: use fchmod when possible,
9942         and chmod otherwise.
9943         (file_has_acl): Add a POSIX ACL implementation, with a
9944         Linux-specific subcase.
9945         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
9946         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
9947         acls are unsupported.
9948         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
9949         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
9950         are unsupported.
9951
9952 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
9953
9954         Sync from coreutils.
9955         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
9956
9957 2006-01-07  Bruno Haible  <bruno@clisp.org>
9958
9959         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
9960         gl_EARLY.
9961
9962 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
9963
9964         * lib/strftime.c (tzname): Don't declare if it is already #defined.
9965         Problem reported for Mingw by Mark Junker.
9966
9967 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
9968
9969         * README: Gnulib normally doesn't generate a tarball.
9970
9971 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
9972
9973         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
9974         long int, not int, for nanosecond counts, so that people who are
9975         used to POSIX struct timespec won't be surprised.  Reported by Jim
9976         Meyering.
9977
9978 2005-12-28  Bruno Haible  <bruno@clisp.org>
9979
9980         * build-aux/config.rpath: Update from GNU gettext.
9981
9982 2005-12-16  Jim Meyering  <jim@meyering.net>
9983
9984         * modules/fprintftime: New module.
9985         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
9986
9987 2005-12-16  Jim Meyering  <jim@meyering.net>
9988
9989         * m4/fprintftime.m4: New file.
9990
9991 2005-12-16  Jim Meyering  <jim@meyering.net>
9992
9993         * lib/fprintftime.c, lib/fprintftime.h: New files.
9994
9995 2005-12-15  Simon Josefsson  <jas@extundo.com>
9996
9997         * modules/socklen (configure.ac): Fix M4 macro name, to align with
9998         new m4/socklen.m4.
9999
10000 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
10001
10002         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
10003         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
10004
10005 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
10006
10007         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
10008         * lib/argp-help.c (fill_in_uparams): Check if the constructed
10009         struct uparams is valid. Fall back to the default values if it is
10010         not.
10011
10012 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
10013
10014         * modules/argp (Files): Add argp-pin.c
10015         (Depends-on): dirname
10016         (lib_SOURCES): Add argp-pin.c
10017
10018 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
10019
10020         * m4/argp.m4:  Check if program_invocation_name and
10021         program_invocation_short_name are declared and define appropriate
10022         macros if they are not.
10023
10024 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
10025
10026         * lib/argp-help.c (__argp_base_name): New function
10027         (__argp_short_program_name): Rewrite using __argp_base_name
10028         * lib/argp-namefrob.h: Define program_invocation_name and
10029         program_invocation_short_name if requested
10030         (__argp_base_name): Add prototype
10031         * lib/argp-parse.c (argp_def): Use gettext wrappers
10032         (argp_default_parser): Use __argp_base_name
10033         * lib/argp-pin.c: New file. Defines program_invocation_name and
10034         program_invocation_short_name on systems that lack them.
10035
10036 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
10037
10038         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
10039         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
10040         porting problem reported by Georg Schwarz in
10041         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
10042
10043 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
10044
10045         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
10046         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
10047         porting problem reported by Georg Schwarz in
10048         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
10049
10050 2005-12-05  Bruno Haible  <bruno@clisp.org>
10051
10052         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
10053         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
10054         Reported by Mark Junker <mjscod@gmx.de>.
10055
10056 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
10057
10058         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
10059         Use implementation from Albert Chin, with some
10060         comments/corrections by Stepan Kasal and myself.
10061
10062 2005-12-02  Bruno Haible  <bruno@clisp.org>
10063
10064         * gnulib-tool (func_import): Accept GPLed build tool modules when
10065         --lgpl is given.
10066         * modules/csharpcomp-script: New file.
10067         * modules/csharpcomp: Depend on it.
10068         * modules/javacomp-script: New file.
10069         * modules/javacomp: Depend on it.
10070         Suggested by Simon Josefsson.
10071
10072 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
10073
10074         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
10075         statement, to work around an HP-UX 10.20 compiler bug reported by
10076         Peter O'Gorman.
10077
10078 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
10079
10080         * modules/savedir (Depends-on): Add openat.
10081
10082 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
10083
10084         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
10085         (uintmax_t) [defined uintmax_t]: Do not declare.
10086         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
10087         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
10088         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
10089         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
10090         sake of portability to weird hosts that C allows (though we don't
10091         know of any practical examples).
10092
10093         * lib/savedir.h (fdsavedir): New decl.
10094         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
10095         contains most of the former guts of savedir.
10096         (savedir): Use savedirstream.
10097         Include "openat.h".
10098
10099 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
10100
10101         * modules/obstack (Files): Add m4/ulonglong.m4.
10102         Problem reported by Davide Angelocola.
10103
10104 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
10105
10106         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
10107         coreutils no longer futzes with rounding modes.
10108
10109 2005-11-14  Jim Meyering  <jim@meyering.net>
10110
10111         * lib/mkstemp-safer.c: Include <config.h>, required for possible
10112         replacement of mkstemp.
10113
10114 2005-11-10  Simon Josefsson  <jas@extundo.com>
10115
10116         * lib/readline.c: Remove EOL.
10117
10118 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
10119
10120         * modules/gethrxtime (Depends-on): Add gettime.
10121
10122 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
10123
10124         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
10125         or gettimeofday; no longer needed.
10126
10127 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
10128
10129         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
10130         time business.
10131         (gethrxtime) [! (HAVE_NANOUPTIME
10132         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
10133         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
10134         our own approximation.
10135
10136 2005-11-08  Eric Blake  <ebb9@byu.net>
10137
10138         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
10139
10140 2005-11-08  Eric Blake  <ebb9@byu.net>
10141
10142         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
10143
10144 2005-11-04  Bruno Haible  <bruno@clisp.org>
10145
10146         * gnulib-tool: Implement --update mode.
10147
10148 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
10149
10150         Fix porting problem reported by Theodoros V. Kalamatianos.
10151         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
10152         Don't assume that futimes failing means we must fail.
10153
10154 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
10155
10156         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
10157         variables to suggest the intended function of the PATH_MAX check.
10158
10159 2005-10-30  Kean Johnston  <jkj@sco.com>
10160
10161         Trivial changes to support SCO systems.
10162         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
10163         as PATH_MAX.
10164         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
10165         where __ptr is null when no I/O is pending.
10166
10167 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
10168
10169         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
10170         leave errno alone.  Problem reported by Dmitry V. Levin.
10171
10172 2005-10-28  Simon Josefsson  <jas@extundo.com>
10173
10174         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
10175         Test more.
10176
10177         * tests/test-gc-md2.c, tests/test-md2.c: New files.
10178
10179         * modules/md2, modules/md2-tests: New files.
10180
10181 2005-10-28  Simon Josefsson  <jas@extundo.com>
10182
10183         * m4/inet_ntop.m4: More tests.
10184
10185         * m4/gc-md2.m4, md2.m4: New file.
10186
10187 2005-10-28  Simon Josefsson  <jas@extundo.com>
10188
10189         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
10190         "restrict" keywords, as per POSIX.  Protect the function
10191         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
10192         Don't use K&R prototypes.  Check the sprintf return values.
10193         Re-define EAFNOSUPPORT if not present.  Indent.
10194
10195         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
10196         suggested by Bruno Haible <bruno@clisp.org>.
10197
10198         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
10199
10200         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
10201
10202         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
10203         libgcrypt).
10204
10205         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
10206
10207         * lib/md2.h, lib/md2.c: New files.
10208
10209 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
10210
10211         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
10212         errno alone.  Problem reported by Frederic Jolliton.
10213
10214 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
10215
10216         * modules/verify (License): Change from GPL to LGPL.  This is a
10217         tiny module and there are apparently near-equivalents that are
10218         under the BSD license.
10219
10220 2005-10-24  Simon Josefsson  <jas@extundo.com>
10221
10222         * modules/sha1: Relicense to LGPL.
10223
10224 2005-10-24  Simon Josefsson  <jas@extundo.com>
10225
10226         * lib/md4.h: Shrink buffer size, now that we changed the type.
10227
10228 2005-10-23  Simon Josefsson  <jas@extundo.com>
10229
10230         * gnulib-tool (func_import): Fix --tests-base.
10231
10232 2005-10-22  Simon Josefsson  <jas@extundo.com>
10233
10234         * modules/arcfour (Depends-on): Need stdint.
10235
10236 2005-10-22  Simon Josefsson  <jas@extundo.com>
10237
10238         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
10239         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
10240
10241 2005-10-22  Simon Josefsson  <jas@extundo.com>
10242
10243         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
10244         suggested by Bruno Haible <bruno@clisp.org>.
10245
10246 2005-10-22  Simon Josefsson  <jas@extundo.com>
10247
10248         * lib/crc.h: Include stddef.h, for size_t.
10249
10250 2005-10-22  Simon Josefsson  <jas@extundo.com>
10251
10252         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
10253         arcfour_context struct (simplify test vector testing in GNU
10254         Shishi).
10255
10256 2005-10-21  Simon Josefsson  <jas@extundo.com>
10257
10258         * modules/des, modules/des-tests: New files.
10259
10260         * modules/gc-des, modules/gc-des-tests: New files.
10261
10262         * tests/test-des.c, tests/test-gc-des.c: New file.
10263
10264 2005-10-21  Simon Josefsson  <jas@extundo.com>
10265
10266         * modules/arctwo, modules/arctwo-tests: New files.
10267
10268         * tests/test-arctwo.c: New file.
10269
10270         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
10271
10272         * tests/test-gc-arctwo.c: New file.
10273
10274 2005-10-21  Simon Josefsson  <jas@extundo.com>
10275
10276         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
10277         Bruno Haible <bruno@clisp.org>.
10278
10279         * m4/gc-des.m4: New file.
10280
10281 2005-10-21  Simon Josefsson  <jas@extundo.com>
10282
10283         * m4/arctwo.m4: New file.
10284
10285         * m4/gc-arctwo.m4: New file.
10286
10287 2005-10-21  Simon Josefsson  <jas@extundo.com>
10288
10289         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
10290         block.
10291
10292 2005-10-21  Simon Josefsson  <jas@extundo.com>
10293
10294         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
10295         <bruno@clisp.org>.
10296
10297         * lib/hmac-sha1.c (hmac_sha1): Likewise.
10298
10299         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
10300         Bruno Haible <bruno@clisp.org>.
10301
10302         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
10303         <bruno@clisp.org>.
10304
10305 2005-10-21  Simon Josefsson  <jas@extundo.com>
10306
10307         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
10308
10309 2005-10-21  Simon Josefsson  <jas@extundo.com>
10310
10311         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
10312
10313 2005-10-21  Simon Josefsson  <jas@extundo.com>
10314
10315         * lib/des.h, lib/des.c: New files.
10316
10317         * lib/gc-gnulib.c: Support DES.c
10318
10319 2005-10-21  Simon Josefsson  <jas@extundo.com>
10320
10321         * lib/arctwo.h, lib/arctwo.c: New files.
10322
10323         * lib/gc-gnulib.c: Support ARCTWO.
10324
10325 2005-10-21  Simon Josefsson  <jas@extundo.com>
10326
10327         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
10328         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10329
10330 2005-10-21  Simon Josefsson  <jas@extundo.com>
10331
10332         * gnulib-tool (func_import, func_create_testdir): Define automake
10333         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
10334         Makefile.am snippet),
10335         suggested by Bruno Haible <bruno@clisp.org>.
10336
10337         * modules/gc (Makefile.am): Use it.
10338
10339 2005-10-21  Bruno Haible  <bruno@clisp.org>
10340
10341         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
10342         patch.
10343
10344 2005-10-19  Simon Josefsson  <jas@extundo.com>
10345
10346         * tests/test-gc-rijndael.c: New file.
10347
10348         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
10349
10350 2005-10-19  Simon Josefsson  <jas@extundo.com>
10351
10352         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
10353         interface too.
10354
10355 2005-10-19  Simon Josefsson  <jas@extundo.com>
10356
10357         * tests/test-gc-arcfour.c: New file.
10358
10359         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
10360
10361 2005-10-19  Simon Josefsson  <jas@extundo.com>
10362
10363         * modules/gc-md4, modules/gc-md4-tests: New file.
10364
10365         * tests/test-gc-md4.c: New file.
10366
10367 2005-10-19  Simon Josefsson  <jas@extundo.com>
10368
10369         * m4/gc-md4.m4: New file.
10370
10371 2005-10-19  Simon Josefsson  <jas@extundo.com>
10372
10373         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
10374         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
10375         <kasal@ucw.cz>.
10376
10377 2005-10-19  Simon Josefsson  <jas@extundo.com>
10378
10379         * m4/gc-arcfour.m4: New file.
10380
10381         * m4/gc-rijndael.m4: New file.
10382
10383 2005-10-19  Simon Josefsson  <jas@extundo.com>
10384
10385         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
10386
10387 2005-10-19  Simon Josefsson  <jas@extundo.com>
10388
10389         * lib/gc-gnulib.c: Support ARCFOUR.
10390
10391 2005-10-19  Simon Josefsson  <jas@extundo.com>
10392
10393         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
10394         support.
10395
10396         * lib/gc.h: Add ECB enum type.
10397
10398         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
10399
10400 2005-10-18  Simon Josefsson  <jas@extundo.com>
10401
10402         * tests/test-md5.c: New file.
10403
10404         * modules/md5-tests: New file.
10405
10406 2005-10-18  Simon Josefsson  <jas@extundo.com>
10407
10408         * tests/test-md4.c: New file.
10409
10410         * modules/md4, modules/md4-tests: New files.
10411
10412 2005-10-18  Simon Josefsson  <jas@extundo.com>
10413
10414         * m4/md4.m4: New file.
10415
10416 2005-10-18  Simon Josefsson  <jas@extundo.com>
10417
10418         * lib/md4.h, lib/md4.c: New files, based on md5.?.
10419
10420 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
10421
10422         * gnulib-tool (func_create_testdir): Omit the second check whether
10423         BUILT_SOURCES in nonempty.
10424
10425 2005-10-17  Simon Josefsson  <jas@extundo.com>
10426
10427         * tests/test-rijndael.c: New file.
10428
10429 2005-10-17  Simon Josefsson  <jas@extundo.com>
10430
10431         * modules/sha1: Depend on stdint instead of md5.
10432
10433         * modules/md5: Depend on stdint, remove uint32_t.
10434
10435 2005-10-17  Simon Josefsson  <jas@extundo.com>
10436
10437         * modules/gc-sha1-tests: New file.
10438
10439         * tests/test-gc-sha1.c: New file.
10440
10441 2005-10-17  Simon Josefsson  <jas@extundo.com>
10442
10443         * m4/md5.m4: Remove call to uint32_t.m4.
10444
10445 2005-10-17  Simon Josefsson  <jas@extundo.com>
10446
10447         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
10448
10449         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
10450         md5.h.
10451
10452         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
10453
10454         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
10455
10456 2005-10-17  Simon Josefsson  <jas@extundo.com>
10457
10458         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
10459
10460 2005-10-17  Simon Josefsson  <jas@extundo.com>
10461
10462         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
10463
10464 2005-10-17  Simon Josefsson  <jas@extundo.com>
10465
10466         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
10467
10468         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
10469
10470 2005-10-17  Bruno Haible  <bruno@clisp.org>
10471
10472         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
10473         that it can also be used in a test.
10474
10475 2005-10-16  Bruno Haible  <bruno@clisp.org>
10476
10477         * gnulib-tool (func_emit_tests_Makefile_am): Also define
10478         TESTS_ENVIRONMENT, so that individual tests can augment it.
10479
10480         * gnulib-tool (func_create_testdir): Use an intermediate target for
10481         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
10482         macros, like $(ALLOCA_H), which cannot be passed through the command
10483         line.
10484
10485 2005-10-15  Simon Josefsson  <jas@extundo.com>
10486
10487         * modules/rijndael-tests: New file.
10488
10489         * modules/rijndael: New file.
10490
10491 2005-10-15  Simon Josefsson  <jas@extundo.com>
10492
10493         * m4/rijndael.m4: New file.
10494
10495 2005-10-15  Simon Josefsson  <jas@extundo.com>
10496
10497         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
10498
10499         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
10500
10501 2005-10-14  Simon Josefsson  <jas@extundo.com>
10502
10503         * tests/test-arcfour.c: New file.
10504
10505         * modules/arcfour, modules/arcfour-tests: New files.
10506
10507 2005-10-14  Simon Josefsson  <jas@extundo.com>
10508
10509         * m4/arcfour.m4: New file.
10510
10511 2005-10-14  Simon Josefsson  <jas@extundo.com>
10512
10513         * lib/arcfour.h, lib/arcfour.c: New files.
10514
10515 2005-10-14  Roland McGrath  <roland@redhat.com>
10516
10517         Import from libc.  [BZ #1331]
10518         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
10519         macro argument.
10520         Reported by Matej Vela <vela@debian.org>.
10521
10522 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
10523
10524         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
10525         include <wchar.h>; no longer needed.
10526
10527 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
10528
10529         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
10530
10531 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
10532         and  Ulrich Drepper  <drepper@redhat.com>
10533
10534         Import from libc.
10535         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
10536         instead of inline stream orientation test and two separate
10537         function calls.  Pay no attention to USE_IN_LIBIO.
10538
10539 2005-10-13  Simon Josefsson  <jas@extundo.com>
10540
10541         * modules/gc-hmac-md5-tests: New file.
10542
10543         * tests/test-gc-hmac-sha1.c: New file.
10544
10545         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
10546
10547         * modules/gc-hmac-md5-tests: New file.
10548
10549         * tests/test-gc-md5.c: New file.
10550
10551         * modules/gc-md5-tests: New file.
10552
10553 2005-10-13  Simon Josefsson  <jas@extundo.com>
10554
10555         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
10556         Move memory allocation outside of loop.
10557
10558 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
10559
10560         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
10561         intermediate directory is in a read-only file system.  Problem
10562         reported by Eric Blake.
10563
10564 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
10565
10566         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
10567
10568 2005-10-12  Simon Josefsson  <jas@extundo.com>
10569
10570         * tests/test-hmac-sha1.c: New file.
10571
10572         * modules/hmac-sha1-tests: New file.
10573
10574         * modules/hmac-sha1: New file.
10575
10576 2005-10-12  Simon Josefsson  <jas@extundo.com>
10577
10578         * modules/gc-sha1: New file.
10579
10580 2005-10-12  Simon Josefsson  <jas@extundo.com>
10581
10582         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
10583
10584         * tests/test-gc-pbkdf2-sha1.c: New file.
10585
10586 2005-10-12  Simon Josefsson  <jas@extundo.com>
10587
10588         * modules/gc-md5, modules/gc-hmac-md5: New files.
10589
10590         * modules/gc (Files): Remove md5, memxor and hmac files.
10591
10592 2005-10-12  Simon Josefsson  <jas@extundo.com>
10593
10594         * m4/gc-pbkdf2-sha1.m4: New file.
10595
10596         * m4/gc-hmac-sha1.m4: New file.
10597
10598         * m4/gc-sha1: New file.
10599
10600         * m4/hmac-sha1.m4: New file.
10601
10602 2005-10-12  Simon Josefsson  <jas@extundo.com>
10603
10604         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
10605
10606         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
10607
10608 2005-10-12  Simon Josefsson  <jas@extundo.com>
10609
10610         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
10611         suggested by Bruno Haible <bruno@clisp.org>.
10612
10613 2005-10-12  Simon Josefsson  <jas@extundo.com>
10614
10615         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
10616
10617 2005-10-12  Simon Josefsson  <jas@extundo.com>
10618
10619         * lib/gc-pbkdf2-sha1.c: New file.
10620
10621         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
10622
10623 2005-10-12  Simon Josefsson  <jas@extundo.com>
10624
10625         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
10626
10627         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
10628
10629 2005-10-12  Simon Josefsson  <jas@extundo.com>
10630
10631         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
10632         GC_USE_HMAC_MD5, respectively.
10633
10634         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
10635         (gc_md5): Fix typo.
10636
10637         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
10638
10639         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
10640
10641         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
10642
10643 2005-10-12  Bruno Haible  <bruno@clisp.org>
10644
10645         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
10646         Reported by Stepan Kasal <kasal@ucw.cz>.
10647
10648 2005-10-11  Simon Josefsson  <jas@extundo.com>
10649
10650         * tests/test-crc.c: New file.
10651
10652         * modules/crc, modules/crc-tests: New files.
10653
10654 2005-10-11  Simon Josefsson  <jas@extundo.com>
10655
10656         * m4/crc.m4: New file.
10657
10658 2005-10-11  Simon Josefsson  <jas@extundo.com>
10659
10660         * lib/gc.h: Add gc_hash and gc_hash_buffer.
10661
10662         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
10663
10664         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
10665
10666 2005-10-11  Simon Josefsson  <jas@extundo.com>
10667
10668         * lib/crc.h, lib/crc.c: New files.
10669
10670         * lib/gc.h (gc_hash_buffer): Add doc.
10671
10672 2005-10-11  Bruno Haible  <bruno@clisp.org>
10673
10674         * modules/c-strcasestr: New file.
10675         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
10676
10677 2005-10-11  Bruno Haible  <bruno@clisp.org>
10678
10679         * modules/c-strcase: New file.
10680         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
10681
10682 2005-10-11  Bruno Haible  <bruno@clisp.org>
10683
10684         * lib/strcasecmp.c: Include limits.h.
10685         (strcasecmp): Avoid integer overflow on exotic platforms.
10686         * lib/strncasecmp.c: Include limits.h.
10687         (strncasecmp): Avoid integer overflow on exotic platforms.
10688         Reported by Paul Eggert.
10689
10690 2005-10-11  Bruno Haible  <bruno@clisp.org>
10691
10692         * lib/c-strcasestr.h: New file, from GNU gettext.
10693         * lib/c-strcasestr.c: New file, from GNU gettext.
10694
10695 2005-10-11  Bruno Haible  <bruno@clisp.org>
10696
10697         * lib/c-strcase.h: New file, from GNU gettext.
10698         * lib/c-strcasecmp.c: New file, from GNU gettext.
10699         * lib/c-strncasecmp.c: New file, from GNU gettext.
10700
10701 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
10702
10703         * modules/mempcpy (License): GPL -> LGPL.
10704         * modules/strchrnul (License): Likewise.
10705         * modules/sysexits (License): Likewise.
10706
10707 2005-10-08  Simon Josefsson  <jas@extundo.com>
10708
10709         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
10710
10711 2005-10-07  Simon Josefsson  <jas@extundo.com>
10712
10713         * m4/memxor.m4: Remove gl_C_RESTRICT call.
10714
10715 2005-10-06  Simon Josefsson  <jas@extundo.com>
10716
10717         * tests/test-hmac-md5.c: New file.
10718
10719         * modules/hmac-md5-tests: New file.
10720
10721         * modules/hmac-md5: New file.
10722
10723 2005-10-06  Simon Josefsson  <jas@extundo.com>
10724
10725         * m4/hmac-md5.m4: New file.
10726
10727         * m4/memxor.m4: Require gl_C_RESTRICT.
10728
10729 2005-10-06  Simon Josefsson  <jas@extundo.com>
10730
10731         * lib/memxor.c (memxor): Avoid casts and warnings.
10732
10733 2005-10-06  Simon Josefsson  <jas@extundo.com>
10734
10735         * lib/hmac-md5.c: New file.
10736
10737         * lib/hmac.h: New file.
10738
10739 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
10740
10741         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
10742         promotes to int, not unsigned int, to catch the AIX 5.3
10743         compiler bug.
10744
10745 2005-10-05  Simon Josefsson  <jas@extundo.com>
10746
10747         * modules/memxor: New file.
10748
10749         * modules/iconv (Files): Move config.rpath to havelib, it is used
10750         there.
10751
10752         * modules/havelib (Files): Add config.rpath.
10753
10754 2005-10-05  Simon Josefsson  <jas@extundo.com>
10755
10756         * m4/memxor.m4: New file.
10757
10758 2005-10-05  Simon Josefsson  <jas@extundo.com>
10759
10760         * lib/memxor.c (memxor): Fix compiler error.
10761
10762         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
10763         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
10764
10765         * lib/memxor.h, lib/memxor.c: New files.
10766
10767         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
10768         we assume all systems have it, suggested by Jim Meyering
10769         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
10770         any systems lack sys/socket.h; mingw32 is known to lack it, but we
10771         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
10772         same reasons.
10773
10774 2005-10-05  Simon Josefsson  <jas@extundo.com>
10775
10776         * config/srclist.txt: Add glibc bug 1423 for md5.h.
10777
10778 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
10779
10780         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
10781         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
10782         needed, since the source code now assumes these .h files.
10783
10784 2005-10-05  Derek Price  <derek@ximbiot.com>
10785
10786         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
10787
10788 2005-10-05  Bruno Haible  <bruno@clisp.org>
10789
10790         * modules/stdint (License): Change to LGPL.
10791
10792 2005-10-04  Simon Josefsson  <jas@extundo.com>
10793
10794         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
10795         D. Baushke" <mdb@gnu.org>.
10796
10797 2005-10-04  Bruno Haible  <bruno@clisp.org>
10798
10799         * lib/verify.h (verify_true): Provide alternative definition for C++.
10800
10801 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
10802
10803         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
10804         (SSIZE_MAX): New macro, if not already defined.
10805         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
10806         than 2 GiB.
10807
10808 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
10809
10810         Sync from coreutils.
10811         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
10812         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
10813         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
10814         ULLONG_MAX doesn't work with 2.7.2.1.
10815
10816 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
10817
10818         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
10819         From Ben Pfaff.
10820
10821         * modules/exclude (Depends-on): Depend on verify.
10822         * modules/strtoimax (Depends-on): Likewise.
10823         * modules/utimecmp (Depends-on): Likewise.
10824
10825 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
10826
10827         * lib/exclude.c: Include verify.h.
10828         (verify): Remove.  All callers changed to use verify.h's version.
10829         * lib/strtoimax.c: Likewise.
10830         * lib/utimecmp.c: Likewis.e
10831
10832         Sync from coreutils.
10833         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
10834         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
10835         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
10836         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
10837         bother returning ENOSYS if settimeofday or stime fails; just let
10838         them return whatever errno they want to return.
10839         * lib/utimens.c: Include unistd.h, for dup2.
10840         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
10841         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
10842
10843 2005-10-02  Jim Meyering  <jim@meyering.net>
10844
10845         Sync from coreutils.
10846         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
10847         from glibc-2.2.5 that fails for read-only files.
10848
10849 2005-10-02  Jim Meyering  <jim@meyering.net>
10850
10851         Sync from coreutils.
10852         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
10853         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
10854         `#if HAVE_CONFIG_H'.
10855         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
10856         Remove AT_FDCWD test.
10857         Do not consume the fd unless successful.
10858         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
10859         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
10860         block, so that we don't even try to compile it if settimeofday is
10861         available.  This works around a compilation failure on OSF1 V5.1,
10862         due to stime requiring a `long int*' while tv_sec is `int'.
10863
10864 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
10865
10866         Sync from coreutils.
10867         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
10868         against `yes', rather than just testing for nonempty.
10869
10870 2005-10-01  Simon Josefsson  <jas@extundo.com>
10871
10872         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
10873         and Darwin.
10874
10875         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
10876         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
10877         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
10878         freeaddrinfo and gai_strerror are declared by the POSIX headers.
10879         Check if struct addrinfo is declared.
10880
10881 2005-10-01  Simon Josefsson  <jas@extundo.com>
10882
10883         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
10884         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
10885         AI_* and EAI_* definitions.  Protect function declarations.
10886
10887 2005-10-01  Jim Meyering  <jim@meyering.net>
10888
10889         Sync from coreutils.
10890
10891         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
10892         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
10893         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
10894         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
10895         in the inet and nsl libraries.  Required on Solaris 5.7.
10896
10897 2005-10-01  Jim Meyering  <jim@meyering.net>
10898
10899         Sync from coreutils.
10900         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
10901         in the inet and nsl libraries.  Required on Solaris 5.7.
10902
10903 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
10904
10905         * lib/getdelim.c (getdelim): Remove unused variables.
10906
10907 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
10908
10909         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
10910         so that the code works even with ancient cpp.  Portability problem
10911         with GCC 2.7.2.1 reported by Thomas M.Ott.
10912
10913 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
10914
10915         * modules/regex (Depends-on): Add strcase.
10916
10917         * modules/gethostname (Licence): Change from GPL to LGPL, since
10918         gethostname.c is a trivial implementation of a standard library
10919         function.
10920         * modules/poll (License): Change from GPL to LGPL, since it's
10921         derived from LGPL code.
10922
10923 2005-09-27  Jim Meyering  <jim@meyering.net>
10924
10925         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
10926         HAVE_CONFIG_H.
10927
10928         * lib/intprops.h (signed_type_or_expr__): Define.
10929         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
10930         for unsigned types.
10931
10932 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
10933
10934         * lib/verify.h (verify_expr): Remove, replacing with:
10935         (verify_true): New macro that returns true instead of void.
10936         (verify_type__): Remove.
10937         (verify): Use verify_true rather than verify_type__.
10938
10939 2005-09-26  Bruno Haible  <bruno@clisp.org>
10940
10941         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
10942         is necessary.
10943         (lib_SOURCES): Remove mbchar.c.
10944         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
10945         (Files): Add m4/mbrtowc.m4.
10946         * modules/mbiter: Likewise.
10947         * modules/mbuiter: Likewise.
10948
10949 2005-09-26  Bruno Haible  <bruno@clisp.org>
10950
10951         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
10952         compile mbchar.c if they are not both present.
10953         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
10954         * m4/mbiter.m4 (gl_MBITER): Likewise.
10955         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
10956         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
10957         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
10958
10959 2005-09-25  Jim Meyering  <jim@meyering.net>
10960
10961         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
10962         also uses socklen_t.
10963
10964 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
10965
10966         * lib/utimens.c (ENOSYS): Define if not already defined.
10967         (futimens): Support having a null PATH if the file descriptor
10968         is nonnegative.
10969
10970         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
10971         Remove.
10972         (__attribute): Define to empty unless GCC 3.1 or later.
10973         This works around a core dump on OpenBSD 3.4, which has GCC
10974         2.95.3, which dumps core when given __attribute__(()).  It also
10975         simplifies other tests, since we really don't want to bother with
10976         worrying about which ancient version of GCC supported what.
10977         Original problem reported by Yoann Vandoorselaere, with part of
10978         the fix suggested by Derek Price.
10979
10980 2005-09-24  Jim Meyering  <jim@meyering.net>
10981
10982         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
10983         so we can once again use a positive bitfield width of 1 -- now we
10984         don't have to explain why we were using a bitfield width of 2.
10985
10986 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
10987
10988         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
10989         and similarly for the other external symbols.  Problem reported
10990         by James Gallager.
10991
10992         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
10993         bug reported by Jim Meyering.
10994
10995         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
10996         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
10997         not needed, since socklen is a prerequisite module.
10998
10999 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
11000
11001         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
11002         Problem reported by Eric Blake.
11003         (getaddrinfo): Initialize se so that it's not garbage.
11004         Redo internal storage allocation so that it doesn't make unportable
11005         assumptions about alignment.
11006         Fix a memory leak.
11007
11008         * lib/utimens.c (futimens): Use futimesat if available.
11009         Prefer it to futimes since it doesn't have the futimes bug.
11010
11011         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
11012         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
11013         Instead, declare a function that returns a pointer to an array,
11014         and use verify_type__ to declare the size of the array.
11015         Problem and germ of a solution reported by Bruno Haible.
11016         (verify_type__): Use 2, not 1, for bitfield size, to avoid
11017         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
11018
11019 2005-09-23  Jim Meyering  <jim@meyering.net>
11020
11021         Sync from coreutils.
11022         Correct build failure (socklen_t not defined) on at least
11023         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
11024         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
11025
11026 2005-09-23  Jim Meyering  <jim@meyering.net>
11027
11028         * modules/getaddrinfo (Depends-on): Add socklen.
11029
11030 2005-09-23  Bruno Haible  <bruno@clisp.org>
11031
11032         * tests/test-verify.c: New file.
11033
11034 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
11035
11036         Sync from coreutils.
11037
11038         * modules/argmatch (Depends-on): Add verify.
11039         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
11040         unistd-safer.
11041         * modules/save-cwd (Depends-on): Likewise.
11042
11043         * modules/openat (Files): Add lib/openat-die.c.
11044         (Depends-on): Remove error, exitfail.
11045         Add dirname.
11046
11047         * modules/verify: New file.
11048         * MODULES.html.sh (Diagnostics <assert.h>): New section,
11049         with "verify" module.
11050
11051 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
11052
11053         Sync from coreutils.
11054
11055         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
11056         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
11057         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
11058         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
11059         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
11060         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
11061         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
11062         Don't bother checking for string.h, stdlib.h, unistd.h.
11063         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
11064         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
11065         module's job.
11066         * m4/jm-macros.m4 (gl_MACROS): Likewise.
11067         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
11068
11069         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
11070         (gl_GETDATE): Use it.
11071
11072         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
11073
11074 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
11075
11076         Sync from coreutils.
11077
11078         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
11079         stat-time.h.
11080         * lib/argmatch.h: Include verify.h
11081         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
11082         (ARGMATCH_ASSERT): Remove; unused.
11083         * lib/canonicalize.c: Assume STDC_HEADERS.
11084         * lib/exclude.c: Include "strcase.h".
11085         * lib/regex_internal.h [!defined _LIBC]: Likewise.
11086         * lib/getusershell.c: Include stdio--.h rather than stdio.h
11087         and stdio-safer.h.
11088         (getusershell): Call fopen, not fopen_safer.
11089         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
11090         Do not include unistd-safer.h.
11091         (save_cwd): Don't call fd_safer; no longer needed
11092         now that we include fcntl--.h.
11093
11094         * lib/getdate.y (relative_time): New type.
11095         (RELATIVE_TIME_0): New constant.
11096         (parser_control): Use relative_time instead of doing it ourselves.
11097         (%union): Add new relative_time rel member.
11098         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
11099         Now typeless.
11100         (relunit, relunit_snumber): Now of type rel.
11101         (zone, rel, relunit, get_date): Adjust to above changes.
11102
11103         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
11104         Do not include unistd-safer.h.
11105         (getloadavg): Don't call fd_safer; no longer needed
11106         now that we include fcntl--.h.
11107
11108         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
11109         (make_dir_parents): Treat ENOSYS like EEXIST.
11110
11111         Improve quality of diagnostics on restore_cwd failure.
11112         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
11113         (make_dir_parents): Last arg is now int * (for errno), not bool *.
11114         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
11115         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
11116         each time through the loop.  Do not diagnose restore_cwd failure;
11117         that is the caller's job (and perhaps the caller does not care).
11118
11119         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
11120         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
11121         If the file already exists but is not a directory, don't bother
11122         to try to make its parents.
11123         Close potential file descriptor leak if we can't chdir("/") (!).
11124         Don't always return true if chdir($PWD) fails; return true only
11125         if the requested action was done successfully (except for the
11126         chdir($PWD)).
11127         Don't log final directory unless we actually made it.
11128         Refactor to avoid duplicate code to fix up permissions.
11129         Don't attempt to fix up parent permissions if chdir($PWD) fails.
11130
11131         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
11132         to make it a bit faster and (I hope) clearer.
11133         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
11134         Fix bug in formats like %2N.
11135
11136         * lib/verify.h: New file.
11137
11138 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
11139
11140         Sync from coreutils.
11141         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
11142
11143 2005-09-22  Jim Meyering  <jim@meyering.net>
11144
11145         Sync from coreutils.
11146
11147         * m4/lstat.m4 (gl_FUNC_LSTAT):
11148         Use AC_LIBSOURCES to require lstat.c and lstat.h.
11149         Remove obsolete comment.
11150         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
11151         * m4/xstrtod.m4: Likewise.
11152
11153         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
11154
11155 2005-09-22  Jim Meyering  <jim@meyering.net>
11156
11157         Sync from coreutils.
11158
11159         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
11160
11161         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
11162         the .tm_year member, since otherwise gcc-4.0 would now warn about
11163         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
11164
11165         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
11166         order to avoid an unsuppressible warning from gcc on 64-bit systems.
11167
11168         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
11169         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
11170         when run in a time zone for which daylight savings time is in effect
11171         for the starting date.
11172
11173         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
11174         stop us from restricting permissions of just-created absolute-named
11175         directories.
11176         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
11177         to restore initial working directory.
11178         * lib/mkdir-p.c (make_dir_parents): New parameter:
11179         different_working_dir, to tell caller if/when we change the working
11180         directory and are unable to return to the initial one.
11181         * lib/mkdir-p.h (make_dir_parents): Update prototype.
11182         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
11183         `return false'.  This fixes a bug introduced on 2004-07-30.
11184
11185         * lib/openat.c (fdopendir): Be sure to close the supplied
11186         file descriptor before returning.  This makes our replacement
11187         implementation a little closer to Solaris's, where fdopendir
11188         ties the file descriptor to the returned DIR* pointer.
11189         * lib/openat.c (unlinkat): New function.
11190         * lib/openat.h (unlinkat): Add prototype.
11191         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
11192         (openat_restore_fail): Rename from openat_restore_die.
11193         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
11194
11195         Provide an alternative to exiting immediately upon save_cwd or
11196         restore_cwd failure.  Now, an application can arrange e.g.,
11197         to perform a longjump in that case.
11198         * lib/openat.c: Include dirname.h.
11199         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
11200         (rpl_openat, fdopendir, fstatat): Call openat_save_die
11201         and openat_restore_die rather than calling error directly.
11202         Don't include "error.h" or "exitfail.h"; they're no longer needed.
11203
11204         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
11205         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
11206         define.
11207
11208         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
11209         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
11210                             int utc, int nanoseconds);
11211         Background:
11212         date should not have to allocate a megabyte of virtual memory to
11213         handle a format argument like +%1048575T.  When implemented with
11214         strftime, it must allocate such a buffer, use strftime to fill it
11215         in, print it, then free it.
11216         With fprintftime, it simply prints everything and exits.
11217         With no need for memory allocation, that's one fewer way to fail.
11218         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
11219         optional field width, not before, so we accept %9:z, not %:9z.
11220         (my_strftime): Be sure to use L_('x') for literals.
11221
11222         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
11223         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
11224         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
11225         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
11226         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
11227         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
11228         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
11229         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
11230         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
11231         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
11232         * lib/xgethostname.c, lib/xreadlink.c:
11233         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
11234
11235         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
11236         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
11237         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
11238         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
11239         and don't include <sys/file.h>).
11240
11241 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
11242
11243         Sync from coreutils.
11244
11245         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
11246         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
11247         [!LDAV_DONE]: Avoid unused variable warning.
11248
11249 2005-09-21  Bruno Haible  <bruno@clisp.org>
11250
11251         * lib/unicodeio.h (unicode_to_mb): New declaration.
11252
11253 2005-09-20  Derek Price  <derek@ximbiot.com>
11254
11255         * lib/getaddrinfo.c: Don't include <netdb.h> included from
11256         getaddrinfo.h.
11257
11258 2005-09-20  Bruno Haible  <bruno@clisp.org>
11259
11260         * gnulib-tool: Remove trailing slashes from the values specified for
11261         --source-base, --m4-base, --tests-base, --aux-dir.
11262         Suggested by Simon Josefsson <jas@extundo.com>.
11263
11264 2005-09-20  Bruno Haible  <bruno@clisp.org>
11265
11266         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
11267         func_modules_to_filelist, func_import, func_create_testdir): Make all
11268         sorting results locale-independent, so that gnulib-cache.m4 doesn't
11269         change when gnulib-tool is invoked in a different locale.
11270
11271 2005-09-19  Simon Josefsson  <jas@extundo.com>
11272
11273         * m4/socklen.m4: Fix typo.
11274
11275 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11276
11277         Use a consistent style for including <config.h>.
11278         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
11279         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
11280         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
11281         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
11282         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
11283         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
11284         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
11285         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
11286         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
11287         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
11288         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
11289         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
11290         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
11291         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
11292         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
11293         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
11294         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
11295         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
11296         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
11297         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
11298         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
11299         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
11300         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
11301         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
11302         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
11303         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
11304         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
11305         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
11306         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
11307         lib/xstrtoumax.c, lib/yesno.c:
11308         Standardize inclusion of config.h.
11309         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
11310         lib/inttostr.h:  Removed inclusion of config.h from header files.
11311         * lib/inttostr.c:  Adjusted in-tree users.
11312         * lib/timespec.h: Remove superfluous warning to include config.h.
11313         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
11314         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
11315         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
11316         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
11317         config.h with HAVE_CONFIG_H.
11318
11319 2005-09-19  Jim Meyering  <jim@meyering.net>
11320
11321         * modules/pathmax (License): Change to LGPL.
11322
11323 2005-09-19  Derek Price  <derek@ximbiot.com>
11324
11325         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
11326
11327 2005-09-19  Bruno Haible  <bruno@clisp.org>
11328
11329         * gnulib-tool (import): Provide default for --tests-base.
11330
11331 2005-09-19  Bruno Haible  <bruno@clisp.org>
11332
11333         * doc/quote.texi: New file, extracted from gnulib.texi.
11334         * doc/ctime.texi: New file, extracted from gnulib.texi.
11335         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
11336         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
11337         * doc/gnulib.texi: Include them.
11338
11339 2005-09-18  Bruno Haible  <bruno@clisp.org>
11340
11341         Portability fix.
11342         * gnulib-tool (func_readlink): New function.
11343         (func_ln_if_changed): Use it.
11344
11345 2005-09-18  Bruno Haible  <bruno@clisp.org>
11346
11347         * gnulib-tool: Support --with-tests also with --import.
11348         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
11349         (func_import): Use variables $testsbase and $inctests. Emit a
11350         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
11351         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
11352         SUBDIRS += $testsdir.
11353         (func_create_testdir): Update.
11354
11355 2005-09-18  Bruno Haible  <bruno@clisp.org>
11356
11357         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
11358         instead of $dry_run.
11359         (func_cp_if_changed, func_mv_if_changed): Remove functions.
11360         (func_ln_if_changed): Don't handle dry-run here.
11361         (func_import): In dry-run mode, detect more precisely which actions
11362         would be performed, and don't use "...ing" verbs.
11363
11364 2005-09-18  Bruno Haible  <bruno@clisp.org>
11365
11366         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
11367         (func_import): Use join on two temporary files instead of three nested
11368         loops, in order to determine which files are new or old.
11369
11370 2005-09-18  Bruno Haible  <bruno@clisp.org>
11371
11372         * gnulib-tool (func_import): Comment out code that spits out the
11373         new files with --dry-run.
11374
11375 2005-09-18  Bruno Haible  <bruno@clisp.org>
11376
11377         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
11378
11379 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
11380
11381         * lib/stat-time.h: New file.
11382         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
11383         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
11384         in a different way.
11385         (timespec_cmp): New function.
11386         * lib/utimecmp.c: Include stat-time.h.
11387         (SYSCALL_RESOLUTION): Depend on whether various struct stat
11388         members exist, not on the obsolescent ST_MTIM_NSEC.
11389         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
11390
11391 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
11392
11393         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
11394
11395 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
11396
11397         * MODULES.html.sh (File system functions): Add stat-time.
11398         * modules/stat-time: New file.
11399         * modules/timespec (Files): Remove m4/st_mtim.m4; this
11400         is now done in a different way, by the stat-time module.
11401         * modules/utimecmp (Depends-on): Add stat-time.
11402
11403 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
11404
11405         * m4/st_mtim.m4: Remove.  Superseded by...
11406         * m4/stat-time.m4: New file.
11407         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
11408         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
11409
11410 2005-09-15  Derek Price  <derek@ximbiot.com>
11411
11412         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
11413
11414 2005-09-15  Derek Price  <derek@ximbiot.com>
11415
11416         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
11417         * lib/regex_internal.c: Ditto, using this...
11418         (__GNUC_PREREQ): ...new macro.
11419         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
11420         using...
11421         (__GNUC_PREREQ): ...this new macro.
11422
11423         * lib/strstr.h: Include string.h. Define strstr as a macro here.
11424
11425 2005-09-15  Derek Price  <derek@ximbiot.com>
11426             Paul Eggert  <eggert@cs.ucla.edu>
11427
11428         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
11429         changes, consolidating in...
11430         * lib/regex_internal.h: ...this file.
11431
11432 2005-09-13  Jim Meyering  <jim@meyering.net>
11433
11434         * lib/canon-host.c: Filter through gnu indent and reword comments
11435         slightly.
11436         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
11437
11438 2005-09-13  Derek Price  <derek@ximbiot.com>
11439
11440         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
11441         failure.
11442         Reported by Jim Meyering  <jim@meyering.net>.
11443
11444 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
11445
11446         * lib/base64.c: Typo.
11447         (base64_encode): Put b64str in initialized data section.
11448
11449 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
11450
11451         Merge glibc and coreutils changes into gnulib, plus a few
11452         extra fixes.
11453         * lib/md5.c: Use #error rather than a string.
11454         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
11455         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
11456         (__attribute__): Define to empty for non recent-GCC.
11457         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
11458         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
11459         Renamed from their non-__ counterparts, with new macros replacing
11460         them if not _LIBC.  Add __THROW attribute.
11461         (rol): Remove.
11462         (struct md5_ctx): Align buffer if using GCC.
11463         * lib/sha1.h (struct sha1_ctx): Likewise.
11464         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
11465         The old name was backwards.
11466         (NOTSWAP): Remove; not used.
11467         (rol): New macro, moved here from md5.h.
11468         (sha1_process_block): Remove a FIXME that doesn't make sense.
11469
11470 2005-09-12  Derek Price  <derek@ximbiot.com>
11471
11472         Return usable errors from canon-host.
11473         * lib/canon-host.h: New file.
11474         * lib/canon-host.c (canon_host): Wrap...
11475         (canon_host_r): ...this new function, which now relies exclusively on
11476         getaddrinfo.
11477         (ch_strerror): New function.
11478         (last_cherror): New global.
11479         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
11480         interface.
11481         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
11482         void *.
11483         (freeaddrinfo): Free ai->ai_canonname when set.
11484
11485 2005-09-12  Derek Price  <derek@ximbiot.com>
11486
11487         Make canon-host require getaddrinfo.
11488         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
11489         AC_LIBSOURCE canon-host.h.  Call...
11490         (gl_PREREQ_CANON_HOST): ...this new function, which requires
11491         gl_GETADDRINFO.
11492         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
11493
11494 2005-09-12  Derek Price  <derek@ximbiot.com>
11495
11496         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
11497         LGPL.
11498         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
11499
11500 2005-09-12  Derek Price  <derek@ximbiot.com>
11501
11502         * lib/gai_strerror.c: Include config.h when available.  Include
11503         getaddrinfo.h before other headers to test interface.
11504         Reported by Larry Jones <lawrence.jones@ugs.com>.
11505
11506 2005-09-12  Derek Price  <derek@ximbiot.com>
11507             Paul Eggert  <eggert@cs.ucla.edu>
11508
11509         * modules/glob (Files): Add glob-libc.h.
11510
11511 2005-09-12  Derek Price  <derek@ximbiot.com>
11512             Paul Eggert  <eggert@cs.ucla.edu>
11513
11514         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
11515         glob_.h, glob-libc.h.
11516         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
11517
11518 2005-09-12  Derek Price  <derek@ximbiot.com>
11519             Paul Eggert  <eggert@cs.ucla.edu>
11520
11521         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
11522         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
11523         protecting things that should be done only in gnulib contexts.
11524         * lib/glob_.h: New file, containing only the glob things needed for
11525         gnulib.
11526         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
11527         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
11528         (glob, globfree, glob_pattern_p): Now defined simply in terms of
11529         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
11530         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
11531         and to respect the namespace rules better.
11532
11533 2005-09-08  Simon Josefsson  <jas@extundo.com>
11534
11535         * modules/socklen: New file.
11536
11537 2005-09-08  Simon Josefsson  <jas@extundo.com>
11538
11539         * m4/socklen.m4: New file.
11540
11541 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
11542
11543         * modules/utimens (Files): Add m4/utimbuf.m4, since
11544         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
11545         Reported by Sergey Poznyakoff.
11546
11547 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
11548
11549         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
11550         definitions, since that's the preferred style in glibc.
11551         Fix a minor spacing issue, and update copyright notice to match
11552         glibc's.
11553
11554 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
11555
11556         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
11557
11558 2005-09-06  Simon Josefsson  <jas@extundo.com>
11559
11560         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
11561         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
11562
11563 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
11564
11565         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
11566         warning.
11567
11568 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
11569
11570         * config/srclist.txt: Add glibc bug 1302.
11571
11572 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
11573
11574         Change bitset word type from unsigned int to unsigned long int,
11575         as this has better performance on typical 64-bit hosts.
11576         Port bitset code to hosts with unusual word sizes.
11577         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
11578         (build_collating_symbol):
11579         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
11580         argument is a bitset.  This is merely a style issue, but it makes
11581         it clearer that an entire array is expected.
11582         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
11583         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
11584         Port to the case where bitset_word is not the same as unsigned int.
11585         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
11586         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
11587         Likewise.
11588         * lib/regexec.c (check_dst_limits_calc_pos_1,
11589         check_subexp_matching_top):
11590         (build_trtable, group_nodes_into_DFAstates):
11591         Likewise.
11592         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
11593         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
11594         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
11595         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
11596         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
11597         * lib/regcomp.c (optimize_subexps, lower_subexp):
11598         Work even if bitset_word has holes in its bitwise representation.
11599         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
11600         * lib/regexec.c (check_dst_limits_calc_pos_1,
11601         check_subexp_matching_top):
11602         Likewise.
11603         * lib/regex_internal.c (re_string_reconstruct):
11604         Don't assume UCHAR_MAX == 255.
11605         * lib/regex_internal.h (bitset_set_all): Likewise.
11606         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
11607         All uses changed.
11608         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
11609         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
11610         All uses changed.
11611         (BITSET_WORD_MAX): New macro.
11612         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
11613         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
11614         (bitset_empty, bitset_copy):
11615         Prefer sizeof (bitset) to multiplying it out ourselves.
11616         (bitset_not_merge): Remove; unused.
11617         (bitset_contain): Return bool, not unsigned int with one bit on.
11618         All callers changed.
11619         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
11620         alignment than re_node_set; do this by defining a new internal
11621         type struct dests_alloc and using it to allocate memory.
11622
11623 2005-09-05  Bruno Haible  <bruno@clisp.org>
11624
11625         * gnulib-tool (func_import): Fix comparison in handling of symbolic
11626         links.
11627
11628 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
11629
11630         * modules/size_max (Makefile.am): Add size_max.h
11631
11632 2005-09-04  Derek Price  <derek@ximbiot.com>
11633
11634         * gnulib-tool (func_import): Fix reversed $symbolic logic.
11635
11636 2005-09-03  Simon Josefsson  <jas@extundo.com>
11637
11638         * gnulib-tool: Fix typo.
11639
11640 2005-09-03  Simon Josefsson  <jas@extundo.com>
11641
11642         * config/srclist.txt: Add glibc bug 1293.
11643
11644 2005-09-03  Derek Price  <derek@ximbiot.com>
11645
11646         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
11647         From Larry Jones <lawrence.jones@ugs.com>.
11648
11649 2005-09-02  Simon Josefsson  <jas@extundo.com>
11650
11651         * modules/socklen: New file.
11652
11653 2005-09-02  Simon Josefsson  <jas@extundo.com>
11654
11655         * modules/havelib: New module.
11656
11657         * modules/gettext, modules/iconv, modules/lock, modules/readline:
11658         Use havelib.
11659
11660 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
11661
11662         Check for arithmetic overflow when calculating sizes, to prevent
11663         some buffer-overflow issues.  These patches are conservative, in the
11664         sense that when I couldn't determine whether an overflow was possible,
11665         I inserted a run-time check.
11666         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
11667         macros.
11668         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
11669         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
11670         (re_xnrealloc, re_x2nrealloc): New inline functions.
11671         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
11672         parse_bracket_exp):
11673         (build_equiv_class, build_charclass): Check for arithmetic overflow
11674         in size expression calculations.
11675         * lib/regex_internal.c (re_string_realloc_buffers):
11676         (build_wcs_upper_buffer, re_node_set_add_intersect):
11677         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
11678         (re_dfa_add_node, register_state): Likewise.
11679         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
11680         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
11681         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
11682         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
11683
11684 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
11685
11686         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
11687         m4/ulonglong.m4.  Problem reported by Martin Lambers.
11688
11689 2005-09-02  Bruno Haible  <bruno@clisp.org>
11690
11691         Support for lib vs. lib64 distinction on biarch platforms.
11692         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
11693         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
11694         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
11695
11696 2005-09-02  Bruno Haible  <bruno@clisp.org>
11697
11698         * gnulib-tool (import): In the other first-use case, provide defaults
11699         as well.
11700
11701 2005-09-02  Bruno Haible  <bruno@clisp.org>
11702
11703         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
11704         patches not yet found in the latest gettext release.
11705
11706 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
11707
11708         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
11709         to avoid a collision with bits/local_lim.h in glibc.
11710         All uses changed.  Problem reported by Dmitry V. Levin in
11711         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
11712
11713         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
11714         bugs in int versus size_t comparisons.
11715         (re_string_context_at): Fix bug where the code assumed that
11716         Idx is signed.
11717
11718         Use bool where appropriate.
11719         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
11720         All callers changed.
11721         (calc_eclosure_iter): Likewise, for ROOT arg.
11722         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
11723         (build_charclass_op): Likewise, for NON_MATCH arg.
11724         * lib/regex_internal.c (re_string_allocate, re_string_construct):
11725         (re_string_construct_common): Likewise, for ICASE arg.
11726         * lib/regexec.c (re_search_2_stub, re_search_stub):
11727         Likewise, for RET_LEN arg.
11728         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
11729         (set_regs): Likewise, for FL_BACKTRACK arg.
11730         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
11731         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
11732         (calc_eclosure_iter, parse_bracket_exp):
11733         Use bool for internal variables that are booleans.
11734         * lib/regexec.c (re_search_internal, check_matching,
11735         proceed_next_node):
11736         (set_regs, build_sifted_states, sift_states_bkref):
11737         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
11738         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
11739         (find_collation_sequence_value):
11740         Likewise.
11741         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
11742         (re_node_set_compare):
11743         Return bool, not int. All callers changed.
11744         * lib/regexec.c (check_halt_node_context, check_dst_limits):
11745         (build_trtable, check_node_accept): Likewise.
11746         * lib/regex_internal.h: Include stdbool.h.
11747
11748         Fix bugs uncovered when converting to bool.
11749         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
11750         failure instead of charging ahead blindly.
11751         * lib/regex_internal.c (register_state): Likewise.
11752         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
11753         for freeing internal storage.
11754         (group_nodes_into_DFA_states): Use unsigned int, not int, for
11755         bitset pieces used as boolean, to avoid undefined behavior
11756         on hosts that do int overflow checking.
11757
11758 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
11759
11760         * config/srclist.txt: Add glibc bugs 1285-1287.
11761
11762 2005-09-01  Jim Meyering  <jim@meyering.net>
11763
11764         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
11765         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
11766         Require gl_STAT_MACROS, too.
11767
11768 2005-09-01  Bruno Haible  <bruno@clisp.org>
11769
11770         * gnulib-tool (import): In the first-use case, provide defaults.
11771
11772 2005-09-01  Bruno Haible  <bruno@clisp.org>
11773
11774         * gnulib-tool (func_import): Remove the .tmp files.
11775
11776 2005-09-01  Bruno Haible  <bruno@clisp.org>
11777
11778         * gnulib-tool (func_import): Fix handling of symbolic links.
11779
11780 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
11781
11782         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
11783         old glibc regex code mishandles strings longer than 2**31 bytes.
11784         This patch fixes this when the regex code is used in gnulib
11785         (i.e., outside glibc).
11786
11787         This patch should not affect the use of the regex code inside
11788         glibc.  No doubt this problem also needs to be handled for glibc
11789         as well, but the result will be an incompatible change to the
11790         glibc ABI, and the old ABI will have to be supported too.  That
11791         can be the the subject for another patch.
11792
11793         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
11794         governing whether the rest of this patch is active.  By default,
11795         the macro is disabled and the patch has no effect.
11796         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
11797         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
11798         (struct re_pattern_buffer, re_search, re_search_2, re_match):
11799         (re_match_2, re_set_registers): Use the new types.
11800         * lib/regex_internal.h (Idx, re_hashval_t): New types.
11801         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
11802         New macros.
11803         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
11804         (re_string_context_at, bin_tree_t, re_dfastate_t):
11805         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
11806         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
11807         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
11808         (re_string_char_size_at, re_string_wchar_at):
11809         (re_string_elem_size_at):
11810         Use the new types and macros to port to 64-bit hosts.
11811         Use unsigned types for internal values, so that the code
11812         mostly works even for arrays larger than SSIZE_MAX.
11813         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
11814         (search_duplicated_node, calc_eclosure_iter, fetch_number):
11815         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
11816         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
11817         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
11818         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
11819         (calc_inveclosure, parse_dup_op, build_range_exp):
11820         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
11821         (fetch_number, create_token_tree, mark_opt_subexp):
11822         Likewise.
11823         * lib/regex_internal.c (re_string_construct_common,
11824         create_ci_newstate):
11825         (create_cd_newstate, re_string_allocate, re_string_construct):
11826         (re_string_realloc_buffers, build_wcs_upper_buffer):
11827         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
11828         (re_string_reconstruct, re_string_peek_byte_case):
11829         (re_string_fetch_byte_case, re_string_context_at):
11830         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
11831         (re_node_set_init_copy, re_node_set_add_intersect):
11832         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
11833         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
11834         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
11835         (re_acquire_state, re_acquire_state_context, register_state):
11836         Likewise.
11837         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
11838         search_cur_bkref_entry):
11839         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
11840         (re_search_internal, re_search_2_stub, re_search_stub)
11841         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
11842         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
11843         (update_cur_sifted_state, check_dst_limits):
11844         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
11845         (check_subexp_limits, sift_states_bkref, merge_state_array):
11846         (check_subexp_matching_top, get_subexp, get_subexp_sub):
11847         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
11848         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
11849         (expand_bkref_cache, check_node_accept_bytes):
11850         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
11851         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
11852         (acquire_init_state_context, check_halt_node_context):
11853         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
11854         (sift_states_backward, clean_state_log_if_needed):
11855         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
11856         (find_recover_state, transit_state_sb, transit_state_mb):
11857         (transit_state_bkref, build_trtable, match_ctx_clean):
11858         Likewise.
11859         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
11860         to work around an assumption that REG_MISSING is negative.
11861
11862         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
11863         (seek_collating_symbol_entry) [defined _LIBC]:
11864         (lookup_collation_sequence_value) [defined _LIBC]:
11865         (build_range_exp, build_collating_symbol) [defined _LIBC]:
11866         Use prototypes rather than old-style function definitions.
11867         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
11868         (transit_state_sb) [0]:
11869         (find_collation_sequence_value) [defined _LIBC]: Likewise.
11870
11871         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
11872         rm_eo.
11873
11874         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
11875         (optimize_subexps, lower_subexp):
11876         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
11877         since the signed shift might overflow.  Use 1u<<31 instead.
11878         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
11879         Likewise.
11880         * lib/regexec.c (check_dst_limits_calc_pos_1,
11881         check_subexp_matching_top): Likewise.
11882
11883         * lib/regcomp.c (optimize_subexps, lower_subexp):
11884         Use CHAR_BIT rather than 8, for clarity.
11885         * lib/regexec.c (check_dst_limits_calc_pos_1):
11886         (check_subexp_matching_top): Likewise.
11887         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
11888         have to worry about portability issues when shifting it left.
11889         Remove no-longer-needed test for table_size > 0.
11890         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
11891         in a word, as the resulting behavior is undefined.
11892         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
11893         in one case, a <= should have been an <, and in another case the
11894         whole test was missing.
11895         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
11896         the standard name CHAR_BIT.
11897         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
11898         this is not true on one's complement and signed-magnitude hosts.
11899
11900         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
11901         next_last_offset.
11902         (struct re_dfa_t): Remove unused member states_alloc.
11903         * lib/regcomp.c (init_dfa): Don't initialize unused members.
11904
11905 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
11906
11907         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
11908         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
11909         and large-file glibc and in 32-bit large-file Solaris.
11910
11911 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
11912
11913         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
11914         lengths fit in regoff_t; this isn't true if regoff_t is the same
11915         width as size_t.
11916         * lib/regex.c (re_search_internal): 5th arg is LAST_START
11917         (= START + RANGE) instead of RANGE.  This avoids overflow
11918         problems when regoff_t is the same width as size_t.
11919         All callers changed.
11920         (re_search_2_stub): Check for overflow when adding the
11921         sizes of the two strings.
11922         (re_search_stub): Check for overflow when adding START
11923         to RANGE; if it occurs, substitute the extreme value.
11924
11925 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
11926
11927         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
11928
11929 2005-08-31  Jim Meyering  <jim@meyering.net>
11930
11931         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
11932         a pointer-to-const.
11933         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
11934         (register_state): Likewise.
11935         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
11936         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
11937         (group_nodes_into_DFAstates): Likewise.
11938
11939 2005-08-31  Jim Meyering  <jim@meyering.net>
11940
11941         * check-module: Add a FIXME comment.
11942
11943 2005-08-31  Eric Blake  <ebb9@byu.net>
11944
11945         * modules/unistd-safer (Files): Add unistd--.h.
11946         * modules/stdio-safer (Files): Add stdio--.h.
11947
11948 2005-08-31  Derek Price  <derek@ximbiot.com>
11949
11950         * lib/getdelim.c (getdelim): Return EOF on EOF.
11951         Reported by Larry Jones <lawrence.jones@ugs.com>.
11952
11953 2005-08-31  Bruno Haible  <bruno@clisp.org>
11954
11955         Avoid unnecessary diffs in the generated lib/Makefile.am.
11956         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
11957         the generated files.
11958         (func_import): Don't set cmd.
11959
11960 2005-08-31  Bruno Haible  <bruno@clisp.org>
11961
11962         * lib/strstr.c: Include <stddef.h>, for NULL.
11963         * lib/strcasestr.c: Likewise.
11964         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
11965
11966 2005-08-31  Bruno Haible  <bruno@clisp.org>
11967
11968         * gnulib-tool: New option --macro-prefix.
11969         (func_import): Use macro_prefix.
11970         (import): Handle option --macro-prefix.
11971
11972 2005-08-31  Bruno Haible  <bruno@clisp.org>
11973
11974         * gnulib-tool (import): Rename most ac_* variables to cached_*.
11975         Also use new variables cached_lgpl, cached_libtool.
11976
11977 2005-08-31  Bruno Haible  <bruno@clisp.org>
11978
11979         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
11980         always instantiating them.
11981
11982 2005-08-31  Bruno Haible  <bruno@clisp.org>
11983
11984         * gnulib-tool (func_import): Read the previous cached settings
11985         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
11986         earlier added by gnulib but are now dropped. Warn when a gnulib file
11987         overwrites a non-gnulib file.
11988
11989 2005-08-31  Bruno Haible  <bruno@clisp.org>
11990
11991         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
11992         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
11993         projects that don't keep autogenerated files in CVS. Put into
11994         actioncmd only the specified modules, not the transitive closure.
11995
11996 2005-08-31  Bruno Haible  <bruno@clisp.org>
11997
11998         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
11999         Create directories that shall be filled.
12000         (import): Don't look for gl_* macros in configure.ac. Recurse across
12001         all directories containing a gnulib-cache.m4 files, if meaningful.
12002
12003 2005-08-31  Bruno Haible  <bruno@clisp.org>
12004
12005         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
12006         (import): Set seen_libtool when we see gl_LIBTOOL.
12007
12008 2005-08-31  Bruno Haible  <bruno@clisp.org>
12009
12010         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
12011         declaration macro definitions from generated gnulib.m4.
12012
12013 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
12014
12015         * lib/iconvme.h: Add prototype for iconv_alloc.
12016
12017 2005-08-29  Simon Josefsson  <jas@extundo.com>
12018
12019         * lib/iconvme.c: Fix errno.
12020
12021 2005-08-29  Bruno Haible  <bruno@clisp.org>
12022
12023         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
12024         that it works when the directory contains spaces.
12025
12026 2005-08-29  Bruno Haible  <bruno@clisp.org>
12027
12028         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
12029
12030 2005-08-29  Bruno Haible  <bruno@clisp.org>
12031
12032         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
12033         Emit more advice.
12034
12035 2005-08-29  Bruno Haible  <bruno@clisp.org>
12036         and Stepan Kasal  <kasal@ucw.cz>
12037
12038         * check-module: If more parameters are given, check each of them
12039         separately; add more exceptions, as noted by Jim Meyering.
12040         (check_module): New procedure.
12041         (%exempt_header): Now contains all exceptions.
12042
12043 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
12044
12045         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
12046
12047 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
12048
12049         * lib/iconvme.c: Split iconv_string into iconv_alloc.
12050
12051 2005-08-28  Bruno Haible  <bruno@clisp.org>
12052
12053         * m4/gnulib-tool.m4: New file.
12054
12055 2005-08-27  Jim Meyering  <jim@meyering.net>
12056
12057         * modules/unistd-safer (Files): Add pipe-safer.c.
12058         * modules/fcntl-safer (Files): Add creat-safer.c.
12059
12060 2005-08-27  Jim Meyering  <jim@meyering.net>
12061
12062         * m4/stdlib-safer.m4: New file.  From coreutils.
12063         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
12064         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
12065         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
12066         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
12067         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
12068
12069 2005-08-27  Jim Meyering  <jim@meyering.net>
12070
12071         * lib/fopen-safer.c: Merge minor changes from coreutils.
12072         * lib/dup-safer.c: Likewise.
12073         * lib/fd-safer.c: Likewise.
12074
12075         Merge from coreutils.
12076         * lib/stdio--.h: New file.
12077         * lib/stdlib--.h: New file.
12078         * lib/mkstemp-safer.c: New file.
12079
12080         GNU tar needs these.
12081         * lib/pipe-safer.c: New file.
12082         * lib/creat-safer.c: New file.
12083         * lib/fcntl--.h (creat): Define to creat_safer.
12084         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
12085         * lib/unistd--.h (pipe): Define to pipe_safer.
12086         * lib/unistd-safer.h: Declare pipe_safer.
12087
12088 2005-08-26  Simon Josefsson  <jas@extundo.com>
12089
12090         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
12091         Haible <bruno@clisp.org>.
12092
12093 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
12094
12095         * lib/regex_internal.h: Remove all references to
12096         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
12097         or better.
12098         (bitset_not, bitset_merge, bitset_not_merge):
12099         (bitset_mask, re_string_allocate, re_string_construct):
12100         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
12101         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
12102         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
12103         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
12104         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
12105         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
12106         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
12107         (re_acquire_state_context):
12108         Remove unnecessary forward decls.
12109         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
12110         Put __attribute at function definition,
12111         now that the function decl has been removed.
12112         * lib/regex_internal.c (re_string_peek_byte_case):
12113         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
12114         Likewise.
12115
12116 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
12117
12118         * m4/regex.m4: Add AC_PREREQ(2.50).
12119         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
12120
12121 2005-08-25  Simon Josefsson  <jas@extundo.com>
12122
12123         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
12124         __fsetlocking.
12125
12126 2005-08-25  Simon Josefsson  <jas@extundo.com>
12127
12128         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
12129         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
12130         GLIBC specific code.
12131
12132 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
12133
12134         Make regex safe for g++.  This fixes one real bug (an "err"
12135         that should have been "*err").  g++ problem reported by
12136         Sam Steingold.
12137         * lib/regex_internal.h (re_calloc): New macro, consistent with
12138         re_malloc etc.  All callers of calloc changed to use re_calloc.
12139         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
12140         not int.  All callers changed.
12141         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
12142         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
12143         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
12144         (find_recover_state): Change "err" to "*err"; this fixes what
12145         appears to be a real bug.
12146         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
12147         versus int.
12148
12149 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
12150
12151         * modules/regex (Depends-on): Add malloc, since the code
12152         assumes that !malloc(0) means failure.
12153
12154 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
12155
12156         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
12157
12158         alloca modernization/simplification for regex.
12159         * lib/regex.c: Remove portability cruft for alloca.  This no longer
12160         needs to be at the start of the file, and can be moved into
12161         regex_internal.h and simplified.
12162         * lib/regex_internal.h: Include <alloca.h>.
12163         (__libc_use_alloca) [!defined _LIBC]: New macro.
12164         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
12165         now works outside glibc.
12166
12167 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
12168
12169         * config/srclist.txt: Add glibc bugs 1241, 1245.
12170
12171 2005-08-25  Jim Meyering  <jim@meyering.net>
12172
12173         * lib/open-safer.c: Include <config.h>.
12174         Otherwise, we'd lose LARGEFILE support in any file using
12175         e.g. "fcntl--.h"
12176
12177 2005-08-25  Bruno Haible  <bruno@clisp.org>
12178
12179         * m4/minmax.m4: Require autoconf 2.52.
12180         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
12181         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
12182         alternatives of translit over the alphabet.
12183         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
12184
12185 2005-08-24  Simon Josefsson  <jas@extundo.com>
12186
12187         * tests/test-getpass.c: New file.
12188
12189 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
12190
12191         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
12192         for GNU regex features.
12193
12194 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
12195
12196         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
12197         * lib/regex.h (regerror): Likewise.
12198
12199         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
12200         requires this.  (The code never needed it.)
12201
12202         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
12203         All uses of recently-renamed identifiers changed to use the new,
12204         POSIX-compliant names.  The code will build and run just fine
12205         without these changes, but it's better to eat our own dog food
12206         and use the standard-conforming names.
12207
12208         * lib/regex.h: Fix a multitude of POSIX name space violations.
12209         These changes have an effect only for programs that define
12210         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
12211         do not change anything for programs compiled in the normal way.
12212         Also, there is no effect on the ABI.
12213
12214         (_REGEX_SOURCE): New macro.
12215         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
12216         defined and _GNU_SOURCE is not; this fixes a name space violation.
12217
12218         Rename the following macros to obey POSIX requirements.
12219         The old names are still visible as macros if _REGEX_SOURCE is defined.
12220         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
12221         RE_BACKSLASH_ESCAPE_IN_LISTS.
12222         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
12223         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
12224         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
12225         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
12226         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
12227         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
12228         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
12229         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
12230         (REG_INTERVALS): renamed from RE_INTERVALS.
12231         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
12232         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
12233         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
12234         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
12235         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
12236         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
12237         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
12238         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
12239         RE_UNMATCHED_RIGHT_PAREN_ORD.
12240         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
12241         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
12242         (REG_DEBUG): renamed from RE_DEBUG.
12243         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
12244         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
12245         unusual, since we can't clash with the POSIX REG_ICASE.
12246         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
12247         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
12248         (REG_NO_SUB): renamed from RE_NO_SUB.
12249         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
12250         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
12251         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
12252         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
12253         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
12254         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
12255         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
12256         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
12257         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
12258         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
12259         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
12260         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
12261         RE_SYNTAX_POSIX_MINIMAL_BASIC.
12262         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
12263         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
12264         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
12265         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
12266         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
12267         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
12268         (REG_FIXED): Renamed from REGS_FIXED.
12269         (REG_NREGS): Renamed from RE_NREGS.
12270
12271         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
12272         of other REG_* macros, since POSIX says the user is allowed to
12273         #undef these macros selectively.
12274
12275         (reg_errcode_t): Update comment stating what other tables need
12276         to be consistent.
12277
12278         Rename the following enum values to obey POSIX requirements.
12279         The old names are still visible as macros.
12280         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
12281         is not defined, since GNU is supposed to be a superset of POSIX as
12282         much as possible, and since we want reg_errcode_t to be a signed
12283         type for implementation consistency.
12284         (_REG_NOERROR): Renamed from REG_NOERROR.
12285         (_REG_NOMATCH): Renamed from REG_NOMATCH.
12286         (_REG_BADPAT): Renamed from REG_BADPAT.
12287         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
12288         (_REG_ECTYPE): Renamed from REG_ECTYPE.
12289         (_REG_EESCAPE): Renamed from REG_EESCAPE.
12290         (_REG_ESUBREG): Renamed from REG_ESUBREG.
12291         (_REG_EBRACK): Renamed from REG_EBRACK.
12292         (_REG_EPAREN): Renamed from REG_EPAREN.
12293         (_REG_EBRACE): Renamed from REG_EBRACE.
12294         (_REG_BADBR): Renamed from REG_BADBR.
12295         (_REG_ERANGE): Renamed from REG_ERANGE.
12296         (_REG_ESPACE): Renamed from REG_ESPACE.
12297         (_REG_BADRPT): Renamed from REG_BADRPT.
12298         (_REG_EEND): Renamed from REG_EEND.
12299         (_REG_ESIZE): Renamed from REG_ESIZE.
12300         (_REG_ERPAREN): Renamed from REG_ERPAREN.
12301         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
12302         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
12303         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
12304         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
12305
12306         (_REG_RE_NAME, _REG_RM_NAME): New macros.
12307         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
12308         changed.  But support the old name if the new one is not defined
12309         and if _REGEX_SOURCE.
12310
12311         Change the following member names in struct re_pattern_buffer.
12312         The old names are still supported if !_REGEX_SOURCE.
12313         The new names are always supported, regardless of _REGEX_SOURCE.
12314         (re_buffer): Renamed from buffer.
12315         (re_allocated): Renamed from allocated.
12316         (re_used): Renamed from used.
12317         (re_syntax): Renamed from syntax.
12318         (re_fastmap): Renamed from fastmap.
12319         (re_translate): Renamed from translate.
12320         (re_can_be_null): Renamed from can_be_null.
12321         (re_regs_allocated): Renamed from regs_allocated.
12322         (re_fastmap_accurate): Renamed from fastmap_accurate.
12323         (re_no_sub): Renamed from no_sub.
12324         (re_not_bol): Renamed from not_bol.
12325         (re_not_eol): Renamed from not_eol.
12326         (re_newline_anchor): Renamed from newline_anchor.
12327
12328         Change the following member names in struct re_registers.
12329         The old names are still supported if !_REGEX_SOURCE.
12330         The new names are always supported, regardless of _REGEX_SOURCE.
12331         (rm_num_regs): Renamed from num_regs.
12332         (rm_start): Renamed from start.
12333         (rm_end): Renamed from end.
12334
12335         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
12336         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
12337         Prepend __ to parameter names.
12338
12339         Undo yesterday's changes.
12340
12341 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
12342
12343         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
12344         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
12345         lib/regex.c.
12346
12347 2005-08-24  Jim Meyering  <jim@meyering.net>
12348
12349         Sync from coreutils.
12350         * m4/fcntl-safer.m4: New file.
12351
12352         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
12353         and object files for this module.
12354
12355 2005-08-24  Jim Meyering  <jim@meyering.net>
12356
12357         Sync from coreutils.
12358         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
12359
12360 2005-08-24  Jim Meyering  <jim@meyering.net>
12361
12362         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
12363         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
12364
12365 2005-08-24  Jim Meyering  <jim@meyering.net>
12366
12367         * modules/fcntl-safer: New module.
12368         * modules/fts (Depends-on): Add fcntl-safer.
12369         * MODULES.html.sh (File descriptor based Input/Output):
12370         Add fcntl-safer.
12371
12372 2005-08-24  Bruno Haible  <bruno@clisp.org>
12373
12374         Support for unit test modules.
12375         * modules/README: Mention tests modules.
12376         * modules/TEMPLATE-TESTS: New file.
12377         * gnulib-tool: New options --extract-tests-module, --with-tests and
12378         --tests-base (unused for the moment).
12379         (testsbase, inctests): New variables.
12380         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
12381         (func_verify_module): Exclude TEMPLATE-TESTS.
12382         (func_verify_nontests_module, func_verify_tests_module): New functions.
12383         (func_get_dependencies): Add implicit dependency for tests modules.
12384         (func_get_tests_module): New function.
12385         (func_modules_transitive_closure): When --with-tests was specified,
12386         include the unit tests as well, unless explicitly avoided.
12387         (func_emit_lib_Makefile_am): Ignore the tests modules here.
12388         (func_emit_tests_Makefile_am): New function.
12389         (func_create_testdir): When --with-tests was specified, emit a
12390         tests/ directory.
12391         * MODULES.html.sh (Future developments): Update.
12392
12393 2005-08-24  Bruno Haible  <bruno@clisp.org>
12394
12395         * modules/tls-tests: New file.
12396         * tests/test-tls.c: New file, from GNU gettext.
12397
12398 2005-08-24  Bruno Haible  <bruno@clisp.org>
12399
12400         * modules/lock-tests: New file.
12401         * tests/test-lock.c: New file, from GNU gettext.
12402
12403 2005-08-24  Bruno Haible  <bruno@clisp.org>
12404
12405         * lib/lock.h: Add multiple inclusion guard.
12406         * lib/tls.h: Add multiple inclusion guard.
12407
12408 2005-08-24  Bruno Haible  <bruno@clisp.org>
12409
12410         * gnulib-tool: Add support for the --aux-dir option to
12411         --create-testdir, --create-megatestdir, --test, --megatest.
12412         (func_create_testdir, func_create_megatestdir): Optionally emit a
12413         AC_CONFIG_AUX_DIR directive.
12414         (create-testdir, create-megatestdir, test, megatest): Provide a
12415         default value for $auxdir.
12416
12417 2005-08-24  Bruno Haible  <bruno@clisp.org>
12418
12419         * gnulib-tool (import): Use compound statement instead of subshell
12420         where possible.
12421
12422 2005-08-24  Bruno Haible  <bruno@clisp.org>
12423
12424         * gnulib-tool (import): Change --aux-dir default to "build-aux".
12425
12426 2005-08-24  Bruno Haible  <bruno@clisp.org>
12427
12428         * gnulib-tool (func_version): Update.
12429
12430 2005-08-24  Bruno Haible  <bruno@clisp.org>
12431
12432         * gnulib-tool (func_import, func_create_testdir,
12433         func_create_megatestdir): Quote all autoconf macro arguments.
12434
12435 2005-08-24  Bruno Haible  <bruno@clisp.org>
12436
12437         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
12438         option --force, because --force causes the aclocal.m4 of each
12439         subdirectory to be newer than the corresponding config.h.in.
12440
12441 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
12442
12443         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
12444         All contents moved to gl_REGEX.
12445         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
12446         assume that it does.
12447
12448 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
12449
12450         * lib/regex.h (REG_NOSYS)
12451         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
12452         Define, since POSIX requires it as of 2001.
12453         (_REG_ENOSYS)
12454         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
12455         New private symbol, used to keep the enum signed in all cases.
12456         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
12457         Youngman in
12458         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
12459
12460         * lib/regex_internal.c (re_string_skip_chars, register_state):
12461         (calc_state_hash):
12462         Remove forward decls; no longer needed now that we use prototypes.
12463         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
12464         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
12465         (clean_state_log_if_needed): Likewise.
12466
12467 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
12468
12469         * config/srclist.txt: Add glibc bugs 1231-1233.
12470
12471 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
12472
12473         Fix problems reported by Sam Steingold in
12474         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
12475         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
12476         assumed that reg_errcode_t is a signed type, which is not
12477         necessarily true if _XOPEN_SOURCE is not defined.
12478         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
12479         since some compilers warn about it otherwise.
12480
12481 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
12482
12483         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
12484         (init_word_char, create_initial_state, duplicate_node_closure):
12485         (fetch_token, peek_token_bracket, build_range_exp):
12486         (build_collating_symbol): Remove forward decls; no longer needed
12487         now that we use prototypes.
12488
12489         * lib/regcomp.c:
12490         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
12491         (re_compile_fastmap_iter, regcomp, regerror, regfree):
12492         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
12493         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
12494         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
12495         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
12496         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
12497         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
12498         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
12499         (build_range_exp, build_collating_symbol, parse_bracket_exp):
12500         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
12501         (build_charclass, build_charclass_op, fetch_number, create_tree):
12502         (create_token_tree, mark_opt_subexp, duplicate_tree):
12503         Use prototypes rather than old-style definitions.
12504
12505         * lib/regex_internal.c:
12506         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
12507         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
12508         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
12509         (re_string_reconstruct, re_string_peek_byte_case):
12510         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
12511         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
12512         (re_node_set_init_copy, re_node_set_add_intersect):
12513         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
12514         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
12515         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
12516         (re_acquire_state, re_acquire_state_context, register_state):
12517         (create_ci_newstate, create_cd_newstate, free_state):
12518         Likewise.
12519         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
12520         re_search_2):
12521         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
12522         (re_search_internal, prune_impossible_nodes):
12523         (acquire_init_state_context, check_matching, static):
12524         (check_halt_node_context, check_halt_state_context, proceed_next_node):
12525         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
12526         (update_regs, sift_states_backward, build_sifted_states):
12527         (clean_state_log_if_needed, merge_state_array):
12528         (update_cur_sifted_state, add_epsilon_src_nodes):
12529         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
12530         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
12531         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
12532         (find_recover_state, check_subexp_matching_top, transit_state_mb):
12533         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
12534         (check_arrival, check_arrival_add_next_nodes):
12535         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
12536         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
12537         (check_node_accept_bytes, check_node_accept, extend_buffers):
12538         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
12539         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
12540         (sift_ctx_init):
12541         Likewise.
12542
12543         * lib/regex_internal.h:
12544         (re_string_allocate, re_string_construct, re_string_reconstruct):
12545         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
12546         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
12547         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
12548         (re_string_context_at, re_string_peek_byte_case):
12549         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
12550         is defined, since we now use prototypes always.
12551
12552         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
12553         C89 or better.  All uses removed.
12554
12555 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
12556
12557         * config/srclist.txt: Add glibc bugs 1220-1227.
12558
12559 2005-08-20  Jim Meyering  <jim@meyering.net>
12560
12561         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
12562         of unused local, dfa.
12563
12564 2005-08-20  Bruno Haible  <bruno@clisp.org>
12565
12566         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
12567
12568 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
12569
12570         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
12571         (re_node_set_insert_last, re_dfa_add_node):
12572         Rename local variables to avoid GCC shadowing warnings.
12573
12574 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
12575
12576         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
12577         [defined lint]: Suppress bogus uninitialized-variable warnings.
12578
12579         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
12580         and let the caller return REG_ESPACE if out of space.  This
12581         removes an uninitialied-variable warning with GCC 4.0.1, and also
12582         avoids taking the address of a local variable.  All callers
12583         changed.
12584
12585 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
12586
12587         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
12588         $LIBCSRC/posix/regexec.c.
12589         Add glibc bug 1217 for regcomp.c.
12590
12591 2005-08-19  Jim Meyering  <jim@meyering.net>
12592
12593         * lib/regexec.c (proceed_next_node): Redo local variables to
12594         avoid GCC shadowing warnings.
12595
12596 2005-08-18  Bruno Haible  <bruno@clisp.org>
12597
12598         * lib/strstr.c (strstr): Fix return value in multibyte case.
12599         * lib/strcasestr.c (strcasestr): Likewise.
12600
12601 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
12602
12603         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
12604
12605 2005-08-17  Jim Meyering  <jim@meyering.net>
12606
12607         Make the %s format (seconds since the epoch) work for a negative
12608         number and when used with a zero-padded field width, e.g. %015s.
12609
12610         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
12611         label so that it precedes the code to set `digits'.  Otherwise,
12612         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
12613         print `00-22'.  Now, it prints `-0022', as it should.
12614
12615 2005-08-17  Bruno Haible  <bruno@clisp.org>
12616
12617         * modules/strstr (Files): Add m4/mbrtowc.m4.
12618         (Depends-on): Add mbuiter.
12619
12620 2005-08-17  Bruno Haible  <bruno@clisp.org>
12621
12622         * modules/strcasestr: New file.
12623         * MODULES.html.sh (String handling, based on ANSI C 89): Add
12624         strcasestr.
12625
12626 2005-08-17  Bruno Haible  <bruno@clisp.org>
12627
12628         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
12629
12630 2005-08-17  Bruno Haible  <bruno@clisp.org>
12631
12632         * modules/mbuiter: New file.
12633         * MODULES.html.sh (Extended multibyte and wide character utilities):
12634         Add mbuiter.
12635
12636 2005-08-17  Bruno Haible  <bruno@clisp.org>
12637
12638         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
12639         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
12640
12641 2005-08-17  Bruno Haible  <bruno@clisp.org>
12642
12643         * m4/strcasestr.m4: New file.
12644
12645 2005-08-17  Bruno Haible  <bruno@clisp.org>
12646
12647         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
12648         * lib/strstr.c: Completely rewritten, with multibyte locale support.
12649
12650 2005-08-17  Bruno Haible  <bruno@clisp.org>
12651
12652         * lib/strcasestr.h: New file.
12653         * lib/strcasestr.c: New file.
12654
12655 2005-08-17  Bruno Haible  <bruno@clisp.org>
12656
12657         * lib/strcasecmp.c: Use mbuiter.h.
12658
12659 2005-08-17  Bruno Haible  <bruno@clisp.org>
12660
12661         * lib/mbuiter.h: New file.
12662
12663 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
12664
12665         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
12666         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
12667         and gl_GETOPT are both invoked via different paths (as happens
12668         with GNU tar CVS because it uses both argp and getopt), the former
12669         wins.
12670
12671 2005-08-16  Bruno Haible  <bruno@clisp.org>
12672
12673         * modules/tls: New file.
12674         * MODULES.html.sh (Multithreading): Add tls.
12675
12676 2005-08-16  Bruno Haible  <bruno@clisp.org>
12677
12678         * modules/strnlen1: New file.
12679         * MODULES.html.sh (String handling): Add strnlen1.
12680
12681 2005-08-16  Bruno Haible  <bruno@clisp.org>
12682
12683         * modules/strcase (Files): Add m4/mbrtowc.m4.
12684         (Depends-on): Add strnlen1, mbchar.
12685
12686 2005-08-16  Bruno Haible  <bruno@clisp.org>
12687
12688         * modules/mbiter: New file.
12689         * MODULES.html.sh (Extended multibyte and wide character utilities):
12690         Add mbiter.
12691
12692 2005-08-16  Bruno Haible  <bruno@clisp.org>
12693
12694         * modules/mbfile: New file.
12695         * MODULES.html.sh (Extended multibyte and wide character utilities):
12696         Add mbfile.
12697
12698 2005-08-16  Bruno Haible  <bruno@clisp.org>
12699
12700         * modules/mbchar: New file.
12701         * MODULES.html.sh (Extended multibyte and wide character utilities):
12702         New section.
12703
12704 2005-08-16  Bruno Haible  <bruno@clisp.org>
12705
12706         * m4/tls.m4: New file, from GNU gettext.
12707
12708 2005-08-16  Bruno Haible  <bruno@clisp.org>
12709
12710         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
12711         always.
12712         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
12713
12714 2005-08-16  Bruno Haible  <bruno@clisp.org>
12715
12716         * m4/mbiter.m4: New file.
12717
12718 2005-08-16  Bruno Haible  <bruno@clisp.org>
12719
12720         * m4/mbfile.m4: New file.
12721
12722 2005-08-16  Bruno Haible  <bruno@clisp.org>
12723
12724         * m4/mbchar.m4: New file.
12725
12726 2005-08-16  Bruno Haible  <bruno@clisp.org>
12727
12728         * lib/tls.h: New file, from GNU gettext.
12729         * lib/tls.c: New file, from GNU gettext.
12730
12731 2005-08-16  Bruno Haible  <bruno@clisp.org>
12732
12733         * lib/strnlen1.h: New file.
12734         * lib/strnlen1.c: New file.
12735
12736 2005-08-16  Bruno Haible  <bruno@clisp.org>
12737
12738         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
12739         (mbi_init): Update.
12740         (mbi_avail, mbi_advance): Let the iteration end before the terminating
12741         NUL byte, not after it.
12742
12743 2005-08-16  Bruno Haible  <bruno@clisp.org>
12744
12745         * lib/strcase.h (strcasecmp): Add note in comments.
12746         * lib/strncasecmp.c: Use code from strcasecmp.c.
12747         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
12748         (strcasecmp): Work correctly in multibyte locales.
12749
12750 2005-08-16  Bruno Haible  <bruno@clisp.org>
12751
12752         * lib/mbiter.h: New file.
12753
12754 2005-08-16  Bruno Haible  <bruno@clisp.org>
12755
12756         * lib/mbfile.h: New file.
12757
12758 2005-08-16  Bruno Haible  <bruno@clisp.org>
12759
12760         * lib/mbchar.h: New file.
12761         * lib/mbchar.c: New file.
12762
12763 2005-08-16  Bruno Haible  <bruno@clisp.org>
12764
12765         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
12766         the valid ones. Makes the comparison operations transitive:
12767         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
12768         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
12769
12770 2005-08-15  Simon Josefsson  <jas@extundo.com>
12771
12772         * modules/ssize_t (License): Change to 'unlimited'.
12773
12774         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
12775
12776 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
12777
12778         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
12779         Add comments for each pending glibc patch.
12780
12781 2005-08-15  Bruno Haible  <bruno@clisp.org>
12782
12783         * lib/regex.h (__restrict_arr): Don't define to __restrict if
12784         __cplusplus is defined.
12785
12786 2005-08-14  Jim Meyering  <jim@meyering.net>
12787
12788         Sync from coreutils.
12789
12790         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
12791         Use the hash-table-based cycle-detection code not just when
12792         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
12793         Reported by James Youngman in
12794         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
12795         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
12796         FTS_TIGHT_CYCLE_CHECK.
12797         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
12798         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
12799         once again.
12800         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
12801         * lib/fts.c (fd_safer): Remove decl.
12802         Include fcntl--.h rather than unistd-safer.h
12803         (fts_safe_changedir): Don't call fd_safer; no longer needed
12804         now that we include fcntl--.h.
12805
12806 2005-08-12  Simon Josefsson  <jas@extundo.com>
12807
12808         * modules/getndelim2: Use ssize_t module.
12809         * modules/getnline: Likewise.
12810         * modules/safe-read: Likewise.
12811         * modules/xreadlink: Likewise.
12812
12813         * modules/ssize_t: New file.
12814
12815 2005-08-12  Simon Josefsson  <jas@extundo.com>
12816
12817         * m4/readline.m4: Look for termcap, curses or ncurses if required.
12818
12819 2005-08-12  Simon Josefsson  <jas@extundo.com>
12820
12821         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
12822         ssize_t.
12823
12824 2005-08-12  Simon Josefsson  <jas@extundo.com>
12825
12826         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
12827         readline, getdelim and check_version.
12828         (Support for systems lacking ISO C 99: Sizes of integer types):
12829         Add size_max.
12830
12831 2005-08-12  Bruno Haible  <bruno@clisp.org>
12832
12833         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
12834
12835 2005-08-11  Simon Josefsson  <jas@extundo.com>
12836
12837         * modules/readline: New file.
12838
12839         * modules/strnlen (Files): Add strnlen.h.
12840
12841 2005-08-11  Simon Josefsson  <jas@extundo.com>
12842
12843         * m4/readline.m4: New file.
12844
12845 2005-08-11  Simon Josefsson  <jas@extundo.com>
12846
12847         * lib/readline.h, readline.c: New file.
12848
12849 2005-08-11  Simon Josefsson  <jas@extundo.com>
12850
12851         * doc/gnulib.texi (Initial import, Finishing touches): Mention
12852         gl_AVOID.
12853
12854 2005-08-11  Bruno Haible  <bruno@clisp.org>
12855
12856         * lib/strnlen.h (strnlen): Change parameter name to match comment.
12857
12858 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
12859
12860         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
12861
12862 2005-08-10  Simon Josefsson  <jas@extundo.com>
12863
12864         * tests/test-iconvme.c: New file.
12865
12866 2005-08-10  Simon Josefsson  <jas@extundo.com>
12867
12868         * m4/strnlen.m4: New file.
12869
12870         * m4/strndup.m4: Don't check for strnlen declaration, done in
12871         strnlen.m4.
12872
12873 2005-08-10  Simon Josefsson  <jas@extundo.com>
12874
12875         * lib/strndup.c: Use strnlen.h.
12876
12877         * lib/strnlen.h: New file.
12878
12879 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
12880
12881         * README: Typos.
12882
12883 2005-08-02  Simon Josefsson  <jas@extundo.com>
12884
12885         * modules/readline: New file.
12886
12887 2005-08-02  Simon Josefsson  <jas@extundo.com>
12888
12889         * modules/getdelim: New file.
12890
12891         * modules/getline: Rewrite, don't use getndelim2.
12892
12893 2005-08-02  Simon Josefsson  <jas@extundo.com>
12894
12895         * m4/getline.m4: Separate out getdelim stuff into separate module.
12896
12897         * m4/getdelim.m4: New file.
12898
12899 2005-08-02  Simon Josefsson  <jas@extundo.com>
12900
12901         * lib/getline.h, getline.c: Rewrite.
12902
12903         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
12904
12905 2005-07-31  Bruno Haible  <bruno@clisp.org>
12906
12907         * lib/lock.h (gl_lock_initializer): New macro.
12908         (gl_lock_define_initialized): Use it.
12909         (gl_rwlock_initializer): New macro.
12910         (gl_rwlock_define_initialized): Use it.
12911         (gl_recursive_lock_initializer): New macro.
12912         (gl_recursive_lock_define_initialized): Use it.
12913
12914 2005-07-30  Karl Berry  <karl@gnu.org>
12915
12916         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
12917         Report from Ben Pfaff, regarding getopt.
12918
12919 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
12920
12921         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
12922         normal way.
12923         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
12924         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
12925         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
12926         (gl_GETOPT): Use the new macros.  Most of the implementation
12927         is moved to the new macros.  This is for programs like Emacs
12928         that don't want all the functionality of gl_GETOPT.
12929
12930 2005-07-26  Bruno Haible  <bruno@clisp.org>
12931
12932         * m4/lock.m4: Update from GNU gettext.
12933
12934 2005-07-26  Bruno Haible  <bruno@clisp.org>
12935
12936         * lib/lock.h: Update from GNU gettext.
12937         * lib/lock.c: Update from GNU gettext.
12938
12939 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
12940
12941         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
12942         obsolescent AC_TRY_RUN.  Include the default includes files, for
12943         'exit'.
12944
12945 2005-07-24  Bruno Haible  <bruno@clisp.org>
12946
12947         * modules/visibility: New file.
12948         * MODULES.html.sh (Misc): Add visibility.
12949
12950 2005-07-24  Bruno Haible  <bruno@clisp.org>
12951
12952         * m4/visibility.m4: New file.
12953
12954 2005-07-24  Bruno Haible  <bruno@clisp.org>
12955
12956         * doc/visibility.texi: New file.
12957
12958 2005-07-22  Bruno Haible  <bruno@clisp.org>
12959
12960         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
12961         $(ALLOCA_H), redundant through BUILT_SOURCES.
12962         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
12963         redundant through BUILT_SOURCES.
12964         * modules/byteswap (Makefile.am): Remove explicit dependency on
12965         $(BYTESWAP_H), redundant through BUILT_SOURCES.
12966         * modules/fnmatch (Makefile.am): Remove explicit dependency on
12967         $(FNMATCH_H), redundant through BUILT_SOURCES.
12968         * modules/getopt (Makefile.am): Remove explicit dependency on
12969         $(GETOPT_H), redundant through BUILT_SOURCES.
12970         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
12971         redundant through BUILT_SOURCES.
12972         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
12973         redundant through BUILT_SOURCES.
12974         * modules/stdbool (Makefile.am): Remove explicit dependency on
12975         $(STDBOOL_H), redundant through BUILT_SOURCES.
12976         * modules/stdint (Makefile.am): Remove explicit dependency on
12977         $(STDINT_H), redundant through BUILT_SOURCES.
12978         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
12979         Remove explicit dependency on $(SYSEXITS_H).
12980         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
12981
12982 2005-07-18  Simon Josefsson  <jas@extundo.com>
12983
12984         * lib/check-version.c (check_version): Accept identical versions too.
12985
12986 2005-07-18  Bruno Haible  <bruno@clisp.org>
12987
12988         * modules/lock: New file.
12989         * MODULES.html.sh (Multithreading): New section.
12990
12991 2005-07-18  Bruno Haible  <bruno@clisp.org>
12992
12993         * m4/lock.m4: New file, from GNU gettext.
12994
12995 2005-07-18  Bruno Haible  <bruno@clisp.org>
12996
12997         * lib/lock.h: New file, from GNU gettext.
12998         * lib/lock.c: New file, from GNU gettext.
12999
13000 2005-07-18  Bruno Haible  <bruno@clisp.org>
13001
13002         * lib/lock.h (gl_once_t): New type.
13003         (gl_once_define, gl_once): New macros.
13004         * lib/lock.c (fresh_once): New variable.
13005         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
13006         functions.
13007
13008 2005-07-16  Simon Josefsson  <jas@extundo.com>
13009
13010         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
13011         workaround, suggested by Bruno.
13012
13013 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
13014
13015         * modules/xalloc (Depends-on): Add xalloc-die.
13016         * modules/xvasprintf (Depends-on): Add xalloc-die.
13017
13018 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
13019
13020         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
13021         with a minor change.
13022
13023 2005-07-15  Bruno Haible  <bruno@clisp.org>
13024
13025         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
13026         When using lib/poll.c, define poll as rpl_poll.
13027
13028 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
13029
13030         * modules/argp (Depends-on): Remove unlocked-io.
13031
13032 2005-07-14  Derek Price  <derek@ximbiot.com>
13033
13034         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
13035         for glob symlink bug.
13036
13037 2005-07-14  Bruno Haible  <bruno@clisp.org>
13038
13039         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
13040         Instead, test for *_unlocked function declarations directly.
13041
13042 2005-07-11  Simon Josefsson  <jas@extundo.com>
13043
13044         * modules/size_max: New file.
13045
13046         * modules/xsize: Depend on size_max module for size_max.m4.
13047
13048 2005-07-11  Simon Josefsson  <jas@extundo.com>
13049
13050         * lib/size_max.h: New file.
13051
13052 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
13053
13054         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
13055         copyright symbol and the year.
13056         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
13057         (version_etc_va): Use parameterized copyright notice.
13058         Reword to conform to the current GNU coding standards.
13059
13060 2005-07-11  Karl Berry  <karl@gnu.org>
13061
13062         * doc/gnulib.texi (Quoting): new node.
13063         (Initial import): more info, from Patrice.
13064
13065 2005-07-11  Bruno Haible  <bruno@clisp.org>
13066
13067         * gnulib-tool (func_usage): Document option --avoid.
13068         (Command line options): Handle --avoid.
13069         (func_acceptable): New function.
13070         (func_modules_transitive_closure): Use it.
13071
13072 2005-07-11  Bruno Haible  <bruno@clisp.org>
13073
13074         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
13075         Reported by Jim Meyering.
13076
13077 2005-07-10  Bruno Haible  <bruno@clisp.org>
13078
13079         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
13080         Needed when size_t is smaller than 'unsigned int'.
13081         Reported by Paul Eggert.
13082
13083 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
13084
13085         * modules/argp (Depends-on): Add unlocked-io
13086
13087 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
13088
13089         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
13090         block of defines.
13091
13092 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
13093
13094         * config/srclist.txt: Comment out regcomp.c, since we have a porting
13095         fix now.
13096
13097 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
13098         and Paul Eggert  <eggert@cs.ucla.edu>
13099
13100         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
13101         in wint_t, not wchar_t.  Remove now-unnecessary cast.
13102
13103 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
13104
13105         * modules/regex (Files): Add lib/regex_internal.c,
13106         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
13107         (Depends-on): Add extensions.
13108         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
13109
13110 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
13111
13112         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
13113         pathconf.
13114         * m4/same.m4 (gl_SAME): Likewise.
13115         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
13116
13117         * m4/regex.m4: Adjust to new libc regex implementation.
13118         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
13119         all the .c and .h parts of (the new) regex.
13120         Quote the m4 stuff better.
13121         Check for RE_ICASE bug of old gnulib.
13122         Check for REG_STARTEND of recent libc.
13123         Rename local variables from jm_* to gl_*.
13124         Quote operand of "test -f".
13125         Say "recent enough" version of libc, not "version 2".
13126         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
13127         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
13128         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
13129         Remove check for btowc, isascii.
13130         Require AM_LANGINFO_CODESET.
13131
13132 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
13133
13134         * lib/regex.c, regex.h: Sync from libc.
13135         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
13136         * lib/regexec.c:
13137         New files, synced from libc, except that regex_internal.h
13138         currently has a small porting fix.
13139
13140 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
13141
13142         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
13143         regex_internal.c, regexec.c.
13144         Add regex_internal.h too, but as a comment, since the libc version
13145         is currently broken in gnulib mode.
13146
13147 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
13148
13149         Support programs like Emacs that use gnulib but not gettext.
13150         * MODULES.html.sh (Internationalization functions): Add gettext-h.
13151         * modules/gettext-h: New file.
13152         * modules/gettext (Files): Remove lib/gettext.h.
13153         (Depends-on): Add gettext-h.
13154         (Makefile.am): Remove lib_SOURCES.
13155         * modules/argmatch, modules/c-stack, modules/closeout:
13156         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
13157         * modules/execute, modules/file-type, modules/getaddrinfo:
13158         * modules/getopt, modules/human, modules/javacomp:
13159         * modules/javaexec, modules/mkdir-p, modules/obstack:
13160         * modules/openat, modules/pagealign_alloc, modules/pipe:
13161         * modules/quotearg, modules/regex, modules/rpmatch:
13162         * modules/unicodeio, modules/userspec, modules/version-etc:
13163         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
13164         * modules/xsetenv:
13165         Depend on gettext-h, not gettext.
13166
13167 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
13168
13169         * gnulib-tool (func_import): Add support for 'public domain' license.
13170         * modules/alloca, modules/atexit, modules/memmove:
13171         Now public domain, not GPL.
13172         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
13173         * modules/realloc, modules/strerror, modules/strtod:
13174         Now LGPL, not GPL.
13175
13176 2005-07-05  Bruno Haible  <bruno@clisp.org>
13177
13178         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
13179         autoconf CVS. Needed for mingw.
13180
13181 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
13182
13183         Remove the dependency of the strftime module on the tzset module.
13184         * modules/strftime (Depends-on): Remove dependency on tzset.
13185
13186 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
13187
13188         Remove the dependency of the strftime module on the tzset module.
13189         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
13190         gl_FUNC_TZSET_CLOBBER.
13191
13192 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
13193
13194         Remove the dependency of the strftime module on the tzset module.
13195         * lib/strftime.c (my_strftime)
13196         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
13197         Copy the input structure, to work around some of the bug with
13198         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
13199         Solaris releases, you should also use the tzset module, but we won't
13200         require it as a dependency any more since we don't want LGPLed code
13201         to depend on GPLed code.
13202
13203 2005-07-02  Jim Meyering  <jim@meyering.net>
13204
13205         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
13206         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
13207         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
13208         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
13209
13210 2005-07-02  Jim Meyering  <jim@meyering.net>
13211
13212         * lib/backupfile.c (backup_args): Change a `0' to NULL.
13213
13214 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
13215
13216         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
13217         declares only 'struct timespec;' (!).
13218
13219 2005-07-01  Jim Meyering  <jim@meyering.net>
13220
13221         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
13222         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
13223         * lib/save-cwd.c, tempname.c:
13224         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
13225         and don't include <sys/file.h>).
13226
13227 2005-06-29  Jim Meyering  <jim@meyering.net>
13228
13229         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
13230         type name.  Use the variable name instead.
13231         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
13232         Likewise.
13233
13234 2005-06-28  Simon Josefsson  <jas@extundo.com>
13235
13236         * modules/check-version (Files): Add check-version.m4.
13237
13238 2005-06-28  Simon Josefsson  <jas@extundo.com>
13239
13240         * m4/check-version.m4: New file, suggested by Jim Meyering
13241         <jim@meyering.net>.
13242
13243 2005-06-28  Simon Josefsson  <jas@extundo.com>
13244
13245         * lib/check-version.h, lib/check-version.c: New files.
13246
13247 2005-06-28  Simon Josefsson  <jas@extundo.com>
13248
13249         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
13250         collision with global variable.  Better indentation.  Don't
13251         increment buffer pointer beyond buffer end.  Based on comments
13252         from Paul Eggert <eggert@cs.ucla.edu>.
13253
13254         * lib/base64.h: Indent.
13255
13256 2005-06-28  Simon Josefsson  <jas@extundo.com>
13257
13258         * doc/gnulib.texi (Library version handling): New section.
13259
13260 2005-06-28  Jim Meyering  <jim@meyering.net>
13261
13262         * check-module (find_included_lib_files): Hard-code another
13263         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
13264         but modules/fts-lgpl (correctly) does not list those files.
13265
13266         * modules/canonicalize (Files): Add lib/pathmax.h.
13267
13268 2005-06-25  Simon Josefsson  <jas@extundo.com>
13269
13270         * modules/check-version: New file.
13271
13272 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
13273
13274         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
13275         initializer of struct addrinfo, as an indication that we don't
13276         care how many members the structure has.
13277
13278 2005-06-24  Derek Price  <derek@ximbiot.com>
13279         and Bruno Haible  <bruno@clisp.org>
13280
13281         Remove stat module & update lstat.
13282         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
13283         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
13284         * m4/stat.m4: Remove this file.
13285
13286 2005-06-24  Derek Price  <derek@ximbiot.com>
13287         and Bruno Haible  <bruno@clisp.org>
13288
13289         Remove stat module & update lstat.
13290         * lib/stat.c: Remove this file...
13291         (slash_aware_lstat): ...moving this content and its support...
13292         * lib/lstat.c (rpl_lstat): ...into here.
13293         * lib/lstat.h: New file.
13294
13295 2005-06-24  Derek Price  <derek@ximbiot.com>
13296         and Bruno Haible  <bruno@clisp.org>
13297
13298         Remove stat module & update lstat.
13299         * config/srclist.txt (libc sources): Remove stat.
13300
13301 2005-06-24  Derek Price  <derek@ximbiot.com>
13302         and Bruno Haible  <bruno@clisp.org>
13303
13304         Remove stat module & update lstat.
13305         * MODULES.html.sh (stat): Remove.
13306         * MODULES.html: Regenerated.
13307         * modules/lstat (Description): Correct function name.
13308         (Files): Add "lstat.h".
13309         (Depends-on): Remove stat, add xalloc, stat-macros.
13310         * modules/stat: Remove this file.
13311         (Include): Add "lstat.h", remove <sys/stat.h>.
13312
13313 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
13314
13315         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
13316         (ranged_convert): Don't save conversion in a temporary struct.
13317         This causes a warning with GCC 4.0.0, and anyway in the typical
13318         case it's not worth the extra 100 bytes or so of code.
13319         (ranged_convert, __mktime_internal): When calling a function via a
13320         pointer P, use P () rather than (*P) (), as we now assume C89 or
13321         better.
13322
13323 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
13324
13325         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
13326         "who -r" failed to give output.  Problem reported by Tim Waugh.
13327
13328         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
13329         (xcalloc): Use it to avoid needless tests.
13330         Problem reported by Jim Meyering.
13331
13332 2005-06-20  Derek Price  <derek@ximbiot.com>
13333
13334         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
13335         unnecessary for Autoconfs > 2.59c.
13336
13337 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
13338
13339         * lib/argp.h (__option_is_short): Check upper limit of
13340         __key. Isprint() requires its argument to have the value
13341         of an unsigned char or EOF.
13342
13343 2005-06-16  Jim Meyering  <jim@meyering.net>
13344
13345         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
13346         when either N or S is zero.
13347
13348 2005-06-16  Derek Price  <derek@ximbiot.com>
13349
13350         * m4/bison.m4: Declare YACC & YFLAGS precious.
13351
13352 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
13353
13354         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
13355         multibyte string or pattern, fall back on unibyte matching.
13356         Problem reported by James Youngman.
13357
13358 2005-06-08  Bruno Haible  <bruno@clisp.org>
13359
13360         * modules/csharpcomp: New file.
13361         * MODULES.html.sh (C#): Add csharpcomp.
13362
13363 2005-06-08  Bruno Haible  <bruno@clisp.org>
13364
13365         * m4/csharpcomp.m4: New file, from GNU gettext.
13366
13367 2005-06-08  Bruno Haible  <bruno@clisp.org>
13368
13369         * lib/csharpcomp.h: New file, from GNU gettext.
13370         * lib/csharpcomp.c: New file, from GNU gettext.
13371         * lib/csharpcomp.sh.in: New file, from GNU gettext.
13372
13373 2005-06-08  Bruno Haible  <bruno@clisp.org>
13374
13375         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
13376         warning on mingw.
13377
13378 2005-06-07  Derek Price  <derek@ximbiot.com>
13379
13380         Sync from CVS.
13381         * lib/glob_.h: Indent nested #ifdef.
13382
13383 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
13384
13385         Sync from coreutils.
13386         Use "file name" when talking about file names, instead of "filename"
13387         or "path", as per the GNU coding standards.
13388         * lib/mkdir-p.c: Renamed from makepath.c.
13389         (make_dir_parents): Renamed from make_path.  All callers changed.
13390         * lib/mkdir-p.h: Likewise.  All includers changed.
13391         * lib/filenamecat.c: Renamed from path-concat.c.
13392         (file_name_concat): Renamed from path_concat.  All callers changed.
13393         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
13394         * lib/filenamecat.h: Likewise.  All includers changed.
13395         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
13396         in comments or local variable names.
13397         * lib/basename.c: Likewise.
13398         * lib/canonicalize.c, canonicalize.h: Likewise.
13399         * lib/dirname.c, dirname.h: Likewise.
13400         * lib/euidaccess.c: Likewise.
13401         * lib/exclude.c: Likewise
13402         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
13403         * lib/fsusage.c, fsuage.h: Likewise.
13404         * lib/fts.c, fts_.h: Likewise.
13405         * lib/getcwd.c: Likewise.
13406         * lib/getloadavg.c: Likewise.
13407         * lib/mkstemp.c: Likewise.
13408         * lib/mountlist.c, mountlist.h: Likewise.
13409         * lib/openat.c, openat.h: Likewise.
13410         * lib/readlink-stub.c: Likewise.
13411         * lib/readutmp.c, readutmp.h: Likewise.
13412         * lib/rename.c: Likewise.
13413         * lib/rmdir.c: Likewise.
13414         * lib/same.c: Likewise.
13415         * lib/savedir.c: Likewise.
13416         * lib/stripslash.c: Likewise.
13417         * lib/tempname.c: Likewise.
13418         * lib/xreadlink.c: Likewise.
13419         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
13420         All uses changed.
13421         * lib/exclude.h: Likewise.
13422
13423         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
13424         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
13425         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
13426         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
13427         * lib/pathmax.h: Include <limits.h> unconditionally, since other
13428         files have been getting away with it for years (MORE/BSD 4.3
13429         is extinct now).
13430         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
13431         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
13432
13433         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
13434         Define to 256, not 255, as per modern POSIX.
13435
13436 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
13437
13438         Sync from coreutils.
13439         Use "file name" when talking about file names, instead of "filename"
13440         or "path", as per the GNU coding standards.
13441         * MODULES.html.sh: mkdir-p renamed from makepath.
13442         filenamecat renamed from path-concat.
13443         * modules/filenamecat: Renamed from modules/path-concat.
13444         (Files): filenamecat.h and filenamecat.c renamed from
13445         path-concat.h and path-concat.c.
13446         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
13447         (Include): filenamecat.h, not path-concat.h.
13448         * modules/mkdir-p: Renamed from modules/makepath.
13449         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
13450         makepath.c.
13451         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
13452         (Include): mkdir-p.h, not makepath.h.
13453
13454 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
13455
13456         Sync from coreutils.
13457         * m4/mkdir-p.m4: Renamed from makepath.m4.
13458         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
13459         Rename files from makepath.c to mkdir-p.c, and from
13460         makepath.h to mkdir-p.h.
13461         * m4/filenamecat.m4: Renamed from path-concat.m4.
13462         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
13463         Rename files from path-concat.c to filenamecat.c,
13464         and from path-concat.h to filenamecat.h.
13465         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
13466         "file name" in local variables or comments.
13467         * m4/rename.m4: Likewise.
13468
13469 2005-06-01  Bruno Haible  <bruno@clisp.org>
13470
13471         * modules/csharpexec: New file.
13472         * MODULES.html.sh (C#): New section.
13473
13474 2005-06-01  Bruno Haible  <bruno@clisp.org>
13475
13476         * m4/csharp.m4: New file, from GNU gettext.
13477         * m4/csharpexec.m4: New file, from GNU gettext.
13478
13479 2005-06-01  Bruno Haible  <bruno@clisp.org>
13480
13481         * lib/csharpexec.h: New file, from GNU gettext.
13482         * lib/csharpexec.c: New file, from GNU gettext.
13483         * lib/csharpexec.sh.in: New file, from GNU gettext.
13484
13485 2005-05-31  Derek Price  <derek@ximbiot.com>
13486             Paul Eggert  <eggert@cs.ucla.edu>
13487
13488         Sync from cvs.
13489         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
13490
13491 2005-05-31  Derek Price  <derek@ximbiot.com>
13492             Paul Eggert  <eggert@cs.ucla.edu>
13493
13494         Sync from cvs.
13495         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
13496
13497 2005-05-29  Derek Price  <derek@ximbiot.com>
13498
13499         * config/srclist.txt (glob_.h, glob.c): Add these files.
13500
13501 2005-05-29  Derek Price  <derek@ximbiot.com>
13502
13503         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
13504         * modules/glob: New file.
13505         * modules/getlogin_r: Add link to POSIX spec in description.
13506
13507 2005-05-29  Derek Price  <derek@ximbiot.com>
13508             Paul Eggert  <eggert@cs.ucla.edu>
13509
13510         * m4/glob.m4: New file.
13511
13512 2005-05-29  Derek Price  <derek@ximbiot.com>
13513             Paul Eggert  <eggert@cs.ucla.edu>
13514
13515         * lib/glob_.h, lib/glob.c: New files.
13516
13517 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
13518
13519         * modules/fts (Files): Remove m4/inttypes-pri.m4.
13520         * modules/fts-lgpl (Depends-on): Remove gettext.
13521
13522 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
13523
13524         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
13525         and don't require gt_INTTYPES_PRI.
13526
13527 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
13528
13529         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
13530
13531         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
13532         the configuration hassle isn't worth it.
13533         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
13534         (LONGEST_MODIFIER, PRIuMAX): Remove.
13535
13536 2005-05-27  Bruno Haible  <bruno@clisp.org>
13537
13538         * lib/getlogin_r.h: Remove second include of <stddef.h>.
13539
13540 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
13541
13542         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
13543         _POSIX_PTHREAD_SEMANTICS for Solaris.
13544
13545 2005-05-25  Derek Price  <derek@ximbiot.com>
13546
13547         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
13548
13549 2005-05-25  Derek Price  <derek@ximbiot.com>
13550             Paul Eggert  <eggert@cs.ucla.edu>
13551
13552         * modules/getlogin_r, m4/getlogin_r.m4: New files.
13553         * lib/getlogin_r.c, getlogin_r.h: New files.
13554
13555 2005-05-25  Bruno Haible  <bruno@clisp.org>
13556             Derek Price  <derek@ximbiot.com>
13557
13558         * lib/getlogin_r.h: Simplify API documentation.
13559
13560 2005-05-23  Derek Price  <derek@ximbiot.com>
13561
13562         * modules/minmax (Files): Add m4/minmax.m4.
13563         (configure.ac): Add gl_MINMAX.
13564
13565 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
13566
13567         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
13568         so that unistd-safer.h (GPL'ed code) need not be included.
13569
13570 2005-05-22  Bruno Haible  <bruno@clisp.org>
13571
13572         * m4/minmax.m4: New file.
13573         Based on a patch by Derek Price <derek@ximbiot.com>.
13574
13575 2005-05-22  Bruno Haible  <bruno@clisp.org>
13576
13577         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
13578         (INT64_MIN): Fix definition.
13579         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
13580
13581         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
13582         NEED_SIGNED_INT_TYPES.
13583
13584         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
13585         HAVE_SYSTEM_INTTYPES.
13586
13587 2005-05-22  Bruno Haible  <bruno@clisp.org>
13588
13589         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
13590         Also include <sys/param.h> if it defines MIN, MAX.
13591         Based on a patch by Derek Price <derek@ximbiot.com>.
13592
13593 2005-05-21  Jim Meyering  <jim@meyering.net>
13594
13595         * modules/fts (Files): Add m4/inttypes-pri.m4.
13596         (Depends-on): Add lstat and remove gettext.  Alphabetize.
13597
13598 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
13599
13600         New fts module.
13601         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
13602         (setup_dir, free_dir): New functions.
13603         (enter_dir, leave_dir): Define trivial
13604         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
13605         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
13606         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
13607         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
13608         Move to fts-cycle.c.
13609         (fts_open): Use setup_dir.
13610         (fts_close): Use free_dir.
13611         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
13612         This adds a label and some gotos, but the alternatives were messier.
13613         Check for memory allocation failure when entering a dir.
13614         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
13615         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
13616         (FTS): New member fts_cycle, that is a union that contains the
13617         old active_dir_ht and cycle_state.  All uses changed to mention
13618         fts_cycle.ht and fts_cycle.state.
13619         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
13620         fts.c, with the following changes:
13621         (setup_dir, free_dir): New functions.
13622         (enter_dir): Now returns bool.  Return true if successful, false
13623         if memory exhausted.  All callers changed.
13624         Do not bother partly cleaning up on
13625         memory allocation failure; that is free_dir's job.
13626         However, free ad if hash_insert fails, to avoid memory leak.
13627         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
13628         fts->fts_options to see which union member to use.
13629
13630 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
13631
13632         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
13633         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
13634
13635 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
13636
13637         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
13638
13639 2005-05-20  Jim Meyering  <jim@meyering.net>
13640
13641         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
13642         Now a macro, to pacify GCC.
13643
13644 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
13645
13646         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
13647         of -1.
13648
13649 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
13650
13651         * lib/chown.c (rpl_chown): Return -1 on failure.
13652
13653 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
13654
13655         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
13656         Don't check for stddef.h.
13657         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
13658         don't use its results.
13659         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
13660         since we include them unconditionally.  Don't require
13661         AM_STDBOOL_H, since stdbool is a prerequisite.
13662         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
13663         since we assume C89 or better.
13664         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
13665         as we don't use their results.
13666         Don't check for fchdir, memmove, memset, strrchr, as we use
13667         them unconditionally.
13668         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
13669         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
13670
13671 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
13672
13673         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
13674         Include <stddef.h> unconditionally, since we assume C89 now.
13675         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
13676         * lib/fts.c: Include fts_.h first, to check interface.
13677         Do not include intprops.h; no longer needed.
13678         Include cycle-check.h and hash.h, since fts_.h no longer does.
13679         Remove unnecessary casts of closedir to void.
13680         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
13681         decide whether to decrement nlinks.
13682         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
13683         (FTS): Use struct hash_table * instead of Hash_table, so that
13684         we no longer need to include hash.h here.
13685
13686 2005-05-18  Jim Meyering  <jim@meyering.net>
13687
13688         * modules/dirfd (License): Change to LGPL.  Most of the code
13689         is already in the public domain.
13690
13691 2005-05-18  Jim Meyering  <jim@meyering.net>
13692
13693         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
13694         Reported by Yoann Vandoorselaere.
13695
13696 2005-05-17  Jim Meyering  <jim@meyering.net>
13697
13698         * m4/fts.m4: New file, from coreutils.
13699
13700 2005-05-17  Jim Meyering  <jim@meyering.net>
13701
13702         * lib/fts.c, lib/fts_.h: New files, from coreutils.
13703
13704 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
13705
13706         Sync from coreutils.
13707         * m4/unlinkdir.m4: New file.
13708
13709 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
13710
13711         Sync from coreutils.
13712         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
13713         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
13714         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
13715         White space changes only.
13716         * lib/makepath.c (make_path): Port to hosts where leading "//" is
13717         special.
13718         * lib/yesno.c: Include getline.h, not ctype.h.
13719         (yesno): Don't remove leading white space; POSIX doesn't allow it.
13720         Use getline to remove arbitrary restriction on response length.
13721
13722 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
13723
13724         * config/srclist-update: Spell out "Street" in FSF postal
13725         mail address; this is the style the FSF seems to prefer.
13726
13727         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
13728         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
13729         this updates FSF postal mail address.
13730
13731         Sync from coreutils.
13732         * modules/unlinkdir: New file.
13733         * modules/yesno (Depends-on): Add getline.
13734         * MODULES.html.sh (File system functions): Add unlinkdir.
13735
13736 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
13737
13738         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
13739         lib/strsep.h:
13740         Change the initial comment to refer to GPL, not LGPL.
13741         gnulib-tool will change it to LGPL as needed.
13742
13743         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
13744         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
13745         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
13746         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
13747         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
13748         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
13749         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
13750         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
13751         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
13752         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
13753         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
13754         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
13755         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
13756         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
13757         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
13758         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
13759         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
13760         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
13761         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
13762         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
13763         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
13764         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
13765         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
13766         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
13767         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
13768         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
13769         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
13770         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
13771         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
13772         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
13773         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
13774         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
13775         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
13776         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
13777         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
13778         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
13779         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
13780         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
13781         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
13782         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
13783         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
13784         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
13785         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
13786         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
13787         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
13788         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
13789         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
13790         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
13791         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
13792         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
13793         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
13794         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
13795         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
13796         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
13797         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
13798         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
13799         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
13800         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
13801         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
13802         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
13803         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
13804         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
13805         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
13806         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
13807         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
13808         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
13809         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
13810         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
13811         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
13812         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
13813         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
13814         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
13815         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
13816         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
13817         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
13818         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
13819         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
13820         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
13821         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
13822         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
13823         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
13824         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
13825         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
13826         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
13827         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
13828         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
13829         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
13830         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
13831         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
13832         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
13833         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
13834         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
13835         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
13836         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
13837         lib/yesno.c, lib/yesno.h:
13838         Update FSF postal mail address.
13839
13840 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
13841
13842         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
13843         tests/test-memmem.c, tests/test-stpncpy.c:
13844         Update FSF postal mail address.
13845
13846 2005-05-13  Bruno Haible  <bruno@clisp.org>
13847
13848         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
13849         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
13850         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
13851         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
13852         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
13853         Add support for 64-bit integers in the MSVC compiler.
13854
13855 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
13856
13857         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
13858
13859 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
13860
13861         * gnulib-tool (func_import): Sort and uniquify recommended includes.
13862
13863 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
13864
13865         * doc/getdate.texi (General date syntax): Don't say that date
13866         date --iso-8601=ns generates acceptable dates; it doesn't yet.
13867         Problem reported by Nic Ferrier.
13868
13869 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
13870
13871         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
13872         specified in ai_socktype. Fix invalid ai_protocol
13873         check. ai_protocol is usually set to 0 or depending on
13874         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
13875         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
13876         ai_socktype / ai_protocol in the returned addrinfo structure.
13877
13878 2005-05-10  Simon Josefsson  <jas@extundo.com>
13879
13880         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
13881         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
13882
13883 2005-05-10  Karl Berry  <karl@gnu.org>
13884
13885         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
13886         (from http://www.gnu.org/licenses).
13887         * doc/COPYING.LIB: also rename to COPYING.LESSER.
13888         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
13889         fdl.texi suffices.
13890
13891 2005-05-10  Karl Berry  <karl@gnu.org>
13892
13893         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
13894         (COPYING.DOC): remove.
13895
13896         * config/srclist-update: new FSF address.
13897
13898 2005-05-10  Derek Price  <derek@ximbiot.com>
13899
13900         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
13901         possible.
13902
13903 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
13904             Bruno Haible  <bruno@clisp.org>
13905
13906         * modules/inet_ntop: New file.
13907         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
13908         inet_ntop.
13909
13910 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
13911             Bruno Haible  <bruno@clisp.org>
13912
13913         * m4/inet_ntop.m4: New file.
13914
13915 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
13916             Bruno Haible  <bruno@clisp.org>
13917
13918         * lib/inet_ntop.h: New file.
13919         * lib/inet_ntop.c: New file, from glibc with modifications.
13920
13921 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
13922
13923         * modules/time_r (License): Change to LGPL.
13924         * modules/extensions (License): Change to LGPL.  Actually,
13925         the license is more permissive than that, but currently gnulib-tool
13926         doesn't know how to handle more-permissive licenses.
13927
13928         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
13929         Problem reported by Dave Love.
13930
13931 2005-05-08  Jim Meyering  <jim@meyering.net>
13932
13933         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
13934         blank.
13935
13936 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
13937
13938         * modules/argmatch (Depends-on): Add stdbool.
13939         * modules/backupfile (Depends-on): Likewise.
13940         * modules/chdir-long (Depends-on): Likewise.
13941         * modules/closeout (Depends-on): Likewise.
13942         * modules/cycle-check (Depends-on): Likewise.
13943         * modules/dirname (Depends-on): Likewise.
13944         * modules/fnmatch (Depends-on): Likewise.
13945         * modules/fsusage (Depends-on): Likewise.
13946         * modules/fwriteerror (Depends-on): Likewise.
13947         * modules/getcwd (Depends-on): Likewise.
13948         * modules/getloadavg (Depends-on): Likewise.
13949         * modules/hard-locale (Depends-on): Likewise.
13950         * modules/makepath (Depends-on): Likewise.
13951         * modules/mountlist (Depends-on): Likewise.
13952         * modules/nanosleep (Depends-on): Likewise.
13953         * modules/posixtm (Depends-on): Likewise.
13954         * modules/quotearg (Depends-on): Likewise.
13955         * modules/readtokens (Depends-on): Likewise.
13956         * modules/readtokens0 (Depends-on): Likewise.
13957         * modules/readutmp (Depends-on): Likewise.
13958         * modules/save-cwd (Depends-on): Likewise.
13959         * modules/strftime (Depends-on): Likewise.
13960         * modules/userspec (Depends-on): Likewise.
13961         * modules/utimecmp (Depends-on): Likewise.
13962         * modules/xgetcwd (Depends-on): Likewise.
13963         * modules/xnanosleep (Depends-on): Likewise.
13964         * modules/xstrtod (Depends-on): Likewise.
13965         * modules/yesno (Depends-on): Likewise.
13966
13967 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
13968
13969         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
13970         needless checks.
13971
13972 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
13973
13974         Merge from coreutils.  Among other things,
13975         add bulletproofing for cases where stdin, stdout, or stderr are closed.
13976         * lib/fd-safer.c: New file.
13977         * lib/fcntl-safer.h, open-safer.c: Remove.
13978         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
13979         * lib/dup-safer.c: Include unistd-safer.h first.
13980         Don't include errno.h.
13981         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
13982         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
13983         * lib/file-type.c: Rely on file-type.h change.
13984         * lib/getloadavg.c: Include unistd-safer.h.
13985         (getloadavg): Use safer open.
13986         * lib/getusershell.c: Include "stdio-safer.h".
13987         (getusershell): Use safer fopen.
13988         * lib/long-options.c (long_options): Use NULL rather than 0.
13989         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
13990         'free'.
13991         * lib/modechange.c: Likewise.
13992         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
13993         (MODE_DONE): New constant.
13994         (struct mode_change): Remove 'next' member.
13995         (make_node_op_equals): New function; like the old one of the
13996         same name, except it allocates an array.
13997         (mode_compile, mode_create_from_ref): Use it.
13998         (mode_compile): Allocate result as an array, not a linked list.
13999         Parse octal string ourself, so that we catch mistakes like "+0".
14000         (mode_adjust): Arg is an array, not a linked list.
14001         * lib/modechange.c: Include stat-macros.h, xalloc.h.
14002         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
14003         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
14004         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
14005         Remove.  This is now stat-macros.h's job.
14006         (talloc): Remove.  All callers replaced by xalloc, so that
14007         our invokers don't have to worry about reporting memory failures.
14008         (make_node_op_equals): Remove.
14009         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
14010         New constants.
14011         (struct mode_change): Moved here from modechange.h.
14012         (mode_append_entry): Remove.
14013         (mode_compile): Remove MASKED_OPS arg, since it encouraged
14014         apps to have incorrect behavior.  Use simpler algorithm for head
14015         and tail.  Don't futz with umask; that's now the job of mode_adjust.
14016         Detect more invalid usages rather than having somewhat-random behavior.
14017         Don't insert an "a=" action, as that leads to incorrect behavior.
14018         (mode_compile, mode_create_from_ref): Return NULL on error instead
14019         of an enum, since now there's only one way to have an error.  All
14020         callers changed.
14021         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
14022         at the correct time.  Simplify calculation of "+u" and its ilk.
14023         Don't mishandle "+X".
14024         (mode_free): Remove "register" and localize decls.
14025         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
14026         (struct mode_change): Move to modechange.c; callers don't
14027         need to see this stuff.
14028         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
14029         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
14030         (mode_change, mode_adjust): Reflect the new signatures noted above.
14031         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
14032         that might redefine system include files.
14033         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
14034         (my_usleep): Use NULL rather than (void *) 0.
14035         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
14036         Use siginterrupt to specify that system calls should be interrupted.
14037         (rpl_nanosleep): Move initialization of suspended closer to call of
14038         my_usleep.
14039         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
14040         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
14041         (desirable_utmp_entry): New function.
14042         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
14043         using x2nrealloc, to simplify logic.
14044         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
14045         size calculation.  Do not assume utmp file is a regular file.
14046         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
14047         (READ_UTMP_CHECK_PIDS): New constant.
14048         * lib/save-cwd.c: Include unistd-safer.h.
14049         (save_cwd): Use fd_safer.
14050         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
14051         [!_LIBC] Include "stat-macros.h" instead.
14052         * lib/unistd-safer.h (fd_safer): New decl.
14053
14054 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
14055
14056         * modules/getloadavg (Depends-on): Add unistd-safer.
14057         * modules/getusershell (Depends-on): Add stdio-safer.
14058         * modules/lstat (Depends-on): Remove xalloc.
14059         * modules/mkstemp (Depends-on): Add stat-macros.
14060         * modules/modechange (Depends-on): Remove xstrtol.
14061         Add stat-macros, xalloc.
14062         * modules/save-cwd (Depends-on): Add unistd-safer.
14063         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
14064         * modules/unistd-safer (Files): Add lib/fd-safer.c
14065         (Makefile.am): Remove lib_SOURCES.
14066
14067         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
14068         Remove fcntl-safer; unistd-safer supersedes it.
14069
14070 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
14071
14072         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
14073         AC_HEADER_STAT.
14074         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
14075         (gl_PREREQ_CHOWN): Remove.
14076         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
14077         it.  Don't require AC_HEADER_STAT.
14078         (gl_PREREQ_LSTAT): Remove.
14079         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
14080         Don't require AC_HEADER_STAT.
14081         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
14082         (gl_PREREQ_RMDIR): Remove.
14083         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
14084         mention stat-macros.h or AC_HEADER_STAT, since we'll make
14085         the stat-macros module a prerequisite.
14086         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
14087         * m4/filemode.m4 (gl_FILEMODE): Likewise.
14088         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
14089         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
14090         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
14091         variable names.
14092         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
14093         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
14094         variable prefixes.
14095         * m4/fcntl-safer.m4: Remove.
14096         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
14097         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
14098         Invoke gl_PREREQ_FD_SAFER.
14099         (gl_PREREQ_FD_SAFER): New macro.
14100         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
14101         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
14102         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
14103         Remove duplicate call to AC_LIBOBJ(readutmp).
14104         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
14105
14106         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
14107         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
14108
14109 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
14110
14111         * MODULES.html.sh (Misc): Add byteswap.
14112
14113 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
14114
14115         * modules/getcwd (Depends-on): Add extensions.
14116         * modules/openat (Depends-on): Likewise.
14117
14118 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
14119
14120         * modules/byteswap: New file.
14121
14122 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
14123
14124         * m4/byteswap.m4: New file.
14125
14126 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
14127
14128         * lib/byteswap_.h: New file.
14129
14130 2005-04-25  Karl Berry  <karl@gnu.org>
14131
14132         * m4/gettext.m4: Update from GNU gettext 0.14.4.
14133
14134 2005-04-25  Albert Chin  <china@thewrittenword.com>
14135
14136         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
14137         Toolkit C bug.
14138
14139 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
14140
14141         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
14142         (func_ln_if_changed) Remove forcibly for no error message
14143         in case file does not exist.
14144
14145 2005-04-19  Simon Josefsson  <jas@extundo.com>
14146
14147         * gnulib-tool (Options): Make --symlink mean --symbolic.
14148
14149 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
14150
14151         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
14152
14153 2005-04-16  Simon Josefsson  <jas@extundo.com>
14154
14155         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
14156
14157 2005-04-15  Simon Josefsson  <jas@extundo.com>
14158
14159         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
14160
14161 2005-04-15  Simon Josefsson  <jas@extundo.com>
14162
14163         * gnulib-tool: Rename --symlink to --symbolic.
14164
14165 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
14166
14167         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
14168         symbolic links to files instead of copying/moving.  Add --aux-dir,
14169         specifying directory relative --dir where auxiliary build tools
14170         are placed.
14171
14172 2005-04-14  Bruno Haible  <bruno@clisp.org>
14173
14174         * modules/allocsa (License): Change to LGPL.
14175         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
14176
14177 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
14178
14179         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
14180         that "UTC +1 second" continues to work.  Problem reported
14181         by Dmitry V. Levin.
14182         (relunit_snumber): New rule.
14183         (relunit): Use it.
14184
14185 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
14186
14187         * lib/getdate.y (universal_time_zone_table): New constant.
14188         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
14189         universal_time_zone_table.
14190         (lookup_zone): Prefer universal_time_zone_table to
14191         local_time_zone_table, so that "GMT" time stamps are allowed in
14192         London during the summer.  Problem reported by Ian Abbott.
14193
14194 2005-04-12  Jim Meyering  <jim@meyering.net>
14195
14196         * lib/human.c (humblock): Set *options even when returning due to
14197         xstrtoumax conversion failure.  Thanks to a used-uninitialized
14198         warning from gcc-4.
14199
14200 2005-04-09  Jim Meyering  <jim@meyering.net>
14201
14202         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
14203         -Wuninitialized: initialize tm0.tm_year.
14204
14205 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
14206
14207         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
14208         count, since there's no maximum.  All uses changed.
14209         Add member dsts_seen.
14210         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
14211         not being INT_MAX.
14212         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
14213         Use pc_rels_seen to decide whther a date is absolute.
14214
14215         * lib/getdate.y (number): Don't overwrite year.
14216         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
14217         check.
14218
14219 2005-04-02  Simon Josefsson  <jas@extundo.com>
14220
14221         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
14222         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
14223
14224 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
14225
14226         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
14227         where no absolute path name can be longer than PATH_MAX.
14228
14229 2005-03-27  Jim Meyering  <jim@meyering.net>
14230
14231         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
14232
14233 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
14234
14235         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
14236         "one's complement" -> "ones' complement" in comment, as per Knuth.
14237         "value of type" -> "type or expression" in comment.
14238         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
14239
14240 2005-03-26  Jim Meyering  <jim@meyering.net>
14241
14242         Comment nits.
14243         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
14244         Correct typos: s/or/of/.
14245
14246 2005-03-26  Jim Meyering  <jim@meyering.net>
14247
14248         * modules/check-include-files: Move to ../ and rename to...
14249         * check-module: ...this.
14250
14251 2005-03-25  Jim Meyering  <jim@meyering.net>
14252
14253         * modules/xvasprintf (Files): Add xalloc.h.
14254
14255 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
14256
14257         * modules/gettext (Files): config/config.rpath ->
14258         build-aux/config.rpath
14259         * modules/iconv (Files): Likewise.
14260         Problem reported by Oskar Liljeblad.
14261
14262 2005-03-23  Jim Meyering  <jim@meyering.net>
14263
14264         * modules/check-include-files: New script to check for
14265         missing dependencies, multiple includes, etc.
14266
14267         * modules/c-strtold (Depends-on): Add xalloc.
14268         * modules/c-strtod (Depends-on): Add xalloc.
14269         * modules/hash (Depends-on): Add xalloc.
14270         (Files): Remove lib/xalloc.h.
14271
14272         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
14273         * modules/userspec (Files): Add lib/inttostr.h.
14274
14275 2005-03-23  Jim Meyering  <jim@meyering.net>
14276
14277         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
14278
14279 2005-03-22  Jim Meyering  <jim@meyering.net>
14280
14281         * modules/stat-macros: New module.
14282         * modules/canonicalize, modules/euidaccess, modules/file-type,
14283         * modules/filemode, modules/lchown, modules/makepath,
14284         * modules/rmdir, modules/stat: Depend on new stat-macros module
14285         rather than listing lib/stat-macros.h manually.
14286         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
14287
14288 2005-03-22  Jim Meyering  <jim@meyering.net>
14289
14290         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
14291
14292 2005-03-22  Bruno Haible  <bruno@clisp.org>
14293
14294         * config/srclist.txt: Replace target directory 'config' with
14295         'build-aux'.
14296         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
14297         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
14298         ../build-aux/.
14299
14300 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
14301
14302         * modules/chdir-long (Depends-on): Add mempcpy.
14303
14304         * modules/acl, modules/backupfile, modules/c-strtod,
14305         modules/c-strtold, modules/canon-host, modules/canonicalize,
14306         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
14307         modules/exclude, modules/exitfail, modules/file-type,
14308         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
14309         modules/getdate, modules/getline, modules/getpagesize,
14310         modules/getpass, modules/getugroups, modules/group-member,
14311         modules/hard-locale, modules/hash, modules/human, modules/idcache,
14312         modules/inttostr, modules/long-options, modules/makepath,
14313         modules/md5, modules/memcasecmp, modules/memcoll,
14314         modules/modechange, modules/mountlist, modules/path-concat,
14315         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
14316         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
14317         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
14318         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
14319         modules/strftime, modules/strndup, modules/strverscmp,
14320         modules/timespec, modules/unlocked-io, modules/userspec,
14321         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
14322         modules/yesno:
14323         Remove lib_SOURCES line from Makefile.am section, as this is now
14324         done automatically by the corresponding Autoconf macro.
14325
14326 2005-03-21  Jim Meyering  <jim@meyering.net>
14327
14328         Changes imported from coreutils.
14329
14330         * lib/cycle-check.c: Don't include xalloc.h.
14331
14332         * lib/path-concat.c: Don't include assert.h.
14333         (path_concat): Remove assertion that would have triggered
14334         for ABASE starting with more than one slash.
14335         Reported by Andreas Schwab.
14336
14337         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
14338         properly when ABASE is an absolute file name.
14339         Correct the description of this function.
14340         Include <assert.h>.
14341         Add an assertion and a test driver.
14342         This fixes a bug introduced on 2004-07-02.
14343         Andreas Schwab reported the resulting failure of cp --parents:
14344         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
14345
14346 2005-03-21  Jim Meyering  <jim@meyering.net>
14347
14348         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
14349         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
14350
14351 2005-03-21  Jim Meyering  <jim@meyering.net>
14352         and  Paul Eggert  <eggert@cs.ucla.edu>
14353
14354         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
14355         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
14356         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
14357         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
14358         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
14359         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
14360         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
14361         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
14362         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
14363         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
14364         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
14365         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
14366         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
14367         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
14368         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
14369         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
14370         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
14371         for these modules.
14372
14373 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
14374
14375         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
14376         (which shouldn't happen), generate nothing instead of returning 0
14377         immediately, so that nstrftime (NULL, ...) doesn't return 0.
14378
14379 2005-03-16  Bruno Haible  <bruno@clisp.org>
14380
14381         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
14382         HAVE_LONGLONG_64BIT.
14383
14384 2005-03-16  Bruno Haible  <bruno@clisp.org>
14385
14386         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
14387         HAVE_LONGLONG_64BIT.
14388
14389 2005-03-16  Bruno Haible  <bruno@clisp.org>
14390
14391         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
14392         HAVE_LONGLONG_64BIT.
14393
14394 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
14395
14396         * lib/strftime.c (my_strftime): Prepend space to format so that we can
14397         reliably distinguish strftime failure from empty output on POSIX
14398         hosts.
14399
14400 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
14401
14402         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
14403         (iconv_string): Don't guess a size-zero buffer, as that might cause
14404         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
14405         result would be 'too large', where 'too large' is (heuristically)
14406         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
14407         overflow concerns.  This will prevent some unwanted malloc failures
14408         when the inputs are very large.
14409
14410 2005-03-15  Karl Berry  <karl@gnu.org>
14411
14412         * config/srclist.txt (config.rpath): from gettext.
14413         * config/config.rpath: update.
14414
14415 2005-03-15  Bruno Haible  <bruno@clisp.org>
14416
14417         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
14418         to 'negate'.
14419
14420         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
14421         variable.
14422
14423         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
14424         results.
14425
14426 2005-03-14  Simon Josefsson  <jas@extundo.com>
14427
14428         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
14429         <fx@gnu.org>.
14430
14431 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
14432
14433         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
14434         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
14435         intprops.h.
14436         * lib/strtol.c: Likewise.
14437
14438 2005-03-14  Jim Meyering  <jim@meyering.net>
14439
14440         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
14441         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
14442         to be nonzero so that we (and caller) can detect the difference
14443         between a valid zero-length expansion and an error return, even
14444         when the underlying strftime fails before writing anything into
14445         that location.
14446
14447 2005-03-14  Bruno Haible  <bruno@clisp.org>
14448
14449         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
14450         Update from GNU gettext 0.14.3.
14451
14452 2005-03-10  Jim Meyering  <jim@meyering.net>
14453
14454         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
14455
14456 2005-03-10  Jim Meyering  <jim@meyering.net>
14457
14458         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
14459         so that this module works on systems without fchdir.
14460
14461 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
14462
14463         Factor int-properties macros into a single file, except for
14464         glibc-related files.
14465         * lib/intprops.h: New file.
14466         * lib/getloadavg.c: Include it instead of limits.h.
14467         (INT_STRLEN_BOUND): Remove.
14468         * lib/human.c: Include intprops.h.
14469         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
14470         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
14471         302/1000.
14472         * lib/inttostr.h: Include intprops.h instead of limits.h.
14473         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
14474         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
14475         for consistency with intprops.h.
14476         (time_t_is_integer, twos_complement_arithmetic): Use them.
14477         * lib/sig2str.h: Include <signal.h>, intprops.h.
14478         (INT_STRLEN_BOUND): Remove.
14479         * lib/strftime.c (TYPE_SIGNED): Remove.
14480         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
14481         * lib/strtol.c: Adjust comments to match intprops.h.
14482         * lib/userspec.c: Include intprops.h.
14483         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
14484         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
14485         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
14486         instead of rolling our own expressions.
14487         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
14488
14489         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
14490         instead of int.
14491         (my_strftime): Do not mishandle years close to INT_MAX, by doing
14492         the right thing even if adding 1900 would overflow.  Similarly
14493         for tm_mon + 1 and tm_yday + 1.
14494         Make %Y always equivalent to %C%y, and similarly for %G and %g.
14495         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
14496         (DO_SIGNED_NUMBER): New macro.
14497         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
14498
14499 2005-03-07  Bruno Haible  <bruno@clisp.org>
14500
14501         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
14502
14503 2005-03-07  Bruno Haible  <bruno@clisp.org>
14504
14505         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
14506
14507 2005-03-04  Derek R. Price  <derek@ximbiot.com>
14508
14509         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
14510         (func_import): Only replace files via --import when they have actually
14511         changed.
14512
14513 2005-03-03  Derek R. Price  <derek@ximbiot.com>
14514
14515         * m4/mmap-anon.m4: New file.
14516         * m4/pagealign_alloc.m4: New file.
14517
14518 2005-03-03  Derek R. Price  <derek@ximbiot.com>
14519             Bruno Haible  <bruno@clisp.org>
14520
14521         * modules/pagealign_alloc: New file.
14522         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
14523
14524 2005-03-03  Derek R. Price  <derek@ximbiot.com>
14525             Bruno Haible  <bruno@clisp.org>
14526
14527         * lib/pagealign_alloc.h: New file.
14528         * lib/pagealign_alloc.c: New file.
14529
14530 2005-03-03  Bruno Haible  <bruno@clisp.org>
14531
14532         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
14533         Use an all-permissive copyright notice, recommended by RMS.
14534
14535 2005-03-02  Bruno Haible  <bruno@clisp.org>
14536
14537         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
14538         of AIX, the replacement has to be done only after <string.h> is
14539         included, therefore not in config.h. stpncpy.h does the replacement,
14540         and stpncpy.c uses it.
14541
14542 2005-03-02  Bruno Haible  <bruno@clisp.org>
14543
14544         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
14545         stpncpy.c uses it.
14546
14547 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
14548
14549         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
14550         The workaround isn't strictly needed for POSIX conformance, and
14551         it's too much of a pain to configure and maintain.  We'll ask
14552         people to fix their kernels instead.
14553         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
14554         (NANOSLEEP_BUG_WORKAROUND): Remove.
14555         (xnanosleep): Remove the workaround.
14556
14557 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
14558
14559         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
14560         Reported by Derek Price.
14561         (Include): Add "timespec.h".
14562
14563         * modules/xnanosleep (Depends-on): Remove gethrxtime.
14564
14565 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
14566
14567         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
14568         to detect nanosleep bug.
14569
14570 2005-03-01  Bruno Haible  <bruno@clisp.org>
14571
14572         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
14573
14574 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
14575
14576         * modules/gethrxtime: New file.
14577         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
14578         (Depends-on): Add gethrxtime.
14579         (configure.ac): Add gl_XNANOSLEEP.
14580         (Makefile.am): Remove lib_SOURCES line.
14581
14582 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
14583
14584         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
14585         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
14586
14587 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
14588
14589         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
14590         * lib/timespec.h (gettime): Return void, since it always
14591         succeeds now.  All uses changed.
14592         * lib/gettime.c (gettime) Likewise.
14593         [HAVE_NANOTIME]: Prefer nanotime.
14594         Assume gettimeofday succeeds, as POSIX requires.
14595         Assime time () succeeds, since other code already does.
14596         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
14597         (timespec_subtract): Remove.
14598         (NANOSLEEP_BUG_WORKAROUND): New constant.
14599         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
14600         things considerably.  Use it only on GNU/Linux hosts, since the
14601         workaround shouldn't be needed elsewhere.
14602
14603 2005-02-24  Bruno Haible  <bruno@clisp.org>
14604
14605         * modules/gettext (Files): Add m4/glibc2.m4.
14606
14607 2005-02-24  Bruno Haible  <bruno@clisp.org>
14608
14609         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
14610         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
14611         * m4/progtest.m4:
14612         Update from GNU gettext 0.14.2.
14613         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
14614
14615 2005-02-24  Bruno Haible  <bruno@clisp.org>
14616
14617         * lib/localcharset.c: Update from GNU gettext 0.14.2.
14618         * lib/config.charset: Update from GNU gettext 0.14.2.
14619
14620 2005-02-24  Bruno Haible  <bruno@clisp.org>
14621
14622         * lib/gettext.h: Update from GNU gettext 0.14.2.
14623
14624 2005-02-23  Simon Josefsson  <jas@extundo.com>
14625
14626         * m4/iconvme.m4: New file.
14627
14628 2005-02-23  Jim Meyering  <jim@meyering.net>
14629
14630         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
14631         change.
14632         Thanks to Bruno Haible for catching it.
14633
14634 2005-02-22  Simon Josefsson  <jas@extundo.com>
14635
14636         * modules/iconvme: New file.
14637
14638         * MODULES.html.sh: Add iconvme.
14639
14640 2005-02-22  Simon Josefsson  <jas@extundo.com>
14641
14642         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
14643
14644 2005-02-22  Simon Josefsson  <jas@extundo.com>
14645
14646         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
14647
14648 2005-02-22  Jim Meyering  <jim@meyering.net>
14649
14650         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
14651         s/ifndef/ifdef/.
14652
14653 2005-02-20  Neil Conway  <neilc@samurai.com>
14654
14655         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
14656         returned by OSX/Darwin if the specified buffer is not large
14657         enough for the hostname.
14658
14659 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
14660
14661         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
14662         pass it to _help, otherwise the latter coredumps trying to
14663         dereference state.root_argp.
14664
14665 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
14666
14667         * modules/chdir-long (Depends-on): Add memrchr.
14668         * modules/memrchr (Files): Add lib/memrchr.h.
14669         (Include): "memrchr.h".
14670
14671 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
14672
14673         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
14674
14675 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
14676
14677         * lib/memrchr.h: New file.
14678         * lib/chdir-long.c: Include it.
14679         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
14680         Don't bother including stddef.h.
14681
14682 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
14683
14684         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
14685         inclusion.
14686         Include <sys/types.h>, for dev_t.
14687         (ME_DUMMY, ME_REMOTE): Move from here....
14688         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
14689         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
14690         Dmitry V. Levin.
14691         Include mountlist.h first, to test the interface.
14692
14693 2005-01-29  Bruno Haible  <bruno@clisp.org>
14694
14695         * lib/progname.c (program_name): Initialize.
14696         Needed when linking statically on MacOS X.
14697
14698 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
14699
14700         Sync from coreutils.
14701         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
14702         (Depends-on): Add c-strtod.
14703         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
14704
14705 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
14706
14707         Sync from coreutils.
14708         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
14709
14710         Remove files that are specific to coreutils.
14711         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
14712
14713 2005-01-28  Bruno Haible  <bruno@clisp.org>
14714
14715         * modules/javacomp: New file.
14716         * MODULES.html.sh (Java): Add javacomp.
14717
14718 2005-01-28  Bruno Haible  <bruno@clisp.org>
14719
14720         * m4/javacomp.m4: New file, from GNU gettext.
14721
14722 2005-01-28  Bruno Haible  <bruno@clisp.org>
14723
14724         * lib/javacomp.sh.in: New file, from GNU gettext.
14725         * lib/javacomp.h: New file, from GNU gettext.
14726         * lib/javacomp.c: New file, from GNU gettext.
14727
14728 2005-01-26  Simon Josefsson  <jas@extundo.com>
14729
14730         * lib/gai_strerror.c: Use GPL in header.
14731
14732 2005-01-26  Bruno Haible  <bruno@clisp.org>
14733
14734         * modules/javaexec: New file.
14735         * MODULES.html.sh (Java): Add javaexec.
14736
14737 2005-01-26  Bruno Haible  <bruno@clisp.org>
14738
14739         * m4/javaexec.m4: New file, from GNU gettext.
14740
14741 2005-01-26  Bruno Haible  <bruno@clisp.org>
14742
14743         * lib/javaexec.sh.in: New file, from GNU gettext.
14744         * lib/javaexec.h: New file, from GNU gettext.
14745         * lib/javaexec.c: New file, from GNU gettext.
14746
14747 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
14748
14749         * modules/lchown (Depends-on): Remove lchown.h
14750
14751 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
14752
14753         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
14754         must be defined if the header file was not found, in order
14755         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
14756
14757 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
14758
14759         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
14760         initializers for struct pentry_state.
14761         (__argp_error): Check return value of __asprintf
14762         (__argp_failure): Translate error message
14763
14764         * lib/argp-parse.c: Removed braces around the expansion of N_()
14765
14766 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
14767
14768         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
14769         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
14770         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
14771         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
14772         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
14773         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
14774         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
14775         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
14776         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
14777         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
14778         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
14779         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
14780         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
14781         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
14782         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
14783         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
14784         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
14785         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
14786         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
14787         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
14788         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
14789         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
14790         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
14791         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
14792         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
14793         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
14794         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
14795         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
14796         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
14797         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
14798         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
14799         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
14800         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
14801         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
14802         xstrtol.m4, xstrtoumax.m4, yesno.m4:
14803         Use an all-permissive copyright notice, recommended by RMS.
14804
14805 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
14806
14807         * modules/chdir-long (Depends-on): Remove mempcpy.
14808
14809 2005-01-21  Jim Meyering  <jim@meyering.net>
14810
14811         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
14812         same value as for Solaris 9.
14813
14814         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
14815         component length.  This included changing the parameter to be
14816         of type `char *' rather than `char const *'.
14817         * lib/chdir-long.h (chdir_long): Update prototype.
14818
14819         * lib/openat.c (fdopendir, fstatat): New functions.
14820         * lib/openat.h: Include headers required for use of DIR and struct
14821         stat.
14822         [AT_SYMLINK_NOFOLLOW]: Define.
14823         (fdopendir, fstatat): Add prototypes.
14824
14825 2005-01-21  Bruno Haible  <bruno@clisp.org>
14826
14827         * modules/classpath: New file.
14828         * MODULES.html.sh (Java): Add classpath.
14829
14830 2005-01-21  Bruno Haible  <bruno@clisp.org>
14831
14832         * lib/classpath.h: New file, from GNU gettext.
14833         * lib/classpath.c: New file, from GNU gettext.
14834
14835 2005-01-20  Simon Josefsson  <jas@extundo.com>
14836
14837         * modules/version-etc-fsf: New file.
14838
14839 2005-01-20  Simon Josefsson  <jas@extundo.com>
14840
14841         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
14842         * lib/version-etc.c: Remove version_etc_copyright.
14843         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
14844         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
14845
14846 2005-01-20  Simon Josefsson  <jas@extundo.com>
14847
14848         * lib/base64.h (isbase64): Add.
14849
14850         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
14851         using a unsigned prototype, don't inline.
14852         (base64_decode): Use it.
14853
14854 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
14855
14856         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
14857         it.
14858
14859 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
14860
14861         * lib/save-cwd.c (save_cwd): Remove code to support the case
14862         where fchdir is missing or flaky.
14863
14864 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
14865
14866         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
14867
14868 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
14869
14870         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
14871         AC_LIBSOURCES now does this.
14872         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
14873         with new ullong_max module.
14874
14875 2005-01-19  Bruno Haible  <bruno@clisp.org>
14876
14877         * modules/sh-quote: New file.
14878         * MODULES.html.sh (Executing programs): Add sh-quote.
14879
14880 2005-01-19  Bruno Haible  <bruno@clisp.org>
14881
14882         * lib/sh-quote.h: New file, from GNU gettext.
14883         * lib/sh-quote.c: New file, from GNU gettext.
14884
14885 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
14886
14887         Merge from coreutils.
14888         * m4/ullong_max.m4: New file.
14889         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
14890         (gl_MACROS): Assume localeconv exists.
14891
14892 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
14893
14894         Merge changes from coreutils, as described below in several
14895         changelogs dated today.
14896
14897         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
14898         (O_DIRECTORY): Remove; not needed here, since "." must be
14899         a directory.  All uses removed.
14900         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
14901         universal on Suns, and we also need to test for IRIX.
14902         Revamp code to use 'if' rather than '#if'.
14903         Avoid unnecessary comparison of cwd->desc to 0.
14904
14905         * lib/utimens.c (futimens): Robustify the previous patch, by checking
14906         for known valid error numbers rather than observed invalid ones.
14907
14908 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
14909
14910         * modules/ullong_max: New file.
14911
14912         * modules/chdir-long, modules/openat: New files.
14913         * modules/save-cwd (Depends-on): Depend on chdir-long.
14914         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
14915
14916 2005-01-18  Jim Meyering  <jim@meyering.net>
14917
14918         Merge from coreutils.
14919         * m4/chdir-long.m4, m4/openat.m4: New files.
14920         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
14921         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
14922         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
14923         is sane and DOES follow symlinks.  Besides, testing 20 different
14924         systems found no broken chown implementations.
14925         Prompted by a change in rsync's copy of this macro.
14926         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
14927
14928         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
14929
14930         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
14931         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
14932         NULL-means-set-to-current-time semantics.
14933         Remove temporary file immediately, rather than waiting
14934         for configure's at-exit trap code to do it.
14935
14936 2005-01-18  Jim Meyering  <jim@meyering.net>
14937
14938         * lib/version-etc.c (version_etc_copyright): Update copyright date.
14939
14940         * lib/utimens.c (futimens): Account for the fact that futimes
14941         can also fail with errno == ENOSYS or errno == ENOENT.
14942         Patch from Dmitry V. Levin.
14943
14944         Change the name of the robust chdir function from chdir to chdir_long.
14945         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
14946         (restore_cwd): Use chdir_long, not chdir.
14947         * lib/chdir-long.c: Renamed from chdir.c.
14948         * lib/chdir-long.h: Renamed from chdir.h.
14949         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
14950         Hurd.
14951
14952 2005-01-18  Bruno Haible  <bruno@clisp.org>
14953
14954         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
14955         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
14956         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
14957         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
14958         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
14959         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
14960         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
14961         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
14962         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
14963         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
14964         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
14965         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
14966         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
14967         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
14968         Use an all-permissive copyright notice, recommended by RMS.
14969
14970 2005-01-18  Bob Proulx  <bob@proulx.com>
14971
14972         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
14973         simplify offsetof() macro construct to avoid compile failure with
14974         native HP-UX 11.0 ANSI C compiler.
14975
14976 2005-01-17  Bruno Haible  <bruno@clisp.org>
14977
14978         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
14979         redundant because stpncpy.m4 takes care of it.
14980
14981 2005-01-17  Bruno Haible  <bruno@clisp.org>
14982
14983         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
14984
14985 2005-01-17  Bruno Haible  <bruno@clisp.org>
14986
14987         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
14988         used.
14989
14990 2005-01-17  Bruno Haible  <bruno@clisp.org>
14991
14992         * lib/fwriteerror.h (fwriteerror): Change specification to include
14993         fclose.
14994         * lib/fwriteerror.c: Include <stdbool.h>.
14995         (fwriteerror): At the end, close the file stream. Record whether
14996         stdout was already closed.
14997
14998 2005-01-17  Bruno Haible  <bruno@clisp.org>
14999
15000         * lib/execute.c (environ): Declare if needed.
15001         * lib/pipe.c (environ): Likewise.
15002         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
15003
15004 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
15005
15006         * modules/argp: Depend on vsnprintf
15007
15008 2005-01-10  Jim Meyering  <jim@meyering.net>
15009
15010         * modules/closeout (Depends-on): Add atexit.
15011
15012 2005-01-06  Bruno Haible  <bruno@clisp.org>
15013
15014         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
15015
15016 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
15017
15018         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
15019         definitions to be after all include files, to avoid collisions.
15020         Problem reported by Bob Proulx.
15021
15022 2005-01-04  Jim Meyering  <jim@meyering.net>
15023
15024         Changes imported from coreutils.
15025         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
15026         as the mkstemp template, use a temporary directory and an
15027         8.3-friendly template to avoid trouble on systems like DJGPP.
15028         Reported by Juan M. Guerrero via Stepan Kasal.
15029         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
15030         close. Remove the temporary directory right away, rather than waiting
15031         for configure's at-exit trap code to do it.
15032         Suggestion from Stepan Kasal.
15033
15034 2005-01-01  Simon Josefsson  <jas@extundo.com>
15035
15036         * gnulib-tool: Print #include directives when --import'ing.
15037
15038 2004-12-28  Simon Josefsson  <jas@extundo.com>
15039
15040         * tests/test-base64.c: Include required header files.  Remove
15041         unused variables.
15042
15043 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
15044
15045         * modules/error (Depends-on): Remove gettext.
15046
15047 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
15048
15049         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
15050         not needed.  This removes a dependency on the gettext module.
15051         [defined _LIBC]: Do not include <libintl.h>; not needed.
15052
15053 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
15054
15055         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
15056         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
15057
15058 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
15059
15060         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
15061         HAVE_DECL_STRTOLD.
15062
15063 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
15064
15065         * modules/getdate (Depends-on): Remove alloca-opt.
15066
15067 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
15068
15069         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
15070
15071 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
15072
15073         * lib/argp-parse.c: Include <stddef.h>.
15074         (alignof, alignto): New macros.
15075         (parser_init): Don't assume that void * is aligned sufficiently
15076         for struct option.
15077
15078         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
15079         need to extend the stack.
15080         (YYINITDEPTH): New macro, so that the initial stack isn't overly
15081         large.
15082
15083 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
15084
15085         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
15086
15087 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
15088
15089         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
15090         (2004-10-24) change.  Apparently this was a false alarm.
15091
15092         * modules/getdate: Depend on alloca-opt, not alloca.
15093
15094 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
15095
15096         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
15097         Remove now-obsolete comment about AIX.
15098         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
15099         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
15100         (YYMAXDEPTH): New macro.
15101
15102 2004-12-18  Simon Josefsson  <jas@extundo.com>
15103
15104         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
15105
15106 2004-12-18  Bruno Haible  <bruno@clisp.org>
15107
15108         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
15109
15110 2004-12-18  Bruno Haible  <bruno@clisp.org>
15111
15112         * lib/fatal-signal.c (fatal_signals): Make non-const.
15113         (init_fatal_signals): New function.
15114         (uninstall_handlers, install_handlers): Ignore signals that were set to
15115         SIG_IGN.
15116         (at_fatal_signal): Call init_fatal_signals.
15117         (init_fatal_signal_set): Likewise. Ignore signals that were set to
15118         SIG_IGN.
15119         Reported by Paul Eggert.
15120
15121 2004-12-18  Bruno Haible  <bruno@clisp.org>
15122
15123         * doc/alloca.texi: New file.
15124         * doc/alloca-opt.texi: New file.
15125
15126 2004-12-17  Jim Meyering  <jim@meyering.net>
15127
15128         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
15129         Otherwise, install-sh could exit with improper exit status when
15130         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
15131
15132 2004-12-16  Simon Josefsson  <jas@extundo.com>
15133
15134         * tests/test-base64.c: Add license.
15135
15136 2004-12-15  Stepan Kasal  <address@hidden>
15137
15138         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
15139
15140 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
15141
15142         * modules/getcwd (Files): Add m4/d-ino.m4.
15143         Suggested by Mark D. Baushke.
15144
15145 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
15146
15147         * lib/getdate.y (textint): New member "negative".
15148         (time_zone_hhmm): New function.
15149         Expect 14 shift-reduce conflicts, not 13.
15150         (o_colon_minutes): New rule.
15151         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
15152         (yylex): Set the "negative" member of signed numbers.
15153
15154 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
15155
15156         * doc/getdate.texi (Time of day items, Time zone items):
15157         Describe new formats +00:00, UTC+00:00.
15158
15159 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
15160
15161         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
15162         spurious "-l"s.  Problem reported by Stepan Kasal.
15163
15164 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
15165
15166         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
15167         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
15168
15169 2004-12-04  Simon Josefsson  <jas@extundo.com>
15170
15171         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
15172         Vandoorselaere <yoann@prelude-ids.org>.
15173
15174 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
15175
15176         Changes imported from coreutils.
15177         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
15178         exist.
15179         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
15180
15181 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
15182
15183         Changes imported from coreutils.
15184         * lib/hard-locale.c: Assume <locale.h> exists.
15185         Include "strdup.h".
15186         (GLIBC_VERSION): New macro.
15187         (hard_locale): Assume setlocale exists.
15188         Rewrite to avoid #ifdef.
15189         Use strdup rather than malloc + strcpy.
15190         * lib/human.c: Assume <locale.h> exists.
15191         (human_readable): Assume localeconv exists.
15192
15193 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
15194
15195         * modules/hard-locale (Depends-on): Add strdup.
15196
15197 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
15198
15199         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
15200         convert T2, not T.  (Imported from libc.)
15201
15202 2004-11-30  Simon Josefsson  <jas@extundo.com>
15203
15204         * modules/restrict (License): Change to LGPL.
15205
15206 2004-11-30  Simon Josefsson  <jas@extundo.com>
15207
15208         * m4/restrict.m4: Add copyright and copying conditions.
15209
15210 2004-11-30  Simon Josefsson  <jas@extundo.com>
15211
15212         * m4/base64.m4: New file.
15213
15214 2004-11-30  Simon Josefsson  <jas@extundo.com>
15215
15216         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
15217         base64.
15218
15219         * tests/test-base64.c: New file.
15220
15221         * modules/base64: New file.
15222
15223 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
15224
15225         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
15226         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
15227
15228         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
15229
15230 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
15231
15232         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
15233         (__getcwd.c): Don't restore errno; glibc doesn't.
15234         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
15235         first, falling back to our code only if its results look suspicious.
15236         Ensure that the resulting buffer is only as large as necessary.
15237
15238         * lib/readutmp.c: Include readutmp.h first.
15239         Include <errno.h>, since readutmp.h no longer does that.
15240         * lib/readutmp.h: Don't include <errno.h>,
15241         <sys/param.h>, <time.h>; not needed to establish interface.
15242         (errno): Remove decl.
15243         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
15244         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
15245         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
15246
15247 2004-11-28  Simon Josefsson  <jas@extundo.com>
15248
15249         * lib/base64.h, base64.c: New file.
15250
15251 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
15252
15253         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
15254
15255 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
15256
15257         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
15258         (Depends-on): Remove pathmax, same.  Add mempcpy.
15259         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
15260         (Makefile.am): Append getcwd.h to lib_SOURCES.
15261         (Include): Add getcwd.h.
15262         (Maintainer): Change from Jim Meyering to "all, glibc",
15263         since getdate now uses intended-for-glibc code.
15264         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
15265         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
15266
15267 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
15268
15269         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
15270         HP's ANSI C compiler.
15271         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
15272         Declaring int functions causes warnings on some modern systems and
15273         shouldn't be needed to compile on ancient ones.
15274         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
15275         defined.
15276
15277         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
15278         with the following changes.
15279         (__set_errno): Parenthesize properly.
15280         Include <stdbool.h>.
15281         (MIN, MAX, MATCHING_INO): New macros.
15282         (__getcwd): Define with prototype, not K&R form.
15283         Use heuristics to allocate default buffer on stack if possible.
15284         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
15285         behavior, and to avoid the PATH_MAX limit when computing
15286         ../../../../...
15287         Use MATCHING_INO to compare inode number to file.
15288         Check for arithmetic overflow in size calculations.
15289         Fix bug in reallocation of dot array that caused getcwd to fail
15290         on directories nested deeper than 75.
15291         Be more careful about saving errno on error.
15292         Do not use realloc; use only free+malloc, as this is a bit
15293         more flexible and avoids a needless copy operation.
15294         Do not inspect st_dev and st_ino for symbolic links; POSIX
15295         doesn't specify the latter.
15296         Check for closedir errors.
15297         Avoid needless casts.
15298         Use "#ifdef weak_alias" around weak_alias, to be like other
15299         glibc code.
15300         The following changes to getcwd.c have effect only when used in
15301         gnulib; they have no effect inside glibc proper.
15302         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
15303         as alloca isn't used.
15304         (alloca, __alloca): Likewise.
15305         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
15306         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
15307         unconditionally, as gnulib assumes C89 or better.
15308         Do not include <sys/param.h>.
15309         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
15310         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
15311         better.
15312         (NULL) [!defined NULL]: Remove; we assume C89 or better.
15313         Include <dirent.h> in a way that is compatible with modern Autoconf.
15314         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
15315         New macros, if not already defined.
15316         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
15317         Use "_LIBC", not "defined _LIBC", for consistency.
15318         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
15319         a mempcpy module.
15320         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
15321         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
15322         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
15323         credit only to Jim Meyering and adjust the copyright dates.
15324         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
15325         <stdlib.h>, <unistd.h>, "pathmax.h".
15326         Instead, include "xgetcwd.h" (first) and "getcwd.h".
15327         (INITIAL_BUFFER_SIZE): Remove.
15328         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
15329
15330 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
15331
15332         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
15333         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
15334         Use the _ONCE methods, for efficiency.
15335         Check for fcntl.h.  In test program, include <errno.h>
15336         and <fcntl.h> if available.  Remove old K&R cruft from
15337         test program.  Check for common errors in GNU/Linux,
15338         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
15339         don't do AC_LIBOBJ, as that's getcwd.m4's job.
15340         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
15341         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
15342         name accordingly.
15343         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
15344         accommodate new getcwd.c.
15345         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
15346         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
15347         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
15348         that's all we need now.
15349
15350 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
15351
15352         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
15353         argp-parse.c depends on getopt internals, that means we should
15354         always use our getopt, to be on the safe side.
15355         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
15356         order not to spoil the result of an eventual previous invocation
15357         of gl_GETOPT_SUBSTITUTE.
15358
15359 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
15360
15361         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
15362         redefinition warnings. To avoid them, include the defines
15363         in `#if !defined __need_getopt ... #endif'. The only place
15364         where __getopt_argv_const is used is in definitions
15365         of getopt_long and getopt_long_only below, which are as well
15366         protected by `#ifndef __need_getopt'.
15367         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
15368         __need_getopt after including <stdio.h> and <unistd.h> These
15369         headers might have defined it.
15370
15371 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
15372
15373         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
15374
15375 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
15376
15377         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
15378         (futimens): New function, which uses futimes if available.
15379         (futimens, utimens): Support timespec==NULL, with same semantics
15380         as utime and utimens.
15381         * lib/utimens.h (futimens): New decl.
15382
15383 2004-11-23  Jim Meyering  <jim@meyering.net>
15384
15385         * lib/getopt_.h: Remove trailing blanks.
15386
15387 2004-11-23  Jim Meyering  <jim@meyering.net>
15388
15389         * lib/__fpending.c: Add comment.
15390
15391 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
15392
15393         * modules/canonicalize (Depends-on): Add xreadlink.
15394         Problem reported by James Youngman.
15395
15396 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
15397
15398         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
15399         New macros.
15400         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
15401         optopt): Use them instead of invoking ## directly; otherwise, the
15402         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
15403
15404 2004-11-19  Bruno Haible  <bruno@clisp.org>
15405
15406         * lib/strtok_r.c: Move comments from here...
15407         * lib/strtok_r.h: ... to here.
15408
15409 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
15410
15411         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
15412         implementations that mishandle size_t overflow.
15413
15414 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
15415
15416         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
15417         might fail.  Problem reported by Yoann Vandoorselaere.
15418         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
15419         implementations that mishandle size_t overflow.
15420
15421 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
15422
15423         * modules/canon-host (Depends-on): Add strdup.
15424
15425 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
15426
15427         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
15428
15429 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
15430
15431         * lib/canon-host.c: Include "strdup.h".
15432         (canon_host): Use getaddrinfo if available, so that IPv6 works.
15433         Use strdup instead of malloc/strcpy to duplicate strings.
15434
15435         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
15436         (human_space_before_unit): New constant.
15437         * lib/human.c (human_readable): Support it.
15438
15439         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
15440         (xgetcwd): Set errno correctly when failing.
15441         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
15442         the failure is actually due to a PATH_MAX problem.
15443
15444         Further getopt changes to make it more likely that glibc will
15445         buy the changes back.
15446         * lib/getopt.c (POSIXLY_CORRECT): New constant.
15447         (getopt): Use it, so to preserve glibc semantic
15448         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
15449         when compiling for libc.
15450         * lib/getopt_.h (__getopt_argv_const): Bring it back.
15451         (getopt_long, getopt_long_only): Use it.
15452
15453         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
15454         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
15455         (getopt): Argv is now char * const *, as per standard.
15456         (_getopt_internal_r, _getopt_internal): Argv is now char **,
15457         not char *__getopt_argv_const *.
15458         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
15459         _getopt_long_only_r): Likewise.
15460         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
15461         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
15462         _getopt_long_r, _getopt_long_only_r): Likewise.
15463         * lib/getopt_.h (__getopt_argv_const): Remove.
15464         (getopt): Argv is now char * const *, as per standard.
15465
15466         * lib/getdate.y (tORDINAL): New token.
15467         (day, relunit): Allow it for relative times.
15468         (relative_time_table): Use tORDINAL for ordinals.
15469
15470 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
15471
15472         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
15473         Document that "second" isn't allowed as an ordinal number.
15474
15475 2004-11-16  Jim Meyering  <jim@meyering.net>
15476
15477         * modules/closeout (Depends-on): Add fpending.
15478
15479 2004-11-15  Jim Meyering  <jim@meyering.net>
15480
15481         * lib/closeout.c: Include "__fpending.h" once again.
15482         Include <stdbool.h>.
15483         (close_stdout): Don't fail just because stdout was closed initially,
15484         since some programs don't write to stdout in the normal course of
15485         operation (other than --version and --help), and we don't want this
15486         function to make e.g. `touch file >&-' fail.
15487         But do fail if it was closed and someone has tried to write to it.
15488         E.g., `printf foo >&-' must fail.
15489
15490 2004-11-13  Jim Meyering  <jim@meyering.net>
15491
15492         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
15493
15494 2004-11-12  Simon Josefsson  <jas@extundo.com>
15495
15496         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
15497         small doc fix is still pending.
15498
15499 2004-11-11  Simon Josefsson  <jas@extundo.com>
15500
15501         * modules/strtok_r: New file.
15502
15503         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
15504         strtok_r.
15505
15506 2004-11-11  Simon Josefsson  <jas@extundo.com>
15507
15508         * m4/strtok_r.m4: New file.
15509
15510         * m4/getopt.m4: Replace opterr.
15511
15512 2004-11-11  Simon Josefsson  <jas@extundo.com>
15513
15514         * lib/strtok_r.h, strtok_r.c: New file.
15515
15516 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
15517
15518         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
15519         of replacing opterr, getopt, etc.  This should handle the
15520         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
15521
15522 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
15523
15524         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
15525         we can stop lying to compilers about the constness of argv when we
15526         are compiled outside glibc.
15527         (getopt, getopt_long, getopt_long_only): Use it.
15528         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
15529         _getopt_internal, getopt): Likewise.
15530         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
15531         _getopt_long_only_r): Likewise.
15532         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
15533         _getopt_long_r, _getopt_long_only_r): Likewise.
15534
15535         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
15536         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
15537         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
15538         the other external symbols.
15539         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
15540         declaration, since the above renaming now works around collisions.
15541
15542 2004-11-11  Jim Meyering  <jim@meyering.net>
15543
15544         * lib/linebreak.c: Remove trailing blanks.
15545         * lib/alloca_.h: Likewise.
15546         * lib/acosl.c: Likewise.
15547         * lib/euidaccess.c: Likewise.
15548         * lib/allocsa.h: Likewise.
15549
15550 2004-11-10  Simon Josefsson  <jas@extundo.com>
15551
15552         * m4/getaddrinfo.m4: New file.
15553
15554 2004-11-10  Simon Josefsson  <jas@extundo.com>
15555
15556         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
15557
15558 2004-11-10  Simon Josefsson  <jas@extundo.com>
15559
15560         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
15561         getaddrinfo.
15562
15563         * modules/getaddrinfo: New file.
15564
15565 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
15566
15567         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
15568
15569 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
15570
15571         * lib/mktime.c (SHR): New macro, which is a portable
15572         substitute for >> that should work even on Crays.
15573         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
15574         Problem reported by Mark D. Baushke in
15575         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
15576         * lib/getdate.y (SHR): Likewise.
15577         (tm_diff): Use it.
15578         * lib/strftime.c (SHR): Likewise.
15579         (tm_diff): Use it.
15580         * lib/quotearg.c (struct quoting_options): Use unsigned int for
15581         quote_these_too, so that right shifts are well defined.  All uses
15582         changed.
15583
15584 2004-11-10  Jim Meyering  <jim@meyering.net>
15585
15586         Ensure that no close failure goes unreported.
15587         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
15588         return early when it seems there's nothing to flush.
15589         Don't include __fpending.h.
15590
15591 2004-11-10  Jim Meyering  <jim@meyering.net>
15592
15593         * modules/closeout (Depends-on): Remove fpending.
15594
15595 2004-11-10  Jim Meyering  <jim@meyering.net>
15596
15597         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
15598
15599 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
15600
15601         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
15602         gl_FUNC_STRFTIME.
15603         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
15604         and AC_REQUIRE when possible, to avoid duplicate checks.
15605         Check for <wchar.h>.
15606
15607 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
15608
15609         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
15610
15611 2004-11-09  Bruno Haible  <bruno@clisp.org>
15612
15613         * m4/sockpfaf.m4: New file.
15614
15615 2004-11-05  Bruno Haible  <bruno@clisp.org>
15616
15617         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
15618         Reported by Mark D. Baushke <mdb@cvshome.org>.
15619
15620 2004-11-04  Bruno Haible  <bruno@clisp.org>
15621
15622         2004-09-11  Bruno Haible  <bruno@clisp.org>
15623                 * allocsa.valgrind: New file.
15624         2004-02-06  Bruno Haible  <bruno@clisp.org>
15625                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
15626                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
15627                 Reported by Christopher Seip <chris.seip@hp.com>.
15628
15629 2004-11-04  Bruno Haible  <bruno@clisp.org>
15630
15631         * modules/allocsa (Files): Add lib/allocsa.valgrind.
15632         (Makefile.am): Distribute it.
15633
15634 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
15635
15636         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
15637         with errno == ERANGE if the buffer is too small.
15638         Problem reported by Mark D. Baushke.
15639
15640 2004-11-03  Albert Chin  <china@thewrittenword.com>
15641             Paul Eggert  <eggert@cs.ucla.edu>
15642
15643         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
15644         equivalent, substitute $ac_type for equivalent type rather than
15645         blindly using uint32_t *always* which won't work if uint32_t is not
15646         available.  Define _UINT32_T to work around typedef of uint32_t if
15647         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
15648         2.5.1.
15649
15650 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
15651
15652         * m4/jm-macros.m4: Sync from coreutils.
15653         (gl_MACROS): Check for mbrlen, for pathchk.
15654         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
15655
15656 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
15657
15658         * lib/xreadlink.c (MAXSIZE): New macro.
15659         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
15660         size does not exceed MAXSIZE.  Avoid cast.
15661         As suggested by Mark D. Baushke in
15662         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
15663         if readlink fails with buffer size just under MAXSIZE, try again
15664         with MAXSIZE.
15665
15666 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
15667
15668         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
15669
15670 2004-11-02  Derek R. Price  <derek@ximbiot.com>
15671         and  Paul Eggert  <eggert@cs.ucla.edu>
15672
15673         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
15674         (get_date): Overparenthesize to avoid GCC warning.
15675
15676 2004-11-02  Bruno Haible  <bruno@clisp.org>
15677
15678         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
15679         returns void.
15680
15681 2004-11-02  Bruno Haible  <bruno@clisp.org>
15682
15683         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
15684         function returns void.
15685
15686 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
15687
15688         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
15689         fflush_unlocked, flockfile, funlockfile, funlockfile,
15690         fputs_unlocked, putc_unlocked.
15691
15692 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
15693
15694         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
15695         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
15696         already declared.
15697
15698 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
15699
15700         * modules/getdate (Files): Add doc/getdate.texi.
15701         (Depends-on): Add setenv, xalloc.
15702
15703 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
15704
15705         * lib/getdate.y: Add support for TZ="foo" within a date string.
15706         Fix some bugs near time_t boundaries.  Reject dates with
15707         out-of-range components, e.g., "Sept 31".
15708         Include <stdlib.h>, "setenv.h", "xalloc.h".
15709         (ISDIGIT_LOCALE): Remove; unused.
15710         Note that the TZ and time functions used here are not reentrant.
15711         (mktime_ok, get_tz): New functions.
15712         (TZBUFSIZE): New constant.
15713         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
15714         This requires that we sometimes generate our own TZ="XXX..." setting.
15715
15716 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
15717
15718         * doc/getdate.texi: New file, from coreutils with modifications for
15719         the new TZ parsing.
15720
15721 2004-10-27  Derek R. Price  <derek@ximbiot.com>
15722
15723         * lib/mktime.c (not_equal_tm): Remove redundant check.
15724
15725 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
15726
15727         * modules/regex (lib_SOURCES): Add regex.c.
15728         Reported by James Youngman in
15729         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
15730
15731 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
15732
15733         * lib/getdate.y: Use Bison 1.875 features, and some minor
15734         code cleanups.  This change does not affect semantics.
15735         Don't include <stdlib.h>; no longer needed.
15736         Don't include unlocked-io.h; only the "#if TEST" code uses
15737         stdio, and performance isn't crucial there.
15738         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
15739         Bison 1.875 features as described below.
15740         All uses of "PC." replaced by "pc->".
15741         (YYSTYPE): Add a forward declaration.
15742         (yylex, yyerror): Use full prototypes in forward decls.
15743         Use "%pure-parser" rather than obsolescent "%pure_parser".
15744         Use %parse-param and %lex-param instead of obsolescent
15745         YYPARSE_PARAM and YYLEX_PARAM.
15746         (meridian_table, month_and_day_table, time_units_table,
15747         relative_time_table, time_zone_table, military_table,
15748         lookup_zone, lookup_word, get_date):
15749         Use NULL instead of 0 where appropriate.
15750         (to_hour): Avoid abort (), to avoid a dependency on
15751         stdlib.h.
15752         (yyerror, yylex): Now accepts parser_control * arg.
15753         (main) [TEST]: Use '\0' rather than 0 for char.
15754
15755 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
15756
15757         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
15758
15759 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
15760
15761         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
15762         It's now the caller's responsibility to handle the case where
15763         !HAVE_GETPAGESIZE && !defined getpagesize.
15764
15765         * lib/mktime.c (leapyear): Arg is long int, not int.
15766
15767 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
15768
15769         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
15770
15771 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
15772
15773         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
15774         missing.  Problem reported by James Youngman.
15775
15776 2004-10-16  Simon Josefsson  <jas@extundo.com>
15777
15778         * gnulib-tool: Fix comments.  Fix parse problem.
15779         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
15780
15781 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
15782
15783         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
15784         implementation of getopt_long.  Problem reported by Alexander Taler in:
15785         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
15786
15787 2004-10-15  Bruno Haible  <bruno@clisp.org>
15788
15789         * gnulib-tool: Untabify. Initialize supplied_libname.
15790         (func_usage): More homogenous output.
15791         (func_modules_transitive_closure, func_modules_to_filelist,
15792         func_emit_lib_Makefile_am): New functions.
15793         (func_import): New function, extracted from big case statement. Use
15794         func_get_license, func_modules_transitive_closure,
15795         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
15796         opt_lgpl. Don't use test -a, as it's not portable.
15797         (func_create_testdir): Use func_modules_transitive_closure,
15798         func_modules_to_filelist, func_emit_lib_Makefile_am.
15799
15800 2004-10-15  Bruno Haible  <bruno@clisp.org>
15801
15802         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
15803
15804 2004-10-15  Bruno Haible  <bruno@clisp.org>
15805
15806         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
15807         the portions belonging to each module.
15808         Suggested by Derek Robert Price <derek@ximbiot.com>.
15809
15810 2004-10-12  Simon Josefsson  <jas@extundo.com>
15811
15812         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
15813         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
15814         to real functions.
15815
15816 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
15817
15818         * modules/vsnprintf: New file.
15819
15820 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
15821
15822         * m4/vsnprintf.m4: New file.
15823
15824 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
15825
15826         * lib/vsnprintf.h: New file.
15827         * lib/vsnprintf.c: New file.
15828
15829 2004-10-11  Bruno Haible  <bruno@clisp.org>
15830
15831         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
15832         vsnprintf.
15833
15834 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
15835
15836         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
15837
15838 2004-10-07  Bruno Haible  <bruno@clisp.org>
15839
15840         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
15841         fits into the provided buffer.
15842
15843 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
15844
15845         * lib/diacrit.c, diacrit.h: Add GPL notice.
15846
15847         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
15848         notice.
15849         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
15850         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
15851         This avoids a potential constant-folding bug.
15852
15853 2004-10-05  Bruno Haible  <bruno@clisp.org>
15854
15855         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
15856         for the declaration of strsep.
15857
15858 2004-10-05  Bruno Haible  <bruno@clisp.org>
15859
15860         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
15861
15862 2004-10-04  Simon Josefsson  <jas@extundo.com>
15863
15864         * modules/memmem: New file.
15865         * tests/test-memmem.c: New file.
15866         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
15867
15868 2004-10-04  Simon Josefsson  <jas@extundo.com>
15869
15870         * m4/memmem.m4: New file.
15871
15872 2004-10-04  Simon Josefsson  <jas@extundo.com>
15873
15874         * lib/memmem.h: New file.
15875         * lib/memmem.c: New file, taken from glibc.
15876
15877 2004-10-04  Simon Josefsson  <jas@extundo.com>
15878
15879         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
15880         '#ifdef USE_UNLOCKED_IO'.
15881
15882 2004-10-04  Simon Josefsson  <jas@extundo.com>
15883
15884         * config/srclist.txt: Add memmem from glibc.
15885
15886 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
15887
15888         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
15889
15890         * modules/argmatch, modules/argp, modules/closeout, modules/error,
15891         modules/exclude, modules/getdate, modules/getline,
15892         modules/getndelim2, modules/getpass, modules/getpass-gnu,
15893         modules/getusershell, modules/linebuffer, modules/md5,
15894         modules/mountlist, modules/posixtm, modules/readtokens,
15895         modules/readutmp, modules/regex, modules/sha1,
15896         modules/version-etc, modules/yesno:
15897         Remove dependency on unlocked-io.
15898
15899 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
15900
15901         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
15902
15903         * m4/unlocked-io.m4: Add copyright notice.
15904         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
15905
15906 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
15907
15908         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
15909         * lib/xmalloc.c (xmemdup): Likewise.
15910         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
15911         XFREE): Remove these long-obsolescent macros.
15912         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
15913         * lib/xstrdup.c: Remove.
15914
15915         * lib/regex.c (re_comp): Cast gettext return value to char *,
15916         Problem reported by Martin Neitzel via Mark D. Baushke.
15917
15918 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
15919
15920         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
15921         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
15922         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
15923         regex.c, sha1.c, version-etc.c, yesno.c:
15924         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
15925         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
15926         the includer's responsibility.
15927
15928         Sync from coreutils.
15929
15930         * lib/modechange.c (mode_compile): Don't decrement a pointer that
15931         points to the start of a string, as the C Standard says the
15932         resulting behavior is undefined.
15933
15934         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
15935         simple -> simple_backups, numbered_existing ->
15936         numbered_existing_backups, numbered -> numbered_backups
15937         to avoid shadowing problems.  All uses changed.
15938         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
15939         * lib/backupfile.c (check_extension, numbered_backup):
15940         Rename locals to avoid shadowing 'basename'.
15941         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
15942         once.
15943
15944         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
15945         * lib/.cvsignore: Add getopt.h.
15946
15947 2004-10-04  Bruno Haible  <bruno@clisp.org>
15948
15949         * modules/README: New file.
15950         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
15951         not a module.
15952
15953 2004-10-02  Jim Meyering  <jim@meyering.net>
15954
15955         * lib/dirfd.h, getpagesize.h: Add copyright notice.
15956
15957 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
15958
15959         * modules/strsep: New file.
15960
15961 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
15962
15963         * m4/strsep.m4: New file.
15964
15965 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
15966
15967         * lib/strsep.h: New file.
15968         * lib/strsep.c: New file.
15969
15970 2004-10-01  Simon Josefsson  <jas@extundo.com>
15971
15972         * lib/snprintf.c (snprintf): Handle size==0.
15973
15974 2004-10-01  Simon Josefsson  <jas@extundo.com>
15975             Bruno Haible  <bruno@clisp.org>
15976
15977         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
15978         (snprintf): Declare 'args'.
15979
15980 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
15981
15982         * lib/snprintf.c: Remove comments as to why each header is needed.
15983
15984 2004-10-01  Bruno Haible  <bruno@clisp.org>
15985
15986         * MODULES.html.sh: Add strsep.
15987
15988 2004-09-30  Simon Josefsson  <jas@extundo.com>
15989
15990         * modules/snprintf: New file.
15991
15992 2004-09-30  Simon Josefsson  <jas@extundo.com>
15993
15994         * m4/snprintf.m4: New file.
15995
15996 2004-09-30  Simon Josefsson  <jas@extundo.com>
15997
15998         * lib/snprintf.h, lib/snprintf.c: New files.
15999
16000 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
16001
16002         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
16003         (hol_entry_help): Never translate an empty string.
16004         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
16005         * lib/argp.h (OPTION_NO_TRANS): New option.
16006
16007 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
16008
16009         * modules/argp (Maintainer): Replace Simon Josefsson
16010         by Sergey Poznyakoff.
16011
16012 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
16013
16014         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
16015         changes merged back into glibc.
16016
16017 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
16018
16019         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
16020
16021 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
16022
16023         * lib/xvasprintf.c: Include xalloc.h.
16024         (xvasprintf): Use xalloc_die, not xmalloc_die.
16025
16026 2004-09-29  Bruno Haible  <bruno@clisp.org>
16027
16028         * modules/alloca-opt: New file, derived from modules/alloca.
16029         * modules/allocsa: Depend on alloca-opt instead of alloca.
16030         * modules/setenv: Likewise.
16031         * modules/vasnprintf: Likewise.
16032         * MODULES.html.sh: Add alloca-opt.
16033
16034 2004-09-28  Simon Josefsson  <jas@extundo.com>
16035
16036         * gnulib-tool: New parameter --lgpl, to asseert that modules are
16037         LGPL, and to replace license template from GPL to LGPL.
16038
16039 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
16040
16041         * modules/dummy: Change license to LGPL.
16042
16043 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
16044
16045         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
16046
16047 2004-09-24  Simon Josefsson  <jas@extundo.com>
16048
16049         * modules/minmax (License): Change from GPL to LGPL.
16050
16051 2004-09-23  Simon Josefsson  <jas@extundo.com>
16052
16053         * gnulib-tool (--import): Typo.
16054
16055 2004-09-23  Simon Josefsson  <jas@extundo.com>
16056
16057         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
16058
16059 2004-09-22  Bruno Haible  <bruno@clisp.org>
16060
16061         * modules/*: Add 'License' field.
16062         * gnulib-tool: Accept --extract-license option.
16063         (func_get_license): New function.
16064
16065 2004-09-21  Bruno Haible  <bruno@clisp.org>
16066
16067         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
16068         Reported by Simon Josefsson.
16069
16070 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
16071
16072         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
16073         gl_AC_TYPE_LONG_LONG.
16074
16075 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
16076
16077         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
16078
16079 2004-09-18  Simon Josefsson  <jas@extundo.com>
16080         and  Paul Eggert  <eggert@cs.ucla.edu>
16081
16082         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
16083         calls with autoreconf.  Define GL_LIB.
16084
16085 2004-09-14  Karl Berry  <karl@gnu.org>
16086
16087         * config/srclist.txt: unsync setenv.c, sigh.
16088
16089 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
16090
16091         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
16092         Problem reported by Bruno Haible in:
16093         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
16094
16095 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
16096
16097         * config/srclist.txt: Comment out argp-pvh.c.
16098
16099 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
16100
16101         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
16102         in case some system header has #define'd it.  Problem reported by
16103         Soeren D. Schulze in
16104         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
16105
16106 2004-09-09  Karl Berry  <karl@gnu.org>
16107
16108         * regex.[ch]: delete from the root.  These were supposed to be
16109                 synced with emacs cvs, but this has not happened for about
16110                 a year, and anyway nothing else uses emacs regex.[ch].
16111                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
16112                 lib/regex[.ch] is untouched.
16113
16114 2004-09-09  Bruno Haible  <bruno@clisp.org>
16115
16116         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
16117
16118 2004-09-09  Bruno Haible  <bruno@clisp.org>
16119
16120         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
16121         modifications.
16122         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
16123
16124 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
16125
16126         * modules/xvasprintf: New file.
16127         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
16128
16129 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
16130
16131         * lib/xvasprintf.h: New file.
16132         * lib/xvasprintf.c: New file.
16133         * lib/xasprintf.c: New file.
16134
16135 2004-09-08  Bruno Haible  <bruno@clisp.org>
16136
16137         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
16138
16139 2004-09-08  Bruno Haible  <bruno@clisp.org>
16140
16141         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
16142         length is > INT_MAX.
16143         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
16144         more.
16145
16146 2004-09-08  Bruno Haible  <bruno@clisp.org>
16147
16148         * lib/stdint_.h: New file, taken from GNU clisp.
16149
16150 2004-09-08  Bruno Haible  <bruno@clisp.org>
16151             Oskar Liljeblad  <oskar@osk.mine.nu>
16152
16153         * modules/stdint: New file.
16154         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
16155
16156 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
16157
16158         Import from coreutils.
16159         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
16160         strings on unbounded length.  alloca's performance benefits aren't
16161         that important here.
16162         (V_STRDUP): Remove.
16163         (parse_with_separator): New function, with most of the internals
16164         of the old parse_user_spec.  Allow user to omit both user and group,
16165         for compatibility with FreeBSD.
16166         Clone only the user name, not the entire spec.
16167         Do not set *uid, *gid unless entirely successful.
16168         Avoid memory leak in some failing cases.
16169         Fix regression for USER.GROUP reported by Dmitry V. Levin in
16170         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
16171         (parse_user_spec): Rewrite to use parse_with_separator.
16172
16173 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
16174
16175         * modules/userspec: Don't depend on alloca.
16176
16177 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
16178
16179         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
16180
16181 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
16182
16183         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
16184         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
16185         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
16186
16187 2004-08-16  Simon Josefsson  <jas@extundo.com>
16188
16189         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
16190         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
16191         Add --dry-run for --import.
16192         Let user provided command line parameters override configure.ac
16193         settings.
16194
16195 2004-08-12  Simon Josefsson  <jas@extundo.com>
16196
16197         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
16198         as discussed with Paul Eggert in threads rooted at
16199         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
16200         and
16201         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
16202         Before, the test was empty, and relied on ELIDE_CODE in source
16203         code.)
16204         (gl_PREREQ_GETOPT): New macro.
16205         (gl_GETOPT): Use them.
16206
16207 2004-08-12  Simon Josefsson  <jas@extundo.com>
16208
16209         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
16210         * lib/getopt_.h: Renamed from getopt.h.
16211
16212 2004-08-12  Simon Josefsson  <jas@extundo.com>
16213
16214         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
16215         Change default library name from libfoo to libgnu.
16216         Now, if you have a configure.ac that says:
16217                 gl_SOURCE_BASE(gl)
16218                 gl_M4_BASE(gl/m4)
16219                 gl_MODULES(error getopt etcetera)
16220                 gl_INIT
16221         you can import all you need by running:
16222                 ../gnulib/gnulib-tool --import
16223
16224         * modules/getopt (Files): Rename getopt.h to getopt_.h.
16225         (Makefile.am): Rewrite, use logic from argz.
16226         (Include): Use <getopt.h> instead of "getopt.h".
16227
16228 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
16229
16230         * modules/argp (Files): Add m4/unlocked-io.m4.
16231         (Depends-on): Add extensions.
16232
16233 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
16234
16235         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
16236         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
16237         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
16238         Check for program_invocation_name, program_invocation_short_name,
16239         flockfile, funlockfile, features.h, _getopt_long_only_r.
16240
16241 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
16242
16243         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
16244         its complicated substitute.
16245         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
16246         and program_invocation_name.
16247         (__argp_basename) [!_LIBC]: Remove; the only use was
16248         replaced by its body.
16249         (__argp_short_program_name): Change condition from
16250         !defined __argp_short_program_name to
16251         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
16252         to match argp-namefrob.h.
16253         (__argp_failure): Don't assume strerror_r returns char *.
16254         * lib/argp-parse.c (N_): Define unconditionally.
16255         (argp_default_options): Fill out initializers with 0 to avoid
16256         gcc warnings.
16257
16258 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
16259
16260         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
16261         getopt1.c.
16262
16263 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
16264
16265         Merge from coreutils.
16266
16267         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
16268
16269         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
16270         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
16271
16272 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
16273
16274         Merge from coreutils.
16275
16276         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
16277         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
16278         for Reliant Unix 5.43.
16279
16280         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
16281         (union fooround): Use uintmax_t, not long int.
16282         The rest is a merge from libc:
16283         [defined _LIBC]: Include <shlib-compat.h>.
16284         (_obstack) [defined _LIBC]: Remove after 2.3.4.
16285
16286         * lib/settime.c (settime): Recode to avoid warning with
16287         Sun Forte C 6U2.
16288
16289         * lib/strverscmp.c: Convert to UTF-8.
16290
16291 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
16292
16293         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
16294         m4/uintmax_t.m4.
16295
16296 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
16297
16298         * modules/xalloc-die: New file.
16299         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
16300
16301         * modules/md5 (Files): Add m4/uint32_t.m4.
16302         * modules/sha1: Renamed from modules/sha.
16303         (Files):
16304         Rename lib/sha.h to lib/sha1.h.
16305         Rename lib/sha.c to lib/sha1.c.
16306         Rename m4/sha.m4 to m4/sha1.m4.
16307         (lib_SOURCES): Likewise.
16308         (configure.ac): Rename gl_SHA to gl_SHA1.
16309         (Include): sha.h -> sha1.h.
16310
16311 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
16312
16313         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
16314         * m4/sha1.m4: Renamed from sha.m4.
16315         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
16316
16317 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
16318
16319         * lib/obstack.h (obstack_empty_p):
16320         Don't assume that chunk->contents is suitably aligned.
16321         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
16322         Likewise. Problem reported by Benno in
16323         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
16324
16325         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
16326         readable.  This could be improved further but it'd take some work.
16327
16328 2004-08-08  Simon Josefsson  <jas@extundo.com>
16329
16330         * modules/xgethostname (Depends-on): Remove exit and error (not
16331         used).
16332
16333         * modules/getpass-gnu: Add getpass.h.
16334         (Depends-on): Add stdbool.
16335         * modules/getpass: Add getpass.h.
16336
16337 2004-08-08  Simon Josefsson  <jas@extundo.com>
16338
16339         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
16340         Check getpass declaration.
16341
16342 2004-08-08  Simon Josefsson  <jas@extundo.com>
16343
16344         * lib/xgethostname.c: Don't include error.h (not used).
16345
16346         * lib/getpass.h: Add.
16347         * lib/getpass.c: Include getpass.h first.
16348
16349 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
16350
16351         * lib/xalloc-die.c: New file.
16352         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
16353         All uses removed.
16354         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
16355         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
16356         xalloc-die.c.
16357         (_, N_, xalloc_die): Move to xalloc-die.c.
16358         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
16359         so that we needn't mess with xalloc_msg_memory_exhausted.
16360
16361         * lib/sha1.h: Renamed from sha.h.
16362         (SHA1_H): Renamed from _SHA_H.
16363         (sha1_ctx): Renamed from sha_ctx.
16364         (sha1_init_ctx): Renamed from sha_init_ctx.
16365         (sha1_process_block): Renamed from sha_process_block.
16366         (sha1_process_bytes): Renamed from sha_process_bytes.
16367         (sha1_finish_ctx): Renamed from sha_finish_ctx.
16368         (sha1_read_ctx): Renamed from sha_read_ctx.
16369         (sha1_stream): Renamed from sha_stream.
16370         (sha1_buffer): Renamed from sha_buffer.
16371         * lib/sha1.c: Likewise; renamed from sha.c.
16372         Do not include <sys/types.h>.
16373         Include <stddef.h> rather than <stdlib.h>.
16374
16375 2004-08-08  Bruno Haible  <bruno@clisp.org>
16376
16377         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
16378         FILESYSTEM_PREFIX_LEN.
16379         * lib/progreloc.c: Likewise.
16380         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
16381
16382 2004-08-06  Simon Josefsson  <jas@extundo.com>
16383
16384         * modules/progname (Depends-on): Don't depend on stdbool.
16385
16386 2004-08-06  Simon Josefsson  <jas@extundo.com>
16387
16388         * modules/getsubopt: New file.
16389         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
16390         getsubopt.
16391
16392 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
16393
16394         More merge from coreutils.
16395
16396         * m4/utimens.m4, m4/utimecmp.m4: New files.
16397         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
16398         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
16399         prereq.m4, sha.m4: Import changes from coreutils.
16400
16401 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
16402
16403         More merge from coreutils.
16404         * modules/raise, modules/readtokens0, modules/utimens:
16405         * modules/utimecmp, module/xnanosleep: New files.
16406         * modules/strftime: Add lib/strftime.h.
16407         Change include from <time.h> to "strftime.h".
16408         * modules/yesno: Add lib/yesno.h.
16409         * modules/backupfile: Remove lib/addext.c.
16410         * modules/euidaccess: Add stat-macros.h.
16411         * modules/canonicalize, modules/euidaccess,
16412         modules/filemode, modules/lchown, modules/makepath,
16413         modules/rmdir, modules/stat: Likewise.
16414
16415 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
16416
16417         Merge from tar.
16418         * lib/argp-help.c (make_hol, hol_append): Don't assume that
16419         SIZE_MAX is a valid preprocessor constant.
16420         (__argp_basename): Change from "#ifndef _LIBC"
16421         to "#ifndef __argp_short_program_name", so that
16422         we don't compile these functions for tar.
16423
16424         More merges from coreutils.
16425         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
16426         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
16427         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
16428         * lib/addext.c: Remove; no longer needed.
16429         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
16430         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
16431         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
16432         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
16433         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
16434         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
16435         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
16436         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
16437         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
16438         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
16439         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
16440         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
16441         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
16442         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
16443         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
16444         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
16445         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
16446         Import changes from coreutils.
16447
16448 2004-08-05  Simon Josefsson  <jas@extundo.com>
16449
16450         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
16451
16452 2004-08-05  Simon Josefsson  <jas@extundo.com>
16453
16454         * m4/getsubopt.m4: New file.
16455
16456 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
16457
16458         Merge from coreutils.
16459
16460         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
16461         * m4/getcwd-path-max.m4: New files.
16462
16463         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
16464         FILESYSTEM_PREFIX_LEN ->
16465         FILE_SYSTEM_PREFIX_LEN.
16466         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
16467         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
16468         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
16469         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
16470
16471         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
16472         prerequisite modules now handle the DOS stuff.
16473         Don't check for unistd.h.
16474
16475 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
16476
16477         Merge from coreutils.
16478
16479         * lib/.gdb-history: Remove; this doesn't belong here.
16480
16481         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
16482         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
16483         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
16484         * lib/getcwd.c: New files.
16485
16486         * lib/dirname.h: Include <stdbool.h>.
16487         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
16488         for consistency with POSIX terminology.  All uses changed.
16489         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
16490         (strip_trailing_slashes): Use bool for booleans.
16491         * lib/stripslash.c (strip_trailing_slashes): Likewise.
16492
16493         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
16494         sometimes returns a positive errno value even when it succeeds.
16495         (print_errno_message) [!LIBC]: Fall back on strerror if
16496         __strerror_r fails.
16497
16498         * lib/path-concat.c (mempcpy): Don't define if a system header defines
16499         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
16500         (longest_relative_suffix): New function.
16501         (path_concat): Use it.  Assume first argument is not NULL.
16502         Port to DOS.  Omit redundant separators.
16503         Report an error instead of returning NULL.
16504         Use mempcpy instead of memcpy.
16505         (xpath_concat): Remove: not declared or used.
16506
16507         * lib/same.h: Include <stdbool.h>
16508         (same_name): Return bool, not int.
16509         * lib/same.c (same_name): Likewise.
16510         (errno): Don't declare; we assume C89 or better now.
16511
16512         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
16513         if not already defined.
16514
16515         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
16516         * lib/dup-safer.c (errno): Likewise.
16517
16518 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
16519
16520         Merge from coreutils.
16521         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
16522         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
16523         * modules/path-concat: Don't depend on strdup.
16524
16525 2004-08-03  Simon Josefsson  <jas@extundo.com>
16526
16527         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
16528         * lib/progname.h: Don't include stdbool.h.
16529
16530 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
16531
16532         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
16533         * MODULES.html.sh (func_all_modules): Remove fatal.
16534
16535 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
16536
16537         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
16538
16539 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
16540
16541         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
16542         working.
16543
16544 2004-08-02  Simon Josefsson  <jas@extundo.com>
16545
16546         * lib/getsubopt.h: New file, with comments from Bruno Haible.
16547         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
16548         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
16549
16550 2004-08-01  Simon Josefsson  <jas@extundo.com>
16551
16552         * lib/xgetdomainname.c: Include stdlib.h, for free().
16553
16554 2004-07-19  Bruno Haible  <bruno@clisp.org>
16555
16556         * MODULES.html.sh (func_all_modules): Add dummy.
16557
16558 2004-07-16  Simon Josefsson  <jas@extundo.com>
16559
16560         * modules/dummy: New file.
16561
16562 2004-07-16  Simon Josefsson  <jas@extundo.com>
16563
16564         * lib/dummy.c: New file.
16565
16566 2004-07-16  Bruno Haible  <bruno@clisp.org>
16567
16568         * lib/backupfile.h: Add extern "C" for C++.
16569         * lib/closeout.h: Likewise.
16570         * lib/copy-file.h: Likewise.
16571         * lib/findprog.h: Likewise.
16572         * lib/full-write.h: Likewise.
16573         * lib/pathname.h: Likewise.
16574         * lib/progname.h: Likewise.
16575         * lib/stpcpy.h: Likewise.
16576         * lib/stpncpy.h: Likewise.
16577         * lib/strcase.h: Likewise.
16578         * lib/strstr.h: Likewise.
16579         * lib/xalloc.h: Likewise.
16580
16581         * lib/mbswidth.h: Add extern "C" for C++.
16582         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
16583
16584 2004-07-13  Robert Millan  <robertmh@gnu.org>
16585
16586         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
16587
16588 2004-07-09  Simon Josefsson  <jas@extundo.com>
16589
16590         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
16591         failed without this.)
16592
16593 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
16594
16595         * modules/chown (Files): Add lib/fchown-stub.c, since
16596         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
16597
16598 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
16599
16600         * lib/fchown-stub.c: New file.
16601
16602 2004-06-24  Jim Meyering  <jim@meyering.net>
16603
16604         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
16605
16606 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
16607
16608         * modules/argz: Omit "#include".
16609
16610         * MODULES.html.sh (func_all_modules): Add calloc, to match
16611         2004-06-01 addition of calloc module.
16612
16613 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
16614
16615         * m4/argz.m4: New file, which is autoupdated from libtool.
16616
16617 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
16618
16619         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
16620         libtool.
16621
16622 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
16623
16624         * config/srclist-update: Don't insist on "USA." before the
16625         close-comment, as libtool omits the period and puts the */ on a
16626         separate line.
16627         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
16628         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
16629
16630 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
16631
16632         * modules/argz: New file.
16633         * MODULES.html.sh (func_all_modules): Add argz.
16634
16635 2004-06-12  Jim Meyering  <jim@meyering.net>
16636         and  Paul Eggert  <eggert@cs.ucla.edu>
16637
16638         * modules/hash (Files): Add lib/xalloc.h.
16639         * modules/pipe (Depends-on): Add wait-process.
16640         * modules/stat (Depends-on): Add xalloc.
16641         * modules/userspec (Files): Add lib/userspec.h.
16642         * modules/xstrto
16643
16644         Upgrade from gettext-0.13.
16645         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
16646         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
16647         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
16648
16649 2004-06-10  Jim Meyering  <jim@meyering.net>
16650
16651         * lib/calloc.c: New file.
16652
16653 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
16654
16655         * lib/getdate.y (yylex): Allow space between sign and number.
16656         Problem reported by Dan Jacobson.
16657
16658 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
16659
16660         Merge from coreutils CVS.
16661
16662         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
16663         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
16664         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
16665         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
16666         xstrtol.m4: Fix copyright date and/or serial number.
16667
16668         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
16669         See if we need an fchown replacement.
16670         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
16671         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
16672         and use the replacement function if we detect either defect.
16673
16674         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
16675         gl_UTIMECMP.
16676
16677 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
16678         and  Jim Meyering  <jim@meyering.net>
16679
16680         Merge from coreutils CVS.
16681
16682         * lib/stat-macros.h: New file, with contents from file-type.h
16683         and coreutils' system.h.
16684         * lib/file-type.c: Include "stat-macros.h".
16685         * lib/file-type.h (file_type): Move all macro definitions to new file,
16686         stat-macros.h.
16687
16688         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
16689         Wrap old code with this conditional.
16690         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
16691         function that does not dereference symlinks.
16692         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
16693
16694         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
16695         dependency problems.
16696         (xreadlink): Accept new arg SIZE, for efficiency.
16697         All decls and uses changed.
16698         * lib/xreadlink.h: Include <stddef.h>, for size_t.
16699
16700         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
16701         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
16702
16703         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
16704         sysexits.h.
16705
16706 2004-06-01  Jim Meyering  <jim@meyering.net>
16707
16708         * m4/calloc.m4: New file.
16709
16710 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
16711
16712         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
16713         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
16714         Also, fix a typo in a diagnostic.
16715
16716 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
16717
16718         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
16719         or AC_FUNC_REALLOC.
16720
16721 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
16722
16723         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
16724         macros to be defined.
16725         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
16726         the allocator returns NULL because the requested size is zero.
16727
16728 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
16729
16730         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
16731         var.  Add comment explaining why libc still defines it.  This
16732         merges the following patch from glibc:
16733         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
16734
16735 2004-05-20  Andreas Schwab  <schwab@suse.de>
16736
16737         * m4/free.m4: Replace free if it not known to work, not the other
16738         way round.
16739
16740 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
16741
16742         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
16743         present in glibc since revision 1.1 of this file.
16744         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
16745         obstack_alignment_mask, obstack_alloc, obstack_base,
16746         obstack_blank, obstack_blank_fast, obstack_chunk_size,
16747         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
16748         obstack_grow0, obstack_init, obstack_int_grow,
16749         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
16750         obstack_next_free, obstack_object_size, obstack_ptr_grow,
16751         obstack_ptr_grow_fast, obstack_room): Remove declarations of
16752         nonexistent functions.
16753
16754 2004-05-18  Karl Berry  <karl@gnu.org>
16755
16756         * config/srclist.txt: break link for vasnprintf.c.
16757
16758 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
16759
16760         Port obstack to the AS/400, where pointers are 16 bytes wide and
16761         you cannot cast an integer to a valid pointer.  This patch is
16762         currently waiting to be integrated into glibc; see
16763         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
16764
16765         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
16766         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
16767         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
16768         (struct obstack): temp member is now a union of a pointer and
16769         an integer, instead of an integer.  All integer uses changed.
16770         This does not affect the physical layout of struct obstack,
16771         except on hosts (like the AS/400) where the size or alignment of
16772         void * is greater than that of ptrdiff_t.
16773         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
16774         __STDC__)]: Store temporary in pointer member of union, not
16775         integer member.
16776         * lib/obstack.c: Include <stddef.h>, for offsetof.
16777         (struct fooalign): Remove; it doesn't need a name.
16778         (union fooround): Change double to long double, and add void *.
16779         (DEFAULT_ALIGNMENT): Use offsetof to compute.
16780         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
16781         not a macro.  Hence the values are always int; so remove all
16782         casts-to-int in uses.
16783
16784 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
16785
16786         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
16787         we can get this patch merged into glibc.
16788
16789 2004-05-17  Derek R. Price  <derek@ximbiot.com>
16790             Paul Eggert  <eggert@cs.ucla.edu>
16791
16792         * m4/argp: Depend on alloca.
16793
16794 2004-05-17  Derek R. Price  <derek@ximbiot.com>
16795             Paul Eggert  <eggert@cs.ucla.edu>
16796
16797         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
16798         freecoding.
16799
16800 2004-05-17  Bruno Haible  <bruno@clisp.org>
16801
16802         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
16803         precision that consists of a '.' followed by an empty digit string.
16804         Patch by Tor Lillqvist <tml@iki.fi>.
16805
16806 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
16807
16808         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
16809         for backward compatibility with older code.  We need our own
16810         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
16811         it under some other name, and our alloca.h will define it.
16812
16813 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
16814             Derek Price  <derek@ximbiot.com>
16815
16816         * lib/alloca.c: Include <alloca.h>, to get our interface.
16817         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
16818         include <alloca.h> first.  Use C89 prototype for alloca; this
16819         requires including <stddef.h> for size_t.  Use extern "C" if C++.
16820         Use #elif for simplicity, since we can assume C89 now.
16821         Don't try to source the system alloca.h since it will not be found
16822         and to prevent recursively including its replacement.
16823         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
16824         * lib/regex.c: Likewise.
16825
16826 2004-05-16  Derek Price  <derek@ximbiot.com>
16827             Paul Eggert  <eggert@cs.ucla.edu>
16828
16829         getline cleanup.  This changes the getndelim2 API: both order of
16830         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
16831         no delimiter).
16832
16833         * lib/getline.c: Don't include stddef.h or stdio.h, since our
16834         interface does that.
16835         (getline): Always use getdelim, so that we don't have two
16836         copies of this code.
16837         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
16838         if available.
16839         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
16840         (GETNDELIM2_MAXIMUM): New macro.
16841         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
16842         instead of the old practice of delim2==0.  All callers changed.
16843         Return -1 on overflow, instead of returning junk.
16844         Do not set *linesize unless allocation succeeds.
16845         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
16846         that we include sys/types.h.
16847         * lib/getnline.h: Likewise.
16848         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
16849         (getndelim2): Reorder arguments.
16850         * lib/getnline.c (getnline, getndelim):
16851         Don't discard the NMAX argument.
16852         (getnline): Invoke getndelim, to avoid code duplication.
16853         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
16854         of (size_t) -1 by callers of the getnline family.
16855
16856 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
16857
16858         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
16859         Check for gettimeofday.
16860         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
16861         Check for settimeofday, stime.
16862
16863 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
16864
16865         * lib/nanosleep.c (suspended): Change its type from int to
16866         sig_atomic_t volatile.
16867         (first_call): Make it private to rpl_nanosleep, and have it
16868         be zero initially as that's a bit faster.
16869         (my_usleep): Round up fractional times instead of truncating them,
16870         as this is the usual meaning for 'sleep'.
16871
16872         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
16873         doesn't work.
16874         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
16875         (ENOSYS): Define if not defined.
16876         (settime): Fall back on stime if it exists and settimeofday fails.
16877         But don't bother with fallbacks if a method fails with errno == EPERM.
16878
16879 2004-05-11  Jim Meyering  <jim@meyering.net>
16880
16881         Prior to this change, the save_cwd caller required read access to the
16882         current directory on most systems (ones with the fchdir function).
16883
16884         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
16885         fails, try write-only, and finally, resort to using xgetcwd.
16886
16887 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
16888
16889         * lib/obstack.c, obstack.h: Import changes from libc.
16890
16891 2004-04-28  Bruno Haible  <bruno@clisp.org>
16892
16893         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
16894         also implicitly appends .exe to executables.
16895         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
16896         accepts Windows pathnames.
16897         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
16898         Treat Cygwin like Windows, since it now accepts Windows pathnames.
16899         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
16900         Treat Cygwin like Windows, since it now accepts Windows pathnames.
16901         Reported by Derek Robert Price <derek@ximbiot.com>.
16902
16903 2004-04-21  Karl Berry  <karl@gnu.org>
16904
16905         * config/srclist.txt (localcharset.c): break sync.
16906
16907 2004-04-20  Paul Eggert  <eggert@twinsun.com>
16908
16909         * m4/host-os.m4: Add a copyright notice.
16910
16911 2004-04-20  Jim Meyering  <jim@meyering.net>
16912
16913         Change UTILS_ to gl_ in AC_DEFINE'd names.
16914         Change utils_- and jm_-prefixed variables, too.
16915         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
16916         UTILS_FUNC_MKDIR_TRAILING_SLASH.
16917         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
16918
16919         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
16920         Don't emit trailing blanks.
16921         Also rename jm_-prefixed variables to have gl_ prefix.
16922
16923         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
16924         Also rename jm_-prefixed variables to have gl_ prefix.
16925
16926         * m4/jm-macros.m4: Reflect the renamings.
16927         * m4/prereq.m4: Likewise.
16928
16929 2004-04-20  Jim Meyering  <jim@meyering.net>
16930
16931         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
16932         memory.
16933
16934 2004-04-20  Jim Meyering  <jim@meyering.net>
16935             Bruno Haible  <bruno@clisp.org>
16936
16937         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
16938         memory when realloc fails.
16939
16940 2004-04-19  Jim Meyering  <jim@meyering.net>
16941
16942         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
16943         now that readutmp.c may call `free (0)'.
16944
16945 2004-04-19  Bruno Haible  <bruno@clisp.org>
16946
16947         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
16948         * m4/inttypes_h.m4: Likewise.
16949         * m4/stdint_h.m4: Likewise.
16950         * m4/intmax_t.m4: Likewise.
16951         * m4/uintmax_t.m4: Likewise.
16952
16953 2004-04-18  Jim Meyering  <jim@meyering.net>
16954
16955         * m4/prereq.m4: Don't forbid jm_ prefix.
16956
16957         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
16958         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
16959         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
16960         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
16961         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
16962         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
16963         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
16964         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
16965         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
16966         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
16967         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
16968         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
16969         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
16970         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
16971         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
16972         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
16973         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
16974         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
16975         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
16976
16977 2004-04-18  Jim Meyering  <jim@meyering.net>
16978
16979         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
16980         failure, don't leak memory and do call END_UTMP_ENT.
16981
16982 2004-04-16  Jim Meyering  <jim@meyering.net>
16983
16984         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
16985         coreutils' stat program.
16986         (gl_PREREQ): Don't require jm_PREREQ_STAT.
16987
16988 2004-04-11  Paul Eggert  <eggert@twinsun.com>
16989
16990         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
16991         C89.
16992         (CHAR_BIT): Remove, since we assume C89.
16993         Include <stdint.h> if available, as per current Autoconf CVS advice.
16994
16995 2004-03-31  Jim Meyering  <jim@meyering.net>
16996
16997         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
16998         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
16999         * m4/xalloc.m4: Likewise.
17000
17001 2004-03-30  Paul Eggert  <eggert@twinsun.com>
17002
17003         Merge from coreutils.
17004
17005         * m4/inttostr.m4: New file.
17006         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
17007         Require AM_STDBOOL_H and gl_TIMESPEC instead.
17008         Require gl_CLOCK_TIME.
17009         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
17010
17011 2004-03-30  Paul Eggert  <eggert@twinsun.com>
17012
17013         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
17014         not bool, to be more consistent with Unix conventions.
17015         Suggested by Bruno Haible.
17016
17017         Merge from coreutils.
17018
17019         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
17020         * lib/umaxtostr.c: New files.
17021
17022         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
17023         the usual <time.h> dance.
17024         (get_date): Change signature to support fractional time stamps.
17025         All callers changed.
17026         * lib/getdate.y: Include "getdate.h" first, as we can now
17027         assume C89 and don't need to worry about 'const'.
17028         Similarly, include "unlocked-io.h" near start, not in middle.
17029         Include <limits.h>.
17030         (textint.value): Use long int rather than int.
17031         (textint.digits): Use size_t rather than int.
17032         (BILLION, LOG10_BILLION): New constants.
17033         (parser_control): New member rel_ns.  Members day_ordinal,
17034         time_zone, month, day, hour, minutes, rel_year, rel_month,
17035         rel_day, rel_hour, rel_minutes, rel_seconds
17036         are now long int, not int.  Member seconds is now struct timespec,
17037         not int.  New member timespec_seen.  Members dates_seen, days_seen,
17038         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
17039         not int.
17040         (%union.intval): Now long int, not int.
17041         New member timespec.
17042         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
17043         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
17044         (spec): Now is a timespec or an item list.
17045         (timespec, items): New nonterminals.
17046         (time, rel, relunit, number, get_date):
17047         Add support for fractional seconds.
17048         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
17049         (gmtime, localtime, mktime): Remove decls; not needed with C89.
17050         (to_hour): First arg is now long int, not int.
17051         (to_year): Returns long int, not int.
17052         Don't treat year -70 like 70.
17053         (tm_diff): Returns long int, not int.
17054         (lookup_word): Use bool instead of int when appropriate.
17055         (yylex): Use size_t for count, not int.
17056         Detect overflow when parsing large integer constants.
17057         Add support for fractions.
17058         (get_date): Make pointers 'const' if possible.
17059         Use more-portable code to detect integer overflow.
17060         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
17061         Don't use ctime; it's not reliable if the year has >4 digits.
17062
17063         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
17064         This is for compatibility with BSD.
17065
17066         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
17067         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
17068         From coreutils' system.h.
17069
17070         * lib/userspec.c: Don't include "posixver.h".
17071         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
17072         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
17073         compatible extension.  Simplify code by removing a boolean int
17074         that was always nonzero if a string was nonnull.
17075
17076 2004-03-30  Jim Meyering  <jim@meyering.net>
17077
17078         Merge from coreutils.
17079
17080         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
17081         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
17082         on some systems one must include <grp.h> before it.
17083         Reported by Christian Krackowizer.
17084
17085 2004-03-30  Jim Meyering  <jim@meyering.net>
17086
17087         Merge from coreutils.
17088
17089         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
17090
17091         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
17092         an empty input stream.
17093
17094         * lib/readtokens.c: Include <stdbool.h>.
17095         (readtoken): Use `size_t' rather than int/long.
17096         All callers adjusted.
17097         Use `bool' rather than `int' where appropriate.
17098         Use memset rather than an explicit loop.
17099         Use x2nrealloc rather than xrealloc.
17100         Allow the use of `\0' as a delimiter.
17101         (readtokens): Likewise.
17102         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
17103
17104 2004-03-30  Jim Meyering  <jim@meyering.net>
17105
17106         * m4/realloc.m4: Remove file, since now it does no more than
17107         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
17108         the `configure.ac' section of module/realloc.
17109         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
17110
17111 2004-03-30  Bruno Haible  <bruno@clisp.org>
17112
17113         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
17114         nonnull.
17115
17116 2004-03-29  Paul Eggert  <eggert@twinsun.com>
17117
17118         Merge changes to getloadavg.c from coreutils and Emacs.
17119
17120         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
17121         Define to an expression, not to the empty string.
17122         Include cloexec.h and xalloc.h.
17123         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
17124         Use set_cloexec_flag rather than rolling our own.
17125         * lib/cloexec.c, lib/cloexec.h: New files.
17126
17127 2004-03-29  Paul Eggert  <eggert@twinsun.com>
17128
17129         * m4/cloexec.m4: New file.
17130
17131 2004-03-18  Paul Eggert  <eggert@twinsun.com>
17132
17133         * lib/getopt.h: Sync with libc CVS.
17134
17135 2004-03-18  Paul Eggert  <eggert@twinsun.com>
17136             Bruno Haible  <bruno@clisp.org>
17137
17138         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
17139         mbswidth.
17140
17141 2004-03-18  Paul Eggert  <eggert@twinsun.com>
17142             Bruno Haible  <bruno@clisp.org>
17143
17144         * lib/mbswidth.h: Include <wchar.h> only if
17145         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
17146         <wchar.h>.
17147         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
17148
17149 2004-03-09  Paul Eggert  <eggert@twinsun.com>
17150
17151         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
17152         Sync with libc CVS.
17153         * lib/getopt_int.h: New file, also synced from libc.
17154
17155 2004-03-09  Paul Eggert  <eggert@twinsun.com>
17156
17157         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
17158         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
17159         Bring back getopt.c, getopt.h, getopt1.c.
17160
17161 2004-03-07  Paul Eggert  <eggert@twinsun.com>
17162
17163         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
17164         All uses changed.  Check for sa_sigaction member; this fixes
17165         a bug first reported by Jason Andrade in
17166         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
17167
17168 2004-03-07  Paul Eggert  <eggert@twinsun.com>
17169
17170         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
17171         '#if' expressions.  Unlike the code it replaces, it does not
17172         depend on (defined _SC_PAGESIZE).  However, it does depend on
17173         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
17174         first reported by Jason Andrade in
17175         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
17176
17177 2004-02-25  Simon Josefsson  <jas@extundo.com>
17178
17179         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
17180
17181 2004-02-25  Simon Josefsson  <jas@extundo.com>
17182
17183         * lib/strdup.h: New file.
17184         * lib/strdup.c: Include it.
17185         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
17186         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
17187
17188 2004-02-23  Karl Berry  <karl@gnu.org>
17189
17190         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
17191         (from fencepost.gnu.org:/gd/gnuorg).
17192
17193 2004-02-23  Karl Berry  <karl@gnu.org>
17194
17195         * config/srclistvars.sh (GNUORG) [karl]: redefine.
17196         * config/srclist.txt: add maintain/standards documents.
17197
17198 2004-02-18  Bruno Haible  <bruno@clisp.org>
17199
17200         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
17201         Reported by Derek Robert Price <derek@ximbiot.com>.
17202
17203 2004-02-16  Karl Berry  <karl@gnu.org>
17204
17205         * config/mkinstalldirs, install-sh: update from automake.
17206
17207 2004-02-06  Karl Berry  <karl@gnu.org>
17208
17209         * m4/po.m4: update from gettext 0.14.1.
17210
17211 2004-02-06  Karl Berry  <karl@gnu.org>
17212
17213         * lib/config.charset: update from gettext 0.14.1.
17214
17215 2004-02-05  Paul Eggert  <eggert@twinsun.com>
17216
17217         Add comments and code, prompted by suggestions from Bruno Haible
17218         for sh-quote.
17219         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
17220         describing the enum quoting_style values.
17221         * lib/quotearg.c (quotearg_alloc): New function.
17222         (quotearg_buffer_restyled): Treat lone { and } as special.
17223         Treat = as special.  Work around bug with older shells
17224         that "see" a '\' that is really the 2nd byte of a multibyte char.
17225         Quote empty string with shell_quoting_style.
17226
17227 2004-02-03  Bruno Haible  <bruno@clisp.org>
17228
17229         * m4/pipe.m4: New file, from GNU gettext.
17230
17231 2004-02-03  Bruno Haible  <bruno@clisp.org>
17232
17233         * lib/pipe.h: New file, from GNU gettext.
17234         * lib/pipe.c: New file, from GNU gettext.
17235
17236 2004-01-27  Bruno Haible  <bruno@clisp.org>
17237
17238         * m4/execute.m4: New file, from GNU gettext.
17239
17240 2004-01-27  Bruno Haible  <bruno@clisp.org>
17241
17242         * lib/execute.h: New file, from GNU gettext.
17243         * lib/execute.c: New file, from GNU gettext.
17244         * lib/w32spawn.h: New file, from GNU gettext.
17245
17246 2004-01-24  Paul Eggert  <eggert@twinsun.com>
17247
17248         Merge from diffutils.
17249
17250         * lib/file-type.c (file_type): Add typed memory objects.
17251         * lib/file-type.h (S_TYPEISTMO): New macro.
17252
17253         * lib/c-stack.h (c_stack_action): Remove argv argument.
17254         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
17255         (die): Don't calculate message unless segv_action returns.
17256         (get_stack_location, min_address_from_argv, max_address_from_argv,
17257         volatile stack_base, volatile_stack_size): Remove.
17258         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
17259         that every segmentation violation is a stack overflow.  (Ouch!)
17260         See Debian bug 136249 (still outstanding) for more info about why
17261         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
17262
17263 2004-01-24  Paul Eggert  <eggert@twinsun.com>
17264
17265         Exit-status fix from coreutils.
17266
17267         Use exit_failure consistently in place of EXIT_FAILURE,
17268         so that program exit statuses are consistent on failure.
17269
17270         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
17271         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
17272         * lib/argmatch.h: Comment fix to match the above.
17273         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
17274         Now a macro referring to exit_failure, instead of a separate
17275         variable.  Include "exitfail.h" to get it.
17276         * lib/xstrtol.h: Include "exitfail.h".
17277         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
17278
17279         * lib/long-options.c (parse_long_options): Use prototype
17280         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
17281         for clarity.
17282
17283 2004-01-21  Jim Meyering  <jim@meyering.net>
17284
17285         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
17286         so as not to conflict with a different-sized __mktime_internal
17287         function in GNU libc.
17288         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
17289         Problem building statically-linked `ls' reported by Michael Brunnbauer.
17290
17291 2004-01-20  Karl Berry  <karl@gnu.org>
17292
17293         * config/config.guess: update from config.
17294
17295         * config/srclistvars.sh: GNUWWWLICENSES for karl.
17296
17297 2004-01-20  Bruno Haible  <bruno@clisp.org>
17298
17299         Safer stack allocation.
17300         * lib/setenv.c: Include allocsa.h.
17301         (alloca): Remove fallback definition.
17302         (freea): Remove macro.
17303         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
17304         instead of freea.
17305
17306 2004-01-20  Bruno Haible  <bruno@clisp.org>
17307
17308         * m4/eealloc.m4: New file, from GNU gettext.
17309
17310 2004-01-20  Bruno Haible  <bruno@clisp.org>
17311
17312         * m4/allocsa.m4: New file, from GNU gettext.
17313
17314 2004-01-20  Bruno Haible  <bruno@clisp.org>
17315
17316         * lib/xallocsa.h: New file, from GNU gettext.
17317         * lib/xallocsa.c: New file, from GNU gettext.
17318
17319 2004-01-20  Bruno Haible  <bruno@clisp.org>
17320
17321         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
17322
17323 2004-01-20  Bruno Haible  <bruno@clisp.org>
17324
17325         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
17326         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
17327         specially.
17328
17329 2004-01-20  Bruno Haible  <bruno@clisp.org>
17330
17331         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
17332         patch.
17333
17334 2004-01-20  Bruno Haible  <bruno@clisp.org>
17335
17336         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
17337
17338 2004-01-20  Bruno Haible  <bruno@clisp.org>
17339
17340         * lib/eealloc.h: New file.
17341
17342 2004-01-20  Bruno Haible  <bruno@clisp.org>
17343
17344         * lib/binary-io.h: Avoid warnings on Cygwin.
17345
17346 2004-01-20  Bruno Haible  <bruno@clisp.org>
17347
17348         * lib/allocsa.h: New file, from GNU gettext.
17349         * lib/allocsa.c: New file, from GNU gettext.
17350
17351 2004-01-18  Karl Berry  <karl@gnu.org>
17352
17353         * doc/gpl.texi, doc/lgpl.texi: new files.
17354
17355 2004-01-18  Karl Berry  <karl@gnu.org>
17356
17357         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
17358         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
17359
17360 2004-01-15  Paul Eggert  <eggert@twinsun.com>
17361
17362         Merge from coreutils.
17363
17364         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
17365         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
17366         (gl_DEFAULT_POSIX2_VERSION): Move
17367         the documentation from 'configure' into 'config.hin',
17368         so that 'configure --help' isn't burdened by it and
17369         we don't have to worry about its formatting there.
17370         Reword the documentation so that it's more succinct
17371         and can be run together into a single paragraph.
17372         * m4/same.m4 (gl_SAME): Check for pathconf.
17373
17374 2004-01-15  Paul Eggert  <eggert@twinsun.com>
17375
17376         Merge from coreutils.
17377
17378         * lib/posixver.c: Include posixver.h.
17379
17380         * lib/same.c: Include <stdbool.h>, <limits.h>.
17381         (_POSIX_NAME_MAX): Define if not defined.
17382         (MIN): New macro.
17383         (same_name): If file names are silently truncated, report
17384         that the file names are the same if they are the same after
17385         the silent truncation.
17386
17387         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
17388         conversion function.
17389         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
17390         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
17391         longer needed.
17392
17393 2004-01-15  Jim Meyering  <jim@meyering.net>
17394
17395         Merge from coreutils.
17396
17397         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
17398         if no library is required.
17399         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
17400         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
17401         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
17402         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
17403         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
17404         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
17405         value, $ac_cv_search_crypt, if it's "none required".
17406         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
17407         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
17408         not gl_FUNC_GETLOADAVG.
17409         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
17410         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
17411
17412 2004-01-15  Jim Meyering  <jim@meyering.net>
17413
17414         Merge from coreutils.
17415
17416         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
17417         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
17418         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
17419
17420         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
17421         optional configure-time default.
17422
17423         * lib/version-etc.c (version_etc_copyright): Update copyright date.
17424
17425         * lib/xreadlink.c (xreadlink): Correct outdated comment.
17426
17427 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
17428
17429         Merge from coreutils.
17430
17431         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
17432         value, $ac_cv_search_nanosleep, if it's "none required".
17433
17434 2004-01-14  Paul Eggert  <eggert@twinsun.com>
17435
17436         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
17437         with like-named macro in fnmatch.c.
17438         (EXT): Use an internal constant instead.
17439
17440         Merge fnmatch patches from glibc.
17441         * lib/fnmatch.c (mbsinit): Remove define.
17442         Add libc_hidden_ver (__fnmatch, fnmatch).
17443         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
17444         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
17445
17446 2004-01-14  Karl Berry  <karl@gnu.org>
17447
17448         * config/install-sh: update from automake.
17449
17450 2004-01-13  Karl Berry  <karl@gnu.org>
17451
17452         * config/install-sh: update from automake.
17453
17454 2004-01-09  Karl Berry  <karl@gnu.org>
17455
17456         * config/install-sh: update from automake.
17457
17458 2004-01-05  Karl Berry  <karl@gnu.org>
17459
17460         * config/config.{sub,guess}: update from config.
17461
17462 2003-12-31  Karl Berry  <karl@gnu.org>
17463
17464         * config/depcomp: update from automake.
17465
17466 2003-12-14  Karl Berry  <karl@gnu.org>
17467
17468         * lib/config.charset: update from gettext-runtime.
17469
17470 2003-12-03  Paul Eggert  <eggert@twinsun.com>
17471
17472         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
17473         Bug reported by Alfred M. Szmidt.
17474
17475 2003-12-03  Bruno Haible  <bruno@clisp.org>
17476
17477         * m4/gettext.m4: Upgrade from gettext-0.13.
17478         * m4/po.m4: Upgrade from gettext-0.13.
17479         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
17480         * m4/intmax.m4: New file, from gettext-0.13.
17481         * m4/printf-posix.m4: New file, from gettext-0.13.
17482
17483 2003-11-29  Karl Berry  <karl@gnu.org>
17484
17485         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
17486
17487 2003-11-25  Paul Eggert  <eggert@twinsun.com>
17488             Bruno Haible  <bruno@clisp.org>
17489
17490         * lib/printf-parse.h: Don't include sys/types.h.
17491         (ARG_NONE): New macro.
17492         (char_directive): Change type of *arg_index fields to size_t.
17493         * lib/printf-parse.c: Don't include sys/types.h.
17494         (SSIZE_MAX): Remove macro.
17495         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
17496         Remove unnecessary overflow check.
17497         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
17498         fields.
17499
17500 2003-11-25  Bruno Haible  <bruno@clisp.org>
17501
17502         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
17503
17504 2003-11-25  Bruno Haible  <bruno@clisp.org>
17505
17506         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
17507         gt_TYPE_SSIZE_T.
17508
17509 2003-11-24  Paul Eggert  <eggert@twinsun.com>
17510
17511         * modules/alloca: Remove dependency on xalloc.
17512
17513 2003-11-24  Paul Eggert  <eggert@twinsun.com>
17514
17515         * lib/alloca.c: Remove dependency on xalloc module.
17516         (xalloc_die): Remove.
17517         (memory_full) [!defined emacs]: New macro.
17518         [!defined emacs]: Don't include xalloc.h.
17519         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
17520         address arithmetic overflows.  Change datatypes a bit to avoid
17521         unnecessary casts.
17522
17523 2003-11-22  Jim Meyering  <jim@meyering.net>
17524
17525         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
17526         s/size/size_t/.
17527
17528 2003-11-21  Karl Berry  <karl@gnu.org>
17529
17530         * config/config.{sub,guess}: update from config.
17531
17532 2003-11-18  Karl Berry  <karl@gnu.org>
17533
17534         * config/config.{sub,guess}: update from config.
17535
17536         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
17537
17538 2003-11-17  Paul Eggert  <eggert@twinsun.com>
17539
17540         * README: Mention that S+T cannot overflow if S is the size of
17541         an existing object and T is sufficiently small.
17542
17543 2003-11-17  Jim Meyering  <jim@meyering.net>
17544
17545         On systems without utime and without a utimes function capable of
17546         dealing with a NULL struct utimbuf* argument, this utime replacement
17547         could -- in unusual circumstances -- leak a file descriptor.
17548         * lib/utime.c: Include <unistd.h> and <errno.h>.
17549         (utime_null): Be sure to close `fd' and to preserve errno.
17550         Reported by Geoff Collyer via Arnold Robbins.
17551
17552 2003-11-17  Bruno Haible  <bruno@clisp.org>
17553
17554         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
17555         (Depends-on): Add xsize.
17556
17557 2003-11-17  Bruno Haible  <bruno@clisp.org>
17558
17559         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
17560
17561 2003-11-17  Bruno Haible  <bruno@clisp.org>
17562
17563         * lib/vasnprintf.c (alloca): Remove fallback definition.
17564         (freea): Remove definition.
17565         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
17566         Reported by Paul Eggert.
17567
17568 2003-11-16  Paul Eggert  <eggert@twinsun.com>
17569             Bruno Haible  <bruno@clisp.org>
17570
17571         Protect against address arithmetic overflow.
17572         * lib/printf-args.h: Include stddef.h.
17573         (arguments): Change type of field 'count' to size_t.
17574         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
17575         'unsigned int' where appropriate.
17576         * lib/printf-parse.h: Include sys/types.h.
17577         (char_directive): Change type of *arg_index fields to ssize_t.
17578         (char_directives): Change type of fields 'count', max_*_length to
17579         size_t.
17580         * lib/printf-parse.c: Include sys/types.h and xsize.h.
17581         (SSIZE_MAX): Define fallback value.
17582         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
17583         instead of 'int' where appropriate. Check a_allocated, d_allocated
17584         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
17585         * lib/vasnprintf.c: Include xsize.h.
17586         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
17587         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
17588         overflow. Avoid wraparound when converting a width or precision from
17589         decimal to binary.
17590
17591 2003-11-16  Bruno Haible  <bruno@clisp.org>
17592
17593         Update from GNU gettext.
17594         * lib/printf-parse.c: Generalize to it can be compiled for wide
17595         strings.
17596         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
17597         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
17598         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
17599         SNPRINTF): New macros.
17600         Don't include <alloca.h> if the file is used inside libintl.
17601         (local_wcslen): New function, for Solaris 2.5.1.
17602         (VASNPRINTF): Use it instead of wcslen.
17603
17604 2003-11-16  Bruno Haible  <bruno@clisp.org>
17605
17606         * lib/xsize.h (xmax): New function.
17607         (xsum, xsum3, xsum4): Declare as "pure" functions.
17608
17609 2003-11-12  Paul Eggert  <eggert@twinsun.com>
17610
17611         * modules/xalloc (Files): Undo latest change, since xalloc.h
17612         no longer needs SIZE_MAX or PTRDIFF_MAX.
17613
17614 2003-11-12  Paul Eggert  <eggert@twinsun.com>
17615
17616         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
17617         gl_PTRDIFF_MAX.
17618
17619 2003-11-12  Paul Eggert  <eggert@twinsun.com>
17620
17621         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
17622         "return", to pacify some unknown compiler.  Problem reported
17623         by Joerg Schilling.
17624
17625 2003-11-12  Paul Eggert  <eggert@twinsun.com>
17626
17627         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
17628         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
17629         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
17630         heuristic is just as accurate as far as we know, and it removes a
17631         dependency on size_max.m4 and ptrdiff_max.m4.
17632
17633 2003-11-11  Bruno Haible  <bruno@clisp.org>
17634
17635         * modules/xsize (Files): Add m4/size_max.m4.
17636         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
17637
17638 2003-11-11  Bruno Haible  <bruno@clisp.org>
17639
17640         * m4/size_max.m4: New file.
17641         * m4/ptrdiff_max.m4: New file.
17642         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
17643         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
17644         (gl_XALLOC): Invoke it.
17645
17646 2003-11-11  Bruno Haible  <bruno@clisp.org>
17647
17648         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
17649         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
17650         defined.
17651
17652 2003-11-10  Paul Eggert  <eggert@twinsun.com>
17653
17654         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
17655         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
17656         rejected some allocations of exactly SIZE_MAX - 2 bytes.
17657         From Bruno Haible.
17658         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
17659         not (size_t) -1, since it's defined here.
17660
17661 2003-11-09  Karl Berry  <karl@gnu.org>
17662
17663         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
17664
17665 2003-11-06  Paul Eggert  <eggert@twinsun.com>
17666
17667         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
17668         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
17669         Reject sizes of exactly SIZE_MAX bytes.
17670         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
17671         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
17672
17673 2003-11-05  Bruno Haible  <bruno@clisp.org>
17674
17675         * lib/xsize.h: Include limits.h, to avoid a possible collision with
17676         SIZE_MAX defined in <limits.h> on Solaris.
17677
17678 2003-11-04  Jim Meyering  <jim@meyering.net>
17679
17680         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
17681         variable names, rather than @VAR@.
17682         * modules/poll: Likewise.
17683
17684 2003-11-04  Bruno Haible  <bruno@clisp.org>
17685
17686         * modules/xsize: New file.
17687         * modules/linebreak: Depend on xsize.
17688         * MODULES.html.sh (func_all_modules): Add xsize.
17689
17690 2003-11-04  Bruno Haible  <bruno@clisp.org>
17691
17692         * m4/xsize.m4: New file.
17693
17694 2003-11-04  Bruno Haible  <bruno@clisp.org>
17695
17696         * lib/xsize.h: New file.
17697         * lib/linebreak.c: Include xsize.h.
17698         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
17699         argument for overflow.
17700         Suggested by Paul Eggert.
17701
17702 2003-11-03  Karl Berry  <karl@gnu.org>
17703
17704         * config/config.{guess,sub}: update from config.
17705
17706 2003-11-03  Jim Meyering  <jim@meyering.net>
17707
17708         * modules/userspec (lib_SOURCES): Add userspec.h.
17709         (Include): Add "userspec.h".
17710         Improve description.
17711
17712 2003-11-03  Jim Meyering  <jim@meyering.net>
17713
17714         * lib/userspec.c: Include "userspec.h".
17715         * lib/userspec.h: New file.
17716
17717 2003-11-03  Bruno Haible  <bruno@clisp.org>
17718
17719         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
17720
17721 2003-11-03  Bruno Haible  <bruno@clisp.org>
17722
17723         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
17724         available, to avoid (extremely rare) race condition.
17725         Suggested by Paul Eggert.
17726
17727 2003-11-02  Karl Berry  <karl@gnu.org>
17728
17729         * config/srclist.txt (vasprintf.c): sync broken, sigh.
17730
17731 2003-10-31  Paul Eggert  <eggert@twinsun.com>
17732
17733         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
17734         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
17735         (read_filesystem_list): Set and use me_type_malloced.
17736         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
17737         whatever the type happens to be), for brevity and consistency.
17738         Check for size calculation overflow on Alphas running OSF/1.
17739
17740 2003-10-31  Jim Meyering  <jim@meyering.net>
17741
17742         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
17743
17744         * lib/linebuffer.c: Include <string.h> for declaration of memset.
17745
17746 2003-10-30  Paul Eggert  <eggert@twinsun.com>
17747             Bruno Haible  <bruno@clisp.org>
17748
17749         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
17750         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
17751
17752 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
17753
17754         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
17755         netbsd*-gnu*.  Suggested by Robert Millan.
17756
17757 2003-10-29  Paul Eggert  <eggert@twinsun.com>
17758
17759         * modules/group-member: Depend on stdbool.
17760
17761 2003-10-29  Paul Eggert  <eggert@twinsun.com>
17762
17763         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
17764
17765 2003-10-29  Paul Eggert  <eggert@twinsun.com>
17766
17767         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
17768         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
17769         after the 'gnu' in these cases.  This fixes some bugs in the
17770         previous change, and is based on suggestions by Robert Millan.
17771
17772 2003-10-29  Paul Eggert  <eggert@twinsun.com>
17773
17774         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
17775         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
17776         no longer needed.
17777         * lib/quotearg.c (quotearg_n_options): Use it.
17778         * lib/group-member.c: Include <stdbool.h>.
17779         (free_group_info): Arg is now const *; don't free arg.
17780         (get_group_info): Now returns bool and accepts struct group_info *,
17781         rather than returning a malloc'ed struct group_info *.
17782         All uses changed.  Check for overflow in internal size calculation.
17783
17784         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
17785         rather than xmalloc/xrealloc.
17786         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
17787         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
17788         conformance bug: the old code used a pointer after freeing the
17789         storage that it addressed.
17790         * lib/hash.c (hash_initialize): Simplify the code by using
17791         xalloc_oversized rather than doing it by hand.
17792         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
17793         the buffer preserved.  Use free and xmalloc instead.
17794         * lib/quotearg.c (quotearg_n_options): Likewise.
17795         Use a simpler test for size overflow.  Don't use xalloc_oversized
17796         because unsigned int might be wider than size_t (!); this suggests
17797         that we should switch from unsigned int to size_t for slot numbers.
17798
17799 2003-10-28  Paul Eggert  <eggert@twinsun.com>
17800
17801         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
17802         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
17803         NetBSD kernels.  Requested by Richard Stallman.
17804
17805 2003-10-27  Paul Eggert  <eggert@twinsun.com>
17806
17807         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
17808         to allocate the returned structure.  Do not allocate a subarray,
17809         as x2nrealloc will do that.
17810         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
17811         instead of xnrealloc.
17812         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
17813
17814 2003-10-27  Bruno Haible  <bruno@clisp.org>
17815
17816         * lib/stdbool_.h: Better support for BeOS.
17817
17818 2003-10-26  Paul Eggert  <eggert@twinsun.com>
17819
17820         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
17821         now uses inline.
17822
17823 2003-10-26  Paul Eggert  <eggert@twinsun.com>
17824
17825         * lib/xalloc.h (xalloc_oversized): New static inline function, for
17826         callers that want to do their own size-overflow checking.  Include
17827         <stdbool.h>, since xalloc_oversized returns bool.
17828         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
17829         to use xalloc_oversized.
17830
17831         Add two functions x2realloc, x2nrealloc, for programs that grow
17832         arrays dynamically by doubling their sizes.
17833         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
17834         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
17835         New functions.
17836
17837         Port to C99 semantics for 'inline' of external functions.
17838         Bug reported by Bruno Haible.
17839         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
17840         with the old contents of xnmalloc.
17841         (xnmalloc, xmalloc): Use it.
17842         (xnrealloc_inline): New static inline function,
17843         with the old contents of xnrealloc.
17844         (xnrealloc, xrealloc): Use it.
17845
17846         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
17847         that.
17848
17849 2003-10-26  Karl Berry  <karl@gnu.org>
17850
17851         * config/srclist.txt (COPYING.DOC): no longer available from
17852         /gd/gnuorg; don't know where the ultimate source is.
17853
17854 2003-10-25  Paul Eggert  <eggert@twinsun.com>
17855
17856         Fix several address-calculation bugs in the hash modules,
17857         plus some minor code cleanup.
17858
17859         * lib/hash.h: Include <stdbool.h>, for bool.
17860         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
17861         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
17862         hash_get_n_entries, hash_get_max_bucket_length,
17863         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
17864         hash_rehash): Use size_t rather than unsigned.
17865         * lib/hash.c (struct hash_table, hash_get_n_buckets,
17866         hash_get_n_buckets_used, hash_get_n_entries,
17867         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
17868         hash_get_entries, hash_do_for_each, hash_string, is_prime,
17869         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
17870         Likewise.
17871         (SIZE_MAX): Define if not defined.
17872         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
17873         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
17874         hash_print):
17875         Use const * when possible.
17876         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
17877         (check_tuning): Fix bug: if tuning parameters were very close to
17878         0 or 1, rounding errors could have caused subscript violations.
17879         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
17880         (hash_initialize): Add 'fail:' label
17881         to free table and return NULL, and use it to simplify code.
17882         Use calloc rather than clearing the storage ourself.
17883         (hash_initialize, hash_rehash): Check for arithmetic overflow in
17884         buffer size calculations.
17885         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
17886         Include <stddef.h>, for size_t.
17887         * lib/hash-pjw.c (hash_pjw): Likewise.
17888         Switch to method described by Bruno Haible.
17889         Include <limits.h>, for CHAR_BIT.
17890         (SIZE_BITS): New macro.
17891
17892 2003-10-23  Paul Eggert  <eggert@twinsun.com>
17893
17894         * m4/getline.m4 (AM_FUNC_GETLINE):
17895         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
17896         hosts.  Problem reported by Derek Robert Price in
17897         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
17898         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
17899         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
17900
17901 2003-10-21  Paul Eggert  <eggert@twinsun.com>
17902
17903         * lib/getndelim2.c (getndelim2): When size calculation overflows,
17904         ceiling the allocation at NMAX bytes rather than silently
17905         discarding input bytes before NMAX is reached.  This makes
17906         a difference only if NMAX exceeds SIZE_MAX / 2.
17907
17908         * lib/obstack.c: Merge from glibc.
17909         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
17910         Add libc_hidden_def (_obstack_newchunk).
17911         (_obstack_free) [! defined _LIBC]: Remove.
17912         [defined _LIBC]: Make a strong alias from obstack_free, rather than
17913         a clone of the function body.
17914         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
17915         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
17916
17917         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
17918         glibc.
17919         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
17920         arg to memcpy.
17921
17922         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
17923         (obstack_ptr_grow_fast, obstack_int_grow_fast):
17924         Don't use lvalue casts, as GCC plans to remove support for them
17925         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
17926         was also present in the non-GCC version, indicating that this
17927         code had always been buggy and had never been widely used.
17928         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
17929         Use the fast variant of each macro, rather than copying the
17930         definiens of the fast variant; that way, we'll be more likely to
17931         catch future bugs in the fast variants.
17932
17933 2003-10-20  Bruno Haible  <bruno@clisp.org>
17934
17935         * modules/wait-process: New file.
17936         * MODULES.html.sh (func_all_modules): Add wait-process.
17937
17938 2003-10-20  Bruno Haible  <bruno@clisp.org>
17939
17940         * m4/wait-process.m4: New file.
17941
17942 2003-10-20  Bruno Haible  <bruno@clisp.org>
17943
17944         * lib/wait-process.h: New file, from GNU gettext.
17945         * lib/wait-process.c: New file, from GNU gettext.
17946
17947 2003-10-19  Jim Meyering  <jim@meyering.net>
17948
17949         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
17950         HPUX 10.20.
17951
17952 2003-10-18  Karl Berry  <karl@gnu.org>
17953
17954         * config/config.guess: update from config.
17955
17956 2003-10-16  Paul Eggert  <eggert@twinsun.com>
17957
17958         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
17959         (getgroups): First arg is int, not size_t.
17960         Don't let 'free' mangle errno.
17961
17962 2003-10-16  Paul Eggert  <eggert@twinsun.com>
17963
17964         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
17965
17966 2003-10-16  Karl Berry  <karl@gnu.org>
17967
17968         * config/config.{guess,sub}: update from config.
17969
17970 2003-10-16  Jim Meyering  <jim@meyering.net>
17971
17972         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
17973         memcpy.
17974
17975 2003-10-15  Paul Eggert  <eggert@twinsun.com>
17976
17977         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
17978         (SIZE_MAX): Remove.
17979         (new_exclude, add_exclude_file): Initial size no longer needs to
17980         be a power of 2.
17981         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
17982         our own address arithmetic overflow checking.
17983
17984         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
17985         (fnmatch): Do not alloca more than 2000 wide characters;
17986         instead, use malloc for large buffers.
17987         Check for address arithmetic overflow, and return -1
17988         with errno set to ENOMEM in that case.
17989         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
17990         (NEW_PATTERN): Do not alloca more than 8000 bytes;
17991         instead, return -1.  Check for address arithmetic overflow.
17992
17993 2003-10-14  Paul Eggert  <eggert@twinsun.com>
17994
17995         Handle invalid suffixes and overflow independently, so that
17996         callers can treat them independently as needed.  Fix some bugs in
17997         suffix handling, e.g., "100k@" was not diagnosed as an invalid
17998         suffix for a human-readable blocksize.  The major caller-visible
17999         change is the addition of a new
18000         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
18001         that both overflow and suffix chars were found.
18002
18003         * lib/human.c (humblock): Don't check separately for invalid suffix
18004         char; that is xstrtoumax's job (now that its bug is fixed).
18005         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
18006         INTMAX_MAX]: New macros.
18007         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
18008         TYPE_MAXIMUM): New macros.
18009         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
18010         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
18011         if overflow occurs, as it's what __strtol does and it's more useful
18012         in practice.
18013         (__xstrtol): If __strtol reports some error other than ERANGE,
18014         reflect it to the caller as LONGINT_INVALID.  If it reports
18015         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
18016         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
18017         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
18018         value.
18019         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
18020         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
18021         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
18022         [defined UINTMAX_MAX]: New macros.
18023
18024 2003-10-14  Bruno Haible  <bruno@clisp.org>
18025
18026         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
18027
18028 2003-10-14  Bruno Haible  <bruno@clisp.org>
18029
18030         * m4/sig_atomic_t: New file, from GNU gettext.
18031         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
18032
18033 2003-10-14  Bruno Haible  <bruno@clisp.org>
18034
18035         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
18036         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
18037         Also use volatile where needed.
18038
18039 2003-10-12  Paul Eggert  <eggert@twinsun.com>
18040
18041         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
18042         Change maintainer from Bruno Haible to 'all'.
18043
18044 2003-10-12  Paul Eggert  <eggert@twinsun.com>
18045
18046         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
18047
18048 2003-10-12  Paul Eggert  <eggert@twinsun.com>
18049
18050         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
18051         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
18052         and define in terms of the other primitives.
18053         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
18054         (SIZE_MAX): Define if not already defined.
18055         (array_size_overflow): New function.
18056         (xalloc_die): Abort instead of exiting if 'error' returns.
18057         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
18058         (xmalloc, xrealloc): Use them.
18059         (xcalloc): Check for address arithmetic overflow.
18060         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
18061         a bit faster than strcpy.
18062
18063 2003-10-10  Simon Josefsson  <jas@extundo.com>
18064
18065         * modules/argp (Depends-on): Add restrict and strcase.
18066
18067 2003-10-10  Simon Josefsson  <jas@extundo.com>
18068
18069         * m4/argp.m4: Add AC_C_INLINE.
18070
18071 2003-10-08  Paul Eggert  <eggert@twinsun.com>
18072
18073         Merge getpass from libc, plus a few fixes.
18074
18075         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
18076         Include <stdbool.h>.
18077         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
18078         __fsetlocking to empty.
18079         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
18080         do include <bits/libc-lock.h>.
18081         Do not include <fcntl.h>; not needed.
18082         [_LIBC]: Include <wchar.h>.
18083         (NOTCANCEL_MODE): New macro.
18084         (flockfile, funlockfile) [_LIBC]: New macros.
18085         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
18086         [!_LIBC]: New macros.
18087         (call_fclose): New function.
18088         (getpass): Use it.  Save tty stream separately; this simplifies the
18089         code and makes it more reliable if stdin happens to equal stdout.
18090         Invoke __fsetlocking on tty.
18091         Handle thread cancellation if needed.
18092         Namespace cleanup (use __tcgetattr, __getline).
18093         Use bool for Booleans.
18094         [USE_IN_LIBIO]: Handle wide streams.
18095         [!_LIBC]: Unconditionally do the fseek, since we don't know what
18096         stream might go where.
18097
18098         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
18099         doesn't have to include <stdio.h> before us.
18100         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
18101         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
18102         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
18103         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
18104         if not declared, so that we can use getpass.c code from libc without
18105         rewriting it.
18106         (flockfile, ftrylockfile, funlockfile): New macros.
18107
18108 2003-10-08  Paul Eggert  <eggert@twinsun.com>
18109
18110         * modules/getpass: Depend on stdbool.
18111
18112 2003-10-08  Paul Eggert  <eggert@twinsun.com>
18113
18114         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
18115
18116 2003-10-07  Karl Berry  <karl@gnu.org>
18117
18118         * config/config.{guess,sub}: update from config.
18119
18120 2003-10-06  Jim Meyering  <jim@meyering.net>
18121             Bruno Haible  <bruno@clisp.org>
18122
18123         This lets translators provide better translations for the
18124         "Written by ..." part of --version output.
18125         * lib/version-etc.h: Include stdarg.h.
18126         (version_etc_copyright): Declare as readonly.
18127         (version_etc): Make this function variadic with a NULL-terminated list
18128         of author name strings.
18129         (version_etc_va): New declaration.
18130         * lib/version-etc.c: Include stdarg.h, stdlib.h.
18131         (version_etc_copyright): Declare as readonly.
18132         (version_etc_va): New function. Provide a different translatable string
18133         for each possible number of authors < 10. Abbreviate when there are 10
18134         authors or more.
18135         (version_etc): Make this function variadic. Call version_etc_va.
18136         Suggestion from Gary V. Vaughan.
18137
18138         * lib/long-options.h (parse_long_options): Change prototype: the
18139         authors string is moved to the end and becomes variadic.
18140         * lib/long-options.c: Include stdarg.h.
18141         (parse_long_options): Make this function variadic, too.
18142         Call version_etc_va, not version_etc.
18143
18144 2003-10-06  Bruno Haible  <bruno@clisp.org>
18145
18146         * modules/version-etc-2: Remove file.
18147         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
18148
18149 2003-10-06  Bruno Haible  <bruno@clisp.org>
18150
18151         * modules/fatal-signal: New file.
18152         * MODULES.html.sh (func_all_modules): Add fatal-signal.
18153
18154 2003-10-06  Bruno Haible  <bruno@clisp.org>
18155
18156         * m4/fatal-signal.m4: New file.
18157         * m4/signalblocking.m4: New file, from GNU gettext.
18158
18159 2003-10-06  Bruno Haible  <bruno@clisp.org>
18160
18161         * lib/version-etc-2.h: Remove file.
18162         * lib/version-etc-2.c: Remove file.
18163
18164 2003-10-06  Bruno Haible  <bruno@clisp.org>
18165
18166         * lib/fatal-signal.h: New file, from GNU gettext.
18167         * lib/fatal-signal.c: New file, from GNU gettext.
18168
18169 2003-10-05  Paul Eggert  <eggert@twinsun.com>
18170
18171         * README: Rework advice for preventing empty .o files.
18172         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
18173         not <sys/types.h>.
18174
18175 2003-10-04  Karl Berry  <karl@gnu.org>
18176
18177         * lib/argp*: update from libc.
18178
18179 2003-10-04  Karl Berry  <karl@gnu.org>
18180
18181         * config/config.{guess,sub}: update from config.
18182
18183 2003-10-02  Bruno Haible  <bruno@clisp.org>
18184
18185         * modules/lchown (Include): Add lchown.h.
18186         * modules/time_r (Include): Use "..." syntax.
18187         * modules/xgetdomainname (Include): Add xgetdomainname.h.
18188
18189 2003-10-01  Simon Josefsson  <jas@extundo.com>
18190
18191         * MODULES.html.sh (func_all_modules): Move gethostname from section
18192         'based on' to section 'lacking' POSIX:2001.
18193
18194 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
18195
18196         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
18197         to output mode on the same stream.
18198
18199 2003-09-29  Paul Eggert  <eggert@twinsun.com>
18200
18201         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
18202         Fix arg typo in previous patch.
18203
18204 2003-09-28  Jim Meyering  <jim@meyering.net>
18205
18206         * lib/error.c: Correct cpp indentation.
18207
18208 2003-09-27  Paul Eggert  <eggert@twinsun.com>
18209
18210         * modules/free: New file.
18211
18212 2003-09-27  Paul Eggert  <eggert@twinsun.com>
18213
18214         * m4/free.m4: New file.
18215
18216 2003-09-27  Paul Eggert  <eggert@twinsun.com>
18217
18218         * lib/minmax.h (MIN, MAX)
18219         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
18220         Omit the special code that used __typeof__, since we worry that
18221         it could be more trouble than it's worth.  See:
18222         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
18223         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
18224
18225         * lib/free.c: New file.
18226
18227 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
18228
18229         Trivial fixes to Makefile.am parts of module listings.
18230         * modules/strstr: Append strstr.h to lib_SOURCES.
18231         * modules/strcase: Likewise, for strcase.h.
18232
18233 2003-09-27  Karl Berry  <karl@gnu.org>
18234
18235         * config/mkinstalldirs: update from automake.
18236
18237 2003-09-26  Paul Eggert  <eggert@twinsun.com>
18238
18239         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
18240         (error_tail): Do not loop, reallocating temporary buffer, since
18241         the output cannot contain more wide characters than the input
18242         contains bytes, the size must be big enough already.  This avoids
18243         one potential size overflow calculation.  Check for size overflow
18244         when calculating temporary buffer size.  Free temporary buffer
18245         when done, if it was allocated with malloc; this plugs a memory
18246         leak.  Remove casts from void * to pointers, that are no longer
18247         needed now that we're assuming C89 or better.
18248
18249         Merge error changes from glibc.
18250
18251         * lib/error.c, error.h: Update copyright notice header to match glibc.
18252         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
18253         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
18254         Disable cancellation while printing error.
18255         * lib/error.h: Prepend __ to parameter names.
18256
18257 2003-09-26  Jim Meyering  <jim@meyering.net>
18258
18259         * lib/error.c (error_tail): Move some declarations
18260         into inner scope where the local variables are used.
18261
18262 2003-09-26  Bruno Haible  <bruno@clisp.org>
18263
18264         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
18265         stpncpy().
18266         Don't define stpncpy through config.h; it's now done through stpncpy.h.
18267
18268 2003-09-26  Bruno Haible  <bruno@clisp.org>
18269
18270         * lib/stpncpy.h (gnu_stpncpy): New declaration.
18271         (stpncpy): Define as alias for gnu_stpncpy.
18272         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
18273
18274 2003-09-25  Simon Josefsson  <jas@extundo.com>
18275
18276         * lib/xgetdomainname.h: New file.
18277         * lib/xgetdomainname.c: New file.
18278
18279 2003-09-25  Simon Josefsson  <jas@extundo.com>
18280             Bruno Haible  <bruno@clisp.org>
18281
18282         * modules/getdomainname: New file.
18283         * modules/xgetdomainname: New file.
18284         * MODULES.html.sh (func_all_modules): Add getdomainname,
18285         xgetdomainname.
18286
18287 2003-09-25  Simon Josefsson  <jas@extundo.com>
18288             Bruno Haible  <bruno@clisp.org>
18289
18290         * m4/getdomainname.m4: New file.
18291
18292 2003-09-25  Simon Josefsson  <jas@extundo.com>
18293             Bruno Haible  <bruno@clisp.org>
18294
18295         * lib/getdomainname.h: New file.
18296         * lib/getdomainname.c: New file.
18297
18298 2003-09-25  Karl Berry  <karl@gnu.org>
18299
18300         * lib/argp-fmtstream.c, argp-help.c: update from libc.
18301
18302 2003-09-25  Karl Berry  <karl@gnu.org>
18303
18304         * config/install-sh: update from automake.
18305
18306 2003-09-25  Bruno Haible  <bruno@clisp.org>
18307
18308         * modules/version-etc-2: New file, from modules/version-etc with
18309         modifications.
18310         * MODULES.html.sh (func_all_modules): Add version-etc-2.
18311
18312 2003-09-25  Bruno Haible  <bruno@clisp.org>
18313
18314         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
18315         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
18316
18317 2003-09-24  Simon Josefsson  <jas@extundo.com>
18318
18319         * modules/xgethostname: Add xgethostname.h.
18320
18321 2003-09-24  Paul Eggert  <eggert@twinsun.com>
18322
18323         * lib/linebuffer.c (freebuffer): Don't free the argument, just
18324         the buffer associated with the argument.  Bug reported by
18325         Simon Josefsson.
18326
18327 2003-09-24  Paul Eggert  <eggert@twinsun.com>
18328
18329         * README: Document assumptions that 'int' is at least 32 bits
18330         wide, that integer arithmetic is 2's complement without overflow,
18331         that there are no holes in integer values, that adding sizes of
18332         two nonoverlapping objects can't overflow, and that all-bits-zero
18333         yields scalar zero.  Fix spelling and capitalization typos.
18334
18335 2003-09-19  Karl Berry  <karl@gnu.org>
18336
18337         * lib/argp.h: update from libc.
18338
18339 2003-09-17  Paul Eggert  <eggert@twinsun.com>
18340
18341         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
18342         to avoid spurious warnings like "AC_RUN_IFELSE was called before
18343         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
18344
18345 2003-09-17  Paul Eggert  <eggert@twinsun.com>
18346
18347         * gnulib-tool: Use "test -h", not "test -L", for portability
18348         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
18349         (tags_regexp): Remove, since \| doesn't conform to POSIX.
18350         (sed_extract_prog): Issue s commands one-by-one, rather than
18351         using \| in one s command.
18352
18353 2003-09-16  Paul Eggert  <eggert@twinsun.com>
18354
18355         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
18356         input error, instead of returning NULL the next time we are called
18357         (and therefore losing track of errno).
18358
18359 2003-09-16  Bruno Haible  <bruno@clisp.org>
18360
18361         * gnulib-tool (func_create_testdir): Warn about duplicated
18362         dependencies.
18363
18364 2003-09-15  Paul Eggert  <eggert@twinsun.com>
18365
18366         * modules/argmatch, modules/fatal, modules/obstack,
18367         modules/xalloc, modules/xgethostname: Sort dependencies by
18368         importance, not alphabetically.
18369
18370 2003-09-15  Paul Eggert  <eggert@twinsun.com>
18371
18372         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
18373         fails, so that the caller gets the proper errno.
18374
18375         * lib/readutmp.c (read_utmp): Likewise.
18376         Check for fstat error.  Close stream and free storage
18377         when failing.
18378
18379 2003-09-14  Karl Berry  <karl@gnu.org>
18380
18381         * config/srclist.txt (strdup.c): disable for c89 changes.
18382
18383 2003-09-14  Jim Meyering  <jim@meyering.net>
18384
18385         * lib/getloadavg.c: Correct cpp indentation.
18386         * lib/strdup.c: Likewise.
18387         * lib/vasnprintf.c: Likewise.
18388
18389 2003-09-14  Bruno Haible  <bruno@clisp.org>
18390
18391         * modules/fwriteerror: New file.
18392         * MODULES.html.sh (func_all_modules): Add fwriteerror.
18393
18394 2003-09-14  Bruno Haible  <bruno@clisp.org>
18395
18396         * lib/fwriteerror.h: New file.
18397         * lib/fwriteerror.c: New file.
18398
18399 2003-09-12  Paul Eggert  <eggert@twinsun.com>
18400
18401         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
18402         modules/xgethostname, modules/xalloc: Depend on exit.
18403
18404 2003-09-12  Paul Eggert  <eggert@twinsun.com>
18405
18406         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
18407
18408         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
18409         and AC_MINIX, too, so that their extensions are available.
18410
18411         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
18412         This macro has been superseded by gl_BACKUPFILE.
18413
18414         More patches to assume C89 or better.
18415
18416         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
18417
18418         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
18419         unconditionally.
18420         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
18421         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
18422         Include <string.h>, <stdlib.h> unconditionally.
18423         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
18424         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
18425         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
18426         headers or for string.h.
18427         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
18428         or strtoul.
18429
18430         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
18431         headers.
18432         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
18433         * m4/userspec.m4 (gl_USERSPEC): Likewise.
18434         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
18435         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
18436         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
18437         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
18438         memcpy, memset.
18439         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
18440         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
18441         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
18442         strtol.
18443         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
18444         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
18445         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
18446         strtoul.
18447
18448 2003-09-12  Paul Eggert  <eggert@twinsun.com>
18449
18450         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
18451         * lib/obstack.c [!defined _LIBC]: Likewise.
18452         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
18453         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
18454         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
18455
18456         More changes to assume C89 or better.
18457
18458         * lib/error.c (error_tail): Assume vprintf.
18459
18460         * lib/argmatch.c (getenv): Remove decl.
18461         * lib/progreloc.c (get_full_program_name): Define via prototype.
18462         * lib/setenv.c (clearenv): Likewise.
18463         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
18464         needed.
18465         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
18466         (malloc, memcpy): Remove decls.
18467         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
18468         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
18469         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
18470         (memcpy): Remove macro.
18471         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
18472         (__P): Remove.  All uses removed.
18473         (PTR): Remove.  All uses changed to void *.
18474         (CHAR_BIT, NULL): Remove.
18475         (spaces, zeros, memset_space, memset_zero)
18476         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
18477         Remove.
18478         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
18479         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
18480         Define with prototype.
18481         Remove now-unnecessary prototype decl.
18482         (extra_args_spec): Assume ANSI C.  All uses changed.
18483         (extra_args_spec_iso): Remove.
18484         (my_strftime, emacs_strftimeu): Define via prototype.
18485         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
18486         unconditionally.
18487         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
18488         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
18489         (strtoul, strtol): Remove decls.
18490         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
18491         LONG_MAX): Remove.
18492         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
18493         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
18494         (LOCALE_PARAM_PROTO): New macro.
18495         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
18496         (INTERNAL (strtol), strtol): Define with a prototype.
18497         (PARAMS): Remove.  All uses removed.
18498         * lib/tempname.c: Include <string.h> unconditionally.
18499         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
18500         * lib/xgethostname.c (main): Define with a prototype.
18501         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
18502         Include <stdlib.h> unconditionally.
18503         (calloc, malloc, realloc, free): Remove decls.
18504         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
18505         Include <stdlib.h> unconditionally.  Sort include file names.
18506         (strtod): Remove.
18507         (xstrtod): Define with a prototype.
18508         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
18509         (strtol, strtoul): Remove decls.
18510
18511 2003-09-11  Paul Eggert  <eggert@twinsun.com>
18512
18513         More patches to assume C89 or better.
18514         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
18515         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
18516         string.h, memchr, STDC_HEADERS.
18517
18518 2003-09-11  Paul Eggert  <eggert@twinsun.com>
18519
18520         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
18521         Include <stdlib.h>, <string.h> unconditionally.
18522         Remove now-unnecessary cast to char *.
18523         * lib/strnlen.c: Include <string.h> unconditionally.
18524         * lib/yesno.c (yesno): Define with a prototype.
18525
18526 2003-09-11  Bruno Haible  <bruno@clisp.org>
18527
18528         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
18529
18530 2003-09-10  Jim Meyering  <jim@meyering.net>
18531
18532         * lib/error.c: Correct indentation of cpp directives.
18533
18534 2003-09-10  Bruno Haible  <bruno@clisp.org>
18535
18536         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
18537         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
18538         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
18539         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
18540         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
18541         <stdlib.h> and <string.h> checks.
18542         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
18543         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
18544
18545 2003-09-10  Bruno Haible  <bruno@clisp.org>
18546
18547         * lib/strcspn.c: Include <string.h> unconditionally.
18548         * lib/strpbrk.c: Include <string.h> unconditionally.
18549         * lib/strstr.c: Include <string.h> unconditionally.
18550         * lib/unicodeio.c: Include <string.h> unconditionally.
18551         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
18552         * lib/unsetenv.c: Likewise.
18553         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
18554         * lib/yesno.c: Include <stdlib.h> unconditionally.
18555         (rpmatch): Add prototype.
18556
18557 2003-09-09  Paul Eggert  <eggert@twinsun.com>
18558
18559         More patches to assume C89 or better.
18560         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
18561         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
18562         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
18563         or for string.h.
18564         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
18565         stdlib.h.
18566         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
18567         C headers.
18568         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
18569         string.h.
18570         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
18571         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
18572         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
18573         or for string.h.
18574         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
18575         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
18576         C headers.
18577         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
18578         memcpy.
18579         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
18580         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
18581         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
18582         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
18583         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
18584         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
18585         string.h, free.
18586         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
18587         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
18588         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
18589         C headers, or for string.h.
18590         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
18591         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
18592         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
18593         headers, memory.h, stdlib.h, string.h, strings.h.
18594         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
18595         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
18596         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
18597         strchr.
18598         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
18599         headers, memory.h, string.h.
18600         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
18601         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
18602         free.
18603         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
18604         headers.
18605         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
18606         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
18607         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
18608         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
18609         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
18610
18611 2003-09-09  Paul Eggert  <eggert@twinsun.com>
18612
18613         More K&R removal.
18614
18615         * lib/acosl.c (main): Use a prototype.
18616         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
18617         tanl.c: Likewise.
18618
18619         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
18620
18621         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
18622         (getopt, etopt_long, getopt_long_only, _getopt_internal)
18623         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
18624         with a prototype.
18625         * lib/getopt.c (const): Remove macro.
18626         Include <string.h> unconditionally.
18627         (my_index): Remove; all uses changed to strchr.
18628         (strlen): Remove decl.
18629         (exchange): Remove forward decl; no longer needed.
18630         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
18631         Define with prototype.
18632         * lib/getopt1.c (const): Remove macro.
18633         (getopt_long, getopt_long_only, main): Define with prototype.
18634
18635         * lib/getugroups.c: Include <string.h> unconditionally.
18636
18637         * lib/getusershell.c: Include <stdlib.h> unconditionally.
18638         (getusershell, setusershell, endusershell, readname, main):
18639         Define with prototypes.
18640
18641         * lib/group-member.c: Include group-member.h first.
18642         Include <stdlib.h> unconditionally.
18643
18644         * lib/hard-locale.c: Include hard-locale.h first.
18645         Include <stdlib.h>, <string.h> unconditionally.
18646
18647         * lib/hash.c (free, malloc): Remove decls.
18648         Include <stdlib.h> unconditionally.
18649
18650         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
18651         (getenv): Do not declare.
18652
18653         * lib/idcache.c: Include <string.h> unconditionally.
18654
18655         * lib/long-options.c: Include long-options.h first, to test interface.
18656         Include <stdlib.h> unconditionally.
18657
18658         * lib/makepath.c: Include makepath.h first, to test interface.
18659         Include <stdlib.h> and <string.h> unconditionally.
18660
18661         * lib/linebuffer.c: Include <stdlib.h>.
18662         (free): Remove decl.
18663
18664         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
18665         stddef.h. rpl_malloc returns void *, not char *.
18666         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
18667         prototype.
18668
18669         * lib/md5.h: Include <limits.h> unconditionally.
18670         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
18671         (__P): Remove; all uses removed.
18672         * lib/md5.c: Include "md5.h" first.
18673         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
18674         md5_buffer, md5_process_bytes, md5_process_block):
18675         Define with prototypes.
18676         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
18677         * lib/sha.c: Include "sha.h" first.
18678         Include <stdlib.h>, <string.h> unconditionally.
18679
18680         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
18681         * lib/memcmp.c (__ptr_t): Likewise.
18682         * lib/memrchr.c (__ptr_t): Likewise.
18683         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
18684         Include <string.h> unconditionally.
18685         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
18686         * lib/memchr.c: Include <stdlib.h> unconditionally.
18687         * lib/memchr.c (LONG_MAX): Remove.
18688         * lib/memrchr.c (LONG_MAX): Likewise.
18689         * lib/memchr.c (__memchr): Define via a prototype.
18690         * lib/memrchr.c (__memrchr): Likewise.
18691         * lib/memcmp.c (__P): Remove, and remove all uses.
18692         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
18693         Remove forward decls; no longer needed.
18694         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
18695         Use types required by C89 in prototype.
18696
18697         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
18698         * lib/savedir.c: Likewise.
18699         * lib/mkdir.c (free): Remove decl.
18700         * lib/rmdir.c (rmdir): Define with a prototype.
18701         * lib/savedir.c: Include savedir.h first, to test interface.
18702
18703         * lib/mktime.c (STDC_HEADERS): Remove.
18704         Include <stdlib.h>, <string.h> unconditionally.
18705
18706         * lib/modechange.c: Include <stdlib.h> unconditionally.
18707         (malloc): Remove decl.
18708
18709         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
18710         (free): Remove decl.
18711
18712         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
18713         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
18714         (This type really should be intptr_t, but that's a C99ism.)
18715         (_obstack_memcpy): Remove: all uses changed to memcpy.
18716         Include <string.h> unconditionally.
18717         (struct obstack): Assume __STDC__ for types of members
18718         chunkfun, freefun, extra_arg.
18719         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
18720         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
18721         obstack_begin, obstack_specify_allocation,
18722         obstack_specify_allocation_with_arg, obstack_chunkfun,
18723         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
18724         Remove unprototyped decls and the macros that use them.
18725         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
18726         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
18727         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
18728         (defined __STDC__ && __STDC__)]:
18729         Remove nonprototyped code.
18730         Include <stdlib.h> unconditionally.
18731         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
18732         _obstack_allocated_p, _obstack_free, obstack_free,
18733         _obstack_memory_used, print_and_abort):
18734         Define using prototypes.
18735         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
18736         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
18737         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
18738         obstack_next_free, obstack_object_size, obstack_room) [0]:
18739         Remove unused, unprototyped code.
18740
18741         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
18742
18743         * lib/physmem.c (physmem_total, physmem_available, main): Define
18744         with prototypes.
18745
18746         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
18747         (main): Define with a prototype.
18748
18749         * lib/posixver.c (getenv): Remove decl.
18750
18751         * lib/putenv.c (malloc): Returns void *, not char *.
18752         Include <string.h> unconditionally.
18753         (strchr, memcpy, NULL): Do not define.
18754
18755         * lib/readtokens.c: Include readtokens.h first, to test interface.
18756         Include <stdlib.h>, <string.h> unconditionally.
18757         (init_tokenbuffer): Define with a prototype.
18758
18759         * lib/regex.c (PARAMS): Remove.  All uses removed.
18760         All uses of _RE_ARGS removed, too.
18761         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
18762         unconditionally.
18763         (bzero): Assume memset exists.
18764         (memcmp, memcpy, NULL): Remove.
18765         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
18766         char, or assignments to local vars of type signed char.
18767         (init_syntax_once, PREFIX(extract_number_and_incr),
18768         PREFIX(print_partial_compiled_pattern),
18769         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
18770         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
18771         PREFIX(regex_grow_registers), PREFIX(regex_compile),
18772         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
18773         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
18774         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
18775         wcs_compile_range, byte_compile_range, truncate_wchar,
18776         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
18777         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
18778         count_mbs_length, wcs_re_match_2_internal,
18779         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
18780         PREFIX(alt_match_null_string_p),
18781         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
18782         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
18783         regfree, PREFIX(extract_number)): Define with prototype.  Remove
18784         now-unnecessary declaration, if any.
18785         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
18786         regcomp, regexec):
18787         Remove now-unnecessary casts among pointer types.
18788         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
18789
18790         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
18791         (free): Remove decl.
18792
18793         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
18794
18795         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
18796         (free): Remove decl.
18797
18798         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
18799         * lib/xgetcwd.c: Likewise.
18800
18801         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
18802         (free): Remove decl.
18803
18804         * lib/strchrnul.c (strchrnul): Define with a prototype.
18805         Fix bug: c_in was not converted to char before searching.
18806
18807         The following changes are not K&R related:
18808
18809         * lib/group-member.h: Include <sys/types.h>, so that this file is
18810         self-contained.
18811         * lib/makepath.h: Likewise.
18812
18813         * lib/getusershell.c (readname, default_index, line_size, readname):
18814         Use size_t, not int, for sizes.
18815         (readname): If the size overflows, report an error instead of
18816         looping forever.
18817
18818 2003-09-09  Paul Eggert  <eggert@twinsun.com>
18819
18820         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
18821         libc.
18822
18823 2003-09-09  Paul Eggert  <eggert@twinsun.com>
18824
18825         * README: New section: portability guidelines.
18826
18827 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
18828
18829         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
18830         C89 spec.
18831
18832 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
18833
18834         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
18835
18836 2003-09-08  Paul Eggert  <eggert@twinsun.com>
18837
18838         Assume C89 or better; remove K&R cruft.
18839         A few of these changes were first proposed by Derek Robert Price
18840         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
18841
18842         * lib/addext.c: Include <string.h> unconditionally.
18843         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
18844         Don't declare getenv or malloc.
18845
18846         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
18847         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
18848         (NULL): Remove.
18849         (find_stack_direction, alloca): Use prototypes.
18850
18851         * lib/atexit.c (atexit): Define using a prototype.
18852
18853         * lib/basename.c, dirname.c, stripslash.c:
18854         Include <string.h> unconditionally.
18855
18856         * lib/bcopy.c: Include <stddef.h>.
18857         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
18858
18859         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
18860
18861         * lib/error.h (error, error_at_line, error_print_progname)
18862         [! (defined (__STDC__) && __STDC__)]: Remove decls.
18863         * lib/error.c: Include error.h first, to check interface.
18864         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
18865         (VA_START): Remove; all uses changeed to va_start.
18866         (exit, strerror): Remove decls.
18867         (error_print_progname): Prototype uncondionally.
18868         Don't include <errno.h>; no longer needed.
18869         (private_strerror): Remove.
18870         (error_tail): Always define.
18871         (error, error_at_line): Assume C89 or better; always use prototypes.
18872         * lib/fatal.c: Include "fatal.h" first, to test interface.
18873         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
18874         (VA_START): Remove; all uses changed to va_start.
18875         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
18876         this case.
18877         (exit): Remove decl.
18878         (fatal): Prototype unconditionally.  Assume va_start works.
18879         Abort at end, to pacify gcc.
18880
18881         * lib/euidaccess.c (main): Define with a prototype.
18882
18883         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
18884
18885         * lib/exitfail.c: Include <stdlib.h> unconditionally.
18886
18887         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
18888         prototypes.
18889         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
18890         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
18891         (getenv): Remove decl.
18892         (fnmatch): Define using a prototype.
18893         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
18894         (FCT): Define using a prototype.
18895
18896         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
18897
18898         * lib/gethostname.c: Include <stddef.h>.
18899         (gethostname): Define with prototype.  Length is size_t, not int.
18900
18901 2003-09-08  Paul Eggert  <eggert@twinsun.com>
18902
18903         Assume C89 or better; remove K&R cruft.
18904         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
18905         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
18906         string.h, getenv, malloc.
18907         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
18908         headers.
18909         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
18910         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
18911         do not check for strerror.
18912         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
18913         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
18914         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
18915         do not check for doprnt or vprintf.
18916         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
18917         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
18918
18919 2003-09-08  Paul Eggert  <eggert@twinsun.com>
18920
18921         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
18922         getversion.c should have been removed then, but was accidentally
18923         preserved.
18924
18925         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
18926         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
18927
18928 2003-09-08  Karl Berry  <karl@gnu.org>
18929
18930         * config/config.sub, config.guess, srclistvars.sh: update from savannah
18931                 config, forget about prep.
18932
18933         * config/depcomp, missing: update from automake.
18934
18935 2003-09-07  Paul Eggert  <eggert@twinsun.com>
18936
18937         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
18938         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
18939
18940 2003-09-07  Paul Eggert  <eggert@twinsun.com>
18941
18942         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
18943         copy_tm_result.  Bug reported by Simon Josefsson in
18944         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
18945
18946 2003-09-06  Paul Eggert  <eggert@twinsun.com>
18947
18948         * m4/time_r.m4: New file.
18949         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
18950         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
18951         is. Check for timegm declaration.
18952         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
18953         Do not check for gmtime_r.
18954         Replace mktime if __mktime_internal does not exist and if mktime
18955         hasn't been replaced already.
18956
18957 2003-09-06  Paul Eggert  <eggert@twinsun.com>
18958
18959         * lib/time_r.c, lib/time_r.h: New files.
18960
18961         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
18962         __localtime_r.
18963         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
18964         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
18965
18966         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
18967         __gmtime_r.
18968         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
18969         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
18970         Include <time_r.h>.
18971
18972         * lib/timegm.c: Switch to glibc implementation, with the following
18973         changes:
18974         [defined HAVE_CONFIG_H]: Include <config.h>.
18975         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
18976         (__mktime_internal) [!defined _LIBC]: New decl.
18977         (__gmtime_r) [!defined _LIBC]: New macro and function.
18978         (timegm): Use a prototype, since gnulib assumes C89.
18979         Do not bother declaring tmp to be const, as it's not really usefu.
18980         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
18981         (timegm): Declare only if HAVE_DECL_TIMEGM.
18982
18983 2003-09-06  Paul Eggert  <eggert@twinsun.com>
18984
18985         * MODULES.html.sh (func_all_modules): Add time_r.
18986         * modules/time_r: New file.
18987         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
18988         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
18989
18990 2003-09-03  Paul Eggert  <eggert@twinsun.com>
18991
18992         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
18993         Bug reported by Lute Kamstra in
18994         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
18995
18996         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
18997         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
18998         course with correspondingly smaller numbers for tomorrow and
18999         yesterday.  From Tadayoshi Funaba.  Originally installed into
19000         sh-utils on 1999-08-07, but the patch got lost (I guess during the
19001         coreutils merge?).
19002
19003 2003-08-31  Simon Josefsson  <jas@extundo.com>
19004
19005         * modules/timegm: New file.
19006         * MODULES.html.sh (func_all_modules): Add timegm.
19007
19008 2003-08-31  Simon Josefsson  <jas@extundo.com>
19009
19010         * m4/timegm.m4: New file.
19011
19012 2003-08-31  Simon Josefsson  <jas@extundo.com>
19013
19014         * lib/timegm.h: New file.
19015         * lib/timegm.c: New file.  Based on
19016         wget-1.8.2/src/http.c:mktime_from_utc.
19017
19018 2003-08-31  Karl Berry  <karl@gnu.org>
19019
19020         * lib/argp.h: update from libc.
19021
19022 2003-08-28  Bruno Haible  <bruno@clisp.org>
19023
19024         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
19025         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
19026         followed by '#define fnmatch fnmatch_posix' gives an error.
19027
19028 2003-08-28  Bruno Haible  <bruno@clisp.org>
19029
19030         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
19031         warning on QNX, which defines O_BINARY to 000000.
19032
19033 2003-08-27  Jim Meyering  <jim@meyering.net>
19034
19035         * m4/mkstemp.m4: Require that the system mkstemp be able to create
19036         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
19037         would fail after 32.  Reported by Danny Levinson.  Details here:
19038         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
19039
19040 2003-08-24  Bruno Haible  <bruno@clisp.org>
19041
19042         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
19043         MSVC7 <stdio.h> is included later.
19044
19045 2003-08-22  Simon Josefsson  <jas@extundo.com>
19046
19047         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
19048
19049 2003-08-20  Karl Berry  <karl@gnu.org>
19050
19051         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
19052
19053 2003-08-20  Bruno Haible  <bruno@clisp.org>
19054
19055         * modules/progname: New file.
19056         * MODULES.html.sh (func_all_modules): Add progname.
19057
19058 2003-08-20  Bruno Haible  <bruno@clisp.org>
19059
19060         * lib/progname.h: New file, from GNU gettext.
19061         * lib/progname.c: New file, from GNU gettext.
19062         * lib/progreloc.c: New file, from GNU gettext.
19063
19064 2003-08-19  Jim Meyering  <jim@meyering.net>
19065
19066         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
19067         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
19068
19069 2003-08-19  Bruno Haible  <bruno@clisp.org>
19070
19071         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
19072         more.
19073
19074 2003-08-19  Bruno Haible  <bruno@clisp.org>
19075
19076         * lib/xstrdup.c: Assume <string.h> exists.
19077
19078 2003-08-18  Paul Eggert  <eggert@twinsun.com>
19079
19080         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
19081         in makefile rules.
19082
19083 2003-08-18  Jim Meyering  <jim@meyering.net>
19084
19085         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
19086         * m4/lib-ld.m4: Likewise.
19087
19088 2003-08-18  Jim Meyering  <jim@meyering.net>
19089
19090         * lib/setenv.h: Indent nested cpp directive.
19091         * lib/vasnprintf.c: Remove trailing blanks.
19092
19093 2003-08-17  Simon Josefsson  <jas@extundo.com>
19094
19095         * modules/xstrndup: New file.
19096         * MODULES.html.sh (func_all_modules): Add xstrndup.
19097
19098 2003-08-17  Simon Josefsson  <jas@extundo.com>
19099
19100         * modules/argp: Fix autoconf macro name. Add more dependencies.
19101
19102 2003-08-17  Simon Josefsson  <jas@extundo.com>
19103
19104         * m4/xstrndup.m4: New file.
19105
19106 2003-08-17  Simon Josefsson  <jas@extundo.com>
19107
19108         * m4/argp.m4: New file.
19109
19110 2003-08-17  Simon Josefsson  <jas@extundo.com>
19111             Bruno Haible  <bruno@clisp.org>
19112
19113         * lib/xstrndup.h: New file.
19114         * lib/xstrndup.c: New file.
19115
19116 2003-08-17  Bruno Haible  <bruno@clisp.org>
19117
19118         * modules/strndup (Files, Include): Add lib/strndup.h.
19119
19120 2003-08-17  Bruno Haible  <bruno@clisp.org>
19121
19122         * modules/euidaccess (Files): Add lib/euidaccess.h.
19123
19124 2003-08-17  Bruno Haible  <bruno@clisp.org>
19125
19126         * lib/strndup.h: New file.
19127
19128 2003-08-17  Bruno Haible  <bruno@clisp.org>
19129
19130         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
19131         like AC_GNU_SOURCE.
19132         * modules/extensions (configure.ac): Comment out the invocation of
19133         gl_USE_SYSTEM_EXTENSIONS.
19134
19135 2003-08-16  Paul Eggert  <eggert@twinsun.com>
19136
19137         Merges from coreutils, etc.
19138         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
19139         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
19140         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
19141         fixing a typo.
19142         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
19143         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
19144
19145 2003-08-16  Paul Eggert  <eggert@twinsun.com>
19146
19147         Document merge from coreutils.
19148         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
19149         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
19150         * modules/utime: Add m4/utimes-null.m4.
19151
19152 2003-08-16  Paul Eggert  <eggert@twinsun.com>
19153
19154         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
19155         space, undoing this 2003-08-12 change:
19156         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
19157
19158 2003-08-16  Paul Eggert  <eggert@twinsun.com>
19159
19160         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
19161         strtoul.c from libc, undoing this 2003-08-12 change:
19162         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
19163
19164 2003-08-16  Jim Meyering  <jim@meyering.net>
19165
19166         Merges from coreutils.
19167         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
19168         prefix.  Adjust cache variables similarly.  Create 500 rather than
19169         just 300 files, to exercise bug on Darwin6.5, too.
19170         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
19171         $missing_dir.
19172         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
19173         AM_SYS_POSIX_TERMIOS.
19174         Reported by mkc@mathdogs.com.
19175         Also change use of $am_cv_sys_posix_termios
19176         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
19177         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
19178         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
19179         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
19180         in /proc/mounts until it finds one with matching device number.  This
19181         is unnecessary when the FILE argument *is* a mount point.  No stat call
19182         is necessary in that case.  So, disable the statvfs-testing code on
19183         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
19184         as RedHat bug# 84846.
19185         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
19186         to 1MB, so as not to render systems with no stack size limit (e.g.,
19187         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
19188         Include <unistd.h>.  On some systems,
19189         it is required for the definition of _SC_PAGESIZE.
19190
19191 2003-08-16  Jim Meyering  <jim@meyering.net>
19192
19193         Merge from coreutils.
19194         * lib/xstrtoimax.c: #else #if -> #elif.
19195         * lib/xstrtoumax.c: Likewise.
19196
19197 2003-08-16  Jim Meyering  <jim@meyering.net>
19198
19199         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
19200         * m4/utimes.m4: Removed.
19201         * m4/utimes-null.m4: Renamed from utimes.m4.
19202
19203         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
19204         to 1MB, so as not to render systems with no stack size limit (e.g.,
19205         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
19206         Include <unistd.h>.  On some systems,
19207         it is required for the definition of _SC_PAGESIZE.
19208
19209 2003-08-16  Jim Meyering  <jim@meyering.net>
19210         and Paul Eggert  <eggert@cs.ucla.edu>
19211
19212         Merges from coreutils, etc.
19213
19214         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
19215         using the latest version from cvs.  This avoids problems with #line
19216         directives using a vendor (Sun) compiler.
19217         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
19218         Don't set GETGROUPS_LIB here; now it's
19219         done via getgroups.m4's wrapper function.
19220         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
19221         rather than just in sh-util/configure.in, so that the
19222         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
19223         same.
19224         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
19225         AC_FUNC_GETLOADAVG where to find getloadavg.c.
19226         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
19227         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
19228         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
19229         Remove code that is now done by the newly-required macros.
19230         Append $(EXEEXT) to DF_PROG.
19231         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
19232         Do not invoke or require the following here,
19233         since prereq.m4 or some gnulib .m4 now does this for us:
19234         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
19235         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
19236         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
19237         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
19238         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
19239         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
19240         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
19241         AC_FUNC_OBSTACK.
19242         Do not replace the following functions, as this is now the job
19243         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
19244         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
19245         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
19246         atexit getpass, strdup, getpagesize.
19247         Replace 'raise'.
19248         Do not check for the following functions, as this is now the job
19249         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
19250         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
19251         setregid.
19252         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
19253         Check for sys/sysctl.h.
19254         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
19255         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
19256         of checking for ssize_t ourselves.
19257
19258         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
19259         Require every macro that gnulib/modules/* suggests for us.
19260         (jm_PREREQ_ADDEXT): New macro.
19261         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
19262         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
19263
19264         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
19265         (gl_PHYSMEM): Use it.
19266         Also check for `table' function.
19267         Check for new headers and functions.
19268         Add check for sys/sysmp.h.
19269         With suggestions from Kaveh Ghazi.
19270         Ignore headers that are present but cannot be compiled.  This
19271         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
19272         C 5.4.
19273
19274 2003-08-15  Paul Eggert  <eggert@twinsun.com>
19275
19276         Document merge from coreutils.
19277         * modules/userspec: Depend on posixver.
19278         * modules/strftime: Depend on tzset.
19279
19280 2003-08-15  Paul Eggert  <eggert@twinsun.com>
19281
19282         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
19283         rather than tab, after '#' in shell-script copyright notices.
19284         Suggested by Bruno Haible.
19285
19286 2003-08-15  Paul Eggert  <eggert@twinsun.com>
19287
19288         * config/srclist-update: Use three spaces, rather than tab, after '#'
19289         in shell-script copyright notices.  Suggested by Bruno Haible.
19290         Remove unnecessary parenthesization in regular expression.
19291
19292 2003-08-15  Jim Meyering  <jim@meyering.net>
19293
19294         Merge from coreutils.
19295         * lib/xgethostname.c: Include <stdlib.h>.
19296         (xghostname): Don't exit for anything other than memory-related
19297         failure; just return NULL.
19298         * lib/userspec.c: Include "posixver.h".
19299         (parse_user_spec): Accept `.' as a separator only
19300         in pre-POSIX-200112 mode.
19301         * lib/strtoimax.c: Use #elif rather than #else #if.
19302         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
19303         Remove function, now that we can rely on a working tzset function.
19304         [!_LIBC]: Ensure that the required autoconf test has been run.
19305         [!defined _NL_CURRENT && HAVE_STRFTIME]:
19306         Use underlying_strftime for %r.
19307         * lib/sha.c: Merge in some clean-up and optimization changes from
19308         glibc.
19309         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
19310         Ensure that it is a multiple of 64.
19311         Rearrange loop exit tests so as to avoid performing an
19312         additional fread after encountering an error or EOF.
19313         * lib/realloc.c: Update copyright date.
19314
19315 2003-08-15  Jim Meyering  <jim@meyering.net>
19316         and Paul Eggert  <eggert@twinsun.com>
19317
19318         Merge from coreutils.
19319         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
19320         member but strut utmpx does not.  Needed for AIX 4.3.3.
19321         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
19322
19323 2003-08-15  Jim Meyering  <jim@meyering.net>
19324         and Paul Eggert  <eggert@cs.ucla.edu>
19325
19326         Merges from coreutils, etc.
19327         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
19328         Require gl_FUNC_TZSET_CLOBBER.
19329         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
19330         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
19331         members.
19332
19333 2003-08-14  Paul Eggert  <eggert@twinsun.com>
19334
19335         Help the merge from coreutils.
19336         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
19337         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
19338         * m4/tzset.m4: Use it too.
19339
19340 2003-08-14  Paul Eggert  <eggert@twinsun.com>
19341
19342         * modules/tzset: New file.
19343
19344 2003-08-14  Jim Meyering  <jim@meyering.net>
19345
19346         Merges from coreutils.
19347         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
19348         variable names, rather than @FNMATCH_H@.
19349         * modules/alloca: Likewise for $(ALLOCA_H).
19350
19351         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
19352         the three copies of the literal target, `fnmatch.h'.
19353         * modules/alloca (alloca.h): Likewise.
19354
19355 2003-08-14  Jim Meyering  <jim@meyering.net>
19356
19357         Merge from coreutils.
19358         * m4/tzset.m4: New file.
19359         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
19360         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
19361         otherwise, AIX 5.1 systems would end up using the latter.
19362         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
19363         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
19364         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
19365         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
19366
19367 2003-08-14  Jim Meyering  <jim@meyering.net>
19368
19369         Merge from coreutils.
19370         * lib/obstack.h: Whitespace changes.
19371         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
19372         and xcalloc return values.
19373         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
19374         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
19375         hang on OSF/1 5.1 for DIR on both local and remote file systems.
19376         Reported by (and fix confirmed by) Nelson H. F. Beebe.
19377         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
19378         error from mntctl.
19379         Use mntctl's return value to drive the entry-processing loop, since
19380         we can't rely on the value of the vmt_length member in the last
19381         entry.  On some systems doing so could result in exhausting
19382         virtual memory.  Based in part on a patch from Mike Jetzer.
19383
19384 2003-08-14  Jim Meyering  <jim@meyering.net>
19385         and Paul Eggert  <eggert@twinsun.com>
19386
19387         Merges from coreutils, plus other fixes.
19388         * lib/physmem.c: Merge in portability changes from gcc/libiberty
19389         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
19390         for credits and details.  Thanks to Kaveh Ghazi for helping
19391         to keep these files in sync.
19392         (ARRAY_SIZE): Define it.
19393         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
19394         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
19395         (memcasecmp): Don't assume size_t fits in unsigned int.
19396         Remove casts and duplicate code.
19397         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
19398         (memcpy): Remove definition.
19399         Merge in some clean-up and optimization changes from glibc.
19400         [BLOCKSIZE]: Move definition to top of file.
19401         Ensure that it is a multiple of 64.
19402         Rearrange loop exit tests so as to avoid performing an
19403         additional fread after encountering an error or EOF.
19404         * lib/md5.h (md5_uintptr): Define.
19405         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
19406         return to the initial working directory.  Preserve errno
19407         for caller.
19408         * lib/idcache.c: Include "xalloc.h".
19409         (xmalloc, xrealloc): Remove decls.
19410         (getuser): Remove casts no longer required in C89.
19411         * lib/human.c: Include stdio.h, for sprintf.
19412         * lib/group-member.c: Include "xalloc.h".
19413         (xmalloc, xrealloc): Remove decls.
19414         (get_group_info): Remove casts no longer required in C89.
19415         * lib/getusershell.c (readname): Remove casts no longer required in
19416         C89.
19417         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
19418         * lib/getline.c: Whitespace fix, from coreutils.
19419
19420 2003-08-13  Paul Eggert  <eggert@twinsun.com>
19421
19422         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
19423         Check for isascii.
19424
19425         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
19426         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
19427         Undo previous (whitespace-only) change.
19428
19429 2003-08-13  Paul Eggert  <eggert@twinsun.com>
19430
19431         * lib/exclude.c: Include <ctype.h>
19432         (IN_CTYPE_DOMAIN): New macro.
19433         (is_space): New fn.
19434         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
19435         and empty lines.
19436
19437         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
19438         Undo previous (whitespace-only) change.
19439
19440 2003-08-13  Paul Eggert  <eggert@twinsun.com>
19441
19442         * config/srclist-update: Change update back to the old behavior,
19443         leaving whitespace alone.  Use one 'sed' command rather than a
19444         pipeline.
19445         (fixlicense): Now a variable, not a function.
19446         (remove_trailing_blanks): Remove.
19447         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
19448         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
19449         Undo previous (whitespace-only) change.
19450
19451 2003-08-12  Paul Eggert  <eggert@twinsun.com>
19452
19453         Merge from coreutils.
19454         * modules/euidaccess: Add lib_SOURCES, include for new
19455         file euidaccess.h
19456
19457 2003-08-12  Paul Eggert  <eggert@twinsun.com>
19458
19459         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
19460         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
19461         Normalize leading white space and remove trailing white space.
19462
19463         Merge from coreutils
19464         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
19465
19466         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
19467         0.12.1.  These files are now being upgraded automatically by
19468         ../config/srclist-update.
19469
19470 2003-08-12  Paul Eggert  <eggert@twinsun.com>
19471
19472         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
19473         Normalize leading white space and remove trailing white space.
19474         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
19475         notice, as per ../config/srclist-update.
19476
19477         Merge from coreutils.
19478         * lib/euidaccess.h: New file.
19479         * lib/euidaccess.c: Include it.
19480         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
19481         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
19482         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
19483
19484 2003-08-12  Paul Eggert  <eggert@twinsun.com>
19485
19486         * config/srclist-update: Add copyright notice.
19487         (remove_id_lines, remove_trailing_blanks): New constants.
19488         (fixfile): Use them to normalize spacing a bit in copied files.
19489         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
19490         Normalize leading white space and remove trailing white space.
19491
19492         * config/texinfo.tex: Sync with texinfo.
19493
19494         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
19495         strtoul.c from libc, to merge coreutils whitespace changes.
19496
19497         * config/srclist.txt: Get the following m4 files from gettext:
19498         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
19499         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
19500         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
19501         wint_t.m4.
19502
19503 2003-08-12  Karl Berry  <karl@gnu.org>
19504
19505         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
19506         been made.
19507
19508 2003-08-11  Paul Eggert  <eggert@twinsun.com>
19509
19510         * modules/gnu-source, m4/gnu-source.m4:
19511         Remove; we're assuming Autoconf 2.54 or later now.
19512         Suggested by Bruno Haible.
19513         * MODULES.html.sh (func_all_modules): Remove gnu-source.
19514
19515 2003-08-11  Bruno Haible  <bruno@clisp.org>
19516
19517         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
19518
19519 2003-08-11  Bruno Haible  <bruno@clisp.org>
19520
19521         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
19522         (vasnprintf): Use it instead of wcslen.
19523
19524 2003-08-11  Bruno Haible  <bruno@clisp.org>
19525
19526         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
19527         value to ensure that _Bool promotes to int. Use #define for _Bool when
19528         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
19529
19530 2003-08-10  Karl Berry  <karl@gnu.org>
19531
19532         * lib/regex.h: update from libc (whitespace fix).
19533
19534 2003-08-09  Paul Eggert  <eggert@twinsun.com>
19535
19536         Merge some files from coreutils.  These changes were
19537         originally made by Jim Meyering.
19538         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
19539         many older Unixes require this.
19540         * lib/alloca.c (alloca): Remove cast to argument of free;
19541         no longer needed in C89.
19542         * lib/alloca_.h, regex.h: Fix white space to match
19543         what GNU indent does.
19544
19545 2003-08-09  Paul Eggert  <eggert@twinsun.com>
19546
19547         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
19548         apparently Emacs's Unicode mode got confused before my 2003-08-05
19549         checkin.
19550
19551 2003-08-08  Paul Eggert  <eggert@twinsun.com>
19552
19553         * m4/extensions.m4: New file.
19554         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
19555         Require gl_USE_SYSTEM_EXTENSIONS.
19556         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
19557         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
19558
19559 2003-08-08  Paul Eggert  <eggert@twinsun.com>
19560
19561         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
19562         * modules/extensions, modules/gnu-source: New files.
19563         * modules/timespec, modules/unlocked-io: Depend on extensions.
19564
19565 2003-08-07  Paul Eggert  <eggert@twinsun.com>
19566
19567         * modules/restrict: New file.
19568         * MODULES.html.sh (func_all_modules): Add restrict.
19569         * modules/regex: Depend on restrict.
19570
19571 2003-08-07  Paul Eggert  <eggert@twinsun.com>
19572
19573         * m4/restrict.m4: New file.
19574         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
19575
19576 2003-08-07  Bruno Haible  <bruno@clisp.org>
19577
19578         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
19579         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
19580
19581 2003-08-07  Bruno Haible  <bruno@clisp.org>
19582
19583         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
19584         makes the module 'getndelim2' compatible with the module 'getline'.
19585
19586 2003-08-05  Paul Eggert  <eggert@twinsun.com>
19587
19588         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
19589         byte with "\201" to avoid glitches when editing that source file
19590         with multi-gnome-terminal.
19591
19592 2003-08-05  Paul Eggert  <eggert@twinsun.com>
19593
19594         * lib/bumpalloc.h: Remove.
19595
19596 2003-08-05  Paul Eggert  <eggert@twinsun.com>
19597
19598         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
19599         * modules/bumpalloc: Remove.
19600
19601 2003-08-04  Paul Eggert  <eggert@twinsun.com>
19602
19603         * lib/getloadavg.c: Change copyright notice and spacing to conform to
19604         GNU coding style.
19605
19606         Merge from coreutils.
19607         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
19608         1. From glibc.
19609         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
19610         from Karl Berry, implemented by Jim Meyering.
19611         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
19612         from Dmitry V. Levin.
19613         Remove anachronistic cast of xrealloc.
19614         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
19615         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
19616         type. Otherwise, it wouldn't compile with at least /bin/cc on
19617         ymp-cray-unicos9.0.2.X.
19618         Combine two mostly-identical uses of alloca into one.
19619         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
19620
19621 2003-08-04  Dave Love  <d.love@dl.ac.uk>
19622
19623         [From Emacs.]
19624
19625         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
19626         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
19627         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
19628         obsolete NLIST_NAME_UNION.
19629         [__GNU__]: Undef BSD and FSCALE.
19630         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
19631
19632 2003-08-03  Paul Eggert  <eggert@twinsun.com>
19633
19634         * lib/stdbool_.h (_Bool): Make it signed char, instead of
19635         an enum type, so that it's guaranteed to promote to int.  See:
19636         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
19637
19638 2003-08-03  Karl Berry  <karl@gnu.org>
19639
19640         * config/depcomp: update from automake.
19641
19642 2003-07-31  Paul Eggert  <eggert@twinsun.com>
19643
19644         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
19645         (strerror): Don't assume that a printable int fits in 14 bytes.
19646
19647 2003-07-31  Bruno Haible  <bruno@clisp.org>
19648
19649         * modules/getpass-gnu: New file.
19650         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
19651
19652 2003-07-31  Bruno Haible  <bruno@clisp.org>
19653
19654         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
19655
19656 2003-07-24  Karl Berry  <karl@gnu.org>
19657
19658         * config/missing: update from automake.
19659
19660 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
19661             Bruno Haible  <bruno@clisp.org>
19662
19663         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
19664         * lib/getline.c (getline, getdelim): Likewise.
19665         Remove _GNU_SOURCE define; now it's defined in config.h through
19666         m4/getline.m4.
19667
19668 2003-07-23  Karl Berry  <karl@gnu.org>
19669
19670         * config/config.sub: update from prep.
19671
19672 2003-07-22  Paul Eggert  <eggert@twinsun.com>
19673
19674         * modules/xalloc (Depends-on): Add exitfail.
19675         * modules/xmemcoll: Likewise.
19676
19677 2003-07-22  Paul Eggert  <eggert@twinsun.com>
19678
19679         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
19680         over-parenthesization in macros.
19681
19682         Sync with coreutils.
19683
19684         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
19685         required by C99.
19686
19687         Use `exit_failure' for xalloc and xmemcoll instead of their own
19688         private exit-failure variables.
19689         * lib/xalloc.h (xalloc_exit_failure): Remove.
19690         * lib/xmalloc.c: Likewise.  Include exitfail.h.
19691         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
19692         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
19693         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
19694         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
19695
19696 2003-07-20  Jim Meyering  <jim@meyering.net>
19697
19698         * modules/closeout (Depends-on): Add exitfail.
19699         Suggestion from Bruno Haible.
19700
19701 2003-07-19  Karl Berry  <karl@gnu.org>
19702
19703         * config/config.sub: update from prep.
19704
19705 2003-07-18  Paul Eggert  <eggert@twinsun.com>
19706
19707         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
19708         Remove.
19709         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
19710         to test that it can stand by itself.  Include "exitfail.h".
19711         Clients should set exit_failure instead.
19712         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
19713
19714 2003-07-18  Bruno Haible  <bruno@clisp.org>
19715
19716         * modules/getndelim2: New file.
19717         * modules/getline: Share files with module getndelim2.
19718         * modules/getnline: Depend on getndelim2 instead of sharing files with
19719         it. Add getnline.c to lib_SOURCES.
19720         * MODULES.html.sh (func_all_modules): Add getndelim2.
19721
19722 2003-07-18  Bruno Haible  <bruno@clisp.org>
19723
19724         * m4/getndelim2.m4: New file.
19725         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
19726         invoke gl_PREREQ_GETNDELIM2.
19727         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
19728         gl_PREREQ_GETNDELIM2.
19729         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
19730         gl_GETNDELIM2.
19731
19732 2003-07-18  Bruno Haible  <bruno@clisp.org>
19733
19734         * lib/getndelim2.h: New file.
19735         * lib/getndelim2.c: Make into a module of its own. Include config.h,
19736         getndelim2.h.
19737         (getndelim2): Make non-static. Change return type to ssize_t.
19738         * lib/getline.h: Change argument names.
19739         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
19740         * lib/getnline.c: Include getndelim2.h.
19741
19742 2003-07-18  Andreas Schwab  <schwab@suse.de>
19743
19744         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
19745
19746 2003-07-17  Karl Berry  <karl@gnu.org>
19747
19748         * config/config.sub: update from prep.
19749
19750 2003-07-17  Bruno Haible  <bruno@clisp.org>
19751
19752         * modules/getnline: New file.
19753         * modules/getline: Add lib/getndelim2.c to source file list.
19754         * MODULES.html.sh (func_all_modules): Add getnline.
19755
19756 2003-07-17  Bruno Haible  <bruno@clisp.org>
19757
19758         * m4/getnline.m4: New file.
19759
19760 2003-07-17  Bruno Haible  <bruno@clisp.org>
19761
19762         * m4/Makefile.am.in: Remove file.
19763         * m4/Makefile.am: Remove file.
19764         * m4/Makefile.in: Remove file.
19765
19766 2003-07-17  Bruno Haible  <bruno@clisp.org>
19767
19768         * lib/getnline.h: New file.
19769         * lib/getnline.c: New file.
19770         * lib/getndelim2.c: New file, extracted from getline.c.
19771         (getndelim2): Renamed from getdelim2, with added nmax argument.
19772         * lib/getline.c: Include getndelim2.c.
19773         (getdelim2): Moved out to getndelim2.c.
19774         (getline, getdelim): Update.
19775
19776 2003-07-17  Bruno Haible  <bruno@clisp.org>
19777
19778         * lib/Makefile.am: Remove file.
19779         * lib/Makefile.in: Remove file.
19780
19781 2003-07-17  Bruno Haible  <bruno@clisp.org>
19782
19783         * configure.in: Remove file.
19784         * Makefile.in: Remove file.
19785
19786 2003-07-17  Bruno Haible  <bruno@clisp.org>
19787
19788         * MODULES.html.sh: Put the </BODY> right before </HTML>.
19789
19790 2003-07-16  Karl Berry  <karl@gnu.org>
19791
19792         * config/srclist-update: was running fixlicense twice, which caused
19793                 texinfo.tex to be nullified for some reason.  Simplify,
19794                 $gplsrc is no longer needed as far as I can see?
19795
19796 2003-07-16  Jim Meyering  <jim@meyering.net>
19797
19798         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
19799
19800 2003-07-15  Paul Eggert  <eggert@twinsun.com>
19801
19802         * config/srclist.txt: Get the following files from gettext-runtime/intl
19803         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
19804         ref-del.sin.  From Bruno Haible.
19805         * config/srclist-update (fixfile): Change grep pattern again, since the
19806         previous fix didn't work (there was another trailing $).  Use
19807         '[$]' to escape the $s.
19808
19809 2003-07-15  Karl Berry  <karl@gnu.org>
19810
19811         * lib/vasnprintf.c: update from gettext.
19812
19813 2003-07-15  Karl Berry  <karl@gnu.org>
19814
19815         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
19816         gets expanded when surrounded by '$'.
19817
19818 2003-07-15  Jim Meyering  <jim@meyering.net>
19819
19820         * modules/save-cwd: Don't depend on error.  From Derek Price.
19821
19822 2003-07-15  Jim Meyering  <jim@meyering.net>
19823
19824         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
19825
19826 2003-07-14  Simon Josefsson  <jas@extundo.com>
19827
19828         * modules/mempcpy: New file.
19829         * MODULES.html.sh (func_all_modules): Add mempcpy.
19830
19831 2003-07-14  Simon Josefsson  <jas@extundo.com>
19832
19833         * m4/mempcpy.m4: New file.
19834
19835 2003-07-14  Simon Josefsson  <jas@extundo.com>
19836
19837         * lib/mempcpy.h: New file.
19838         * lib/mempcpy.c: New file.
19839
19840 2003-07-14  Paul Eggert  <eggert@twinsun.com>
19841
19842         * modules/getdate, modules/posixtm: Depend on mktime.
19843
19844 2003-07-14  Paul Eggert  <eggert@twinsun.com>
19845
19846         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
19847         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
19848         unicodeio.c, unicodeio.h, unlocked-io.h:
19849         Switch from LGPL to GPL.
19850
19851 2003-07-14  Paul Eggert  <eggert@twinsun.com>
19852
19853         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
19854         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
19855         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
19856         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
19857         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
19858         updated automatically by ../config/srclist-update.  This changes
19859         their license from LPGL to GPL.
19860
19861 2003-07-14  Paul Eggert  <eggert@twinsun.com>
19862
19863         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
19864         assumed to refer to the root of the most recent stable gettext version.
19865         * config/srclistvars.sh: Add defaults for eggert.
19866         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
19867         Match "This program" as well as "The program".  This is needed
19868         for gettext.
19869
19870 2003-07-14  Jim Meyering  <jim@meyering.net>
19871
19872         Don't emit diagnostics.  Let callers do that.
19873         * lib/save-cwd.c: Don't include "error.h".
19874         (save_cwd): Don't call error.  Ensure that errno is valid
19875         when returning nonzero.
19876
19877         * lib/save-cwd.h (restore_cwd): Update prototype.
19878         * lib/save-cwd.c (restore_cwd): Remove two parameters.
19879         Simplify.  Don't call error upon failure.  Let callers do that.
19880         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
19881         when auditing is enabled.  But don't bother updating the #if.
19882
19883 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
19884
19885         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
19886         it breaks C++ compilation.
19887         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
19888
19889 2003-07-10  Simon Josefsson  <jas@extundo.com>
19890
19891         * modules/strchrnul (Makefile.am): Add strchrnul.h.
19892
19893 2003-07-10  Jim Meyering  <jim@meyering.net>
19894
19895         * m4/clock_time.m4: Remove trailing blank.
19896         * m4/intmax_t.m4: Likewise.
19897
19898 2003-07-10  Jim Meyering  <jim@meyering.net>
19899
19900         * lib/vasnprintf.c: Remove trailing blanks.
19901         Make cpp indentation consistent.
19902
19903 2003-07-09  Paul Eggert  <eggert@twinsun.com>
19904
19905         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
19906         posixver.c, strftime.c, strnlen.c, strverscmp.c:
19907         Switch from LGPL to GPL.
19908
19909 2003-07-09  Paul Eggert  <eggert@twinsun.com>
19910
19911         * config/srclist.txt: Sort sublists.  Add
19912         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
19913         that differ from gnulib for one reason or another; we'd like this list
19914         to be smaller but for now let's document what we have.
19915
19916 2003-07-08  Paul Eggert  <eggert@twinsun.com>
19917
19918         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
19919         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
19920         and sweeter "eval x=$x".
19921         * config/srclist.txt: Get lib/argp* from glibc.
19922
19923 2003-07-07  Paul Eggert  <eggert@twinsun.com>
19924
19925         * lib/mktime.c: Fix some boundary cases and remove need for floating
19926         point.
19927
19928         Issue a compile-time diagnostic if time_t is floating point, or if
19929         two's complement arithmetic is not in effect, or if arithmetic
19930         right shift does not propagate the sign.  These assumptions were
19931         all in the original code but they weren't checked.
19932
19933         (TIME_T_MIDPOINT, verify): New macros.
19934         (__isleap): Remove; it has integer overflow problems.
19935         (leapyear): New function, without those problems.
19936         (ydhms_tm_diff): Remove; splitting into two parts.
19937         (ydhms_diff): New function, containing the arithmetic part of
19938         the old ydhms_tm_diff function.  Issue a compile-time
19939         diagnostic if we are not using C99 integer division.
19940         Avoid casts when possible.
19941         (guess_time_tm): New function, containing the checking part of
19942         the old ydhms_tm_diff function.  Return the new value, rather than
19943         the difference between it and the old.  Accept a new argument T
19944         so that *T specifies the old value.  Check for overflow in the result.
19945
19946         (__mktime_internal): Use a time_t offset, not a long int offset.
19947         This undoes the 2003-06-04 change, which is no longer needed now
19948         that we have better overflow checking.
19949         (localtime_offset): Likewise.
19950
19951         (__mktime_internal): Avoid harmful overflow on hosts where time_t
19952         and long are 64-bit but int is only 32-bit.
19953         (ydhms_diff): Use long int to store year1 and yday1.
19954         Issue a compile-time diagnostic if long int is not wide enough.
19955
19956         (__mktime_internal): Use long int to store adjusted year and yday.
19957         Use plain C rather than preprocessor commands, if that doesn't
19958         affect efficiency.
19959         Check for overflow (and try to repair) after each probe
19960         rather than checking only at the very end.  This avoids some bugs
19961         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
19962         does not equal GMT offset at maximum time).
19963         Use integer to check for overflow rather than floating point; this
19964         is more portable to non-IEEE hosts, and is a tad faster.
19965         When we detect that we are oscillating between two values,
19966         don't check whether tm_isdst has the requested value, since
19967         we already know the answer.  When tm_isdst has the wrong value,
19968         use a different heuristic to find the right one, based on the
19969         extreme values actually observed in practice in tz2003a,
19970         rather than the (overly optimistic) "previous 3 calendar quarters".
19971
19972         (not_equal_tm, print_tm, check_result): Use "const T" rather than
19973         "T const" to accommodate glibc style.
19974         (check_result): Use less-confusing report format.  "long" -> "long int.
19975         (main): Likewise.
19976         Don't loop if the iteration overflows time_t.
19977         Allow a negative step in the iteration.
19978
19979 2003-07-06  Karl Berry  <karl@gnu.org>
19980
19981         * config/depcomp: update from automake.
19982         * config/config.sub: update from prep.
19983
19984 2003-07-03  Karl Berry  <karl@gnu.org>
19985
19986         * config/config.guess: update from prep.
19987
19988 2003-07-01  Paul Eggert  <eggert@twinsun.com>
19989
19990         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
19991         xreadlink.c now includes it unconditionally.
19992
19993 2003-07-01  Paul Eggert  <eggert@twinsun.com>
19994
19995         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
19996         having it depend on HAVE_SYS_TYPES_H.
19997
19998 2003-07-01  Bruno Haible  <bruno@clisp.org>
19999
20000         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
20001         <sys/types.h> should be sufficient.
20002         Reported by Paul Eggert.
20003
20004 2003-06-26  Karl Berry  <karl@gnu.org>
20005
20006         * config/depcomp: update from automake.
20007
20008 2003-06-26  Bruno Haible  <bruno@clisp.org>
20009
20010         * modules/human: Depend on module stdbool.
20011
20012 2003-06-25  Bruno Haible  <bruno@clisp.org>
20013
20014         * modules/readlink: New file.
20015         * modules/xreadlink: Depend on it.
20016         * MODULES.html.sh (func_all_modules): Add readlink.
20017
20018 2003-06-25  Bruno Haible  <bruno@clisp.org>
20019
20020         * m4/readlink.m4: New file.
20021
20022 2003-06-25  Bruno Haible  <bruno@clisp.org>
20023
20024         * lib/readlink.c: New file.
20025
20026 2003-06-22  Karl Berry  <karl@gnu.org>
20027
20028         * config/srclist.txt: update mkinstalldirs from automake.
20029         * config/mkinstalldirs: update.
20030
20031 2003-06-22  Bruno Haible  <bruno@clisp.org>
20032
20033         Portability to mingw32.
20034         * m4/ssize_t.m4: New file, from GNU gettext.
20035         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
20036         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
20037
20038 2003-06-22  Bruno Haible  <bruno@clisp.org>
20039
20040         * modules/safe-read: Add m4/ssize_t.m4.
20041         * modules/xreadlink: Add m4/ssize_t.m4.
20042
20043 2003-06-20  Bruno Haible  <bruno@clisp.org>
20044
20045         Assume C89, so PARAMS isn't needed.
20046         * lib/unicodeio.h (PARAMS): Remove.
20047         * lib/unicodeio.c: Don't use PARAMS.
20048
20049 2003-06-18  Karl Berry  <karl@gnu.org>
20050
20051         * config/config.{guess,sub}: update from prep.
20052
20053 2003-06-18  Jim Meyering  <jim@meyering.net>
20054
20055         Merge changes from coreutils.
20056         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
20057         Remove explicit declarations of xmalloc and realloc.
20058         Include xalloc.h.
20059         (read_utmp): Remove anachronistic cast of xmalloc.
20060
20061 2003-06-17  Paul Eggert  <eggert@twinsun.com>
20062
20063         Assume C89, so PARAMS isn't needed.
20064         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
20065         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
20066         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
20067         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
20068         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
20069         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
20070         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
20071         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
20072         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
20073         lib/xstrtod.h, lib/xstrtol.h: Likewise.
20074         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
20075         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
20076         no longer needed. Anyway, config.h should always be included before any
20077         other file.
20078
20079 2003-06-11  Simon Josefsson  <jas@extundo.com>
20080
20081         * modules/sysexits: New file.
20082         * MODULES.html.sh (func_all_modules): Add sysexits.
20083
20084 2003-06-11  Simon Josefsson  <jas@extundo.com>
20085
20086         * lib/sysexit_.h: New file.
20087
20088 2003-06-11  Derek Price  <derek@ximbiot.com>
20089
20090         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
20091         necessary.
20092
20093 2003-06-11  Bruno Haible  <bruno@clisp.org>
20094
20095         * m4/sysexits.m4: New file.
20096
20097 2003-06-10  Simon Josefsson  <jas@extundo.com>
20098
20099         * lib/argp.h: New file, from glibc.
20100         * lib/argp-ba.c: New file, from glibc.
20101         * lib/argp-eexst.c: New file, from glibc.
20102         * lib/argp-fmtstream.c: New file, from glibc.
20103         * lib/argp-fmtstream.h: New file, from glibc.
20104         * lib/argp-fs-xinl.c: New file, from glibc.
20105         * lib/argp-help.c: New file, from glibc.
20106         * lib/argp-namefrob.h: New file, from glibc.
20107         * lib/argp-parse.c: New file, from glibc.
20108         * lib/argp-pv.c: New file, from glibc.
20109         * lib/argp-pvh.c: New file, from glibc.
20110         * lib/argp-xinl.c: New file, from glibc.
20111
20112 2003-06-10  Simon Josefsson  <jas@extundo.com>
20113
20114         * modules/strchrnul: New file.
20115
20116 2003-06-10  Simon Josefsson  <jas@extundo.com>
20117
20118         * modules/argp: New file.
20119
20120 2003-06-10  Simon Josefsson  <jas@extundo.com>
20121
20122         * m4/strchrnul.m4: New file.
20123
20124 2003-06-10  Simon Josefsson  <jas@extundo.com>
20125
20126         * lib/strchrnul.h: New file.
20127         * lib/strchrnul.c: New file.
20128
20129 2003-06-10  Bruno Haible  <bruno@clisp.org>
20130
20131         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
20132
20133 2003-06-07  Karl Berry  <karl@gnu.org>
20134
20135         * config/config.{guess,sub}: update from prep.
20136
20137 2003-06-07  Jim Meyering  <jim@meyering.net>
20138
20139         * modules/strtod: Use $(...) notation, not @...@ for
20140         AC_REPLACE'd variables.
20141         * modules/localcharset: Likewise.
20142
20143 2003-06-07  Jim Meyering  <jim@meyering.net>
20144
20145         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
20146         in place of my name in the copyright comment.
20147         Remove definition and uses of __P.
20148
20149         From coreutils.
20150         * lib/stat.c: Don't declare xmalloc explicitly.
20151         Instead, include "xalloc.h".
20152         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
20153         xrealloc, and xcalloc return values.
20154         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
20155         Improve comment.
20156         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
20157
20158 2003-06-07  Bruno Haible  <bruno@clisp.org>
20159
20160         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
20161         avoid AC_CONFIG_LINKS.
20162         * modules/fnmatch (Makefile.am): Use explicit creation rule for
20163         fnmatch.h, to avoid AC_CONFIG_LINKS.
20164         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
20165
20166 2003-06-07  Bruno Haible  <bruno@clisp.org>
20167
20168         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
20169         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
20170         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
20171         directory.
20172         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
20173         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
20174         directory.
20175
20176 2003-06-06  Jim Meyering  <jim@meyering.net>
20177
20178         Merge from coreutils.
20179         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
20180         Consolidate declarations and initializations of *_base* locals.
20181
20182         Merge from coreutils.
20183         This avoids a core dump on systems without GNU putenv,
20184         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
20185         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
20186         (unsetenv): New static function, from GNU libc.
20187         (rpl_putenv): Use it.
20188
20189         * lib/modechange.c: Remove trailing blanks.
20190
20191         Merge from coreutils.
20192         * lib/fsusage.c: Remove declaration of statfs.
20193         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
20194
20195         * lib/posixtm.c: Include <stdbool.h> unconditionally.
20196
20197 2003-06-06  Jim Meyering  <jim@meyering.net>
20198
20199         * lib/stdbool_.h: Renamed from stdbool.h.in.
20200
20201 2003-06-06  Jim Meyering  <jim@meyering.net>
20202             Bruno Haible  <bruno@clisp.org>
20203
20204         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
20205         Adjust Makefile.am snippet not to redirect directly to target.
20206         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
20207
20208 2003-06-05  Paul Eggert  <eggert@twinsun.com>
20209
20210         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
20211         mismatch, look in future quarters as well as past.  This fixes a
20212         bug when processing fall-backwards gaps immediately after a long
20213         period of daylight-saving time.
20214
20215         * lib/mktime.c: Assume freestanding C89 or better.
20216         (HAVE_LIMITS_H): Remove.  Assume it's 1.
20217         (__P): Remove; not used.
20218         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
20219         (mktime, not_equal_tm, print_tm, check_result,
20220         main): Use prototypes.  Use const * where appropriate.
20221         (main): Fix typo in testing code that uncovered by above changes.
20222         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
20223
20224 2003-06-04  Paul Eggert  <eggert@twinsun.com>
20225
20226         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
20227         locale.h, localeconv.  This merges changes from coreutils.
20228
20229         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
20230         It can be removed after the next Autoconf is released.
20231         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
20232         needed.
20233
20234 2003-06-04  Paul Eggert  <eggert@twinsun.com>
20235
20236         * lib/mktime.c: Fix Debian bug 177940
20237         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
20238         (localtime_offset): Now long int, not time_t, because we want it
20239         to be guaranteed to be signed.  All uses changed.
20240         (__mktime_internal): If overflow would occur when adding offset,
20241         don't add it.
20242
20243         Merge 'human' changes from coreutils.  Rewrite to support
20244         locale-specific notations like thousands separators.
20245         * lib/human.c: Simplify authorship notice.
20246         Include human.h immediately after config.h.
20247         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
20248         <limits.h>: Do not include, since human.h does.
20249         (SIZE_MAX, UINTMAX_MAX): New macros.
20250         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
20251         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
20252         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
20253         (power_letter): Renamed from suffixes.
20254         (generate_suffix_backwards): Remove.
20255         (adjust_value): Now takes int style (because of human.h changes)
20256         and long double value (for greater precision on some platforms).
20257         (group_number): New function.
20258         (human_readable): Use it.  Use integer options, not enum.
20259         Put the options before the sizes in the arg list.
20260         Support all the new options.
20261         The old human_readable function has been removed;
20262         use inttostr.h instead.
20263         (human_readable, default_block_size, humblock):
20264         Use uintmax_t, not int, for block sizes.
20265         (human_readable_inexact, block_size_types): Remove.
20266         (block_size_opts): New constant.
20267         (human_options): Renamed from human_block_size, with new signature
20268         that allows block sizes up to UINTMAX_MAX.  All callers changed.
20269         * lib/human.h: Add copyright and authorship notice.
20270         Include <limits.h> and <stdbool.h> unconditionally.
20271         (PARAMS): Remove.  All uses removed.
20272         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
20273         (enum human_inexact_style): Remove tag; now a nameless enum.
20274         (human_floor, human_ceiling, human_round_to_even): Now have
20275         values 2, 0, 1 rather than -1, 1, 0.
20276         (human_group_digits, human_suppress_point_zero, human_autoscale,
20277         human_base_1024, human_SI, human_B): New constants.
20278         (human_readable_inexact, human_block_size): Remove.
20279         (human_readable): Size args are now uintmax_t, not int.
20280         (human_options): New decl.
20281
20282         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
20283         unnecessary now that we assume C89 or better.  This change
20284         imported from coreutils.
20285
20286         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
20287         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
20288         in the 2003-05-30 sync from glibc.
20289
20290         .h files should stand alone, but we shouldn't include <sys/types.h>
20291         if we can get away with just <stddef.h>.
20292
20293         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
20294         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
20295         rather than <sys/types.h>, as we merely need size_t.
20296         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
20297         to get size_t.
20298         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
20299         Include <stdio.h>, to get FILE.
20300         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
20301         memcasecmp.h has included <stddef.h> and all we need is size_t.
20302         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
20303         our interface, instead of including <sys/types.h>
20304
20305 2003-06-04  Paul Eggert  <eggert@twinsun.com>
20306
20307         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
20308         now, as glibc mktime is buggy on non-glibc systems.
20309
20310 2003-06-03  Karl Berry  <karl@gnu.org>
20311
20312         * config/config.sub: update from prep.
20313
20314 2003-06-02  Paul Eggert  <eggert@twinsun.com>
20315
20316         [from coreutils]
20317         Fix some minor time-related bugs with POSIX time arguments.
20318         Some valid time stamps were being rejected (notably -1, and
20319         time stamps before 1900 on 64-bit hosts).  And some invalid
20320         time stamps were being accepted, e.g. September 31.
20321
20322         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
20323         that we can return (time_t) -1 successfully.
20324         * lib/posixtm.c: Likewise.
20325         [HAVE_STDBOOL_H]: Include <stdbool.h>.
20326         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
20327         (t): Remove static var.
20328         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
20329         of static var.  All uses changed.
20330         (year): Do not reject years before 1900; they can occur with
20331         64-bit time_t.
20332         (posix_time_parse): Do not check for out-of-range components;
20333         that is now the caller's responsibility, since our checks were
20334         only approximations.
20335         (posixtime): Use mktime to check for out-of-range components,
20336         since it knows them exactly.
20337         If mktime returns (time_t) -1, check whether an error actually occurred
20338         by invoking localtime on -1.
20339         (main) [TEST_POSIXTIME]: Check for input data errors, and report
20340         posixtime failures better.
20341         Improve the test data (in comments only).
20342
20343 2003-06-02  Karl Berry  <karl@gnu.org>
20344
20345         * config/mkinstalldirs (version): new variable.
20346         (--version): new option.
20347         (usage): improve message.
20348
20349 2003-05-30  Karl Berry  <karl@gnu.org>
20350
20351         * lib/mktime.c: update from libc.
20352
20353 2003-05-30  Bruno Haible  <bruno@clisp.org>
20354
20355         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
20356         * config/config.rpath: Upgrade to gettext-0.12.1.
20357
20358 2003-05-30  Bruno Haible  <bruno@clisp.org>
20359
20360         * m4/gettext.m4: Upgrade to gettext-0.12.1.
20361         * m4/nls.m4: New file, from gettext-0.12.1.
20362         * m4/po.m4: New file, from gettext-0.12.1.
20363         * m4/progtest.m4: Upgrade to gettext-0.12.1.
20364
20365 2003-05-30  Bruno Haible  <bruno@clisp.org>
20366
20367         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
20368         * lib/localcharset.h: Likewise.
20369         * lib/localcharset.c: Likewise.
20370
20371 2003-05-29  Karl Berry  <karl@gnu.org>
20372
20373         * config/config.rpath: update from gettext.
20374
20375 2003-05-28  Paul Eggert  <eggert@twinsun.com>
20376
20377         Assume the headers required for C89 freestanding compilers.
20378         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
20379         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
20380         * m4/human.m4 (gl_HUMAN): Likewise.
20381         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
20382         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
20383         * m4/userspec.m4 (gl_USERSPEC): Likewise.
20384         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
20385         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
20386         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
20387
20388 2003-05-28  Paul Eggert  <eggert@twinsun.com>
20389
20390         Assume the headers required for C89 freestanding compilers.
20391         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
20392         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
20393         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
20394         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
20395         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
20396         define, since <limits.h> is guaranteed to do that.
20397         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
20398         * lib/exclude.c: Include <stdbool.h> unconditionally.
20399         * lib/tempname.c: Include <stddef.h> unconditionally.
20400         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
20401         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
20402         <stddef.h> does that.
20403         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
20404         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
20405         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
20406         needed.
20407         * lib/xstrtol.c: Likewise.
20408         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
20409         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
20410
20411         * lib/addext.c (addext): Use assignment rather than cast, to avoid
20412         warnings on some platforms.
20413
20414         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
20415         arbitrarily.
20416
20417 2003-05-26  Jim Meyering  <jim@meyering.net>
20418
20419         Merge in a change from coreutils:
20420         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
20421         that is guaranteed to be `no'.  Use `no_such_member' to indicate
20422         that condition, rather than `-1' which is slightly misleading.
20423         Change the name of the cache variable to have the gl_ prefix.
20424         Prompted by a patch from Richard Dawe for DJGPP.
20425
20426 2003-05-24  Karl Berry  <karl@gnu.org>
20427
20428         * config/config.guess: update from prep.
20429
20430 2003-05-22  Karl Berry  <karl@gnu.org>
20431
20432         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
20433
20434 2003-05-20  Karl Berry  <karl@gnu.org>
20435
20436         * config/config.guess: update from prep.
20437
20438 2003-05-18  Karl Berry  <karl@gnu.org>
20439
20440         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
20441         might actually be set by the user.
20442
20443         * config/depcomp, install-sh, mdate-sh: update from automake.
20444
20445 2003-05-17  Bruno Haible  <bruno@clisp.org>
20446
20447         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
20448         invalid expansion for AC_EGREP_CPP.
20449         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
20450         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
20451         Suggested by Akim Demaille <akim@epita.fr> in
20452         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
20453
20454 2003-05-12  Jim Meyering  <jim@meyering.net>
20455
20456         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
20457         the space-padded-by-default conversion specifiers, %e, %k, %l.
20458
20459 2003-05-12  Bruno Haible  <bruno@clisp.org>
20460
20461         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
20462         the string is longer than 4 KB.
20463
20464 2003-05-11  Karl Berry  <karl@gnu.org>
20465
20466         * config/config.{guess,sub}: update from prep.
20467
20468 2003-05-09  Bruno Haible  <bruno@clisp.org>
20469
20470         * modules/error: Add m4/strerror_r.m4 to file list.
20471
20472 2003-05-03  Bruno Haible  <bruno@clisp.org>
20473
20474         Upgrade to Unicode-4.0.
20475         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
20476         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
20477         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
20478         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
20479         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
20480         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
20481         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
20482         Change width of U+E0100..U+E01EF from 1 to 0.
20483
20484 2003-04-25  Jim Meyering  <jim@meyering.net>
20485
20486         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
20487         of type size_t, not int.
20488
20489 2003-04-25  Bruno Haible  <bruno@clisp.org>
20490
20491         * lib/copy-file.c: Include <stddef.h>, for size_t.
20492
20493 2003-04-21  Paul Eggert  <eggert@twinsun.com>
20494
20495         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
20496         code which expansion is under static control.  Patch imported from
20497         Akim Demaille's patch to Bison; see
20498         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
20499
20500 2003-04-14  Bruno Haible  <bruno@clisp.org>
20501
20502         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
20503
20504 2003-04-11  Jim Meyering  <jim@meyering.net>
20505
20506         Merge changes from Coreutils.
20507
20508         2003-03-22  Jim Meyering  <jim@meyering.net>
20509
20510         * lib/strftime.c (widen): Cast alloca return value to proper type.
20511
20512         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
20513
20514         From GNU libc.
20515         * lib/strftime.c (my_strftime): Handle very large width
20516         specifications for numeric values correctly.  Improve checks for
20517         overflow.
20518
20519         2003-01-19  Jim Meyering  <jim@meyering.net>
20520
20521         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
20522         definitions.
20523         (nl_get_alt_digit) [! defined my_strftime]: Define.
20524         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
20525         _nl_get_alt_digit and _nl_get_walt_digit.
20526
20527         * lib/strftime.c (my_strftime): Merge in locale-related changes from
20528         libc. These changes have no effect outside of _LIBC.
20529
20530 2003-04-10  Bruno Haible  <bruno@clisp.org>
20531
20532         * modules/findprog: New file.
20533         * MODULES.html.sh (func_all_modules): Add it.
20534
20535 2003-04-10  Bruno Haible  <bruno@clisp.org>
20536
20537         * m4/findprog.m4: New file.
20538         * m4/eaccess.m4: New file.
20539
20540 2003-04-10  Bruno Haible  <bruno@clisp.org>
20541
20542         * lib/findprog.h: New file, from GNU gettext.
20543         * lib/findprog.c: New file, from GNU gettext.
20544
20545 2003-04-05  Jim Meyering  <jim@meyering.net>
20546
20547         Merge changes from Coreutils.
20548
20549         * lib/exclude.h (PARAMS): Remove definition and uses.
20550         * lib/exclude.c: Remove uses of `PARAMS'.
20551
20552         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
20553         Add test-cases for DOS filenames. Declare program_name.
20554         (main): Set up program_name.  Patch by Rich Dawe.
20555
20556         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
20557         error from mntctl.
20558         Use mntctl's return value to drive the entry-processing loop, since
20559         we can't rely on the value of the vmt_length member in the last
20560         entry.  On some systems doing so could result in exhausting
20561         virtual memory.  Based in part on a patch from Mike Jetzer.
20562
20563 2003-04-04  Bruno Haible  <bruno@clisp.org>
20564
20565         * modules/linebreak: New file.
20566         * MODULES.html.sh (func_all_modules): Add it.
20567
20568 2003-04-04  Bruno Haible  <bruno@clisp.org>
20569
20570         * m4/linebreak.m4: New file.
20571
20572 2003-04-04  Bruno Haible  <bruno@clisp.org>
20573
20574         * lib/linebreak.h: New file, from GNU gettext.
20575         * lib/linebreak.c: New file, from GNU gettext with slight
20576         modifications.
20577         * lib/lbrkprop.h: New file, from GNU gettext.
20578
20579 2003-04-03  Bruno Haible  <bruno@clisp.org>
20580
20581         * modules/utf8-ucs4: New file.
20582         * modules/utf16-ucs4: New file.
20583         * modules/ucs4-utf8: New file.
20584         * modules/ucs4-utf16: New file.
20585         * MODULES.html.sh (func_all_modules): Add them.
20586
20587 2003-04-03  Bruno Haible  <bruno@clisp.org>
20588
20589         * m4/utf-ucs4.m4: New file.
20590         * m4/ucs4-utf.m4: New file.
20591
20592 2003-04-03  Bruno Haible  <bruno@clisp.org>
20593
20594         * lib/utf8-ucs4.h: New file, from GNU gettext.
20595         * lib/utf16-ucs4.h: New file, from GNU gettext.
20596         * lib/ucs4-utf8.h: New file, from GNU gettext.
20597         * lib/ucs4-utf16.h: New file, from GNU gettext.
20598
20599 2003-04-02  Bruno Haible  <bruno@clisp.org>
20600
20601         * modules/binary-io: New file.
20602         * MODULES.html.sh (func_all_modules): Add it.
20603
20604 2003-04-02  Bruno Haible  <bruno@clisp.org>
20605
20606         * lib/binary-io.h: New file, from GNU gettext.
20607
20608 2003-04-01  Bruno Haible  <bruno@clisp.org>
20609
20610         * modules/pathname: New file.
20611         * MODULES.html.sh (func_all_modules): Add it.
20612
20613 2003-04-01  Bruno Haible  <bruno@clisp.org>
20614
20615         * lib/pathname.h: New file, from GNU gettext.
20616         * lib/concatpath.c: New file, from GNU gettext.
20617
20618 2003-03-30  Bruno Haible  <bruno@clisp.org>
20619
20620         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
20621
20622 2003-03-30  Bruno Haible  <bruno@clisp.org>
20623
20624         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
20625         function chown() doesn't exist.
20626
20627 2003-03-28  Bruno Haible  <bruno@clisp.org>
20628
20629         * modules/copy-file: New file.
20630         * MODULES.html.sh (func_all_modules): Add it.
20631
20632 2003-03-28  Bruno Haible  <bruno@clisp.org>
20633
20634         * m4/copy-file.m4: New file.
20635
20636 2003-03-28  Bruno Haible  <bruno@clisp.org>
20637
20638         * lib/copy-file.h: New file, from GNU gettext.
20639         * lib/copy-file.c: New file, from GNU gettext.
20640
20641 2003-03-18  Jim Meyering  <jim@meyering.net>
20642
20643         * lib/quote.c (quote_n): Fix typo in comment.
20644
20645 2003-03-18  Bruno Haible  <bruno@clisp.org>
20646
20647         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
20648         checking.
20649         * m4/onceonly_2_57.m4: Likewise.
20650
20651 2003-03-17  Bruno Haible  <bruno@clisp.org>
20652
20653         * m4/onceonly.m4: Require autoconf 2.54 or newer.
20654         (m4_quote): Remove macro.
20655         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
20656
20657 2003-03-14  Jim Meyering  <jim@meyering.net>
20658
20659         Merge changes from Coreutils.
20660         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
20661         to be const, in order to avoid warnings.
20662         (obstack_room): Likewise.
20663         (obstack_empty_p): Likewise.
20664
20665 2003-03-14  Bruno Haible  <bruno@clisp.org>
20666
20667         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
20668         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
20669
20670 2003-03-13  Paul Eggert  <eggert@twinsun.com>
20671
20672         Merge changes from Bison.
20673         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
20674         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
20675         when compiling Bison 1.875's `bitset bset = obstack_alloc
20676         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
20677         * lib/hash.c: Include <stdbool.h> unconditionally.
20678
20679 2003-03-13  Paul Eggert  <eggert@twinsun.com>
20680
20681         * m4/onceonly.m4 (m4_quote): New macro.
20682         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
20683         Quote AC_FOREACH variable-expansions properly.
20684
20685 2003-03-13  Paul Eggert  <eggert@twinsun.com>
20686
20687         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
20688
20689 2003-03-09  Paul Eggert  <eggert@twinsun.com>
20690
20691         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
20692         Reported by Bruce Becker; see:
20693         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
20694
20695 2003-03-03  Paul Eggert  <eggert@twinsun.com>
20696             Bruno Haible  <bruno@clisp.org>
20697
20698         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
20699         Reported by John Hughes, see
20700         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
20701
20702 2003-02-20  Bruno Haible  <bruno@clisp.org>
20703
20704         * MODULES.html.sh (func_all_modules): Add poll.
20705
20706 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
20707
20708         * modules/poll: New file.
20709
20710 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
20711
20712         * lib/poll_.h: New file.
20713         * lib/poll.c: New file.
20714
20715 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
20716
20717         * m4/poll.m4: New file.
20718
20719 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
20720
20721         * modules/mathl: New file.
20722
20723 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
20724
20725         * lib/mathl.h: New file.
20726         * lib/acosl.c: New file.
20727         * lib/asinl.c: New file.
20728         * lib/atanl.c: New file.
20729         * lib/ceill.c: New file.
20730         * lib/cosl.c: New file.
20731         * lib/expl.c: New file.
20732         * lib/floorl.c: New file.
20733         * lib/frexpl.c: New file.
20734         * lib/ldexpl.c: New file.
20735         * lib/logl.c: New file.
20736         * lib/sincosl.c: New file.
20737         * lib/sinl.c: New file.
20738         * lib/sqrtl.c: New file.
20739         * lib/tanl.c: New file.
20740         * lib/trigl.c: New file.
20741         * lib/trigl.h: New file.
20742
20743 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
20744
20745         * m4/mathl.m4: New file.
20746
20747 2003-02-18  Bruno Haible  <bruno@clisp.org>
20748
20749         * MODULES.html.sh (func_all_modules): Add mathl.
20750
20751 2003-02-17  Bruno Haible  <bruno@clisp.org>
20752
20753         * modules/mkdtemp: New module.
20754         * MODULES.html.sh (func_all_modules): Add it.
20755
20756 2003-02-17  Bruno Haible  <bruno@clisp.org>
20757
20758         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
20759
20760 2003-02-17  Bruno Haible  <bruno@clisp.org>
20761
20762         * lib/mkdtemp.h: New file, from GNU gettext.
20763         * lib/mkdtemp.c: New file, from GNU gettext.
20764
20765 2003-02-02  Jim Meyering  <jim@meyering.net>
20766
20767         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
20768         e.g. glibc-2.2.93.
20769
20770 2003-01-31  Bruno Haible  <bruno@clisp.org>
20771
20772         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
20773         'rpl_rename'.
20774         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
20775         'rpl_strnlen'.
20776         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
20777         'rpl_strtod'.
20778         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
20779         'rpl_utime'.
20780
20781 2003-01-31  Bruno Haible  <bruno@clisp.org>
20782
20783         * lib/rename.c: #undef rename before defining rpl_rename.
20784         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
20785
20786 2003-01-30  Bruno Haible  <bruno@clisp.org>
20787
20788         * modules/vasnprintf, modules/vasprintf: New modules.
20789         * MODULES.html.sh (func_all_modules): Add them.
20790
20791 2003-01-30  Bruno Haible  <bruno@clisp.org>
20792
20793         * m4/signed.m4: New file, from GNU gettext.
20794         * m4/longdouble.m4: New file, from GNU gettext.
20795         * m4/wchar_t.m4: New file, from GNU gettext.
20796         * m4/wint_t.m4: New file, from GNU gettext.
20797         * m4/vasnprintf.m4: New file.
20798         * m4/vasprintf.m4: New file.
20799
20800 2003-01-30  Bruno Haible  <bruno@clisp.org>
20801
20802         * lib/printf-args.h: New file, from GNU gettext.
20803         * lib/printf-args.c: New file, from GNU gettext.
20804         * lib/printf-parse.h: New file, from GNU gettext.
20805         * lib/printf-parse.c: New file, from GNU gettext.
20806         * lib/vasnprintf.h: New file, from GNU gettext.
20807         * lib/vasnprintf.c: New file, from GNU gettext.
20808         * lib/asnprintf.c: New file, from GNU gettext.
20809         * lib/vasprintf.h: New file, from GNU gettext with modifications.
20810         * lib/vasprintf.c: New file, from GNU gettext.
20811         * lib/asprintf.c: New file, from GNU gettext.
20812
20813 2003-01-29  Bruno Haible  <bruno@clisp.org>
20814
20815         * modules/stpncpy: New module.
20816         * MODULES.html.sh (func_all_modules): Add it.
20817
20818 2003-01-29  Bruno Haible  <bruno@clisp.org>
20819
20820         * m4/stpncpy.m4: New file.
20821
20822 2003-01-29  Bruno Haible  <bruno@clisp.org>
20823
20824         * lib/stpncpy.h: New file, from GNU gettext with modifications.
20825         * lib/stpncpy.c: New file, from GNU gettext with modifications.
20826
20827 2003-01-28  Bruno Haible  <bruno@clisp.org>
20828
20829         * modules/c-ctype: New module.
20830         * MODULES.html.sh (func_all_modules): Add it.
20831
20832 2003-01-28  Bruno Haible  <bruno@clisp.org>
20833
20834         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
20835         Paul Eggert.
20836         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
20837         Paul Eggert.
20838
20839 2003-01-27  Bruno Haible  <bruno@clisp.org>
20840
20841         * modules/xsetenv: New module.
20842         * MODULES.html.sh (func_all_modules): Add it.
20843
20844 2003-01-27  Bruno Haible  <bruno@clisp.org>
20845
20846         * lib/xsetenv.h: New file, from GNU gettext.
20847         * lib/xsetenv.c: New file, from GNU gettext.
20848
20849 2003-01-23  Jim Meyering  <jim@meyering.net>
20850
20851         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
20852         from working on systems without dirfd (at least Irix and OSF1/Tru64).
20853
20854 2003-01-23  Bruno Haible  <bruno@clisp.org>
20855
20856         * modules/minmax: New module.
20857         * MODULES.html.sh (func_all_modules): Add it.
20858
20859 2003-01-23  Bruno Haible  <bruno@clisp.org>
20860
20861         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
20862         Eggert.
20863
20864 2003-01-22  Bruno Haible  <bruno@clisp.org>
20865
20866         * modules/exit: New module.
20867         * MODULES.html.sh (func_all_modules): Add it.
20868
20869 2003-01-22  Bruno Haible  <bruno@clisp.org>
20870
20871         * lib/exit.h: New file, from GNU gettext.
20872
20873 2003-01-19  Bruno Haible  <bruno@clisp.org>
20874
20875         * gnulib-tool: Recognize option --extract-maintainer.
20876         (func_get_maintainer): New function.
20877         * modules/*: Add Maintainer entry.
20878
20879 2003-01-16  Jim Meyering  <jim@meyering.net>
20880
20881         * m4/regex.m4: The `regex' struct is both input and output.
20882         Initialize it before each use.  Patch by Tim Waugh.
20883
20884 2003-01-16  Bruno Haible  <bruno@clisp.org>
20885
20886         * MODULES.html.sh: Add a table of contents. Add the module name as
20887         leftmost column. Add hyperlinks.
20888
20889 2003-01-15  Bruno Haible  <bruno@clisp.org>
20890
20891         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
20892
20893 2003-01-15  Bruno Haible  <bruno@clisp.org>
20894
20895         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
20896         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
20897         suffix.
20898
20899 2003-01-15  Bruno Haible  <bruno@clisp.org>
20900
20901         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
20902
20903 2003-01-15  Bruno Haible  <bruno@clisp.org>
20904
20905         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
20906         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
20907
20908 2003-01-14  Jim Meyering  <jim@meyering.net>
20909
20910         * lib/same.c (same_name): Tweak a comment.
20911
20912 2003-01-14  Bruno Haible  <bruno@clisp.org>
20913
20914         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
20915         when a string comparison is sufficient.
20916
20917 2003-01-14  Bruno Haible  <bruno@clisp.org>
20918
20919         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
20920         'unsigned int'.
20921
20922 2003-01-14  Bruno Haible  <bruno@clisp.org>
20923
20924         * lib/hash-pjw.c: Add comment about low quality of this function.
20925
20926 2003-01-13  Bruno Haible  <bruno@clisp.org>
20927
20928         * modules/stpcpy: Distribute lib/stpcpy.h.
20929         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
20930
20931 2003-01-13  Bruno Haible  <bruno@clisp.org>
20932
20933         * modules/*: Add a description.
20934         * modules/strpbrk: Fix Makefile.am snippet.
20935         * modules/strtoimax: Fix dependencies.
20936         * modules/strtoumax: Likewise.
20937
20938 2003-01-13  Bruno Haible  <bruno@clisp.org>
20939
20940         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
20941         * modules/alloca (Makefile.am): All object files depend on alloca.h.
20942         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
20943
20944 2003-01-13  Bruno Haible  <bruno@clisp.org>
20945
20946         * gnulib-tool (func_create_testdir): Store config/* files in the main
20947         directory.
20948         * config.rpath: Move to ...
20949         * config/config.rpath: ... here.
20950         * modules/gettext: Contains config/config.rpath, not config.rpath.
20951         * modules/iconv: Likewise.
20952
20953 2003-01-12  Paul Eggert  <eggert@twinsun.com>
20954
20955         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
20956         to avoid collisions with libcurses and libreadline.
20957
20958         * m4/getstr.m4: Remove.
20959         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
20960
20961 2003-01-12  Paul Eggert  <eggert@twinsun.com>
20962
20963         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
20964         to avoid collisions with libcurses and libreadline.
20965
20966         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
20967         * lib/getstr.h, getstr.c: Remove.
20968         * lib/getline.c: Include "getline.h", to check interface.
20969         Move body of old getstr.c here: this defines MIN_CHUNK and
20970         declares getdelim2, which is renamed from getstr.
20971         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
20972
20973         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
20974         All uses changed.
20975         * lib/linebuffer.h: Likewise.
20976         (readline): Remove backward-compatibility macro.
20977
20978 2003-01-12  Paul Eggert  <eggert@twinsun.com>
20979
20980         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
20981         to avoid collisions with libcurses and libreadline.
20982         * getstr: Remove.
20983         * MODULES.html.sh: Remove getstr.
20984         * modules/getline: Depend on unlocked-io, not getstr.
20985
20986 2003-01-12  Jim Meyering  <jim@meyering.net>
20987
20988         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
20989
20990 2003-01-10  Bruno Haible  <bruno@clisp.org>
20991
20992         * modules/alloca: Change Makefile.am requirements. Simplify Include
20993         requirements. Add lib/alloca_.h to file list.
20994
20995 2003-01-10  Bruno Haible  <bruno@clisp.org>
20996
20997         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
20998
20999 2003-01-10  Bruno Haible  <bruno@clisp.org>
21000
21001         * lib/alloca_.h: New file.
21002         * lib/getdate.y: Unconditionally include alloca.h.
21003         * lib/makepath.c: Likewise.
21004         * lib/setenv.c: Likewise.
21005         * lib/userspec.c: Likewise.
21006
21007 2003-01-09  Karl Berry  <karl@gnu.org>
21008
21009         * MODULES.html.sh: include `dirname $0` in PATH, to find
21010         gnulib-tool.
21011
21012 2003-01-09  Bruno Haible  <bruno@clisp.org>
21013
21014         * modules/stdbool: Change configure.ac, Makefile.am requirements.
21015         Simplify Include requirements. Add lib/stdbool.h.in to file list.
21016
21017 2003-01-09  Bruno Haible  <bruno@clisp.org>
21018
21019         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
21020
21021 2003-01-09  Bruno Haible  <bruno@clisp.org>
21022
21023         * lib/stdbool.h.in: New file.
21024
21025 2003-01-09  Bruno Haible  <bruno@clisp.org>
21026
21027         * gnulib-tool (func_all_modules): Ignore files ending in ~.
21028         * MODULES.html.sh: Likewise.
21029
21030 2003-01-08  Jim Meyering  <jim@meyering.net>
21031
21032         * lib/full-write.c: Undefine and define-away `const' after inclusion
21033         of errno.h, not before.  Suggestion from Bruno Haible.
21034
21035 2003-01-08  Bruno Haible  <bruno@clisp.org>
21036
21037         * modules/full-read: Depend on full-write.
21038
21039 2003-01-08  Bruno Haible  <bruno@clisp.org>
21040
21041         * lib/safe-read.c: Include specification header first, to ensure its
21042         selfcontainedness.
21043         * lib/full-write.c: Likewise.
21044
21045 2003-01-07  Jim Meyering  <jim@meyering.net>
21046
21047         * lib/full-write.c: Rework so that it may serve to define full_read,
21048         too.
21049         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
21050
21051 2003-01-07  Bruno Haible  <bruno@clisp.org>
21052
21053         * lib/strtoimax.c: Include <stdint.h> as an alternative to
21054         <inttypes.h>.
21055         * lib/xstrtol.h: Likewise.
21056         * lib/xstrtoimax.c: Likewise.
21057         * lib/xstrtoumax.c: Likewise.
21058         * lib/human.h: Likewise.
21059
21060         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
21061         on systems that have <inttypes.h> but not <stdint.h>.
21062
21063 2003-01-07  Bruno Haible  <bruno@clisp.org>
21064
21065         * MODULES.html.sh: Add copyright notice.
21066         (missed_files): Omit CVS directory entries.
21067         (func_module): Make it work with sed-3.02.
21068         * MODULES.txt: Remove file.
21069
21070 2003-01-06  Jim Meyering  <jim@meyering.net>
21071
21072         * lib/version-etc.c: Update year in translatable copyright string.
21073
21074 2003-01-03  Karl Berry  <karl@gnu.org>
21075
21076         * config/config.{guess,sub}: update from prep.
21077
21078 2003-01-02  Karl Berry  <karl@gnu.org>
21079
21080         * doc/COPYING.DOC: belatedly updated to 1.2.
21081
21082 2003-01-01  Karl Berry  <karl@gnu.org>
21083
21084         * gnulib-tool (func_verify_module): report module name $module in
21085         error message, not $1.
21086         * gnulib-tool (create-testdir): don't complain if destdir couldn't
21087         be created, only if it doesn't exist.
21088         * gnulib-tool (last_checkin_date): don't expand the $Date here.
21089
21090 2002-12-31  Paul Eggert  <eggert@twinsun.com>
21091
21092         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
21093
21094 2002-12-31  Paul Eggert  <eggert@twinsun.com>
21095
21096         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
21097         memcmp if strcoll doesn't work.
21098
21099 2002-12-31  Bruno Haible  <bruno@clisp.org>
21100
21101         * lib/utime.c (utime_null): No need to call ftruncate if the file was
21102         nonempty.
21103
21104 2002-12-31  Bruno Haible  <bruno@clisp.org>
21105
21106         * lib/memcoll.c (STRCOLL): New macro.
21107         (memcoll): Use it.
21108
21109 2002-12-31  Bruno Haible  <bruno@clisp.org>
21110
21111         * lib/localcharset.h: New file.
21112         * lib/localcharset.c: Include it.
21113         * lib/unicodeio.c: Likewise.
21114
21115 2002-12-31  Bruno Haible  <bruno@clisp.org>
21116
21117         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
21118         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
21119
21120 2002-12-31  Bruno Haible  <bruno@clisp.org>
21121
21122         * lib/getline.h: Include <stddef.h>, for size_t.
21123
21124         * lib/unicodeio.h: Include <stddef.h>, for size_t.
21125         * lib/unicodeio.c: Don't include <stddef.h>.
21126
21127 2002-12-31  Bruno Haible  <bruno@clisp.org>
21128
21129         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
21130         HAVE_TM_ZONE.
21131
21132 2002-12-24  Karl Berry  <karl@gnu.org>
21133
21134         * config/config.guess: update from prep.
21135
21136 2002-12-24  Bruno Haible  <bruno@clisp.org>
21137
21138         General infrasructure.
21139         * m4/README: Rewritten.
21140         * m4/onceonly.m4: New file.
21141         * m4/onceonly_2_57.m4: New file.
21142
21143         Module atexit.
21144         * m4/atexit.m4: New file.
21145
21146         Module strtod.
21147         * m4/strtod.m4: New file.
21148
21149         Module strtol.
21150         * m4/strtol.m4: New file.
21151
21152         Module strtoul.
21153         * m4/strtoul.m4: New file.
21154
21155         Module memchr.
21156         * m4/memchr.m4: New file.
21157
21158         Module memcmp.
21159         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
21160         (jm_FUNC_MEMCMP): Invoke it.
21161
21162         Module memcpy.
21163         * m4/memcpy.m4: New file.
21164
21165         Module memmove.
21166         * m4/memmove.m4: New file.
21167
21168         Module memset.
21169         * m4/memset.m4: New file.
21170
21171         Module strcspn.
21172         * m4/strcspn.m4: New file.
21173
21174         Module strpbrk.
21175         * m4/strpbrk.m4: New file.
21176
21177         Module strstr.
21178         * m4/strstr.m4: New file.
21179
21180         Module strerror.
21181         * m4/strerror.m4: New file.
21182
21183         Module mktime.
21184         * m4/mktime.m4: Renamed from jm-mktime.m4.
21185         (gl_PREREQ_MKTIME): New macro.
21186         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
21187
21188         Module malloc.
21189         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
21190         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
21191         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
21192
21193         Module realloc.
21194         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
21195         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
21196         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
21197
21198         Module strftime.
21199         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
21200         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
21201         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
21202         gl_TM_GMTOFF.
21203         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
21204
21205         Module xalloc.
21206         * m4/xalloc.m4: New file.
21207
21208         Module alloca.
21209         * m4/alloca.m4: New file.
21210
21211         Module putenv.
21212         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
21213         (jm_FUNC_PUTENV): Invoke it.
21214
21215         Module setenv.
21216         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
21217         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
21218         when invoked twice.
21219         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
21220         gt_FUNC_SETENV.
21221
21222         Module memrchr.
21223         * m4/memrchr.m4: New file.
21224
21225         Module stpcpy.
21226         * m4/stpcpy.m4: New file.
21227
21228         Module strcase.
21229         * m4/strcase.m4: New file.
21230
21231         Module strdup.
21232         * m4/strdup.m4: New file.
21233
21234         Module strnlen.
21235         * m4/strnlen.m4: New file.
21236
21237         Module strndup.
21238         * m4/strndup.m4: New file.
21239
21240         Module xstrtod.
21241         * m4/xstrtod.m4: New file.
21242
21243         Module xstrtol.
21244         * m4/xstrtol.m4: New file.
21245
21246         Module getdate.
21247         * m4/getdate.m4: New file.
21248
21249         Module unlocked-io.
21250         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
21251         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
21252         * m4/jm-glibc-io.m4n: Remove file.
21253
21254         Module long-options.
21255         * m4/long-options.m4: New file.
21256
21257         Module md5.
21258         * m4/md5.m4: New file.
21259
21260         Module sha.
21261         * m4/sha.m4: New file.
21262
21263         Module getstr.
21264         * m4/getstr.m4: New file.
21265
21266         Module getline.
21267         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
21268         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
21269         <sys/types.h>, for size_t. Use the function name gnu_getline, not
21270         simply getline. Infoke gl_PREREQ_GETLINE.
21271
21272         Module obstack.
21273         * m4/obstack.m4: New file.
21274
21275         Module hash.
21276         * m4/hash.m4: New file.
21277
21278         Module readtokens.
21279         * m4/readtokens.m4: New file.
21280
21281         Module strverscmp.
21282         * m4/strverscmp.m4: New file.
21283
21284         Module stdbool.
21285         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
21286         OSF/1.
21287
21288         Module strtoll.
21289         * m4/strtoll.m4: New file.
21290
21291         Module strtoull.
21292         * m4/strtoull.m4: New file.
21293
21294         Module strtoimax.
21295         * m4/strtoimax.m4: New file.
21296
21297         Module strtoumax.
21298         * m4/strtoumax.m4: New file.
21299
21300         Module xstrtoimax.
21301         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
21302         jm_AC_PREREQ_XSTRTOIMAX.
21303         Moved the strtol prerequisites to strtol.m4.
21304         Moved the strtoll prerequisites to strtoll.m4.
21305         Moved the strtoimax prerequisites to strtoimax.m4.
21306
21307         Module xstrtoumax.
21308         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
21309         jm_AC_PREREQ_XSTRTOUMAX.
21310         Moved the strtoul prerequisites to strtoul.m4.
21311         Moved the strtoull prerequisites to strtoull.m4.
21312         Moved the strtoumax prerequisites to strtoumax.m4.
21313
21314         Module chown.
21315         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
21316         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
21317
21318         Module dup2.
21319         * m4/dup2.m4: New file.
21320
21321         Module ftruncate.
21322         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
21323         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
21324
21325         Module getgroups.
21326         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
21327         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
21328
21329         Module gettimeofday.
21330         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
21331         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
21332         gl_PREREQ_GETTIMEOFDAY.
21333
21334         Module mkdir.
21335         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
21336         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
21337
21338         Module mkstemp.
21339         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
21340         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
21341         jm_AC_TYPE_UINTMAX_T.
21342         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
21343
21344         Module stat.
21345         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
21346         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
21347
21348         Module lstat.
21349         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
21350         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
21351
21352         Module timespec.
21353         * m4/timespec.m4 (gl_TIMESPEC): New macro.
21354         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
21355         * m4/st_mtim.m4: Indentation.
21356
21357         Module nanosleep.
21358         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
21359         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
21360         gl_PREREQ_NANOSLEEP.
21361
21362         Module regex.
21363         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
21364         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
21365         (gl_REGEX): New macro.
21366
21367         Module rename.
21368         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
21369         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
21370
21371         Module rmdir.
21372         * m4/rmdir.m4: New file.
21373
21374         Module utime.
21375         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
21376         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
21377         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
21378
21379         Module dirname.
21380         * m4/dirname.m4: New file.
21381
21382         Module getopt.
21383         * m4/getopt.m4: New file.
21384
21385         Module unistd-safer.
21386         * m4/unistd-safer.m4: New file.
21387
21388         Module fnmatch.
21389         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
21390         declaration.
21391         (gl_PREREQ_FNMATCH_EXTRA): New macro.
21392         (gl_FUNC_FNMATCH_POSIX): New macro.
21393         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
21394         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
21395         simply fnmatch.
21396
21397         Module exclude.
21398         * m4/exclude.m4: New file.
21399
21400         Module human.
21401         * m4/human.m4: New file.
21402
21403         Module acl.
21404         * m4/acl.m4: Nop.
21405
21406         Module backupfile.
21407         * m4/backupfile.m4: New file.
21408         * m4/d-ino.m4: Indentation.
21409
21410         Module fsusage.
21411         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
21412         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
21413         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
21414
21415         Module dirfd.
21416         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
21417         requirements.
21418
21419         Module euidaccess.
21420         * m4/euidaccess.m4: New file.
21421
21422         Module file-type.
21423         * m4/file-type.m4: New file.
21424
21425         Module fileblocks.
21426         * m4/fileblocks.m4: New file.
21427
21428         Module filemode.
21429         * m4/filemode.m4: New file.
21430
21431         Module isdir.
21432         * m4/isdir.m4: New file.
21433
21434         Module lchown.
21435         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
21436         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
21437
21438         Module makepath.
21439         * m4/makepath.m4: New file.
21440
21441         Module modechange.
21442         * m4/modechange.m4: New file.
21443
21444         Module mountlist.
21445         * m4/mountlist.m4: New file.
21446         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
21447         Indentation.
21448
21449         Module path-concat.
21450         * m4/path-concat.m4: New file.
21451
21452         Module pathmax.
21453         * m4/pathmax.m4: New file.
21454
21455         Module same.
21456         * m4/same.m4: New file.
21457
21458         Module save-cwd.
21459         * m4/save-cwd.m4: New file.
21460
21461         Module savedir.
21462         * m4/savedir.m4: New file.
21463
21464         Module xgetcwd.
21465         * m4/xgetcwd.m4: New file.
21466         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
21467
21468         Module xreadlink.
21469         * m4/xreadlink.m4: New file.
21470
21471         Module safe-read.
21472         * m4/safe-read.m4: New file.
21473
21474         Module safe-write.
21475         * m4/safe-write.m4: New file.
21476
21477         Module closeout.
21478         * m4/closeout.m4: New file.
21479
21480         Module stdio-safer.
21481         * m4/stdio-safer.m4: New file.
21482
21483         Module getpass.
21484         * m4/getpass.m4: New file.
21485
21486         Module getugroups.
21487         * m4/getugroups.m4: New file.
21488
21489         Module group-member.
21490         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
21491         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
21492
21493         Module idcache.
21494         * m4/idcache.m4: New file.
21495
21496         Module userspec.
21497         * m4/userspec.m4: New file.
21498
21499         Module gettime.
21500         * m4/clock_time.m4: New file.
21501         * m4/gettime.m4: New file.
21502
21503         Module settime.
21504         * m4/settime.m4: New file.
21505
21506         Module posixtm.
21507         * m4/posixtm.m4: New file.
21508
21509         Module gethostname.
21510         * m4/gethostname.m4: New file.
21511
21512         Module canon-host.
21513         * m4/canon-host.m4: New file.
21514
21515         Module gettext.
21516         * m4/codeset.m4: New file, from gettext-0.11.5.
21517         * m4/gettext.m4: New file, from gettext-0.11.5.
21518         * m4/glibc21.m4: New file, from gettext-0.11.5.
21519         * m4/iconv.m4: New file, from gettext-0.11.5.
21520         * m4/intdiv0.m4: New file, from gettext-0.11.5.
21521         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
21522         * m4/inttypes.m4: New file, from gettext-0.11.5.
21523         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
21524         * m4/isc-posix.m4: New file, from gettext-0.11.5.
21525         * m4/lcmessage.m4: New file, from gettext-0.11.5.
21526         * m4/lib-ld.m4: New file, from gettext-0.11.5.
21527         * m4/lib-link.m4: New file, from gettext-0.11.5.
21528         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
21529         * m4/progtest.m4: New file, from gettext-0.11.5.
21530         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
21531         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
21532         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
21533
21534         Module localcharset.
21535         * m4/localcharset.m4: New file.
21536
21537         Module hard-locale.
21538         * m4/hard-locale.m4: New file.
21539
21540         Module mbswidth.
21541         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
21542         onceonly macros.
21543         * m4/mbrtowc.m4: Add comment.
21544
21545         Module memcasecmp.
21546         * m4/memcasecmp.m4: New file.
21547
21548         Module memcoll.
21549         * m4/memcoll.m4: New file.
21550
21551         Module unicodeio.
21552         * m4/unicodeio.m4: New file.
21553
21554         Module rpmatch.
21555         * m4/rpmatch.m4: New file.
21556
21557         Module yesno.
21558         * m4/yesno.m4: New file.
21559
21560         Module exitfail.
21561         * m4/exitfail.m4: New file.
21562
21563         Module c-stack.
21564         * m4/c-stack.m4 (gl_C_STACK): New macro.
21565         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
21566
21567         Module error.
21568         * m4/error.m4 (gl_ERROR): New macro.
21569         (jm_PREREQ_ERROR): Use onceonly macros.
21570
21571         Module fatal.
21572         * m4/fatal.m4: New file.
21573
21574         Module getloadavg.
21575         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
21576         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
21577
21578         Module getpagesize.
21579         * m4/getpagesize.m4: New file.
21580
21581         Module getusershell.
21582         * m4/getusershell.m4: New file.
21583
21584         Module physmem.
21585         * m4/physmem.m4: New file.
21586
21587         Module posixver.
21588         * m4/posixver.m4: New file.
21589
21590         Module quotearg.
21591         * m4/quotearg.m4: New file.
21592
21593         Module quote.
21594         * m4/quote.m4: New file.
21595
21596         Module readutmp.
21597         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
21598
21599         Module sig2str.
21600         * m4/sig2str.m4: New file.
21601
21602         Other.
21603         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
21604         ulonglong.m4.
21605         * m4/intmax_t.m4: New file.
21606         * m4/d-type.m4: Indentation.
21607         * m4/jm-macros.m4: Update.
21608         * m4/prereq.m4 (jm_PREREQ): Update.
21609         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
21610         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
21611         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
21612         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
21613         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
21614         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
21615         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
21616         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
21617         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
21618         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
21619         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
21620         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
21621         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
21622         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
21623         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
21624         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
21625         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
21626         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
21627         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
21628
21629 2002-12-24  Bruno Haible  <bruno@clisp.org>
21630
21631         * MODULES.txt: Update according to m4/ changes.
21632
21633         Module gettext.
21634         * config.rpath: New file, from gettext-0.11.5.
21635
21636         * modules/*: New module descriptions.
21637         * gnulib-tool: New file.
21638         * MODULES.html.sh: New file.
21639
21640 2002-12-21  Karl Berry  <karl@gnu.org>
21641
21642         * doc/fdl.texi: update to version 1.2.
21643
21644 2002-12-19  Karl Berry  <karl@gnu.org>
21645
21646         * config/config.guess: update from prep.
21647
21648 2002-12-18  Bruno Haible  <bruno@clisp.org>
21649
21650         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
21651         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
21652
21653 2002-12-17  Bruno Haible  <bruno@clisp.org>
21654
21655         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
21656         stdlib.h, string.h.
21657
21658 2002-12-17  Bruno Haible  <bruno@clisp.org>
21659
21660         * lib/canon-host.c (strdup): Remove unused declaration.
21661
21662         * lib/fsusage.c: Include full_read.h.
21663         (get_fs_usage): Use full_read instead of safe_read.
21664
21665         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
21666
21667 2002-12-12  Karl Berry  <karl@gnu.org>
21668
21669         * config/config.guess: update from prep.
21670
21671 2002-12-11  Bruno Haible  <bruno@clisp.org>
21672
21673         * m4/setenv.m4: New file, from gettext-0.11.5.
21674
21675 2002-12-11  Bruno Haible  <bruno@clisp.org>
21676
21677         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
21678         not unsetenv().
21679         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
21680         modifications:
21681
21682         2002-12-11  Bruno Haible  <bruno@clisp.org>
21683
21684                 * setenv.c (alloca): Fall back to malloc.
21685                 (freea): New macro.
21686                 (setenv): Use freea() to free memory allocated with alloca().
21687
21688         2002-11-13  Bruno Haible  <bruno@clisp.org>
21689
21690                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
21691                 function declarations.
21692                 * unsetenv.c (unsetenv): Likewise.
21693
21694         2002-03-04  Bruno Haible  <bruno@clisp.org>
21695
21696                 Portability to AIX 4.3.3.
21697                 * unsetenv.c: New file, extracted from setenv.c.
21698                 * setenv.c: Move the unsetenv() function to unsetenv.c.
21699
21700         2001-12-20  Bruno Haible  <bruno@clisp.org>
21701
21702                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
21703                 use malloc instead. For SunOS 4.
21704
21705         2001-12-11  Bruno Haible  <bruno@clisp.org>
21706
21707                 * setenv.c: Declare alloca.
21708                 (compar_fn_t): New typedef.
21709                 (KNOWN_VALUE, STORE_VALUE): Use it.
21710
21711         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
21712         setenv.h.
21713
21714 2002-12-10  Paul Eggert  <eggert@twinsun.com>
21715
21716         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
21717         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
21718         Choose values that are less likely to collide with system fnmatch
21719         options.
21720         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
21721         defined (e.g., a pure POSIX system).
21722         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
21723         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
21724
21725 2002-12-06  Paul Eggert  <eggert@twinsun.com>
21726
21727         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
21728         a pain in practice to deal with generated m4 files.  This change
21729         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
21730
21731         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
21732         and jm-glibc-io.m4, as they are no longer a special case.
21733         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
21734         kludge and the auto-generation stuff.  Check only whether the
21735         functions are declared, not whether they exist, since older hosts
21736         that don't declare the functions can't use the optimization anyway.
21737
21738 2002-12-06  Jim Meyering  <jim@meyering.net>
21739
21740         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
21741
21742         Merge in changes from libc's misc/error.c, in preparation
21743         for the merge of gnulib's changes back into libc.
21744
21745         * lib/error.c (_): Define only if not already defined.
21746         Move definition to follow all #include directives.
21747         Include unlocked-io.h only if !_LIBC.
21748         [_LIBC]: Include <libio/libioP.h>.
21749         [USE_IN_LIBIO]: Include <libio/iolibio.h>
21750         (fflush): Tweak definition to use INTUSE.
21751         (putc): Define.
21752
21753 2002-12-05  Paul Eggert  <eggert@twinsun.com>
21754
21755         * lib/alloca.c [defined emacs]: Include "lisp.h".
21756         (xalloc_die) [defined emacs]: New macro.
21757         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
21758         [! defined emacs]: Include <xalloc.h>.
21759         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
21760         (pointer): Typedef to POINTER_TYPE *.
21761         (malloc): Remove decl; we now always use xmalloc.
21762         (alloca): Use old-style definition, since Emacs needs this.
21763         Check for arithmetic overflow when computing combined size.
21764
21765 2002-12-04  Paul Eggert  <eggert@twinsun.com>
21766
21767         Do not generate unlocked-io.h automatically, since it's easier to
21768         maintain it by hand.
21769
21770         * lib/unlocked-io.h: New file, from GNU diffutils,
21771         but with proper copyright notice and attribution.
21772         * lib/gen-uio: Remove.
21773         * lib/Makefile.am: Add copyright notice.
21774         (libfetish_a_SOURCES): Add unlocked-io.h.
21775         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
21776         (DISTCLEANFILES, io_functions): Remove macros.
21777         (EXTRA_DIST): Remove gen_uio.
21778         (unlocked-io.h): Remove rule.
21779
21780 2002-12-04  Jim Meyering  <jim@meyering.net>
21781
21782         Reflect the fact that stat.c and lstat.c are no longer generated.
21783         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
21784         (DISTCLEANFILES): Likewise.
21785         (EXTRA_DIST): Likewise.
21786         (all_local): Don't depend on stat.c or lstat.c.
21787         (stat.c, lstat.c): Remove rules.
21788         (EXTRA_DIST): Remove xstat.in.
21789
21790         * lib/xstat.in: Remove file.  Contents moved into stat.c.
21791         * lib/stat.c: New file.  Contents mostly from xstat.in.
21792         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
21793         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
21794
21795         * lib/safe-read.c: Rework so that it may serve to define safe_write,
21796         too.
21797         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
21798
21799 2002-12-03  Jim Meyering  <jim@meyering.net>
21800
21801         * lib/safe-read.c, safe-write.c: Change variable names and comments,
21802         but not semantics, to minimize the differences between these two files.
21803         (safe_read): Change comment to mention SAFE_READ_ERROR.
21804
21805         * lib/safe-read.c (IS_EINTR): Define.
21806         (safe_read): Use IS_EINTR in place of in-function cpp directives.
21807
21808 2002-12-02  Jim Meyering  <jim@meyering.net>
21809
21810         * lib/safe-read.c (EINTR): Define.
21811         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
21812         (INT_MAX): Provide fallback.
21813         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
21814
21815         * lib/safe-read.h (SAFE_READ_ERROR): Define.
21816
21817 2002-12-02  Bruno Haible  <bruno@clisp.org>
21818
21819         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
21820         Define, taken from safe-read.c.
21821         (INT_MAX): Provide fallback.
21822         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
21823         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
21824
21825         * lib/safe-read.c (EINTR): Remove definition.
21826         (safe_read): Don't use EINTR if it is absent.
21827
21828 2002-12-01  Jim Meyering  <jim@meyering.net>
21829
21830         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
21831         zero.
21832         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
21833
21834 2002-11-27  Paul Eggert  <eggert@twinsun.com>
21835
21836         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
21837         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
21838         with `if (! (value < limit)) abort ();', for readability.
21839
21840 2002-11-26  Karl Berry  <karl@gnu.org>
21841
21842         * lib/strdup.c: copy from libc again, with jim's ok.
21843         * lib/.cppi-disable: re-add strdup.c
21844
21845 2002-11-25  Karl Berry  <karl@gnu.org>
21846
21847         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
21848         instead of "strtol.c".
21849
21850 2002-11-25  Karl Berry  <karl@gnu.org>
21851
21852         * config/install-sh: update from automake for variable quoting, $0 in
21853         error msgs, etc.
21854
21855         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
21856         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
21857         entry.
21858
21859 2002-11-25  Jim Meyering  <jim@meyering.net>
21860
21861         * lib/mktime.c: Sync from libc, now that it has the latest fix.
21862
21863 2002-11-24  Karl Berry  <karl@gnu.org>
21864
21865         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
21866         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
21867
21868 2002-11-24  Jim Meyering  <jim@meyering.net>
21869
21870         Update from coreutils:
21871
21872         * lib/mktime.c: Merge in changes from libc.
21873
21874         Avoid a link-time failure on some Linux systems.
21875         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
21876         (otherwise).
21877         (__mon_yday): Declare with the STATIC attribute.
21878         (__mktime_internal): Likewise.
21879         Based on a report from Greg Schafer.
21880
21881 2002-11-23  Jim Meyering  <jim@meyering.net>
21882
21883         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
21884         Use `unsigned', not `int', as type of index.
21885
21886         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
21887
21888         * lib/fsusage.c: Remove unneeded parentheses around operands of
21889         `defined'.
21890
21891 2002-11-22  Paul Eggert  <eggert@twinsun.com>
21892
21893         * lib/quotearg.h: Allow multiple inclusion by surrounding with
21894         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
21895         so that we can be included first.
21896         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
21897         * lib/quotearg.c: Include quotearg.h immediately after config.h.
21898         No need to include stddef.h or sys/types.h any more.
21899         Surround local include files with "", not "<>".
21900         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
21901         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
21902         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
21903         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
21904         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
21905         (ISPRINT): Remove; no longer needed now that we assume C89.
21906
21907         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
21908         Preserve errno.
21909
21910         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
21911         quotearg_char): Use SIZE_MAX rather than
21912         (size_t) -1 when we are talking about "infinity".
21913
21914         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
21915
21916 2002-11-22  Paul Eggert  <eggert@twinsun.com>
21917
21918         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
21919         hint that one should use `if (! x) abort ();' rather than `assert
21920         (x);', and anyway it's one less thing to worry about configuring.
21921         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
21922         hash_rehash, hash_insert): Use abort rather than assert.
21923
21924 2002-11-22  Bruno Haible  <bruno@clisp.org>
21925
21926         * lib/safe-read.h: Assume C89. Add comments.
21927         (safe_read): Change return type to size_t.
21928         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
21929         byte counts > SSIZE_MAX correctly.
21930         * lib/safe-write.h: New file.
21931         * lib/safe-write.c: New file.
21932         * lib/full-read.h: New file.
21933         * lib/full-read.c: New file.
21934         * lib/full-write.h: Assume C89. Add comments.
21935         * lib/full-write.c: Include safe-write.h.
21936         (full_write): Rewritten to use safe_write.
21937         Suggested by Jim Meyering and Paul Eggert.
21938
21939 2002-11-21  Jim Meyering  <jim@meyering.net>
21940
21941         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
21942
21943         Merge in changes from the coreutils.
21944
21945         2002-09-25  Paul Eggert  <eggert@twinsun.com>
21946         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
21947         <stdint.h>.
21948         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
21949         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
21950         int.  Work more efficiently if X is the same width as uintmax_t.
21951         Do not compare X to -1, to avoid bogus compiler warning.
21952         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
21953         Don't assume that f_frsize and f_bsize are the same type.
21954
21955         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
21956         warning on FreeBSD.
21957
21958         * lib/makepath.c (make_path): Restore umask *before* creating the final
21959         component.
21960         (make_path): Minor reformatting.
21961
21962         * lib/xmalloc.c: Adjust to work with new autoconf macros,
21963         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
21964         HAVE_MALLOC/HAVE_REALLOC.
21965
21966         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
21967         dummy ones.  At least on GNU/Linux systems, `auto' means something
21968         else.
21969         From Michael Stone.
21970
21971 2002-11-21  Bruno Haible  <bruno@clisp.org>
21972
21973         Remove case insensitive option matching.
21974         * lib/argmatch.h (argcasematch): Remove declaration.
21975         (ARGCASEMATCH): Remove macro.
21976         (__xargmatch_internal): Remove case_sensitive argument.
21977         (XARGMATCH): Update.
21978         (XARGCASEMATCH): Remove macro.
21979         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
21980         case_sensitive argument.
21981         (argcasematch): Remove function.
21982         (__xargmatch_internal): Remove case_sensitive argument.
21983         (main): Use XARGMATCH instead of XARGCASEMATCH.
21984
21985         * lib/xmalloc.c: Change compile-time error message. Add comment about
21986         required autoconf version.
21987
21988 2002-11-20  Paul Eggert  <eggert@twinsun.com>
21989
21990         Merge argmatch cleanups from Bison.  Assume C89.
21991
21992         * lib/argmatch.c: Include config.h here, not in argmatch.h.
21993         Include stdlib.h, for EXIT_FAILURE.
21994         Always include <string.h>, since we assume C89.
21995         (EXIT_FAILURE): Remove pre-C89 bug workaround.
21996         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
21997         Include <stddef.h> instead, since it's all we need for size_t.
21998         (PARAMS): Remove.  All uses removed.
21999         (ARRAY_CARDINALITY): Do not bother to #undef.
22000         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
22001         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
22002         Remove unnecessary parentheses.
22003         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
22004         Insert necessary parentheses.
22005         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
22006         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
22007
22008 2002-11-19  Bruno Haible  <bruno@clisp.org>
22009
22010         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
22011         * lib/mbswidth.h: Include <stddef.h>, for size_t.
22012
22013         * lib/mbswidth.h (PARAMS): Remove macro.
22014         (mbswidth, mbsnwidth): Use ANSI C function declarations.
22015         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
22016
22017         * lib/gcd.h (PARAMS): Remove macro.
22018         (gcd): Use ANSI C function declarations.
22019         * lib/gcd.c (gcd): Likewise.
22020
22021 2002-11-15  Bruno Haible  <bruno@clisp.org>
22022
22023         * lib/strcspn.c: Include <stddef.h>.
22024         (strcspn): Use ANSI C function declaration. Change return type to
22025         size_t. Use NULL.
22026         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
22027         (strpbrk): Use NULL.
22028         * lib/strpbrk.h (PARAMS): Remove macro.
22029         (strpbrk): Use ANSI C function declaration.
22030         * lib/strstr.c: Don't include <sys/types.h>.
22031         * lib/strstr.h (PARAMS): Remove macro.
22032         (strstr): Use ANSI C function declarations.
22033
22034 2002-11-14  Karl Berry  <karl@gnu.org>
22035
22036         * config/mkinstalldirs: `do' on separate line, instead of
22037         `for var; do'.
22038
22039 2002-11-06  Bruno Haible  <bruno@clisp.org>
22040
22041         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
22042         * lib/gcd.c (gcd): Likewise.
22043
22044 2002-11-05  Bruno Haible  <bruno@clisp.org>
22045
22046         * lib/gcd.h: New file, from gettext-0.11.5.
22047         * lib/gcd.c: New file, from gettext-0.11.5.
22048
22049 2002-11-05  Bruno Haible  <bruno@clisp.org>
22050
22051         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
22052         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
22053         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
22054         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
22055
22056         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
22057         <libintl.h>.
22058         * lib/makepath.c: Include gettext.h instead of <locale.h> and
22059         <libintl.h>.
22060
22061         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
22062         * lib/human.c: Include gettext.h instead of <libintl.h>.
22063         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
22064         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
22065         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
22066         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
22067         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
22068         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
22069         (textdomain): Remove definition.
22070         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
22071
22072         * lib/long-options.c: Remove include of <libintl.h> and definition of
22073         _.
22074         * lib/same.c: Remove include of <libintl.h> and definition of _.
22075
22076 2002-11-04  Owen Taylor  <otaylor@redhat.com>
22077
22078         * lib/config.charset: A few additions for Solaris.
22079
22080 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
22081
22082         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
22083         * lib/localcharset.c (locale_charset): Declare as extern "C".
22084
22085 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
22086
22087         * lib/config.charset: msdos in uk_UA uses CP1125.
22088
22089 2002-11-04  Bruno Haible  <bruno@clisp.org>
22090
22091         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
22092         * lib/strcase.h: New file, from GNU gettext-0.11.5.
22093         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
22094         * lib/strstr.h: New file, from GNU gettext-0.11.5.
22095         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
22096
22097 2002-11-04  Bruno Haible  <bruno@clisp.org>
22098
22099         * lib/localcharset.c (locale_charset): Don't return an empty string.
22100
22101 2002-11-04  Bruno Haible  <bruno@clisp.org>
22102
22103         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
22104         aliases.
22105
22106 2002-11-04  Bruno Haible  <bruno@clisp.org>
22107
22108         * lib/config.charset: Update for newest glibc. Add canonical names
22109         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
22110
22111 2002-11-04  Bruno Haible  <bruno@clisp.org>
22112
22113         * lib/config.charset: Add support for NetBSD.
22114
22115 2002-11-04  Bruno Haible  <bruno@clisp.org>
22116
22117         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
22118
22119 2002-11-01  Bruno Haible  <bruno@clisp.org>
22120
22121         * configure.in: Add AC_CONFIG_AUX_DIR call.
22122         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
22123         test/Makefile.
22124         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
22125
22126 2002-09-28  Karl Berry  <karl@gnu.org>
22127
22128         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
22129         installed automake until the next release, since changes have been
22130         made.
22131
22132 2002-09-25  Karl Berry  <karl@gnu.org>
22133
22134         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
22135         * lib/getopt*: copy from libc/posix.
22136         * lib/gettext.h: copy from gettext.
22137         * lib/.cppi-disable: add strdup.c, gettext.h.
22138
22139 2002-09-25  Karl Berry  <karl@gnu.org>
22140
22141         * config/srclist.txt: enable gettext.h check.
22142         * config/config.{guess,sub}: update from prep.
22143         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
22144                 from automake 1.6.3.
22145         See srclist*.
22146
22147 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
22148
22149         * regex.c (PATFETCH): Remove the translating fetch.
22150         (PATFETCH_RAW): Rename to PATFETCH.
22151         (set_image_of_range): New fun.
22152         (SET_RANGE_TABLE_WORK_AREA): Use it.
22153         (regex_compile): Don't translate the pattern chars so eagerly.
22154         Only do it when inserting an `exactn' bytecode or when handling
22155         a char-range.
22156         (mutually_exclusive_p): Avoid empty statement.
22157
22158 2002-07-06  Jim Meyering  <meyering@lucent.com>
22159
22160         * m4/README: Don't mention Makefile.am.in.
22161         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
22162
22163 2002-07-01  Jim Meyering  <meyering@lucent.com>
22164
22165         * lib/c-stack.c: Include sys/time.h.
22166         From Volker Borchert.
22167
22168 2002-06-26  Paul Eggert  <eggert@twinsun.com>
22169
22170         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
22171
22172 2002-06-26  Paul Eggert  <eggert@twinsun.com>
22173
22174         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
22175         New macro.  Use it uniformly instead of
22176         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
22177         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
22178         reported by Vin Shelton.
22179
22180 2002-06-22  Paul Eggert  <eggert@twinsun.com>
22181
22182         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
22183         Do not assume SA_SIGINFO behavior.
22184         Bug reported by Jim Meyering on NetBSD 1.5.2.
22185
22186 2002-06-22  Jim Meyering  <meyering@lucent.com>
22187
22188         * m4/c-stack.m4: New file, from diffutils-2.8.2.
22189         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
22190
22191         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
22192         now that configure.ac uses AC_GNU_SOURCE.
22193         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
22194         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
22195
22196         Update to latest tools.  Suggestions from Paul Eggert.
22197         * m4/stdbool.m4: New file, from diffutils-2.8.2.
22198         * m4/gnu-source.m4: Update from diffutils-2.8.2.
22199         * m4/fnmatch.m4: Likewise.
22200         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
22201         to AC_HEADER_STDBOOL
22202
22203 2002-06-22  Jim Meyering  <meyering@lucent.com>
22204
22205         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
22206         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
22207
22208 2002-06-22  Jim Meyering  <meyering@lucent.com>
22209
22210         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
22211
22212         * lib/exitfail.c, exitfail.h: Likewise.
22213         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
22214
22215         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
22216         of fnmatch.h.
22217         (EXTRA_DIST): Add fnmatch_loop.c.
22218         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
22219
22220         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
22221         * lib/fnmatch.c: Update from diffutils-2.8.2.
22222         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
22223         * lib/fnmatch.h: Remove file.
22224
22225 2002-06-21  Jim Meyering  <meyering@lucent.com>
22226
22227         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
22228         * m4/mbrtowc.m4: Likewise.
22229
22230         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
22231         * m4/mbswidth.m4: Reflect name change:
22232         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
22233         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
22234
22235         * m4/lib-link.m4: Update from gettext-0.11.2.
22236         * m4/gettext.m4: Likewise.
22237
22238         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
22239         From Alfred M. Szmidt.
22240
22241 2002-06-18  Paul Eggert  <eggert@twinsun.com>
22242
22243         * lib/file-type.h: Report an error if neither S_ISREG nor
22244         S_IFREG is defined, instead of using a test specific to glibc
22245         2.2.  This should be safe, since POSIX requires S_ISREG and
22246         Unix Version 7 had S_IFREG.  We don't need to check for
22247         <sys/types.h> since we don't use any symbols that it defines.
22248
22249 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
22250
22251         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
22252         $@-t, so that each temporary file name is unique and valid in the first
22253         8 characters, for operation under DOS.
22254
22255 2002-06-15  Paul Eggert  <eggert@twinsun.com>
22256
22257         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
22258
22259 2002-06-15  Jim Meyering  <meyering@lucent.com>
22260
22261         Work even with DJGPP 2.03, which lacks support for symlinks.
22262         From Richard Dawe.
22263         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
22264         is defined.
22265         * lib/lchown.c (S_ISLNK): Likewise.
22266
22267 2002-06-15  Jim Meyering  <meyering@lucent.com>
22268
22269         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
22270         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
22271         have been included before this file.
22272
22273 2002-06-14  Jim Meyering  <meyering@lucent.com>
22274
22275         * lib/file-type.h: Use the version from diffutils-2.8.2.
22276         * lib/file-type.c: Likewise.
22277
22278 2002-06-07  Jim Meyering  <meyering@lucent.com>
22279
22280         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
22281         They're needed at least for NetBSD 1.5.2.
22282         ($statxfs_includes): Include those same headers.
22283         ($statxfs_includes): Include sys/vfs.h if available.
22284         ($statxfs_includes): Likewise for sys/statvfs.h.
22285         Check for the following members in both structs statfs and statvfs:
22286         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
22287
22288 2002-06-01  Jim Meyering  <meyering@lucent.com>
22289
22290         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
22291         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
22292
22293 2002-05-28  Jim Meyering  <meyering@lucent.com>
22294
22295         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
22296         Reported by Volker Borchert.
22297
22298 2002-05-27  Jim Meyering  <meyering@lucent.com>
22299
22300         Fix a problem seen only on nonconforming systems whereby ls.c's
22301         use of localtime, and then of gettimeofday would cause trouble:
22302         the localtime call used to initialize rpl_gettimeofday's save
22303         mechanism would clobber ls's current local time information so
22304         that in any long listing the first file would always be listed
22305         with date 1970-01-01.  Analysis by Volker Borchert.
22306
22307         * lib/gettimeofday.c (localtime): Undefine.
22308         (rpl_localtime): New function.
22309
22310 2002-05-27  Jim Meyering  <meyering@lucent.com>
22311
22312         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
22313         localtime.
22314
22315         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
22316         use the replacement function; it wouldn't resolve at link time.
22317         Reported by Volker Borchert.
22318
22319 2002-05-22  Jim Meyering  <meyering@lucent.com>
22320
22321         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
22322         file-type.h.
22323         * lib/file-type.h: New file.
22324         * lib/file-type.c (file_type): New file/function.  Extracted from
22325         diffutils.
22326
22327 2002-04-30  Jim Meyering  <meyering@lucent.com>
22328
22329         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
22330
22331 2002-04-29  Paul Eggert  <eggert@twinsun.com>
22332
22333         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
22334
22335 2002-04-29  Paul Eggert  <eggert@twinsun.com>
22336
22337         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
22338         Do not check for alloca.h (no longer used) or stdbool.h (was never
22339         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
22340
22341 2002-04-29  Paul Eggert  <eggert@twinsun.com>
22342
22343         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
22344
22345 2002-04-29  Jim Meyering  <meyering@lucent.com>
22346
22347         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
22348         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
22349         Use AC_FUNC_STRNLEN here instead.
22350
22351         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
22352         With autoconf-2.53a, it's part of AC_PROG_CC.
22353
22354 2002-04-28  Paul Eggert  <eggert@twinsun.com>
22355
22356         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
22357         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
22358
22359 2002-04-28  Paul Eggert  <eggert@twinsun.com>
22360
22361         * lib/sig2str.h, lib/sig2str.c: New files.
22362         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
22363
22364 2002-04-28  Paul Eggert  <eggert@twinsun.com>
22365
22366         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
22367         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
22368         of 127, since 64 is the largest conceivable number for ancient
22369         nonstandard hosts.
22370         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
22371
22372 2002-04-28  Jim Meyering  <meyering@lucent.com>
22373
22374         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
22375
22376 2002-04-24  Jim Meyering  <meyering@lucent.com>
22377
22378         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
22379         (jm_PREREQ): Use it.
22380
22381         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
22382         mach/mach.h fcntl.h.
22383         Check for this function: setlocale.
22384
22385 2002-04-24  Jim Meyering  <meyering@lucent.com>
22386
22387         * lib/gettext.h: New file, from Gettext.
22388         * lib/Makefile.am (INCLUDES): Remove -I../intl.
22389         (libfetish_a_SOURCES): Add gettext.h.
22390
22391 2002-04-16  Jim Meyering  <meyering@lucent.com>
22392
22393         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
22394         ut_pid, ut_id, ut_exit.
22395
22396 2002-04-16  Jim Meyering  <meyering@lucent.com>
22397
22398         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
22399         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
22400         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
22401
22402 2002-04-12  Jim Meyering  <meyering@lucent.com>
22403
22404         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
22405         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
22406         existence of the getmntinfo function.  Needed for Darwin 5.3.
22407
22408         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
22409         This is necessary at least on Darwin 5.3.
22410
22411         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
22412         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
22413         strnlen.o in the library, and that makes some versions of ranlib
22414         object.
22415
22416 2002-04-12  Jim Meyering  <meyering@lucent.com>
22417
22418         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
22419
22420 2002-04-09  Jim Meyering  <meyering@lucent.com>
22421
22422         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
22423         to be more precise.  Rather than saying we're checking whether the
22424         function `works', say what we're testing.
22425         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
22426         Reported by Bruno Haible.
22427
22428 2002-03-10  Jim Meyering  <meyering@lucent.com>
22429
22430         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
22431         Suggestion from Santiago Vila.
22432
22433 2002-03-08  Jim Meyering  <meyering@lucent.com>
22434
22435         * lib/rename.c: Mention that this wrapper is needed also on
22436         mips-dec-ultrix4.4 systems.
22437
22438 2002-03-02  Jim Meyering  <meyering@lucent.com>
22439
22440         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
22441         not HAVE_CLOCK_SETTIME.
22442
22443 2002-02-27  Paul Eggert  <eggert@twinsun.com>
22444
22445         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
22446         Check for clock_settime.
22447
22448 2002-02-27  Paul Eggert  <eggert@twinsun.com>
22449
22450         * lib/nanosleep.h: Rename to....
22451         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
22452
22453         * lib/gettime.c: New file.
22454         * lib/settime.c: New file.
22455         * lib/stime.c: Remove.
22456
22457         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
22458         timespec.h.  Remove nanosleep.h.
22459
22460 2002-02-25  Paul Eggert  <eggert@twinsun.com>
22461
22462         * m4/acl.m4: New file.
22463         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
22464         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
22465
22466 2002-02-25  Paul Eggert  <eggert@twinsun.com>
22467
22468         * lib/acl.c, lib/acl.h: New files.
22469         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
22470
22471 2002-02-24  Jim Meyering  <meyering@lucent.com>
22472
22473         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
22474         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
22475         cause trouble.  Reported by Nelson Beebe.
22476
22477 2002-02-23  Paul Eggert  <eggert@twinsun.com>
22478
22479         * lib/path-concat.c (xpath_concat): Reorder code to pacify
22480         compilers that don't know that xalloc_die never returns.
22481
22482 2002-02-20  Jim Meyering  <meyering@lucent.com>
22483
22484         * lib/getdate.c: Regenerate using bison-1.33.
22485
22486 2002-02-17  Jim Meyering  <meyering@lucent.com>
22487
22488         * config/config.guess (main): Don't use `head -1'; it's no longer
22489         portable. Use `sed 1q' instead.
22490
22491 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
22492
22493         * m4/codeset.m4: Upgrade to gettext-0.11.
22494         * m4/gettext.m4: Upgrade to gettext-0.11.
22495         * m4/glibc21.m4: Upgrade to gettext-0.11.
22496         * m4/iconv.m4: Upgrade to gettext-0.11.
22497         * m4/isc-posix.m4: Upgrade to gettext-0.11.
22498         * m4/lcmessage.m4: Upgrade to gettext-0.11.
22499         * m4/lib-ld.m4: New file, from gettext-0.11.
22500         * m4/lib-link.m4: New file, from gettext-0.11.
22501         * m4/lib-prefix.m4: New file, from gettext-0.11.
22502         * m4/progtest.m4: Upgrade to gettext-0.11.
22503
22504 2002-02-15  Paul Eggert  <eggert@twinsun.com>
22505
22506         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
22507         (jm_PREREQ): Use it.
22508
22509 2002-02-15  Paul Eggert  <eggert@twinsun.com>
22510
22511         * lib/posixver.c, lib/posixver.h: New files.
22512         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
22513
22514 2002-02-02  Paul Eggert  <eggert@twinsun.com>
22515             Bruno Haible  <bruno@clisp.org>
22516
22517         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
22518         (fwrite_success_callback): New declaration.
22519         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
22520         print_unicode_char. Call failure callback instead of error.
22521         (fwrite_success_callback): New function.
22522         (exit_failure_callback): New function.
22523         (fallback_failure_callback): New function.
22524         (print_unicode_char): Call unicode_to_mb.
22525
22526 2002-01-26  Jim Meyering  <meyering@lucent.com>
22527
22528         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
22529         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
22530
22531 2002-01-26  Jim Meyering  <meyering@lucent.com>
22532
22533         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
22534
22535 2002-01-22  Paul Eggert  <eggert@twinsun.com>
22536
22537         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
22538
22539 2002-01-22  Jim Meyering  <meyering@lucent.com>
22540
22541         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
22542         Otherwise, some versions of automake would omit the rule that makes
22543         Makefile from Makefile.in.
22544
22545 2002-01-21  Paul Eggert  <eggert@twinsun.com>
22546
22547         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
22548         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
22549         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
22550         (memcoll): Set errno to zero if there is no error.
22551
22552         * lib/quotearg.c (quotearg_buffer_restyled):
22553         Fix bug with quoting buffers containing NUL when backslashing escapes.
22554         This bug was exposed by the other changes in this patch.
22555         (quotearg_n_options): New arg ARGSIZE.
22556         All callers changed.
22557         (quoting_options_from_style): New function.
22558         (quotearg_n_style): Use it.
22559         (quotearg_n_style_mem): New function.
22560
22561         * lib/quotearg.h (quotearg_n_style_mem): New function.
22562
22563 2002-01-19  Jim Meyering  <meyering@lucent.com>
22564
22565         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
22566         Remove useless quotes: DF_PROG="df".
22567         * m4/strnlen.m4: New file.
22568
22569 2002-01-16  Paul Eggert  <eggert@twinsun.com>
22570
22571         * lib/backupfile.c (ISDIGIT): Comment fix.
22572         * lib/getdate.y (ISDIGIT): Likewise.
22573         * lib/posixtm.c (ISDIGIT, year): Likewise.
22574         * lib/strverscmp.c (ISDIGIT): Likewise.
22575         * lib/userspec.c (ISDIGIT): Likewise.
22576
22577 2002-01-16  Jim Meyering  <meyering@lucent.com>
22578
22579         * lib/getdate.y: Add three semicolons, each just before a closing
22580         brace. Bison (as of version 1.31) no longer papers over that mistake.
22581
22582 2002-01-05  Jim Meyering  <meyering@lucent.com>
22583
22584         * lib/version-etc.c (version_etc_copyright): Update copyright year.
22585
22586 2001-12-19  Paul Eggert  <eggert@twinsun.com>
22587
22588         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
22589         not silently exit merely because the output buffer happens to
22590         have nothing pending.
22591
22592 2001-12-18  Paul Eggert  <eggert@twinsun.com>
22593
22594         See the big note in ../ChangeLog.
22595         * lib/human.c (suffixes): Prefer K to k for 1024.
22596         (generate_suffix_backwards): New function.
22597         (human_readable_inexact): Use it.
22598         * lib/xstrtol.c (__xstrtol): If there is no number but there
22599         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
22600         Accept 'K' as well as 'k'.
22601
22602 2001-12-15  Jim Meyering  <meyering@lucent.com>
22603
22604         * lib/regex.h (__restrict_arr): Update from libc.
22605
22606         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
22607         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
22608         (STREQ): Define.
22609
22610 2001-12-14  Jim Meyering  <meyering@lucent.com>
22611
22612         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
22613         Suggestion from Bruno Haible.
22614
22615 2001-12-10  Jim Meyering  <meyering@lucent.com>
22616
22617         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
22618         xrealloc, Instead, include "xalloc.h".
22619         (initbuffer): Don't cast xmalloc return value to char*.
22620         (readline): Reword comment.
22621         Don't cast xrealloc return value to char*
22622         Return NULL, not 0.
22623
22624 2001-12-09  Jim Meyering  <meyering@lucent.com>
22625
22626         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
22627         about `signed and unsigned type in conditional expression'.
22628         * lib/posixtm.c (posix_time_parse): Likewise.
22629
22630         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
22631
22632         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
22633         to avoid a pedantic warning.
22634
22635         * lib/getstr.c: Don't include assert.h.
22636         (getstr): Remove warning-evoking assertions.
22637         Return -1 if offset parameter is out of bounds.
22638         Change the type of a local from int to size_t.
22639
22640         * lib/strftime.c (my_strftime_localtime_r): Include this function
22641         definition in the `#if ! HAVE_TM_GMTOFF' block.
22642
22643         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
22644         Include xalloc.h instead.
22645
22646 2001-12-02  Jim Meyering  <meyering@lucent.com>
22647
22648         * lib/tempname.c: Don't declare getenv, thus reverting the change of
22649         2001-11-18.  It's no longer necessary, now that stdlib.h is always
22650         included.
22651
22652         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
22653         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
22654
22655 2001-11-30  Akim Demaille  <akim@epita.fr>
22656
22657         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
22658         before being defined.
22659
22660 2001-11-27  Paul Eggert  <eggert@twinsun.com>
22661
22662         * lib/quotearg.h (quotearg_n, quotearg_n_style):
22663         First arg is int, not unsigned.
22664         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
22665         (SIZE_MAX, UINT_MAX): New macros.
22666         (quotearg_n_options): Abort if N is negative.
22667         Avoid overflow check on hosts where size_t is 64 bits and int
22668         is 32 bits, as overflow is impossible there.
22669         Fix off-by-one typo that caused unnecessary reallocation.
22670
22671 2001-11-27  Jim Meyering  <meyering@lucent.com>
22672
22673         * lib/tempname.c: Merge with version from libc.
22674         * lib/regex.c: Likewise.
22675
22676         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
22677         systems for which STDC_HEADERS is 0, it was not included, resulting in
22678         a warning about an integer-to-pointer conversion problem with getenv.
22679         Reported by Volker Borchert.
22680
22681 2001-11-26  Jim Meyering  <meyering@lucent.com>
22682
22683         * lib/gtod.h: Remove file.
22684         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
22685         * lib/gettimeofday.c: Don't include gtod.h.
22686         (GTOD_init): Remove function.
22687         (rpl_gettimeofday): Do its job here instead, rather than aborting.
22688         Suggestion from Volker Borchert.
22689
22690 2001-11-23  Jim Meyering  <meyering@lucent.com>
22691
22692         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
22693         it.
22694         * lib/hash.c (struct hash_table): Define it here instead.
22695
22696 2001-11-22  Jim Meyering  <meyering@lucent.com>
22697
22698         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
22699
22700 2001-11-20  Jim Meyering  <meyering@lucent.com>
22701
22702         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
22703         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
22704
22705 2001-11-19  Jim Meyering  <meyering@lucent.com>
22706
22707         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
22708         directory.  Use "conftestXXXXXX" as the template.
22709         Suggestion from Paul Eggert.
22710
22711         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
22712         immediately, so the test doesn't mistakenly hit the max-open-files
22713         limit.
22714
22715 2001-11-18  Paul Eggert  <eggert@twinsun.com>
22716
22717         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
22718         (TEMPORARIES): New macro.
22719         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
22720         removes an artificial limitation (e.g. HP-UX 10.20, where
22721         TMP_MAX is 17576).
22722
22723 2001-11-18  Jim Meyering  <meyering@lucent.com>
22724
22725         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
22726
22727 2001-11-18  Jim Meyering  <meyering@lucent.com>
22728
22729         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
22730         on SunOS 4.
22731
22732         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
22733         files will be created before anything else.
22734
22735 2001-11-17  Paul Eggert  <eggert@twinsun.com>
22736
22737         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
22738         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
22739
22740 2001-11-17  Jim Meyering  <meyering@lucent.com>
22741
22742         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
22743         Prompted by a report from Bob Proulx.
22744
22745         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
22746         Instead, require UTILS_FUNC_MKSTEMP.
22747
22748 2001-11-17  Jim Meyering  <meyering@lucent.com>
22749
22750         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
22751         Now, that's done as part of AC_FUNC_STRTOD.
22752
22753 2001-11-17  Jim Meyering  <meyering@lucent.com>
22754
22755         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
22756         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
22757         rather than group writable.  Patch by Juan F. Codagnone.
22758
22759         * lib/readtokens.c: Remove explicit declarations of xmalloc and
22760         xrealloc, Instead, include "xalloc.h".
22761
22762         * lib/mountlist.c: Include unlocked-io.h after all system headers.
22763         Remove explicit declarations of xmalloc, xrealloc,
22764         and xstrdup.  Instead, include "xalloc.h".
22765
22766         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
22767         unlocked-io.h.
22768         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
22769         Likewise.
22770         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
22771
22772         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
22773         Reported by Padraig Brady.
22774
22775         * lib/mkstemp.c: #undef mkstemp.
22776         Include config.h.
22777         (rpl_mkstemp): Rename from mkstemp.
22778         Protoize.
22779
22780 2001-11-16  Jim Meyering  <meyering@lucent.com>
22781
22782         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
22783         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
22784         determine the amount of total physical memory, use pstat_getstatic.
22785         HPUX-11 doesn't define _SC_PHYS_PAGES.
22786         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
22787         If sysconf couldn't be used to determine the amount of available
22788         physical memory, use both pstat_getstatic and pstat_getdynamic.
22789         Based on a patch from Bob Proulx.
22790
22791 2001-11-10  Jim Meyering  <meyering@lucent.com>
22792
22793         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
22794         (jm_PREREQ): Use it.
22795
22796 2001-11-09  Jim Meyering  <meyering@lucent.com>
22797
22798         * m4/jm-macros.m4: Require autoconf-2.52f.
22799         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
22800         Use these AC_-prefixed names, not the AM_-prefixed ones.
22801
22802         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
22803
22804 2001-11-05  Jim Meyering  <meyering@lucent.com>
22805
22806         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
22807
22808 2001-11-04  Jim Meyering  <meyering@lucent.com>
22809
22810         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
22811         $DEFS.
22812
22813 2001-11-03  Jim Meyering  <meyering@lucent.com>
22814
22815         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
22816         of AC_DEFUN.
22817
22818         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
22819         know the name of the variable in the macro definition.
22820
22821 2001-11-03  Jim Meyering  <meyering@lucent.com>
22822
22823         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
22824         in argmatch_to_argument call.
22825
22826         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
22827         argument.
22828
22829         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
22830         e.g., a fault due to an attempt to free a NULL pointer.
22831
22832 2001-11-01  Jim Meyering  <meyering@lucent.com>
22833
22834         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
22835         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
22836
22837 2001-11-01  Jim Meyering  <meyering@lucent.com>
22838
22839         * lib/dirfd.c, lib/dirfd.h: New files.
22840         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
22841
22842         * lib/hash.c (hash_print) [TESTING]: Clean up.
22843
22844 2001-10-22  Paul Eggert  <eggert@twinsun.com>
22845
22846         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
22847         to avoid a warning if -Wall.
22848
22849 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
22850
22851         * README: New file
22852         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
22853         (per RMS's instructions, this is now the canonical source)
22854         * lgpl/, gpl/: New directories.
22855
22856 2001-10-21  Paul Eggert  <eggert@twinsun.com>
22857
22858         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
22859
22860 2001-10-21  Jim Meyering  <meyering@lucent.com>
22861
22862         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
22863         this code would end up calling gettext even in packages built
22864         with --disable-nls.
22865         * lib/getopt.c (_): Likewise.
22866         * lib/regex.c (_): Likewise.
22867
22868 2001-10-20  Paul Eggert  <eggert@twinsun.com>
22869
22870         * m4/error.m4 (jm_PREREQ_ERROR):
22871         Do not invoke AC_CHECK_FUNCS with strerror_r, as
22872         AC_FUNC_STRERROR_R does that.
22873         Check for strerror declaration.
22874
22875         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
22876         are supposed to have them these days.
22877         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
22878         Merge changes from latest Autoconf CVS.
22879         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
22880         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
22881         POSIX decided to standardize on the int flavor of strerror_r.
22882
22883 2001-10-20  Paul Eggert  <eggert@twinsun.com>
22884
22885         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
22886         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
22887         Use strerror_r that is only a macro, even if it is not a function.
22888         (strerror): Check for HAVE_DECL_STRERROR before declaring.
22889         (private_strerror): Use prototypes, not old-style function definition.
22890         (print_errno_message): New function.
22891         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
22892         char*-flavored one.
22893         (error_tail, error, error_at_line): Use it.
22894
22895 2001-10-11  Jim Meyering  <meyering@lucent.com>
22896
22897         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
22898         and quote_n (1, ... to avoid clobbering a buffer.
22899
22900 2001-10-05  Jim Meyering  <meyering@lucent.com>
22901
22902         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
22903         hash-pjw.h.
22904         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
22905         * lib/hash-pjw.h: New file.
22906
22907 2001-09-30  Jim Meyering  <meyering@lucent.com>
22908
22909         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
22910         `struct fsstat' has the `f_fstypename' member.
22911         Use that to define FS_TYPE, which is now used to make
22912         the getfsstat link test tighter.
22913
22914 2001-09-30  Jim Meyering  <meyering@lucent.com>
22915
22916         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
22917         Include <sys/ucred.h>, for Apple Darwin.
22918         Include sys/mount.h and sys/fs_types.h only if available.
22919         (FS_TYPE): Define.
22920         (read_filesystem_list): Use FS_TYPE.
22921
22922 2001-09-29  Paul Eggert  <eggert@twinsun.com>
22923
22924         * lib/exclude.c (excluded_filename): 0 -> false, since it's
22925         a boolean context.
22926
22927 2001-09-29  Jim Meyering  <meyering@lucent.com>
22928
22929         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
22930         [one-argument getmntent function]): Include stdio.h before mntent.h.
22931         SunOS 4.1.x needs it for the declaration of `FILE'.
22932         Patch by Volker Borchert.
22933
22934         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
22935         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
22936         sys/fs_types.h, and make the link-test for getfsstat guard #include
22937         directives with appropriate #if HAVE_*_H tests so that we can
22938         detect getfsstat on Apple Darwin1.3.7 systems.
22939         Reported by Nelson Beebe.
22940         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
22941
22942 2001-09-28  Paul Eggert  <eggert@twinsun.com>
22943
22944         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
22945         #defines strtoimax.  Also treat the other strto* functions
22946         like strtoimax.
22947
22948         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
22949         Check for strtoul and strtoumax,
22950         as those declarations are made even in the signed case.
22951         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
22952         Likewise, for strtol and strtoimax.
22953
22954 2001-09-28  Paul Eggert  <eggert@twinsun.com>
22955
22956         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
22957         #defines strtoimax.  Also treat the other strto* functions
22958         like strtoimax.
22959
22960         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
22961         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
22962         (strtoimax, strtoumax): Do not declare if already defined as a macro.
22963
22964 2001-09-26  Jim Meyering  <meyering@lucent.com>
22965
22966         Most macros in unlocked-io.h had the wrong number of arguments.
22967         * lib/gen-uio: New script.
22968         (USE_UNLOCKED_IO): Define to 1 if not already defined.
22969         * lib/unlocked-io.hin: Remove file.
22970         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
22971         rather than trying to embed it here.
22972         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
22973         Reported by Padraig Brady.
22974
22975 2001-09-25  Volker Borchert  <bt@teknon.de>
22976
22977         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
22978         `result'.
22979
22980 2001-09-24  Jim Meyering  <meyering@lucent.com>
22981
22982         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
22983
22984 2001-09-23  Jim Meyering  <meyering@lucent.com>
22985
22986         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
22987         instead of the mere test for existence of mntent.h.  The latter
22988         would get a false-positive on AIX 3.4 systems.
22989         In the outer getmntent if-block, don't die if neither of the getmntent
22990         tests succeeds.  Instead, just fall through and continue with the
22991         remaining tests.
22992
22993 2001-09-23  Jim Meyering  <meyering@lucent.com>
22994
22995         * lib/mountlist.c: Remove useless parentheses in #if directives.
22996         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
22997         the deprecated MOUNTED symbol is no longer defined in mntent.h.
22998
22999 2001-09-22  Jim Meyering  <meyering@lucent.com>
23000
23001         * m4/gettext.m4: New file.  From gettext.
23002         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
23003         * m4/progtest.m4: Likewise
23004         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
23005         * m4/glibc21.m4: Likewise.
23006
23007         * m4/libintl.m4: Remove.  No longer used.
23008
23009 2001-09-22  Jim Meyering  <meyering@lucent.com>
23010
23011         * lib/localcharset.c: Update from latest gettext.
23012         * lib/config.charset: Likewise.
23013
23014 2001-09-20  Jim Meyering  <meyering@lucent.com>
23015
23016         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
23017         strtoimax.
23018         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
23019         strtoumax.
23020
23021 2001-09-20  Jim Meyering  <meyering@lucent.com>
23022
23023         * lib/xstrtol.c (strtoimax): Guard declaration with
23024         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
23025         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
23026         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
23027         (strtoumax): Likewise, for completeness (it wasn't necessary).
23028
23029 2001-09-17  Paul Eggert  <eggert@twinsun.com>
23030
23031         * lib/strtoimax.c (HAVE_LONG_LONG):
23032         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
23033         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
23034         to work around bug in IBM C compiler.
23035
23036 2001-09-17  Jim Meyering  <meyering@lucent.com>
23037
23038         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
23039         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
23040         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
23041         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
23042         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
23043         whenever the right hand side need not be expanded by the shell.
23044
23045 2001-09-16  Paul Eggert  <eggert@twinsun.com>
23046
23047         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
23048         library.  It's not correct, as some older glibcs are buggy.
23049         fnmatch wasn't fixed until glibc 2.2.
23050
23051         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
23052         special shell magic here.
23053
23054 2001-09-16  Jim Meyering  <meyering@lucent.com>
23055
23056         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
23057         * m4/jm-macros.m4: Require it.
23058
23059 2001-09-16  Jim Meyering  <meyering@lucent.com>
23060
23061         * lib/mkdir.c: New file.
23062
23063 2001-09-15  Jim Meyering  <meyering@lucent.com>
23064
23065         * m4/jm-macros.m4: Check for help2man.
23066
23067 2001-09-11  Jim Meyering  <meyering@lucent.com>
23068
23069         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
23070         The body, by Paul Eggert, was moved here from configure.in.
23071         * m4/jm-macros.m4: Require UTILS_HOST_OS.
23072
23073 2001-09-04  Paul Eggert  <eggert@twinsun.com>
23074
23075         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
23076         (jm_PREREQ): Use it.
23077
23078 2001-09-04  Paul Eggert  <eggert@twinsun.com>
23079
23080         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
23081         Use ssize_t, not int, to store result of readlink.
23082         Check for ssize_t overflow as well as size_t overflow,
23083         as POSIX says the result of readlink is implementation-defined
23084         when ssize_t overflows.
23085         Remove unnecessary cast to char*.
23086         Use free+malloc instead of realloc, as the storage doesn't need
23087         to be preserved and it's clearer and can be more efficient that way.
23088         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
23089         * lib/xreadlink.h (xreadlink): Update prototype.
23090
23091 2001-09-04  Paul Eggert  <eggert@twinsun.com>
23092
23093         * lib/xgetcwd.c: Revert some of the previous change; intead,
23094         fix the HAVE_GETCWD_NULL code to behave more like the
23095         !HAVE_GETCWD_NULL code used to.
23096
23097         Include "xalloc.h".
23098         (xgetcwd): Do not return NULL when memory is exhausted; instead,
23099         invoke xalloc_die.
23100
23101 2001-09-03  Paul Eggert  <eggert@twinsun.com>
23102
23103         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
23104         sys/param.h, as pathmax.h includes them.
23105
23106 2001-09-03  Paul Eggert  <eggert@twinsun.com>
23107
23108         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
23109         (jm_PREREQ_XGETCWD): New macro.
23110
23111         * m4/getcwd.m4: New file.
23112
23113 2001-09-03  Paul Eggert  <eggert@twinsun.com>
23114
23115         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
23116         like the HAVE_GETCWD_NULL code.
23117         Include pathmax.h if not HAVE_GETCWD.
23118         Do not include xalloc.h.
23119         (INITIAL_BUFFER_SIZE): New symbol.
23120         Do not use xmalloc / xrealloc, since the caller is responsible for
23121         handling errors.  Preserve errno around `free' during failure.
23122         Do not overrun buffer when using getwd.
23123
23124 2001-09-03  Paul Eggert  <eggert@twinsun.com>
23125
23126         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
23127         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
23128         getcwd (NULL, 0).
23129
23130 2001-09-03  Paul Eggert  <eggert@twinsun.com>
23131
23132         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
23133         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
23134         spotted by Jim Meyering.
23135
23136 2001-09-03  Jim Meyering  <meyering@lucent.com>
23137
23138         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
23139         failure.
23140
23141 2001-09-02  Jim Meyering  <meyering@lucent.com>
23142
23143         * lib/error.c: Update from GNU libc.
23144
23145 2001-09-01  Jim Meyering  <meyering@lucent.com>
23146
23147         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
23148         Used by df.
23149
23150 2001-09-01  Jim Meyering  <meyering@lucent.com>
23151
23152         * lib/xreadlink.c: New file.
23153         * lib/xreadlink.h: New file.
23154         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
23155         xreadlink.h.
23156
23157         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
23158         doesn't conflict with sparc Solaris 7's definition in
23159         /usr/include/sys/int_types.h.
23160
23161         * lib/exclude.c: Use `""', not `<>' to #include non-system header
23162         files.
23163         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
23164         and strncasecmp as r-values.  Unixware didn't have declarations.
23165
23166 2001-08-31  Paul Eggert  <eggert@twinsun.com>
23167
23168         * lib/xstrtol.h: Add copyright notice.
23169         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
23170         LONGINT_INVALID_SUFFIX_CHAR.
23171
23172 2001-08-31  Paul Eggert  <eggert@twinsun.com>
23173
23174         * lib/xstrtol.c (strtoimax): New decl.
23175
23176 2001-08-31  Paul Eggert  <eggert@twinsun.com>
23177
23178         * lib/xgetcwd.c: Don't include pathmax.h.
23179         Include stdlib.h and unistd.h if available.
23180         Include xalloc.h.
23181         (xmalloc, xstrdup, free): Remove decls.
23182         (xgetcwd): Don't assume sizes fit in unsigned.
23183         Check for overflow when computing sizes.
23184         Simplify reallocation code.
23185
23186 2001-08-31  Paul Eggert  <eggert@twinsun.com>
23187
23188         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
23189         a directory's st_size can have an arbitrary value, so the old
23190         usage could waste an arbitrary amount of memory.  All uses
23191         changed.
23192         * lib/savedir.h: Update prototype.
23193
23194 2001-08-31  Paul Eggert  <eggert@twinsun.com>
23195
23196         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
23197
23198         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
23199         old strtoimax.c.
23200
23201         Also, make the following further changes to make this file's
23202         configuration more similar to that of strtol.c:
23203         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
23204         (strtoumax, uintmax_t, strtoull, strtol): Remove.
23205         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
23206         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
23207         changed to signed values.
23208
23209         And make the following changes as well:
23210         Fix copyright notice, as 1999 was missing.
23211         (verify): New macro.
23212         (strtoimax): Check sizes at compile-time, not run-time.
23213         Prefer strtol to strtoll if both work.
23214         (main): Remove; it was not that useful and was a pain to maintain.
23215
23216         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
23217
23218 2001-08-31  Jim Meyering  <meyering@lucent.com>
23219
23220         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
23221         Use an initial, malloc'd, buffer of length 128 rather than
23222         a statically allocated one of length 1024.
23223
23224 2001-08-30  Paul Eggert  <eggert@twinsun.com>
23225
23226         Simplify code, partly by assuming autoconf 2.52 semantics.
23227
23228         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
23229
23230         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
23231         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
23232         All uses removed.
23233         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
23234         Move AC_REQUIRE to next-to-top level, to avoid confusion.
23235         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
23236         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
23237         jm_AC_HEADER_INTTYPES_H.
23238         * m4/jm-macros.m4 (jm_MACROS): Likewise.
23239
23240         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
23241
23242         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
23243         Quote first arg of AC_DEFUN.
23244         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
23245         since they are needed to parse the include file even if we need
23246         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
23247         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
23248         but with opposite signedness.
23249
23250 2001-08-30  Paul Eggert  <eggert@twinsun.com>
23251
23252         Merge 'exclude' changes from tar 1.13.22.
23253         This fixes one or two unlikely storage allocation overflow bugs,
23254         but doesn't change user-visible behavior otherwise.
23255
23256 2001-08-30  Paul Eggert  <eggert@twinsun.com>
23257
23258         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
23259         (jm_PREREQ_EXCLUDE): New macro.
23260
23261 2001-08-30  Paul Eggert  <eggert@twinsun.com>
23262
23263         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
23264         tm to be declared.
23265
23266 2001-08-30  Paul Eggert  <eggert@twinsun.com>
23267
23268         * lib/hash.c: Remove '2001' from copyright notice.
23269
23270 2001-08-30  Paul Eggert  <eggert@twinsun.com>
23271
23272         * lib/full-write.h: New file.
23273         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
23274         * lib/full-write.c: Correct credits, as cccp.c no longer
23275         exists and anyway it was so heavily changed from the old cccp
23276         code as to be unrecognizable.  Include full-write.h.
23277         (full_write) Return size_t, with short writes meaning failure.
23278         All callers changed.  This fixes a bug with large buffers
23279         on 64-bit hosts.
23280         * lib/utime.c: Include full-write.h.
23281
23282 2001-08-30  Paul Eggert  <eggert@twinsun.com>
23283
23284         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
23285         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
23286         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
23287         Include if available.
23288         (<xalloc.h>): Include
23289         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
23290         (verify): New macro.  Use it to verify that EXCLUDE macros do not
23291         collide with FNM macros.
23292         (struct patopts): New struct.
23293         (struct exclude): Use it, as exclude patterns now come with options.
23294         (new_exclude): Support above changes.
23295         (new_exclude, add_exclude_file):
23296         Initial size must now be a power of two to simplify overflow checking.
23297         (free_exclude, fnmatch_no_wildcards): New function.
23298         (excluded_filename): No longer requires options arg, as the options
23299         are determined by add_exclude.  Now returns bool, not int.
23300         (excluded_filename, add_exclude):
23301         Add support for the fancy new exclusion options.
23302         (add_exclude, add_exclude_file): Now takes int options arg.
23303         Check for arithmetic overflow when computing sizes.
23304         (add_exclude_file): xrealloc might modify errno, so don't
23305         realloc until after errno might be used.
23306
23307         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
23308         New macros.
23309         (free_exclude): New decl.
23310         (add_exclude, add_exclude_file): Now takes int options arg.
23311         (excluded_filename): No longer requires options arg, as the options
23312         are determined by add_exclude.  Now returns bool, not int.
23313
23314 2001-08-30  Paul Eggert  <eggert@twinsun.com>
23315
23316         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
23317
23318 2001-08-27  Jim Meyering  <meyering@lucent.com>
23319
23320         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
23321
23322         * lib/version-etc.c (N_): Remove definition.
23323         Revert most of last change.
23324         Instead, simply don't mark the `Copyright...' string for translation.
23325         Based on advice from Paul Eggert.
23326
23327         * lib/strtoxmax.c: Tweak comment.
23328
23329 2001-08-26  Jim Meyering  <meyering@lucent.com>
23330
23331         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
23332
23333         * m4/xstrtoimax.m4: New file.
23334         * m4/xstrtoumax.m4: Add comments explaining why we
23335         AC_REPLACE_FUNCS(strtol).
23336
23337 2001-08-26  Jim Meyering  <meyering@lucent.com>
23338
23339         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
23340         of copyright with `%s' so translators don't get an untranslated
23341         message in 2002.
23342         (COPYRIGHT_YEAR): Define.
23343         (version_etc): Use fprintf rather than fputs.
23344         Suggestion from Ulrich Drepper.
23345
23346         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
23347
23348         * lib/strtoll.c: New file, from GNU libc.
23349         * lib/xstrtoimax.c: New file.
23350
23351         * lib/xstrtol.h: Add xstrtoimax.
23352         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
23353         * lib/strtoimax.c: New file.  Likewise, but first define
23354         STRTOUXMAX_SIGNED.
23355
23356         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
23357         ...
23358         * lib/strtoxmax.c: ... then renamed to this.
23359
23360 2001-08-18  Paul Eggert  <eggert@twinsun.com>
23361
23362         * m4/inttypes.m4: Add AC_PREREQ(2.13).
23363         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
23364         (jm_AC_TYPE_INTMAX_T): New macro.
23365         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
23366
23367         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
23368
23369         * m4/longlong.m4: Renamed from ulonglong.m4.
23370         * m4/inttypes.m4: Renamed from inttypes_h.m4.
23371         * m4/uintmax_t.m4: Removed.
23372
23373 2001-08-13  Paul Eggert  <eggert@twinsun.com>
23374
23375         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
23376         Port to Solaris 8, where 'sed' requires a space after the 'r'
23377         command, and where sh dislikes "$/".  Clean up the spacing a bit.
23378         Redirect output to $tmp just once.
23379
23380 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
23381
23382         * lib/addext.c (<errno.h>): Include.
23383         (errno): Declare if not defined.
23384         (addext): Work correctly when pathconf returns -1 and leaves
23385         errno alone because there is no limit.  Also, work even if
23386         pathconf returns a value greater than SIZE_MAX.
23387
23388 2001-08-12  Jim Meyering  <meyering@lucent.com>
23389
23390         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
23391         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
23392         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
23393         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
23394         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
23395         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
23396         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
23397         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
23398         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
23399         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
23400         utime.m4, utimes.m4, xstrtoumax.m4:
23401         Quote the first argument in each use of AC_DEFUN.
23402
23403 2001-08-12  Jim Meyering  <meyering@lucent.com>
23404
23405         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
23406         Simply `return getcwd (NULL, 0);'.
23407         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
23408         Use 1300 as initial value for length, not PATH_MAX.
23409
23410         * lib/pathmax.h: Clean up cpp syntax.
23411
23412 2001-08-12  Jim Meyering  <meyering@lucent.com>
23413
23414         * lib/gettimeofday.c: New file.
23415         * lib/gtod.h: New file.
23416         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
23417
23418 2001-08-05  Jim Meyering  <meyering@lucent.com>
23419
23420         * m4/jm-macros.m4: Require autoconf-2.52.
23421
23422 2001-08-04  Jim Meyering  <meyering@lucent.com>
23423
23424         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
23425         stmt, to get in sync with glibc.
23426
23427 2001-08-03  Paul Eggert  <eggert@twinsun.com>
23428
23429         The following changes are from gettext 0.10.39 as maintained by
23430         Bruno Haible.
23431
23432         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
23433         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
23434         with inverted sense.  All uses changed.
23435
23436         * lib/mbswidth.c: Don't include <limits.h>.
23437         Include <stdlib.h> and <string.h> unconditionally.
23438         (iswcntrl, mbsinit, ISCNTRL): New macros.
23439         (mbsnwidth): Use K&R style function declarations.
23440         Don't bother checking for MB_LEN_MAX == 1, since the compiler
23441         can optimize it when MB_CUR_MAX == 1.
23442         The width of control characters is zero, not 1.
23443
23444 2001-08-03  Paul Eggert  <eggert@twinsun.com>
23445
23446         The following changes are from gettext 0.10.39 as maintained by
23447         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
23448
23449         * m4/codeset.m4: Upgrade to serial AM1.
23450         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
23451         all uses changed.  Quote first arg of AC_DEFUN.
23452         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
23453
23454         * m4/iconv.m4: Upgrade to serial AM2.
23455         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
23456         Add --with-libconv-prefix.
23457         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
23458         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
23459         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
23460         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
23461         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
23462
23463         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
23464         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
23465         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
23466         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
23467         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
23468         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
23469         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
23470         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
23471         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
23472
23473         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
23474         string.h any more.
23475
23476         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
23477         not the default value.
23478
23479         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
23480         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
23481         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
23482         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
23483         Also check for iswcntrl, used for wcwidth fallback.
23484         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
23485         to Autoconf 2.13.
23486
23487 2001-08-03  Jim Meyering  <meyering@lucent.com>
23488
23489         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
23490         as it was in the original.  Reported by Paul Eggert.
23491
23492 2001-07-16  Jim Meyering  <meyering@lucent.com>
23493
23494         * m4/gettimeofday.m4: New file.
23495         Prompted by a report from Bernhard Baehr.
23496
23497 2001-07-15  Jim Meyering  <meyering@lucent.com>
23498
23499         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
23500         stuff. Now it's in ../Makefile.cfg.
23501
23502 2001-07-15  Jim Meyering  <meyering@lucent.com>
23503
23504         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
23505         (BUILT_SOURCES): Add unlocked-io.h.
23506         (io_functions): Define.
23507         (unlocked-io.h): New rule.
23508         (DISTCLEANFILES): Add unlocked-io.h.
23509         (all-local): Depend on unlocked-io.h, to ensure it is created.
23510
23511         * lib/unlocked-io.hin: New file
23512
23513         * lib/regex.c: Update from glibc.
23514
23515 2001-07-05  Jim Meyering  <meyering@lucent.com>
23516
23517         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
23518         recommendation.
23519         (libfetish_a_SOURCES): Put all .h files here instead.
23520         Remove a thus-exposed (better checks in automake) duplicate and
23521         two unnecessary .h files.
23522
23523 2001-07-04  Jim Meyering  <meyering@lucent.com>
23524
23525         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
23526         that generates jm-glibc-io.m4 so that it doesn't trigger any make
23527         distcheck failure.
23528
23529 2001-07-02  Jim Meyering  <meyering@lucent.com>
23530
23531         The following changes were prompted by suggestions from Bruno Haible.
23532
23533         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
23534         is now generated.
23535         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
23536         definition of EXTRA_DIST.
23537         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
23538         ensure that the generated file is created/updated whenever the list
23539         of $(unlocked_functions) is changed.
23540         (jm-glibc-io.m4): New rule.
23541         (unlocked-io.h): New rule -- currently unused.
23542
23543 2001-06-24  Jim Meyering  <meyering@lucent.com>
23544
23545         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
23546         unmatched right bracket, rather than kludging it with an extra,
23547         falsely-matching quote in a comment.  Patch by Akim Demaille.
23548
23549 2001-06-11  Jim Meyering  <meyering@lucent.com>
23550
23551         * lib/regex.c: Update from GNU libc.
23552
23553 2001-05-27  Jim Meyering  <meyering@lucent.com>
23554
23555         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
23556         Check for ut_type in struct utmp.
23557
23558 2001-05-27  Jim Meyering  <meyering@lucent.com>
23559
23560         * lib/readutmp.h (UT_TYPE): Define.
23561
23562 2001-05-24  Jim Meyering  <meyering@lucent.com>
23563
23564         * lib/argmatch.c: Include "quote.h".
23565         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
23566         quote function.  Reported by Göran Uddeborg.
23567
23568 2001-05-22  Jim Meyering  <meyering@lucent.com>
23569
23570         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
23571         now that we use the package-supplied version unconditionally.
23572         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
23573
23574 2001-05-21  Jim Meyering  <meyering@lucent.com>
23575
23576         * m4/regex.m4: Change a couple backticks to single quotes to avoid
23577         shell syntax errors.
23578
23579 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
23580
23581         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
23582
23583 2001-05-20  Paul Eggert  <eggert@twinsun.com>
23584
23585         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
23586         Don't bother to check library strftime, since
23587         we'll be using our own my_strftime function anyway.
23588         Define my_strftime instead of strftime.
23589
23590 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
23591
23592         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
23593         which is not yet declared.
23594
23595 2001-05-15  Jim Meyering  <meyering@lucent.com>
23596
23597         * m4/regex.m4: Use proper quoting so brackets appear in the test
23598         program.
23599         Reported by, and with help from, Bruno Haible.
23600
23601 2001-05-13  Jim Meyering  <meyering@lucent.com>
23602
23603         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
23604         undefined.
23605
23606 2001-05-11  Paul Eggert  <eggert@twinsun.com>
23607
23608         dirname code cleanup.  base_name now behaves more compatibly
23609         with POSIX basename when given file names that have trailing
23610         slashes, and similarly for dir_name.  Add new primitives
23611         base_len and dir_len.  Put the directory-name-related decls
23612         into dirname.h.
23613
23614         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
23615         * lib/backupfile.c (base_name): Likewise.
23616         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
23617         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
23618         * lib/makepath.c (strip_trailing_slashes): Likewise.
23619         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
23620         ISSLASH): Likewise.
23621         * lib/rename.c (strip_trailing_slashes): Likewise.
23622         * lib/same.c (base_name): Likewise.
23623         * lib/stripslash.c (ISSLASH): Likewise.
23624
23625         * lib/addext.c: Include <dirname.h> after size_t is defined.
23626         * lib/backupfile.c: Likewise.
23627
23628         * lib/addext.c (addext): Use base_len to trim redundant
23629         trailing slashes instead of doing it ourselves.
23630         But do not trim the last slash if it is not redundant.
23631
23632         * lib/backupfile.c (find_backup_file_name,
23633         max_backup_version): Use base_len instead of rolling it ourselves.
23634         Handle the case of "" and (on DOS) "C:" correctly.
23635
23636         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
23637         needed. Include <string.h>, <dirname.h>.
23638         (base_name): Allow file names ending in slashes, other than names
23639         that are all slashes.  In this case, return the basename followed
23640         by the slashes.  This is more general, and can be used in places
23641         where the original base_name purposely had an assertion failure.
23642         (base_len): New function.
23643
23644         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
23645         Do not include <assert.h>; no longer needed.
23646         Include xalloc.h.
23647         (memrchr): Remove decl.
23648         (dir_name_r): Remove.
23649         (dir_len): Renamed from dirlen.  All callers changed.
23650         Rewrite in terms of base_name, for simplicity and consistency.
23651         (dir_name): Never return NULL.  All callers changed.
23652         Do not include <stdlib.h> in test program; no longer needed.
23653         return 0; is fine for test program.
23654
23655         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
23656         New macros.
23657         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
23658
23659         * lib/path-concat.c (path_concat): Use base_len to compute
23660         base length, not strlen; this means we cannot rely on memcpy
23661         to null-terminate.
23662
23663         * lib/same.c (STREQ): Remove.
23664         (same_name): Handle the case where the basename ends in trailing '/'.
23665
23666         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
23667         a slash was stripped.  Do not strip the last slash after a
23668         file system prefix.
23669
23670 2001-05-11  Paul Eggert  <eggert@twinsun.com>
23671
23672         * lib/Makefile.am (libfetish_a_SOURCES):
23673         Add strftime.c, since we now compile it on all hosts.
23674
23675         * lib/strftime.c (my_strftime):
23676         Define to nstrftime if emacs, but only if my_strftime is not defined.
23677         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
23678         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
23679         Add one more extra argument: a nanoseconds value.
23680         All uses changed.
23681         (ns): New macro.
23682         (my_strftime function): Add %N format.
23683         (emacs_strftimeu): Renamed from emacs_strftime,
23684         with extra ut argument.
23685
23686 2001-05-09  Paul Eggert  <eggert@twinsun.com>
23687
23688         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
23689
23690 2001-04-21  Jim Meyering  <meyering@lucent.com>
23691
23692         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
23693         doesn't interfere.
23694
23695 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
23696
23697         * m4/ftruncate.m4: Check for chsize.
23698         Link with ftruncate.o unconditionally if ftruncate is missing.
23699         This was required when cross-compiling to i586-mingw32msvc.
23700
23701 2001-04-08  Jim Meyering  <meyering@lucent.com>
23702
23703         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
23704         recomputed; that's necessary when the offset spans a DST transition.
23705         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
23706
23707 2001-04-02  Jim Meyering  <meyering@lucent.com>
23708
23709         * lib/regex.h, regex.c: Update from GNU libc.
23710
23711 2001-03-24  Jim Meyering  <meyering@lucent.com>
23712
23713         * m4/jm-macros.m4: Require autoconf-2.49d.
23714
23715 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
23716
23717         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
23718
23719 2001-03-19  Paul Eggert  <eggert@twinsun.com>
23720
23721         * lib/version-etc.c (version_etc_copyright): Update to 2001.
23722
23723 2001-03-17  Jim Meyering  <meyering@lucent.com>
23724
23725         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
23726         now that the version in autoconf is equivalent.
23727         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
23728
23729         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
23730         Suggestion from Akim Demaille.
23731
23732         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
23733         (jm_PREREQ_TEMPNAME): New function.
23734
23735 2001-03-16  Paul Eggert  <eggert@twinsun.com>
23736
23737         * lib/tempname.c (uint64_t): Define to uintmax_t if
23738         not defined, and if UINT64_MAX is not defined.
23739         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
23740         Reported by John David Anglin.
23741
23742 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
23743
23744         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
23745         resolve alias if codeset is empty.
23746         * lib/config.charset (BeOS): Use wildcard syntax.
23747
23748 2001-03-13  Jim Meyering  <meyering@lucent.com>
23749
23750         * lib/path-concat.c (path_concat)
23751         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
23752         concatenating e.g., `C:' and `foo'.
23753         From Bruno Haible.
23754
23755 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
23756
23757         * lib/localcharset.c (locale_charset): Don't use
23758         setlocale(LC_CTYPE,NULL). Don't return NULL.
23759         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
23760
23761 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
23762
23763         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
23764         support for DOS/DJGPP.
23765
23766 2001-03-01  Paul Eggert  <eggert@twinsun.com>
23767
23768         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
23769         lacks mkstemp.  Compile our own tempname.c if we compile our own
23770         mkstemp.c, as mkstemp relies on tempname.
23771
23772 2001-03-01  Jim Meyering  <meyering@lucent.com>
23773
23774         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
23775         AH_VERBATIM really does output its argument verbatim.
23776
23777 2001-02-28  Paul Eggert  <eggert@twinsun.com>
23778
23779         * lib/Makefile.am (libfetish_a_SOURCES):
23780         Add dup-safer.c, fopen-safer.c.
23781         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
23782
23783         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
23784         * lib/unistd-safer.h: New files.
23785
23786 2001-02-25  Paul Eggert  <eggert@twinsun.com>
23787
23788         The mkstemp replacement is taken from glibc 2.2.2, with some
23789         portability fixes for use outside glibc, as follows:
23790
23791         * lib/tempname.c (struct_stat64): New macro.
23792         (direxists, __gen_tempname): Use it.
23793         This avoids a portability problem with Solaris 8.
23794
23795         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
23796         (<stddef.h>, <stdint.h>, <string.h>):
23797         Include only if STDC_HEADERS || _LIBC.
23798         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
23799         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
23800         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
23801         (__set_errno): Define this macro if <errno.h> doesn't.
23802         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
23803         Define these macros if <stdio.h> doesn't.
23804         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
23805         Define these macros if <sys/stat.h>
23806         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
23807         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
23808         __xstat64): Define if not _LIBC.
23809         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
23810         (__gen_tempname): Invoke gettimeofday only if
23811         HAVE_GETTIMEOFDAY || _LIBC;
23812         otherwise, fall back on plain "time".
23813         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
23814
23815         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
23816
23817         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
23818
23819 2001-02-18  Paul Eggert  <eggert@twinsun.com>
23820
23821         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
23822
23823 2001-02-17  Paul Eggert  <eggert@twinsun.com>
23824
23825         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
23826         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
23827         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
23828         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
23829
23830 2001-02-17  Paul Eggert  <eggert@twinsun.com>
23831
23832         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
23833         Remove workaround macros for hosts that have mbrtowc but not
23834         mbstate_t, as we now insist on proper declarations for both
23835         before using mbrtowc.
23836
23837 2001-02-17  Jim Meyering  <meyering@lucent.com>
23838
23839         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
23840         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
23841         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
23842         UnixWare 7.1.1.
23843
23844         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
23845         rather than AC_CACHE_VAL.
23846
23847 2001-02-17  Jim Meyering  <meyering@lucent.com>
23848
23849         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
23850         around included file name.
23851
23852         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
23853
23854         * lib/strftime.c: Update from GNU libc (the only changes were to
23855         comments).
23856
23857 2001-02-17  Jim Meyering  <meyering@lucent.com>
23858
23859         * lib/regex.c: Update from libc.
23860
23861 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
23862
23863         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
23864         clash.
23865
23866 2001-02-16  Paul Eggert  <eggert@twinsun.com>
23867
23868         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
23869         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
23870         Reported by Mark Hounschell via Paul Eggert.
23871
23872 2001-02-07  Jim Meyering  <meyering@lucent.com>
23873
23874         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
23875
23876 2001-02-05  Jim Meyering  <meyering@lucent.com>
23877
23878         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
23879         it includes the patch required for `large file' support with at least
23880         HP-UX's 10.20 /bin/cc.
23881
23882 2001-02-03  Jim Meyering  <meyering@lucent.com>
23883
23884         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
23885         AS_IF, now that it works once again (mysteriously).
23886         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
23887
23888 2001-01-30  Jim Meyering  <meyering@lucent.com>
23889
23890         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
23891         * m4/chown.m4: Rename conftestchown to conftest.chown.
23892         * m4/rename.m4: s/conftestdir/conftest.d1/ and
23893         s/conftestdir2/conftest.d2/.
23894         * m4/utimes.m4: s/conftestdata/conftest.data/
23895         Inspired by Pavel Roskin's change in autoconf.
23896
23897 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
23898
23899         * lib/config.charset: Update for FreeBSD 4.2.
23900
23901 2001-01-27  Jim Meyering  <meyering@lucent.com>
23902
23903         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
23904         a use of AS_IF.
23905         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
23906
23907 2001-01-26  Jim Meyering  <meyering@lucent.com>
23908
23909         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
23910         quotearg.c includes it.
23911
23912 2001-01-26  Jim Meyering  <meyering@lucent.com>
23913
23914         * lib/quotearg.c: Include stddef.h.
23915         * lib/quote.c: Include stddef.h.
23916         Reported by Axel Kittenberger.
23917
23918         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
23919         line in double quotes so that it evokes a better diagnostic.
23920         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
23921         Reported by Axel Kittenberger.
23922
23923 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
23924
23925         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
23926         as if it was a `charset'.
23927
23928 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
23929
23930         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
23931         has const.
23932
23933 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
23934
23935         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
23936         to avoid a warning.  Add back 'const' to inptr.
23937
23938 2001-01-20  Jim Meyering  <meyering@lucent.com>
23939
23940         Be sure that headers are checked before used in code compiled
23941         for the type checks.
23942         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
23943         In place of that, invoke jm_CHECK_ALL_TYPES.
23944         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
23945         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
23946         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
23947         The check for ssize_t was mistakenly run before the test for unistd.h.
23948
23949         The configure-time check for stdbool.h was missing.
23950         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
23951         (jm_PREREQ_HASH): New function.
23952
23953 2001-01-17  Jim Meyering  <meyering@lucent.com>
23954
23955         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
23956         for autoconf-2.49c.
23957         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
23958
23959 2001-01-16  Jim Meyering  <meyering@lucent.com>
23960
23961         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
23962         From Bruno Haible.
23963
23964 2001-01-14  Jim Meyering  <meyering@lucent.com>
23965
23966         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
23967         foo and bar.  Create conftestdir/ in the script, not in the C code.
23968         Remove directories in the script, not in the C code.
23969         Remove conftestdir{,2} before trying to create the directory.
23970         Make the entire configure script fail if the mkdir fails.
23971
23972 2001-01-14  Jim Meyering  <meyering@lucent.com>
23973
23974         * lib/rename.c: New file.  From Volker Borchert.
23975         Include stdlib.h, string.h or strings.h, and xalloc.h.
23976         Use strip_trailing_slashes rather than open-coding it.
23977
23978 2001-01-03  Paul Eggert  <eggert@twinsun.com>
23979
23980         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
23981
23982 2001-01-03  Jim Meyering  <meyering@lucent.com>
23983
23984         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
23985         of local `inptr' to avoid warning with some system declarations of
23986         iconv.
23987
23988 2001-01-02  Volker Borchert  <bt@teknon.de>
23989
23990         * m4/rename.m4: New file.
23991         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
23992
23993 2001-01-01  Jim Meyering  <meyering@lucent.com>
23994
23995         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
23996         even on systems with utmpx.h.  It's necessary for the declaration of
23997         utmp's ut_user member.  Reported by Andreas Jaeger.
23998
23999         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
24000         available. They are required for the declarations of getgrgid and
24001         getpwuid resp.
24002         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
24003         Reported by Andreas Jaeger.
24004
24005 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
24006
24007         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
24008         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
24009         so `make install' also works in VPATH builds.
24010
24011 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
24012
24013         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
24014         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
24015         can be used in subdirectories.
24016
24017 2000-12-29  Paul Eggert  <eggert@twinsun.com>
24018
24019         * lib/modechange.c: Do not assume that mode_t uses the
24020         traditional octal encoding.  E.g. "chmod 1 FOO" should set
24021         the other-execute bit of FOO even if S_IXOTH != 1.
24022
24023         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
24024         WOTH, XOTH, ALLM): New macros.
24025         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
24026          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
24027         Use them.
24028         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
24029         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
24030         (mode_compile):
24031         No need to use uintmax_t; unsigned long is long enough.
24032         Don't bother to get suffix since we don't use it.
24033
24034 2000-12-26  Jim Meyering  <meyering@lucent.com>
24035
24036         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
24037         better with autoheader.
24038
24039 2000-12-24  Jim Meyering  <meyering@lucent.com>
24040
24041         * lib/hash.c (is_prime): Return explicit boolean values.
24042         (hash_get_first): Return NULL to appease Irix5.6's 89.
24043         Reported by Nelson Beebe.
24044
24045 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
24046
24047         * lib/localcharset.c (locale_charset): Add support for Win32.
24048
24049 2000-12-18  Paul Eggert  <eggert@twinsun.com>
24050
24051         * lib/physmem.h, lib/physmem.c: New files.
24052
24053         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
24054         (noinst_HEADERS): Add physmem.h.
24055
24056         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
24057         't' for compatibility with Solaris 8 sort.
24058
24059 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
24060
24061         * lib/config.charset: Add support for BeOS.
24062
24063 2000-12-17  Jim Meyering  <meyering@lucent.com>
24064
24065         * m4/dos.m4 (jm_AC_DOS): New file and macro.
24066         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
24067
24068 2000-12-16  Jim Meyering  <meyering@lucent.com>
24069
24070         This bug had a serious impact on chown: `chown N:M FILE' (for integer
24071         N and M) would have treated it like `chown N:N FILE'.
24072
24073         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
24074
24075 2000-12-16  Jim Meyering  <meyering@lucent.com>
24076
24077         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
24078         SHELLS_FILE to a file name that's useful on djgpp systems.
24079         Include stdlib.h.
24080         (ADDITIONAL_DEFAULT_SHELLS): Define.
24081         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
24082         Based mostly on a patch from Prashant TR.
24083
24084 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
24085
24086         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
24087         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
24088         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
24089
24090 2000-12-08  Andreas Schwab  <schwab@suse.de>
24091
24092         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
24093         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
24094
24095 2000-12-07  Jim Meyering  <meyering@lucent.com>
24096
24097         * lib/stripslash.c (ISSLASH): Define.
24098         (strip_trailing_slashes): Use ISSLASH rather than comparing against
24099         `/'.
24100         From Prashant TR.
24101
24102         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
24103         (dir_name_r): Declare this function as static.
24104         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
24105         manifest itself on a name containing a mix of slashes and
24106         backslashes.
24107         Make this function work with names starting with a DOS-style
24108         drive letter and colon prefix.
24109         (dir_name): Append `.' if necessary.
24110         Based mostly on patches from Prashant TR and Eli Zaretskii.
24111
24112         * lib/dirname.h (dir_name_r): Remove prototype.
24113
24114 2000-12-06  Paul Eggert  <eggert@twinsun.com>
24115
24116         * m4/off_t-format.m4: Remove this file.
24117         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
24118
24119 2000-12-06  Jim Meyering  <meyering@lucent.com>
24120
24121         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
24122         replacement strtoull, we may well need the replacement strtoul, too.
24123         Check for declarations of strtoul and strtoull.
24124         Check for strtol.  Mainly as a cue to cause automake to include
24125         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
24126         Check for limits.h -- strtol.c needs it.
24127
24128 2000-12-05  Jim Meyering  <meyering@lucent.com>
24129
24130         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
24131
24132 2000-12-04  Jim Meyering  <meyering@lucent.com>
24133
24134         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
24135         Also include memory.h, stdlib.h, unistd.h if appropriate.
24136         Reported by Andreas Jaeger (conflicting declaration of malloc).
24137
24138 2000-12-02  Jim Meyering  <meyering@lucent.com>
24139
24140         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
24141         * m4/jm-macros.m4 (jm_MACROS): require it.
24142
24143 2000-12-02  Jim Meyering  <meyering@lucent.com>
24144
24145         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
24146
24147 2000-12-01  Paul Eggert  <eggert@twinsun.com>
24148
24149         * lib/memrchr.c: Include <config.h> before any system include file.
24150
24151 2000-11-30  Jim Meyering  <meyering@lucent.com>
24152
24153         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
24154
24155 2000-11-30  Jim Meyering  <meyering@lucent.com>
24156
24157         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
24158
24159 2000-11-29  Paul Eggert  <eggert@twinsun.com>
24160
24161         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
24162
24163 2000-11-26  Jim Meyering  <meyering@lucent.com>
24164
24165         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
24166
24167 2000-11-22  Paul Eggert  <eggert@twinsun.com>
24168
24169         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
24170         size of (size_t) -1; it's not portable.
24171
24172 2000-11-17  Jim Meyering  <meyering@lucent.com>
24173
24174         * lib/strstr.c: Update from GNU libc.
24175
24176 2000-11-17  Akim Demaille  <akim@epita.fr>
24177
24178         * lib/obstack.h: Formatting changes.
24179         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
24180         prevent type checking.
24181         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
24182         cast the value to (void *): assigning a `foo *' to a `void *'
24183         variable is valid.
24184         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
24185
24186 2000-11-16  Jim Meyering  <meyering@lucent.com>
24187
24188         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
24189
24190 2000-11-11  Jim Meyering  <meyering@lucent.com>
24191
24192         * lib/error.c: Add a couple #includes, merging from GNU libc version.
24193
24194 2000-11-10  Jim Meyering  <meyering@lucent.com>
24195
24196         * lib/obstack.h: Update from GNU libc.
24197         * lib/obstack.c: Likewise.
24198
24199 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
24200
24201         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
24202
24203 2000-11-06  Paul Eggert  <eggert@twinsun.com>
24204
24205         * lib/getusershell.c (setusershell): Use rewind rather than
24206         fseek/fseeko, to avoid configuration hassles with fseeko.
24207         Don't bother opening SHELLS_FILE if shellstream is NULL;
24208         it's not necessary.
24209
24210 2000-11-05  Jim Meyering  <meyering@lucent.com>
24211
24212         * lib/makepath.h (make_dir): Declare.
24213         * lib/makepath.c (make_dir): Remove `static' attribute.
24214         Tweak a comment.
24215
24216 2000-11-04  Jim Meyering  <meyering@lucent.com>
24217
24218         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
24219
24220 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
24221
24222         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
24223         last one in a bucket, advance to the next bucket.
24224
24225 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
24226
24227         * lib/fnmatch.c: Do not comment out all the code if we are using
24228         the GNU C library, because in some cases we are replacing buggy
24229         code in the GNU C library itself.
24230
24231 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
24232
24233         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
24234         (regex_compile): Catch bogus \(\1\).
24235
24236 2000-10-30  Paul Eggert  <eggert@twinsun.com>
24237
24238         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
24239         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
24240         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
24241
24242 2000-10-30  Paul Eggert  <eggert@twinsun.com>
24243
24244         * lib/error.h, getline.h, modechange.h:
24245         Remove "2000" from Copyright line, as the file hasn't been
24246         changed this year other than in the copyright notice.
24247
24248         * lib/xalloc.h: Add "2000" to Copyright line, as this file
24249         was changed this year.
24250
24251 2000-10-29  Jim Meyering  <meyering@lucent.com>
24252
24253         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
24254         renaming.
24255         * m4/ls-mntd-fs.m4: Likewise
24256
24257 2000-10-29  Jim Meyering  <meyering@lucent.com>
24258
24259         * lib/xstat.in: Fix grammar in comment.
24260
24261 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
24262
24263         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
24264         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
24265         doesn't define __restrict_arr.
24266
24267 2000-10-28  Jim Meyering  <meyering@lucent.com>
24268
24269         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
24270         (jm_PREREQ_MEMCHR): New function.
24271
24272 2000-10-28  Jim Meyering  <meyering@lucent.com>
24273
24274         * lib/memchr.c: Update from libc.
24275         Adjust for portability:
24276         [HAVE_STDLIB_H]: Include stdlib.h.
24277         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
24278         Undef __memchr, too.
24279         [!weak_alias]: Define __memchr to memchr.
24280
24281         * lib/regex.c: Update from libc.
24282         * lib/regex.h: Likewise.
24283         * lib/getopt1.c: Likewise.
24284         * lib/memcmp.c: Likewise.
24285
24286         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
24287         Avoid using fseek, when possible -- it's broken by design.
24288         Patch by Ulrich Drepper.
24289
24290 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
24291
24292         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
24293         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
24294         Giving in to popular pressure to shut up the compiler with casts.
24295
24296 2000-10-26  Jim Meyering  <meyering@lucent.com>
24297
24298         * lib/strftime.c: Update from libc.
24299
24300 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
24301
24302         * regex.c: More `unsigned char' -> `re_char' changes.
24303         Also change several `int' into `re_wchar_t'.
24304         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
24305         (PUSH_FAILURE_POINTER): Don't cast any more.
24306         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
24307         We want GCC to complain, since this piece of code makes
24308         re_match non-reentrant, which *should* be fixed.
24309         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
24310         (EXTEND_BUFFER): Use RETALLOC.
24311         (SET_LIST_BIT): Don't cast.
24312         (re_wchar_t): New type.
24313         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
24314         that those two functions will always properly return.
24315         (IMMEDIATE_QUIT_CHECK): Cast to void.
24316         (analyse_first): Use recursion rather than an explicit stack.
24317         (re_compile_fastmap): Can't fail anymore.
24318         (re_search_2): Don't check re_compile_fastmap for failure.
24319         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
24320         Now also sets the new value (passed in a new argument).
24321         (re_match_2_internal): Use it.
24322         Also, use a new var `reg' of type size_t when looping through regs
24323         rather than reuse the inappropriate `mcnt'.
24324
24325 2000-10-25  Jim Meyering  <meyering@lucent.com>
24326
24327         * lib/obstack.c: Update from libc.
24328
24329 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
24330
24331         * regex.c (regex_compile): Change the way of handling a range from
24332         a char less than 256 to a char not less than 256.
24333
24334 2000-10-24  Andrew Innes  <andrewi@gnu.org>
24335
24336         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
24337         NT-Emacs only.
24338         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
24339         so that re_search functions only quit when callers expect them to.
24340
24341 2000-10-23  Jim Meyering  <meyering@lucent.com>
24342
24343         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
24344         wrong.  That set_locale call must not have any side effects.
24345         From Paul Eggert.
24346
24347 2000-10-22  Jim Meyering  <meyering@lucent.com>
24348
24349         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
24350         [CYCLIC]: Remove now-unused definition.
24351
24352         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
24353         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
24354         Suggestion from Ulrich Drepper.
24355
24356 2000-10-21  Jim Meyering  <meyering@lucent.com>
24357
24358         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
24359         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
24360         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
24361
24362 2000-10-21  Jim Meyering  <meyering@lucent.com>
24363
24364         * lib/dirname.c (memrchr): Declare if necessary.
24365         (dir_name): Remove the restriction that there be no
24366         trailing slashes.  Now, this code skips past them, effectively
24367         ignoring them.
24368         [TEST_DIRNAME] (main): New unit tests.
24369
24370         * lib/memrchr.c: New file from GNU libc.
24371         Undef __memrchr, too.
24372         [!weak_alias]: Define __memrchr to memrchr.
24373         Guard weak_alias use with `#ifdef weak_alias'.
24374
24375 2000-10-21  Jim Meyering  <meyering@lucent.com>
24376
24377         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
24378         (dir_name): Use dir_name_r.
24379         * lib/dirname.h (dir_name_r): Declare it.
24380
24381 2000-10-17  Jim Meyering  <meyering@lucent.com>
24382
24383         * lib/quote.h (PARAMS): Define and use.
24384         Reported by Akim Demaille.
24385
24386         * lib/getopt.c: Update from libc.
24387
24388 2000-10-16  Jim Meyering  <meyering@lucent.com>
24389
24390         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
24391         setlocale.
24392         From Jan Fedak.
24393
24394 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
24395
24396         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
24397
24398 2000-09-25  Jim Meyering  <meyering@lucent.com>
24399
24400         * lib/md5.h (rol): Define (from GnuPG).
24401
24402         * lib/sha.c: Give credit (GnuPG) where due.
24403         (M): Use rol rather than open-coding it.
24404         Add a FIXME comment.
24405
24406 2000-09-21  Jim Meyering  <meyering@lucent.com>
24407
24408         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
24409         Reported by Michael Stone.
24410
24411 2000-09-20  Jim Meyering  <meyering@lucent.com>
24412
24413         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
24414         (noinst_HEADERS): Add sha.h.
24415         Based on code from Scott G. Miller and from GnuPG.
24416
24417 2000-09-18  Jim Meyering  <meyering@lucent.com>
24418
24419         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
24420         LIBS. Otherwise, everyone ends up linking with -lelf for some
24421         configurations.
24422         Reported by Mike Stone.
24423
24424 2000-09-15  Jim Meyering  <meyering@lucent.com>
24425
24426         * lib/regex.c: Update from libc.
24427
24428 2000-09-10  Jim Meyering  <meyering@lucent.com>
24429
24430         * lib/getopt.c (_getopt_internal): Update from glibc.
24431
24432 2000-09-09  Jim Meyering  <meyering@lucent.com>
24433
24434         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
24435         think it should be used as a general replacement for isascii.
24436         * lib/fnmatch.c: Likewise.
24437         * lib/mbswidth.c: Likewise
24438         * lib/regex.c: Likewise.
24439
24440         Don't use atoi.
24441         * lib/userspec.c: Include sys/param.h and limits.h.
24442         Include xstrtol.h.
24443         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
24444         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
24445         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
24446         UID, GID.  Check range.
24447
24448 2000-09-06  Jim Meyering  <meyering@lucent.com>
24449
24450         * lib/getopt.c (_getopt_internal): Update from glibc.
24451
24452 2000-08-30  Jim Meyering  <meyering@lucent.com>
24453
24454         * lib/strftime.c: Merge in changes from GNU libc.
24455
24456 2000-08-26  Jim Meyering  <meyering@lucent.com>
24457
24458         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
24459         * m4/fpending.m4: New file.
24460
24461 2000-08-26  Jim Meyering  <meyering@lucent.com>
24462
24463         * lib/closeout.c: Include "__fpending.h".
24464         (close_stdout_status): Return right away if there's nothing to flush.
24465
24466         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
24467         * lib/__fpending.c: New file.
24468         * lib/__fpending.h: New file.
24469
24470 2000-08-20  Jim Meyering  <meyering@lucent.com>
24471
24472         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
24473         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
24474         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
24475
24476 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
24477
24478         Improve fileutils installation on systems where running
24479         programs (like install) can't be unlinked.
24480         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
24481         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
24482
24483 2000-08-07  Paul Eggert  <eggert@twinsun.com>
24484
24485         Standardize on "memory exhausted" instead of "Memory exhausted"
24486         or "virtual memory exhausted".
24487         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
24488         "virtual memory exhausted".
24489         * lib/same.c (same_name): Invoke xalloc_die instead of printing
24490         our own message.
24491         * lib/userspec.c (parse_user_spec): Likewise.
24492         * lib/bumpalloc.h: comment fix
24493         * lib/same.c, userspec.c: Include xalloc.h.
24494
24495         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
24496         not char *const and pointing to a constant array.
24497         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
24498         (xrealloc): Comment fix.
24499
24500         * lib/userspec.c (parse_user_spec):
24501         Don't translate a message until just before returning,
24502         to avoid unnecessary translation.
24503
24504 2000-08-07  Jim Meyering  <meyering@lucent.com>
24505
24506         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
24507         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
24508         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
24509         getgroups.c, gethostname.c, getopt.h, group-member.c,
24510         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
24511         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
24512         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
24513         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
24514         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
24515         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
24516         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
24517         yesno.c: Back out Copyright date changes for each file with no change
24518         this year.  This eases coordination with other programs using the same
24519         source code modules.  From Paul Eggert.
24520
24521 2000-08-06  Paul Eggert  <eggert@twinsun.com>
24522
24523         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
24524         not char, for compatibility with glibc 2.1.3 strftime.c.
24525
24526 2000-08-03  Greg McGary  <greg@mcgary.org>
24527
24528         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
24529         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
24530         (EXTEND_BUFFER): Use them.
24531
24532 2000-08-01  Jim Meyering  <meyering@lucent.com>
24533
24534         * lib/dirname.c (ISSLASH): Define.
24535         (BACKSLASH_IS_PATH_SEPARATOR): Define.
24536         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
24537         both `\' and `/' may be use as path separators.
24538         Based on a patch from Prashant TR.
24539
24540 2000-07-31  Paul Eggert  <eggert@twinsun.com>
24541
24542         * lib/quotearg.c (quotearg_n_options): Don't make the initial
24543         slot vector a constant, since it might get modified.
24544
24545 2000-07-31  Jim Meyering  <meyering@lucent.com>
24546
24547         * lib/xmalloc.c: Use `virtual memory exhausted', not
24548         `Memory exhausted'.
24549         * lib/obstack.c (print_and_abort): Likewise.
24550
24551 2000-07-30  Paul Eggert  <eggert@twinsun.com>
24552
24553         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
24554         buffer, so that the caller can always quote one small
24555         component of a "memory exhausted" message in slot 0.
24556         From a suggestion by Jim Meyering.
24557
24558 2000-07-30  Jim Meyering  <meyering@lucent.com>
24559
24560         * lib/makepath.c (make_path): Quote the other instance, too.
24561
24562         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
24563         (STATIC_BUF_SIZE): Define.
24564         (quotearg_n_options): Use only statically allocated storage when
24565         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
24566         than STATIC_BUF_SIZE.
24567
24568 2000-07-29  Jim Meyering  <meyering@lucent.com>
24569
24570         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
24571         * lib/dirname.c (dir_name): Likewise.
24572
24573         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
24574         `/'.
24575
24576         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
24577         (dir_name): Assert that there are no trailing slashes.
24578
24579 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
24580
24581         * lib/mbswidth.h (mbswidth): Add a flags argument.
24582         (mbswidth): New declaration.
24583         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
24584         * lib/mbswidth.c (mbswidth): Add a flags argument.
24585         (mbsnwidth): New function.
24586
24587 2000-07-24  Jim Meyering  <meyering@lucent.com>
24588
24589         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
24590
24591 2000-07-23  Paul Eggert  <eggert@twinsun.com>
24592
24593         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
24594
24595 2000-07-23  Paul Eggert  <eggert@twinsun.com>
24596
24597         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
24598         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
24599         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
24600         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
24601         invoke multibyte primitives.
24602
24603 2000-07-23  Paul Eggert  <eggert@twinsun.com>
24604
24605         * lib/quotearg.c:
24606         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
24607         so that mbstate_t is always defined.
24608
24609         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
24610         be 1 in at least one GCC installation, and this configuration
24611         error is likely to be common.  Ignoring MB_LEN_MAX hurts
24612         performance on hosts that have mbrtowc but have only unibyte
24613         locales, but I assume these hosts are rare.
24614
24615 2000-07-23  Paul Eggert  <eggert@twinsun.com>
24616
24617         * lib/mbswidth.c (_XOPEN_SOURCE):
24618         Don't define; this causes problems on Solaris 7.
24619         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
24620
24621 2000-07-23  Jim Meyering  <meyering@lucent.com>
24622
24623         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
24624         too: getgrgid, getpwuid, getuid.
24625
24626 2000-07-23  Jim Meyering  <meyering@lucent.com>
24627
24628         * lib/basename.c (base_name): Add an assertion.
24629
24630 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
24631
24632         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
24633         shadow its mbsinit function.
24634
24635 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
24636
24637         * lib/mbswidth.h: New file.
24638         * lib/mbswidth.c: New file.
24639         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
24640         (noinst_HEADERS): Add mbswidth.h.
24641
24642 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
24643
24644         * lib/config.charset: Add support for FreeBSD. Improve support for
24645         HP-UX and IRIX 6.
24646
24647 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
24648
24649         * m4/mbswidth.m4: New file.
24650         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
24651
24652 2000-07-15  Jim Meyering  <meyering@lucent.com>
24653
24654         * lib/makepath.c: Include quote.h.
24655         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
24656         corresponding argument in a `quote (...)' call.
24657         Give better diagnostics.
24658
24659         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
24660         (noinst_HEADERS): Add quote.h.
24661
24662         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
24663         from tar's src/misc.c.
24664         * lib/quote.h: New file.  Prototypes for same.
24665
24666 2000-07-14  Paul Eggert  <eggert@twinsun.com>
24667
24668         From a suggestion by Bruno Haible.
24669         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
24670         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
24671         to decide whether to define the BeOS workaround macro;
24672         this adjusts to the change to AC_MBSTATE_T.
24673
24674 2000-07-14  Jim Meyering  <meyering@lucent.com>
24675
24676         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
24677         jm_AC_TYPE_UINTMAX_T.
24678
24679 2000-07-13  Paul Eggert  <eggert@twinsun.com>
24680
24681         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
24682
24683         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
24684         quotearg_buffer_restyled): Add support for
24685         clocale_quoting_style.  Undo previous change to
24686         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
24687         and "{RIGHT QUOTATION MARK}" msgids.
24688
24689 2000-07-10  Paul Eggert  <eggert@twinsun.com>
24690
24691         From a suggestion by Bruno Haible.
24692         * m4/mbstate_t.m4 (AC_MBSTATE_T):
24693         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
24694         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
24695         and mbstate_t, to a single-part test that simply defines mbstate_t.
24696         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
24697         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
24698
24699 2000-07-10  Jim Meyering  <meyering@lucent.com>
24700
24701         * m4/strerror_r.m4: Mirror the correction made in autoconf.
24702
24703         * m4/gnu-source.m4: Output to confdefs.h directly.
24704         Suggestion from Akim Demaille.
24705
24706 2000-07-09  Paul Eggert  <eggert@twinsun.com>
24707
24708         The old behavior of quoting `like this' doesn't look good with
24709         newer, ISO-style fonts.  See:
24710         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
24711
24712         Instead, quote "like this" by default.  Let the translator
24713         tailor the locale-specific quoting behavior by providing
24714         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
24715
24716         * lib/quotearg.c (N_): New macro.
24717         (gettext_default): New function.
24718         (quotearg_buffer_restyled): Use
24719         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
24720         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
24721
24722 2000-07-09  Jim Meyering  <meyering@lucent.com>
24723
24724         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
24725         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
24726
24727         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
24728         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
24729
24730 2000-07-09  Jim Meyering  <meyering@lucent.com>
24731
24732         * lib/Most files: Update copyright dates to include 2000.
24733
24734 2000-07-08  Jim Meyering  <meyering@lucent.com>
24735
24736         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
24737         if not defined.
24738         (xgethostname): Remove now-unnecessary #ifdef.
24739         Move declaration of `err' into loop where it's used.
24740
24741 2000-07-05  Paul Eggert  <eggert@twinsun.com>
24742         and Bruno Haible  <haible@clisp.cons.org>
24743
24744         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
24745         only if the test for an object-type mbstate_t fails.  This
24746         prevents us from mistakenly reporting that mbstate_t is a
24747         system object type after we "#define mbstate_t int" to work
24748         around its lack.
24749
24750 2000-07-05  Paul Eggert  <eggert@twinsun.com>
24751         and Bruno Haible  <haible@clisp.cons.org>
24752
24753         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
24754
24755 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
24756
24757         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
24758         to strerror_r.
24759         Include <ctype.h> for use of isalpha.
24760
24761 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
24762
24763         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
24764         by allocating a larger buffer. Test the gethostname return value for
24765         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
24766         returns an error and ENAMETOOLONG isn't defined.
24767
24768 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
24769
24770         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
24771         dimension.
24772
24773 2000-07-04  Jim Meyering  <meyering@lucent.com>
24774
24775         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
24776         of the deprecated AC_CHECKING.
24777
24778 2000-07-04  Jim Meyering  <meyering@lucent.com>
24779
24780         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
24781         Reported by Bruno Haible.
24782
24783 2000-07-04  Jim Meyering  <meyering@lucent.com>
24784
24785         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
24786         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
24787         lacks mbrtowc.
24788
24789 2000-07-03  Paul Eggert  <eggert@twinsun.com>
24790
24791         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
24792         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
24793
24794 2000-07-03  Paul Eggert  <eggert@twinsun.com>
24795         and Bruno Haible  <haible@clisp.cons.org>
24796
24797         * lib/quotearg.c (mbrtowc):
24798         Assign to *pwc, and return 1 only if result is nonzero.
24799         (iswprint): Use ISPRINT when substituting our own mbrtowc.
24800
24801 2000-07-03  Jim Meyering  <meyering@lucent.com>
24802
24803         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
24804
24805 2000-07-03  Jim Meyering  <meyering@lucent.com>
24806
24807         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
24808         This is necessary to get a definition of e.g., UTMP_FILE on
24809         HP-UX 10.20.
24810         From Bob Proulx.
24811
24812 2000-07-02  Jim Meyering  <meyering@lucent.com>
24813
24814         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
24815
24816         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
24817         AC_LIBOBJ(function_name).
24818         * m4/chown.m4: Likewise.
24819         * m4/fnmatch.m4: Likewise.
24820         * m4/ftruncate.m4: Likewise.
24821         * m4/getgroups.m4: Likewise.
24822         * m4/getline.m4: Likewise.
24823         * m4/group-member.m4: Likewise.
24824         * m4/jm-macros.m4: Likewise.
24825         * m4/lstat.m4: Likewise.
24826         * m4/malloc.m4: Likewise.
24827         * m4/memcmp.m4: Likewise.
24828         * m4/nanosleep.m4: Likewise.
24829         * m4/putenv.m4: Likewise.
24830         * m4/realloc.m4: Likewise.
24831         * m4/regex.m4: Likewise.
24832         * m4/stat.m4: Likewise.
24833         * m4/strftime.m4: Likewise.
24834
24835 2000-07-02  Jim Meyering  <meyering@lucent.com>
24836
24837         * lib/quotearg.c (mbstate_t): Don't define here.
24838
24839 2000-07-02  Jim Meyering  <meyering@lucent.com>
24840
24841         * lib/nanosleep.c (SIGCONT): Define if not already defined.
24842
24843 2000-07-01  Jim Meyering  <meyering@lucent.com>
24844
24845         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
24846
24847 2000-07-01  Jim Meyering  <meyering@lucent.com>
24848
24849         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
24850         problem.
24851
24852 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
24853
24854         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
24855         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
24856
24857 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
24858
24859         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
24860         per change in ../m4/ls-mntd-fs.m4.
24861         (read_filesystem_list): Ignore symbolic links.
24862
24863 2000-06-29  Jim Meyering  <meyering@lucent.com>
24864
24865         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
24866         for declaration of strcmp.
24867
24868         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
24869
24870         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
24871         Avoid warning by casting result to `char *' to remove `const'.
24872
24873 2000-06-28  Jim Meyering  <meyering@lucent.com>
24874
24875         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
24876         included by quotearg.c, for which we perform this test.  From
24877         Bruno Haible.
24878
24879 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
24880
24881         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
24882         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
24883         <utmpx.h> exists, put readutmp.o into LIBOBJS.
24884
24885 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
24886
24887         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
24888
24889 2000-06-26  Paul Eggert  <eggert@twinsun.com>
24890
24891         savedir now sets errno on failure and invokes xmalloc to get memory.
24892         Fix a couple of other minor bugs while we're at it.
24893
24894         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
24895         (NAMLEN): Remove macro.
24896         (malloc, realloc): Remove decls.
24897         (stpcpy): Likewise.
24898         ("xalloc.h"): Include.
24899         (NAME_SIZE_DEFAULT): New macro.
24900         (savedir): Use xmalloc / xrealloc to allocate memory.
24901         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
24902         Skip "" directory entries.
24903         Use strlen to calculate directory entry length, since the old method
24904         is rarely used these days and isn't worth supporting.
24905         Don't use a pointer after freeing it.
24906         Check for integer overflow when calculating allocation size.
24907         Use memcpy to copy entries, instead of stpcpy.
24908         Set errno properly when returning NULL.
24909         Check for readdir error.
24910
24911 2000-06-26  Jim Meyering  <meyering@lucent.com>
24912
24913         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
24914
24915 2000-06-25  Jim Meyering  <meyering@lucent.com>
24916
24917         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
24918         Linux header bug when _XOPEN_SOURCE is defined to 500.
24919
24920 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
24921
24922         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
24923         deficiency.
24924
24925 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
24926
24927         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
24928         Include xalloc.h.
24929         Don't include <stdlib.h>.  Don't declare malloc, realloc.
24930
24931 2000-06-24  Jim Meyering  <meyering@lucent.com>
24932
24933         * m4/strerror_r.m4: Revive this file -- to try out an experimental
24934         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
24935         for which strerror does return char*, but which lacks a conveniently
24936         accessible declaration of the function.  If the compile-test says
24937         strerror_r doesn't work, then resort to a `run'-test that works on
24938         BeOS and segfaults on DEC Unix.
24939
24940 2000-06-24  Jim Meyering  <meyering@lucent.com>
24941
24942         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
24943
24944 2000-06-23  Paul Eggert  <eggert@twinsun.com>
24945
24946         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
24947         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
24948
24949 2000-06-23  Paul Eggert  <eggert@twinsun.com>
24950
24951         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
24952         (mbrtowc, mbstate_t): Define substitutes if
24953         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
24954         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
24955         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
24956
24957 2000-06-23  Jim Meyering  <meyering@lucent.com>
24958
24959         * m4/afs.m4: Add missing AC_MSG_RESULT.
24960         Reported by Bruno Haible.
24961
24962         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
24963         Suggestion from Bruno Haible.
24964
24965 2000-06-23  Jim Meyering  <meyering@lucent.com>
24966
24967         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
24968
24969 2000-06-21  Jim Meyering  <meyering@lucent.com>
24970
24971         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
24972
24973 2000-06-21  Jim Meyering  <meyering@lucent.com>
24974
24975         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
24976         (noinst_HEADERS): Add getstr.h.
24977
24978         * lib/getline.c (getstr): Move into a separate file.
24979         * lib/getstr.c (getstr): New file, extracted from getline.c, with
24980         the following changes: new parameter, delim2; both delim[12]
24981         parameters have type `int', not `char'.  The latter would lose
24982         with 8-bit delimiters.
24983         * lib/getstr.h: New file.
24984
24985 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
24986
24987         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
24988         than 1024, return a memory chunk of least possible size, instead
24989         of size PATH_MAX + 2. In the loop, increment the size proportionally.
24990         Use free/xmalloc instead of xrealloc to avoid copying for very long
24991         paths.
24992
24993 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
24994
24995         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
24996         the empty string.
24997
24998 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
24999
25000         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
25001         address, not strdup.  Include <stdlib.h> and don't declare free().
25002
25003 2000-06-19  Jim Meyering  <meyering@lucent.com>
25004
25005         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
25006
25007 2000-06-18  Jim Meyering  <meyering@lucent.com>
25008
25009         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
25010
25011         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
25012         `checking whether...' message to be consistent with that of the
25013         lstat test.
25014
25015 2000-06-18  Jim Meyering  <meyering@lucent.com>
25016
25017         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
25018         Besides, these days every porting target provides a mkdir function.
25019
25020         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
25021         needed. (this snippet comes from src/system.h).
25022
25023 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
25024
25025         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
25026
25027 2000-06-15  Paul Eggert  <eggert@twinsun.com>
25028
25029         * lib/human.c (adjust_value): New function.
25030         (human_readable_inexact): Apply rounding style even when
25031         printing approximate values.
25032
25033 2000-06-14  Paul Eggert  <eggert@twinsun.com>
25034
25035         * lib/human.c (human_readable_inexact): Allow an input block
25036         size that is not a multiple of the output block size, and vice versa.
25037         Reported by Piergiorgio Sartor.
25038
25039 2000-06-14  Paul Eggert  <eggert@twinsun.com>
25040
25041         * lib/getdate.y (get_date): Apply relative times after time
25042         zone indicator, not before.  Reported by Todd A. Jacobs.
25043
25044 2000-06-13  Jim Meyering  <meyering@lucent.com>
25045
25046         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
25047
25048         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
25049
25050 2000-06-12  Paul Eggert  <eggert@twinsun.com>
25051
25052         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
25053
25054 2000-06-12  Jim Meyering  <meyering@lucent.com>
25055
25056         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
25057         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
25058         optional argument.
25059         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
25060         the optional argument, `lib'.
25061
25062 2000-06-08  Jim Meyering  <meyering@lucent.com>
25063
25064         * m4/largefile.m4: Remove file (now that it's part of autoconf).
25065
25066 2000-06-04  Paul Eggert  <eggert@twinsun.com>
25067
25068         Rewrite largefile configuration so that we don't need to run
25069         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
25070         AC_CANONICAL_HOST in configure.in -- jmm]
25071
25072         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
25073         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
25074         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
25075         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
25076         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
25077         All uses changed.
25078         Instead of inspecting the output of getconf, try to compile the
25079         test program without and with the macro definition.
25080         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
25081         for getconf.  Instead, check for the needed flags by compiling
25082         test programs.
25083
25084 2000-06-04  Paul Eggert  <eggert@twinsun.com>
25085
25086         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
25087
25088 2000-06-04  Jim Meyering  <meyering@lucent.com>
25089
25090         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
25091         SunOS 4.1.4 for which gid_t is an unsigned type.
25092
25093 2000-06-03  Jim Meyering  <meyering@lucent.com>
25094
25095         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
25096         now that autoconf requires that.
25097
25098         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
25099         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
25100         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
25101
25102 2000-06-03  Jim Meyering  <meyering@lucent.com>
25103
25104         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
25105
25106 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
25107
25108         * m4/glibc21.m4: New file.
25109         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
25110
25111 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
25112
25113         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
25114         newer, don't install charset.alias.
25115         * lib/config.charset: Change the Linux/glibc rules so they become empty
25116         on glibc-2.1 or newer.
25117
25118 2000-06-02  Jim Meyering  <meyering@lucent.com>
25119
25120         * lib/mountlist.c: Back out last change.  Instead, do this...
25121         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
25122         me_dummy member using the same `ignore'-testing code.
25123         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
25124         fs_type strings.
25125         From Mark D. Roth.
25126
25127 2000-05-29  Jim Meyering  <meyering@lucent.com>
25128
25129         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
25130         mounts with the `ignore' attribute.  Based on a patch from
25131         Mark D. Roth.
25132
25133 2000-05-28  Jim Meyering  <meyering@lucent.com>
25134
25135         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
25136         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
25137         * m4/stat.m4: Likewise.
25138         * m4/lstat.m4: Likewise.
25139         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
25140
25141         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
25142         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
25143
25144 2000-05-26  Jim Meyering  <meyering@lucent.com>
25145
25146         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
25147
25148 2000-05-24  Jim Meyering  <meyering@lucent.com>
25149
25150         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
25151         autoconf requires that.
25152         * m4/lib-check.m4: Likewise.
25153         * m4/jm-macros.m4: Likewise.
25154         * m4/strftime.m4: Likewise.
25155
25156         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
25157         AC_CHECK_DECLS, now that autoconf requires that.
25158
25159 2000-05-22  Jim Meyering  <meyering@lucent.com>
25160
25161         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
25162         * m4/lstat.m4: Likewise.
25163
25164 2000-05-22  Jim Meyering  <meyering@lucent.com>
25165
25166         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
25167
25168 2000-05-20  Jim Meyering  <meyering@lucent.com>
25169
25170         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
25171         (jm_PREREQ): Use it.
25172
25173 2000-05-18  Jim Meyering  <meyering@lucent.com>
25174
25175         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
25176         back, too, since it may have been modified by allocate_entry.
25177         (hash_delete): Rewrite to use neither the assignment operator
25178         nor the comma operator in an if-expression.
25179
25180 2000-05-15  Paul Eggert  <eggert@twinsun.com>
25181
25182         * lib/closeout.c:
25183         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
25184         Remove; no longer needed.
25185         "quotearg.h": Add include.
25186         (file_name): Do not bother to explicitly initialize to NULL; it's less
25187         efficient on some hosts.
25188         (close_stdout_status): Remove test as to whether stdout was already
25189         closed; it breaks for the case "echo x | sort >&-".
25190         Quote file name colons.
25191         Do not assume that _("write error") lacks format strings.
25192
25193 2000-05-15  Jim Meyering  <meyering@lucent.com>
25194
25195         * lib/version-etc.c (version_etc_copyright): Update the copyright
25196         string used in all --version output.
25197
25198 2000-05-14  Jim Meyering  <meyering@lucent.com>
25199
25200         * lib/closeout.c (close_stdout_set_file_name): New function.
25201         (close_stdout_status): Use new file-scoped global.
25202         Return right away if fstat says the stdout file descriptor is invalid.
25203         * lib/closeout.h (close_stdout_set_file_name): Declare.
25204
25205 2000-05-10  Jim Meyering  <meyering@lucent.com>
25206
25207         * lib/closeout.c [default_exit_status]: New file-scoped variable.
25208         (close_stdout_set_status): New function.
25209         * lib/closeout.h (close_stdout_set_status): Declare.
25210
25211 2000-05-09  Jim Meyering  <meyering@lucent.com>
25212
25213         * m4/gettext.m4: Rename this...
25214         * m4/libintl.m4: ...to this.
25215
25216 2000-05-08  Jim Meyering  <meyering@lucent.com>
25217
25218         * lib/long-options.c: Don't include closeout.h.
25219         (parse_long_options): Don't call close_stdout for --version.
25220
25221 2000-05-06  Paul Eggert  <eggert@twinsun.com>
25222
25223         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
25224         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
25225         2.1.3 bug.  This avoids a clash when files like regex.c define
25226         _GNU_SOURCE.
25227
25228 2000-05-06  Jim Meyering  <meyering@lucent.com>
25229
25230         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
25231         (AC_REPLACE_FUNCS): Add strnlen.
25232
25233         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
25234         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
25235
25236         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
25237         AC_SEARCH_LIBS call for nanosleep.
25238         (LIB_NANOSLEEP): Set and AC_SUBST.
25239
25240 2000-05-06  Jim Meyering  <meyering@lucent.com>
25241
25242         * lib/strnlen.c: Undefine __strnlen and strnlen.
25243         [!weak_alias]: Define __strnlen to strnlen.
25244
25245         * lib/atexit.c: New file, from libiberty.
25246
25247 2000-05-06  Jim Meyering  <meyering@lucent.com>
25248
25249         * lib/closeout.c (close_stdout_status): Also check for errors on the
25250         stderr stream.
25251
25252 2000-05-05  Jim Meyering  <meyering@lucent.com>
25253
25254         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
25255         AC_SEARCH_LIBS call for clock_gettime.
25256         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
25257
25258         * m4/search-libs.m4: Update from autoconf.
25259
25260         su doesn't work on Solaris 2.6.
25261         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
25262         <shadow.h>.  Reported by Dragos Harabor.
25263
25264 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
25265
25266         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
25267         memcpy instead of xmalloc, xrealloc, path_concat.
25268         (locale_charset): Treat empty environment variables as absent.
25269         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
25270
25271 2000-05-04  Jim Meyering  <meyering@lucent.com>
25272
25273         * lib/getopt.c: Update from glibc.
25274         * lib/obstack.c: Likewise.
25275         * lib/obstack.h: Likewise.
25276         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
25277         file
25278
25279         * lib/regex.h: Likewise.
25280         * lib/strndup.c: Likewise.
25281         * lib/strnlen.c: New file, from glibc.
25282
25283 2000-05-03  Jim Meyering  <meyering@lucent.com>
25284
25285         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
25286
25287 2000-05-02  Paul Eggert  <eggert@twinsun.com>
25288
25289         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
25290         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
25291         compile-time test, rather than inspecting host and OS, to
25292         decide whether to define _LARGEFILE_SOURCE.
25293
25294 2000-05-01  Jim Meyering  <meyering@lucent.com>
25295
25296         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
25297
25298         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
25299         Based on a patch from Bruno Haible.
25300
25301 2000-05-01  Jim Meyering  <meyering@lucent.com>
25302
25303         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
25304
25305 2000-04-29  Jim Meyering  <meyering@lucent.com>
25306
25307         * lib/path-concat.c: Declare strdup only if it's not defined.
25308         * lib/canon-host.c: Likewise.
25309
25310 2000-04-28  Jim Meyering  <meyering@lucent.com>
25311
25312         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
25313         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
25314         is included first, then limits.h is included by locale.h by libintl.h.
25315         From John David Anglin.
25316
25317 2000-04-25  Jim Meyering  <meyering@lucent.com>
25318
25319         * lib/makepath.c (S_IRWXUGO): Define.
25320         (make_path): Always perform explicit chmod if MODE specifies any
25321         of the `special' permission bits.  Prompted by a bug report against
25322         install from Mate Wierdl and Joost van Baal.
25323
25324 2000-04-18  Jim Meyering  <meyering@lucent.com>
25325
25326         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
25327         (jm_PREREQ): Use it.
25328
25329 2000-04-18  Jim Meyering  <meyering@lucent.com>
25330
25331         * lib/README: New file.
25332
25333         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
25334         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
25335
25336 2000-04-17  Jim Meyering  <meyering@lucent.com>
25337
25338         Get it right :-)
25339         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
25340         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
25341         Suggestion from Akim Demaille.
25342
25343 2000-04-17  Jim Meyering  <meyering@lucent.com>
25344
25345         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
25346         the definition of it to rpl_strftime also defined-away the system's
25347         declaration.
25348
25349 2000-04-15  Jim Meyering  <meyering@lucent.com>
25350
25351         Use `C' to denote so-called `contiguous' files, the same way
25352         that tar does.
25353         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
25354         (ftypelet): Use S_ISCTG.
25355         From Michael Deutschmann.
25356
25357 2000-04-14  Jim Meyering  <meyering@lucent.com>
25358
25359         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
25360         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
25361         clobbered.
25362
25363 2000-04-14  Jim Meyering  <meyering@lucent.com>
25364
25365         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
25366
25367 2000-04-13  Jim Meyering  <meyering@lucent.com>
25368
25369         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
25370         AH_VERBATIM to insert required #ifndef into config.h.in.
25371         Suggestion from Akim Demaille.
25372
25373 2000-04-12  Jim Meyering  <meyering@lucent.com>
25374
25375         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
25376         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
25377         Christian Krackowizer.
25378
25379         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
25380         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
25381         (AC_SYS_LARGEFILE): Require.
25382         (AM_C_PROTOTYPES): Require.
25383
25384 2000-04-08  Jim Meyering  <meyering@lucent.com>
25385
25386         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
25387         names don't conflict.  Reported by Eli Zaretskii.
25388
25389 2000-04-07  Jim Meyering  <meyering@lucent.com>
25390
25391         * lib/putenv.c: Move inclusion of errno.h so it follows that of
25392         sys/types.h, to work around system header problems on AIX 3.2.5.
25393         From Bruno Haible.
25394
25395 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
25396
25397         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
25398         bug.  Deal with the different error behavior of Irix iconv.
25399
25400 2000-04-05  Paul Eggert  <eggert@twinsun.com>
25401
25402         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
25403         IRIX if the installer said otherwise.
25404
25405 2000-04-05  Jim Meyering  <meyering@lucent.com>
25406
25407         Portability tweaks required for ultrix4.3.
25408         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
25409         (jm_CHECK_DECLS): Add getutent to the list of functions.
25410         (_jm_DECL_HEADERS): Add utmpx.h.
25411         From John David Anglin.
25412
25413         * m4/strftime.m4: Back out the 2000-04-02 change.
25414         Instead of that change, simply undefine putenv in the test program.
25415
25416 2000-04-05  Jim Meyering  <meyering@lucent.com>
25417
25418         Portability tweaks required for ultrix4.3.
25419         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
25420         getutent.
25421         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
25422         * lib/canon-host.c: Declare strdup.
25423         * lib/path-concat.c: Likewise.
25424         From John David Anglin.
25425
25426 2000-04-04  Jim Meyering  <meyering@lucent.com>
25427
25428         Be more DOS 8.3-friendly.
25429         * lib/ref-add.sin: Renamed from ref-add.sed.in.
25430         * lib/ref-del.sin: Renamed from ref-del.sed.in.
25431         * lib/Makefile.am: Reflect renaming.
25432         Reported by Eli Zaretskii.
25433
25434         Use a temporary file name that won't clash with `charset.alias'
25435         in the DOS 8.3 name space.
25436         * lib/Makefile.am (charset_tmp): Define.
25437         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
25438         (uninstall-local): Likewise.
25439         Reported by Eli Zaretskii.
25440
25441 2000-04-03  Jim Meyering  <meyering@lucent.com>
25442
25443         * m4/gettext.m4: Fix typo in comment.
25444
25445         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
25446         textutils/configure.in).  Suggestion from Paul Eggert.
25447         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
25448
25449 2000-04-02  Paul Eggert  <eggert@twinsun.com>
25450
25451         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
25452         variable in the shell rather than using putenv, which isn't
25453         portable.  This avoids the configure-time inter-test dependency
25454         on the potentially-renamed putenv function.
25455
25456 2000-03-30  Paul Eggert  <eggert@twinsun.com>
25457
25458         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
25459         before checking struct stat.st_blksize, so that
25460         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
25461
25462 2000-03-29  Paul Eggert  <eggert@twinsun.com>
25463
25464         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
25465         since strftime.c uses HAVE_STRFTIME to decide whether to use
25466         the underlying strftime.
25467
25468 2000-03-29  Paul Eggert  <eggert@twinsun.com>
25469
25470         * lib/time/strftime.c (my_strftime): Make sure we call the system
25471         strftime, not ourselves, when invoking the underlying strftime.
25472
25473 2000-03-24  Jim Meyering  <meyering@lucent.com>
25474
25475         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
25476         (charset_alias): Define.
25477         (install-exec-local): Factor out common code.
25478         (uninstall-local): Split lines longer than 80.
25479         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
25480         (SUFFIXES): Define.
25481         (.sed.in.sed): New rule.  Don't redirect directly to $@.
25482         (CLEANFILES): Add ref-add.sed and ref-del.sed.
25483
25484 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
25485
25486         * lib/config.charset: Output a line containing "Packages using this
25487         file".
25488         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
25489         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
25490         ref-del.sed): New rules.
25491
25492 2000-03-17  Jim Meyering  <meyering@lucent.com>
25493
25494         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
25495         Otherwise, include <strings.h>
25496
25497 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
25498
25499         * lib/unicodeio.c (utf8_wctomb): New function.
25500         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
25501         format instead of in UCS-4 with platform dependent endianness.
25502
25503 2000-03-10  Jim Meyering  <meyering@lucent.com>
25504
25505         * m4/lib-check.m4: Look for getspnam in -lgen, too.
25506         From Marco Franzen.
25507
25508 2000-03-07  Paul Eggert  <eggert@twinsun.com>
25509
25510         * lib/savedir.c (savedir): Work even if directory size is
25511         negative; this can happen with some screwy NFS configurations.
25512
25513 2000-03-06  Jim Meyering  <meyering@lucent.com>
25514
25515         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
25516         if it's NULL (because we ran out of memory).  From Bruno Haible.
25517
25518 2000-03-05  Jim Meyering  <meyering@lucent.com>
25519
25520         * lib/localcharset.c ("path-concat.h"): Include.
25521         (get_charset_aliases): Use path_concat instead of ANSI string
25522         concatenation.
25523
25524         * lib/unicodeio.h (PARAMS): Define.
25525         Use it to guard prototype.
25526
25527 2000-03-04  Jim Meyering  <meyering@lucent.com>
25528
25529         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
25530         for lib/localcharset.c.
25531
25532 2000-03-04  Jim Meyering  <meyering@lucent.com>
25533
25534         * lib/Makefile.am (install-exec-local): Create $(libdir) before
25535         installing into it.
25536         (uninstall-local): Uncomment this rule so `make distcheck' works
25537         once again.
25538
25539         * lib/unicodeio.c (<errno.h>): Include it.
25540         (errno): Declare if not defined.
25541
25542         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
25543
25544         * lib/config.charset: New version, incorporating remarks from a linux
25545         i18n mailing list.  From Bruno Haible.
25546
25547 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
25548
25549         * m4/codeset.m4: New file.
25550         * m4/iconv.m4: New file.
25551         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
25552
25553 2000-03-03  Jim Meyering  <meyering@lucent.com>
25554
25555         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
25556
25557 2000-03-02  Jim Meyering  <meyering@lucent.com>
25558
25559         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
25560         the messages come out on separate lines.
25561
25562         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
25563         rather than jm_CHECK_DECLARATIONS.
25564         * m4/decl.m4: Remove now-unused file.
25565
25566         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
25567         geteuid.
25568
25569 2000-03-02  Jim Meyering  <meyering@lucent.com>
25570
25571         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
25572
25573 2000-03-01  Jim Meyering  <meyering@lucent.com>
25574
25575         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
25576         * lib/unicodeio.c: Likewise.
25577
25578 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
25579
25580         * lib/config.charset: New file.
25581         * lib/localcharset.c: New file.
25582         * lib/unicodeio.h, lib/unicodeio.c: New files.
25583         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
25584         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
25585         (noinst_HEADERS): Add unicodeio.h.
25586         (all-local, install-exec-local, charset.alias): New targets.
25587
25588 2000-02-28  Paul Eggert  <eggert@twinsun.com>
25589
25590         * lib/quotearg.c (ALERT_CHAR): New macro.
25591         (quotearg_buffer_restyled): Use it.
25592
25593 2000-02-27  Jim Meyering  <meyering@lucent.com>
25594
25595         * m4/check-decl.m4: Add getenv to the list.
25596
25597 2000-02-27  Jim Meyering  <meyering@lucent.com>
25598
25599         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
25600         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
25601
25602         * lib/backupfile.c: Guard inclusion of stdlib.h with
25603         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
25604         Declare malloc if needed.
25605
25606         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
25607         `#ifndef HAVE_DECL..'
25608         now that autoconf always defines the HAVE_DECL_ symbols.
25609         * lib/human.c: Likewise.
25610         * lib/same.c: Likewise.
25611         * lib/strtoumax.c: Likewise.
25612
25613         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
25614         declaration check was not run.
25615         * lib/hash.c: Likewise.
25616         * lib/human.c: Likewise.
25617         * lib/same.c: Likewise.
25618         * lib/strtoumax.c: Likewise.
25619
25620         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
25621         `.', then first look up the entire `.'-containing string as a login
25622         name.
25623
25624 2000-02-23  Jim Meyering  <meyering@lucent.com>
25625
25626         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
25627         in place of my hack.
25628
25629 2000-02-18  Paul Eggert  <eggert@twinsun.com>
25630
25631         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
25632         (textint): New typedef.
25633         (parser_control): Member year changed from int to textint.
25634         All uses changed.
25635         (YYSTYPE): Removed; replaced by %union with int and textint members.
25636         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
25637         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
25638         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
25639         (tSNUMBER, tUNUMBER): Now of type <textintval>.
25640         (date, number, to_year): Use width of number in digits, not its value,
25641         to determine whether it's a 2-digit year, or a 2-digit time.
25642         (yylex): Store number of digits of numeric tokens.
25643         Reported by John Kendall.
25644
25645         (parser_control): Changed from struct parser_control to typedef (for
25646         consistency).  All uses changed.
25647
25648         (tID): Removed; not used.
25649         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
25650
25651 2000-02-14  Paul Eggert  <eggert@twinsun.com>
25652
25653         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
25654         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
25655
25656 2000-02-12  Jim Meyering  <meyering@lucent.com>
25657
25658         * lib/userspec.c (ISDIGIT): Define it.
25659         (isdigit): Remove definition.
25660         (is_number): Use ISDIGIT, not isdigit.
25661         <libintl.h>: Include.
25662         (_ and N_): Define.
25663         (parse_user_spec): Mark translatable strings.
25664
25665 2000-02-10  Jim Meyering  <meyering@lucent.com>
25666
25667         With these changes, nanosleep.[ch] are finally enough like the other
25668         lib/* replacement files to compile on a few more losing systems.
25669
25670         * lib/nanosleep.h: Don't include config.h.
25671         Remove prototype from declaration of nanosleep.
25672         (PARAMS): Remove now-unneeded definition.
25673         * lib/nanosleep.c: #undef nanosleep.
25674         (rpl_nanosleep): Rename from nanosleep.
25675
25676 2000-02-10  Jim Meyering  <meyering@lucent.com>
25677
25678         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
25679         gnu_nanosleep to rpl_nanosleep.
25680
25681 2000-02-09  Jim Meyering  <meyering@lucent.com>
25682
25683         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
25684         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
25685
25686 2000-02-08  Akim Demaille  <akim@epita.fr>
25687
25688         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
25689         `[' and `]' and remove uses of `changequote'.
25690         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
25691         (AC_SYS_LARGEFILE): Likewise.
25692         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
25693         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
25694         of changequote.
25695         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
25696         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
25697         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
25698         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
25699
25700 2000-02-05  Jim Meyering  <meyering@lucent.com>
25701
25702         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
25703         Remove explicit use of AC_HEADER_TIME.  It is required by
25704         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
25705         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
25706         in autoconf whereby the expansion of the latter ended up preceding
25707         the expansion of its prerequisite, AC_HEADER_TIME.
25708         Reported by Volker Borchert.
25709
25710 2000-02-03  Jim Meyering  <meyering@lucent.com>
25711
25712         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
25713
25714 2000-02-03  Jim Meyering  <meyering@lucent.com>
25715
25716         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
25717         rather than with `#if HAVE_UTMPNAME'.
25718
25719 2000-02-02  Jim Meyering  <meyering@lucent.com>
25720
25721         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
25722         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
25723         Reported by Eli Zaretskii.
25724
25725 2000-02-01  Jim Meyering  <meyering@lucent.com>
25726
25727         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
25728
25729 2000-01-31  Jim Meyering  <meyering@lucent.com>
25730
25731         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
25732         functions.  Add the time.h and sys/time.h headers along with the
25733         AC_REQUIRE'ment of AC_HEADER_TIME.
25734
25735 2000-01-31  Jim Meyering  <meyering@lucent.com>
25736
25737         * lib/nanosleep.h (nanosleep): Guard declaration with
25738         `#if ! HAVE_DECL_NANOSLEEP'.
25739         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
25740         the declaration in that vendor's sys/timers.h.
25741         Reported by Christian Krackowizer.
25742
25743         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
25744         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
25745         (ISPRINT): Likewise.
25746         Reported by Tom Tromey.
25747
25748 2000-01-30  Jim Meyering  <meyering@lucent.com>
25749
25750         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
25751
25752         * m4/prereq.m4 (utmp_includes): Define.
25753         Check for ut_user and ut_name members in both struct utmpx
25754         and struct utmp.
25755
25756 2000-01-30  Jim Meyering  <meyering@lucent.com>
25757
25758         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
25759         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
25760         header files where only utmpx.ut_user is declared.
25761
25762         * lib/readutmp.h (UT_USER): Define.
25763
25764 2000-01-29  Jim Meyering  <meyering@lucent.com>
25765
25766         * m4/lib-check.m4: New file containing library-related checks from
25767         fileutils and sh-utils (textutils had none).
25768
25769 2000-01-28  Jim Meyering  <meyering@lucent.com>
25770
25771         * m4/perl.m4: Change format of warning message to look more like that
25772         from the missing script.  Suggestion from François Pinard.
25773
25774 2000-01-25  Jim Meyering  <meyering@lucent.com>
25775
25776         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
25777         well as time.h in the compile check.
25778         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
25779         Fix typo in cross-compiling case: s/yes/no/.
25780
25781 2000-01-23  Jim Meyering  <meyering@lucent.com>
25782
25783         * m4/jm-macros.m4: Move df-related tests here from
25784         fileutils/configure.in
25785
25786         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
25787         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
25788
25789         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
25790         s/space/ac_fsusage_space/.
25791         (jm_FILE_SYSTEM_USAGE): Take two parameters.
25792
25793         * m4/ftruncate.m4: New file (derived from part of
25794         fileutils/configure.in).
25795         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
25796         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
25797
25798         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
25799         AC_SUBST these here, rather than just in sh-util/configure.in, so
25800         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
25801         all the same.
25802         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
25803         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
25804         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
25805         (AC_SUBST(POW_LIBM)): Likewise.
25806         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
25807
25808 2000-01-23  Jim Meyering  <meyering@lucent.com>
25809
25810         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
25811         obstack.c.
25812
25813 2000-01-22  Jim Meyering  <meyering@lucent.com>
25814
25815         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
25816
25817         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
25818
25819         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
25820         configure.in
25821         (AC_CHECK_HEADERS): Likewise for sh-utils.
25822         (AC_CHECK_HEADERS): Likewise for textutils.
25823         Merge the three lists of headers.
25824
25825         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
25826         from fileutils' configure.in.
25827
25828         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
25829         code. Moved tests into their own function (_jm_DECL_HEADERS) in
25830         check-decl.m4.
25831
25832         * m4/check-decl.m4: Use #if rather than #ifdef.
25833         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
25834         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
25835         (_jm_DECL_HEADERS): Define new function.
25836         (jm_CHECK_DECLARATIONS): Require it.
25837
25838 2000-01-22  Jim Meyering  <meyering@lucent.com>
25839
25840         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
25841         [! HAVE_DECL_STRTOULL]: Declare strtoull.
25842         Required for some AIX systems.  Reported by Christian Krackowizer.
25843         [TESTING] (main): New function.
25844
25845         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
25846         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
25847         letters.
25848
25849         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
25850         iswprint.
25851
25852         * lib/strverscmp.c (ISDIGIT): Define.
25853         (strverscmp): Use ISDIGIT, not isdigit.
25854
25855 2000-01-19  Jim Meyering  <meyering@lucent.com>
25856
25857         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
25858         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
25859         defines `struct timespec' in <sys/time.h>
25860
25861         * m4/c-bs-a.m4: Remove uses of changequote altogether.
25862         Thanks to Akim for explaining.
25863
25864 2000-01-17  Paul Eggert  <eggert@twinsun.com>
25865
25866         * lib/nanosleep.c (nanosleep):
25867         Don't use SA_INTERRUPT to decide whether to call sigaction, as
25868         POSIX.1 doesn't require SA_INTERRUPT and some systems
25869         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
25870         it's been part of POSIX.1 since day 1 (in 1988).
25871
25872 2000-01-17  Jim Meyering  <meyering@lucent.com>
25873
25874         * lib/interlock: Remove unused file.  Reported by François Pinard.
25875
25876 2000-01-16  Paul Eggert  <eggert@twinsun.com>
25877
25878         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
25879         alert, backslash, formfeed, and vertical tab unnecessarily in
25880         shell quoting style.
25881
25882 2000-01-16  Jim Meyering  <meyering@lucent.com>
25883
25884         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
25885         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
25886         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
25887         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
25888
25889 2000-01-16  Jim Meyering  <meyering@lucent.com>
25890
25891         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
25892         because the latter didn't work.
25893
25894 2000-01-15  Jim Meyering  <meyering@lucent.com>
25895
25896         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
25897         (AC_REPLACE_FUNCS): Add memcpy and memset.
25898         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
25899         Add strpbrk.
25900         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
25901
25902 2000-01-12  Jim Meyering  <meyering@lucent.com>
25903
25904         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
25905         (jm_PREREQ): Use it.
25906         (jm_PREREQ_READUTMP): New macro.
25907         (jm_PREREQ): Use it.
25908
25909 2000-01-11  Paul Eggert  <eggert@twinsun.com>
25910
25911         Quote multibyte characters correctly.
25912         * m4/c-bs-a.m4: New file.
25913         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
25914         (jm_PREREQ): Use it.
25915
25916 2000-01-11  Paul Eggert  <eggert@twinsun.com>
25917
25918         * m4/uintmax_t.m4: Port to autoconf 2.13.
25919
25920 2000-01-08  Jim Meyering  <meyering@ascend.com>
25921
25922         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
25923         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
25924
25925 2000-01-04  Jim Meyering  <meyering@ascend.com>
25926
25927         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
25928         jm_STRUCT_DIRENT_D_TYPE.
25929         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
25930         jm_STRUCT_DIRENT_D_INO.
25931         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
25932         jm_STRUCT_UTIMBUF.
25933         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
25934         renamings.
25935         * m4/utime.m4: Likewise.
25936
25937         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
25938         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
25939
25940 2000-01-03  Paul Eggert  <eggert@twinsun.com>
25941
25942         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
25943         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
25944
25945 2000-01-02  Jim Meyering  <meyering@ascend.com>
25946
25947         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
25948         remember if this is necessary.
25949
25950 1999-12-26  Jim Meyering  <meyering@ascend.com>
25951
25952         * m4/jm-macros.m4: Use it here.
25953         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
25954
25955 1999-12-23  Jim Meyering  <meyering@ascend.com>
25956
25957         * m4/jm-macros.m4: Check for clock_gettime (moved from
25958         fileutils/configure.in)
25959         Check for gettimeofday.
25960
25961 1999-12-20  Jim Meyering  <meyering@ascend.com>
25962
25963         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
25964         autoconf-2.14a-1999-12-20.
25965
25966 1999-12-19  Jim Meyering  <meyering@ascend.com>
25967
25968         * m4/lstat-slash.m4: New file.
25969         * m4/jm-macros.m4: Use the new macro:
25970         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
25971
25972 1999-12-07  Jim Meyering  <meyering@ascend.com>
25973
25974         * m4/perl.m4: Require that File::Compare be available, too.
25975         Too many systems seem to lack it.
25976
25977         * m4/strftime.m4: Add checks for most of the cpp macros tested in
25978         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
25979
25980 1999-11-18  Paul Eggert  <eggert@twinsun.com>
25981
25982         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
25983         problem with the QNX 4.25 shell, which doesn't propagate exit
25984         status of failed commands inside shell assignments.
25985
25986 1999-11-17  Jim Meyering  <meyering@ascend.com>
25987
25988         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
25989
25990 1999-11-07  Jim Meyering  <meyering@ascend.com>
25991
25992         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
25993
25994 1999-11-06  Jim Meyering  <meyering@ascend.com>
25995
25996         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
25997         * m4/jm-macros.m4 (jm_MACROS): Use it here.
25998
25999 1999-11-05  Jim Meyering  <meyering@ascend.com>
26000
26001         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
26002         configure.in of textutils, fileutils, and sh-utils into this one
26003         (shared between those packages) file.
26004         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
26005         AC_STRUCT_ST_BLKSIZE.
26006
26007 1999-11-03  Jim Meyering  <meyering@ascend.com>
26008
26009         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
26010         of AC_CHECK_TYPE checks includes unistd.h.
26011         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
26012         Suggestion from Akim Demaille.
26013
26014 1999-10-30  Jim Meyering  <meyering@ascend.com>
26015
26016         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
26017         m4-quoted string.
26018         * m4/ls-mntd-fs.m4: Likewise.
26019         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
26020         * m4/jm-winsz1.m4: Likewise.
26021
26022         * m4/const.m4: Remove file, since the fix made it into the experimental
26023         version of autoconf.
26024         * m4/mktime.m4: Likewise.
26025
26026         * m4/check-type.m4: Remove file, now that the latest version of
26027         AC_CHECK_TYPE takes a third arg to specify additional #includes.
26028
26029         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
26030         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
26031         AC_CHECK_TYPE.
26032
26033 1999-10-04  Jim Meyering  <meyering@ascend.com>
26034
26035         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
26036
26037 1999-09-22  Paul Eggert  <eggert@twinsun.com>
26038
26039         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
26040         2.95.1 bug with HP-UX 10.20.
26041
26042 1999-09-17  Jim Meyering  <meyering@ascend.com>
26043
26044         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
26045         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
26046         due to missing strdup (against sh-utils-2.0).
26047
26048 1999-08-29  Jim Meyering  <meyering@ascend.com>
26049
26050         * m4/jm-macros.m4: Require jm_BISON.
26051         * m4/bison.m4: New file.
26052
26053 1999-08-17  Paul Eggert  <eggert@twinsun.com>
26054
26055         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
26056         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
26057
26058 1999-08-05  Jim Meyering  <meyering@ascend.com>
26059
26060         * m4/getline.m4: Rename test file from conftestdata to conftest.data
26061         to avoid conflicts with `conftest' on 8+3 filesystems.
26062         Suggestion from Eli Zaretskii.
26063
26064 1999-08-04  Jim Meyering  <meyering@ascend.com>
26065
26066         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
26067         fileutils and sh-utils (textutils's getline test was inadequate).
26068         (AM_FUNC_GETLINE): Run this test.
26069         (AC_CHECK_FUNCS): Check for getdelim.
26070         Reported by Bob Proulx.
26071
26072 1999-08-02  Jim Meyering  <meyering@ascend.com>
26073
26074         * m4/jm-macros.m4: Add a comment.
26075
26076 1999-08-01  Paul Eggert  <eggert@twinsun.com>
26077
26078         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
26079         <inttypes.h> defines strtoumax as a macro (and not as a
26080         function).
26081
26082 1999-08-01  Paul Eggert  <eggert@twinsun.com>
26083
26084         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
26085         that we can shift, multiply and divide unsigned long long
26086         values; Ultrix cc can't do it.
26087
26088 1999-08-01  Paul Eggert  <eggert@twinsun.com>
26089
26090         * m4/mktime.m4: New file, which is a preview of what should appear
26091         in the next public autoconf release.
26092
26093 1999-08-01  Paul Eggert  <eggert@twinsun.com>
26094
26095         * m4/lfs.m4: Remove this file.
26096         * m4/largefile.m4: New file.  It contains the old contents of
26097         lfs.m4, except that all names with prefix AC_LFS have been
26098         changed to use the prefix AC_SYS_LARGEFILE instead, to be
26099         compatible with future autoconf versions.  Also, some minor m4
26100         quoting problems have been fixed.
26101
26102 1999-08-01  Paul Eggert  <eggert@twinsun.com>
26103
26104         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
26105         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
26106         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
26107         and simplify the shell code.
26108
26109 1999-08-01  Jim Meyering  <meyering@ascend.com>
26110
26111         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
26112         m4.
26113
26114 1999-07-20  Jim Meyering  <meyering@ascend.com>
26115
26116         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
26117
26118 1999-07-15  Jim Meyering  <meyering@ascend.com>
26119
26120         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
26121
26122 1999-05-22  Jim Meyering  <meyering@ascend.com>
26123
26124         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
26125
26126 1999-05-20  Jim Meyering  <meyering@ascend.com>
26127
26128         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
26129         Add a colon after each `then' in case $4 is empty.
26130
26131 1999-05-16  Jim Meyering  <meyering@ascend.com>
26132
26133         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
26134
26135 1999-05-10  Jim Meyering  <meyering@ascend.com>
26136
26137         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
26138
26139         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
26140         AC_FUNC_MKTIME.
26141
26142 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
26143
26144         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
26145
26146 1999-05-04  Paul Eggert  <eggert@twinsun.com>
26147
26148         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
26149         not CPPFLAGS, so that linking works correctly in IRIX.
26150
26151 1999-04-30  Paul Eggert  <eggert@twinsun.com>
26152
26153         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
26154
26155 1999-04-20  Paul Eggert  <eggert@twinsun.com>
26156
26157         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
26158         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
26159         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
26160         jm_AC_TYPE_UNSIGNED_LONG_LONG.
26161         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
26162
26163         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
26164
26165 1999-04-20  Jim Meyering  <meyering@ascend.com>
26166
26167         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
26168         AC_REPLACE xstroull if necessary.  From Paul Eggert.
26169         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
26170
26171 1999-04-18  Jim Meyering  <meyering@ascend.com>
26172
26173         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
26174         * m4/jm-macros.m4: Use it.
26175
26176 1999-04-06  Jim Meyering  <meyering@ascend.com>
26177
26178         * m4/strftime.m4: Remove test for %f.
26179
26180 1999-03-29  Jim Meyering  <meyering@ascend.com>
26181
26182         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
26183         superset of the AC_TYPE_* checks in the textutils, fileutils,
26184         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
26185         AC_TYPE_PID_T.
26186
26187 1999-03-28  Jim Meyering  <meyering@ascend.com>
26188
26189         * m4/jm-macros.m4: Define GNU_PACKAGE here.
26190         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
26191         replaced e.g., in the *.sh files of the sh-utils.
26192
26193 1999-03-20  Jim Meyering  <meyering@ascend.com>
26194
26195         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
26196         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
26197         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
26198
26199 1999-03-19  Jim Meyering  <meyering@ascend.com>
26200
26201         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
26202
26203 1999-03-12  Jim Meyering  <meyering@ascend.com>
26204
26205         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
26206
26207 1999-03-07  Jim Meyering  <meyering@ascend.com>
26208
26209         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
26210         declared.
26211
26212 1999-02-17  Jim Meyering  <meyering@ascend.com>
26213
26214         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
26215         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
26216
26217 1999-02-07  Jim Meyering  <meyering@ascend.com>
26218
26219         * m4/group-member.m4: New file -- extracted from sh-utils'
26220         configure.in.
26221
26222         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
26223         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
26224
26225 1999-02-06  Jim Meyering  <meyering@ascend.com>
26226
26227         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
26228         * m4/fnmatch.m4: Likewise.
26229         * m4/getgroups.m4: Likewise.
26230         * m4/lstat.m4: Likewise.
26231         * m4/malloc.m4: Likewise.
26232         * m4/putenv.m4: Likewise.
26233         * m4/realloc.m4: Likewise.
26234         * m4/regex.m4: Likewise.
26235         * m4/stat.m4: Likewise.
26236         * m4/strftime.m4: Likewise.
26237         Suggestion from Alain Magloire.
26238
26239         * m4/chown.m4: Use `.$ac_objext', not `.o'.
26240         * m4/fnmatch.m4: Likewise.
26241         * m4/getgroups.m4: Likewise.
26242         * m4/getline.m4: Likewise.
26243         * m4/lstat.m4: Likewise.
26244         * m4/malloc.m4: Likewise.
26245         * m4/memcmp.m4: Likewise.
26246         * m4/putenv.m4: Likewise.
26247         * m4/realloc.m4: Likewise.
26248         * m4/regex.m4: Likewise.
26249         * m4/stat.m4: Likewise.
26250         * m4/strftime.m4: Likewise.
26251         Suggestion from Alain Magloire.
26252
26253         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
26254         an argument.
26255
26256         * m4/regex.m4: Add a run-time Test for proper operation of
26257         re_compile_pattern.
26258
26259 1999-01-31  Jim Meyering  <meyering@ascend.com>
26260
26261         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
26262
26263 1999-01-30  Jim Meyering  <meyering@ascend.com>
26264
26265         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
26266
26267         * m4/jm-mktime.m4: Make this a wrapper around the official
26268         AM_FUNC_MKTIME rather than my private copy, now that the official one
26269         is up to date.
26270         * m4/mktime.m4: Remove file.
26271
26272         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
26273         * m4/uptime.m4: Likewise.
26274         * m4/uintmax_t.m4: Likewise.
26275
26276 1999-01-28  Jim Meyering  <meyering@ascend.com>
26277
26278         * m4/jm-macros.m4: Use jm_AFS.
26279         * m4/afs.m4: New file (from fileutils' configure.in).
26280
26281         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
26282         * m4/chown.m4: Likewise.
26283         * m4/d-ino.m4: Likewise.
26284         * m4/d-type.m4: Likewise.
26285         * m4/fnmatch.m4: Likewise.
26286         * m4/getgroups.m4: Likewise.
26287         * m4/gettext.m4: Likewise.
26288         * m4/jm-mktime.m4: Likewise.
26289         * m4/jm-winsz2.m4: Likewise.
26290         * m4/lcmessage.m4: Likewise.
26291         * m4/ls-mntd-fs.m4: Likewise.
26292         * m4/malloc.m4: Likewise.
26293         * m4/memcmp.m4: Likewise.
26294         * m4/putenv.m4: Likewise.
26295         * m4/realloc.m4: Likewise.
26296         * m4/st_mtim.m4: Likewise.
26297         * m4/strftime.m4: Likewise.
26298
26299 1999-01-16  Jim Meyering  <meyering@ascend.com>
26300
26301         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
26302         (ARGMATCH_DIE_DECL): Define.
26303
26304 1999-01-12  Jim Meyering  <meyering@ascend.com>
26305
26306         * m4/Makefile.am.in: Rewrite to avoid using fmt.
26307         Reported by Lars Hecking.
26308
26309 1999-01-10  Jim Meyering  <meyering@ascend.com>
26310
26311         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
26312         gross kludge.
26313         * m4/inttypes_h.m4: Likewise.
26314         * m4/lstat.m4: Likewise.
26315         * m4/malloc.m4: Likewise.
26316         * m4/readdir.m4: Likewise.
26317         * m4/realloc.m4: Likewise.
26318         * m4/st_dm_mode.m4: Likewise.
26319         * m4/stat.m4: Likewise.
26320         * m4/utimbuf.m4: Likewise.
26321         * m4/utimes.m4: Likewise.
26322
26323         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
26324         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
26325         comments in config.h.in are meaningful.
26326
26327         * m4/jm-macros.m4: Require autoconf-2.13 here.
26328
26329         * m4/regex.m4: By default, don't use the included regex.c on systems
26330         with glibc 2.  Suggestion from Uli Drepper.
26331
26332 1999-01-02  Jim Meyering  <meyering@ascend.com>
26333
26334         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
26335
26336 1998-12-18  Jim Meyering  <meyering@ascend.com>
26337
26338         * m4/Makefile.am.in (Makefile.am): Simplify rule.
26339         Based on a suggestion from Lars Hecking.
26340
26341 1998-11-16  Paul Eggert  <eggert@twinsun.com>
26342
26343         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
26344
26345 1998-11-16  Jim Meyering  <meyering@ascend.com>
26346
26347         * m4/lfs.m4: Double-quote the `uname...` expression.
26348
26349 1998-11-14  Jim Meyering  <meyering@ascend.com>
26350
26351         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
26352         * m4/stat.m4: Likewise.
26353
26354 1998-11-03  Jim Meyering  <meyering@ascend.com>
26355
26356         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
26357         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
26358
26359 1998-10-18  Jim Meyering  <meyering@ascend.com>
26360
26361         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
26362
26363 1998-10-17  Jim Meyering  <meyering@ascend.com>
26364
26365         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
26366         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
26367         calls for those previously hard-coded headers.  Instead, take a new
26368         parameter.
26369         (jm_CHECK_DECLARATIONS): Reflect interface change.
26370         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
26371         (jm_CHECK_DECL_LOCALTIME_R): New macro.
26372
26373         * m4/mktime.m4: Test for spring-forward gap before long-running test.
26374
26375 1998-10-14  Jim Meyering  <meyering@ascend.com>
26376
26377         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
26378         instead of "TZ=America/Vancouver".  From Paul Eggert.
26379
26380 1998-10-11  Jim Meyering  <meyering@ascend.com>
26381
26382         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
26383         This adds a test for a recently added compatibility fix for mktime.c.
26384         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
26385
26386 1998-09-27  Jim Meyering  <meyering@ascend.com>
26387
26388         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
26389
26390         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
26391         ../configure.in, including a change from Gordon Matzigkeit to allow
26392         cross-compiling for the Hurd.
26393
26394         * m4/glibc.m4: New file/macro to test for the GNU C Library
26395         versions 1 and 2.  From Gordon Matzigkeit.
26396         Indent.
26397
26398 1998-09-21  Jim Meyering  <meyering@ascend.com>
26399
26400         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
26401
26402 1998-08-18  Paul Eggert  <eggert@twinsun.com>
26403
26404         Port nanosecond-resolution times to UnixWare 2.1.2 and
26405         pedantic Solaris 2.6.
26406
26407         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
26408         AC_STRUCT_ST_MTIM.
26409         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
26410         Generate name of ns member, instead of just 1 or undef.
26411         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
26412
26413 1998-08-15  Jim Meyering  <meyering@ascend.com>
26414
26415         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
26416         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
26417         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
26418         instead of jm_TYPE_SSIZE_T.
26419
26420 1998-08-12  Jim Meyering  <meyering@ascend.com>
26421
26422         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
26423
26424 1998-08-02  Jim Meyering  <meyering@ascend.com>
26425
26426         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
26427         in acconfig.h manually.
26428
26429 1998-07-31  Paul Eggert  <eggert@twinsun.com>
26430
26431         * m4/st_mtim.m4: New file.
26432
26433 1998-07-28  Jim Meyering  <meyering@ascend.com>
26434
26435         * m4/utimes.m4: Undef stat.
26436
26437 1998-07-25  Jim Meyering  <meyering@ascend.com>
26438
26439         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
26440         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
26441
26442 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
26443
26444         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
26445         uid and gid actually remain unchanged.
26446
26447 1998-07-07  Jim Meyering  <meyering@ascend.com>
26448
26449         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
26450
26451 1998-07-04  Jim Meyering  <meyering@ascend.com>
26452
26453         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
26454         to prove that this macro can be used in packages without regex.c.
26455
26456 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
26457
26458         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
26459         is to be used.
26460
26461 1998-07-03  Jim Meyering  <meyering@ascend.com>
26462
26463         * m4/gettext.m4: Add -lintl if it's found to be necessary.
26464
26465         * m4/gettext.m4: New file -- from gettext-0.10.35.
26466         * m4/lcmessage.m4: Likewise.
26467         * m4/progtest.m4: Likewise.
26468
26469         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
26470         * m4/jm-macros.m4: Require the new macro.
26471
26472 1998-06-29  Jim Meyering  <meyering@ascend.com>
26473
26474         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
26475         for the definition of NGROUPS (used in a system header included
26476         by sys/mount.h).
26477
26478 1998-06-28  Jim Meyering  <meyering@ascend.com>
26479
26480         * m4/ls-mntd-fs.m4: New file.
26481         * m4/fstypename.m4: New file.
26482
26483         * m4/jm-macros.m4: Require the new macro.
26484         * m4/jm-glibc-io.m4: New file.
26485
26486 1998-05-19  Jim Meyering  <meyering@ascend.com>
26487
26488         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
26489         * m4/lchown.m4: New file.
26490
26491         * m4/Makefile.am.in: New file.
26492         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
26493
26494 1998-05-14  Jim Meyering  <meyering@ascend.com>
26495
26496         * m4/Makefile.am (EXTRA_DIST): Add them.
26497         * m4/jm-macros.m4: New file.
26498         * m4/utimbuf.m4: New file.
26499
26500 1998-05-12  Jim Meyering  <meyering@ascend.com>
26501
26502         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
26503
26504 1998-05-11  Jim Meyering  <meyering@ascend.com>
26505
26506         * m4/isc-posix.m4: New file.
26507
26508 1998-05-10  Jim Meyering  <meyering@ascend.com>
26509
26510         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
26511
26512 1998-05-09  Jim Meyering  <meyering@ascend.com>
26513
26514         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
26515         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
26516         with automake.
26517
26518         * m4/ssize_t.m4: New file.
26519         * m4/mktime.m4: Remove file -- the new automake has this now.
26520
26521 1998-04-26  Jim Meyering  <meyering@ascend.com>
26522
26523         * m4/assert.m4: New file.
26524         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
26525
26526 1998-04-05  Jim Meyering  <meyering@ascend.com>
26527
26528         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
26529         (jm_PREREQ): Use it here.
26530
26531 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
26532
26533         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
26534         in acconfig.h.
26535
26536 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
26537
26538         * m4/prereq.m4: New file.
26539         * m4/error.m4: New file.
26540         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
26541
26542 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
26543
26544         * m4/getline.m4: Don't set am_cv_func_working_getline before the
26545         cache-check for the same variable -- that defeated the purpose of
26546         the test; the test program was never run.  This was a problem only
26547         on systems with losing getline functions -- HP-UX 10.20 is one.
26548         Reported by Bjorn Helgaas.
26549
26550 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
26551
26552         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
26553
26554 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
26555
26556         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
26557
26558         * m4/const.m4: New file.  Use an initializer in this declaration
26559         typedef int charset[2]; const charset x;
26560         Reported by Bob Glickstein.
26561
26562 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
26563
26564         * m4/chown.m4: Fix reversed types on -1 args to chown.
26565         From Kaveh Ghazi.
26566
26567 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
26568
26569         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
26570         Add lseek and memchr.
26571
26572         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
26573         T.E.Dickey <dickey@clark.net> said that some older preprocessors
26574         have a 20-character limit on names.
26575
26576 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
26577
26578         * m4/inttypes_h.m4: New file.
26579         * m4/uintmax_t.m4: New file.
26580         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
26581
26582 Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
26583   Free Software Foundation, Inc.
26584 Copying and distribution of this file, with or without modification,
26585 are permitted provided the copyright notice and this notice are preserved.