Fix bug.
[gnulib.git] / ChangeLog
1 2007-02-11  Bruno Haible  <bruno@clisp.org>
2
3         * lib/mbschr.c (mbschr): Fix bug.
4
5         * modules/mbschr-tests: New file.
6         * tests/test-mbschr.sh: New file.
7         * tests/test-mbschr.c: New file.
8         * m4/locale-zh.m4: New file.
9
10 2007-02-11  Bruno Haible  <bruno@clisp.org>
11
12         Support for copying multibyte string iterators.
13         * lib/mbiter.h: Include <string.h>.
14         (mbiter_multi_copy): New function.
15         (mbi_copy): New macro.
16         * lib/mbuiter.h: Include <string.h>.
17         (mbuiter_multi_copy): New function.
18         (mbui_copy): New macro.
19
20 2007-02-11  Bruno Haible  <bruno@clisp.org>
21
22         New module mbslen.
23         * modules/mbslen: New file.
24         * lib/mbslen.c: New file.
25         * lib/string_.h (mbslen): New declaration.
26         * m4/mbslen.m4: New file.
27         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
28         GNULIB_MBSLEN.
29         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
30         * MODULES.html.sh (Internationalization functions): Add mbslen.
31
32 2007-02-11  Bruno Haible  <bruno@clisp.org>
33
34         Ensure O(n) worst-case complexity of strcasestr substitute.
35         * lib/strcasestr.c: Include stdbool.h.
36         (knuth_morris_pratt): New function.
37         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
38         bookkeeping indicates that it's worth it.
39         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
40
41         * modules/strcasestr-tests: New file.
42         * tests/test-strcasestr.c: New file.
43
44 2007-02-11  Bruno Haible  <bruno@clisp.org>
45
46         Ensure O(n) worst-case complexity of c_strcasestr.
47         * lib/c-strcasestr.c: Include stdbool.h, string.h.
48         (knuth_morris_pratt): New function.
49         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
50         the bookkeeping indicates that it's worth it.
51         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
52
53         * modules/c-strcasestr-tests: New file.
54         * tests/test-c-strcasestr.c: New file.
55
56 2007-02-11  Bruno Haible  <bruno@clisp.org>
57
58         Ensure O(n) worst-case complexity of c_strstr.
59         * lib/c-strstr.c: Include stdbool.h, string.h.
60         (knuth_morris_pratt): New function.
61         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
62         bookkeeping indicates that it's worth it.
63         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
64
65         * lib/c-strstr.c: Complete rewrite for maintainability.
66
67         * modules/c-strstr-tests: New file.
68         * tests/test-c-strstr.c: New file.
69
70 2007-02-11  Bruno Haible  <bruno@clisp.org>
71
72         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
73         5.2.1 and earlier, whereby \055 was treated just like the range
74         delimiter '-'.  Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
75
76 2007-02-08  Bruno Haible  <bruno@clisp.org>
77
78         * modules/regex (Depends-on): Add stdbool.
79         Reported by Dalibor Topic <robilad@kaffe.org>.
80
81 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
82
83         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
84         Prefer returning from main to exiting from it.
85         Remove unnecessary parens after sizeof.
86
87 2007-02-05  Bruno Haible  <bruno@clisp.org>
88
89         New module mbssep.
90         * modules/mbssep: New file.
91         * lib/mbssep.c: New file.
92         * lib/string_.h (strsep): Add a conditional link warning.
93         (mbssep): New declaration.
94         * m4/mbssep.m4: New file.
95         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
96         GNULIB_MBSSEP.
97         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
98         * MODULES.html.sh (Internationalization functions): Add mbssep.
99
100 2007-02-05  Bruno Haible  <bruno@clisp.org>
101
102         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
103         Optimize search in case of 1 delimiter.
104
105 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
106
107         * lib/acl.h: Include sys/types.h before sys/acl.h.
108
109 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
110
111         Merge upstream fix for glibc bugzilla #3957:
112
113         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
114
115         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
116         bit for RE_HAT_LISTS_NOT_NEWLINE.
117         (build_charclass_op): Remove bogus comment.
118
119 2007-02-05  Simon Josefsson  <simon@josefsson.org>
120
121         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
122
123 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
124
125         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
126         * lib/memmem.c [!defined _LIBC]: Include config.h.
127
128 2007-02-04  Bruno Haible  <bruno@clisp.org>
129
130         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
131         warning message.
132
133 2007-02-04  Bruno Haible  <bruno@clisp.org>
134
135         New module mbstok_r.
136         * modules/mbstok_r: New file.
137         * lib/mbstok_r.c: New file.
138         * lib/string_.h (strtok_r): Change argument names to match the
139         comments. Add a conditional link warning.
140         (mbstok_r): New declaration.
141         * m4/mbstok_r.m4: New file.
142         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
143         GNULIB_MBSTOK_R.
144         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
145         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
146
147 2007-02-04  Bruno Haible  <bruno@clisp.org>
148
149         New module mbsspn.
150         * modules/mbsspn: New file.
151         * lib/mbsspn.c: New file.
152         * lib/string_.h (strspn): Add a conditional link warning.
153         (mbsspn): New declaration.
154         * m4/mbsspn.m4: New file.
155         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
156         GNULIB_MBSSPN.
157         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
158         * MODULES.html.sh (Internationalization functions): Add mbsspn.
159
160 2007-02-04  Bruno Haible  <bruno@clisp.org>
161
162         New module mbspbrk.
163         * modules/mbspbrk: New file.
164         * lib/mbspbrk.c: New file.
165         * lib/string_.h (strpbrk): Add a conditional link warning.
166         (mbspbrk): New declaration.
167         * m4/mbspbrk.m4: New file.
168         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
169         GNULIB_MBSPBRK.
170         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
171         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
172
173 2007-02-04  Bruno Haible  <bruno@clisp.org>
174
175         New module mbscspn.
176         * modules/mbscspn: New file.
177         * lib/mbscspn.c: New file.
178         * lib/string_.h (strcspn): Add a conditional link warning.
179         (mbscspn): New declaration.
180         * m4/mbscspn.m4: New file.
181         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
182         GNULIB_MBSCSPN.
183         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
184         * MODULES.html.sh (Internationalization functions): Add mbscspn.
185
186 2007-02-04  Bruno Haible  <bruno@clisp.org>
187
188         New module mbscasestr, reduced goal of strcasestr.
189         * modules/mbscasestr: New file.
190         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
191         (mbscasestr): Renamed from strcasestr.
192         * lib/strcasestr.c: Don't include mbuiter.h.
193         (strcasestr): Remove support for multibyte locales.
194         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
195         Change the conditional link warning.
196         (mbscasestr): New declaration.
197         * m4/mbscasestr.m4: New file.
198         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
199         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
200         REPLACE_STRCASESTR.
201         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
202         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
203         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
204         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
205         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
206         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
207         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
208         (Depends-on): Remove mbuiter.
209         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
210
211 2007-02-04  Bruno Haible  <bruno@clisp.org>
212
213         Simplify handling of strncasecmp.
214         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
215         the conditional link warning.
216         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
217         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
218         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
219         * modules/strcase (configure.ac): Don't invoke
220         gl_STRING_MODULE_INDICATOR.
221         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
222
223 2007-02-04  Bruno Haible  <bruno@clisp.org>
224
225         New module mbscasecmp, reduced goal of strcasecmp.
226         * modules/mbscasecmp: New file.
227         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
228         (mbscasecmp): Renamed from strcasecmp.
229         * lib/strcasecmp.c: Don't include mbuiter.h.
230         (strcasecmp): Remove support for multibyte locales.
231         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
232         Change the conditional link warning.
233         (mbscasecmp): New declaration.
234         * m4/mbscasecmp.m4: New file.
235         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
236         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
237         REPLACE_STRCASECMP.
238         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
239         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
240         GNULIB_MBSCASECMP.
241         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
242         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
243         * modules/strcase (Files): Remove m4/mbrtowc.m4.
244         (Depends-on): Remove mbuiter.
245         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
246
247 2007-02-04  Bruno Haible  <bruno@clisp.org>
248
249         New module mbsstr. Remove module strstr.
250         * modules/mbsstr: New file.
251         * modules/strstr: Remove file.
252         * lib/mbsstr.c: Renamed from lib/strstr.c.
253         (mbsstr): Renamed from strstr.
254         * lib/string_.h (strstr): Remove declaration. Change the conditional
255         link warning.
256         (mbsstr): New declaration.
257         * m4/mbsstr.m4: New file.
258         * m4/strstr.m4: Remove file.
259         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
260         REPLACE_STRSTR.
261         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
262         Don't initialize GNULIB_STRSTR.
263         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
264         substitute GNULIB_STRSTR and REPLACE_STRSTR.
265         * MODULES.html.sh (Internationalization functions): Add mbsstr.
266         (Support for systems lacking ANSI C 89): Remove strstr.
267
268 2007-02-04  Bruno Haible  <bruno@clisp.org>
269
270         New module mbsrchr.
271         * modules/mbsrchr: New file.
272         * lib/mbsrchr.c: New file.
273         * lib/string_.h (strrchr): Add a conditional link warning.
274         (mbsrchr): New declaration.
275         * m4/mbsrchr.m4: New file.
276         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
277         GNULIB_MBSRCHR.
278         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
279         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
280
281 2007-02-04  Bruno Haible  <bruno@clisp.org>
282
283         New module mbschr.
284         * modules/mbschr: New file.
285         * lib/mbschr.c: New file.
286         * lib/string_.h (strchr): Add a conditional link warning.
287         (mbschr): New declaration.
288         * m4/mbschr.m4: New file.
289         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
290         GNULIB_MBSCHR.
291         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
292         * MODULES.html.sh (Internationalization functions): Add mbschr.
293
294 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
295
296         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
297
298         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
299
300 2007-02-04  Bruno Haible  <bruno@clisp.org>
301
302         New module description section 'configure.ac-early'.
303         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
304         (func_get_autoconf_early_snippet): New function.
305         (func_import, func_create_testdir): Use it. Remove special cases for
306         modules 'extensions' and 'lock'.
307         * modules/extensions (configure.ac-early): Require
308         gl_USE_SYSTEM_EXTENSIONS.
309         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
310
311 2007-02-04  Bruno Haible  <bruno@clisp.org>
312
313         Make use of gcj-4.3's -fsource and -ftarget option.
314         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
315         and if so try the options -fsource and -ftarget.
316         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
317         source_version, ftarget_option, target_version arguments.
318         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
319         (is_envjavac_oldgcj_14_14_usable): Renamed from
320         is_envjavac_gcj_14_14_usable.
321         (is_envjavac_oldgcj_14_13_usable): Renamed from
322         is_envjavac_gcj_14_13_usable.
323         (is_gcj_present): Update.
324         (is_gcj_43, is_gcj43_usable): New functions.
325         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
326         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
327         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
328         try the options -fsource and -ftarget.
329
330 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
331
332         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
333         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
334         larger value.
335
336 2007-02-03  Jim Meyering  <jim@meyering.net>
337
338         Give tools a better chance to allocate space for very large buffers.
339         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
340
341         Make pwd and readlink work also when run with an unreadable parent dir
342         on systems with openat support.
343         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
344         provided getcwd function, even when we have openat support.
345         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
346
347 2007-02-02  Bruno Haible  <bruno@clisp.org>
348
349         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
350         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
351         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
352         portability problems if one of these functions is only used on specific
353         platforms.
354         Reported by Paul Eggert.
355
356 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
357
358         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
359         is causing more trouble than it's curing.
360         * lib/regex_internal.h (__mempcpy): Remove.
361         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
362         (and make the code a tad smaller to boot).
363         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
364
365 2007-02-02  Jim Meyering  <jim@meyering.net>
366
367         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
368         section, not in the Makefile.am: one.
369
370 2007-02-02  Eric Blake  <ebb9@byu.net>
371
372         * lib/strchrnul.c: Always include config.h first.
373
374         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
375         gnulib strstr is not necessary here.
376
377 2007-02-02  Simon Josefsson  <simon@josefsson.org>
378
379         * m4/socklen.m4: Fix typo.
380
381 2007-02-02  Eric Blake  <ebb9@byu.net>
382
383         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
384         * modules/netinet_in (Makefile.am): Likewise.
385
386 2007-02-01  Bruno Haible  <bruno@clisp.org>
387
388         * lib/string_.h (GL_LINK_WARNING): New macro.
389         (strcasecmp, strstr, strcasestr): If provided by the system,
390         conditionally define as a macro that leads to a warning instead of to
391         an error.
392         (strncasecmp): Conditionally define as a macro that leads to a warning.
393
394 2007-02-01  Jim Meyering  <jim@meyering.net>
395
396         Give tools a better chance to allocate space for very large buffers.
397         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
398
399 2007-02-01  Karl Berry  <karl@gnu.org>
400
401         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
402
403 2007-02-01  Bruno Haible  <bruno@clisp.org>
404
405         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
406         renamings.
407
408 2007-02-01  Eric Blake  <ebb9@byu.net>
409
410         * modules/regex (Depends-on): Revert dependence on mempcpy.
411         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
412         module's definition of mempcpy.
413         Reported by Paul Eggert.
414
415 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
416
417         * lib/string_.h: If the gnulib module XYZ is not present, undefine
418         the symbol XYZ before redefining it.  This fixes a problem with
419         programs that don't use XYZ, when compiled on systems that define
420         XYZ to something else.
421
422 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
423
424         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
425         occurs when "mkdir -m foo" creates a setgid directory that is (1)
426         writeable to group or other and (2) is intended to have a special
427         mode bit that is set or cleared.  In such a case, the directory
428         should be neither group- nor other-writeable until the special
429         mode bits are right.
430
431 2007-01-31  Eric Blake  <ebb9@byu.net>
432
433         * modules/mountlist (Depends-on): Add strstr.
434
435         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
436         bug.
437         * modules/string (Makefile.am): Remove redundant replacement.
438         * modules/regex (Depends-on): Add mempcpy.
439
440 2007-01-31  Bruno Haible  <bruno@clisp.org>
441
442         New module description field 'Link'.
443         * gnulib-tool (func_usage): Document --extract-link-directive.
444         (sed_extract_prog): Recognize 'Link' directive.
445         (func_get_link_directive): New function.
446         (func_import): Show summary of link directives.
447         Handle --extract-link-directive option.
448         * modules/acl (Link): New section.
449         * modules/clock-time (Link): New section.
450         * modules/euidaccess (Link): New section.
451         * modules/gettext (Link): New section.
452         * modules/iconv (Link): New section.
453         * modules/lock (Link): New section.
454         * modules/nanosleep (Link): New section.
455         * modules/readline (Link): New section.
456
457 2007-01-27  Bruno Haible  <bruno@clisp.org>
458
459         Enforce the use of gnulib modules for unportable <string.h> functions.
460         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
461         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
462         (gl_HEADER_STRING_H_BODY): Require it.
463         * lib/string_.h: If the gnulib module XYZ is not present, redefine
464         the symbol XYZ to one that gives a link error.
465         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
466         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
467         * modules/mempcpy (configure.ac): Likewise.
468         * modules/memrchr (configure.ac): Likewise.
469         * modules/stpcpy (configure.ac): Likewise.
470         * modules/stpncpy (configure.ac): Likewise.
471         * modules/strcase (configure.ac): Likewise.
472         * modules/strcasestr (configure.ac): Likewise.
473         * modules/strchrnul (configure.ac): Likewise.
474         * modules/strdup (configure.ac): Likewise.
475         * modules/strndup (configure.ac): Likewise.
476         * modules/strnlen (configure.ac): Likewise.
477         * modules/strpbrk (configure.ac): Likewise.
478         * modules/strsep (configure.ac): Likewise.
479         * modules/strstr (configure.ac): Likewise.
480         * modules/strtok_r (configure.ac): Likewise.
481
482 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
483
484         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
485
486 2007-01-30  Jim Meyering  <jim@meyering.net>
487
488         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
489
490 2007-01-29  Bruno Haible  <bruno@clisp.org>
491
492         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
493         * lib/execute.c: Likewise.
494         * lib/pipe.c: Likewise.
495         * lib/printf-args.h: Likewise.
496         * lib/printf-args.c: Likewise.
497         * lib/printf-parse.c: Likewise.
498         * lib/vasnprintf.c: Likewise.
499
500 2007-01-29  Eric Blake  <ebb9@byu.net>
501
502         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
503         declaration.
504
505 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
506
507         * lib/strptime.h (strptime): Use 'restrict' for args where
508         POSIX requires this.
509         * lib/strptime.c (strptime): Likewise.
510         Change license notice from LGPL to GPL, since gnulib-tool will
511         change this as needed.
512         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
513         defined.
514         Include "strptime.h" first, to check interface.
515         Do not #undef _LIBC and _NL_CURRENT.
516         Do not include <stdlib.h>; no longer needed.
517         Include "time_r.h" and declare ptime_locale_status
518         only if _LIBC is not defined.
519         (__P): Remove unused macro.
520         (match_string): Bring back glibc version, but use it only if _LIBC
521         is defined.
522         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
523         Remove unnecessary assertion and abort() call.
524         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
525         * m4/strptime.m4: Fix serial number comment.
526         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
527         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
528         (Depends-on): Add time_r.
529
530 2007-01-29  Bruno Haible  <bruno@clisp.org>
531
532         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
533         strptime.
534         * modules/strptime (Depends-on): Add stdbool.
535         * lib/strptime.h: Include <time.h> always. Add comments.
536
537 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
538
539         * modules/strptime: New file.
540         * lib/strptime.h: New file.
541         * lib/strptime.c: New file.
542         * m4/strptime.m4: New file.
543
544 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
545
546         * MODULES.html.sh: New module mpsort.
547         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
548
549         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
550         a circularity problem with HP-UX ia64 reported by Bob Proulx in
551         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
552         All uses changed.
553         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
554         All uses changed.
555         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
556         to _Restrict_.
557         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
558         the parameter matches the prototype.
559
560 2007-01-28  Jim Meyering  <jim@meyering.net>
561
562         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
563         sys/time.h here, reverting that part of the previous patch:
564         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
565
566 2007-01-28  Bruno Haible  <bruno@clisp.org>
567
568         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
569         value of $(SYS_TIME_H).
570         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
571         remove it conditionally, too. [added by Jim Meyering]
572         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
573         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
574         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
575         GETTIMEOFDAY_REPLACEMENT to 1.
576
577 2007-01-28  Bruno Haible  <bruno@clisp.org>
578
579         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
580         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
581         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
582         Set UNISTD_H instead of UNISTD_H2.
583         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
584
585 2007-01-28  Bruno Haible  <bruno@clisp.org>
586
587         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
588         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
589
590 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
591
592         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
593         (func_create_testdir): Ensure C locale for `grep' and `tr'
594         character ranges.
595         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
596         ACLOCAL_AMFLAGS parsing state machine.
597
598 2007-01-27  Bruno Haible  <bruno@clisp.org>
599
600         * modules/unistr/base: Update.
601
602 2007-01-27  Bruno Haible  <bruno@clisp.org>
603
604         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
605         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
606         * modules/unistr/u32-mbtouc-unsafe: Renamed from
607         modules/unistr/u32-mbtouc.
608         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
609         * lib/unistr.h: Update.
610         * lib/linebreak.c: Update.
611         * modules/unistr/u32-mbtouc: Renamed from
612         modules/unistr/u32-mbtouc-safe.
613         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
614         * lib/unistr.h: Update.
615         * lib/unistr/u32-to-u8.c: Update.
616         * lib/unistr/u32-to-u16.c: Update.
617
618 2007-01-27  Bruno Haible  <bruno@clisp.org>
619
620         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
621         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
622         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
623         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
624         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
625         * modules/unistr/u16-mbtouc-unsafe: Renamed from
626         modules/unistr/u16-mbtouc.
627         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
628         * lib/unistr.h: Update.
629         * lib/linebreak.c: Update.
630         * modules/linebreak: Update.
631         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
632         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
633         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
634         * modules/unistr/u16-mbtouc: Renamed from
635         modules/unistr/u16-mbtouc-safe.
636         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
637         * lib/unistr.h: Update.
638         * lib/unistr/u16-to-u8.c: Update.
639         * modules/unistr/u16-to-u8: Update.
640         * lib/unistr/u16-to-u32.c: Update.
641         * modules/unistr/u16-to-u32: Update.
642
643 2007-01-27  Bruno Haible  <bruno@clisp.org>
644
645         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
646         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
647         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
648         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
649         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
650         * modules/unistr/u8-mbtouc-unsafe: Renamed from
651         modules/unistr/u8-mbtouc.
652         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
653         * lib/unistr.h: Update.
654         * lib/striconveh.c: Update.
655         * modules/striconveh: Update.
656         * lib/linebreak.c: Update.
657         * modules/linebreak: Update.
658         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
659         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
660         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
661         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
662         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
663         * lib/unistr.h: Update.
664         * lib/striconveh.c: Update.
665         * modules/striconveh: Update.
666         * lib/unistr/u8-to-u16.c: Update.
667         * modules/unistr/u8-to-u16: Update.
668         * lib/unistr/u8-to-u32.c: Update.
669         * modules/unistr/u8-to-u32: Update.
670
671 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
672
673         Sync from Libtool.
674         * lib/argz.c: Do not include strings.h nor memory.h, include
675         string.h unconditionally.  Patch by Simon Josefsson.
676
677 2007-01-27  Bruno Haible  <bruno@clisp.org>
678
679         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
680         from gl_HEADER_STRING_H_BODY.
681         (gl_HEADER_STRING_H_BODY): Require it.
682         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
683         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
684         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
685         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
686         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
687         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
688         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
689         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
690         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
691         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
692         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
693         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
694         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
695         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
696         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
697
698 2007-01-27  Bruno Haible  <bruno@clisp.org>
699
700         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
701         check_PROGRAMS into noinst_PROGRAMS.
702         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
703         check_PROGRAMS in this case.
704         (func_import): Set for_test to false.
705         (func_create_testdir): Set for_test to true.
706
707 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
708             Bruno Haible  <bruno@clisp.org>
709
710         * modules/strcasestr (Files): Remove lib/strcasestr.h.
711         (Depends-on): Add string.
712         (Includes): Use <string.h> instead of strcasestr.h.
713         * modules/string (Makefile.am): Also substitute the value of
714         REPLACE_STRCASESTR.
715         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
716         assume strcasestr is declared in <string.h> not <strings.h>. Also
717         set REPLACE_STRCASESTR.
718         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
719         REPLACE_STRCASESTR.
720         * lib/strcasestr.h: Remove file.
721         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
722         * lib/string_.h (strcasestr): New declaration.
723
724 2007-01-27  Bruno Haible  <bruno@clisp.org>
725
726         * lib/string_.h: Use 'extern'.
727
728 2007-01-27  Jim Meyering  <jim@meyering.net>
729
730         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
731         of set-but-not-used local, "q".
732
733         * lib/mempcpy.c: Include <config.h> before <string.h>.
734         This fixes a compilation error on HP-UX, due to the system's
735         "restrict"-using mempcpy prototype.
736
737 2007-01-26  Bruno Haible  <bruno@clisp.org>
738
739         Small optimization.
740         * lib/javacomp.c: Include c-strstr.h.
741          (is_envjavac_gcj): Use c_strstr instead of strstr.
742         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
743
744 2007-01-26  Bruno Haible  <bruno@clisp.org>
745
746         * MODULES.html.sh (Unicode string functions): Add the new modules.
747
748         * modules/uniconv/u32-strconv-to-locale: New file.
749         * lib/uniconv/u32-strconv-to-locale.c: New file.
750
751         * modules/uniconv/u16-strconv-to-locale: New file.
752         * lib/uniconv/u16-strconv-to-locale.c: New file.
753
754         * modules/uniconv/u8-strconv-to-locale: New file.
755         * lib/uniconv/u8-strconv-to-locale.c: New file.
756
757         * modules/uniconv/u32-strconv-from-locale: New file.
758         * lib/uniconv/u32-strconv-from-locale.c: New file.
759
760         * modules/uniconv/u16-strconv-from-locale: New file.
761         * lib/uniconv/u16-strconv-from-locale.c: New file.
762
763         * modules/uniconv/u8-strconv-from-locale: New file.
764         * lib/uniconv/u8-strconv-from-locale.c: New file.
765
766         * modules/uniconv/u32-strconv-to-enc: New file.
767         * lib/uniconv/u32-strconv-to-enc.c: New file.
768         * modules/uniconv/u32-strconv-to-enc-tests: New file.
769         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
770
771         * modules/uniconv/u16-strconv-to-enc: New file.
772         * lib/uniconv/u16-strconv-to-enc.c: New file.
773         * lib/uniconv/u-strconv-to-enc.h: New file.
774         * modules/uniconv/u16-strconv-to-enc-tests: New file.
775         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
776
777         * modules/uniconv/u8-strconv-to-enc: New file.
778         * lib/uniconv/u8-strconv-to-enc.c: New file.
779         * modules/uniconv/u8-strconv-to-enc-tests: New file.
780         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
781
782         * modules/uniconv/u32-strconv-from-enc: New file.
783         * lib/uniconv/u32-strconv-from-enc.c: New file.
784         * modules/uniconv/u32-strconv-from-enc-tests: New file.
785         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
786
787         * modules/uniconv/u16-strconv-from-enc: New file.
788         * lib/uniconv/u16-strconv-from-enc.c: New file.
789         * modules/uniconv/u16-strconv-from-enc-tests: New file.
790         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
791
792         * modules/uniconv/u8-strconv-from-enc: New file.
793         * lib/uniconv/u8-strconv-from-enc.c: New file.
794         * lib/uniconv/u-strconv-from-enc.h: New file.
795         * modules/uniconv/u8-strconv-from-enc-tests: New file.
796         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
797
798         * modules/uniconv/u32-conv-from-enc: New file.
799         * lib/uniconv/u32-conv-from-enc.c: New file.
800         * modules/uniconv/u32-conv-from-enc-tests: New file.
801         * tests/uniconv/test-u32-conv-from-enc.c: New file.
802
803         * modules/uniconv/u16-conv-from-enc: New file.
804         * lib/uniconv/u16-conv-from-enc.c: New file.
805         * lib/uniconv/u-conv-from-enc.h: New file.
806         * modules/uniconv/u16-conv-from-enc-tests: New file.
807         * tests/uniconv/test-u16-conv-from-enc.c: New file.
808
809         * modules/uniconv/u8-conv-from-enc: New file.
810         * lib/uniconv/u8-conv-from-enc.c: New file.
811         * modules/uniconv/u8-conv-from-enc-tests: New file.
812         * tests/uniconv/test-u8-conv-from-enc.c: New file.
813
814         * modules/uniconv/base: New file.
815         * lib/uniconv.h: New file.
816
817 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
818
819         * doc/gnulib-tool.texi (Initial import): Update to match current
820         behavior with strdup module.
821         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
822         * lib/memmem.h: Remove; all uses removed.  This is now done
823         by <string.h>.
824         * lib/mempcpy.h: Likewise.
825         * lib/memrchr.h: Likewise.
826         * lib/stpcpy.h: Likewise.
827         * lib/stpncpy.h: Likewise.
828         * lib/strcase.h: Likewise.
829         * lib/strchrnul.h: Likewise.
830         * lib/strdup.h: Likewise.
831         * lib/strndup.h: Likewise.
832         * lib/strnlen.h: Likewise.
833         * lib/strpbrk.h: Likewise.
834         * lib/strsep.h: Likewise.
835         * lib/strstr.h: Likewise.
836         * lib/strtok_r.h: Likewise.
837         * lib/string_.h: New file.
838         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
839         Rely on <string.h> instead.
840         * lib/canon-host.c: Likewise.
841         * lib/chdir-long.c: Likewise.
842         * lib/concatpath.c: Likewise.
843         * lib/exclude.c: Likewise.
844         * lib/fchdir.c: Likewise.
845         * lib/getaddrinfo.c: Likewise.
846         * lib/getcwd.c: Likewise.
847         * lib/getsubopt.c: Likewise.
848         * lib/glob.c: Likewise.
849         * lib/hard-locale.c: Likewise.
850         * lib/iconvme.c: Likewise.
851         * lib/javacomp.c: Likewise.
852         * lib/mempcpy.c: Likewise.
853         * lib/memrchr.c: Likewise.
854         * lib/regex_internal.h: Likewise.
855         * lib/stpncpy.c: Likewise.
856         * lib/strcasecmp.c: Likewise.
857         * lib/strchrnul.c: Likewise.
858         * lib/strdup.c: Likewise.
859         * lib/striconv.c: Likewise.
860         * lib/striconveh.c: Likewise.
861         * lib/striconveha.c: Likewise.
862         * lib/strncasecmp.c: Likewise.
863         * lib/strndup.c: Likewise.
864         * lib/strnlen.c: Likewise.
865         * lib/strsep.c: Likewise.
866         * lib/strstr.c: Likewise.
867         * lib/strtok_r.c: Likewise.
868         * lib/userspec.c: Likewise.
869         * lib/w32spawn.h: Likewise.
870         * lib/xstrndup.c: Likewise.
871         * lib/mountlist.c (strstr): Remove decl.
872         * m4/string_h.m4: New file.
873         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
874         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
875         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
876         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
877         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
878         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
879         Set REPLACE_STRCASECMP if necessary.
880         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
881         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
882         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
883         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
884         HAVE_DECL_STRDUP if necessary.
885         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
886         since gl_FUNC_STRNDUP does that now.
887         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
888         Check for decl here...
889         (gl_PREREQ_STRNLEN): ... not here.
890         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
891         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
892         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
893         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
894         necessary.
895         * modules/string: New file.
896         * modules/memmem (Files): Remove special-purpose include file.
897         (Depends-on): Add string.
898         (Include): Include <string.h>, not the removed file.
899         * modules/mempcpy: Likewise.
900         * modules/memrchr: Likewise.
901         * modules/stpcpy: Likewise.
902         * modules/stpncpy: Likewise.
903         * modules/strcase: Likewise.
904         * modules/strchrnul: Likewise.
905         * modules/strdup: Likewise.
906         * modules/strndup: Likewise.
907         * modules/strnlen: Likewise.
908         * modules/strpbrk: Likewise.
909         * modules/strsep: Likewise.
910         * modules/strstr: Likewise.
911         * modules/strtok_r: Likewise.
912         * tests/test-dirname.c: Don't include "strdup.h", since
913         <string.h> now suffices.
914         * tests/test-memmem.c: Don't include "memmem.h", since
915         <string.h> now suffices.
916
917 2007-01-25  Bruno Haible  <bruno@clisp.org>
918
919         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
920         *resultp is 0.
921
922         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
923         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
924         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
925         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
926
927         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
928         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
929         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
930         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
931         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
932         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
933
934 2007-01-24  Bruno Haible  <bruno@clisp.org>
935
936         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
937         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
938         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
939         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
940         gl_FUNC_FTS_CORE.
941         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
942         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
943         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
944         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
945         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
946         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
947         gl_FUNC_FCHOWNAT.
948         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
949         gl_FUNC_STRFTIME.
950         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
951         Reported by Ralf Wildenhues.
952
953 2007-01-24  Bruno Haible  <bruno@clisp.org>
954
955         Drop AC_REQUIRE calls that are redundant with the module dependencies.
956         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
957         gl_GETADDRINFO.
958         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
959         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
960         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
961
962 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
963
964         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
965         Don't use 'exit'; just return from 'main'.
966         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
967
968         * lib/fnmatch_.h: Readjust white space and comments to match
969         glibc, to avoid spurious diffs.
970
971 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
972
973         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
974         2004-12-01 change by Jakub Jelinek, since this code won't compile
975         if !LIBC.  Problem reported by Bob Proulx.
976
977 2007-01-23  Bruno Haible  <bruno@clisp.org>
978
979         * lib/striconveh.c: Include c-strcaseeq.h.
980         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
981         * modules/striconveh (Depends-on): Add c-strcaseeq.
982
983 2007-01-23  Bruno Haible  <bruno@clisp.org>
984
985         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
986
987         * modules/c-strcaseeq: New file.
988         * lib/c-strcaseeq.h: New file.
989
990         * modules/streq: New file.
991         * lib/streq.h: New file.
992
993 2007-01-23  Bruno Haible  <bruno@clisp.org>
994
995         * modules/striconveha-tests: New file.
996         * tests/test-striconveha.c: New file.
997
998         * lib/striconveha.h: Include <stdbool.h>.
999         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
1000         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
1001         (mem_iconveha_notranslit): Renamed from mem_iconveha.
1002         (mem_iconveha): New function.
1003         (str_iconveha_notranslit): Renamed from str_iconveha.
1004         (str_iconveha): New function.
1005         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
1006         c-strcase.
1007
1008 2007-01-23  Bruno Haible  <bruno@clisp.org>
1009
1010         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
1011         encodings without forgiving before trying any encoding with handler.
1012         (str_iconveha): Try all encodings without forgiving before trying any
1013         encoding with handler.
1014
1015 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
1016
1017         Import the following changes from libc.
1018
1019         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
1020
1021         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
1022
1023         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
1024
1025         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
1026         normal_bracket label.
1027
1028         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
1029
1030         [BZ #361]
1031         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
1032         to normal_bracket after fetching the next character.
1033
1034 2007-01-22  Bruno Haible  <bruno@clisp.org>
1035
1036         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
1037         argument.
1038         * lib/striconveh.c (iconv_carefully_1): New function.
1039         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
1040         argument.
1041         (str_cd_iconveh): Update.
1042         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
1043         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
1044         * tests/test-striconveh.c (MAGIC): New macro.
1045         (new_offsets): New function.
1046         (main): Test call with and without offsets.
1047
1048 2007-01-22  Bruno Haible  <bruno@clisp.org>
1049
1050         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
1051         * modules/sys_select (Makefile.am): Likewise.
1052         * modules/sys_socket (Makefile.am): Likewise.
1053         * modules/sys_time (Makefile.am): Likewise.
1054
1055 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
1056
1057         * modules/gettimeofday (License): Change from GPL to LGPL, since
1058         gettimeofday is a library function.
1059
1060 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
1061
1062         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
1063
1064 2007-01-21  Bruno Haible  <bruno@clisp.org>
1065
1066         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
1067
1068 2007-01-21  Bruno Haible  <bruno@clisp.org>
1069
1070         * modules/striconveha: New file.
1071         * lib/striconveha.h: New file.
1072         * lib/striconveha.c: New file.
1073         * MODULES.html.sh (Internationalization functions): Add striconveha.
1074         * lib/striconv.c (str_iconv): Optimize the case of an empty input
1075         string.
1076         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
1077
1078 2007-01-21  Bruno Haible  <bruno@clisp.org>
1079
1080         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
1081         * lib/striconveh.c (str_iconveh): Likewise.
1082
1083 2007-01-21  Bruno Haible  <bruno@clisp.org>
1084
1085         * lib/striconveh.h (mem_iconveh): New declaration.
1086         * lib/striconveh.c (mem_iconveh): New function.
1087         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
1088
1089 2007-01-21  Bruno Haible  <bruno@clisp.org>
1090
1091         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
1092
1093         * lib/striconveh.h (mem_cd_iconveh): Change specification.
1094         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
1095         original result buffer.
1096         (str_cd_iconveh): Update.
1097         * tests/test-striconveh.c (main): Update.
1098
1099         * lib/striconv.h (mem_cd_iconv): Change specification.
1100         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
1101         result buffer.
1102         (str_cd_iconv): Update.
1103         * tests/test-striconv.c (main): Update.
1104
1105 2007-01-21  Bruno Haible  <bruno@clisp.org>
1106
1107         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
1108
1109 2007-01-20  Jim Meyering  <jim@meyering.net>
1110
1111         * lib/userspec.c (parse_with_separator): If a user or group string
1112         starts with "+", skip the corresponding name-to-ID look-up, since
1113         such a look-up must fail: user and group names may not include "+".
1114
1115 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
1116
1117         * lib/poll.c: Include sys/time.h and time.h unconditionally,
1118         since we now assume the sys_time module.
1119         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
1120         check for sys/time.h; no longer needed.
1121         * modules/poll (Depends-on): Depend on sys_time.
1122
1123 2007-01-18  Bruno Haible  <bruno@clisp.org>
1124
1125         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
1126         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
1127
1128         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
1129         gettimeofday.
1130
1131         * tests/test-gettimeofday.c: Include <time.h>.
1132         (dummy): Remove variable.
1133
1134         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
1135         gl_HEADER_SYS_TIME_H.
1136         (gl_HEADER_SYS_TIME_H): New macro.
1137
1138         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
1139         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
1140         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
1141         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
1142         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
1143         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
1144         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
1145         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
1146         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
1147         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
1148         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
1149
1150         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
1151         last change; it caused a compilation error when cross-compiling to
1152         Cygwin.
1153
1154 2007-01-18  Jim Meyering  <jim@meyering.net>
1155
1156         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
1157         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
1158         than the race-prone "test -d sys || mkdir sys".
1159         (configure.ac): Use AC_PROG_MKDIR_P.
1160         * modules/sys_select: Likewise.
1161         * modules/sys_socket: Likewise.
1162         * modules/sys_time: Likewise.
1163
1164 2007-01-18  Eric Blake  <ebb9@byu.net>
1165
1166         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
1167         replace gettimeofday.
1168         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
1169         name, to avoid infinite recursion.
1170
1171 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
1172
1173         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
1174         module sys_time.
1175         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
1176         assume timespec.h defines struct timeval.
1177         * lib/settime.c: Likewise.
1178         * lib/utimens.c: Likewise.
1179         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
1180         since we now assume the gettimeofday module.
1181         * lib/tempname.c (__gen_tempname): Likewise.
1182         * lib/gettimeofday.h: Remove.
1183         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
1184         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
1185         Include <time.h>, for 'time()'.
1186         (localtime_buffer_addr): Also use this workaround if
1187         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
1188         to simplify the uses.  All uses changed.
1189         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
1190         that #undef is inside {}, and 'const' follows type name consistently.
1191         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
1192         (gettimeofday): Do not use the maximum possible value for
1193         tv->tv_usec, since that might break usages other than ls.c.
1194         Instead, we'll leave ls.c alone.  This undoes today's patch
1195         by Bruno.  Add a compile-time warning for 1s-clock resolution;
1196         we've never observed the problem but might as well keep the
1197         canary.
1198         * lib/nanosleep.c: Include timespec.h first, for interface check.
1199         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
1200         now assume the sys_time module.
1201         * lib/tempname.c: Likewise.
1202         * lib/timespec.h: Likewise.
1203         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
1204         needed.
1205         * lib/strftime.c: Likewise.
1206         * lib/timespec.h: Likewise.
1207         * lib/posixtm.c: Include posixtm.h first, for interface check.
1208         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
1209         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
1210         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
1211         * lib/sys_time_.h: New file.
1212         * lib/timespec.h (struct timespec): Use long int, not long.
1213         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
1214         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
1215         Remove obsolescent call to AC_HEADER_TIME.
1216         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
1217         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
1218         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
1219         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
1220         Likewise.
1221         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
1222         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
1223         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
1224         into the sys_time module.  Check for gettimeofday just once.
1225         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
1226         for gettimeofday signature to just check the signature.  Merely
1227         compile it, since linking doesn't test signature.  Improve test for
1228         whether gettimeofday.o is actually needed.
1229         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
1230         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
1231         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
1232         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
1233         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
1234         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
1235         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
1236         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
1237         than worrying about sys/time.h.
1238         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
1239         Don't bother worrying about TIME_WITH_SYS_TIME.
1240         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
1241         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
1242         * m4/sys_time_h.m4: New file.
1243         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
1244         Don't include sys/time.h.  Return from main rather than exiting.
1245         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
1246         all uses changed.
1247         * modules/gethrxtime (Depends-on): Add sys_time.
1248         * modules/gettime (Depends-on): Likewise.
1249         * modules/gettimeofday (Depends-on): Likewise.
1250         * modules/nanosleep (Depends-on): Likewise.
1251         * modules/settime (Depends-on): Likewise.
1252         * modules/tempname (Depends-on): Likewise.
1253         * modules/utimens (Depends-on): Likewise.
1254         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
1255         (Include:) Change back to <sys/time.h>.
1256         (Maintainer:) Add self.
1257         * modules/sys_time: New file.
1258         * modules/tempname (Depends-on): Add gettimeofday.
1259         * tests/test-gettimeofday.c: Include <sys/time.h>
1260         rather than gettimeofday.h.
1261
1262 2007-01-17  Bruno Haible  <bruno@clisp.org>
1263
1264         * gnulib-tool (func_get_license): Revert last patch. Instead, let
1265         the license default to GPL.
1266         (func_create_testdir): Don't complain if a module is LGPL and its
1267         tests module depends on GPLed modules.
1268
1269 2007-01-17  Bruno Haible  <bruno@clisp.org>
1270
1271         * lib/gettimeofday.c (gettimeofday): Add code for the case
1272         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
1273         maximum possible value for tv->tv_usec, rather than the minimum one.
1274
1275 2005-10-08  Martin Lambers  <marlam@marlam.de>
1276 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
1277 2007-01-16  Bruno Haible  <bruno@clisp.org>
1278
1279         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
1280         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
1281         gl_FUNC_GETTIMEOFDAY.
1282         (Include): Add gettimeofday.h.
1283         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
1284         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
1285         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
1286         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
1287         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
1288         * lib/gettimeofday.h: New file.
1289         * lib/gettimeofday.c: Include <sys/timeb.h>.
1290         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
1291         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
1292         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
1293         fall back on time().
1294
1295         * tests/test-gettimeofday.c: New file.
1296         * modules/gettimeofday-tests: New file.
1297
1298 2007-01-16  Eric Blake  <ebb9@byu.net>
1299
1300         * modules/fnmatch (Depends-on): Depend on wchar.
1301         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
1302         * m4/fnmatch.m4: Likewise.
1303         * modules/mbchar (Makefile.am): Assume <wchar.h>.
1304         * m4/mbchar.m4: Likewise.
1305         * modules/mbswidth (Depends-on): Depend on wchar.
1306         * lib/mbswidth.c: Assume <wchar.h>.
1307         * m4/mbswidth.m4: Likewise.
1308         * modules/quotearg (Depends-on): Depend on wchar.
1309         * lib/quotearg.c: Assume <wchar.h>.
1310         * m4/quotearg.m4: Likewise.
1311         * modules/regex (Depends-on): Depend on wchar.
1312         * lib/regex_internal.h: Assume <wchar.h>.
1313         * m4/regex.m4: Likewise.
1314         * modules/stdint (Depends-on): Depend on wchar.
1315         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
1316         * m4/stdint.m4: Likewise.
1317         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
1318         * modules/strftime (Depends-on): Depend on wchar.
1319         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
1320         * modules/strtol (Depends-on): Depend on wchar.
1321         * lib/strtol.c: Assume <wchar.h>.
1322         * modules/wcwidth (Depends-on): Depend on wchar.
1323         * lib/wcwidth.h: Assume <wchar.h>.
1324         * m4/wcwidth.m4: Likewise.
1325
1326 2007-01-16  Bruno Haible  <bruno@clisp.org>
1327
1328         * modules/csharpexec-script: New, created from...
1329         * modules/csharpexec: ... this.
1330
1331 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
1332
1333         * modules/javaexec-script: New, created from...
1334         * modules/javaexec: ... this.
1335
1336 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
1337
1338         * modules/poll (Dependencies): Add sys_select.
1339
1340 2007-01-15  Jim Meyering  <jim@meyering.net>
1341
1342         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
1343         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
1344         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
1345         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
1346
1347 2007-01-15  Bruno Haible  <bruno@clisp.org>
1348
1349         * modules/striconveh: New file.
1350         * lib/striconveh.h: New file.
1351         * lib/striconveh.c: New file.
1352         * MODULES.html.sh (Internationalization functions): Add striconveh.
1353
1354         * modules/striconveh-tests: New file.
1355         * tests/test-striconveh.c: New file.
1356
1357 2007-01-15  Bruno Haible  <bruno@clisp.org>
1358
1359         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
1360         not from GNU libiconv or GNU libc.
1361
1362 2007-01-15  Bruno Haible  <bruno@clisp.org>
1363
1364         * doc/gnulib-intro.texi (Copyright): Explain the different license
1365         terms for module descriptions, autoconf macros, tests, documentation.
1366
1367 2007-01-14  Bruno Haible  <bruno@clisp.org>
1368
1369         * modules/striconv-tests: New file.
1370         * tests/test-striconv.c: New file.
1371
1372 2007-01-14  Bruno Haible  <bruno@clisp.org>
1373
1374         * modules/iconv-tests: New file.
1375         * tests/test-iconv.c: New file.
1376
1377 2007-01-14  Bruno Haible  <bruno@clisp.org>
1378
1379         * gnulib-tool (func_get_license): For test modules, use the license of
1380         the main module.
1381
1382 2007-01-14  Bruno Haible  <bruno@clisp.org>
1383
1384         * modules/iconv (Include): Clarify that <iconv.h> can only be included
1385         if iconv is found to exist.
1386
1387 2007-01-14  Bruno Haible  <bruno@clisp.org>
1388
1389         * modules/c-ctype-tests: New file.
1390         * tests/test-c-ctype.c: New file.
1391
1392 2007-01-14  Bruno Haible  <bruno@clisp.org>
1393
1394         * modules/binary-io-tests: New file.
1395         * tests/test-binary-io.sh: New file.
1396         * tests/test-binary-io.c: New file.
1397
1398 2007-01-14  Bruno Haible  <bruno@clisp.org>
1399
1400         * modules/array-oset-tests: New file.
1401         * tests/test-array_oset.c: New file.
1402
1403 2007-01-14  Bruno Haible  <bruno@clisp.org>
1404
1405         * modules/array-list-tests: New file.
1406         * tests/test-array_list.c: New file.
1407
1408 2007-01-14  Bruno Haible  <bruno@clisp.org>
1409
1410         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
1411         and make.
1412         Reported by Simon Josefsson in
1413         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
1414
1415 2007-01-14  Bruno Haible  <bruno@clisp.org>
1416
1417         * modules/allocsa-tests: New file.
1418         * tests/test-allocsa.c: New file.
1419
1420 2007-01-14  Bruno Haible  <bruno@clisp.org>
1421
1422         * modules/fchdir (Depends-on): Add absolute-header.
1423         * modules/unistd (Depends-on): Likewise.
1424
1425 2006-12-30  Bruno Haible  <bruno@clisp.org>
1426
1427         * modules/fchdir: New file.
1428         * modules/unistd (Files): Add lib/unistd_.h.
1429         (Makefile.am): Generate unistd.h from unistd_.h.
1430         * lib/fchdir.c: New file.
1431         * lib/dirent_.h: New file.
1432         * lib/unistd_.h: New file.
1433         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
1434         * m4/fchdir.m4: New file.
1435         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
1436         (gl_HEADER_UNISTD): Invoke it.
1437         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
1438         function.
1439         * lib/backupfile.c (opendir, closedir): Undefine.
1440         * lib/chown.c (open, close): Undefine.
1441         * lib/clean-temp.c (open, close): Undefine.
1442         * lib/copy-file.c (open, close): Undefine.
1443         * lib/execute.c (open, close): Undefine.
1444         * lib/fsusage.c (open, close): Undefine.
1445         * lib/gc-gnulib.c (open, close): Undefine.
1446         * lib/getcwd.c (opendir, closedir): Undefine.
1447         * lib/glob.c (opendir, closedir): Undefine.
1448         * lib/javacomp.c (open, close): Undefine.
1449         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
1450         * lib/openat-proc.c (open, close): Undefine.
1451         * lib/pagealign_alloc.c (open, close): Undefine.
1452         * lib/pipe.c (open, close): Undefine.
1453         * lib/progreloc.c (open, close): Undefine.
1454         * lib/savedir.c (opendir, closedir): Undefine.
1455         * lib/utime.c (open, close): Undefine.
1456         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
1457
1458 2007-01-10  Bruno Haible  <bruno@clisp.org>
1459
1460         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
1461
1462 2007-01-12  Eric Blake  <ebb9@byu.net>
1463
1464         Provide a robust <wchar.h>.  Further simplifications are now
1465         possible in other modules, but not included here.
1466         * modules/wchar: New module.
1467         * m4/wchar.m4: New file.
1468         * lib/wchar_.h: Likewise.
1469         * modules/mbchar (Depends-on): Depend on wchar, as the first use
1470         of the new module.
1471         * MODULES.html.sh (Extended multibyte and wide character utilities):
1472         New section.
1473
1474 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
1475
1476         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
1477         to a reasonable default for memory allocation.
1478         (xreadlink): Don't allocate a huge buffer, to work around a buggy
1479         file system that reports garbage st_size values for symlinks.
1480         Problem reported by Liyang Hu.
1481
1482 2007-01-11  Simon Josefsson  <simon@josefsson.org>
1483
1484         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
1485         Emacs .#* auto-save files).
1486
1487 2007-01-11  Bruno Haible  <bruno@clisp.org>
1488
1489         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
1490         directory.
1491
1492 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
1493
1494         Use @...@ consistently in lib/wctype_.h.
1495         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
1496         on it being set to 1 or 0.
1497         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
1498         go back to AC_SUBSTing it.
1499         * modules/wctype (Makefile.am): Undo previous change.
1500
1501 2007-01-10  Eric Blake  <ebb9@byu.net>
1502
1503         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
1504         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
1505         * modules/wctype (Makefile.am): Likewise.
1506         Reported by Chris McGuire.
1507
1508 2007-01-10  Jim Meyering  <jim@meyering.net>
1509
1510         fts.c: a small readability/maintainability improvement
1511         * lib/fts.c (fts_read): Make this code slightly more readable and
1512         maintainable by hoisting the "sp->fts_cur = p" assignments to
1513         immediately follow the statements that set P.  Derived from
1514         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
1515
1516 2007-01-10  Eric Blake  <ebb9@byu.net>
1517
1518         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
1519         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
1520         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
1521         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
1522         Reported by Chris McGuire.
1523
1524 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1525
1526         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
1527         in sed script.
1528
1529 2007-01-09  Bruno Haible  <bruno@clisp.org>
1530
1531         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
1532         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
1533         variables.
1534         (func_module): Use them.
1535
1536 2007-01-09  Bruno Haible  <bruno@clisp.org>
1537
1538         * modules/unistr/base: New file.
1539         * lib/unistr.h: New file.
1540
1541         * modules/unistr/u8-to-u16: New file.
1542         * lib/unistr/u8-to-u16.c: New file.
1543
1544         * modules/unistr/u8-to-u32: New file.
1545         * lib/unistr/u8-to-u32.c: New file.
1546
1547         * modules/unistr/u16-to-u8: New file.
1548         * lib/unistr/u16-to-u8.c: New file.
1549
1550         * modules/unistr/u16-to-u32: New file.
1551         * lib/unistr/u16-to-u32.c: New file.
1552
1553         * modules/unistr/u32-to-u8: New file.
1554         * lib/unistr/u32-to-u8.c: New file.
1555
1556         * modules/unistr/u32-to-u16: New file.
1557         * lib/unistr/u32-to-u16.c: New file.
1558
1559         * modules/unistr/u8-check: New file.
1560         * modules/unistr/u16-check: New file.
1561         * modules/unistr/u32-check: New file.
1562         * lib/unistr/u8-check.c: New file.
1563         * lib/unistr/u16-check.c: New file.
1564         * lib/unistr/u32-check.c: New file.
1565
1566         * modules/unistr/u8-chr: New file.
1567         * modules/unistr/u16-chr: New file.
1568         * modules/unistr/u32-chr: New file.
1569         * lib/unistr/u8-chr.c: New file.
1570         * lib/unistr/u16-chr.c: New file.
1571         * lib/unistr/u32-chr.c: New file.
1572
1573         * modules/unistr/u8-cmp: New file.
1574         * modules/unistr/u16-cmp: New file.
1575         * modules/unistr/u32-cmp: New file.
1576         * lib/unistr/u8-cmp.c: New file.
1577         * lib/unistr/u16-cmp.c: New file.
1578         * lib/unistr/u32-cmp.c: New file.
1579
1580         * modules/unistr/u8-cpy: New file.
1581         * modules/unistr/u16-cpy: New file.
1582         * modules/unistr/u32-cpy: New file.
1583         * lib/unistr/u8-cpy.c: New file.
1584         * lib/unistr/u16-cpy.c: New file.
1585         * lib/unistr/u32-cpy.c: New file.
1586         * lib/unistr/u-cpy.h: New file.
1587
1588         * modules/unistr/u8-cpy-alloc: New file.
1589         * modules/unistr/u16-cpy-alloc: New file.
1590         * modules/unistr/u32-cpy-alloc: New file.
1591         * lib/unistr/u8-cpy-alloc.c: New file.
1592         * lib/unistr/u16-cpy-alloc.c: New file.
1593         * lib/unistr/u32-cpy-alloc.c: New file.
1594         * lib/unistr/u-cpy-alloc.h: New file.
1595
1596         * modules/unistr/u8-endswith: New file.
1597         * modules/unistr/u16-endswith: New file.
1598         * modules/unistr/u32-endswith: New file.
1599         * lib/unistr/u8-endswith.c: New file.
1600         * lib/unistr/u16-endswith.c: New file.
1601         * lib/unistr/u32-endswith.c: New file.
1602         * lib/unistr/u-endswith.h: New file.
1603
1604         * modules/unistr/u8-mblen: New file.
1605         * modules/unistr/u16-mblen: New file.
1606         * modules/unistr/u32-mblen: New file.
1607         * lib/unistr/u8-mblen.c: New file.
1608         * lib/unistr/u16-mblen.c: New file.
1609         * lib/unistr/u32-mblen.c: New file.
1610
1611         * modules/unistr/u8-mbtouc: New file.
1612         * modules/unistr/u16-mbtouc: New file.
1613         * modules/unistr/u32-mbtouc: New file.
1614         * lib/unistr/u8-mbtouc.c: New file.
1615         * lib/unistr/u16-mbtouc.c: New file.
1616         * lib/unistr/u32-mbtouc.c: New file.
1617
1618         * modules/unistr/u8-mbtouc-safe: New file.
1619         * modules/unistr/u16-mbtouc-safe: New file.
1620         * modules/unistr/u32-mbtouc-safe: New file.
1621         * lib/unistr/u8-mbtouc-safe.c: New file.
1622         * lib/unistr/u16-mbtouc-safe.c: New file.
1623         * lib/unistr/u32-mbtouc-safe.c: New file.
1624
1625         * modules/unistr/u8-move: New file.
1626         * modules/unistr/u16-move: New file.
1627         * modules/unistr/u32-move: New file.
1628         * lib/unistr/u8-move.c: New file.
1629         * lib/unistr/u16-move.c: New file.
1630         * lib/unistr/u32-move.c: New file.
1631         * lib/unistr/u-move.h: New file.
1632
1633         * modules/unistr/u8-next: New file.
1634         * modules/unistr/u16-next: New file.
1635         * modules/unistr/u32-next: New file.
1636         * lib/unistr/u8-next.c: New file.
1637         * lib/unistr/u16-next.c: New file.
1638         * lib/unistr/u32-next.c: New file.
1639
1640         * modules/unistr/u8-prev: New file.
1641         * modules/unistr/u16-prev: New file.
1642         * modules/unistr/u32-prev: New file.
1643         * lib/unistr/u8-prev.c: New file.
1644         * lib/unistr/u16-prev.c: New file.
1645         * lib/unistr/u32-prev.c: New file.
1646
1647         * modules/unistr/u8-set: New file.
1648         * modules/unistr/u16-set: New file.
1649         * modules/unistr/u32-set: New file.
1650         * lib/unistr/u8-set.c: New file.
1651         * lib/unistr/u16-set.c: New file.
1652         * lib/unistr/u32-set.c: New file.
1653         * lib/unistr/u-set.h: New file.
1654
1655         * modules/unistr/u8-startswith: New file.
1656         * modules/unistr/u16-startswith: New file.
1657         * modules/unistr/u32-startswith: New file.
1658         * lib/unistr/u8-startswith.c: New file.
1659         * lib/unistr/u16-startswith.c: New file.
1660         * lib/unistr/u32-startswith.c: New file.
1661         * lib/unistr/u-startswith.h: New file.
1662
1663         * modules/unistr/u8-stpcpy: New file.
1664         * modules/unistr/u16-stpcpy: New file.
1665         * modules/unistr/u32-stpcpy: New file.
1666         * lib/unistr/u8-stpcpy.c: New file.
1667         * lib/unistr/u16-stpcpy.c: New file.
1668         * lib/unistr/u32-stpcpy.c: New file.
1669         * lib/unistr/u-stpcpy.h: New file.
1670
1671         * modules/unistr/u8-stpncpy: New file.
1672         * modules/unistr/u16-stpncpy: New file.
1673         * modules/unistr/u32-stpncpy: New file.
1674         * lib/unistr/u8-stpncpy.c: New file.
1675         * lib/unistr/u16-stpncpy.c: New file.
1676         * lib/unistr/u32-stpncpy.c: New file.
1677         * lib/unistr/u-stpncpy.h: New file.
1678
1679         * modules/unistr/u8-strcat: New file.
1680         * modules/unistr/u16-strcat: New file.
1681         * modules/unistr/u32-strcat: New file.
1682         * lib/unistr/u8-strcat.c: New file.
1683         * lib/unistr/u16-strcat.c: New file.
1684         * lib/unistr/u32-strcat.c: New file.
1685         * lib/unistr/u-strcat.h: New file.
1686
1687         * modules/unistr/u8-strchr: New file.
1688         * modules/unistr/u16-strchr: New file.
1689         * modules/unistr/u32-strchr: New file.
1690         * lib/unistr/u8-strchr.c: New file.
1691         * lib/unistr/u16-strchr.c: New file.
1692         * lib/unistr/u32-strchr.c: New file.
1693
1694         * modules/unistr/u8-strcmp: New file.
1695         * modules/unistr/u16-strcmp: New file.
1696         * modules/unistr/u32-strcmp: New file.
1697         * lib/unistr/u8-strcmp.c: New file.
1698         * lib/unistr/u16-strcmp.c: New file.
1699         * lib/unistr/u32-strcmp.c: New file.
1700
1701         * modules/unistr/u8-strcpy: New file.
1702         * modules/unistr/u16-strcpy: New file.
1703         * modules/unistr/u32-strcpy: New file.
1704         * lib/unistr/u8-strcpy.c: New file.
1705         * lib/unistr/u16-strcpy.c: New file.
1706         * lib/unistr/u32-strcpy.c: New file.
1707         * lib/unistr/u-strcpy.h: New file.
1708
1709         * modules/unistr/u8-strcspn: New file.
1710         * modules/unistr/u16-strcspn: New file.
1711         * modules/unistr/u32-strcspn: New file.
1712         * lib/unistr/u8-strcspn.c: New file.
1713         * lib/unistr/u16-strcspn.c: New file.
1714         * lib/unistr/u32-strcspn.c: New file.
1715         * lib/unistr/u-strcspn.h: New file.
1716
1717         * modules/unistr/u8-strdup: New file.
1718         * modules/unistr/u16-strdup: New file.
1719         * modules/unistr/u32-strdup: New file.
1720         * lib/unistr/u8-strdup.c: New file.
1721         * lib/unistr/u16-strdup.c: New file.
1722         * lib/unistr/u32-strdup.c: New file.
1723         * lib/unistr/u-strdup.h: New file.
1724
1725         * modules/unistr/u8-strlen: New file.
1726         * modules/unistr/u16-strlen: New file.
1727         * modules/unistr/u32-strlen: New file.
1728         * lib/unistr/u8-strlen.c: New file.
1729         * lib/unistr/u16-strlen.c: New file.
1730         * lib/unistr/u32-strlen.c: New file.
1731         * lib/unistr/u-strlen.h: New file.
1732
1733         * modules/unistr/u8-strmblen: New file.
1734         * modules/unistr/u16-strmblen: New file.
1735         * modules/unistr/u32-strmblen: New file.
1736         * lib/unistr/u8-strmblen.c: New file.
1737         * lib/unistr/u16-strmblen.c: New file.
1738         * lib/unistr/u32-strmblen.c: New file.
1739
1740         * modules/unistr/u8-strmbtouc: New file.
1741         * modules/unistr/u16-strmbtouc: New file.
1742         * modules/unistr/u32-strmbtouc: New file.
1743         * lib/unistr/u8-strmbtouc.c: New file.
1744         * lib/unistr/u16-strmbtouc.c: New file.
1745         * lib/unistr/u32-strmbtouc.c: New file.
1746
1747         * modules/unistr/u8-strncat: New file.
1748         * modules/unistr/u16-strncat: New file.
1749         * modules/unistr/u32-strncat: New file.
1750         * lib/unistr/u8-strncat.c: New file.
1751         * lib/unistr/u16-strncat.c: New file.
1752         * lib/unistr/u32-strncat.c: New file.
1753         * lib/unistr/u-strncat.h: New file.
1754
1755         * modules/unistr/u8-strncmp: New file.
1756         * modules/unistr/u16-strncmp: New file.
1757         * modules/unistr/u32-strncmp: New file.
1758         * lib/unistr/u8-strncmp.c: New file.
1759         * lib/unistr/u16-strncmp.c: New file.
1760         * lib/unistr/u32-strncmp.c: New file.
1761
1762         * modules/unistr/u8-strncpy: New file.
1763         * modules/unistr/u16-strncpy: New file.
1764         * modules/unistr/u32-strncpy: New file.
1765         * lib/unistr/u8-strncpy.c: New file.
1766         * lib/unistr/u16-strncpy.c: New file.
1767         * lib/unistr/u32-strncpy.c: New file.
1768         * lib/unistr/u-strncpy.h: New file.
1769
1770         * modules/unistr/u8-strnlen: New file.
1771         * modules/unistr/u16-strnlen: New file.
1772         * modules/unistr/u32-strnlen: New file.
1773         * lib/unistr/u8-strnlen.c: New file.
1774         * lib/unistr/u16-strnlen.c: New file.
1775         * lib/unistr/u32-strnlen.c: New file.
1776         * lib/unistr/u-strnlen.h: New file.
1777
1778         * modules/unistr/u8-strpbrk: New file.
1779         * modules/unistr/u16-strpbrk: New file.
1780         * modules/unistr/u32-strpbrk: New file.
1781         * lib/unistr/u8-strpbrk.c: New file.
1782         * lib/unistr/u16-strpbrk.c: New file.
1783         * lib/unistr/u32-strpbrk.c: New file.
1784         * lib/unistr/u-strpbrk.h: New file.
1785
1786         * modules/unistr/u8-strrchr: New file.
1787         * modules/unistr/u16-strrchr: New file.
1788         * modules/unistr/u32-strrchr: New file.
1789         * lib/unistr/u8-strrchr.c: New file.
1790         * lib/unistr/u16-strrchr.c: New file.
1791         * lib/unistr/u32-strrchr.c: New file.
1792
1793         * modules/unistr/u8-strspn: New file.
1794         * modules/unistr/u16-strspn: New file.
1795         * modules/unistr/u32-strspn: New file.
1796         * lib/unistr/u8-strspn.c: New file.
1797         * lib/unistr/u16-strspn.c: New file.
1798         * lib/unistr/u32-strspn.c: New file.
1799         * lib/unistr/u-strspn.h: New file.
1800
1801         * modules/unistr/u8-strstr: New file.
1802         * modules/unistr/u16-strstr: New file.
1803         * modules/unistr/u32-strstr: New file.
1804         * lib/unistr/u8-strstr.c: New file.
1805         * lib/unistr/u16-strstr.c: New file.
1806         * lib/unistr/u32-strstr.c: New file.
1807         * lib/unistr/u-strstr.h: New file.
1808
1809         * modules/unistr/u8-strtok: New file.
1810         * modules/unistr/u16-strtok: New file.
1811         * modules/unistr/u32-strtok: New file.
1812         * lib/unistr/u8-strtok.c: New file.
1813         * lib/unistr/u16-strtok.c: New file.
1814         * lib/unistr/u32-strtok.c: New file.
1815         * lib/unistr/u-strtok.h: New file.
1816
1817         * modules/unistr/u8-uctomb: New file.
1818         * modules/unistr/u16-uctomb: New file.
1819         * modules/unistr/u32-uctomb: New file.
1820         * lib/unistr/u8-uctomb.c: New file.
1821         * lib/unistr/u16-uctomb.c: New file.
1822         * lib/unistr/u32-uctomb.c: New file.
1823
1824         * MODULES.html.sh (Unicode string functions): Add the new modules.
1825
1826 2007-01-08  Bruno Haible  <bruno@clisp.org>
1827
1828         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
1829         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
1830         subdirectories.
1831
1832 2007-01-08  Karl Berry  <karl@gnu.org>
1833
1834         * doc/error.texi: mention that main() fns must set program_name
1835         when progname is used.
1836
1837 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
1838
1839         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
1840         WCTYPE_H is empty, for the benefit of builds from non-distclean
1841         directories.  Problem reported by Eric Blake in
1842         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
1843
1844 2007-01-08  Bruno Haible  <bruno@clisp.org>
1845
1846         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
1847         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
1848         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
1849         PROVIDE_CANONICALIZE_FILENAME_MODE.
1850         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
1851
1852 2007-01-08  Bruno Haible  <bruno@clisp.org>
1853
1854         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
1855         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
1856         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
1857         * lib/fts.c: Likewise.
1858         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
1859
1860 2006-12-25  Bruno Haible  <bruno@clisp.org>
1861
1862         * modules/utf8-ucs4-safe: New file.
1863         * lib/utf8-ucs4-safe.h: New file.
1864         * lib/unistr/utf8-ucs4-safe.c: New file.
1865
1866         * modules/utf16-ucs4-safe: New file.
1867         * lib/utf16-ucs4-safe.h: New file.
1868         * lib/unistr/utf16-ucs4-safe.c: New file.
1869
1870         * MODULES.html.sh (Unicode string functions): Add the new modules.
1871
1872 2007-01-08  Bruno Haible  <bruno@clisp.org>
1873
1874         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
1875         (Depends-on): Add unitypes.
1876         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
1877         (u8_mbtouc_aux): Move out to separate file.
1878         (u8_mbtouc): Use ucs4_t, uint8_t types.
1879         * lib/unistr/utf8-ucs4.c: New file.
1880
1881         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
1882         (Depends-on): Add unitypes.
1883         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
1884         (u16_mbtouc_aux): Move out to separate file.
1885         (u16_mbtouc): Use ucs4_t, uint16_t types.
1886         * lib/unistr/utf16-ucs4.c: New file.
1887
1888         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
1889         (Depends-on): Add unitypes.
1890         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
1891         (u8_uctomb_aux): Move out to separate file.
1892         (u8_uctomb): Use ucs4_t, uint8_t types.
1893         * lib/unistr/ucs4-utf8.c: New file.
1894
1895         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
1896         (Depends-on): Add unitypes.
1897         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
1898         (u16_uctomb_aux): Move out to separate file.
1899         (u16_uctomb): Use ucs4_t, uint16_t types.
1900         * lib/unistr/ucs4-utf16.c: New file.
1901
1902 2006-12-25  Bruno Haible  <bruno@clisp.org>
1903
1904         * modules/unitypes: New file.
1905         * lib/unitypes.h: New file.
1906         * MODULES.html.sh (func_all_modules): New section "Unicode string
1907         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
1908         this section. Add unitypes.
1909
1910 2007-01-08  Bruno Haible  <bruno@clisp.org>
1911
1912         Avoid variable names that conflict with those from libtool.
1913         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
1914         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
1915         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
1916         library_names_spec to acl_library_names_spec, hardcode_* to
1917         acl_hardcode_*.
1918         Reported by Ralf Wildenhues.
1919
1920 2007-01-08  Bruno Haible  <bruno@clisp.org>
1921
1922         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
1923         definition.
1924         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
1925         definition.
1926         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
1927         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
1928         definition.
1929         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
1930         definition.
1931         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
1932         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
1933         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
1934         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
1935         definition.
1936         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
1937         definition.
1938         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
1939         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
1940         GC_USE_<algorithm>.
1941         * lib/gc-libgcrypt.c: Likewise.
1942         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
1943         * modules/gc-arctwo (configure.ac): Likewise.
1944         * modules/gc-des (configure.ac): Likewise.
1945         * modules/gc-hmac-md5 (configure.ac): Likewise.
1946         * modules/gc-hmac-sha1 (configure.ac): Likewise.
1947         * modules/gc-md2 (configure.ac): Likewise.
1948         * modules/gc-md4 (configure.ac): Likewise.
1949         * modules/gc-md5 (configure.ac): Likewise.
1950         * modules/gc-random (configure.ac): Likewise.
1951         * modules/gc-rijndael (configure.ac): Likewise.
1952         * modules/gc-sha1 (configure.ac): Likewise.
1953
1954 2007-01-08  Bruno Haible  <bruno@clisp.org>
1955
1956         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
1957         macro definition.
1958         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
1959         definition.
1960         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
1961         definition.
1962         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
1963         * modules/fcntl-safer (configure.ac): Likewise.
1964         * modules/fopen-safer (configure.ac): Likewise.
1965         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
1966         GNULIB_FWRITEERROR macro definition.
1967
1968 2007-01-08  Bruno Haible  <bruno@clisp.org>
1969
1970         * m4/gnulib-common.m4: New file.
1971         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
1972         (func_get_filelist): Add m4/gnulib-common.m4.
1973
1974 2007-01-08  Bruno Haible  <bruno@clisp.org>
1975
1976         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
1977         command.
1978
1979 2007-01-08  Jim Meyering  <jim@meyering.net>
1980
1981         Use a more robust test for a "can't happen" condition.
1982         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
1983         narrowed the st_size value.  Presuming the "can't happen" condition
1984         is true, that narrowing could conceivably convert an invalid st_size
1985         value into a valid one.  Instead, use a change based on Matthew
1986         Woehlke's original patch.
1987
1988         Slight readability improvement: use an assert-like macro
1989         in place of literal "abort ()" uses.
1990         * lib/fts.c (fts_assert): Define.
1991         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
1992         Use this macro instead of a bare 'abort'.
1993
1994 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
1995
1996         Don't worry about using IRIX 5.3's wctype.h broken definitions;
1997         simply work around them.
1998         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
1999         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
2000         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before declaring.
2001         Don't bother to define as macros, since the standard doesn't require it.
2002         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
2003         longer worry about IRIX 5.3.
2004         (HAVE_WCTYPE_CTMP_BUG): Remove.
2005
2006 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
2007
2008         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
2009         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
2010         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
2011         Problems reported by Georg Schwarz for IRIX 5.3.
2012
2013         * gnulib-tool (autoconf_minversion): Take the maximum version number
2014         found, not the minimum.  Problem reported by James Youngman.
2015
2016 2007-01-03  Karl Berry  <karl@gnu.org>
2017
2018         * doc/error.texi: new file, explaining interaction with progname.
2019         * doc/gnulib.texi: include it.  Update copyright.
2020
2021 2007-01-03  Simon Josefsson  <simon@josefsson.org>
2022
2023         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
2024         AC_CANONICAL_HOST, to improve autobuild outputs.
2025
2026 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
2027             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
2028
2029         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
2030         sockets, server sockets, and other file descriptors.  Count errors
2031         to compute the return value.  Reorder the code a bit to be easier
2032         to follow.  Don't set event bits that were not requested (except
2033         POLLERR and POLLHUP).
2034
2035 2007-01-01  Bruno Haible  <bruno@clisp.org>
2036
2037         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
2038
2039 2007-01-03  Jim Meyering  <jim@meyering.net>
2040
2041         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
2042
2043 2007-01-02  Bruno Haible  <bruno@clisp.org>
2044
2045         * modules/settime (Include): Require timespec.h.
2046         * modules/nanosleep (Include): Likewise.
2047
2048 2007-01-01  Bruno Haible  <bruno@clisp.org>
2049
2050         * gnulib-tool (func_emit_copyright_notice): Bump year.
2051         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
2052
2053 2007-01-01  Bruno Haible  <bruno@clisp.org>
2054
2055         Improve support for OpenBSD.
2056         * build-aux/config.rpath (libname_spec): Export.
2057         (library_names_spec): New variable. Export.
2058         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
2059         library_names_spec from the config.rpath output. Locate shared library
2060         through the name pattern in library_names_spec.
2061
2062 2007-01-01  Eric Blake  <ebb9@byu.net>
2063
2064         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
2065
2066 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
2067
2068         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
2069         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
2070         assume the C locale, and avoid an "eval" that could cause trouble.
2071         Problem with SORT reported by Bob Proulx.
2072
2073         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
2074         Define.  Trivial patch from Henning Nielsen Lund, originally
2075         sent to bug-grep@gnu.org today.
2076
2077 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
2078
2079         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
2080         struct stat.  Problem reported by Henning Nielsen Lund.
2081         * lib/acl.c: Include acl.h first, to check interface.  Don't
2082         bother to include sys/types.h and sys/stat.h again.
2083
2084 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
2085
2086         Import the following change from libc; problem reported by
2087         Sven Verdoolaege.
2088
2089         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
2090
2091         [BZ #1373]
2092         * lib/argp.h: Remove __NTH for __argp_usage inline function.
2093
2094 2006-12-28  Jim Meyering  <jim@meyering.net>
2095
2096         * build-aux/announce-gen: Do not assume that the package
2097         builds any of tar.gz, tar.bz2, and .xdelta files.
2098         Suggestion from Simon Josefsson.
2099
2100 2006-12-28  Simon Josefsson  <simon@josefsson.org>
2101
2102         * modules/announce-gen: New file.
2103
2104 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
2105
2106         * lib/mbchar.h: Just include <wctype.h>; the wctype module
2107         handles its gotchas now.
2108         * lib/mbswidth.c: Likewise.
2109         * lib/wcwidth.h: Likewise.
2110         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
2111         and iswcntrl; the wctype module does this stuff now.
2112         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
2113         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
2114         * modules/mbchar (Depends-on): Add wctype.
2115         * modules/mbswidth (Depends-on): Likewise.
2116         * modules/wcwidth (Depends-on): Likewise.
2117
2118 2006-12-27  Eric Blake  <ebb9@byu.net>
2119
2120         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
2121         module uses more than what <wctype.h> is required to provide.
2122
2123 2006-12-26  Eric Blake  <ebb9@byu.net>
2124
2125         * gnulib-tool (sed_extract_prog): Avoid space-tab.
2126
2127 2006-12-26  Eric Blake  <ebb9@byu.net>
2128
2129         * modules/absolute-header: New module.
2130         * modules/fcntl (Depends-on): Depend on it.
2131         * modules/inttypes (Depends-on): Likewise.
2132         * modules/stdint (Depends-on): Likewise.
2133         * modules/sys_stat (Depends-on): Likewise.
2134         * modules/wctype (Depends-on): Likewise.
2135         * MODULES.html.sh (Support for building libraries and
2136         executables): Document it.
2137
2138 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
2139
2140         * gnulib-tool (SED): Remove, undoing previous change.
2141         The problem was that it broke coreutils on Solaris, because
2142         "sed --posix" leaked into a makefile.
2143         (sed): New alias, if 'alias' and GNU sed.
2144
2145 2006-12-24  Jim Meyering  <jim@meyering.net>
2146
2147         Work around an fchownat bug in glibc-2.4:
2148         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
2149         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
2150         in spite of the -P option.
2151         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
2152         New macros.
2153         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
2154         * modules/openat (Files): Add lib/fchownat.c.
2155         * lib/openat.c (fchownat): Don't define here.  Move to...
2156         * lib/fchownat.c: ...this new file.
2157
2158 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
2159
2160         Fix bug reported by Bruno Haible in
2161         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
2162         where quotearg.c didn't compile on Mac OS X 10.2 because it
2163         lacks <wchar.h> and wint_t.
2164         * lib/wctype_.h (__wctype_wint_t): New type.
2165         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
2166         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
2167         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
2168         Arg is now of type __wctype_wint_t, not wint_t.
2169         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
2170         substitute HAVE_WINT_T.
2171         * modules/wctype (Files): Add m4/wint_t.m4.
2172         (wctype.h): Substitute HAVE_WINT_T.
2173
2174 2006-12-23  Bruno Haible  <bruno@clisp.org>
2175
2176         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
2177
2178 2006-12-23  Bruno Haible  <bruno@clisp.org>
2179
2180         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
2181         S_ISLNK.
2182         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
2183         mingw.
2184
2185 2006-12-22  Bruno Haible  <bruno@clisp.org>
2186
2187         * lib/copy-file.c: Include acl.h.
2188         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
2189         Close the file descriptors only after being done with copy_acl.
2190         * modules/copy-file (Depends-on): Add acl.
2191
2192 2006-12-22  Bruno Haible  <bruno@clisp.org>
2193
2194         * gnulib-tool (SED): New variable.
2195         Use $SED instead of sed everywhere.
2196
2197 2006-12-22  Bruno Haible  <bruno@clisp.org>
2198
2199         * modules/no-c++: New file.
2200         * m4/no-c++.m4: New file.
2201         * MODULES.html.sh (Support for building libraries and executables):
2202         Add no-c++.
2203
2204 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
2205
2206         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
2207         Include <limits.h>, and use its INT_MAX to rewrite the
2208         j loop so that it does not overflow 'int'.  Problem reported by
2209         Ralf Wildenhues in
2210         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
2211         Play it safe by shifting left by 1 rather than multiplying by 2,
2212         as GCC is less likely to optimize this away when the value
2213         is signed (when it assumes overflow leads to undefined behavior).
2214         Also, don't assume time_t uses two's complement.
2215
2216 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
2217
2218         * MODULES.html.sh: New module wctype.
2219         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
2220         * lib/fnmatch.c: Don't bother to include <wchar.h> before
2221         <wctype.h>, since the new wctype module should fix this.
2222         * lib/quotearg.c: Include <wctype.h> unconditionally, since
2223         the wctype module should arrange for it.
2224         * lib/regex_internal.h: Likewise.
2225         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
2226         since the wctype module should handle this now.
2227         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
2228         * modules/fnmatch (Depends-on): Add wctype.
2229         * modules/quotearg (Depends-on): Likewise.
2230         * modules/regex (Depends-on): Likewise.
2231
2232 2006-12-19  Bruno Haible  <bruno@clisp.org>
2233
2234         * lib/strdup.h [C++]: Wrap definitions in extern "C".
2235         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
2236
2237 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2238
2239         * modules/savewd (Depends-on): Fix dependency on fcntl.
2240
2241 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
2242
2243         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
2244         conforms to C99, rather than relying on the user's environment
2245         setting of STDINT_H.
2246
2247 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
2248         and Eric Blake  <ebb9@byu.net>
2249
2250         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
2251         This is more consistent with the other defines here.
2252         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
2253         Port to z/OS.  Problem reported by Paul Gilmartin.
2254         Change local vars to use gl_ prefix rather than ac_.
2255         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
2256         with other defines.
2257         * modules/double-slash-root: New module.
2258         * modules/dirname (Files): Remove m4/double-slash-root.m4.
2259         (Depends-on): Add double-slash-root.
2260         * MODULES.html.sh (File system functions): Mention new module.
2261
2262 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
2263
2264         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
2265         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
2266         This is for the benefit of gzip, which doesn't do i18n.
2267
2268 2006-12-12  Jim Meyering  <jim@meyering.net>
2269
2270         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
2271         Reported by Andreas Schwab <schwab@suse.de>.
2272
2273 2006-12-12  Bruno Haible  <bruno@clisp.org>
2274
2275         Merge these changes.
2276         2006-09-05  Bruno Haible  <bruno@clisp.org>
2277         * lib/iconvme.c (iconv_string): No need to save and restore errno when
2278         iconv_alloc succeeded.
2279         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
2280         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
2281         test for " && dest " at the end - dest is always != NULL there. Call
2282         iconv with 4xNULL arguments initially, to reset the state. Call iconv
2283         with 2xNULL arguments, also to flush the state storage. Handle the
2284         IRIX iconv behaviour. Realloc the final result, to throw away unused
2285         memory.
2286
2287 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
2288
2289         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
2290         and fchmodat unconditionally, since glibc 2.4 has them.
2291         Problem reported by Arkadiusz Miskiewicz.
2292
2293 2006-12-10  Bruno Haible  <bruno@clisp.org>
2294
2295         * gnulib-tool (func_import): Show the include files only for those
2296         modules that are copied and specified.
2297         Reported by Karl Berry.
2298
2299 2006-12-08  Jim Meyering  <jim@meyering.net>
2300
2301         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
2302         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
2303
2304         * build-aux/announce-gen: Add two new options, both optional:
2305         --bootstrap-tools=TOOL_LIST
2306               a comma-separated list of tools, e.g.,
2307               autoconf,automake,bison,gnulib
2308         --gnulib-snapshot-date=DATE
2309               if gnulib is in the bootstrap tool list,
2310               then report this as the snapshot date.
2311               If not specified, use the current date/time.
2312               If you specify a date here, be sure it's UTC.
2313
2314 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2315
2316         * tests/test-argp-2.sh: Fix test to match actual output.
2317         (func_compare): Fix sed script to be portable.
2318
2319 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
2320
2321         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
2322         workaround for this case.  It is not autoconfigured now; offhand
2323         it's hard to see how to autoconfigure it.
2324
2325 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
2326
2327         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
2328         a directory that is about to be chowned.  Such a directory's
2329         initial file permissions should permit the owner only and this
2330         should not be changed until after the chown, since the group and
2331         other bits would be incorrect if they granted permission before
2332         the chown.
2333
2334         Fix porting problem for iswctype reported by Georg Schwarz in:
2335         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
2336         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
2337         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
2338         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
2339         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
2340
2341 2006-12-03  Jim Meyering  <jim@meyering.net>
2342
2343         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
2344         p->fts_statp may not yet be defined.
2345         (fts_read): Instead, set it in the caller, once p->fts_statp is
2346         sure to be defined, and corresponds to a top-level directory.
2347         This bug made du -x fail.  Here's the coreutils test case:
2348         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
2349         Reported by Mike Frysinger.
2350
2351 2006-12-01  Jim Meyering  <jim@meyering.net>
2352
2353         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
2354         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
2355         Reported by Simon Josefsson.
2356
2357 2006-11-30  Jim Meyering  <jim@meyering.net>
2358
2359         * m4/warning.m4: Use the all-permissive copyright notice
2360         recommended by RMS (rather than LGPL).
2361         * m4/vararrays.m4: Likewise.
2362         * m4/flexmember.m4: Likewise.
2363
2364 2006-11-29  Bruno Haible  <bruno@clisp.org>
2365
2366         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
2367         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
2368         using +=.
2369         Reported by Simon Josefsson <simon@josefsson.org>.
2370
2371 2006-11-28  James Youngman <jay@gnu.org>
2372
2373         * README: Advise users that they might find the bug-gnulib@gnu.org
2374         and autotools-announce@gnu.org mailing lists useful.
2375
2376 2006-11-28  Bruno Haible  <bruno@clisp.org>
2377
2378         * m4/ptrdiff_max.m4: Remove file.
2379
2380 2006-11-21  Bruno Haible  <bruno@clisp.org>
2381
2382         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
2383         _AC_COMPUTE_INT.
2384         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
2385         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
2386         _AC_COMPUTE_INT.
2387         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
2388         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
2389         _AC_COMPUTE_INT.
2390         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
2391
2392 2006-11-28  Jim Meyering  <jim@meyering.net>
2393
2394         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
2395         warning from "gcc -Wshadow" about shadowing the builtin.
2396
2397 2006-11-27  Bruno Haible  <bruno@clisp.org>
2398
2399         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
2400         _AC_COMPUTE_INT.
2401         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
2402
2403 2006-11-27  Bruno Haible  <bruno@clisp.org>
2404             Paul Eggert  <eggert@cs.ucla.edu>
2405
2406         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
2407
2408 2006-11-26  Bruno Haible  <bruno@clisp.org>
2409
2410         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
2411         noinst_LTLIBRARIES.
2412
2413 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
2414             Bruno Haible  <bruno@clisp.org>
2415
2416         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
2417         if compiling with "gcc -ansi".
2418
2419 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
2420
2421         Fix some incompatibilities with gcc -ansi -pedantic.
2422         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
2423         if compiling pedantically with GCC, unless it's C99 or later.
2424         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
2425         it mishandles gcc -ansi -pedantic as well.
2426         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
2427         if gcc -pedantic.
2428         * lib/regexec.c (check_node_accept_bytes): Don't use auto
2429         initializers for struct if -pedantic, unless it's C99 or later.
2430
2431 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
2432
2433         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
2434         Don't close an fd more than once. Identical atimes indicate
2435         success, not failure.
2436
2437 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
2438
2439         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
2440
2441 2006-11-23  Jim Meyering  <jim@meyering.net>
2442
2443         * build-aux/announce-gen: New file.  From coreutils.
2444
2445 2006-11-22  Jim Meyering  <jim@meyering.net>
2446
2447         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
2448         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
2449         (fts_read): Use a temporary to narrow the overused st_size member
2450         before using it in a switch statement.  Reported by Matthew Woehlke.
2451
2452         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
2453         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
2454
2455 2006-11-20  Bruno Haible  <bruno@clisp.org>
2456
2457         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
2458         changequote instead of pairs of brackets.
2459         Reported by Andreas Schwab <schwab@suse.de>.
2460
2461 2006-11-21  Jim Meyering  <jim@meyering.net>
2462
2463         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
2464         so as to remain compatible with older compilers.
2465         Patch from Michael Deutschmann.
2466
2467 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
2468
2469         * MODULES.html.sh (File system functions): Add openat.
2470
2471         * lib/openat.h (rpl_fstatat): New macro, if
2472         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
2473         (fstatat): Define to rpl_fstatat under the same conditions,
2474         unless COMPILING_FSTATAT.
2475         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
2476         seems to have the bug.
2477         * lib/fstatat.c: New file.
2478         * modules/openat (Files): Add it.
2479
2480 2006-11-20  Bruno Haible  <bruno@clisp.org>
2481
2482         * Makefile: New file.
2483
2484 2006-11-20  Jim Meyering  <jim@meyering.net>
2485
2486         The beginnings of syntax-related checks for gnulib.
2487         * lib/Makefile: New file.
2488         * lib/t-idcache: New script.  Ensure that the two halves of
2489         idcache.c stay in sync.
2490
2491         * lib/idcache.c: Adjust comments in user- and group- portions to
2492         be more accurate, and to be consistent with one another.
2493
2494 2006-11-20  Jim Meyering  <jim@meyering.net>
2495
2496         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
2497         continue using the flexible array member (thus, this module performs
2498         half as many malloc calls), with the addition that...
2499         (getgroup, getuser): Consistently record a non-match via an empty
2500         "name" string, and map an empty string match to a NULL return value.
2501         * modules/idcache (Depends-on): Re-add flexmember.
2502
2503         * lib/idcache.c (getuser): Remove all uses of the register keyword.
2504         (getuidbyname, getgroup, getgidbyname): Likewise.
2505
2506         Use cleaner syntax: NULL rather than 0.
2507         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
2508
2509 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
2510
2511         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
2512         It mishandled the case where the group was missing.
2513         Problem reported by Greg Schafer.
2514         * modules/idcache: Likewise.
2515
2516 2006-11-18  Jim Meyering  <jim@meyering.net>
2517
2518         * check-module (%exempt_header): Add exception for some
2519         conditionally-included headers.
2520
2521         * modules/i-ring (Depends-on): Add verify.
2522         (License): Change to LGPL.
2523
2524 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
2525
2526         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
2527         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
2528         and inttostr.h.  Use snprintf rather than uinttostr, so that
2529         LGPLed code doesn't depend on GPLed.
2530
2531 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
2532
2533         * modules/inline (License): Change from GPL to LGPL.
2534
2535 2006-11-17  Jim Meyering  <jim@meyering.net>
2536
2537         * modules/d-type (License): Switch to LGPL.
2538
2539 2006-11-15  Bruno Haible  <bruno@clisp.org>
2540
2541         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
2542
2543 2006-11-15  Eric Blake  <ebb9@byu.net>
2544
2545         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
2546         the module dependency.
2547
2548 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
2549             Bruno Haible  <bruno@clisp.org>
2550
2551         * gnulib-tool (func_create_testdir): Add license consistency check.
2552
2553 2006-11-15  Eric Blake  <ebb9@byu.net>
2554
2555         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
2556         random "(cached)" in configure output.
2557
2558 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2559
2560         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
2561         test for conforming inttypes.h is both announced and cached.
2562
2563         * MODULES.html.sh (seen_modules, seen_files): New variables.
2564         (func_module): Rewrite to use a few less gnulib-tool and sed
2565         invocations.  Avoid a couple of quadratic algorithms for ...
2566         (missed_modules, missed_files): ... these, with ...
2567         (func_append, func_tmpdir): ... these new functions, from
2568         gnulib-tool.  Analogously, install traps for cleanup.
2569
2570         * tests/test-gc.c (main): Remove unused variables.
2571         * tests/test-read-file.c: Include stdlib.h, for 'free'.
2572
2573 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
2574
2575         * modules/inttostr (License): Change to LGPL.
2576
2577 2006-11-14  Eric Blake  <ebb9@byu.net>
2578
2579         * modules/tempname (License): Change to LGPL.
2580
2581 2006-11-14  Eric Blake  <ebb9@byu.net>
2582
2583         * doc/functions.texi (Function Portability): *printf functions on
2584         Cygwin now understand all POSIX size specifiers.
2585
2586 2006-11-14  Bruno Haible  <bruno@clisp.org>
2587
2588         * modules/c-ctype (License): Change to LGPL.
2589
2590 2006-11-12  Bruno Haible  <bruno@clisp.org>
2591
2592         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
2593         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
2594         for GNOME libraries, for which the include files are installed in
2595         subdirectories of $prefix/include.
2596
2597 2006-11-12  Bruno Haible  <bruno@clisp.org>
2598
2599         * m4/lib-link.m4: Require at least autoconf-2.54.
2600         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
2601         name to underscores for the --with option.
2602
2603 2006-11-13  Bruno Haible  <bruno@clisp.org>
2604
2605         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
2606         the tests directory.
2607         Reported by Ralf Wildenhues.
2608
2609 2006-11-13  Bruno Haible  <bruno@clisp.org>
2610
2611         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
2612         (func_emit_initmacro_end): Undo the override here.
2613         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
2614         Works around the famous automake error in coreutils.
2615
2616 2006-11-13  Eric Blake  <ebb9@byu.net>
2617
2618         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
2619         element, not its node.
2620
2621 2006-11-12  Bruno Haible  <bruno@clisp.org>
2622
2623         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
2624         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
2625
2626 2006-11-12  Bruno Haible  <bruno@clisp.org>
2627
2628         * gnulib-tool: New option --local-symlink.
2629         (func_usage): Document it.
2630         (lsymbolic): New variable.
2631         (func_import, func_create_testdir): If --symlink was not specified,
2632         test whether --local-symlink was specified and the file comes from
2633         the local_gnulib_dir.
2634
2635 2006-11-12  Bruno Haible  <bruno@clisp.org>
2636
2637         * gnulib-tool (func_ln): New function.
2638         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
2639
2640 2006-11-12  Bruno Haible  <bruno@clisp.org>
2641
2642         Finish support for source files in subdirectories.
2643         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
2644         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
2645         AUTOMAKE_OPTIONS.
2646         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
2647
2648 2006-11-12  Bruno Haible  <bruno@clisp.org>
2649
2650         * gnulib-tool (func_get_automake_snippet): Synthesize also an
2651         EXTRA_lib_SOURCES augmentation.
2652         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
2653
2654 2006-11-12  Jim Meyering  <jim@meyering.net>
2655
2656         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
2657         file descriptors.  This also averts a failure on systems with
2658         native openat support when a traversed directory lacks "x" access.
2659         * lib/fts_.h: Include "i-ring.h"
2660         (struct FTS) [fts_fd_ring]: New member.
2661         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
2662         (FCHDIR): Add parentheses.
2663         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
2664         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
2665         When descending, rather than simply closing the previous
2666         fts_cwd_fd value, push that file descriptor onto the ring.
2667         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
2668         (fts_open): Initialize the new fd_ring member.
2669         (fts_close): Clear the ring.
2670         (fts_safe_changedir): When possible, use our new fd_ring to skip
2671         the diropen and fstat and dev/ino comparison that would normally
2672         accompany a virtual `chdir ("..")'.
2673
2674         * modules/fts (Depends-on): Add i-ring.
2675         * modules/i-ring: New module.
2676         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
2677         * m4/i-ring.m4: New file.
2678
2679 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2680
2681         * gnulib-tool (func_create_testdir): Fix replacement of
2682         `build-aux' in configure.ac.  Run autotools in gltests
2683         subdirectory.
2684         (func_create_testdir, func_create_megatestdir, test): There is
2685         no need for '--force' in most autotool invocations in a new
2686         tree.  Actually fail the whole test if any of the tools, or the
2687         configure or make stages fail.
2688
2689         Sync from Automake.
2690         * build-aux/gnupload: Revert last change.  Add pointer to upload
2691         instructions of the GNU Maintenance Instructions.
2692         Suggestion by Karl Berry.
2693
2694 2006-11-10  Jim Meyering  <jim@meyering.net>
2695
2696         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
2697
2698 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
2699
2700         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
2701         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
2702         (bind_textdomain_codeset) [! ENABLE_NLS]:
2703         Evaluate all the arguments.  That way, callers get compatible behavior
2704         if the arguments have side effects.  Also, it avoids some GCC
2705         diagnostics in some cases; Joel E. Denny reported problems when Bison
2706         was configured with --enable-gcc-warnigs.
2707
2708 2006-11-10  Jim Meyering  <jim@meyering.net>
2709
2710         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
2711         relevant options in CFLAGS (like -O, -fno-inline) are taken into
2712         account.
2713
2714 2006-11-10  Jim Meyering  <jim@meyering.net>
2715
2716         * modules/inline: New file/module.
2717         * modules/xalloc (Files): Remove m4/inline.m4.
2718         (Depends-on): Add inline, instead.
2719         * modules/oset: Likewise.
2720         * modules/list: Likewise.
2721
2722 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
2723
2724         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
2725         Problem reported by Matthew Woehlke.
2726
2727 2006-11-09  Bruno Haible  <bruno@clisp.org>
2728
2729         * lib/tempname.c (gen_tempname): Remove variant that invokes
2730         __gen_tempname.
2731         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
2732         __gen_tempname.
2733
2734 2006-11-08  Bruno Haible  <bruno@clisp.org>
2735
2736         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
2737         to 'yes' instead of 'cross-compiling'.
2738
2739 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
2740
2741         * lib/quotearg.h (quotearg_free): New decl.
2742         * lib/quotearg.c (quotearg_free): New function.
2743         (slot0, nslots, slotvec0, slotvec):
2744         Now file-scope so that quotearg_free can get at them.
2745
2746 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2747
2748         Sync from Automake.
2749         * build-aux/gnupload: Add missing 'gnu' to example URL.
2750         Report by Karl Berry.
2751
2752 2006-11-08  Bruno Haible  <bruno@clisp.org>
2753
2754         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
2755         Suggested by Paul Eggert.
2756
2757 2006-11-08  Jim Meyering  <jim@meyering.net>
2758
2759         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
2760         It's already included if !_LIBC.
2761         (fts_safe_changedir): Add a comment.
2762
2763 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
2764
2765         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
2766         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
2767         Matthew Woehlke.
2768
2769         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
2770         definitions up, to avoid colliding with change below.
2771         (static_inline) [HAVE_INLINE]: New macro.
2772         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
2773         Provide extern decls when !HAVE_INLINE.  Do not define unless
2774         static_inline is defined, either by us or by xmalloc.c.  Use
2775         static_inline rather than static inline.
2776         (XCALLOC): Optimize sizeof(T) = 1 case.
2777         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
2778
2779 2006-11-07  Bruno Haible  <bruno@clisp.org>
2780
2781         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
2782         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
2783         AC_C_INLINE.
2784         * modules/xalloc (Files): Add m4/inline.m4.
2785
2786 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2787
2788         * README: Fix typo.
2789         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
2790         (Miscellanous Notes): ...from this.
2791
2792 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
2793
2794         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
2795         Mention that offsetof should be used instead of sizeof.
2796         From Bruno Haible.
2797
2798 2006-11-07  Bruno Haible  <bruno@clisp.org>
2799
2800         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
2801
2802 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
2803
2804         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
2805         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
2806         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
2807         (gl_tree_add_before, gl_tree_add_after):
2808         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
2809         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
2810         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
2811         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
2812         (gl_linked_add_after, gl_linked_add_at): Likewise.
2813         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
2814         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
2815         (gl_tree_add_before, gl_tree_add_after): Likewise.
2816         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
2817         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
2818         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
2819
2820 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2821
2822         * lib/gl_oset.h: Use C comment style, not C++ comment style.
2823
2824 2006-11-06  Bruno Haible  <bruno@clisp.org>
2825
2826         * m4/inline.m4: New file.
2827         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
2828         * modules/list (Files): Add m4/inline.m4.
2829         * modules/oset (Files): Likewise.
2830
2831 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
2832
2833         * lib/idcache.c: Include <stddef.h>, for offsetof.
2834         (struct userid.name): Change from char * to a flexible array member.
2835         All uses changed.
2836         * modules/idcache (Depends-on): Add flexmember.
2837
2838         * MODULES.html.sh (Core language properties): New module flexmember.
2839         * modules/flexmember, m4/flexmember.m4: New files.
2840
2841         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
2842         inline functions that are identical with the old xnmalloc_inline,
2843         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
2844         that we can avoid some unnecessary integer multiplications and
2845         divisions in the common case where the element size is known at
2846         compile time.
2847         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
2848         needed.
2849         (xnboundedmalloc): Remove.
2850         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
2851         arguments, for consistency with rest of this header.
2852         (xcharalloc): Rewrite using XNMALLOC.
2853         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
2854         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
2855         versions have been moved to lib/xalloc.h and renamed to be the
2856         non-*_inline versions.
2857         (xmalloc, xrealloc): Implement without reference to the xnmalloc
2858         and xnrealloc functions, since those functions are now inline and
2859         now call us.
2860         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
2861         renaming described above.
2862         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
2863         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
2864         captures the dependency in AC_C_INLINE.
2865
2866         New module canonicalize-lgpl, proposed by Charles Wilson in
2867         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
2868         with a few small changes afterwards.
2869         * MODULES.html.sh (File system functions): New module
2870         canonicalize-lgpl.
2871         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
2872         and canonicalize_file_name.
2873         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
2874         * modules/canonicalize-lgpl: New files.
2875
2876 2006-11-05  Bruno Haible  <bruno@clisp.org>
2877
2878         * gnulib-tool (func_import, func_create_testdir): Create directories
2879         also for files in subdirectories of lib/.
2880
2881 2006-11-05  Bruno Haible  <bruno@clisp.org>
2882
2883         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
2884         ANSI C compliant.
2885
2886 2006-11-03  Bruno Haible  <bruno@clisp.org>
2887
2888         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
2889         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
2890         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
2891         (xnboundedmalloc): New inline function.
2892         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
2893         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
2894         xmalloc.
2895         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
2896         xmalloc.
2897         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
2898         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
2899         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
2900         xmalloc.
2901         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
2902         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
2903         xmalloc.
2904         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
2905         gl_tree_add_after): Use XMALLOC instead of xmalloc.
2906         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
2907         xmalloc.
2908         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
2909         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
2910         gl_tree_add_after): Use XMALLOC instead of xmalloc.
2911         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
2912         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
2913         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
2914         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
2915
2916 2006-11-03  Bruno Haible  <bruno@clisp.org>
2917
2918         * lib/c-ctype.h [C++]: Define functions without name mangling.
2919         * lib/fwriteerror.h [C++]: Likewise.
2920         * lib/gcd.h [C++]: Likewise.
2921         * lib/linebreak.h [C++]: Likewise.
2922
2923 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
2924
2925         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
2926         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
2927         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
2928         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
2929         Check for functions and headers just once.
2930         Check for declaration of canonicalize_file_name.
2931         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
2932
2933 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
2934
2935         * gnulib-tool (func_import): Fix typo in actioncmd.
2936
2937 2006-11-02  Bruno Haible  <bruno@clisp.org>
2938
2939         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
2940         newline sequence in the Makefile.am snippet as a space, like "make"
2941         does.
2942         Reported by Roger Persson <perrog@gmail.com>.
2943
2944 2006-11-01  Bruno Haible  <bruno@clisp.org>
2945
2946         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
2947         already declared in <string.h>.
2948         * lib/strcase.h (strncasecmp): Don't declare it if yes.
2949
2950 2006-11-01  Bruno Haible  <bruno@clisp.org>
2951
2952         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
2953         * lib/strcase.h: Include <string.h>.
2954         (strcasecmp): Define to rpl_strcasecmp here.
2955
2956 2006-11-01  Bruno Haible  <bruno@clisp.org>
2957
2958         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
2959
2960 2006-11-01  Eric Blake  <ebb9@byu.net>
2961
2962         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
2963
2964         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
2965
2966 2006-10-29  Bruno Haible  <bruno@clisp.org>
2967
2968         Make it compile in C++ mode.
2969         * lib/full-write.c (full_rw): Add a cast.
2970
2971 2006-11-01  Bruno Haible  <bruno@clisp.org>
2972
2973         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
2974         be POSIX compliant.
2975         Reported by Roger Persson <perrog@gmail.com>.
2976
2977 2006-11-01  Eric Blake  <ebb9@byu.net>
2978
2979         * lib/getopt_.h: Fix comments.
2980
2981 2006-10-31  Eric Blake  <ebb9@byu.net>
2982
2983         * modules/tmpdir (Depends-on): Add sys_stat.
2984         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
2985         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
2986         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
2987         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
2988         tempname.
2989
2990 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
2991
2992         Avoid some C++ diagnostics reported by Bruno Haible.
2993         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
2994         xmalloc.
2995         (quotearg_alloc): Use xcharalloc rather than xmalloc.
2996         (struct slotvec): Move to top level.
2997         (quotearg_n_options): Rewrite to avoid xmalloc.
2998         * lib/xalloc.h (xcharalloc): New function.
2999         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
3000         [defined __cplusplus]: Add function template that provides result
3001         type propagation.  This part of the change is from Bruno Haible.
3002
3003 2006-10-29  Bruno Haible  <bruno@clisp.org>
3004
3005         Make it compile in C++ mode.
3006         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
3007         * lib/strnlen1.c (strnlen1): Cast memchr result.
3008         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
3009         * lib/clean-temp.c (string_equals, string_hash): Add casts.
3010         (create_temp_dir): Rename local variable 'template'.
3011         (compile_csharp_using_sscli): Add cast.
3012         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
3013         * lib/findprog.c (find_in_path): Likewise.
3014         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
3015         * lib/wait-process.c (register_slave_subprocess): Likewise.
3016
3017 2006-10-22  Bruno Haible  <bruno@clisp.org>
3018
3019         * modules/tsearch: New file.
3020         * lib/tsearch.h: New file.
3021         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
3022         * m4/tsearch.m4: New file.
3023         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
3024
3025 2006-10-29  Eric Blake  <ebb9@byu.net>
3026
3027         * lib/arcfour.c: Assume config.h.
3028         * lib/arctwo.c: Likewise.
3029         * lib/base64.c: Likewise.
3030         * lib/check-version.c: Likewise.
3031         * lib/crc.c: Likewise.
3032         * lib/des.c: Likewise.
3033         * lib/gc-gnulib.c: Likewise.
3034         * lib/gc-libgcrypt.c: Likewise.
3035         * lib/gc-pbkdf2-sha1.c: Likewise.
3036         * lib/getaddrinfo.c: Likewise.
3037         * lib/getdelim.c: Likewise.
3038         * lib/getline.c: Likewise.
3039         * lib/hmac-md5.c: Likewise.
3040         * lib/hmac-sha1.c: Likewise.
3041         * lib/iconvme.c: Likewise.
3042         * lib/md2.c: Likewise.
3043         * lib/md4.c: Likewise.
3044         * lib/memxor.c: Likewise.
3045         * lib/read-file.c: Likewise.
3046         * lib/readline.c: Likewise.
3047         * lib/rijndael-alg-fst.c: Likewise.
3048         * lib/rijndael-api-fst.c: Likewise.
3049         * lib/xgetdomainname.c: Likewise.
3050
3051 2006-10-28  Eric Blake  <ebb9@byu.net>
3052
3053         * lib/xstrndup.c: Assume config.h.
3054
3055 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
3056
3057         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
3058         stat-macros.h is now for our own macros, whereas stat_h is for
3059         macros in the <sys/stat.h> name space.
3060         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
3061         (STAT_MACROS_H): Remove.
3062         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
3063         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
3064         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
3065         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
3066         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
3067         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
3068         Move these macros to ...
3069         * lib/stat_.h: here.  Don't include stat-macros.h.
3070         * lib/canonicalize.c: Don't include stat-macros.h.
3071         * lib/chown.c: Likewise.
3072         * lib/euidaccess.c: Likewise.
3073         * lib/file-type.c: Likewise.
3074         * lib/filemode.c: Likewise.
3075         * lib/glob.c: Likewise.
3076         * lib/isapipe.c: Likewise.
3077         * lib/lchown.c: Likewise.
3078         * lib/lstat.c: Likewise.
3079         * lib/mkdir-p.c: Likewise.
3080         * lib/rmdir.c: Likewise.
3081         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
3082         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
3083         unless mkdir isn't declared, to speed up 'configure'.
3084         Always create sys/stat.h, since it's unlikely any real sys/stat.h
3085         would define all the S_* symbols.
3086         * modules/canonicalize (Depends-on):
3087         Depend on sys_stat, not stat-macros.
3088         * modules/chown: Likewise.
3089         * modules/euidaccess: Likewise.
3090         * modules/filemode: Likewise.
3091         * modules/file-type: Likewise.
3092         * modules/glob: Likewise.
3093         * modules/isapipe: Likewise.
3094         * modules/lchown: Likewise.
3095         * modules/lstat: Likewise.
3096         * modules/mkancesdirs: Likewise.
3097         * modules/rmdir: Likewise.
3098         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
3099         * modules/modechange: Likewise.
3100         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
3101         (configure.ac): Remove gl_STAT_MACROS.
3102         * modules/sys_stat (Depends-on): Remove stat-macros.
3103
3104 2006-10-27  Bruno Haible  <bruno@clisp.org>
3105
3106         * m4/signed.m4: Remove file.
3107         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
3108         invocation.
3109         * modules/vasnprintf (Files): Remove m4/signed.m4.
3110
3111 2006-10-27  Bruno Haible  <bruno@clisp.org>
3112
3113         Update to GNU gettext 0.16.
3114         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
3115         m4/inttypes-h.m4, m4/signed.m4.
3116         * m4/gettext.m4: Update to GNU gettext 0.16.
3117         * m4/intl.m4: New file, from GNU gettext.
3118         * m4/intldir.m4: New file, from GNU gettext.
3119         * config/srclist.txt: Update
3120
3121 2006-10-27  Eric Blake  <ebb9@byu.net>
3122
3123         * MODULES.html.sh: Document tempname.
3124         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
3125         dependencies.
3126         (Files): Move lib/tempname.c...
3127         * modules/tempname: ...to this new module.
3128         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
3129         (gl_PREREQ_TEMPNAME): Move...
3130         * m4/tempname.m4: ...to this new file.
3131         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
3132         * modules/sys_stat (Depends-on): Add stat-macros.
3133         * lib/stat_.h (includes): Pick up stat macros.
3134         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
3135         if stat macros are broken.
3136         * lib/tempname.c (includes): No need to include "stat-macros.h".
3137         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
3138         (direxists, __path_search) [!_LIBC]: Don't compile these in
3139         gnulib; the tmpdir module covers that.
3140         * lib/tempname.h: New file.
3141
3142 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
3143
3144         * COPYING: Explain how gnulib-tool converts licence headers.
3145         Almost all wording by Eric Blake.
3146
3147 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
3148
3149         * lib/mbchar.h (is_basic_table): Make read-only.
3150         * lib/mbchar.c (is_basic_table): Likewise.
3151         Reported by John Darrington.
3152
3153 2006-10-25  Bruno Haible  <bruno@clisp.org>
3154
3155         * lib/progname.h (set_program_name): Undefine before defining.
3156
3157 2006-10-25  Bruno Haible  <bruno@clisp.org>
3158
3159         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
3160         false for non-gcc C++ compilers.
3161         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
3162
3163 2006-10-24  Bruno Haible  <bruno@clisp.org>
3164
3165         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
3166         iconv implementations like Irix iconv.
3167
3168 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
3169
3170         * modules/vararrays: New file.
3171         * m4/vararrays.m4: New file, taken from diffutils.
3172         * MODULES.html.sh: New module vararrays.
3173
3174 2006-10-24  Karl Berry  <karl@gnu.org>
3175
3176         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
3177         Don't call GNU Unix.
3178
3179 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3180
3181         * users.txt: Add Libtool.
3182
3183         Sync from Libtool:
3184
3185         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
3186
3187         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
3188         to gnulib's policy of including config.h unconditionally.
3189
3190 2006-10-24  Bruno Haible  <bruno@clisp.org>
3191
3192         * modules/wcwidth (Files): Add m4/wint_t.m4.
3193         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
3194         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
3195
3196 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
3197
3198         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
3199         to pacify GCC with some -W flags enabled.  Problem reported by
3200         Bruno Haible.
3201
3202 2006-10-24  Jim Meyering  <jim@meyering.net>
3203
3204         * MODULES.html.sh: Remove uinttostr.  It's not a module.
3205         Reported by Karl Berry.
3206
3207 2006-10-23  Bruno Haible  <bruno@clisp.org>
3208
3209         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
3210
3211 2006-10-24  Bruno Haible  <bruno@clisp.org>
3212
3213         * lib/gl_list.h: Use C comment style, not C++ comment style.
3214
3215 2006-10-23  Eric Blake  <ebb9@byu.net>
3216
3217         * lib/getaddrinfo.c (includes): Add missing include.
3218
3219 2006-10-23  Bruno Haible  <bruno@clisp.org>
3220             Paul Eggert  <eggert@cs.ucla.edu>
3221
3222         Ability to rename obstack_free.
3223         * lib/obstack.h (__obstack_free): New macro. Declare instead of
3224         obstack_free.
3225         (obstack_free): Invoke the __obstack_free macro.
3226         * lib/obstack.c (obstack_free): Use __obstack_free macro.
3227
3228 2006-10-23  Bruno Haible  <bruno@clisp.org>
3229             Paul Eggert  <eggert@cs.ucla.edu>
3230
3231         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
3232         __argc, __argv from the declaration. (They are defined as macros on
3233         mingw.)
3234
3235 2006-10-22  Bruno Haible  <bruno@clisp.org>
3236
3237         * doc/gnulib-intro.texi: New file.
3238         * doc/gnulib.texi: Include it.
3239
3240 2006-10-21  Bruno Haible  <bruno@clisp.org>
3241
3242         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
3243         "Introduction", "Miscellanous Notes", "Particular Modules".
3244
3245 2006-10-21  Bruno Haible  <bruno@clisp.org>
3246
3247         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
3248         Change mostlyclean-local rule to avoid sh syntax error from bash
3249         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
3250
3251 2006-10-23  Jim Meyering  <jim@meyering.net>
3252
3253         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
3254         in place of snprintf.
3255
3256         * modules/inttostr (Files): Add lib/uinttostr.c.
3257         * lib/uinttostr.c (inttostr): New file/function.
3258         * lib/inttostr.h (uinttostr): Declare.
3259         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
3260         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
3261         Add uinttostr.
3262         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
3263
3264 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
3265
3266         * lib/canonicalize.c (ELOOP): Define if not already defined.
3267         Problem reported by Bruno Haible in
3268         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
3269
3270 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
3271
3272         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
3273         Problem reported by Perry Smith and Ville Laurikari.
3274
3275         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
3276         uses.
3277
3278 2006-10-19  Bruno Haible  <bruno@clisp.org>
3279
3280         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
3281         for mingw.
3282
3283 2006-10-19  Bruno Haible  <bruno@clisp.org>
3284
3285         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
3286         Needed for mingw.
3287
3288 2006-10-19  Bruno Haible  <bruno@clisp.org>
3289
3290         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
3291
3292 2006-10-19  Bruno Haible  <bruno@clisp.org>
3293
3294         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
3295         it.
3296
3297 2006-10-19  Bruno Haible  <bruno@clisp.org>
3298
3299         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
3300         invocation.
3301
3302 2006-10-19  Bruno Haible  <bruno@clisp.org>
3303
3304         * gnulib-tool (func_create_testdir): Don't include ftruncate and
3305         mountlist by default.
3306
3307 2006-10-16  Bruno Haible  <bruno@clisp.org>
3308
3309         * lib/c-strstr.c: Include c-strstr.h.
3310
3311 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
3312
3313         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
3314         in a slash.
3315
3316 2006-10-18  Bruno Haible  <bruno@clisp.org>
3317
3318         * lib/lock.h [C++]: Wrap definitions in extern "C".
3319
3320 2006-10-18  Bruno Haible  <bruno@clisp.org>
3321
3322         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
3323         gl_LIBOBJS list.
3324
3325 2006-10-18  Bruno Haible  <bruno@clisp.org>
3326
3327         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
3328
3329 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
3330
3331         * lib/xstrtol.h: Include gettext.h.
3332         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
3333         Problem reported by Eric Blake.
3334         * modules/xstrtol (Depends-on): Add gettext-h.
3335
3336 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
3337
3338         * lib/strftime.c (advance): New macro.
3339         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
3340         incomplete type, so you can't add 0 to it.  Problem and patch
3341         reported by Eelco Dolstra for dietlibc.
3342
3343 2006-10-18  Jim Meyering  <jim@meyering.net>
3344
3345         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
3346         type for a local, and rename it: s/up/user_proc/.
3347
3348 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
3349
3350         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
3351         READ_UTMP_USER_PROCESS.
3352         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
3353
3354 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
3355
3356         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
3357         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
3358
3359 2006-10-17  Eric Blake  <ebb9@byu.net>
3360
3361         * lib/sigprocmask.c (sigprocmask): Fix typo.
3362
3363         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
3364
3365         * modules/clean-temp (Makefile.am): Don't add to make output...
3366         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
3367         config.h.
3368
3369 2006-10-17  Bruno Haible  <bruno@clisp.org>
3370
3371         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
3372         differently if DEFAULT_TEXT_DOMAIN is set.
3373
3374 2006-10-16  Bruno Haible  <bruno@clisp.org>
3375
3376         * lib/clean-temp.c: Include fwriteerror.h.
3377
3378 2006-10-16  Bruno Haible  <bruno@clisp.org>
3379
3380         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
3381
3382 2006-10-16  Bruno Haible  <bruno@clisp.org>
3383
3384         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
3385         * lib/sigprocmask.h: Include <sys/types.h>.
3386         (sigset_t): Use the system's definition if present.
3387
3388 2006-10-17  Eric Blake  <ebb9@byu.net>
3389
3390         * lib/xvasprintf.c (includes): Assume config.h.
3391         * lib/xasprintf.c (includes): Likewise.
3392
3393 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
3394
3395         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
3396         at least as wide as intmax_t.
3397
3398 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
3399
3400         (Imported from Automake.)
3401         * build-aux/gnupload: Update to version 1.1 of directive file.
3402
3403 2006-10-16  Eric Blake  <ebb9@byu.net>
3404
3405         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
3406         match Automake 1.10a.
3407
3408 2006-10-14  Bruno Haible  <bruno@clisp.org>
3409
3410         * modules/sigprocmask: New file.
3411         * lib/sigprocmask.h: New file.
3412         * lib/sigprocmask.c: New file.
3413         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
3414         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
3415         request sigprocmask.o.
3416         (gl_PREREQ_SIGPROCMASK): New macro.
3417         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
3418         (Depends-on): Add sigprocmask.
3419         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
3420         gt_SIGNALBLOCKING. Test for 'raise' only once.
3421         * lib/fatal-signal.c: Include sigprocmask.h.
3422         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
3423         unblock_fatal_signals): Define always.
3424         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
3425         sigprocmask.
3426
3427 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
3428
3429         Sync from Automake.
3430         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
3431         which incorrectly sets the mode of an existing destination
3432         directory.  In some cases the unpatched install-sh could do the
3433         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
3434         system.  We hope this is rare in practice, but it's clearly worth
3435         fixing.  Problem reported by Alex Unleashed in
3436         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
3437         Also, don't bother to check for -m bugs unless we're using -m;
3438         suggested by Stepan Kasal.
3439
3440 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3441
3442         Sync from Automake.
3443         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
3444         `-c' flag, so they appear at the same position as in %FASTDEP%
3445         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
3446         which ignores unknown options only after the first non-option.
3447         Bug report against M4 by Nelson H. F. Beebe.
3448
3449 2006-10-13  Jim Meyering  <jim@meyering.net>
3450
3451         Fix a bug in yesterday's change.
3452         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
3453         p->fts_statp->st_dev would be used uninitialized.
3454         Ensures that we always call fts_stat on the very first entry.
3455         Miklos Szeredi reported that find -xdev stopped working.
3456
3457 2006-10-12  Bruno Haible  <bruno@clisp.org>
3458
3459         * gnulib-tool (func_get_automake_snippet): Append an automatically
3460         computed EXTRA_DIST augmentation.
3461         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
3462         * modules/alloca-opt (Makefile.am): Likewise.
3463         * modules/allocsa (Makefile.am): Likewise.
3464         * modules/arcfour (Makefile.am): Likewise.
3465         * modules/arctwo (Makefile.am): Likewise.
3466         * modules/argmatch (Makefile.am): Likewise.
3467         * modules/argz (Makefile.am): Likewise.
3468         * modules/atexit (Makefile.am): Likewise.
3469         * modules/backupfile (Makefile.am): Likewise.
3470         * modules/byteswap (Makefile.am): Likewise.
3471         * modules/c-strtod (Makefile.am): Likewise.
3472         * modules/c-strtold (Makefile.am): Likewise.
3473         * modules/calloc (Makefile.am): Likewise.
3474         * modules/canon-host (Makefile.am): Likewise.
3475         * modules/canonicalize (Makefile.am): Likewise.
3476         * modules/chdir-long (Makefile.am): Likewise.
3477         * modules/chdir-safer (Makefile.am): Likewise.
3478         * modules/check-version (Makefile.am): Likewise.
3479         * modules/chown (Makefile.am): Likewise.
3480         * modules/cloexec (Makefile.am): Likewise.
3481         * modules/close-stream (Makefile.am): Likewise.
3482         * modules/closeout (Makefile.am): Likewise.
3483         * modules/crc (Makefile.am): Likewise.
3484         * modules/csharpexec (Makefile.am): Likewise.
3485         * modules/cycle-check (Makefile.am): Likewise.
3486         * modules/des (Makefile.am): Likewise.
3487         * modules/dev-ino (Makefile.am): Likewise.
3488         * modules/dirfd (Makefile.am): Likewise.
3489         * modules/dirname (Makefile.am): Likewise.
3490         * modules/dup2 (Makefile.am): Likewise.
3491         * modules/eealloc (Makefile.am): Likewise.
3492         * modules/error (Makefile.am): Likewise.
3493         * modules/euidaccess (Makefile.am): Likewise.
3494         * modules/exclude (Makefile.am): Likewise.
3495         * modules/exitfail (Makefile.am): Likewise.
3496         * modules/fcntl-safer (Makefile.am): Likewise.
3497         * modules/fcntl (Makefile.am): Likewise.
3498         * modules/file-type (Makefile.am): Likewise.
3499         * modules/fileblocks (Makefile.am): Likewise.
3500         * modules/filemode (Makefile.am): Likewise.
3501         * modules/filenamecat (Makefile.am): Likewise.
3502         * modules/fnmatch (Makefile.am): Likewise.
3503         * modules/fopen-safer (Makefile.am): Likewise.
3504         * modules/fpending (Makefile.am): Likewise.
3505         * modules/fprintftime (Makefile.am): Likewise.
3506         * modules/free (Makefile.am): Likewise.
3507         * modules/fsusage (Makefile.am): Likewise.
3508         * modules/ftruncate (Makefile.am): Likewise.
3509         * modules/fts (Makefile.am): Likewise.
3510         * modules/gc-arcfour (Makefile.am): Likewise.
3511         * modules/gc-des (Makefile.am): Likewise.
3512         * modules/gc-hmac-md5 (Makefile.am): Likewise.
3513         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
3514         * modules/gc-md4 (Makefile.am): Likewise.
3515         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
3516         * modules/gc-sha1 (Makefile.am): Likewise.
3517         * modules/gc (Makefile.am): Likewise.
3518         * modules/getaddrinfo (Makefile.am): Likewise.
3519         * modules/getcwd (Makefile.am): Likewise.
3520         * modules/getdelim (Makefile.am): Likewise.
3521         * modules/getdomainname (Makefile.am): Likewise.
3522         * modules/getgroups (Makefile.am): Likewise.
3523         * modules/gethostname (Makefile.am): Likewise.
3524         * modules/gethrxtime (Makefile.am): Likewise.
3525         * modules/getline (Makefile.am): Likewise.
3526         * modules/getloadavg (Makefile.am): Likewise.
3527         * modules/getlogin_r (Makefile.am): Likewise.
3528         * modules/getndelim2 (Makefile.am): Likewise.
3529         * modules/getopt (Makefile.am): Likewise.
3530         * modules/getpagesize (Makefile.am): Likewise.
3531         * modules/getpass-gnu (Makefile.am): Likewise.
3532         * modules/getpass (Makefile.am): Likewise.
3533         * modules/getsubopt (Makefile.am): Likewise.
3534         * modules/gettime (Makefile.am): Likewise.
3535         * modules/gettimeofday (Makefile.am): Likewise.
3536         * modules/getugroups (Makefile.am): Likewise.
3537         * modules/getusershell (Makefile.am): Likewise.
3538         * modules/glob (Makefile.am): Likewise.
3539         * modules/group-member (Makefile.am): Likewise.
3540         * modules/hard-locale (Makefile.am): Likewise.
3541         * modules/hash (Makefile.am): Likewise.
3542         * modules/hmac-md5 (Makefile.am): Likewise.
3543         * modules/hmac-sha1 (Makefile.am): Likewise.
3544         * modules/human (Makefile.am): Likewise.
3545         * modules/idcache (Makefile.am): Likewise.
3546         * modules/imaxabs (Makefile.am): Likewise.
3547         * modules/imaxdiv (Makefile.am): Likewise.
3548         * modules/inet_ntop (Makefile.am): Likewise.
3549         * modules/inet_pton (Makefile.am): Likewise.
3550         * modules/intprops (Makefile.am): Likewise.
3551         * modules/inttostr (Makefile.am): Likewise.
3552         * modules/inttypes (Makefile.am): Likewise.
3553         * modules/isapipe (Makefile.am): Likewise.
3554         * modules/javaversion (Makefile.am): Likewise.
3555         * modules/lchmod (Makefile.am): Likewise.
3556         * modules/lchown (Makefile.am): Likewise.
3557         * modules/localcharset (Makefile.am): Likewise.
3558         * modules/long-options (Makefile.am): Likewise.
3559         * modules/lstat (Makefile.am): Likewise.
3560         * modules/malloc (Makefile.am): Likewise.
3561         * modules/mathl (Makefile.am): Likewise.
3562         * modules/mbchar (Makefile.am): Likewise.
3563         * modules/md2 (Makefile.am): Likewise.
3564         * modules/md4 (Makefile.am): Likewise.
3565         * modules/md5 (Makefile.am): Likewise.
3566         * modules/memcasecmp (Makefile.am): Likewise.
3567         * modules/memchr (Makefile.am): Likewise.
3568         * modules/memcmp (Makefile.am): Likewise.
3569         * modules/memcoll (Makefile.am): Likewise.
3570         * modules/memcpy (Makefile.am): Likewise.
3571         * modules/memmem (Makefile.am): Likewise.
3572         * modules/memmove (Makefile.am): Likewise.
3573         * modules/mempcpy (Makefile.am): Likewise.
3574         * modules/memrchr (Makefile.am): Likewise.
3575         * modules/memset (Makefile.am): Likewise.
3576         * modules/memxor (Makefile.am): Likewise.
3577         * modules/mkancesdirs (Makefile.am): Likewise.
3578         * modules/mkdir-p (Makefile.am): Likewise.
3579         * modules/mkdir (Makefile.am): Likewise.
3580         * modules/mkdtemp (Makefile.am): Likewise.
3581         * modules/mkstemp (Makefile.am): Likewise.
3582         * modules/mktime (Makefile.am): Likewise.
3583         * modules/modechange (Makefile.am): Likewise.
3584         * modules/mountlist (Makefile.am): Likewise.
3585         * modules/nanosleep (Makefile.am): Likewise.
3586         * modules/obstack (Makefile.am): Likewise.
3587         * modules/openat (Makefile.am): Likewise.
3588         * modules/pagealign_alloc (Makefile.am): Likewise.
3589         * modules/pathmax (Makefile.am): Likewise.
3590         * modules/physmem (Makefile.am): Likewise.
3591         * modules/poll (Makefile.am): Likewise.
3592         * modules/posixtm (Makefile.am): Likewise.
3593         * modules/posixver (Makefile.am): Likewise.
3594         * modules/putenv (Makefile.am): Likewise.
3595         * modules/quote (Makefile.am): Likewise.
3596         * modules/quotearg (Makefile.am): Likewise.
3597         * modules/raise (Makefile.am): Likewise.
3598         * modules/read-file (Makefile.am): Likewise.
3599         * modules/readline (Makefile.am): Likewise.
3600         * modules/readlink (Makefile.am): Likewise.
3601         * modules/readtokens (Makefile.am): Likewise.
3602         * modules/readutmp (Makefile.am): Likewise.
3603         * modules/realloc (Makefile.am): Likewise.
3604         * modules/regex (Makefile.am): Likewise.
3605         * modules/rename-dest-slash (Makefile.am): Likewise.
3606         * modules/rename (Makefile.am): Likewise.
3607         * modules/rijndael (Makefile.am): Likewise.
3608         * modules/rmdir (Makefile.am): Likewise.
3609         * modules/rpmatch (Makefile.am): Likewise.
3610         * modules/safe-read (Makefile.am): Likewise.
3611         * modules/safe-write (Makefile.am): Likewise.
3612         * modules/same-inode (Makefile.am): Likewise.
3613         * modules/same (Makefile.am): Likewise.
3614         * modules/save-cwd (Makefile.am): Likewise.
3615         * modules/savedir (Makefile.am): Likewise.
3616         * modules/setenv (Makefile.am): Likewise.
3617         * modules/settime (Makefile.am): Likewise.
3618         * modules/sha1 (Makefile.am): Likewise.
3619         * modules/sig2str (Makefile.am): Likewise.
3620         * modules/snprintf (Makefile.am): Likewise.
3621         * modules/stat-macros (Makefile.am): Likewise.
3622         * modules/stat-time (Makefile.am): Likewise.
3623         * modules/stdbool (Makefile.am): Likewise.
3624         * modules/stdint (Makefile.am): Likewise.
3625         * modules/stdlib-safer (Makefile.am): Likewise.
3626         * modules/stpcpy (Makefile.am): Likewise.
3627         * modules/stpncpy (Makefile.am): Likewise.
3628         * modules/strcase (Makefile.am): Likewise.
3629         * modules/strcasestr (Makefile.am): Likewise.
3630         * modules/strchrnul (Makefile.am): Likewise.
3631         * modules/strcspn (Makefile.am): Likewise.
3632         * modules/strdup (Makefile.am): Likewise.
3633         * modules/strerror (Makefile.am): Likewise.
3634         * modules/strftime (Makefile.am): Likewise.
3635         * modules/strndup (Makefile.am): Likewise.
3636         * modules/strnlen (Makefile.am): Likewise.
3637         * modules/strpbrk (Makefile.am): Likewise.
3638         * modules/strsep (Makefile.am): Likewise.
3639         * modules/strstr (Makefile.am): Likewise.
3640         * modules/strtod (Makefile.am): Likewise.
3641         * modules/strtoimax (Makefile.am): Likewise.
3642         * modules/strtok_r (Makefile.am): Likewise.
3643         * modules/strtol (Makefile.am): Likewise.
3644         * modules/strtoll (Makefile.am): Likewise.
3645         * modules/strtoul (Makefile.am): Likewise.
3646         * modules/strtoull (Makefile.am): Likewise.
3647         * modules/strtoumax (Makefile.am): Likewise.
3648         * modules/strverscmp (Makefile.am): Likewise.
3649         * modules/sys_socket (Makefile.am): Likewise.
3650         * modules/sys_stat (Makefile.am): Likewise.
3651         * modules/sysexits (Makefile.am): Likewise.
3652         * modules/time_r (Makefile.am): Likewise.
3653         * modules/timegm (Makefile.am): Likewise.
3654         * modules/timespec (Makefile.am): Likewise.
3655         * modules/tmpfile-safer (Makefile.am): Likewise.
3656         * modules/trim (Makefile.am): Likewise.
3657         * modules/unistd-safer (Makefile.am): Likewise.
3658         * modules/unlinkdir (Makefile.am): Likewise.
3659         * modules/unlocked-io (Makefile.am): Likewise.
3660         * modules/userspec (Makefile.am): Likewise.
3661         * modules/utime (Makefile.am): Likewise.
3662         * modules/utimecmp (Makefile.am): Likewise.
3663         * modules/utimens (Makefile.am): Likewise.
3664         * modules/vasnprintf (Makefile.am): Likewise.
3665         * modules/vasprintf (Makefile.am): Likewise.
3666         * modules/vsnprintf (Makefile.am): Likewise.
3667         * modules/xalloc (Makefile.am): Likewise.
3668         * modules/xgetcwd (Makefile.am): Likewise.
3669         * modules/xnanosleep (Makefile.am): Likewise.
3670         * modules/xreadlink (Makefile.am): Likewise.
3671         * modules/xstrtod (Makefile.am): Likewise.
3672         * modules/xstrtol (Makefile.am): Likewise.
3673         * modules/xstrtold (Makefile.am): Likewise.
3674         * modules/yesno (Makefile.am): Likewise.
3675         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
3676
3677 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
3678
3679         * modules/error (Makefile.am): Distribute files through
3680         EXTRA_DIST, not lib_SOURCES.
3681
3682 2006-10-12  Eric Blake  <ebb9@byu.net>
3683
3684         * modules/error (Makefile.am): Distribute files in /lib.
3685         * modules/obstack (Makefile.am): Likewise.
3686
3687 2006-10-12  Bruno Haible  <bruno@clisp.org>
3688
3689         * modules/acl (Makefile.am): Distribute all files in lib/ through
3690         EXTRA_DIST.
3691         * modules/arcfour (Makefile.am): Likewise.
3692         * modules/arctwo (Makefile.am): Likewise.
3693         * modules/argmatch (Makefile.am): Likewise.
3694         * modules/argz (Makefile.am): Likewise.
3695         * modules/atexit (Makefile.am): Likewise.
3696         * modules/backupfile (Makefile.am): Likewise.
3697         * modules/c-strtod (Makefile.am): Likewise.
3698         * modules/c-strtold (Makefile.am): Likewise.
3699         * modules/calloc (Makefile.am): Likewise.
3700         * modules/canon-host (Makefile.am): Likewise.
3701         * modules/canonicalize (Makefile.am): Likewise.
3702         * modules/chdir-long (Makefile.am): Likewise.
3703         * modules/chdir-safer (Makefile.am): Likewise.
3704         * modules/check-version (Makefile.am): Likewise.
3705         * modules/chown (Makefile.am): Likewise.
3706         * modules/cloexec (Makefile.am): Likewise.
3707         * modules/close-stream (Makefile.am): Likewise.
3708         * modules/closeout (Makefile.am): Likewise.
3709         * modules/crc (Makefile.am): Likewise.
3710         * modules/cycle-check (Makefile.am): Likewise.
3711         * modules/des (Makefile.am): Likewise.
3712         * modules/dirfd (Makefile.am): Likewise.
3713         * modules/dirname (Makefile.am): Likewise.
3714         * modules/dup2 (Makefile.am): Likewise.
3715         * modules/euidaccess (Makefile.am): Likewise.
3716         * modules/exclude (Makefile.am): Likewise.
3717         * modules/exitfail (Makefile.am): Likewise.
3718         * modules/fcntl-safer (Makefile.am): Likewise.
3719         * modules/file-type (Makefile.am): Likewise.
3720         * modules/fileblocks (Makefile.am): Likewise.
3721         * modules/filemode (Makefile.am): Likewise.
3722         * modules/filenamecat (Makefile.am): Likewise.
3723         * modules/fnmatch (Makefile.am): Likewise.
3724         * modules/fopen-safer (Makefile.am): Likewise.
3725         * modules/fpending (Makefile.am): Likewise.
3726         * modules/fprintftime (Makefile.am): Likewise.
3727         * modules/free (Makefile.am): Likewise.
3728         * modules/fsusage (Makefile.am): Likewise.
3729         * modules/ftruncate (Makefile.am): Likewise.
3730         * modules/fts (Makefile.am): Likewise.
3731         * modules/gc (Makefile.am): Likewise.
3732         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
3733         * modules/getaddrinfo (Makefile.am): Likewise.
3734         * modules/getcwd (Makefile.am): Likewise.
3735         * modules/getdelim (Makefile.am): Likewise.
3736         * modules/getdomainname (Makefile.am): Likewise.
3737         * modules/getgroups (Makefile.am): Likewise.
3738         * modules/gethostname (Makefile.am): Likewise.
3739         * modules/gethrxtime (Makefile.am): Likewise.
3740         * modules/getline (Makefile.am): Likewise.
3741         * modules/getloadavg (Makefile.am): Likewise.
3742         * modules/getlogin_r (Makefile.am): Likewise.
3743         * modules/getopt (Makefile.am): Likewise.
3744         * modules/getpass (Makefile.am): Likewise.
3745         * modules/getpass-gnu (Makefile.am): Likewise.
3746         * modules/getsubopt (Makefile.am): Likewise.
3747         * modules/gettime (Makefile.am): Likewise.
3748         * modules/gettimeofday (Makefile.am): Likewise.
3749         * modules/getugroups (Makefile.am): Likewise.
3750         * modules/getusershell (Makefile.am): Likewise.
3751         * modules/glob (Makefile.am): Likewise.
3752         * modules/group-member (Makefile.am): Likewise.
3753         * modules/hard-locale (Makefile.am): Likewise.
3754         * modules/hash (Makefile.am): Likewise.
3755         * modules/hmac-md5 (Makefile.am): Likewise.
3756         * modules/hmac-sha1 (Makefile.am): Likewise.
3757         * modules/human (Makefile.am): Likewise.
3758         * modules/idcache (Makefile.am): Likewise.
3759         * modules/imaxabs (Makefile.am): Likewise.
3760         * modules/imaxdiv (Makefile.am): Likewise.
3761         * modules/inet_ntop (Makefile.am): Likewise.
3762         * modules/inet_pton (Makefile.am): Likewise.
3763         * modules/inttostr (Makefile.am): Likewise.
3764         * modules/isapipe (Makefile.am): Likewise.
3765         * modules/lchown (Makefile.am): Likewise.
3766         * modules/long-options (Makefile.am): Likewise.
3767         * modules/lstat (Makefile.am): Likewise.
3768         * modules/malloc (Makefile.am): Likewise.
3769         * modules/mathl (Makefile.am): Likewise.
3770         * modules/mbchar (Makefile.am): Likewise.
3771         * modules/md2 (Makefile.am): Likewise.
3772         * modules/md4 (Makefile.am): Likewise.
3773         * modules/md5 (Makefile.am): Likewise.
3774         * modules/memcasecmp (Makefile.am): Likewise.
3775         * modules/memchr (Makefile.am): Likewise.
3776         * modules/memcmp (Makefile.am): Likewise.
3777         * modules/memcoll (Makefile.am): Likewise.
3778         * modules/memcpy (Makefile.am): Likewise.
3779         * modules/memmem (Makefile.am): Likewise.
3780         * modules/memmove (Makefile.am): Likewise.
3781         * modules/mempcpy (Makefile.am): Likewise.
3782         * modules/memrchr (Makefile.am): Likewise.
3783         * modules/memset (Makefile.am): Likewise.
3784         * modules/memxor (Makefile.am): Likewise.
3785         * modules/mkancesdirs (Makefile.am): Likewise.
3786         * modules/mkdir (Makefile.am): Likewise.
3787         * modules/mkdir-p (Makefile.am): Likewise.
3788         * modules/mkdtemp (Makefile.am): Likewise.
3789         * modules/mkstemp (Makefile.am): Likewise.
3790         * modules/mktime (Makefile.am): Likewise.
3791         * modules/modechange (Makefile.am): Likewise.
3792         * modules/mountlist (Makefile.am): Likewise.
3793         * modules/nanosleep (Makefile.am): Likewise.
3794         * modules/openat (Makefile.am): Likewise.
3795         * modules/pagealign_alloc (Makefile.am): Likewise.
3796         * modules/physmem (Makefile.am): Likewise.
3797         * modules/poll (Makefile.am): Likewise.
3798         * modules/posixtm (Makefile.am): Likewise.
3799         * modules/posixver (Makefile.am): Likewise.
3800         * modules/putenv (Makefile.am): Likewise.
3801         * modules/quote (Makefile.am): Likewise.
3802         * modules/quotearg (Makefile.am): Likewise.
3803         * modules/raise (Makefile.am): Likewise.
3804         * modules/read-file (Makefile.am): Likewise.
3805         * modules/readline (Makefile.am): Likewise.
3806         * modules/readlink (Makefile.am): Likewise.
3807         * modules/readtokens (Makefile.am): Likewise.
3808         * modules/readutmp (Makefile.am): Likewise.
3809         * modules/realloc (Makefile.am): Likewise.
3810         * modules/regex (Makefile.am): Likewise.
3811         * modules/rename (Makefile.am): Likewise.
3812         * modules/rename-dest-slash (Makefile.am): Likewise.
3813         * modules/rijndael (Makefile.am): Likewise.
3814         * modules/rmdir (Makefile.am): Likewise.
3815         * modules/rpmatch (Makefile.am): Likewise.
3816         * modules/safe-read (Makefile.am): Likewise.
3817         * modules/safe-write (Makefile.am): Likewise.
3818         * modules/same (Makefile.am): Likewise.
3819         * modules/save-cwd (Makefile.am): Likewise.
3820         * modules/savedir (Makefile.am): Likewise.
3821         * modules/setenv (Makefile.am): Likewise.
3822         * modules/settime (Makefile.am): Likewise.
3823         * modules/sha1 (Makefile.am): Likewise.
3824         * modules/sig2str (Makefile.am): Likewise.
3825         * modules/snprintf (Makefile.am): Likewise.
3826         * modules/stdlib-safer (Makefile.am): Likewise.
3827         * modules/stpcpy (Makefile.am): Likewise.
3828         * modules/stpncpy (Makefile.am): Likewise.
3829         * modules/strcase (Makefile.am): Likewise.
3830         * modules/strcasestr (Makefile.am): Likewise.
3831         * modules/strchrnul (Makefile.am): Likewise.
3832         * modules/strcspn (Makefile.am): Likewise.
3833         * modules/strdup (Makefile.am): Likewise.
3834         * modules/strerror (Makefile.am): Likewise.
3835         * modules/strftime (Makefile.am): Likewise.
3836         * modules/strndup (Makefile.am): Likewise.
3837         * modules/strnlen (Makefile.am): Likewise.
3838         * modules/strpbrk (Makefile.am): Likewise.
3839         * modules/strsep (Makefile.am): Likewise.
3840         * modules/strstr (Makefile.am): Likewise.
3841         * modules/strtod (Makefile.am): Likewise.
3842         * modules/strtoimax (Makefile.am): Likewise.
3843         * modules/strtok_r (Makefile.am): Likewise.
3844         * modules/strtol (Makefile.am): Likewise.
3845         * modules/strtoll (Makefile.am): Likewise.
3846         * modules/strtoul (Makefile.am): Likewise.
3847         * modules/strtoull (Makefile.am): Likewise.
3848         * modules/strtoumax (Makefile.am): Likewise.
3849         * modules/strverscmp (Makefile.am): Likewise.
3850         * modules/time_r (Makefile.am): Likewise.
3851         * modules/timegm (Makefile.am): Likewise.
3852         * modules/tmpfile-safer (Makefile.am): Likewise.
3853         * modules/unistd-safer (Makefile.am): Likewise.
3854         * modules/unlinkdir (Makefile.am): Likewise.
3855         * modules/userspec (Makefile.am): Likewise.
3856         * modules/utime (Makefile.am): Likewise.
3857         * modules/utimecmp (Makefile.am): Likewise.
3858         * modules/utimens (Makefile.am): Likewise.
3859         * modules/vasnprintf (Makefile.am): Likewise.
3860         * modules/vasprintf (Makefile.am): Likewise.
3861         * modules/vsnprintf (Makefile.am): Likewise.
3862         * modules/xalloc (Makefile.am): Likewise.
3863         * modules/xgetcwd (Makefile.am): Likewise.
3864         * modules/xnanosleep (Makefile.am): Likewise.
3865         * modules/xreadlink (Makefile.am): Likewise.
3866         * modules/xstrtod (Makefile.am): Likewise.
3867         * modules/xstrtol (Makefile.am): Likewise.
3868         * modules/xstrtold (Makefile.am): Likewise.
3869         * modules/yesno (Makefile.am): Likewise.
3870
3871 2006-10-12  Jim Meyering  <jim@meyering.net>
3872
3873         * m4/getloadavg.m4: Revert the change below.
3874
3875         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
3876         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
3877         fail with a symlink, which is what coreutils' ./bootstrap now
3878         creates by default.
3879
3880 2006-10-12  Bruno Haible  <bruno@clisp.org>
3881
3882         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
3883         mingw.
3884         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
3885         MSVC and mingw explicitly.
3886
3887 2006-10-11  Simon Josefsson  <jas@extundo.com>
3888             Bruno Haible  <bruno@clisp.org>
3889
3890         Add support for multiple gnulib-tool invocations in the scope of a
3891         single configure.ac file.
3892         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
3893         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
3894         with the same contents as the _LIBADD variable.
3895         (func_emit_initmacro_start, func_emit_initmacro_end,
3896         func_emit_initmacro_done): New functions.
3897         (func_import, func_create_testdir): Invoke them. Allow the identifiers
3898         gl_LIBOBJS and gl_LTLIBOBJS.
3899
3900 2006-10-11  Bruno Haible  <bruno@clisp.org>
3901
3902         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
3903         (func_create_testdir): Don't create po/Makefile.am, don't invoke
3904         autoreconf. Instead, invoke autopoint explicitly but move back the
3905         *.m4 files from gnulib.
3906
3907 2006-10-11  Bruno Haible  <bruno@clisp.org>
3908
3909         * gnulib-tool (func_usage): Make module names after --create-testdir
3910         optional.
3911         (func_create_testdir): If no module was specified, use nearly all
3912         modules.
3913
3914 2006-10-12  Jim Meyering  <jim@meyering.net>
3915
3916         Big performance improvement for fts-based tools that use FTS_NOSTAT.
3917         Avoid spurious inode-mismatch problems on non-POSIX file systems.
3918         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
3919         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
3920         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
3921         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
3922         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
3923         (fts_set_stat_required): New function.
3924         (fts_open): Defer the calls to fts_stat, if possible or requested.
3925         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
3926         into fts_stat itself.
3927         (fts_read): Perform any required (deferred) fts_stat call.
3928         (fts_build): Likewise, for the directory we're about to open and read.
3929         In the readdir loop, carefully decide whether each entry will require
3930         an eventual call to fts_stat, using dirent.d_type info if available.
3931         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
3932         a command line argument into this function.  Update all callers.
3933         Map a return value of FTS_DOT to FTS_D for a command line argument.
3934         * modules/fts (Depends-on): Add d-type.  Alphabetize.
3935         Thanks to Miklos Szeredi for his tenacity and for the initial
3936         bug report about "find" failing on a FUSE-based file system.
3937
3938         * lib/fts.c (fts_open): Use consistent indentation.
3939
3940 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
3941
3942         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
3943         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
3944         reported by Jim Meyering.  All uses of cache variables renamed
3945         to match Autoconf's.
3946         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
3947         the other one.
3948
3949         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
3950         Fix misspelling in diagnostic.
3951
3952 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
3953
3954         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
3955         defined.  Problem reported by Matthew Woehlke.
3956
3957         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
3958         Add support for Tandem NonStop R series.
3959         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
3960         Use new macro.
3961
3962         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
3963         (has_trailing_slash): Omit size arg; all callers changed.
3964         Omit 'inline', since it doesn't help performance and we'd
3965         need to configure it.
3966         Don't count //, ///, etc. as having a trailing slash.
3967         As a side effect, this removes a C99ism reported by Matthew Woehlke.
3968         (rpl_rename_dest_slash): On failure, use rename's errno rather
3969         than (in some cases) an incorrect or junk errno.
3970         Simplify code by removing need to compute length; this does
3971         cause it to make two passes instead of one over the file name,
3972         but it's worth it.
3973
3974         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
3975         change, since Autoconf's version may no longer be appropriate now
3976         that we are using CVS Autoconf's version.  Add support for Tandem.
3977
3978 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
3979             Bruno Haible  <bruno@clisp.org>
3980
3981         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
3982         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
3983         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
3984         gl_AC_TYPE_LONG_LONG.
3985
3986         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
3987         instead of HAVE_LONG_LONG.
3988         * lib/printf-args.c (printf_fetchargs): Likewise.
3989         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
3990         * lib/vasnprintf.c (VASNPRINTF): Likewise.
3991         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
3992         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
3993         gl_AC_TYPE_LONG_LONG.
3994
3995 2006-10-11  Bruno Haible  <bruno@clisp.org>
3996
3997         * m4/longlong.m4: Add comments.
3998         * m4/ulonglong.m4: Likewise.
3999
4000 2006-10-10  Bruno Haible  <bruno@clisp.org>
4001
4002         Make it possible to #define stpcpy, strdup to aliases.
4003         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
4004         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
4005
4006 2006-10-10  Bruno Haible  <bruno@clisp.org>
4007
4008         Make it possible to #define gcd to an alias.
4009         * lib/gcd.c: Include config.h.
4010
4011 2006-10-10  Bruno Haible  <bruno@clisp.org>
4012
4013         Make it possible to #define c_isascii to an alias.
4014         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
4015         defined. Undefine the macros before defining them, to avoid gcc
4016         warnings.
4017         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
4018         define NO_C_CTYPE_MACROS early.
4019
4020 2006-10-10  Bruno Haible  <bruno@clisp.org>
4021
4022         Make it possible to #define set_program_name to an alias.
4023         * lib/progname.c: Don't undefine set_program_name; instead, undefine
4024         ENABLE_RELOCATABLE early.
4025
4026 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
4027
4028         Port to Tandem NSK OSS, which has 64-bit signed int but at most
4029         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
4030         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
4031         More generally, don't assume that 64-bit signed int is available
4032         if unsigned int is, and vice versa.
4033         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
4034         unsigned symbols, not on their signed counterparts.
4035         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
4036         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
4037         (UINT64_C, UINTMAX_C):
4038         Likewise.
4039         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
4040         unsigned counterparts.
4041         (Have_long_long, Unsigned): New macros.
4042         (Int): Renamed from INT.
4043         (strtoimax): Use the new macros.
4044         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
4045         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
4046         * modules/inttypes (inttypes.h): Substitute
4047         HAVE_UNSIGNED_LONG_LONG_INT.
4048         * modules/stdint (stdint.h): Likewise.
4049         (Files): Add m4/ulonglong.m4.
4050
4051 2006-10-10  Bruno Haible  <bruno@clisp.org>
4052
4053         Fix a gcc -Wshadow warning.
4054         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
4055         to 'bucket'.
4056         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
4057         gl_linked_indexof_from_to): Likewise.
4058         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
4059         Likewise.
4060         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
4061         Likewise.
4062         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
4063         Reported by Eric Blake.
4064
4065 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
4066
4067         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
4068         for NetBSD.  Problem reported by Bruno Haible.
4069
4070 2006-10-09  Jim Meyering  <jim@meyering.net>
4071
4072         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
4073         Patch from Bruno Haible.
4074
4075 2006-10-09  Jim Meyering  <jim@meyering.net>
4076
4077         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
4078         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
4079         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
4080
4081 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
4082
4083         Don't include <config.h> twice; this doesn't work in some cases,
4084         e.g., when config.h has "#define intmax_t long long int" and
4085         we include <config.h>, <inttypes.h>, <config.h> in that order.
4086         Problem reported by Matthew Woehlke in:
4087         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
4088         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
4089         * lib/fts-cycle.c: Don't include config.h.
4090         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
4091         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
4092         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
4093         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
4094         inttypes.h.
4095         * lib/xstrtoumax.c: Likewise.
4096         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
4097         __strtol and the like, so that this module is more like its siblings.
4098         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
4099         Remove; no longer needed now that we assume gnulib inttypes.h.
4100
4101 2006-10-08  Bruno Haible  <bruno@clisp.org>
4102
4103         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
4104         option.
4105
4106 2006-10-07  Jim Meyering  <jim@meyering.net>
4107
4108         * modules/inttypes (inttypes.h): Revert what seems to have been
4109         an inadvertent part of today's change: use "|", not "/" in the
4110         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
4111
4112 2006-10-07  Bruno Haible  <bruno@clisp.org>
4113
4114         * modules/sublist: New file.
4115
4116 2006-10-07  Bruno Haible  <bruno@clisp.org>
4117
4118         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
4119         * modules/argz (argz.h): Likewise.
4120         * modules/arpa_inet (arpa/inet.h): Likewise.
4121         * modules/byteswap (byteswap.h): Likewise.
4122         * modules/configmake (configmake.h): Likewise.
4123         * modules/fcntl (fcntl.h): Likewise.
4124         * modules/fnmatch (fnmatch.h): Likewise.
4125         * modules/getopt (getopt.h): Likewise.
4126         * modules/glob (glob.h): Likewise.
4127         * modules/inttypes (inttypes.h): Likewise.
4128         * modules/netinet_in (netinet/in.h): Likewise.
4129         * modules/poll (poll.h): Likewise.
4130         * modules/stdbool (stdbool.h): Likewise.
4131         * modules/stdint (stdint.h): Likewise.
4132         * modules/sys_select (sys/select.h): Likewise.
4133         * modules/sys_socket (sys/socket.h): Likewise.
4134         * modules/sys_stat (sys/stat.h): Likewise.
4135         * modules/sysexits (sysexits.h): Likewise.
4136         * modules/unistd (unistd.h): Likewise.
4137         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
4138         Add a "DO NOT EDIT" comment to the generated file.
4139         (func_import): Likewise for gnulib-comp.m4.
4140
4141 2006-10-07  Bruno Haible  <bruno@clisp.org>
4142
4143         * lib/gl_sublist.h: New file.
4144         * lib/gl_sublist.c: New file.
4145
4146 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
4147
4148         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
4149         name (relative to the original working directory) and the file
4150         name component (relative to the temporary working directory).  All
4151         callers changed.
4152         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
4153         * lib/mkdir-p.c (make_dir_parents): Likewise.
4154         * lib/mkdir-p.h (make_dir_parents): Likewise.
4155
4156 2006-10-06  Eric Blake  <ebb9@byu.net>
4157
4158         Define several macros for use by the clean-temp module.
4159         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
4160         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
4161         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
4162
4163         * lib/clean-temp.h (close_stream_temp): New declaration.
4164         * lib/clean-temp.c (includes): Pull in headers according to what
4165         other modules are in use.
4166         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
4167
4168 2006-10-06  Bruno Haible  <bruno@clisp.org>
4169
4170         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
4171         instead of fopen, fwriteerror.
4172
4173 2006-10-06  Bruno Haible  <bruno@clisp.org>
4174
4175         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
4176         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
4177         int.
4178         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
4179         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
4180         Return an error indicator.
4181         Suggested by Eric Blake.
4182
4183 2006-10-06  Bruno Haible  <bruno@clisp.org>
4184
4185         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
4186         Reported by Eric Blake.
4187
4188 2006-10-06  Bruno Haible  <bruno@clisp.org>
4189
4190         * modules/closeout (Description): Mention stderr too.
4191
4192 2006-10-06  Bruno Haible  <bruno@clisp.org>
4193         and Paul Eggert  <eggert@cs.ucla.edu>
4194
4195         * lib/closeout.c (close_stdout): Also close stderr.
4196         * lib/closeout.h: Update comment.
4197
4198 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
4199
4200         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
4201         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
4202         * lib/dirchownmod.c: Include lchown.h.
4203         * lib/lchown.c: Don't include files that lchown.h now includes.
4204         Don't declare chown, since lchown.h now does that.
4205         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
4206         (lchown): Define to rpl_chown if lchown is declared but
4207         does not exist.  Declare using a prototype if lchown is not
4208         declared.  Add a copyright notice.
4209         * lib/mkstemp.h: Include <unistd.h>.
4210         * lib/openat.c: Include lchown.h.
4211
4212         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
4213         we now test for that separately.
4214         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
4215         rather than O_NOFOLLOW, when testing whether it's possible to
4216         avoid a race condition reliably.
4217         * lib/savewd.c (savewd_chdir): Likewise.
4218
4219         Remove macros that are no longer needed now that stdint.h is
4220         reliable.
4221         * lib/fsusage.c (UINTMAX_MAX): Remove.
4222         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
4223         * lib/utimecmp.c (SIZE_MAX): Remove.
4224
4225         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
4226
4227         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
4228         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
4229         O_NOATIME works.
4230
4231 2006-10-05  Bruno Haible  <bruno@clisp.org>
4232
4233         * lib/gl_list.h (gl_sortedlist_search_from_to,
4234         gl_sortedlist_indexof_from_to): New declarations.
4235         (gl_list_implementation): New fields sortedlist_search_from_to,
4236         sortedlist_indexof_from_to.
4237         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
4238         inline functions.
4239         * lib/gl_list.c (gl_sortedlist_search_from_to,
4240         gl_sortedlist_indexof_from_to): New functions.
4241         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
4242         function.
4243         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
4244         (gl_array_sortedlist_search_from_to): New function.
4245         (gl_array_list_implementation): Update.
4246         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
4247         function.
4248         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
4249         (gl_carray_sortedlist_search_from_to): New function.
4250         (gl_carray_list_implementation): Update.
4251         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
4252         gl_linked_sortedlist_indexof_from_to): New functions.
4253         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
4254         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
4255         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
4256         gl_tree_sortedlist_indexof_from_to): New functions.
4257         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
4258         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
4259         Update.
4260         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
4261         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
4262         Update.
4263
4264 2006-10-05  Bruno Haible  <bruno@clisp.org>
4265
4266         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
4267         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
4268         (struct gl_list_implementation): Add fields search_from_to,
4269         indexof_from_to. Remove fields search, indexof.
4270         (gl_list_search): Use the search_from_to method.
4271         (gl_list_search_from, gl_list_search_from_to): New functions.
4272         (gl_list_indexof): Use the indexof_from_to method.
4273         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
4274         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
4275         (gl_list_search_from, gl_list_search_from_to): New functions.
4276         (gl_list_indexof): Use the indexof_from_to method.
4277         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
4278         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
4279         gl_array_indexof. Add start_index, end_index arguments.
4280         (gl_array_search_from_to): Renamed from gl_array_search. Add
4281         start_index, end_index arguments.
4282         (gl_array_remove, gl_array_list_implementation): Update.
4283         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
4284         gl_carray_indexof. Add start_index, end_index arguments.
4285         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
4286         start_index, end_index arguments.
4287         (gl_carray_remove, gl_carray_list_implementation): Update.
4288         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
4289         gl_linked_search. Add start_index, end_index arguments.
4290         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
4291         start_index, end_index arguments.
4292         (gl_linked_remove): Update.
4293         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
4294         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
4295         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
4296         field to 'size_t'.
4297         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
4298         gl_tree_search. Add start_index, end_index arguments.
4299         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
4300         start_index, end_index arguments.
4301         (gl_tree_remove): Update.
4302         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
4303         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
4304         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
4305         function.
4306         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
4307         gl_tree_search. Add start_index, end_index arguments.
4308         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
4309         start_index, end_index arguments.
4310         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
4311         Update.
4312         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
4313
4314 2006-10-05  Bruno Haible  <bruno@clisp.org>
4315
4316         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
4317
4318         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
4319         fwriteerror_temp): New declarations.
4320         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
4321         (descriptors): New variable.
4322         (cleanup): First, close the descriptors.
4323         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
4324         fclose_temp, fwriteerror_temp): New functions.
4325
4326 2006-10-04  Jim Meyering  <jim@meyering.net>
4327
4328         * lib/fts.c (fts_open): Tiny comment change.
4329
4330 2006-10-04  Bruno Haible  <bruno@clisp.org>
4331
4332         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
4333         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
4334         gl_LOCK_BODY.
4335         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
4336         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
4337         gl_LOCK_EARLY_BODY.
4338         (gl_LOCK): Require gl_LOCK_BODY.
4339
4340 2006-10-04  Bruno Haible  <bruno@clisp.org>
4341
4342         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
4343         (gl_oset_search_atleast): New declaration.
4344         (struct gl_oset_implementation): Add field 'search_atleast'.
4345         (gl_oset_search_atleast): New inline function.
4346         * lib/gl_oset.c (gl_oset_search_atleast): New function.
4347         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
4348         (gl_array_oset_implementation): Update.
4349         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
4350         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
4351         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
4352
4353 2006-10-04  Bruno Haible  <bruno@clisp.org>
4354
4355         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
4356
4357 2006-10-03  Bruno Haible  <bruno@clisp.org>
4358
4359         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
4360         from gl_avltreehash_list_implementation.
4361
4362 2006-10-03  Bruno Haible  <bruno@clisp.org>
4363
4364         * lib/gl_oset.c (gl_oset_add): Fix return type.
4365
4366 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
4367
4368         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
4369
4370 2006-10-02  Eric Blake  <ebb9@byu.net>
4371
4372         * modules/strnlen (Depends-on): Add extensions.
4373
4374 2006-10-02  Eric Blake  <ebb9@byu.net>
4375
4376         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
4377         definition in 2.60+.
4378
4379 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
4380
4381         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
4382         checks.
4383
4384 2006-10-02  Bruno Haible  <bruno@clisp.org>
4385
4386         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
4387         to the AUTOMAKE_OPTIONS.
4388         Reported by Jim Meyering.
4389
4390 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
4391
4392         Work around bug in Solaris 10 /proc file system:
4393         /proc/self/fd/NNN/.. isn't the parent directory of
4394         the directory whose file descriptor is NNN.  This needs to
4395         be worked around at run time, not compile time, since a
4396         program might be built on Solaris 8, where things work, and
4397         run on Solaris 10.
4398         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
4399         to use the following interface instead:
4400         (OPENAT_BUFFER_SIZE): New macro.
4401         (openat_proc_name): New function.
4402         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
4403         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
4404         Likewise.
4405         * lib/openat-proc.c: New file.
4406         * modules/openat (Files): Add lib/openat-proc.c.
4407         (Depends-on): Add same-inode, stdbool.
4408         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
4409
4410 2006-09-29  Bruno Haible  <bruno@clisp.org>
4411
4412         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
4413         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
4414         argument. Set stdout_closed before testing for ferror, not after.
4415         (fwriteerror, fwriteerror_no_ebadf): New functions.
4416
4417 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4418
4419         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
4420
4421 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
4422
4423         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
4424         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
4425
4426 2006-09-28  Jim Meyering  <jim@meyering.net>
4427
4428         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
4429         Include <unistd.h>.
4430
4431 2006-09-28  Bruno Haible  <bruno@clisp.org>
4432
4433         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
4434         * modules/linkedhash-list (Depends-on): Likewise.
4435         * modules/rbtreehash-list (Depends-on): Likewise.
4436
4437 2006-09-28  Bruno Haible  <bruno@clisp.org>
4438
4439         * lib/strndup.h: Simplify the redefinition of strndup.
4440         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
4441         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
4442
4443 2006-09-28  Bruno Haible  <bruno@clisp.org>
4444
4445         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
4446         * lib/gl_linkedhash_list.c: Likewise.
4447         * lib/gl_rbtreehash_list.c: Likewise.
4448
4449 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
4450
4451         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
4452         getaddrinfo.
4453
4454         * lib/__fpending.h: Don't include <stdio_ext.h> unless
4455         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
4456         it causes <stdio_ext.h> to cause a compile-time error.
4457         Problem reported by Nelson H. F. Beebe.
4458         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
4459         of HAVE_DECL___PENDING.
4460
4461         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
4462         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
4463         declaration.
4464
4465 2006-09-27  Jim Meyering  <jim@meyering.net>
4466
4467         This file could end up with a definition for a function
4468         named __strndup, rather than rpl_strndup on a system with
4469         incomplete weak_alias support.
4470         * lib/strndup.c (strndup): Rename from __strndup.
4471         Remove #defines that used to map __strndup to strndup.
4472         Don't use K&R prototypes.
4473         Remove LIBC-related code, since this file is not sync'd with glibc.
4474         * lib/strndup.h: Revamp, accordingly.
4475         * m4/strndup.m4: Modernize.
4476
4477 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
4478
4479         * modules/savewd (Depends-on): Add 'raise'.
4480         * lib/savewd.c: Include <signal.h>, for 'raise'.
4481
4482 2006-09-26  Jim Meyering  <jim@meyering.net>
4483
4484         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
4485         when we detect Darwin 8.7.0's acl_get_file bug.
4486         Rearrange to perform the new (below) run-test while $LIBS
4487         contains any acl-related library.  Set USE_ACL at the end.
4488         (gl_ACL_GET_FILE): New function.
4489
4490 2006-09-26  Eric Blake  <ebb9@byu.net>
4491
4492         * lib/verror.c: Include <config.h> unconditionally.
4493
4494 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
4495
4496         * modules/clock-time (Maintainer): Add self.
4497         * modules/getlogin_r (Depends-on): Add extensions.
4498
4499 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4500
4501         * modules/clock-time: New module.
4502         * modules/nanosleep (Depends-on): Add clock-time.
4503         * modules/gethrxtime (Depends-on): Likewise.
4504         * modules/gettime (Depends-on): Likewise.
4505         * modules/settime (Depends-on): Likewise.
4506
4507         * modules/fts-lgpl: Depend on openat.
4508         * modules/mkancesdirs: Depend on savewd.
4509         * modules/mkdir-p: Likewise.
4510
4511 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4512
4513         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
4514
4515         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
4516         `gl_have_arbitrary_file_name_length_limit' to
4517         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
4518         actually works between configure runs.
4519
4520 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4521             Bruno Haible  <bruno@clisp.org>
4522
4523         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
4524
4525 2006-09-25  Jim Meyering  <jim@meyering.net>
4526
4527         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
4528         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
4529
4530 2006-09-25  Eric Blake  <ebb9@byu.net>
4531
4532         * gnulib-tool (func_import, func_create_testdir): Fix typos in
4533         exec's in 2006-09-18 patch when shuffling fds.
4534
4535 2006-09-25  Bruno Haible  <bruno@clisp.org>
4536
4537         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
4538         Reported by Jim Meyering.
4539
4540 2006-09-24  Jim Meyering  <jim@meyering.net>
4541
4542         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
4543         compare a pointer against a literal "0".  That caused failures with
4544         at least HP-UX's hpcc.
4545
4546 2006-09-22  Simon Josefsson  <jas@extundo.com>
4547
4548         * modules/gc-sha1:
4549         * modules/gc-md4:
4550         * modules/gc-hmac-sha1:
4551         * modules/gc-hmac-md5:
4552         * modules/gc-des:
4553         * modules/gc-arcfour: Distribute more files.
4554
4555 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4556
4557         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
4558         (gl_linked_iterator_from_to): Initialize struct completely.
4559         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
4560         (gl_tree_iterator_from_to): Likewise
4561         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
4562         * lib/gl_array_list.c [lint] (gl_array_iterator)
4563         (gl_array_iterator_from_to): Likewise.
4564         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
4565         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
4566         (gl_carray_iterator_from_to): Likewise.
4567
4568         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
4569         * lib/md4.c (md4_process_block): Remove unused variable.
4570         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
4571         parentheses for clarity.
4572
4573 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4574
4575         * modules/bison-i18n (Depends-on): Add gettext.
4576
4577 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4578
4579         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
4580         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
4581         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
4582         also add missing comma that caused broken test.
4583         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
4584         stdlib.h, for `abort'.
4585         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
4586         variables.
4587         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
4588         include unistd.h if present, for `rmdir'.
4589         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
4590         variables.
4591         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
4592         in the process include standard headers for prototypes.
4593         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
4594         gets declared on GNU/Linux.
4595         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
4596         unistd.h, for `rmdir'.
4597         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
4598
4599         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
4600         always true.
4601         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
4602
4603         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
4604
4605 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4606
4607         * gnulib-tool (func_version): Create output all at once.  This
4608         may help avoid triggering unnecessary SIGPIPEs, and at any
4609         rate it doesn't hurt.
4610
4611 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4612             Bruno Haible  <bruno@clisp.org>
4613
4614         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
4615         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
4616         * m4/signed.m4 (bh_C_SIGNED): Likewise.
4617
4618         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
4619         (gl_FUNC_VASPRINTF): Invoke it.
4620
4621 2006-09-22  Bruno Haible  <bruno@clisp.org>
4622
4623         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
4624         getloadavg.c as first argument.
4625
4626 2006-09-22  Bruno Haible  <bruno@clisp.org>
4627
4628         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
4629         at the beginning of the gl_INIT macro.
4630         * modules/getloadavg (configure.ac): Pass $gl_source_base to
4631         gl_GETLOADAVG.
4632
4633 2006-09-22  Bruno Haible  <bruno@clisp.org>
4634
4635         * gnulib-tool (func_create_megatestdir): Don't include the config-h
4636         module.
4637         Suggested by Ralf Wildenhues.
4638
4639 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
4640
4641         Import this patch from libc:
4642
4643         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
4644
4645         * lib/regex_internal.c (re_string_reconstruct): Handle
4646         offset < pstr->valid_raw_len && pstr->offsets_needed case.
4647         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
4648         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
4649         re_string_context_at.
4650
4651         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
4652         now requires it.
4653         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
4654         gl_REGEX now does it for us.
4655         (gl_REGEX): Add test taken from
4656         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
4657
4658         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
4659         Check that large offsets work.  Modernize Autoconf usages.
4660         Prefer "yes" to mean a good thing rather than a bad.
4661         Don't put "#define mkstemp" in config.h, as this might interfere
4662         with standard system headers that "#define mkstemp mkstemp64".
4663
4664         * modules/mkstemp (Depends-on): Add extensions, so that
4665         mkstemp is visible on some platforms.
4666         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
4667         (Include): Change to "mkstemp.h" from <stdlib.h>.
4668         (Files): Add mkstemp.h.
4669
4670         * lib/mkstemp.h: New file, since some standard headers
4671         #define mkstemp.
4672         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
4673         Include "mkstemp.h".
4674         Make the _LIBC code resemble glibc original more,
4675         e.g., use K&R style.
4676         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
4677         (mkstemp): Remove, since mkstemp.h does this for us.
4678         * lib/stdlib--.h: Include mkstemp.h.
4679
4680         Import this patch from libc:
4681
4682         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
4683
4684         * lib/tempname.c (__gen_tempname): Change attempts_min
4685         into a macro.  Use preprocessor to decide how to initialize
4686         attempts [Coverity CID 67].
4687
4688 2006-09-20  Bruno Haible  <bruno@clisp.org>
4689
4690         * lib/mkdtemp.c: Import from libc.
4691         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
4692                 * sysdeps/posix/tempname.c (__gen_tempname): Change
4693                 attempts_min into a macro.  Use preprocessor to decide how to
4694                 initialize attempts [Coverity CID 67].
4695         2001-11-27  Paul Eggert  <eggert@twinsun.com>
4696                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
4697                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
4698
4699 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4700
4701         * gnulib-tool (func_exit): New function, to allow to pass the
4702         exit status portably through the trap.  Use everywhere.
4703         (--help, --version): Signal a write error.
4704         (trap): catch SIGPIPE, for write errors.
4705         Exit at the end of the trap, with the correct exit status.
4706
4707 2006-09-19  Karl Berry  <karl@gnu.org>
4708
4709         * doc/gnulib.texi: note about the license texinfo files.
4710
4711 2006-09-19  Eric Blake  <ebb9@byu.net>
4712
4713         * gnulib-tool: Avoid space-tab.
4714
4715 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
4716
4717         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
4718         that prevented coreutils 6.1 from building.  Problem reported
4719         by Petter Reinholdtsen.
4720
4721 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
4722
4723         * gnulib-tool (avoidlist): Fix typo that broke options like
4724         --avoid=lock that are used by coreutils bootstrap.
4725
4726 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
4727
4728         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
4729         more systematically.
4730
4731 2006-09-18  Jim Meyering  <jim@meyering.net>
4732
4733         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
4734
4735 2006-09-18  Bruno Haible  <bruno@clisp.org>
4736
4737         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
4738
4739 2006-09-18  Bruno Haible  <bruno@clisp.org>
4740
4741         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
4742         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
4743         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
4744         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
4745         * m4/gettext.m4: Require autoconf >= 2.52.
4746         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
4747         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
4748         of gl_cv_header_inttypes_h.
4749
4750 2006-09-18  Bruno Haible  <bruno@clisp.org>
4751
4752         * lib/javaversion.c: Include configmake.h.
4753
4754 2006-09-18  Bruno Haible  <bruno@clisp.org>
4755
4756         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
4757         avoid that the while loops be executed in a subshell.
4758
4759 2006-09-18  Bruno Haible  <bruno@clisp.org>
4760
4761         * MODULES.html.sh (func_module): Break long lines.
4762         Suggested by Bruce Korb <bkorb@gnu.org>.
4763
4764 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4765
4766         Speed up by a factor of 1.12.
4767         * gnulib-tool (nl): New variable.
4768         (func_import): Rewrite include directive extraction to only read each
4769         directive once.
4770
4771 2006-09-17  Bruno Haible  <bruno@clisp.org>
4772
4773         * modules/javaversion (Makefile.am): Remove DEFS setting.
4774         (Depends-on): Add configmake, for PKGDATADIR definition.
4775
4776 2006-09-17  Bruno Haible  <bruno@clisp.org>
4777
4778         * gnulib-tool (func_create_testdir): Rewrite all files at once.
4779
4780 2006-09-17  Bruno Haible  <bruno@clisp.org>
4781
4782         * gnulib-tool (func_append): New function, stolen from libtool.m4.
4783         (func_modules_transitive_closure, func_modules_add_dummy,
4784         func_modules_to_filelist, func_import, func_create_testdir,
4785         func_create_megatestdir, ...): Use it wherever possible.
4786         Suggested by Ralf Wildenhues.
4787
4788 2006-09-16  Karl Berry  <karl@gnu.org>
4789
4790         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
4791         to avoid sectioning errors.
4792         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
4793         [ifinfo]: blank line after @center-ed titles.
4794         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
4795         Spell FSF address consistently with others.
4796         (These changes approved by rms.)
4797
4798 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4799
4800         Speed up by a factor of 1.61.
4801         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
4802         already checked module names again.
4803
4804 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4805
4806         Speed up by a factor of 1.13.
4807         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
4808         for new_files, and the input to func_add_or_update.
4809
4810 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4811
4812         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
4813         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
4814
4815 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
4816
4817         * modules/mkancesdirs (Depends-on): Add fcntl.
4818         * modules/savewd: New file.
4819         * MODULES.html.sh (File system functions): Add savewd.
4820
4821         * modules/configmake (Makefile.am): Add support for the
4822         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
4823
4824 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
4825
4826         * m4/savewd.m4: New file.
4827
4828 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
4829
4830         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
4831         (dirchownmod): New arg FD.  All callers changed.
4832         Use FD rather than opening the directory ourself, as opening is
4833         now the caller's responsibility.
4834         * lib/dirchownmod.h: Likewise.
4835         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
4836         hosts that require <sys/types.h> before <sys/stat.h>.  Include
4837         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
4838         (test_dir): Remove.
4839         (mkancesdirs): Return length of prefix of FILE that has already
4840         been made, or -2 if there is a child doing the work.  Redo
4841         algorithm so that it is O(N) rather than O(N**2).  Optimize away
4842         ".", and treat ".." specially since it might stray back into
4843         already-created areas.  Use a subprocess if necessary.  New arg
4844         WD; all users changed.  MAKE_DIR function should now return 1
4845         if it creates a directory that is not readable.  Return -2 if
4846         a child process is spun off.
4847         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
4848         Adjust signature to match code.
4849         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
4850         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
4851         all users changed.
4852         * lib/savewd.c, lib/savewd.h: New files.
4853
4854 2006-09-15  Jim Meyering  <jim@meyering.net>
4855
4856         * modules/rename-dest-slash: New module.
4857         * MODULES.html.sh (posix_compat): Add it here.
4858
4859         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
4860
4861 2006-09-15  Jim Meyering  <jim@meyering.net>
4862
4863         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
4864         file.
4865
4866         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
4867
4868 2006-09-15  Jim Meyering  <jim@meyering.net>
4869
4870         * lib/rename-dest-slash.c (has_trailing_slash): Use
4871         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
4872         (rpl_rename_dest_slash): Perform the cheaper trailing slash
4873         test before testing whether SRC is a directory.
4874         Suggestions from Bruno Haible.
4875
4876         Avoid a warning about an unused variable.
4877         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
4878         into the #ifdef block where it's used.
4879
4880         * lib/rename-dest-slash.c: New file.
4881
4882 2006-09-14  Bruno Haible  <bruno@clisp.org>
4883
4884         * lib/allocsa.c: Include <config.h> unconditionally.
4885         * lib/asnprintf.c: Likewise.
4886         * lib/asprintf.c: Likewise.
4887         * lib/c-strcasecmp.c: Likewise.
4888         * lib/c-strcasestr.c: Likewise.
4889         * lib/c-strncasecmp.c: Likewise.
4890         * lib/c-strstr.c: Likewise.
4891         * lib/classpath.c: Likewise.
4892         * lib/clean-temp.c: Likewise.
4893         * lib/concatpath.c: Likewise.
4894         * lib/copy-file.c: Likewise.
4895         * lib/csharpcomp.c: Likewise.
4896         * lib/csharpexec.c: Likewise.
4897         * lib/execute.c: Likewise.
4898         * lib/fatal-signal.c: Likewise.
4899         * lib/findprog.c: Likewise.
4900         * lib/fwriteerror.c: Likewise.
4901         * lib/gl_array_list.c: Likewise.
4902         * lib/gl_array_oset.c: Likewise.
4903         * lib/gl_avltree_list.c: Likewise.
4904         * lib/gl_avltree_oset.c: Likewise.
4905         * lib/gl_avltreehash_list.c: Likewise.
4906         * lib/gl_carray_list.c: Likewise.
4907         * lib/gl_linked_list.c: Likewise.
4908         * lib/gl_linkedhash_list.c: Likewise.
4909         * lib/gl_list.c: Likewise.
4910         * lib/gl_oset.c: Likewise.
4911         * lib/gl_rbtree_list.c: Likewise.
4912         * lib/gl_rbtree_oset.c: Likewise.
4913         * lib/gl_rbtreehash_list.c: Likewise.
4914         * lib/imaxabs.c: Likewise.
4915         * lib/imaxdiv.c: Likewise.
4916         * lib/javacomp.c: Likewise.
4917         * lib/javaexec.c: Likewise.
4918         * lib/javaversion.c: Likewise.
4919         * lib/linebreak.c: Likewise.
4920         * lib/localcharset.c: Likewise.
4921         * lib/lock.c: Likewise.
4922         * lib/mbchar.c: Likewise.
4923         * lib/mbswidth.c: Likewise.
4924         * lib/mkdtemp.c: Likewise.
4925         * lib/pipe.c: Likewise.
4926         * lib/printf-args.c: Likewise.
4927         * lib/printf-parse.c: Likewise.
4928         * lib/progname.c: Likewise.
4929         * lib/progreloc.c: Likewise.
4930         * lib/readlink.c: Likewise.
4931         * lib/sh-quote.c: Likewise.
4932         * lib/stpcpy.c: Likewise.
4933         * lib/stpncpy.c: Likewise.
4934         * lib/strcasecmp.c: Likewise.
4935         * lib/strcasestr.c: Likewise.
4936         * lib/strcspn.c: Likewise.
4937         * lib/striconv.c: Likewise.
4938         * lib/strncasecmp.c: Likewise.
4939         * lib/strnlen1.c: Likewise.
4940         * lib/strstr.c: Likewise.
4941         * lib/strtok_r.c: Likewise.
4942         * lib/tls.c: Likewise.
4943         * lib/tmpdir.c: Likewise.
4944         * lib/unicodeio.c: Likewise.
4945         * lib/unsetenv.c: Likewise.
4946         * lib/vasnprintf.c: Likewise.
4947         * lib/vasprintf.c: Likewise.
4948         * lib/wait-process.c: Likewise.
4949         * lib/xallocsa.c: Likewise.
4950         * lib/xsetenv.c: Likewise.
4951         * lib/xstriconv.c: Likewise.
4952
4953 2006-09-13  Simon Josefsson  <jas@extundo.com>
4954
4955         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
4956         that internally, suggested by Ralf Wildenhues
4957         <Ralf.Wildenhues@gmx.de>.
4958
4959 2006-09-13  Simon Josefsson  <jas@extundo.com>
4960
4961         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
4962         @LIBOBJS@.
4963         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4964
4965 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
4966
4967         * lib/_fpending.c: Include <config.h> unconditionally, since we no
4968         longer worry about uses that don't define HAVE_CONFIG_H.
4969         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
4970         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
4971         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
4972         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
4973         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
4974         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
4975         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
4976         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
4977         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
4978         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
4979         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
4980         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
4981         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
4982         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
4983         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
4984         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
4985         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
4986         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
4987         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
4988         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
4989         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
4990         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
4991         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
4992         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
4993         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
4994         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
4995         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
4996         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
4997         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
4998         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
4999         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
5000         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
5001         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
5002         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
5003         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
5004         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
5005         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
5006         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
5007         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
5008         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
5009         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
5010         Likewise.
5011
5012 2006-09-13  Eric Blake  <ebb9@byu.net>
5013
5014         * lib/getopt.c: Fix typo in last commit.
5015
5016 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
5017
5018         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
5019         dgettext.
5020
5021 2006-09-12  Jim Meyering  <jim@meyering.net>
5022
5023         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
5024         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
5025         Reported by Nelson H. F. Beebe.
5026
5027 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
5028
5029         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
5030         program_invocation_name and program_invocation_short_name are
5031         initialized.
5032         * lib/argp-namefrob.h: Move declarations of program_invocation_name
5033         and program_invocation_short_name to argp.h, so they are visible
5034         to user programs.
5035         * lib/argp.h: Likewise
5036
5037 2006-09-10  Bruno Haible  <bruno@clisp.org>
5038
5039         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
5040         m4/inttypes_h.m4, m4/uintmax_t.m4.
5041
5042 2006-09-10  Bruno Haible  <bruno@clisp.org>
5043
5044         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
5045         gl_AC_TYPE_UINTMAX_T.
5046
5047 2006-09-10  Bruno Haible  <bruno@clisp.org>
5048
5049         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
5050
5051 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
5052
5053         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
5054         convention.  Text proposed by Bruno Haible.
5055         (struct argp_option): Document the use of N_() wrappers.
5056
5057         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
5058         '\v', and translate the two parts separately, instead of feeding
5059         the whole string to gettext.  This allows to exclude
5060         '\v' from the strings visible to the translator by writing doc
5061         strings as N_("..") "\v" N_("..").
5062
5063 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
5064
5065         * config/srclist.txt: Undo latest change; the bug was fixed.
5066
5067 2006-09-09  Bruno Haible  <bruno@clisp.org>
5068
5069         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
5070         assignments if building a library without libtool.
5071         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
5072         in func_emit_lib_Makefile_am.
5073         (func_import): When building a static library libfoo.a, arrange to
5074         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
5075         (func_create_testdir): Likewise.
5076         * modules/gc (configure.ac, Makefile.am): If building statically,
5077         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
5078         * modules/iconvme (configure.ac, Makefile.am): Likewise.
5079         * modules/striconv (configure.ac, Makefile.am): Likewise.
5080         Based on a suggestion by Ralf Wildenhues.
5081
5082 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
5083
5084         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
5085         Check for unistd.h too, since Autoconf doesn't assume POSIX.
5086         Also:
5087
5088         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
5089         Add year_2050_test to catch glibc bug 2821
5090         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
5091
5092         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
5093         Prefer #ifdef to #if.
5094
5095         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
5096         Return from 'main' instead of calling 'exit'.
5097
5098 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
5099
5100         * lib/mktime.c (guess_time_tm): Fix bug where mktime
5101         returned the maximum time_t value rather than (time_t) -1.
5102         Problem originally reported by William Bardwell
5103         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
5104
5105         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
5106         Moved to here ...
5107         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
5108         ... from here.
5109
5110 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
5111
5112         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
5113         2821 is fixed.
5114
5115 2006-09-08  Jim Meyering  <jim@meyering.net>
5116
5117         Don't make generated files read-only.  That would bother too many
5118         people.  However, do retain the ability to work when targets are
5119         read-only: remove the destination and temporary files before writing
5120         them (when generated via sed or echo), or by using the -f option for
5121         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
5122         * modules/alloca-opt, modules/argz, modules/arpa_inet:
5123         * modules/byteswap, modules/configmake, modules/fcntl:
5124         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
5125         * modules/localcharset, modules/netinet_in, modules/poll:
5126         * modules/stdbool, modules/stdint, modules/sys_select:
5127         * modules/sys_socket, modules/sys_stat, modules/sysexits:
5128
5129 2006-09-08  Jim Meyering  <jim@meyering.net>
5130
5131         Avoid new build failure on FreeBSD 6.0.
5132         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
5133         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
5134         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
5135
5136 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5137
5138         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
5139
5140 2006-09-07  Jim Meyering  <jim@meyering.net>
5141
5142         Fix global typo in last change: use chmod u-w, not chmod u-x.
5143         Spotted by Paul Eggert and Bruce Korb.
5144         * modules/alloca-opt, modules/argz, modules/arpa_inet:
5145         * modules/byteswap, modules/configmake, modules/fcntl:
5146         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
5147         * modules/localcharset, modules/netinet_in, modules/poll:
5148         * modules/stdbool, modules/stdint, modules/sys_select:
5149         * modules/sys_socket, modules/sys_stat, modules/sysexits:
5150
5151 2006-09-06  Jim Meyering  <jim@meyering.net>
5152
5153         Make generated files be read-only.
5154         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
5155         Ensure that each generated file is now read-only.
5156         * modules/argz: Likewise.
5157         * modules/arpa_inet: Likewise.
5158         * modules/byteswap: Likewise.
5159         * modules/configmake: Likewise.
5160         * modules/fcntl: Likewise.
5161         * modules/fnmatch: Likewise.
5162         * modules/getopt: Likewise.
5163         * modules/glob: Likewise.
5164         * modules/inttypes: Likewise.
5165         * modules/netinet_in: Likewise.
5166         * modules/poll: Likewise.
5167         * modules/stdbool: Likewise.
5168         * modules/stdint: Likewise.
5169         * modules/sys_select: Likewise.
5170         * modules/sys_socket: Likewise.
5171         * modules/sys_stat: Likewise.
5172         * modules/sysexits: Likewise.
5173         * modules/localcharset: Same as above, but continue using temporary
5174         file named "t-$@" (why different?) rather than the "$@-t" used
5175         everywhere else.
5176
5177         * modules/sysexits (Makefile.am): Replace literal occurrences
5178         of "sysexit.h" more readable, and more consistent, "$@".
5179
5180 2006-09-06  Bruno Haible  <bruno@clisp.org>
5181
5182         * modules/striconv: New file.
5183         * modules/xstriconv: New file.
5184         * MODULES.html.sh (Internationalization functions): Add striconv,
5185         xstriconv.
5186
5187 2006-09-06  Bruno Haible  <bruno@clisp.org>
5188
5189         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
5190         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
5191         not using libtool correctly.
5192
5193 2006-09-06  Bruno Haible  <bruno@clisp.org>
5194
5195         * lib/striconv.h: New file.
5196         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
5197         iconvstring.c.
5198         * lib/xstriconv.h: New file.
5199         * lib/xstriconv.c: New file.
5200
5201 2006-09-06  Bruno Haible  <bruno@clisp.org>
5202
5203         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
5204         lib_..._LDFLAGS.
5205
5206 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5207
5208         * lib/argz_.h: Sync from Libtool.
5209
5210         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
5211                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5212
5213         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
5214
5215 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
5216
5217         * modules/trim: New file.
5218
5219 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
5220
5221         * lib/trim.h: New file.
5222         * lib/trim.c: New file.
5223
5224 2006-09-05  Bruno Haible  <bruno@clisp.org>
5225
5226         * MODULES.html.sh (String handling): Add trim.
5227
5228 2006-09-04  Karl Berry  <karl@gnu.org>
5229
5230         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
5231         until next release.
5232
5233 2006-09-03  Bruno Haible  <bruno@clisp.org>
5234
5235         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
5236         correctly.
5237
5238 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
5239
5240         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
5241         not gl_GETLOADAVG.  Omit unneeded semicolons.
5242         Problems reported by Ralf Wildenhues in
5243         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
5244         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
5245         at the end, which is the usual gnulib style.
5246
5247         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
5248         of doing all the work ourselves.
5249         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
5250         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
5251
5252 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
5253
5254         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
5255         Problem reported by Ralf Wildenhues in
5256         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
5257
5258         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
5259         HAVE_STRUCT_STATFS_F_FSTYPENAME.
5260
5261 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
5262
5263         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
5264         yesterday's patch by changing test -n to test -z.
5265
5266 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
5267
5268         * modules/getloadavg (Files): Add m4/getloadavg.m4.
5269         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
5270         the former is now obsolescent.
5271
5272         * modules/chdir-long (Depends-on): Add fcntl.
5273
5274 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
5275
5276         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
5277         obsolescent, and programs should use gnulib instead.
5278         * m4/getloadavg.m4: New file, with contents taken from Autoconf
5279         but with prefixes changed.
5280
5281 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
5282
5283         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
5284         or stdbool.h, because they might not exist while configuring.
5285
5286         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
5287         Don't include unistd.h or limits.h; not needed, since chdir-long.h
5288         does that for us.
5289         (O_DIRECTORY): Remove.
5290
5291 2006-08-31  Eric Blake  <ebb9@byu.net>
5292
5293         * gnulib-tool: Don't let emacs change spaces to TAB.
5294
5295 2006-08-31  Bruno Haible  <bruno@clisp.org>
5296
5297         * gnulib-tool: When calling func_import more than once, do it in a
5298         subshell.
5299         Reported by Eric Blake <ebb9@byu.net>.
5300
5301 2006-08-31  Bruno Haible  <bruno@clisp.org>
5302
5303         * gnulib-tool (nl): Remove variable.
5304         (sed_transform_lib_file): Use more robust test for config-h module.
5305         (func_import): Fix typo in 2006-08-25 patch.
5306
5307 2006-08-31  Bruno Haible  <bruno@clisp.org>
5308
5309         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
5310         specified, augment Makefile.am variables instead of assigning them.
5311
5312 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
5313
5314         Work around a bug in both the Linux and SunOS 64-bit kernels:
5315         nanosleep mishandles sleeps for longer than 2**31 seconds.
5316         Problem reported by Frank v Waveren in
5317         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
5318         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
5319         Check for nanosleep bug.
5320         (LIB_NANOSLEEP): Append clock_gettime library if needed.
5321
5322 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
5323
5324         Work around a bug in both the Linux and SunOS 64-bit kernels:
5325         nanosleep mishandles sleeps for longer than 2**31 seconds.
5326         Problem reported by Frank v Waveren in
5327         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
5328         * lib/nanosleep.c (BILLION): New constant.
5329         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
5330         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
5331         implementation.
5332
5333 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
5334
5335         * modules/nanosleep (Depends-on): Add gettime.
5336
5337 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
5338         and Simon Josefsson  <jas@extundo.com>
5339         and Oskar Liljeblad  <oskar@osk.mine.nu>
5340
5341         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
5342         * gnulib-tool (func_import): New license type 'unmodifiable license
5343         text'.
5344         * modules/fdl: Use it.  Longer description.
5345         * module/gpl, module/lgpl: New files.
5346
5347 2006-08-30  Jim Meyering  <jim@meyering.net>
5348
5349         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
5350         shadowing the parameter.
5351
5352 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5353
5354         Sync from Libtool:
5355
5356         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5357
5358         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
5359         sharing with gnulib.  Report by Eric Blake.
5360
5361 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
5362
5363         * modules/isapipe: New file.
5364         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
5365
5366 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
5367
5368         * modules/configmake (Makefile.am): Add a comment, and omit
5369         the CONFIGMAKE_ prefix from generated macro names.  Suggested
5370         by Bruno Haible.
5371
5372 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
5373
5374         * m4/isapipe.m4: New file.
5375
5376 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
5377
5378         * lib/isapipe.c, lib/isapipe.h: New files.
5379
5380 2006-08-29  Jim Meyering  <jim@meyering.net>
5381
5382         * modules/configmake (Makefile.am): Make configmake.h depend on
5383         Makefile.  Otherwise, a stale configmake.h could hang around.
5384
5385 2006-08-29  Eric Blake  <ebb9@byu.net>
5386
5387         * lib/error.c (error_at_line, print_errno_message): Match libc, after
5388         resolution of upstream bug 3044.
5389
5390 2006-08-29  Bruno Haible  <bruno@clisp.org>
5391
5392         * modules/localcharset (Depends-on): Add configmake.
5393         (Makefile.am): Remove setting of LIBDIR through DEFS.
5394
5395 2006-08-29  Bruno Haible  <bruno@clisp.org>
5396
5397         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
5398         defined.
5399
5400 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
5401
5402         * modules/fcntl: New file.
5403         * modules/chdir-safer (Depends-on): Add fcntl.
5404         * modules/fts: Likewise.
5405         * modules/mkdir-p: Likewise.
5406
5407         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
5408         This undoes the most recent change, since we're now addressing the
5409         problem in a different way.
5410
5411         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
5412         into output, since the output might be called Makefile.am even
5413         if $makefile_name is something different.
5414         (func_import): Use $makefile_am rather than
5415         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
5416         empty.
5417
5418         * modules/inttypes (Files): Add m4/inttypes-h.m4.
5419
5420 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
5421
5422         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
5423         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
5424         recent change to stdint.m4, since we're now addressing the problem in a
5425         different way.
5426
5427 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
5428
5429         * m4/fcntl_h.m4: New file.
5430
5431 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
5432
5433         * lib/fcntl_.h: New file.
5434         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
5435         the fcntl module.
5436         * lib/dirchownmod.c: Likewise.
5437         * lib/fts.c: Likewise.
5438
5439         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
5440         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
5441         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
5442         just before including <inttypes.h>, to avoid circular inclusion.
5443
5444 2006-08-28  Jim Meyering  <jim@meyering.net>
5445
5446         * doc/visibility.texi: Actually read and correct the grammar of the
5447         sentence affected by yesterday's change.
5448
5449 2006-08-28  Eric Blake  <ebb9@byu.net>
5450
5451         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
5452         needs wrapper.
5453
5454 2006-08-28  Eric Blake  <ebb9@byu.net>
5455
5456         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
5457
5458 2006-08-28  Eric Blake  <ebb9@byu.net>
5459
5460         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
5461
5462 2006-08-28  Bruno Haible  <bruno@clisp.org>
5463
5464         * modules/c-strstr: New file, from GNU gettext.
5465         * MODULES.html.sh (String handling): Add c-strstr.
5466
5467 2006-08-28  Bruno Haible  <bruno@clisp.org>
5468
5469         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
5470         macros.
5471         Reported by Eric Blake.
5472
5473 2006-08-28  Bruno Haible  <bruno@clisp.org>
5474
5475         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
5476         (VASNPRINTF): Return a string of length > INT_MAX without failing.
5477         * lib/vasprintf.c: Include errno.h, limits.h.
5478         (EOVERFLOW): New fallback definition.
5479         (vasprintf): Test here whether the string length is > INT_MAX.
5480         * lib/vsnprintf.c: Include errno.h, limits.h.
5481         (EOVERFLOW): New fallback definition.
5482         (vsnprintf): Fix bug when generated string was too long for the buffer.
5483         Test here whether the string length is > INT_MAX.
5484
5485 2006-08-28  Bruno Haible  <bruno@clisp.org>
5486
5487         * lib/inttypes_.h (SCNX*): Remove definitions.
5488         Reported by Eric Blake.
5489
5490 2006-08-28  Bruno Haible  <bruno@clisp.org>
5491
5492         * lib/c-strstr.h: New file, from GNU gettext.
5493         * lib/c-strstr.c: New file, from GNU gettext.
5494
5495 2006-08-28  Bruno Haible  <bruno@clisp.org>
5496
5497         * gnulib-tool: Reorder some statements.
5498
5499 2006-08-28  Bruno Haible  <bruno@clisp.org>
5500
5501         * gnulib-tool: New option --makefile-name.
5502         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
5503         $makefile_name.
5504         (func_import): Write $makefile_name to the cache file, and read it from
5505         there unless explicitly specified. Use $makefile_name as file name
5506         instead of Makefile.am. Adjust the recommendations accordingly.
5507
5508 2006-08-28  Bruno Haible  <bruno@clisp.org>
5509
5510         * gnulib-tool (func_verify_module): Check against misapplying patch.
5511
5512 2006-08-28  Bruno Haible  <bruno@clisp.org>
5513
5514         * gnulib-tool (func_relativize, func_relconcat): New functions.
5515         Give an error if --local-dir is given with --update.
5516         Remove trailing slashes from $local_gnulib_dir.
5517         (func_import): Store the relativized $local_gnulib_dir in
5518         gnulib-cache.m4, and read it from there if not specified explicitly.
5519
5520 2006-08-28  Bruno Haible  <bruno@clisp.org>
5521
5522         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
5523         is the current directory. Respect also $local_gnulib_dir.
5524
5525 2006-08-28  Bruno Haible  <bruno@clisp.org>
5526             Simon Josefsson  <jas@extundo.com>
5527
5528         BeOS portability.
5529         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
5530
5531 2006-08-27  Jim Meyering  <jim@meyering.net>
5532
5533         * doc/visibility.texi: Remove duplicate word: "pointer".
5534
5535 2006-08-26  Bruno Haible  <bruno@clisp.org>
5536
5537         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
5538         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
5539         (Makefile.am): Create inttypes.h from inttypes_.h.
5540         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
5541
5542         * modules/imaxabs: New file.
5543
5544         * modules/imaxdiv: New file.
5545
5546 2006-08-26  Bruno Haible  <bruno@clisp.org>
5547
5548         * m4/inttypes.m4: New file.
5549         * m4/_inttypes_h.m4: Remove file.
5550         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
5551         PRI_MACROS_BROKEN.
5552         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
5553
5554         * m4/imaxabs.m4: New file.
5555
5556         * m4/imaxdiv.m4: New file.
5557
5558 2006-08-26  Bruno Haible  <bruno@clisp.org>
5559
5560         * lib/inttypes_.h: New file.
5561         * lib/inttypes.h: Remove file.
5562         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
5563
5564         * lib/imaxabs.c: New file.
5565
5566         * lib/imaxdiv.c: New file.
5567
5568 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
5569
5570         New config-h module, so that "make" output needn't be cluttered
5571         by -DHAVE_CONFIG_H.
5572         * MODULES.html.sh (Support for building libraries and executables):
5573         Add config-h.
5574         * modules/config-h: New file.
5575         * gnulib-tool (nl, sed_transform_lib_file): New vars.
5576         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
5577         the config-h module is used.
5578
5579         New configmake module, so that "make" output needn't be cluttered
5580         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
5581         * MODULES.html.sh (Support for building libraries and executables):
5582         Add configmake.
5583         * modules/configmake: New file.
5584
5585 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
5586
5587         * m4/config-h.m4: New file.
5588
5589 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
5590
5591         * config/srclist.txt: Add elisp-comp.
5592
5593 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
5594
5595         * MODULES.html.sh (Support for building libraries and executables):
5596         Add elisp-comp.
5597         * build-aux/elisp-comp: New file.
5598         * modules/elisp-comp: New file.
5599
5600 2006-08-24  Bruno Haible  <bruno@clisp.org>
5601
5602         * gnulib-tool (func_create_testdir): Use non-default values of
5603         sourcebase and m4base.
5604
5605 2006-08-24  Bruno Haible  <bruno@clisp.org>
5606
5607         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
5608         HTML structure.
5609
5610 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
5611
5612         * modules/openat (Depends-on): Add lchown.
5613
5614 2006-08-23  Bruno Haible  <bruno@clisp.org>
5615
5616         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
5617         of gl_LOCK_EARLY instead of gl_LOCK.
5618
5619 2006-08-23  Bruno Haible  <bruno@clisp.org>
5620
5621         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
5622         on OSF/1 to no.
5623         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
5624
5625 2006-08-23  Bruno Haible  <bruno@clisp.org>
5626
5627         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
5628         as unusable.
5629
5630         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
5631         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
5632         (gl_LOCK): New macro.
5633
5634 2006-08-22  Simon Josefsson  <jas@extundo.com>
5635
5636         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
5637         to md5 module.
5638
5639 2006-08-22  Simon Josefsson  <jas@extundo.com>
5640
5641         * MODULES.html.sh: Add "Support for maintaining and release
5642         projects".
5643
5644         * build-aux/gnupload: New file, from coreutils.
5645
5646 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
5647
5648         Avoid the need for AC_LIBSOURCES in m4 macros.
5649         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
5650         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
5651         * modules/check-version (EXTRA_DIST): Add check-version.h.
5652         * modules/crc (EXTRA_DIST): Add crc.h.
5653         * modules/des (EXTRA_DIST): Add des.h.
5654         * modules/gc (EXTRA_DIST): Add gc.h.
5655         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
5656         * modules/getline (EXTRA_DIST): Add getline.h.
5657         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
5658         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
5659         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
5660         * modules/md2 (EXTRA_DIST): Add md2.h.
5661         * modules/md4 (EXTRA_DIST): Add md4.h.
5662         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
5663         * modules/read-file (EXTRA_DIST): Add read-file.h.
5664         * modules/readline (EXTRA_DIST): Add readline.h.
5665         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
5666         rijndael-api-fst.h.
5667
5668 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
5669
5670         * m4/rijndael.m4 (gl_ARCFOUR):
5671         * m4/arctwo.m4 (gl_ARCTWO):
5672         * m4/check-version.m4 (gl_CHECK_VERSION):
5673         * m4/crc.m4 (gl_CRC):
5674         * m4/des.m4 (gl_DES):
5675         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
5676         * m4/gc.m4 (gl_GC):
5677         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
5678         * m4/getline.m4 (gl_FUNC_GETLINE):
5679         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
5680         * m4/hmac-md5.m4 (gl_HMAC_MD5):
5681         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
5682         * m4/md2.m4 (gl_MD2):
5683         * m4/md4.m4 (gl_MD4):
5684         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
5685         * m4/read-file.m4 (gl_FUNC_READ_FILE):
5686         * m4/readline.m4 (gl_FUNC_READLINE):
5687         * m4/rijndael.m4 (gl_RIJNDAEL):
5688         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
5689         to get the necessary .h files and whatnot.
5690
5691 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
5692
5693         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
5694         gnulib rather than the other way around.
5695         * config/srclistvars.sh (COREUTILS): Remove.
5696
5697 2006-08-22  Jim Meyering  <jim@meyering.net>
5698
5699         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
5700
5701         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
5702
5703 2006-08-22  Eric Blake  <ebb9@byu.net>
5704
5705         * modules/regexprops-generic: New file.
5706         * MODULES.html.sh (Support for building documentation): List it.
5707
5708 2006-08-22  Eric Blake  <ebb9@byu.net>
5709
5710         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
5711         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
5712         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
5713         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
5714
5715 2006-08-22  Bruno Haible  <bruno@clisp.org>
5716
5717         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
5718         and lib_LTLIBRARIES like the other lib_* variables.
5719
5720 2006-08-22  Bruno Haible  <bruno@clisp.org>
5721
5722         * build-aux/x-to-1.in: New file, from GNU gettext.
5723
5724 2006-08-22  Bruno Haible  <bruno@clisp.org>
5725
5726         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
5727         <utmpx.h> exists.
5728
5729 2006-08-22  Bruno Haible  <bruno@clisp.org>
5730
5731         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
5732         <utmpx.h> exists.
5733
5734 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
5735
5736         BeOS portability.
5737         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
5738         exist.
5739         Problem reported by Bruno Haible.
5740
5741 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
5742
5743         Avoid the need for AC_LIBSOURCES in m4 macros.
5744         * modules/acl (EXTRA_DIST): Add acl.h.
5745         * modules/argmatch (Files): Add m4/argmatch.m4.
5746         (configure.ac): Add gl_ARGMATCH.
5747         (EXTRA_DIST): Renamed from lib_SOURCES, for
5748         consistency with the other modules.  Remove argmatch.c.
5749         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
5750         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
5751         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
5752         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
5753         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
5754         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
5755         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
5756         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
5757         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
5758         * modules/closeout (EXTRA_DIST): Add closeout.h.
5759         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
5760         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
5761         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
5762         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
5763         dirname.h; remove basename.c and stripslash.c.
5764         * modules/exclude (EXTRA_DIST): Add exclude.h.
5765         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
5766         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
5767         * modules/file-type (EXTRA_DIST): Add file-type.h.
5768         * modules/filemode (EXTRA_DIST): Add filemode.h.
5769         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
5770         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
5771         * modules/fpending (EXTRA_DIST): Add __fpending.h.
5772         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
5773         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
5774         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
5775         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
5776         * modules/getdate (EXTRA_DIST): Add getdate.c.
5777         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
5778         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
5779         * modules/getpass (EXTRA_DIST): Add getpass.h.
5780         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
5781         * modules/group-member (EXTRA_DIST): Add group-member.h.
5782         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
5783         * modules/hash (EXTRA_DIST): Add hash.h.
5784         * modules/human (EXTRA_DIST): Add human.h.
5785         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
5786         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
5787         * modules/lchown (EXTRA_DIST): Add lchown.h.
5788         * modules/long-options (EXTRA_DIST): Add long-options.h.
5789         * modules/lstat (EXTRA_DIST): Add lstat.h.
5790         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
5791         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
5792         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
5793         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
5794         * modules/memxor (EXTRA_DIST): Add memxor.h.
5795         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
5796         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
5797         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
5798         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
5799         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
5800         * modules/physmem (EXTRA_DIST): Add physmem.h.
5801         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
5802         * modules/posixver (EXTRA_DIST): Add posixver.h.
5803         * modules/quote (EXTRA_DIST): Add quote.h.
5804         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
5805         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
5806         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
5807         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
5808         regex_internal.h regexec.c.
5809         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
5810         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
5811         * modules/same (EXTRA_DIST): Add same.h.
5812         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
5813         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
5814         * modules/savedir (EXTRA_DIST): Add savedir.h.
5815         * modules/sha1 (EXTRA_DIST): Add sha1.h.
5816         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
5817         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
5818         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
5819         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
5820         * modules/strdup (EXTRA_DIST): Add strdup.h.
5821         * modules/strftime (EXTRA_DIST): Add strftime.h.
5822         * modules/strndup (EXTRA_DIST): Add strndup.h.
5823         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
5824         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
5825         * modules/time_r (EXTRA_DIST): Add time_r.h.
5826         * modules/timespec (EXTRA_DIST): Add timespec.h.
5827         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
5828         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
5829         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
5830         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
5831         * modules/userspec (EXTRA_DIST): Add userspec.h.
5832         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
5833         * modules/utimens (EXTRA_DIST): Add utimens.h.
5834         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
5835         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
5836         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
5837         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
5838         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
5839         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
5840         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
5841         * modules/yesno (EXTRA_DIST): Add yesno.h.
5842
5843 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
5844
5845         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
5846
5847         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
5848         * m4/dev-ino.m4, same-inode.m4: Remove.
5849
5850         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
5851         * m4/acl.m4 (AC_FUNC_ACL):
5852         * m4/backupfile.m4 (gl_BACKUPFILE):
5853         * m4/c-strtod.m4 (gl_C99_STRTOLD):
5854         * m4/canon-host.m4 (gl_CANON_HOST):
5855         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
5856         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
5857         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
5858         * m4/cloexec.m4 (gl_CLOEXEC):
5859         * m4/close-stream.m4 (gl_CLOSE_STREAM):
5860         * m4/closeout.m4 (gl_CLOSEOUT):
5861         * m4/dirfd.m4 (gl_FUNC_DIRFD):
5862         * m4/dirname.m4 (gl_DIRNAME):
5863         * m4/exclude.m4 (gl_EXCLUDE):
5864         * m4/exitfail.m4 (gl_EXITFAIL):
5865         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
5866         * m4/file-type.m4 (gl_FILE_TYPE):
5867         * m4/filemode.m4 (gl_FILEMODE):
5868         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
5869         * m4/fpending.m4 (gl_FUNC_FPENDING):
5870         * m4/fprintftime.m4 (gl_FPRINTFTIME):
5871         * m4/fts.m4 (gl_FUNC_FTS):
5872         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
5873         * m4/getdate.m4 (gl_GETDATE):
5874         * m4/gethrxtime.m4 (gl_GETHRXTIME):
5875         * m4/getpagesize.m4 (gl_GETPAGESIZE):
5876         * m4/getpass.m4 (gl_FUNC_GETPASS):
5877         * m4/gettime.m4 (gl_GETTIME):
5878         * m4/getugroups.m4 (gl_GETUGROUPS):
5879         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
5880         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
5881         * m4/hard-locale.m4 (gl_HARD_LOCALE):
5882         * m4/hash.m4 (gl_HASH):
5883         * m4/idcache.m4 (gl_IDCACHE):
5884         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
5885         * m4/lchown.m4 (gl_FUNC_LCHOWN):
5886         * m4/long-options.m4 (gl_LONG_OPTIONS):
5887         * m4/lstat.m4 (gl_FUNC_LSTAT):
5888         * m4/md5.m4 (gl_MD5):
5889         * m4/memcasecmp.m4 (gl_MEMCASECMP):
5890         * m4/memcoll.m4 (gl_MEMCOLL):
5891         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
5892         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
5893         * m4/memxor.m4 (gl_MEMXOR):
5894         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
5895         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
5896         * m4/modechange.m4 (gl_MODECHANGE):
5897         * m4/mountlist.m4 (gl_MOUNTLIST):
5898         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
5899         * m4/openat.m4 (gl_FUNC_OPENAT):
5900         * m4/pathmax.m4 (gl_PATHMAX):
5901         * m4/physmem.m4 (gl_PHYSMEM):
5902         * m4/posixtm.m4 (gl_POSIXTM):
5903         * m4/posixver.m4 (gl_POSIXVER):
5904         * m4/quote.m4 (gl_QUOTE):
5905         * m4/quotearg.m4 (gl_QUOTEARG):
5906         * m4/readtokens.m4 (gl_READTOKENS):
5907         * m4/readutmp.m4 (gl_READUTMP):
5908         * m4/regex.m4 (gl_REGEX):
5909         * m4/safe-read.m4 (gl_SAFE_READ):
5910         * m4/safe-write.m4 (gl_SAFE_WRITE):
5911         * m4/same.m4 (gl_SAME):
5912         * m4/save-cwd.m4 (gl_SAVE_CWD):
5913         * m4/savedir.m4 (gl_SAVEDIR):
5914         * m4/settime.m4 (gl_SETTIME):
5915         * m4/sha1.m4 (gl_SHA1):
5916         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
5917         * m4/stat-macros.m4 (gl_STAT_MACROS):
5918         * m4/stat-time.m4 (gl_STAT_TIME):
5919         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
5920         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
5921         * m4/strdup.m4 (gl_FUNC_STRDUP):
5922         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
5923         * m4/strndup.m4 (gl_FUNC_STRNDUP):
5924         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
5925         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
5926         * m4/time_r.m4 (gl_TIME_R):
5927         * m4/timespec.m4 (gl_TIMESPEC):
5928         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
5929         * m4/unlinkdir.m4 (gl_UNLINKDIR):
5930         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
5931         * m4/userspec.m4 (gl_USERSPEC):
5932         * m4/utimecmp.m4 (gl_UTIMECMP):
5933         * m4/utimens.m4 (gl_UTIMENS):
5934         * m4/xalloc.m4 (gl_XALLOC):
5935         * m4/xgetcwd.m4 (gl_XGETCWD):
5936         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
5937         * m4/xreadlink.m4 (gl_XREADLINK):
5938         * m4/xstrtod.m4 (gl_XSTRTOD):
5939         * m4/yesno.m4 (gl_YESNO):
5940         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
5941         to get the necessary .h files and whatnot.
5942
5943 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
5944             Bruno Haible  <bruno@clisp.org>
5945
5946         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
5947         /bin/sh understanding of '!' conditional negation.
5948
5949 2006-08-21  Jim Meyering  <jim@meyering.net>
5950
5951         * modules/openat (Depends-on): Really alphabetize.
5952
5953         * modules/acl (Depends-on): Add error and quote.
5954
5955         * check-module (find_included_lib_files): Add at-func.c to the
5956         ok-to-include-more-than-once white list.
5957
5958         * modules/openat (Depends-on): Add lstat.  Alphabetize.
5959
5960 2006-08-21  Bruno Haible  <bruno@clisp.org>
5961
5962         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
5963         Emit a pkgdata_DATA variable only if some snippets add contents to it.
5964         Reported by Martin Lambers <marlam@marlam.de>.
5965
5966 2006-08-21  Bruno Haible  <bruno@clisp.org>
5967
5968         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
5969         specify an installation location, don't emit a noinst_LIBRARIES or
5970         noinst_LTLIBRARIES assignment.
5971
5972 2006-08-21  Bruno Haible  <bruno@clisp.org>
5973
5974         BeOS portability.
5975         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
5976         BeOS has mbrtowc() but no <wctype.h>.
5977
5978 2006-08-21  Bruno Haible  <bruno@clisp.org>
5979
5980         BeOS portability.
5981         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
5982         exist.
5983
5984 2006-08-21  Bruno Haible  <bruno@clisp.org>
5985
5986         BeOS portability.
5987         * lib/mbchar.h: Include <wctype.h> only if it exists.
5988
5989 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
5990
5991         Remove files that are no longer needed by their respective modules.
5992         * m4/obstack.m4: Remove.
5993         * m4/strerror_r.m4: Remove.
5994         * m4/uint32_t.m4: Remove.
5995         * m4/uintptr_t.m4: Remove.
5996         * m4/ullong_max.m4: Remove.
5997         * m4/xstrtoimax.m4: Remove.
5998         * m4/xstrtoumax.m4: Remove.
5999
6000         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
6001         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
6002         dependencies now capture this.
6003
6004         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
6005         Do not use AC_LIBSOURCES, since gnulib modules now do this.
6006         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
6007         * m4/human.m4 (gl_HUMAN): Likewise.
6008         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
6009         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
6010
6011         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
6012
6013         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
6014         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
6015         stdint.
6016         * m4/human.m4 (gl_HUMAN): Likewise.
6017         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
6018         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
6019         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
6020         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
6021         * m4/xstrtol (gl_XSTRTOL): Likewise.
6022
6023         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
6024         AC_TYPE_LONG_LONG_INT.
6025         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
6026         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
6027         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
6028         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
6029
6030         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
6031         on stdbool.
6032
6033         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
6034         (gl_PREREQ_XSTRTOUL): Remove.
6035
6036         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
6037
6038         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
6039         mode.
6040
6041 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
6042
6043         Add and change modules to make it easier for coreutils to use
6044         gnulib-tool.
6045         * modules/backupfile (Files): Remove m4/d-ino.m4.
6046         (Depends-on): Add d-ino.
6047         * modules/cycle-check (Depends-on): Add stdint.
6048         (lib_SOURCES): Add cycle-check.h.
6049         * modules/d-ino: New module.
6050         * modules/d-type: New module.
6051         * modules/error (Files): Remove m4/strerror_r.m4.
6052         * modules/filemode (Files): Add m4/st_dm_mode.m4.
6053         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
6054         m4/inttypes_h.m4, m4/uintmax_t.m4.
6055         (Depends-on): Add stdint.
6056         (lib_SOURCES): Add fsusage.h.
6057         * modules/getcwd (Files): Remove d-ino.m4.
6058         (Depends-on): Add d-ino.
6059         * modules/getndelim2 (Depends-on): Add stdint.
6060         * modules/glob (Files): Remove m4/d-type.m4.
6061         (Depends-on): Add d-type.
6062         * modules/host-os: New module.
6063         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
6064         m4/inttypes_h.m4, m4/uintmax_t.m4.
6065         * Depends-on: Add stdint.
6066         (lib_SOURCES): Add human.h.
6067         * modules/inttostr (Files): Remove m4/intmax_t.m4,
6068         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
6069         m4/uintmax_t.m4, m4/ulonglong.m4.
6070         (Depends-on): Add stdint.
6071         (EXTRA_DIST): Add inttostr.h.
6072         * modules/lchmod: New module.
6073         * modules/link-follow: New module.
6074         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
6075         (Depends-on): Add lchmod.
6076         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
6077         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
6078         (Depends-on): Add stdint.
6079         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
6080         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
6081         (Depends-on): Add stdint.
6082         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
6083         * modules/perl: New module.
6084         * modules/regex (Depends-on): Add stdint.
6085         * modules/rmdir-errno: New module.
6086         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
6087         m4/intmax_t.m4.
6088         (Depends-on): Add stdint.
6089         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
6090         m4/uintmax_t.m4.
6091         (Depends-on): Add stdint.
6092         * modules/unlink-busy: New module.
6093         * modules/utimecmp (Depends-on): Add stdint.
6094         * modules/uptime: New module.
6095         * modules/winsz-ioctl: New module.
6096         * modules/winsz-termios: New module.
6097         * modules/xnanosleep (Depends-on): Add nanosleep.
6098         * modules/ullong_max: Remove.
6099         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
6100         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
6101         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
6102         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
6103         (Depends-on): Add inttypes.
6104         (lib_SOURCES): Add xstrtol.h.
6105         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
6106         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
6107         * MODULES.html.sh: Move 'assert' into the assert section.
6108         Move 'dummy' into the linking section.
6109         Remove ullong_max.
6110         Add section for compatibility checks for POSIX:2001 functions,
6111         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
6112         winsz-ioctl, and winsz-termios into it.
6113         Add lchmod.
6114         Add top-level Misc section and put host-os, perl, and uptime
6115         into it.
6116
6117 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
6118
6119         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
6120         now assume the stdint module.  Do not include inttypes.h.
6121         * lib/fsusage.h: Likewise.
6122         * lib/getndelim2.c: Likewise.
6123         * lib/human.h: Likewise.
6124         * lib/inttostr.h: Likewise.
6125         * lib/obstack.c: Likewise.
6126         * lib/regex_internal.h: Likewise.
6127         * lib/tempname.c: Likewise.
6128         * lib/utimecmp.c: Likewise.
6129         * lib/xstrtol.h: Likewise.
6130
6131         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
6132
6133         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
6134         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
6135         * lib/xtime.h: Likewise.
6136
6137 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
6138
6139         * modules/openat (Files): Add lib/fchmodat.c.
6140         Fixes problem reported by Jay Youngman.
6141
6142 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
6143
6144         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
6145         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
6146
6147 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
6148             Bruno Haible  <bruno@clisp.org>
6149
6150         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
6151         and is a script that invokes bison. Tighten the code. Add comments.
6152
6153 2006-08-18  Jim Meyering  <jim@meyering.net>
6154
6155         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
6156         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
6157         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
6158         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
6159
6160 2006-08-18  Bruno Haible  <bruno@clisp.org>
6161
6162         * modules/bison-i18n: New file.
6163         * MODULES.html.sh (Internationalization functions): Add it.
6164
6165 2006-08-18  Bruno Haible  <bruno@clisp.org>
6166
6167         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
6168         sys/statvfs.h. When getmntinfo was found, check its declaration and
6169         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
6170
6171 2006-08-18  Bruno Haible  <bruno@clisp.org>
6172
6173         * m4/bison-i18n.m4: New file, from bison.
6174
6175 2006-08-18  Bruno Haible  <bruno@clisp.org>
6176
6177         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
6178         (ME_DUMMY): Treat "kernfs" as a dummy.
6179         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
6180
6181 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
6182
6183         Update from coreutils.
6184
6185         2006-08-15  Jim Meyering  <jim@meyering.net>
6186
6187         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
6188
6189         2006-01-17  Jim Meyering  <jim@meyering.net>
6190
6191         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
6192
6193         2006-01-11  Jim Meyering  <jim@meyering.net>
6194
6195         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
6196         Check for the lchmod function.
6197
6198 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
6199
6200         Update from coreutils.
6201
6202         * lib/__fpending.h: Add copyright notice.
6203         * lib/fprintftime.h: Likewise.
6204         * lib/savedir.c: Use (C) in copyright notice.
6205         * lib/savedir.h: Likewise.
6206
6207         2006-08-15  Jim Meyering  <jim@meyering.net>
6208
6209         * lib/at-func.c: New file, with the logic of all emulated at-functions.
6210         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
6211         in support of the EXPECTED_ERRNO macro.
6212         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
6213         definitions.  Instead, define the appropriate symbols and include
6214         "at-func.c".
6215         * lib/mkdirat.c (mkdirat): Likewise.
6216         * lib/fchmodat.c (fchmodat): Likewise.
6217         (ENOSYS): Remove definition.
6218         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
6219         it.  Don't include "unistd--.h" -- it wasn't ever used.
6220
6221         2006-01-17  Jim Meyering  <jim@meyering.net>
6222
6223         Rewrite fts.c not to change the current working directory,
6224         by using openat, fstatat, fdopendir, etc..
6225
6226         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
6227         (HAVE_OPENAT_SUPPORT): Define.
6228         [_LIBC] (fchdir): Don't undef or define; no longer used.
6229         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
6230         Now, this `function' always succeeds, and consumes its file descriptor
6231         parameter -- so callers must not close such FDs.  Update callers.
6232         (diropen_fd, opendirat, cwd_advance_fd): New functions.
6233         (diropen): Add parameter, SP.  Adjust all callers.
6234         Implement using diropen_fd, rather than open.
6235         (fts_open): Initialize new member, fts_cwd_fd.
6236         Remove fts_rft-setting code.
6237         (fts_close): Close fts_cwd_fd, if necessary.
6238         (__opendir2): Define in terms of opendir or opendirat,
6239         depending on whether the FST_NOCHDIR flag is set.
6240         (fts_build): Since fts_safe_changedir consumes its FD, and since
6241         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
6242         and close the dup'd file descriptor upon failure.
6243         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
6244         (fts_safe_changedir): Tweak semantics to reflect that this function
6245         now calls cwd_advance_fd and hence consumes its FD argument.
6246         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
6247         [struct FTS] (fts_rft): Remove now-unused member.
6248         [struct FTS] (fts_cycle.state): Improve comment.
6249
6250         * lib/openat.c (openat_needs_fchdir): New function.
6251         * lib/openat.h (openat_needs_fchdir): Declare it.
6252
6253 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
6254
6255         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
6256         Problem and fix reported by Pádraig Brady in
6257         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
6258
6259 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
6260
6261         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
6262
6263 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
6264
6265         * lib/memcoll.c (memcoll): Optimize for the common case where the
6266         arguments are bytewise equal.
6267
6268 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
6269
6270         * doc/regexprops-generic.texi: Add a copyright notice.
6271
6272 2006-08-15  Bruno Haible  <bruno@clisp.org>
6273
6274         * modules/tmpdir (License): Change to LGPL.
6275
6276 2006-08-15  Bruno Haible  <bruno@clisp.org>
6277
6278         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
6279         module.
6280
6281 2006-08-14  Simon Josefsson  <jas@extundo.com>
6282
6283         * config/srclist.txt: Add gnupload.
6284
6285 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
6286
6287         Change copyright notice from LGPL 2 to GPL 2, since that's the
6288         standard form used in the gnulib repository.
6289         * tests/test-lock.c: Likewise.
6290         * tests/test-stdint.c: Likewise.
6291         * tests/test-tls.c: Likewise.
6292
6293         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
6294         prelude-manager.  User shorter URLs for GNU projects, without '?'.
6295         Add copyright notice.
6296
6297         * check-module: Add copyright notice.  Output a copyright
6298         notice if "--version" is specified.
6299         * modules/COPYING: New file.
6300         * tests/test-getaddrinfo.c: Add copyright notice.
6301         * tests/test-verify.c: Likewise.
6302
6303 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
6304
6305         Change copyright notice from LGPL 2 to GPL 2, since that's the
6306         standard form used in the gnulib repository.
6307         * lib/lock.c: LGPL -> GPL.
6308         * lib/lock.h: Likewise.
6309         * lib/strnlen1.c: Likewise.
6310         * lib/strnlen1.h: Likewise.
6311         * lib/tls.c: Likewise.
6312         * lib/tls.h: Likewise.
6313         * lib/tmpdir.c: Likewise.
6314
6315         * lib/TODO: Remove; this belongs only in coreutils.
6316
6317 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
6318
6319         Add copyright notices to long-enough files that lack them, since
6320         otherwise the files aren't clearly free.  Use the same notice that
6321         getdate.texi already uses.
6322         * doc/alloca-opt.texi: Add copyright notice.
6323         * doc/alloca.texi: Likewise.
6324         * doc/ctime.texi: Likewise.
6325         * doc/functions.texi: Likewise.
6326         * doc/gcd.texi: Likewise.
6327         * doc/gnulib-tool.texi: Likewise.
6328         * doc/inet_ntoa.texi: Likewise.
6329         * doc/visibility.texi: Likewise.
6330
6331         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
6332         * doc/quote.texi: Add copyright notice.
6333
6334         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
6335         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
6336         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
6337         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
6338         is now obsolete, and give a pointer to the Sun list.
6339         Add copyright notice.
6340
6341 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
6342
6343         * config/srclistvars.sh: Add copyright notice.
6344
6345 2006-08-14  Eric Blake  <ebb9@byu.net>
6346
6347         Import the following change from libc:
6348
6349         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
6350
6351         Upstream bug 2997.
6352         * lib/misc/error.c: Add space between program name and message if file
6353         name is missing.
6354
6355 2006-08-12  Karl Berry  <karl@gnu.org>
6356
6357         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
6358         remove, these originate in gnulib now.
6359
6360 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6361
6362         * doc/Makefile (standards.info standards.html standards.dvi):
6363         Also depend on make-stds.texi.
6364
6365 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
6366
6367         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
6368         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
6369
6370         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
6371         in wchar_t.  Problem reported by Eric Blake.
6372
6373         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
6374         LEN is smaller than SIZE.  Suggested by Bruno Haible.
6375         Also, help the compiler to keep LEN in a register.
6376
6377 2006-08-11  Eric Blake  <ebb9@byu.net>
6378
6379         * users.txt: Sort.  Add tar.
6380
6381 2006-08-11  Bruno Haible  <bruno@clisp.org>
6382
6383         * users.txt: New file.
6384
6385 2006-08-11  Bruno Haible  <bruno@clisp.org>
6386
6387         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
6388         before <wchar.h>. Needed for OSF/1 and BSD/OS.
6389
6390 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
6391
6392         * modules/snprintf (Depends-on): Remove minmax.
6393         (Maintainer): Add self and Bruno.
6394
6395 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
6396
6397         * lib/.cppi-disable: Add snprintf.h, socket_.h.
6398         * lib/snprintf.c: Include <errno.h> and <limits.h>.
6399         (EOVERFLOW): Define if the system does not.
6400         Do not include "minmax.h"; it wasn't used.
6401         (snprintf): Don't assume size_t promotes to an unsigned type.
6402         Fix bug when generated string was too long for the buffer: the
6403         buffer's contents are supposed to be the initial prefix of the
6404         output.  Don't assume vasnprintf returns EOVERFLOW if the size
6405         exceeds INT_MAX; do the check ourselves.
6406
6407         Import the following changes from libc:
6408
6409         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
6410
6411         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
6412         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
6413         set wc to the byte which couldn't be converted.
6414         (re_string_reconstruct): Don't clear valid_raw_len before calling
6415         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
6416         tip_context using re_string_context_at.
6417
6418         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
6419
6420         * lib/posix/regex.h: g++ still cannot handled [restrict].
6421
6422         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
6423
6424         * lib/posix/regex.h: Remove special handling for VMS.
6425
6426 2006-08-10  Jim Meyering  <jim@meyering.net>
6427
6428         * modules/same-inode: New module.
6429         * modules/dev-ino: New module.
6430         * modules/cycle-check: Depend on these modules, rather than simply
6431         including their .h files.
6432         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
6433         required via m4/cycle-check.m4.
6434         * modules/same: Depend on new same-inode module, rather than
6435         including same-inode.h.
6436         * modules/chdir-safer: New file.
6437
6438         * modules/chown (Depends-on): Add stat-macros.
6439
6440 2006-08-10  Jim Meyering  <jim@meyering.net>
6441
6442         * m4/cycle-check.m4: New file.
6443         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
6444         * m4/dev-ino.m4, m4/same-inode.m4: New files.
6445
6446 2006-08-10  Eric Blake  <ebb9@byu.net>
6447
6448         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
6449         in from original proposal.
6450
6451 2006-08-10  Eric Blake  <ebb9@byu.net>
6452         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6453
6454         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
6455         namespace.
6456
6457 2006-08-10  Bruno Haible  <bruno@clisp.org>
6458
6459         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
6460         as well.
6461
6462 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
6463
6464         Sync from coreutils.
6465
6466         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
6467
6468         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
6469         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
6470
6471 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
6472
6473         * modules/restrict: Remove; no longer needed now that we assume
6474         Autoconf 2.59 or later.
6475         * MODULES.html.sh: Remove 'restrict'.
6476         * modules/argp (Depends-on): Remove 'restrict'.
6477         * modules/base64 (Depends-on): Likewise.
6478         * modules/gc (Depends-on): Likewise.
6479         * modules/getaddrinfo (Depends-on): Likewise.
6480         * modules/glob (Depends-on): Likewise.
6481         * modules/inet_ntop (Depends-on): Likewise.
6482         * modules/inet_pton (Depends-on): Likewise.
6483         * modules/memxor (Depends-on): Likewise.
6484         * modules/regex (Depends-on): Likewise.
6485         * modules/strtok_r (Depends-on): Likewise.
6486         * modules/time_r (Depends-on): Likewise.
6487
6488 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
6489
6490         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
6491         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
6492         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
6493         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
6494         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
6495         * m4/memxor.m4 (gl_MEMXOR): Likewise.
6496         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
6497         gl_C_RESTRICT replaced by AC_C_RESTRICT.
6498
6499         Merge from coreutils.
6500         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
6501         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
6502         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
6503         * m4/time_r.m4 (gl_TIME_R): Likewise.
6504
6505 2006-08-09  Karl Berry  <karl@gnu.org>
6506
6507         * config/srclist.txt: no more gettext-tools, per Bruno.
6508
6509 2006-08-08  Eric Blake  <ebb9@byu.net>
6510
6511         * modules/verror: New module.
6512         * MODULES.html.sh: Document it.
6513
6514 2006-08-08  Eric Blake  <ebb9@byu.net>
6515
6516         * lib/verror.h, lib/verror.c: New files.
6517
6518 2006-08-08  Eric Blake  <ebb9@byu.net>
6519
6520         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
6521         verror_at_line output complies with GNU Coding Standards even when
6522         file is NULL.
6523
6524 2006-08-07  Bruno Haible  <bruno@clisp.org>
6525
6526         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
6527         versions of AIX.
6528         Reported by Ralf Wildenhues.
6529
6530 2006-08-07  Bruno Haible  <bruno@clisp.org>
6531
6532         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
6533         in an AC_DEFUN. Needed so that the autoconf snippets can use
6534         AC_REQUIRE.
6535
6536 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6537
6538         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
6539         Initialize pkgdata_DATA.
6540         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
6541         overriding it.
6542
6543 2006-08-06  Eric Blake  <ebb9@byu.net>
6544
6545         * lib/error.h: Fold in some upstream changes from glibc.
6546         * lib/error.c: Likewise.
6547
6548 2006-08-04  Bruno Haible  <bruno@clisp.org>
6549
6550         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
6551         Make the mostlyclean-local rule depend on mostlyclean-generic.
6552         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
6553
6554 2006-07-31  Bruno Haible  <bruno@clisp.org>
6555
6556         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
6557         <stdlib.h>, <string.h>.
6558
6559 2006-07-30  Bruno Haible  <bruno@clisp.org>
6560
6561         * modules/readlink (License): Change to LGPL.
6562
6563 2006-07-30  Bruno Haible  <bruno@clisp.org>
6564
6565         * modules/javaversion (Makefile.am): Distribute javaversion.java and
6566         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
6567         set PKGDATADIR to point to it.
6568
6569 2006-07-30  Bruno Haible  <bruno@clisp.org>
6570
6571         * modules/csharpexec (configure.ac): Comment out macro invocation.
6572         * modules/javaexec (configure.ac): Likewise.
6573         * modules/javacomp-script (configure.ac): Likewise.
6574
6575         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
6576
6577 2006-07-30  Bruno Haible  <bruno@clisp.org>
6578
6579         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
6580         linked-list.
6581
6582 2006-07-30  Bruno Haible  <bruno@clisp.org>
6583
6584         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
6585
6586 2006-07-30  Bruno Haible  <bruno@clisp.org>
6587
6588         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
6589         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
6590         get removed.
6591
6592 2006-07-29  Bruno Haible  <bruno@clisp.org>
6593
6594         Make it possible for gnulib-tool to work with locally modified or
6595         augmented gnulib repositories.
6596         * gnulib-tool (func_usage): Document --local-dir option.
6597         (local_gnulib_dir): New variable.
6598         Handle --local-dir option.
6599         (func_lookup_file): New function.
6600         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
6601         (func_get_description, func_get_filelist, func_get_description,
6602         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
6603         func_get_automake_snippet, func_get_include_directive,
6604         func_get_license, func_get_maintainer): Use func_lookup_file.
6605         (func_import, func_create_testdir): Use func_lookup_file.
6606
6607 2006-07-29  Bruno Haible  <bruno@clisp.org>
6608
6609         * modules/setenv (Depends-on): Add unistd.
6610
6611 2006-07-29  Bruno Haible  <bruno@clisp.org>
6612
6613         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
6614
6615 2006-07-29  Bruno Haible  <bruno@clisp.org>
6616
6617         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
6618
6619 2006-07-29  Bruno Haible  <bruno@clisp.org>
6620
6621         * gnulib-tool (import, update): If there is no Makefile.am, look at
6622         aclocal.m4, instead of bailing out.
6623
6624 2006-07-29  Bruno Haible  <bruno@clisp.org>
6625
6626         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
6627         Categorize the options by when they are useful.
6628
6629 2006-07-29  Bruno Haible  <bruno@clisp.org>
6630
6631         * gnulib-tool (func_usage): Document option --no-libtool.
6632         Handle option --no-libtool.
6633         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
6634         for changed semantics of $libtool variable.
6635         (func_import): Likewise. If libtool is not used, show this through
6636         an option --no-libtool.
6637         (func_create_testdir): Update.
6638
6639 2006-07-29  Bruno Haible  <bruno@clisp.org>
6640
6641         * gnulib-tool (func_import): Extend error message about missing
6642         --doc-base.
6643
6644 2006-07-29  Bruno Haible  <bruno@clisp.org>
6645
6646         * gnulib-tool (func_import): Don't create the $docbase directory if
6647         there is no file to store there.
6648
6649 2006-07-29  Bruno Haible  <bruno@clisp.org>
6650
6651         * gnulib-tool (autoconf_minversion): If a --dir option is given and
6652         relevant, look for configure.ac there, not in the current directory.
6653         Also use a simple search for AC_PREREQ, not "autoconf --trace".
6654
6655 2006-07-29  Bruno Haible  <bruno@clisp.org>
6656
6657         * gnulib-tool (SORT): New variable.
6658         (func_usage): Undocument --assume-autoconf option.
6659         Remove --assume-autoconf option handling.
6660         (autoconf_minversion): Determine from the contents of configure.ac.
6661         (func_import): Remove autoconf_minversion handling.
6662         Suggested by Eric Blake.
6663
6664 2006-07-29  Bruno Haible  <bruno@clisp.org>
6665
6666         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
6667
6668 2006-07-29  Bruno Haible  <bruno@clisp.org>
6669
6670         * config/srclist.txt (*setenv.[ch]): Remove rules.
6671
6672 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
6673
6674         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
6675
6676 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
6677
6678         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
6679         arpa/inet.h.
6680
6681 2006-07-28  Simon Josefsson  <jas@extundo.com>
6682
6683         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
6684         * modules/inet_pton (Depends-on): Likewise.
6685
6686 2006-07-28  Simon Josefsson  <jas@extundo.com>
6687
6688         * m4/netinet_in_h.m4: New file.
6689
6690 2006-07-28  Simon Josefsson  <jas@extundo.com>
6691
6692         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
6693         #include's.
6694
6695 2006-07-28  Simon Josefsson  <jas@extundo.com>
6696
6697         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
6698         #include's.
6699
6700 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
6701
6702         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
6703         setgid on directories only if they set these bits.
6704         * lib/modechange.h: Remove obsolete comment about masks.
6705
6706 2006-07-28  Eric Blake  <ebb9@byu.net>
6707
6708         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
6709         macro expansion.
6710
6711 2006-07-28  Bruno Haible  <bruno@clisp.org>
6712
6713         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
6714
6715 2006-07-28  Bruno Haible  <bruno@clisp.org>
6716
6717         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
6718
6719 2006-07-28  Bruno Haible  <bruno@clisp.org>
6720
6721         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
6722         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
6723         Define fallbacks.
6724         Avoids link error on FreeBSD 4.x.
6725         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
6726
6727         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
6728         encoding.
6729         * lib/mbswidth.c (iswcntrl): Likewise.
6730
6731 2006-07-27  Bruno Haible  <bruno@clisp.org>
6732
6733         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
6734         test.
6735
6736 2006-07-27  Bruno Haible  <bruno@clisp.org>
6737
6738         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
6739         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
6740         defined.
6741
6742 2006-07-26  Eric Blake  <ebb9@byu.net>
6743
6744         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
6745
6746 2006-07-26  Eric Blake  <ebb9@byu.net>
6747
6748         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
6749         like mingw that lack mkstemp.
6750         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
6751         avoid compilation warning on mingw.
6752
6753 2006-07-26  Bruno Haible  <bruno@clisp.org>
6754
6755         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
6756         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
6757         INT_FAST*_MIN, INTPTR_MIN.
6758
6759 2006-07-25  Bruno Haible  <bruno@clisp.org>
6760
6761         * modules/version-etc (Depends-on): Add stdarg.
6762
6763 2006-07-25  Bruno Haible  <bruno@clisp.org>
6764
6765         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
6766         complex commands.
6767
6768 2006-07-25  Bruno Haible  <bruno@clisp.org>
6769
6770         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
6771         defined in <stdarg.h> or config.h.
6772
6773 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
6774
6775         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
6776         (gl_STDIO_SAFER): Remove.
6777
6778 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
6779
6780         * MODULES.html.sh (File stream based Input/Output):
6781         Add fopen-safer, tmpfile-safer; remove stdio-safer.
6782         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
6783         * modules/fopen-safer, modules/tmpfile-safer: New files.
6784         * modules/stdio-safer: Remove.
6785
6786 2006-07-24  Bruno Haible  <bruno@clisp.org>
6787
6788         * modules/tmpdir: New file.
6789         * MODULES.html.sh (File system functions): Add it.
6790
6791 2006-07-24  Bruno Haible  <bruno@clisp.org>
6792
6793         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
6794         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
6795
6796 2006-07-24  Bruno Haible  <bruno@clisp.org>
6797
6798         * modules/clean-temp: New file.
6799
6800 2006-07-24  Bruno Haible  <bruno@clisp.org>
6801
6802         * m4/tmpdir.m4: New file, from GNU gettext.
6803
6804 2006-07-24  Bruno Haible  <bruno@clisp.org>
6805
6806         * lib/tmpdir.h: New file, from GNU gettext.
6807         * lib/tmpdir.c: New file, from GNU gettext.
6808
6809 2006-07-24  Bruno Haible  <bruno@clisp.org>
6810
6811         * lib/clean-temp.h: New file, from GNU gettext.
6812         * lib/clean-temp.c: New file, from GNU gettext.
6813
6814 2006-07-23  Eric Blake  <ebb9@byu.net>
6815
6816         * modules/stdio-safer (Files): Add tmpfile-safer.c.
6817         (Depends-on): Add binary-io.
6818
6819 2006-07-23  Eric Blake  <ebb9@byu.net>
6820
6821         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
6822
6823 2006-07-23  Eric Blake  <ebb9@byu.net>
6824
6825         * lib/tmpfile-safer.c: New file.
6826         * lib/stdio-safer.h (fopen_safer): Add prototype.
6827         * lib/stdio--.h (tmpfile): Make safer.
6828
6829 2006-07-23  Bruno Haible  <bruno@clisp.org>
6830
6831         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
6832         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
6833         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
6834         gl_linked_remove_at): Use it.
6835
6836 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
6837         and Simon Josefsson <jas@extundo.com>
6838
6839         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
6840
6841         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
6842
6843 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
6844
6845         * modules/close-stream: New file.
6846         * modules/closeout (Description): Make it clear that it exits
6847         with a diagnostic on error.
6848         (Depends-on): Add close-stream.  Remove fpending, stdbool.
6849         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
6850
6851 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
6852
6853         * m4/close-stream.m4: New file.
6854
6855 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
6856
6857         * lib/close-stream.c, lib/close-stream.h: New files.
6858
6859 2006-07-22  Bruno Haible  <bruno@clisp.org>
6860
6861         Merge from GNU gettext 0.15.
6862
6863         2006-05-01  Bruno Haible  <bruno@clisp.org>
6864
6865                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
6866
6867         2006-07-22  Bruno Haible  <bruno@clisp.org>
6868
6869                 * modules/javaversion: New file.
6870                 * MODULES.html.sh (Java): Add javaversion.
6871
6872         2006-03-12  Bruno Haible  <bruno@clisp.org>
6873
6874                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
6875
6876         2005-12-04  Bruno Haible  <bruno@clisp.org>
6877
6878                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
6879                 (untested).
6880
6881         2006-06-21  Bruno Haible  <bruno@clisp.org>
6882
6883                 Avoid warnings from recent versions of mcs.
6884                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
6885                 -o, -L, -r any more. Use options documented since mcs-1.0
6886                 instead. Similarly for -g.
6887
6888         2005-12-04  Bruno Haible  <bruno@clisp.org>
6889
6890                 * build-aux/csharpcomp.sh.in: Suffix for resources is
6891                 .resources, not .resource.
6892
6893         2005-07-09  Bruno Haible  <bruno@clisp.org>
6894
6895                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
6896                 add a .dll suffix.
6897                 Reported by Mark Junker <mjscod@gmx.de>.
6898
6899         2006-07-22  Bruno Haible  <bruno@clisp.org>
6900
6901                 * modules/gettext: Upgrade to gettext-0.15.
6902                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
6903                 m4/visibility.m4.
6904                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
6905
6906 2006-07-22  Bruno Haible  <bruno@clisp.org>
6907
6908         Merge from GNU gettext 0.15.
6909
6910         2006-03-25  Bruno Haible  <bruno@clisp.org>
6911
6912                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
6913
6914         2006-07-21  Bruno Haible  <bruno@clisp.org>
6915
6916                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
6917                 "1.1".
6918
6919         2006-05-09  Bruno Haible  <bruno@clisp.org>
6920
6921                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
6922                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
6923                 for the conftestver execution.
6924
6925         2006-05-01  Bruno Haible  <bruno@clisp.org>
6926
6927                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
6928                 optional target-version argument. Verify that the compiler
6929                 groks source of the specified source-version, or add -source
6930                 option as necessary. Verify that the compiler produces
6931                 bytecode in the specified target-version, or add -target and
6932                 -source options as necessary. Make the result of the test
6933                 available as variable CONF_JAVAC. Also log error output in
6934                 config.log.
6935
6936         2006-03-11  Bruno Haible  <bruno@clisp.org>
6937
6938                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
6939
6940         2006-05-09  Bruno Haible  <bruno@clisp.org>
6941
6942                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
6943                 CLASSPATH_SEPARATOR to a semicolon.
6944
6945         2006-03-12  Bruno Haible  <bruno@clisp.org>
6946
6947                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
6948                 available as variable CONF_JAVA, for subsequent autoconf
6949                 tests. Also log error output in config.log.
6950
6951         2006-07-19  Bruno Haible  <bruno@clisp.org>
6952
6953                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
6954                 that getline works on glibc2 systems. Needed to avoid trouble
6955                 in relocatable.c.
6956                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
6957
6958         2005-12-04  Bruno Haible  <bruno@clisp.org>
6959
6960                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
6961                 launcher (untested).
6962
6963         2005-12-04  Bruno Haible  <bruno@clisp.org>
6964
6965                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
6966
6967         2006-07-22  Bruno Haible  <bruno@clisp.org>
6968
6969                 * gettext.m4: Update from GNU gettext-0.15.
6970                 * nls.m4: Likewise.
6971                 * po.m4: Likewise.
6972                 * inttypes-pri.m4: Likewise.
6973                 * inttypes-h.m4: Renamed from inttypes.m4.
6974                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
6975
6976 2006-07-22  Bruno Haible  <bruno@clisp.org>
6977
6978         Merge from GNU gettext 0.15.
6979
6980         2005-07-05  Bruno Haible  <bruno@clisp.org>
6981
6982                 * printf-args.c (printf_fetchargs): Work around broken
6983                 definition of wint_t on mingw.
6984
6985         2005-02-12  Bruno Haible  <bruno@clisp.org>
6986
6987                 * xallocsa.h: Add extern "C" for C++.
6988
6989         2006-05-17  Bruno Haible  <bruno@clisp.org>
6990
6991                 Cygwin portability.
6992                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
6993
6994         2006-04-30  Bruno Haible  <bruno@clisp.org>
6995
6996                 * progreloc.c: Include <mach-o/dyld.h> if available.
6997                 (find_executable): Use _NSGetExecutablePath when possible.
6998
6999         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
7000
7001                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
7002                 function.
7003
7004         2005-12-29  Bruno Haible  <bruno@clisp.org>
7005
7006                 * progreloc.c (set_program_name_and_installdir): Fix
7007                 compilation error.
7008
7009         2005-12-04  Bruno Haible  <bruno@clisp.org>
7010
7011                 Cygwin portability.
7012                 * progreloc.c: Include <windows.h> also on Cygwin.
7013                 (find_executable): Add support for Cygwin.
7014                 (set_program_name_and_installdir): Handle also platforms with
7015                 nonempty EXEEXT.
7016
7017         2006-07-11  Bruno Haible  <bruno@clisp.org>
7018
7019                 * javacomp.c: Fix a comment.
7020                 Reported by Jim Meyering.
7021
7022         2006-04-30  Bruno Haible  <bruno@clisp.org>
7023
7024                 * javacomp.h (compile_java_class): Add source_version,
7025                 target_version arguments.
7026                 * javacomp.c: Rewritten to choose only a compiler that
7027                 respects the specified source_version and target_version.
7028
7029         2006-06-27  Bruno Haible  <bruno@clisp.org>
7030
7031                 Assume correct S_ISDIR macro.
7032                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
7033
7034         2006-07-22  Bruno Haible  <bruno@clisp.org>
7035
7036                 * javaversion.h: New file, from GNU gettext.
7037                 * javaversion.c: New file, from GNU gettext.
7038                 * javaversion.java: New file, from GNU gettext.
7039                 * javaversion.class: New file, from GNU gettext.
7040
7041         2006-05-17  Bruno Haible  <bruno@clisp.org>
7042
7043                 Cygwin portability.
7044                 * javaexec.c (execute_java_class): Test for jview program
7045                 also on Cygwin.
7046
7047         2006-04-09  Bruno Haible  <bruno@clisp.org>
7048
7049                 * fatal-signal.c: Don't include string.h.
7050                 (at_fatal_signal): Use a copying loop instead of memcpy.
7051
7052         2005-12-04  Bruno Haible  <bruno@clisp.org>
7053
7054                 * csharpexec.c: Add support for 'clix' launcher (untested).
7055                 (execute_csharp_using_sscli): New function.
7056                 (execute_csharp_program): Call it.
7057
7058         2006-06-21  Bruno Haible  <bruno@clisp.org>
7059
7060                 Avoid warnings from recent versions of mcs.
7061                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
7062                 -o, -L, -r any more. Use options documented since mcs-1.0
7063                 instead. Similarly for -g.
7064
7065         2005-07-09  Bruno Haible  <bruno@clisp.org>
7066
7067                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
7068                 add a .dll suffix.
7069                 Reported by Mark Junker <mjscod@gmx.de>.
7070
7071         2006-06-17  Bruno Haible  <bruno@clisp.org>
7072
7073                 * config.charset: Update for NetBSD 3.0.
7074
7075         2006-05-17  Bruno Haible  <bruno@clisp.org>
7076
7077                 Cygwin portability.
7078                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
7079
7080         2006-05-16  Bruno Haible  <bruno@clisp.org>
7081
7082                 * localcharset.c [CYGWIN]: Include <windows.h>.
7083                 (get_charset_aliases): For Cygwin, return the same CPxxx
7084                 aliases list as under WIN32.
7085                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
7086                 the environment variables. Fall back to GetACP().
7087
7088         2006-04-05  Bruno Haible  <bruno@clisp.org>
7089
7090                 * config.charset: Update Juan Manuel Guerrero's address.
7091
7092         2005-02-12  Bruno Haible  <bruno@clisp.org>
7093
7094                 * allocsa.h: Add extern "C" for C++.
7095
7096         2005-02-10  Bruno Haible  <bruno@clisp.org>
7097
7098                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
7099                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
7100
7101         2006-07-22  Bruno Haible  <bruno@clisp.org>
7102
7103                 * gettext.h: Update to GNU gettext-0.15.
7104
7105 2006-07-22  Bruno Haible  <bruno@clisp.org>
7106
7107         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
7108         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
7109         lib-prefix.m4, longdouble.m4, ssize_t.m4.
7110
7111 2006-07-21  Eric Blake  <ebb9@byu.net>
7112
7113         * modules/stdlib-safer: New file.
7114         * MODULES.html.sh (File stream based Input/Output): Add
7115         stdlib-safer.
7116
7117 2006-07-21  Eric Blake  <ebb9@byu.net>
7118
7119         * lib/stdlib-safer.h: New file from coreutils, required by
7120         stdlib--.h.
7121
7122 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
7123
7124         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
7125
7126 2006-07-20  Bruno Haible  <bruno@clisp.org>
7127
7128         * gnulib-tool: Recognize new option --assume-autoconf.
7129         (autoconf_minversion): New variable.
7130         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
7131
7132 2006-07-20  Bruno Haible  <bruno@clisp.org>
7133
7134         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
7135
7136 2006-07-19  Derek R. Price  <derek@ximbiot.com>
7137
7138         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
7139         Reindent and repaginate.
7140
7141 2006-07-19  Derek Price  <derek@ximbiot.com>
7142
7143         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
7144         Correct grammar.
7145
7146 2006-07-17  Bruno Haible  <bruno@clisp.org>
7147
7148         * modules/list: New file.
7149         * modules/array-list: New file.
7150         * modules/carray-list, modules/carray-list-tests: New files.
7151         * modules/linked-list, modules/linked-list-tests: New files.
7152         * modules/avltree-list, modules/avltree-list-tests: New files.
7153         * modules/rbtree-list, modules/rbtree-list-tests: New files.
7154         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
7155         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
7156         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
7157         * modules/oset: New file.
7158         * modules/array-oset: New file.
7159         * modules/avltree-oset, modules/avltree-oset-tests: New files.
7160         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
7161         * tests/test-carray_list.c: New file.
7162         * tests/test-linked_list.c: New file.
7163         * tests/test-avltree_list.c: New file.
7164         * tests/test-rbtree_list.c: New file.
7165         * tests/test-linkedhash_list.c: New file.
7166         * tests/test-avltreehash_list.c: New file.
7167         * tests/test-rbtreehash_list.c: New file.
7168         * tests/test-avltree_oset.c: New file.
7169         * tests/test-rbtree_oset.c: New file.
7170         * MODULES.html.sh (Container data structures): New section.
7171
7172 2006-07-17  Bruno Haible  <bruno@clisp.org>
7173
7174         * m4/gl_list.m4: New file.
7175
7176 2006-07-17  Bruno Haible  <bruno@clisp.org>
7177
7178         * lib/gl_list.h: New file.
7179         * lib/gl_list.c: New file.
7180         * lib/gl_array_list.h: New file.
7181         * lib/gl_array_list.c: New file.
7182         * lib/gl_carray_list.h: New file.
7183         * lib/gl_carray_list.c: New file.
7184         * lib/gl_linked_list.h: New file.
7185         * lib/gl_linked_list.c: New file.
7186         * lib/gl_anylinked_list1.h: New file.
7187         * lib/gl_anylinked_list2.h: New file.
7188         * lib/gl_avltree_list.h: New file.
7189         * lib/gl_avltree_list.c: New file.
7190         * lib/gl_anyavltree_list1.h: New file.
7191         * lib/gl_anyavltree_list2.h: New file.
7192         * lib/gl_rbtree_list.h: New file.
7193         * lib/gl_rbtree_list.c: New file.
7194         * lib/gl_anyrbtree_list1.h: New file.
7195         * lib/gl_anyrbtree_list2.h: New file.
7196         * lib/gl_anytree_list1.h: New file.
7197         * lib/gl_anytree_list2.h: New file.
7198         * lib/gl_linkedhash_list.h: New file.
7199         * lib/gl_linkedhash_list.c: New file.
7200         * lib/gl_anyhash_list1.h: New file.
7201         * lib/gl_anyhash_list2.h: New file.
7202         * lib/gl_avltreehash_list.h: New file.
7203         * lib/gl_avltreehash_list.c: New file.
7204         * lib/gl_rbtreehash_list.h: New file.
7205         * lib/gl_rbtreehash_list.c: New file.
7206         * lib/gl_anytreehash_list1.h: New file.
7207         * lib/gl_anytreehash_list2.h: New file.
7208
7209         * lib/gl_oset.h: New file.
7210         * lib/gl_oset.c: New file.
7211         * lib/gl_array_oset.h: New file.
7212         * lib/gl_array_oset.c: New file.
7213         * lib/gl_avltree_oset.h: New file.
7214         * lib/gl_avltree_oset.c: New file.
7215         * lib/gl_rbtree_oset.h: New file.
7216         * lib/gl_rbtree_oset.c: New file.
7217         * lib/gl_anytree_oset.h: New file.
7218
7219 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
7220
7221         * m4/mkancesdirs.m4: New file.
7222         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
7223         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
7224         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
7225         it.
7226
7227 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
7228
7229         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
7230         * lib/mkancesdirs.h: New files.
7231         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
7232         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
7233         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
7234         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
7235         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
7236         callers changed.  Revamp internals significantly, by not
7237         attempting to create directories that are temporarily more
7238         permissive than the final results.  Do not attempt to use
7239         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
7240         This removes some race conditions, fixes some bugs, and simplifies
7241         things.  Use new dirchownmod function to do owner and mode changes.
7242         * lib/mkdir-p.h: Likewise.
7243         * lib/modechange.c (octal_to_mode): New function.
7244         (struct mode_change): New member mentioned.
7245         (make_node_op_equals): New arg mentioned.  All callers changed.
7246         (mode_compile): Keep track of which mode bits the user has explicitly
7247         mentioned.
7248         (mode_adjust): New arg DIR, so that we implement the X op correctly.
7249         New arg PMODE_BITS, to keep track of which mode bits the user
7250         mentioned; it treats S_ISUID and S_ISGID speciall.
7251         All callers changed.
7252         * lib/modechange.h: Likewise.
7253
7254 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
7255
7256         * MODULES.html.sh: Add mkancestors.
7257         * modules/mkancesdirs: New module.
7258         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
7259         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
7260         The chdir-safer and afs files are now orphans; I'll remove them
7261         unless someone speaks up.
7262         Add lib/dirchownmod.c, lib/dirchownmod.h.
7263         (Depends-on): Remove alloca, chown, save-cwd, dirname.
7264         Add lchown, mkancesdirs.
7265         (Maintainer): Add self.
7266
7267 2006-07-15  Karl Berry  <karl@gnu.org>
7268
7269         * gnulib-tool: help message wording/arrangement.
7270
7271 2006-07-14  Simon Josefsson  <jas@extundo.com>
7272
7273         * doc/gnulib.texi (Libtool and Windows): New section.
7274
7275 2006-07-12  Simon Josefsson  <jas@extundo.com>
7276
7277         * modules/gendocs (License): Fix license, approved by Karl.
7278
7279 2006-07-12  Eric Blake  <ebb9@byu.net>
7280
7281         * MODULES.html.sh: Add gendocs.
7282
7283 2006-07-11  Eric Blake  <ebb9@byu.net>
7284
7285         * modules/fdl: New module, to install doc/fdl.texi.
7286         * MODULES.html.sh: Add new section for documentation modules.
7287         * gnulib-tool: Avoid space-tab.
7288         (--doc-base): New option, to manage files from doc.
7289
7290 2006-07-11  Eric Blake  <ebb9@byu.net>
7291
7292         * m4/absolute-header.m4: Fix comments to match recent change.
7293
7294 2006-07-11  Eric Blake  <ebb9@byu.net>
7295
7296         * gnulib-tool: List --doc-base before --tests-base.
7297
7298 2006-07-11  Derek R. Price  <derek@ximbiot.com>
7299
7300         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
7301
7302 2006-07-11  Bruno Haible  <bruno@clisp.org>
7303
7304         * README: Mention where to put documentation.
7305
7306 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7307
7308         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
7309
7310 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
7311
7312         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
7313         to stdint.m4.
7314
7315 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
7316
7317         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
7318         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
7319         "no/such/file/stdint.h" when there is no such file, so that
7320         the resulting C code can be parsed by dodgy compilers.
7321         Problems reported by Bob Proulx.
7322
7323 2006-07-10  Derek R. Price  <derek@ximbiot.com>
7324
7325         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
7326         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
7327         macros into the GNU _D_EXACT_NAMLEN.
7328         * lib/savedir.c:  Likewise.
7329         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
7330
7331 2006-07-10  Derek R. Price  <derek@ximbiot.com>
7332         and Paul Eggert  <eggert@cs.ucla.edu>
7333
7334         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
7335         * m4/savedir.m4:
7336         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
7337         macros into the GNU _D_EXACT_NAMLEN.
7338
7339 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
7340
7341         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
7342         around the absolute name, to work around a problem with the HP-UX
7343         11.23 native C compiler, reported by Bob Proulx.
7344
7345 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
7346
7347         * doc/maintain.texi, make-stds.texi: Sync from
7348         <http://savannah.gnu.org/projects/gnustandards>.
7349
7350 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
7351
7352         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
7353
7354 2006-07-09  Jim Meyering  <jim@meyering.net>
7355
7356         * m4/glob.m4: Remove a doubled word in a comment.
7357
7358 2006-07-09  Jim Meyering  <jim@meyering.net>
7359
7360         * lib/argp-pv.c: Remove a doubled word in a comment.
7361         * lib/check-version.c (check_version): Likewise.
7362         * lib/javacomp.c (compile_java_class): Likewise.
7363
7364 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
7365
7366         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
7367         for the benefit of people using Autoconf 2.60.  If you want to
7368         support older Autoconf versions you can copy m4/onceonly_2_57.m4
7369         (or m4/onceonly.m4, if pre-2.57) manually.
7370
7371 2006-07-08  Jim Meyering  <jim@meyering.net>
7372
7373         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
7374         comment.
7375         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
7376         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
7377         comment.
7378
7379 2006-07-08  Jim Meyering  <jim@meyering.net>
7380
7381         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
7382
7383 2006-07-07  Simon Josefsson  <jas@extundo.com>
7384
7385         * tests/test-crc.c: Change expected crc value, the test vector
7386         were probably computed using the old broken crc.c?
7387
7388 2006-07-06  Simon Josefsson  <jas@extundo.com>
7389
7390         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
7391         now the canonical place for the M4 file).
7392
7393         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
7394         from the sys_socket dependency now.
7395
7396         * modules/inet_pton (Files): Ditto.
7397
7398         * modules/inet_ntop (Files): Ditto.
7399
7400 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
7401
7402         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
7403         not gl_PREREQ_GETUSERSHELL.
7404
7405 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7406
7407         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
7408         with only one argument, for Autoconf 2.60.
7409         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
7410         expand to nothing, so add a shell command to avoid syntax error.
7411         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
7412
7413 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7414
7415         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
7416
7417 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
7418
7419         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
7420         no longer needed.  Check for isblank decl.
7421         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
7422         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
7423         of existence.
7424
7425 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
7426
7427         * lib/getloadavg.c: Use __VMS, not VMS.
7428         * lib/getopt.c: Likewise.
7429         * lib/getpagesize.h: Likewise.
7430         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
7431         and probably does not work.
7432
7433 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
7434
7435         * lib/.cppi-disable: Add wcwidth.
7436         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
7437         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
7438         (ISGRAPH): Remove.  All uses changed to isgraph.
7439         (FOLD) [!defined _LIBC]: Remove special case.
7440         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
7441         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
7442         HAVE_ISBLANK.
7443         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
7444         case.
7445
7446 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
7447
7448         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
7449         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
7450         brackets.  Other minor changes to suppress some compiler
7451         warnings.
7452
7453 2006-07-06  Derek R. Price  <derek@ximbiot.com>
7454         and Paul Eggert  <eggert@cs.ucla.edu>
7455
7456         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
7457         of invoking obsolescent AC_HEADER_DIRENT macro.
7458         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
7459         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
7460         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
7461         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
7462         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
7463         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
7464         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
7465         * m4/readdir.m4: Remove; no longer needed.
7466
7467 2006-07-06  Derek R. Price  <derek@ximbiot.com>
7468         and Paul Eggert  <eggert@cs.ucla.edu>
7469
7470         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
7471         Don't worry about this obsolete case any more.
7472         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
7473         directories.
7474         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
7475         worry about this obsolete case any more.
7476         * lib/fts.c: Likewise.
7477         * lib/getcwd.c: Likewise.
7478         * lib/glob.h: Likewise.
7479         * lib/savedir.c: Likewise.
7480
7481 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
7482
7483         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
7484         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
7485         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
7486         needed.
7487         All uses removed.
7488         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
7489         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
7490         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
7491         needed.
7492         * m4/getdate.m4 (gl_GETDATE): Likewise.
7493         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
7494         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
7495         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
7496         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
7497         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
7498         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
7499         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
7500         needed.
7501
7502 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
7503
7504         * lib/memcasecmp.c: Include <limits.h>.
7505         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
7506         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
7507         Don't assume isdigit succeeds only on '0' through '9'.
7508
7509 2006-07-05  Eric Blake  <ebb9@byu.net>
7510
7511         * modules/getaddrinfo (Depends-on): Add snprintf.
7512
7513 2006-07-05  Eric Blake  <ebb9@byu.net>
7514
7515         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
7516         to avoid 'header present but could not be compiled' on cygwin.
7517
7518 2006-07-05  Eric Blake  <ebb9@byu.net>
7519
7520         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
7521         missing from netdb.h.
7522         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
7523
7524 2006-07-05  Derek R. Price  <derek@ximbiot.com>
7525
7526         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
7527         no longer needed.
7528         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
7529         * m4/getdate.m4 (gl_GETDATE): Likewise.
7530         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
7531         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
7532         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
7533         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
7534         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
7535
7536 2006-07-05  Derek R. Price  <derek@ximbiot.com>
7537
7538         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
7539         All uses of is_space replaced by isspace.
7540         * lib/exit.h: Don't talk about STDC_HEADERS.
7541         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
7542         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
7543         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
7544         replaced by isprint etc.
7545         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
7546         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
7547         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
7548         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
7549         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
7550         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
7551
7552 2006-07-05  Bruno Haible  <bruno@clisp.org>
7553
7554         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
7555         the function exists, before testing against AIX.
7556         Reported by Martin Lambers <marlam@marlam.de>.
7557
7558 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
7559
7560         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
7561         From Mark D. Baushke.
7562
7563 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
7564
7565         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
7566         to the absolute name, not just one, to bypass Sun C 5.8's
7567         "warning: #include of /usr/include/... may be non-portable".
7568
7569 2006-07-04  Eric Blake  <ebb9@byu.net>
7570
7571         * modules/dirname-tests: New test module.
7572         * tests/test-dirname.c: New file, replacing dirname.c
7573         TEST_DIRNAME section that was recently deleted.
7574
7575 2006-07-04  Bruno Haible  <bruno@clisp.org>
7576
7577         Assume ANSI C header files and <ctype.h> functions.
7578         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
7579         (mbsnwidth): Use isprint, iscntrl instead.
7580
7581 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
7582
7583         Merge from coreutils.
7584         * MODULES.html.sh: Add xstrtold.
7585         * modules/xstrtold: New file.
7586         * modules/cycle-check (Files): Add lib/same-inode.h.
7587         * modules/dirname (Files): Add m4/double-slash-root.m4.
7588         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
7589         * modules/mkdir-p (Files): Add lib/same-inode.h.
7590         * modules/same (Files): Add lib/same-inode.h.
7591
7592 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
7593
7594         * m4/absolute-header.m4: Renamed from full-header-path.m4.
7595         This is to keep the terminology clean; POSIX talks about
7596         "absolute pathnames", not "full pathnames", but the GNU
7597         Coding Standards say to use "path" for something else;
7598         so use "absolute" to keep both sides happy.
7599         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
7600         Set gl_absolute_header, not gl_full_header_path.
7601         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
7602         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
7603         All uses changed.
7604
7605         Merge from coreutils.
7606
7607         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
7608
7609         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
7610         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
7611         want to require the building of c-strtod.o.
7612         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
7613         needs -lm directly.
7614         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
7615
7616         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
7617
7618         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
7619         --as-needed option if available.  Problem reported by Albert Chin in
7620         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
7621         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
7622         cc merely issues a bunch of annoying warnings for --as-needed
7623         (this problem was reported by Bob Proulx).  Also, try linking with
7624         -lm to detect a bug in binutils 2.16 (this problem was reported
7625         by Ralf Wildenhues).
7626
7627         2006-06-18  Jim Meyering  <jim@meyering.net>
7628
7629         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
7630         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
7631         macro.
7632         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
7633         also check for glibc-2.4's abort-inducing bug.
7634
7635         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
7636         Low-probability clean-up should be to use rmdir to get rid of
7637         the just-created directory, not unlink.
7638
7639         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
7640         configure fail, and request a bug report to inform us about it.
7641         Add a comment that, barring reports to the contrary, in 2007 we'll
7642         assume ftruncate is universally available.
7643
7644         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
7645
7646         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
7647
7648         2006-03-12  Jim Meyering  <jim@meyering.net>
7649
7650         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
7651         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
7652         * m4/same.m4 (gl_SAME): Likewise.
7653         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
7654
7655         2006-03-11  Eric Blake  <ebb9@byu.net>
7656
7657         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
7658         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
7659         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
7660         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
7661
7662 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
7663
7664         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
7665         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
7666         reported by Mark D. Baushke, one in
7667         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
7668
7669         Merge from coreutils.
7670
7671         * lib/.cppi-disable: Add stdint_.h.
7672         * lib/.cvsignore: Add stdint.h.
7673
7674         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
7675
7676         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
7677         both double and long double versions.
7678         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
7679         * lib/xstrtold.c: New file.
7680         * lib/xstrtod.h (xstrtold): New decl.
7681
7682         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
7683
7684         * lib/filemode.c (setst): Remove.
7685         (strmode): Rewrite to avoid setst.  This makes the code shorter,
7686         (arguably) clearer, and the generated code is a bit smaller on my
7687         Debian GNU/Linux stable x86 host.
7688
7689         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
7690
7691         * lib/filemode.c: Include "filemode.h" first, to test the interface.
7692         Assume that filemode.h includes sys/types.h and sys/stat.h.
7693         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
7694         (ftypelet): Reorder to put common cases first, for efficiency.
7695         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
7696         to do 'M'.
7697         (strmode): Renamed from mode_string, and now stores 12 bytes instead
7698         of 10, for compatibility with FreeBSD.  All callers changed.
7699         (filemodestring): Now stores 12 bytes instead of 10, and sets file
7700         types that can't be deduced solely from st_mode.  First arg is now a
7701         const pointer.
7702         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
7703         (strmode): Renamed from mode_string.
7704         (filemodestring): New decl.
7705         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
7706         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
7707         needed.
7708         (S_ISPORT, S_ISWHT): New macros, if not already defined.
7709
7710         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
7711
7712         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
7713         fsusage.h now does that.  Include fsusage.h first, to test interface.
7714         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
7715         at most one method (the old code could have generated decls that
7716         didn't conform to C89, not that this was ever exercised).
7717         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
7718
7719         2006-03-19  Jim Meyering  <jim@meyering.net>
7720
7721         Work even in a chroot where d_ino values for entries in "/"
7722         don't match the stat.st_ino values for the same names.
7723         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
7724         number, iterate through all entries again, using lstat instead.
7725         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
7726         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
7727
7728         * lib/getcwd.c (__getcwd): Clarify a comment.
7729         Use memcpy in place of a call to strcpy.
7730
7731         2006-03-12  Jim Meyering  <jim@meyering.net>
7732
7733         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
7734         matches that of the current directory (which we're about to chdir ".."
7735         out of), then save the dev-ino of the parent, instead.
7736
7737         * lib/same-inode.h (SAME_INODE): New file/macro.
7738         * lib/chdir-safer.c (SAME_INODE): Remove definition.
7739         Include "same-inode.h", instead.
7740         * lib/same.c: Likewise.
7741         * lib/cycle-check.h: Include "same-inode.h".
7742         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
7743         * lib/cycle-check.c (SAME_INODE): Remove definition.
7744         * lib/root-dev-ino.h: Include "same-inode.h".
7745
7746         2006-03-11  Eric Blake  <ebb9@byu.net>
7747
7748         * lib/same.c (same_name): s/base_name/last_component/
7749         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
7750         * lib/filenamecat.c (file_name_concat): Likewise.
7751
7752         2006-03-11  Eric Blake  <ebb9@byu.net>,
7753                     Paul Eggert  <eggert@cs.ucla.edu>
7754
7755         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
7756         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
7757         drive prefix.
7758         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
7759         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
7760         (last_component): New method.
7761         * lib/dirname.c (dir_len): Determine when drive letters need a
7762         subsequent slash.  Preserve // when it is special.
7763         (dir_name): Don't append dot when drive letter is absolute.
7764         [TEST_DIRNAME]: Move into a full-blown gnulib test.
7765         * lib/basename.c (base_name): New semantics - malloc the result.
7766         Preserve // when it is special.  Preserve relative files that look
7767         like drive letters.
7768         (base_len): Preserve // when it is special.
7769         (last_component): New method, similar to old base_name semantics.
7770         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
7771         base_name.  Strip redundant slashes from ///.
7772
7773 2006-07-03  Jim Meyering  <jim@meyering.net>
7774
7775         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
7776         macro is used before the first cycle_check call.
7777
7778 2006-07-03  Eric Blake  <ebb9@byu.net>
7779
7780         * modules/dirname (Depends-on): Add xstrndup.
7781
7782 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
7783
7784         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
7785         test cases, so that config.log is a bit easier to follow.
7786
7787 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
7788
7789         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
7790         both are 64 bits, since this seems to be the tradition, and this
7791         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
7792         we ever run into a host that prefers long long to long in this
7793         case, we'll need another configure-time test.  Problem reported by
7794         Jim Meyering.
7795
7796 2006-07-02  Eric Blake  <ebb9@byu.net>
7797
7798         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
7799
7800 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
7801
7802         * modules/inttypes (Depends-on): No longer depends on stdint.
7803         * modules/stdint (Description): Say more about assumptions.
7804         Say that the fast types might differ.  Say macros are used.
7805         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
7806         (Makefile.am): Revise list of substituted symbols to match
7807         new stdint.m4.
7808         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
7809         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
7810         * tests/test-stdint.c (verify_same_types)
7811         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
7812         the code conforms to C99/C89.
7813         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
7814         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
7815
7816 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
7817
7818         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
7819         but fix a bug, by requiring at least 64 bits.
7820         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
7821         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
7822         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
7823         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
7824
7825         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
7826         changes.  Make 2.59 a prerequisite.  Check and substitute for
7827         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
7828         inttypes.h.  Do not use special include files; just use the
7829         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
7830         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
7831         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
7832         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
7833         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
7834         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
7835         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
7836         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
7837         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
7838         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
7839         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
7840         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
7841         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
7842         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
7843         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
7844         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
7845         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
7846         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
7847         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
7848         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
7849         WINT_MAX.  Check for C99 conformance more strictly, by detecting
7850         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
7851         not check for things that C99 does not require, e.g., int8_t.  If
7852         a test isn't needed unless <stdint.h> isn't working, and is
7853         unlikely to be needed for any other reason, then don't do it
7854         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
7855         size_t, since we assume C89 freestanding at least.  Do not check
7856         for sig_atomic_t, wchar_t, or wint_t, since the code now does
7857         the right thing even if the types are not defined.  Instead use:
7858         (gl_STDINT_TYPE_PROPERTIES): New macro.
7859         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
7860         testing whether <sys/types.h> clashes, as Autoconf does this for
7861         us now.  All uses removed.
7862         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
7863         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
7864         (gl_CHECK_TYPE_SAME):
7865         Remove; no longer needed.
7866         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
7867         exists, since we'll return 0 anyway in that case.
7868         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
7869
7870 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
7871
7872         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
7873         possible collision with system files.
7874         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
7875         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
7876         WCHAR_MIN and WCHAR_MAX in this case.
7877         (<stddef.h>): Do not include; no longer needed.
7878         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
7879         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
7880         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
7881         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
7882         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
7883         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
7884         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
7885         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
7886         !defined(__c99))]: Include in this case too, since it's harmless
7887         now.
7888         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
7889         dangerous to do so.
7890         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
7891         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
7892         (_STDINT_MIN, _STDINT_MAX): New macros.
7893         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
7894         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
7895         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
7896         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
7897         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
7898         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
7899         macros, not typedefs; this simplifies things quite a bit.
7900         Use long int for all types narrower than int64_t.
7901         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
7902         Define in terms of long long int or int64_t or long int,
7903         not int64_t or int32_t.  This saves some compile-time testing.
7904         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
7905         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
7906         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
7907         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
7908         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
7909         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
7910         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
7911         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
7912         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
7913         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
7914         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
7915         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
7916         undef any previous version and define our own version, for
7917         simplicity and consistency with the new macros for types.
7918         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
7919         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
7920         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
7921         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
7922         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
7923         @WINT_T_SUFFIX@ to keep things simple here.
7924         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
7925         Simplify by assuming typical 8/16/32/64 host, since we're
7926         already doing that elsewhere anyway.
7927         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
7928         and assume long long int is 64 bits if available.  This
7929         speeds up 'configure'.
7930
7931 2006-07-01  Eric Blake  <ebb9@byu.net>
7932
7933         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
7934         Reported by Andreas Buening.
7935
7936 2006-07-01  Eric Blake  <ebb9@byu.net>
7937
7938         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
7939
7940 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
7941
7942         * lib/getaddrinfo.c: fixed typo
7943
7944 2006-06-29  Jim Meyering  <jim@meyering.net>
7945
7946         * modules/strftime (Maintainer): Add my name, since with the
7947         FPRINTFTIME changes strftime.c has forked from glibc.
7948
7949 2006-06-29  Eric Blake  <ebb9@byu.net>
7950
7951         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
7952
7953 2006-06-29  Eric Blake  <ebb9@byu.net>
7954
7955         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
7956
7957 2006-06-29  Eric Blake  <ebb9@byu.net>
7958
7959         * lib/stat_.h: New file.
7960
7961 2006-06-29  Eric Blake  <ebb9@byu.net>
7962
7963         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
7964         unused static function.
7965
7966 2006-06-29  Eric Blake  <ebb9@byu.net>
7967
7968         * doc/functions.texi (Function Portability): Document missing lstat
7969         on mingw.
7970
7971 2006-06-29  Eric Blake  <ebb9@byu.net>
7972
7973         * MODULES.html.sh: Add sys_stat.
7974         * modules/sys_stat: New module.
7975         * modules/mkstemp (Depends-on): Add sys_stat.
7976
7977 2006-06-29  Derek R. Price  <derek@ximbiot.com>
7978
7979         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
7980
7981 2006-06-29  Derek R. Price  <derek@ximbiot.com>
7982
7983         * m4/c-bs-a.m4: Removed.
7984
7985 2006-06-29  Derek R. Price  <derek@ximbiot.com>
7986
7987         * lib/strftime.c: Assume strftime() exists.
7988
7989 2006-06-29  Derek Price  <derek@ximbiot.com>
7990
7991         * modules/c-bs-a: Removed - \a is C89.
7992         * MODULES.html.sh: Remove c-bs-a.
7993
7994 2006-06-29  Bruno Haible  <bruno@clisp.org>
7995
7996         * modules/wcwidth (License): Change to LGPL.
7997
7998 2006-06-28  Simon Josefsson  <jas@extundo.com>
7999
8000         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
8001         on _WIN32.
8002
8003         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
8004         getnameinfo.
8005
8006 2006-06-28  Simon Josefsson  <jas@extundo.com>
8007
8008         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
8009
8010 2006-06-28  Simon Josefsson  <jas@extundo.com>
8011
8012         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
8013         functions there.  It will succeed on Windows XP, but on Windows
8014         2000 and (presumably) earlier, it will fail, and use the internal
8015         re-implementation.
8016         (use_win32_p): New function.
8017         (getaddrinfo): Use strtoul on servname, to support numeric ports.
8018         Support AI_NUMERICSERV to disable getservbyname.
8019         (getnameinfo): New function, only supports
8020         NI_NUMERICHOST|NI_NUMERICSERV for now.
8021
8022         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
8023         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
8024         getnameinfo.
8025
8026 2006-06-28  Eric Blake  <ebb9@byu.net>
8027
8028         * modules/wcwidth: New file.
8029         * modules/mbchar (Depends-on): Add wcwidth.
8030         * modules/mbswidth (Depends-on): Add wcwidth.
8031         * MODULES.html.sh: Add wcwidth.
8032
8033 2006-06-28  Eric Blake  <ebb9@byu.net>
8034
8035         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
8036         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
8037
8038 2006-06-28  Eric Blake  <ebb9@byu.net>
8039
8040         * lib/xvasprintf.h: Fix comments.
8041
8042 2006-06-28  Eric Blake  <ebb9@byu.net>
8043
8044         * lib/mbchar.h (wcwidth): Include wcwidth.h.
8045         * lib/mbswidth.c (wcwidth): Move from here...
8046         * lib/wcwidth.h: ...to this new file.
8047
8048 2006-06-28  Derek R. Price  <derek@ximbiot.com>
8049
8050         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
8051
8052         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
8053         it's obsolete.
8054         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
8055
8056 2006-06-28  Derek R. Price  <derek@ximbiot.com>
8057
8058         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
8059         Autoconf 2.60 says this stuff was obsolete.
8060
8061 2006-06-28  Bruno Haible  <bruno@clisp.org>
8062
8063         * modules/wcwidth (Files): Add m4/wchar_t.m4.
8064
8065 2006-06-28  Bruno Haible  <bruno@clisp.org>
8066
8067         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
8068         gt_TYPE_WCHAR_T.
8069
8070 2006-06-28  Bruno Haible  <bruno@clisp.org>
8071
8072         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
8073         declaration for wcwidth.
8074         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
8075
8076 2006-06-28  Bruno Haible  <bruno@clisp.org>
8077
8078         * lib/mkdtemp.c [MINGW]: Include <io.h>.
8079         (mkdir): Define using _mkdir.
8080
8081 2006-06-28  Bruno Haible  <bruno@clisp.org>
8082
8083         * lib/getaddrinfo.h: Fix POSIX URL.
8084         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
8085         _WIN32.
8086         (use_win32_p): Make static.
8087         (getaddrinfo): Reject service name if it is empty or does not consist
8088         solely of decimal digits, or if its value is > 65535.
8089         (getnameinfo): Remove useless casts.
8090
8091 2006-06-27  Simon Josefsson  <jas@extundo.com>
8092
8093         * modules/sys_select: New file, suggested by Bruno Haible, Paul
8094         Eggert and Martin Lambers.
8095
8096 2006-06-27  Simon Josefsson  <jas@extundo.com>
8097
8098         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
8099         Eggert and Martin Lambers.
8100
8101 2006-06-27  Bruno Haible  <bruno@clisp.org>
8102
8103         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
8104         result to 0, not to empty.
8105         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
8106
8107 2006-06-27  Bruno Haible  <bruno@clisp.org>
8108
8109         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
8110
8111 2006-06-26  Simon Josefsson  <jas@extundo.com>
8112
8113         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
8114         present.
8115
8116 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
8117
8118         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
8119         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
8120         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
8121
8122 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
8123
8124         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
8125
8126 2006-06-26  Bruno Haible  <bruno@clisp.org>
8127
8128         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
8129
8130 2006-06-26  Bruno Haible  <bruno@clisp.org>
8131
8132         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
8133
8134 2006-06-26  Bruno Haible  <bruno@clisp.org>
8135
8136         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
8137         SGI C compiler in pre-C99 mode.
8138         Suggested by Mark D. Baushke and Larry Jones.
8139
8140 2006-06-26  Bruno Haible  <bruno@clisp.org>
8141
8142         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
8143         WCHAR_MAX.
8144         Reported by Mark D. Baushke and Larry Jones.
8145
8146 2006-06-26  Bruno Haible  <bruno@clisp.org>
8147
8148         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
8149         in pre-C99 mode.
8150         Suggested by Mark D. Baushke and Larry Jones.
8151
8152 2006-06-23  Simon Josefsson  <jas@extundo.com>
8153             Bruno Haible  <bruno@clisp.org>
8154
8155         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
8156         Emit mostlyclean-local rule.
8157         (func_emit_tests_Makefile_am): Likewise.
8158         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
8159
8160 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
8161
8162         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
8163
8164 2006-06-23  Bruno Haible  <bruno@clisp.org>
8165
8166         * tests/test-stdint.c: Update to match ISO C 99 Technical
8167         Corrigendum 1.
8168
8169 2006-06-23  Bruno Haible  <bruno@clisp.org>
8170
8171         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
8172
8173 2006-06-23  Bruno Haible  <bruno@clisp.org>
8174
8175         * lib/stdint_.h: Treat IRIX like OpenBSD.
8176
8177 2006-06-23  Bruno Haible  <bruno@clisp.org>
8178
8179         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
8180         ISO C 99 Technical Corrigendum 1.
8181
8182 2006-06-22  Simon Josefsson  <jas@extundo.com>
8183
8184         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
8185         MinGW.
8186
8187 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
8188
8189         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
8190         needed.  Some compiler complained about some of them.  Problem reported
8191         by Larry Jones in
8192         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
8193
8194 2006-06-21  Simon Josefsson  <jas@extundo.com>
8195
8196         * tests/test-getaddrinfo.c: New file.
8197
8198         * modules/getaddrinfo-tests: New file.
8199
8200         * MODULES.html.sh: Add inet_pton.
8201
8202         * modules/inet_pton: New file.
8203
8204 2006-06-21  Simon Josefsson  <jas@extundo.com>
8205
8206         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
8207         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
8208         of using the (limited) gnulib implementation on Windows XP.
8209
8210         * m4/inet_pton.m4: New file.
8211
8212 2006-06-21  Simon Josefsson  <jas@extundo.com>
8213
8214         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
8215         variable.
8216
8217         * lib/socket_.h: Don't define WINVER.
8218
8219         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
8220         slightly modified to work in gnulib.
8221
8222 2006-06-21  Simon Josefsson  <jas@extundo.com>
8223
8224         * doc/gnulib.texi (Windows sockets): Add.
8225
8226 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
8227
8228         * lib/read-file.c (fread_file): Start with buffer allocation of
8229         0 bytes rather than 1 byte; this simplifies the code.
8230         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
8231         code to free buffer and save/restore errno.
8232         (internal_read_file): Remove unused local.
8233
8234 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
8235
8236         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
8237         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
8238         Problem reported by Denis Excoffier in
8239         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
8240
8241 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
8242
8243         * modules/sys_socket, modules/socklen: Include sys/types since
8244         FreeBSD 4.x's sys/socket.h needs it.
8245
8246 2006-06-19  Simon Josefsson  <jas@extundo.com>
8247
8248         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
8249
8250 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
8251
8252         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
8253
8254 2006-06-19  Bruno Haible  <bruno@clisp.org>
8255
8256         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
8257         and FULL_PATH_INTTYPES_H in angle brackets.
8258         Reported by Mark D. Baushke <mdb@gnu.org>.
8259
8260 2006-06-17  Eric Blake  <ebb9@byu.net>
8261
8262         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
8263         errno.
8264
8265 2006-06-17  Bruno Haible  <bruno@clisp.org>
8266
8267         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
8268         <sys/inttypes.h>.
8269
8270 2006-06-17  Bruno Haible  <bruno@clisp.org>
8271
8272         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
8273         whether errno is declared. Assume <errno.h> declares errno.
8274
8275 2006-06-17  Bruno Haible  <bruno@clisp.org>
8276
8277         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
8278
8279 2006-06-17  Bruno Haible  <bruno@clisp.org>
8280
8281         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
8282         problem on Solaris 2.5.1.
8283
8284 2006-06-16  Eric Blake  <ebb9@byu.net>
8285
8286         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
8287         * lib/unicodeio.c [!defined errno]: Likewise.
8288         * lib/strtol.c [!defined errno]: Likewise.
8289         * lib/strtod.c [!defined errno]: Likewise.
8290
8291 2006-06-15  Eric Blake  <ebb9@byu.net>
8292
8293         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
8294
8295 2006-06-15  Eric Blake  <ebb9@byu.net>
8296
8297         * config/srclist.txt (ssize_t.m4): Lose sync.
8298
8299 2006-06-15  Bruno Haible  <bruno@clisp.org>
8300
8301         * modules/stdint (Files): Include m4/full-header-path.m4,
8302         m4/size_max.m4, m4/wchar_t.m4.
8303         (Makefile.am): Many more substitutions.
8304         * modules/stdint-tests: New file.
8305         * tests/test-stdint.c: New file.
8306
8307 2006-06-15  Bruno Haible  <bruno@clisp.org>
8308
8309         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
8310         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
8311         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
8312         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
8313         gl_CHECK_TYPE_SAME): New macros.
8314
8315 2006-06-15  Bruno Haible  <bruno@clisp.org>
8316
8317         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
8318
8319 2006-06-15  Bruno Haible  <bruno@clisp.org>
8320
8321         * lib/stdint_.h: Rewritten to be fully auto-configured.
8322         Fixes bug on HP-UX/IA64.
8323
8324 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
8325
8326         * lib/getdate.y (__attribute__): Don't define if already defined.
8327         Problem reported by Larry Jones.
8328         * lib/utimens.c (__attribute__): Likewise.
8329
8330 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
8331
8332         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
8333         reported by Andreas Schwab.
8334
8335 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8336             Bruno Haible  <bruno@clisp.org>
8337
8338         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
8339         check for the declaration of strnlen and a run test that exposes the
8340         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
8341         rpl_strndup.
8342
8343 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8344             Bruno Haible  <bruno@clisp.org>
8345
8346         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
8347
8348 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8349
8350         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
8351         compile test, for Tru64 4.0D.
8352
8353 2006-05-28  Karl Berry  <karl@gnu.org>
8354
8355         * config/srclist.txt (printf-args.c): lose sync.
8356
8357 2006-05-26  Martin Lambers  <marlam@marlam.de>
8358
8359         * lib/getpass.c: Updates the test for the native W32 API, and adds
8360         missing includes, thus fixing compilation warnings.
8361
8362 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
8363
8364         * lib/exclude.c (exclude_fnmatch): New function.
8365         (excluded_file_name): Call exclude_fnmatch.
8366         * lib/exclude.h (excluded_file_name): New prototype
8367
8368 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
8369
8370         * lib/tempname.c (small_open, large_open): New macros.
8371         (__open, __open64) [!_LIBC]: Remove.
8372         (__gen_tempname): Use small_open and large_open instead of __open
8373         and __open64.  This fixes a portability bug on HP-UX 11.11i
8374         reported by Simon Wing-Tang in
8375         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
8376
8377 2006-05-24  Bruno Haible  <bruno@clisp.org>
8378
8379         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
8380         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
8381         Reported by Thorsten Maerz <torte@netztorte.de> via
8382         Aaron Stone <aaron@serendipity.cx>.
8383
8384 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
8385
8386         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
8387         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
8388         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
8389         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
8390         not really conditional on the cache.
8391         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
8392
8393 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
8394
8395         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
8396         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
8397         (my_usleep): Don't mishandle maximum value.
8398
8399 2006-05-19  Jim Meyering  <jim@meyering.net>
8400
8401         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
8402
8403 2006-05-17  Bruno Haible  <bruno@clisp.org>
8404
8405         Cygwin portability.
8406         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
8407
8408 2006-05-17  Bruno Haible  <bruno@clisp.org>
8409
8410         * lib/stdint_.h: Fix recognition of Cygwin.
8411
8412 2006-05-15  Bruno Haible  <bruno@clisp.org>
8413
8414         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
8415         on libtool patch by Ralf Wildenhues.
8416
8417 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
8418
8419         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
8420         test for C99 conformance; (bool) 0.5 is an integer constant
8421         expression, but (bool) -0.5 is not.  Problem reported by Fedor
8422         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
8423
8424 2006-05-11  Simon Josefsson  <jas@extundo.com>
8425
8426         * m4/xvasprintf.m4: Fix obvious typo.
8427
8428 2006-05-11  Jim Meyering  <jim@meyering.net>
8429
8430         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
8431         James Lemley.
8432
8433 2006-05-10  Simon Josefsson  <jas@extundo.com>
8434
8435         * lib/md4.c: Typo fix, update copyright years.
8436         (K1, K2): Don't use L because it turn computations into 64-bit on
8437         64-bit platforms.
8438
8439 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
8440
8441         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
8442         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
8443         unwanted sign propagation, e.g., on hosts with 64-bit int.
8444         There still are some problems with reeelly weird theoretical hosts
8445         (e.g., 33-bit int) but it's not worth worrying about now.
8446         * lib/sha1.c (rol): Likewise.
8447         (K1, K2, K3, K4): Remove unnecessary L suffix.
8448
8449 2006-05-10  Bruno Haible  <bruno@clisp.org>
8450
8451         * lib/des.c: Cast to avoid warnings.
8452
8453 2006-05-09  Bruno Haible  <bruno@clisp.org>
8454
8455         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
8456         (Depends-on): Depend also on xsize, stdarg.
8457         (configure.ac): Add gl_XVASPRINTF.
8458
8459 2006-05-09  Bruno Haible  <bruno@clisp.org>
8460
8461         * m4/xvasprintf.m4: New file.
8462
8463 2006-05-09  Bruno Haible  <bruno@clisp.org>
8464
8465         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
8466         (EOVERFLOW): Define fallback value.
8467         (xstrcat): New function.
8468         (xvasprintf): Recognize the special case of a string concatenation.
8469
8470 2006-05-08  Eric Blake  <ebb9@byu.net>
8471
8472         * gnulib-tool (func_version): Base copyright year on CVS date.
8473         (func_emit_copyright_notice): New function.
8474         (func_emit_lib_Makefile_am): Use it.
8475         (func_emit_tests_Makefile_am): Likewise.
8476         (func_import): Likewise.
8477
8478 2006-05-08  Bruno Haible  <bruno@clisp.org>
8479
8480         * modules/stdarg: New file.
8481         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
8482
8483 2006-05-08  Bruno Haible  <bruno@clisp.org>
8484
8485         * m4/stdarg.m4: New file, from GNU gettext.
8486
8487 2006-05-08  Bruno Haible  <bruno@clisp.org>
8488
8489         * config/srclist.txt (build-aux/config.rpath): different from latest
8490         release.
8491
8492 2006-05-08  Bruno Haible  <bruno@clisp.org>
8493
8494         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
8495
8496 2006-05-05  Jim Meyering  <jim@meyering.net>
8497
8498         * m4/warning.m4: New file, derived from bison's file by the same name.
8499
8500 2006-05-03  Bruno Haible  <bruno@clisp.org>
8501
8502         * lib/stdint_.h: Shorter URL.
8503         * lib/inttypes.h: Likewise.
8504
8505 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
8506
8507         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
8508
8509 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
8510
8511         * lib/verify.h: Document the internals better.  Most of this change
8512         was written by Bruno Haible.
8513
8514 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
8515
8516         * doc/verify.texi: New file, partly based on a proposal by
8517         Bruno Haible.
8518
8519 2006-05-02  Bruno Haible  <bruno@clisp.org>
8520
8521         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
8522         test from here...
8523         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
8524
8525 2006-04-29  Bruno Haible  <bruno@clisp.org>
8526
8527         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
8528         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
8529
8530 2006-04-29  Bruno Haible  <bruno@clisp.org>
8531
8532         * gnulib-tool: Make --update option actually work.
8533
8534 2006-04-29  Bruno Haible  <bruno@clisp.org>
8535
8536         * doc/gcd.texi: New file.
8537         * doc/gnulib.texi: Include it.
8538
8539 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
8540
8541         * lib/getdate.y (get_date): When adding relative date, start with the
8542         initial time, not with the result of the first mktime call.
8543
8544 2006-04-25  Bruno Haible  <bruno@clisp.org>
8545
8546         * gnulib-tool (func_import): Output the include directives in three
8547         blocks, sorted separately.
8548         Reported by Ben Pfaff <blp@cs.stanford.edu>.
8549
8550 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
8551
8552         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
8553         to define main with arguments, for C++.  Reported by Eric Blake.
8554         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
8555         Prefer 'int main ()' to 'int main (void)', for C++.
8556         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
8557         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
8558         for 'main', for C99 and C++.
8559
8560 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
8561
8562         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
8563         Don't assume that exit status -1 is valid.
8564         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
8565         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
8566         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
8567         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
8568         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
8569         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
8570         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
8571         functions can be used without declaring them, or that you can
8572         exit with status -1.
8573         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
8574
8575 2006-04-24  Karl Berry  <karl@gnu.org>
8576
8577         * config/srclist.txt (longdouble.m4): sync lost.
8578
8579 2006-04-24  Eric Blake  <ebb9@byu.net>
8580
8581         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
8582
8583 2006-04-24  Bruno Haible  <bruno@clisp.org>
8584
8585         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
8586         poll() implementation in AIX.
8587         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8588
8589 2006-04-24  Bruno Haible  <bruno@clisp.org>
8590
8591         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
8592         assigned exactly once.
8593
8594 2006-04-23  Claudio Fontana  <claudio@gnu.org>
8595             Bruno Haible  <bruno@clisp.org>
8596
8597         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
8598         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
8599         for AM_CPPFLAGS.
8600
8601 2006-04-23  Bruno Haible  <bruno@clisp.org>
8602
8603         * modules/copy-file: Depend on unistd.
8604         * modules/execute: Likewise.
8605         * modules/fatal-signal: Likewise.
8606         * modules/findprog: Likewise.
8607         * modules/mkdtemp : Likewise.
8608         * modules/pipe: Likewise.
8609         * modules/wait-process: Likewise.
8610
8611 2006-04-23  Bruno Haible  <bruno@clisp.org>
8612
8613         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
8614         condition was already detected.
8615         Reported by Ben Pfaff <blp@cs.stanford.edu>.
8616
8617 2006-04-23  Bruno Haible  <bruno@clisp.org>
8618
8619         * lib/copy-file.c: Include <unistd.h> unconditionally.
8620         * lib/execute.c: Likewise.
8621         * lib/fatal-signal.c: Likewise.
8622         * lib/findprog.c: Likewise.
8623         * lib/mkdtemp.c: Likewise.
8624         * lib/pipe.h: Likewise.
8625         * lib/pipe.c: Likewise.
8626         * lib/wait-process.h: Likewise.
8627
8628 2006-04-23  Bruno Haible  <bruno@clisp.org>
8629
8630         * gnulib-tool (func_usage): Fix --import description. Document
8631         --update.
8632         (func_import): Create temporary file in a temporary directory, if
8633         --dry-run is specified. Silence errors from 'grep' when there are no
8634         m4 files in $m4dir.
8635         (func_create_testdir): Silence errors from 'grep' when there are no
8636         m4 files in $m4dir.
8637         Reported by Karl Berry <karl@freefriends.org>.
8638
8639 2006-04-20  Bruno Haible  <bruno@clisp.org>
8640
8641         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
8642         one argument, so that the code will be portable to Autoconf 2.60.
8643         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
8644         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
8645         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
8646
8647 2006-04-19  Derek Price  <derek@ximbiot.com>
8648             Eric Blake  <ebb9@byu.net>
8649
8650         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
8651         rather than "/full/path.h".  Update comment to match.  Shorten &
8652         generalize m4_translit call via AS_TR_CPP.
8653
8654 2006-04-19  Derek Price  <derek@ximbiot.com>
8655             Eric Blake  <ebb9@byu.net>
8656
8657         * lib/inttypes.h: Correct grammar in comment.
8658
8659 2006-04-18  Derek Price  <derek@ximbiot.com>
8660             Paul Eggert  <eggert@cs.ucla.edu>
8661
8662         * modules/inttypes: New file.
8663         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
8664
8665 2006-04-18  Derek Price  <derek@ximbiot.com>
8666             Paul Eggert  <eggert@cs.ucla.edu>
8667
8668         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
8669         New files.
8670
8671 2006-04-18  Derek Price  <derek@ximbiot.com>
8672             Paul Eggert  <eggert@cs.ucla.edu>
8673
8674         * lib/inttypes.h: New file.
8675         * lib/strtoimax.c: Assume <inttypes.h>.
8676
8677 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
8678
8679         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
8680         isn't mounted.  Problem reported by Kir Kolyshkin.
8681
8682 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
8683
8684         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
8685         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
8686         Derek R. Price.
8687         * lib/regex.h (RE_DUP_MAX): Update comment to match current
8688         implementation.
8689
8690 2006-04-12  Eric Blake  <ebb9@byu.net>
8691
8692         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
8693         is now done automatically by the corresponding Autoconf macro.
8694
8695 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
8696
8697         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
8698         time_r.h.
8699
8700 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
8701
8702         Merge regex changes from libc, removing some of our
8703         POSIX-conformance changes that were rejected and redoing them in a
8704         less-intrusive way.
8705
8706         * lib/regcomp.c (re_compile_internal, init_dfa):
8707         Length arg is now size_t, not Idx.  All uses changed.
8708         (peek_token): Forward decl now says internal_function.
8709         (__re_error_msgid, __re_error_msgid_idx):
8710         Now static rather than extern with attribute_hidden.
8711         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
8712         For some reason libc prefers K&R style defns for external functions.
8713         (regerror) [!defined _LIBC]: Likewise.
8714         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
8715         (seek_collating_symbol_entry, lookup_collation_sequence_value):
8716         (build_range_exp, build_collating_symbol):
8717         Use K&R-style defn.
8718         (re_compile_fastmap): Use '\0' to memset, not 0.
8719         (utf8_sb_map): Make the calculations more obvious.
8720         (init_dfa, parse_bracket_exp, build_charclass_op):
8721         Call calloc and cast result, as glibc does.
8722         (init_word_char, fetch_token, peek_token, peek_token_bracket):
8723         (build_range_exp, build_collating_symbol):
8724         Now internal functions.
8725
8726         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
8727
8728         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
8729         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
8730         Don't depend on VMS; depend on __VMS instead, for POSIX
8731         namespace cleanness.
8732         (regoff_t): Define to ssize_t, not long int.
8733
8734         Remove the REG_ macros named below.  Instead, make the old names
8735         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
8736         __USE_GNU_REGEX.
8737         (REG_BACKSLASH_ESCAPE_IN_LISTS):
8738         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
8739         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
8740         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
8741         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
8742         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
8743         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
8744         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
8745         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
8746         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
8747         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
8748         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
8749         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
8750         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
8751         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
8752         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
8753         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
8754         (REG_NREGS):
8755         Remove.  All uses replaced by the old RE_* names.
8756         (RE_BACKSLASH_ESCAPE_IN_LISTS):
8757         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
8758         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
8759         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
8760         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
8761         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
8762         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
8763         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
8764         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
8765         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
8766         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
8767         Don't bother having these macros be independent of each others'
8768         values, since they no longer exist in the POSIX name space.
8769
8770         Rename the following member names back to their old names,
8771         unless !__USE_GNU_REGEX.  All uses changed back.
8772         (buffer): Renamed from re_buffer.
8773         (allocated): Renamed from re_allocated.
8774         (used): Renamed from re_used.
8775         (syntax): Renamed from re_syntax.
8776         (fastmap): Renamed from re_fastmap.
8777         (translate): Renamed from re_translate.
8778         (can_be_null): Renamed from re_can_be_null.
8779         (regs_allocated): Renamed from re_regs_allocated.
8780         (fastmap_accurate): Renamed from re_fastmap_accurate.
8781         (no_sub): Renamed from re_no_sub.
8782         (not_bol): Renamed from re_not_bol.
8783         (not_eol): Renamed from re_not_eol.
8784         (newline_anchor): Renamed from re_newline_anchor.
8785         (num_regs): Renamed from rm_num_regs.
8786         (start): Renamed from rm_start.
8787         (end): Renamed from rm_end.
8788
8789         (free_state): Move up a bit.
8790
8791         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
8792         #define to be empty.
8793         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
8794         when that is what is intended.
8795         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
8796         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
8797         (MAX): New macro.
8798         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
8799         All uses changed back to re_malloc, etc.  It's now the caller's
8800         responsibility to check for overflow; all callers changed.
8801         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
8802         (re_x2nrealloc): Remove.
8803         (free_state): Remove decl.
8804
8805         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
8806         (re_set_registers, re_exec):
8807         Use K&R-style defn.
8808
8809         2006-01-31  Roland McGrath  <roland@redhat.com>
8810
8811         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
8812         Reported by Mike Frysinger <vapier@gentoo.org>.
8813
8814         2006-01-15  Andreas Jaeger  <aj@suse.de>
8815
8816         [BZ #1950]
8817         * lib/regex_internal.c (re_string_reconstruct): Adjust for
8818         build_wcs_upper_buffer change.
8819         (build_wcs_upper_buffer): Change return type.
8820
8821         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
8822
8823         * lib/regex_internal.h: Include <stdint.h> if available.
8824
8825         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
8826
8827         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
8828
8829         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
8830
8831         * lib/regcomp.c: Adjust for changed secondary hash function.
8832
8833         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
8834
8835         * lib/regex.h: Pretty printing.
8836         Clean up namespace a bit.
8837
8838         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
8839
8840         * lib/regexec.c (update_cur_sifted_state, check_arrival,
8841         check_arrival_add_next_nodes): Avoid using uninitialized variable.
8842
8843         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
8844                     Ulrich Drepper  <drepper@redhat.com>
8845
8846         [BZ #1302]
8847         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
8848         changed.
8849         (bitset_word_t): Renamed from bitset_word.  All uses changed.
8850
8851         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
8852
8853         [BZ #281]
8854         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
8855         * lib/regcomp.c: Remove unnecessary uses of
8856         unsigned RE_TRANSLATE_TYPE.
8857         * lib/regex_internal.h: Likewise.
8858         * lib/regex_internal.c: Likewise.
8859         * lib/regexec.c: Likewise.
8860         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
8861
8862         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
8863
8864         * lib/regexec.c (find_recover_state): Remove unnecessary
8865         initialization.
8866         (transit_state_bkref): Make DFA a const pointer.
8867         (get_subexp): Likewise.
8868         (check_arrival): Likewise.
8869         (update_cur_sifted_state): Likewise.
8870         (re_search_internal): Likewise.
8871         (prune_impossible_nodes): Likewise.
8872         (acquire_init_state_context): Likewise.
8873         (proceed_next_node): Likewise.
8874         (set_regs): Likewise.
8875         (free_fail_stack_return): Likewise.
8876         (check_arrival_expand_ecl): Mark DFA parameter as const.
8877         (check_arrival_expand_ecl_sub): Likewise.
8878         (check_subexp_limits): Likewise.
8879         (sub_epsilon_src_nodes):  Likewise.
8880         (add_epsilon_src_nodes):  Likewise.
8881         (merge_state_array): Likewise.
8882         (update_regs): Likewise.
8883         (build_trtable): Likewise.
8884         (sift_states_backward): Mark MCTX parameter as const.
8885         (build_sifted_states): Likewise.
8886         (update_cur_sifted_state): Likewise.
8887         (sift_states_mkref): Likewise.
8888         (check_arrival_expand_ecl): Mark eclosure as const.
8889         (check_dst_limits_calc_pos_1): Likewise.
8890         * lib/regex_internal.h (re_match_context_t): Make dfa a const
8891         pointer.
8892
8893         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
8894
8895         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
8896         (transit_state_sb): Likewise.
8897         (transit_state_mb): Likewise.
8898         (sift_states_iter_mb): Likewise.
8899         (check_arrival_add_next_nodes): Likewise.
8900         (check_node_accept_bytes): Change first parameter to pointer-to-const.
8901         [_LIBC] (re_search_2_stub): Use mempcpy.
8902
8903         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
8904         mbrtowc for very simple UTF-8 case.
8905
8906         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
8907         a pointer-to-const.
8908         (re_acquire_state_context): Likewise.
8909         * lib/regex_internal.h: Adjust prototypes.
8910
8911         * lib/regex.c: Prevent using C++ compilers.
8912
8913         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
8914         (re_acquire_state_context): Likewise.
8915
8916 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
8917
8918         * modules/regex (Depends-on): Add ssize_t.
8919
8920 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
8921
8922         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
8923         translation table.
8924
8925 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
8926
8927         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
8928
8929 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
8930             Bruno Haible  <bruno@clisp.org>
8931
8932         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
8933         <sys/types.h> and <inttypes.h>.
8934
8935 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8936
8937         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
8938         `__error_t_defined', so argp.h will not typedef the former.
8939
8940 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
8941
8942         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
8943         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
8944         glibc names.  Even if glibc is changed to conform to POSIX, the
8945         traditional names will be available anyway, since regex depends on
8946         the extensions module.  Also, fix a longstanding typo in the
8947         implementation of Spencer ERE test #75 from grep 2.3.  Problems
8948         reported by Emanuele Giaquinta.  Also, change sense of cached
8949         variable, so that the message makes sense.
8950
8951 2006-03-24  Simon Josefsson  <jas@extundo.com>
8952
8953         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
8954         including some doc fixes.
8955         (base64_encode_alloc): Fix +1 bug on allocation failures.
8956
8957 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8958
8959         * lib/base64.c (base64_encode): Do not read past end of array with
8960         unsanitized input on systems with CHAR_BIT > 8.
8961
8962 2006-03-24  Eric Blake  <ebb9@byu.net>
8963
8964         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
8965
8966 2006-03-22  Karl Berry  <karl@gnu.org>
8967
8968         * config/srclist.txt (*setenv.[ch]): get from coreutils.
8969         * config/srclistvars.sh (COREUTILS): new var.
8970
8971 2006-03-17  Jim Meyering  <jim@meyering.net>
8972
8973         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
8974         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
8975
8976 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
8977
8978         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
8979         no longer needs it.  Instead, check that regoff_t is as least
8980         as wide as ptrdiff_t.
8981
8982         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
8983         so that our regex.h stays compatible with the installed regex.
8984         This is helpful for installers who configure --without-included-regex.
8985         Problem reported by Emanuele Giaquinta.
8986
8987 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
8988
8989         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
8990         Typedef to long int, not to off_, as POSIX will likely change
8991         in that direction.
8992
8993 2006-03-15  Eric Blake  <ebb9@byu.net>
8994
8995         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
8996
8997 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
8998
8999         * lib/argp-help.c (validate_uparams): Fix typo
9000         * lib/argp-parse.c (argp_default_options): Consistently begin help
9001         messages with a lowercase letter.
9002
9003 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
9004
9005         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
9006         overrun buffers and shouldn't be used (much as gets shouldn't be
9007         used).
9008         * lib/time_r.c (asctime_r, ctime_r): Likewise.
9009
9010 2006-03-08  Simon Josefsson  <jas@extundo.com>
9011
9012         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
9013         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9014
9015 2006-03-08  Simon Josefsson  <jas@extundo.com>
9016
9017         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
9018         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9019
9020 2006-03-08  Simon Josefsson  <jas@extundo.com>
9021
9022         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
9023         signal that configure disabled the device.
9024
9025 2006-03-08  Simon Josefsson  <jas@extundo.com>
9026
9027         * build-aux/maint.mk: Fix refresh-po, to handle no translated
9028         languages.
9029
9030 2006-03-07  Simon Josefsson  <jas@extundo.com>
9031
9032         * modules/getopt (Depends-on): Add unistd.
9033
9034         * modules/unistd: New file.
9035
9036 2006-03-07  Simon Josefsson  <jas@extundo.com>
9037
9038         * modules/gc-random: New file.
9039
9040 2006-03-07  Simon Josefsson  <jas@extundo.com>
9041
9042         * m4/unistd_h.m4: New file.
9043
9044 2006-03-07  Simon Josefsson  <jas@extundo.com>
9045
9046         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
9047         test to be side-effect free by storing the result in the cache
9048         variable gl_cv_lib_readline, and moving the assignment of
9049         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
9050         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9051
9052 2006-03-07  Simon Josefsson  <jas@extundo.com>
9053
9054         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
9055         error on missing devices (the functions will return an error).
9056
9057         * m4/gc.m4: Move random stuff to gc-random.m4
9058
9059 2006-03-07  Simon Josefsson  <jas@extundo.com>
9060
9061         * lib/unistd_.h: New file.
9062
9063 2006-03-07  Simon Josefsson  <jas@extundo.com>
9064
9065         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
9066
9067 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
9068
9069         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
9070         Problem reported by Juan Manuel Guerrero.
9071
9072 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
9073
9074         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
9075         the unistd module.
9076         * lib/getlogin_r.c: Likewise.
9077         * lib/getlogin_r.h: Likewise.
9078         * lib/glob.c: Likewise.
9079         * lib/pagealign_alloc.c: Likewise.
9080         * lib/unistd_.h: Remove; no longer needed.
9081
9082 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
9083
9084         * MODULES.html.sh (Support for systems lacking POSIX:2001):
9085         Add unistd.
9086         * modules/c-stack (Depends-on): Add unistd.
9087         * modules/getlogin_r: Likewise.
9088         * modules/glob: Likewise.
9089         * modules/pagealign_alloc: Likewise.
9090         * modules/unistd (Files): Remove lib/unistd_.h.
9091         (EXTRA_DIST): Remove.
9092         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
9093         need unistd_.h.
9094         (MOSTLYCLEANFILES): Remove unistd.h-t.
9095
9096 2006-03-03  Simon Josefsson  <jas@extundo.com>
9097
9098         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
9099
9100 2006-03-03  Simon Josefsson  <jas@extundo.com>
9101
9102         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
9103         libidn and bison.
9104
9105 2006-03-03  Simon Josefsson  <jas@extundo.com>
9106
9107         * build-aux/maint.mk: Add indent target.
9108
9109 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
9110
9111         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
9112         our replacement poll.h in any case, to avoid a differing
9113         declaration from a system header.  Seen on AIX.
9114
9115 2006-03-01  Simon Josefsson  <jas@extundo.com>
9116
9117         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
9118         <kasal@ucw.cz>.
9119
9120 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
9121
9122         * modules/gettime (Depends-on): Add extensions module.
9123         * modules/nanosleep (Depends-on): Likewise.
9124         * modules/settime (Depends-on): Likewise.
9125
9126 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
9127
9128         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
9129         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
9130         pedantically.
9131         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
9132         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
9133
9134         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
9135         not "==".  Reported by Ralf Wildenhues.
9136
9137 2006-03-01  Karl Berry  <karl@gnu.org>
9138
9139         * doc/Copyright/request-*: new files, synced from gnuorg.
9140
9141 2006-03-01  Karl Berry  <karl@gnu.org>
9142
9143         * config/srclist.txt (Copyright/*): new entries.
9144
9145 2006-02-28  Simon Josefsson  <jas@extundo.com>
9146
9147         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
9148
9149 2006-02-27  Simon Josefsson  <jas@extundo.com>
9150
9151         * lib/base64.h: Indent #define's.  From Jim Meyering
9152         <jim@meyering.net>.
9153
9154 2006-02-27  Jim Meyering  <jim@meyering.net>
9155
9156         Revert the change of 2006-02-24, so these files can continue
9157         to be sync'd from gettext.
9158         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
9159         of `config.h'.
9160
9161 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
9162
9163         * modules/intprops: New file.
9164         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
9165         Add intprops.
9166         * modules/getloadavg (Files): Remove lib/intprops.h.
9167         (Depends-on): Add intprops.
9168         * modules/human: Likewise.
9169         * modules/inttostr: Likewise.
9170         * modules/openat: Likewise.
9171         * modules/sig2str: Likewise.
9172         * modules/userspec: Likewise.
9173         * modules/utimecmp: Likewise.
9174         * modules/xnanosleep: Likewise.
9175         * modules/xstrtol: Likewise.
9176
9177 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
9178
9179         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
9180         * modules/lock-tests (TESTS): Use $(EXEEXT).
9181         * modules/tls-tests: Likewise.
9182         * modules/argp-tests: Likewise.
9183         (check_PROGRAMS): New var, replacing...
9184         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
9185
9186 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9187
9188         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
9189         `config.h'.
9190
9191 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
9192
9193         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
9194
9195 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9196
9197         Sync from coreutils.
9198         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
9199         gl_CHDIR_SAFER.
9200
9201 2006-02-22  Jim Meyering  <jim@meyering.net>
9202
9203         Sync from coreutils.
9204         * m4/chdir-safer.m4: New file.
9205
9206 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
9207
9208         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
9209         AT_FDCWD exceeds INT_MAX.
9210         * lib/openat.h (AT_FDCWD): Likewise.
9211
9212 2006-02-17  Eric Blake  <address@hidden>
9213
9214         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
9215
9216 2006-02-16  Simon Josefsson  <jas@extundo.com>
9217
9218         * modules/getaddrinfo (Depends-on): Add sys_socket.
9219
9220 2006-02-15  Simon Josefsson  <jas@extundo.com>
9221
9222         * build-aux/maint.mk: Add dsyntax-check rule.
9223
9224 2006-02-15  Eric Blake  <ebb9@byu.net>
9225
9226         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
9227         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
9228         'present but cannot compile' warnings on cygwin.
9229         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
9230         use ws2tcpip.h if sys/socket.h works.
9231         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
9232         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
9233
9234 2006-02-14  Simon Josefsson  <jas@extundo.com>
9235
9236         * modules/maintainer-makefile (Files): Rename.
9237
9238         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
9239         and (the local) Makefile.cfg to maint-cfg.mk.
9240
9241         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
9242         to the latter.
9243
9244         * modules/maintainer-makefile: New module.
9245
9246         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
9247         severaly stripped to make it possible to build it up from scratch
9248         with reliable tests.
9249
9250         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
9251         fixes to permit overriding the default actions when configure and
9252         makefile are not available.
9253
9254 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
9255
9256         Sync from coreutils.
9257         * modules/lstat (Depends-on): Don't depend on xalloc.
9258         (License): Change from GPL to LGPL, since this is now simply a
9259         replacement for a libc function.
9260
9261 2006-02-14  Jim Meyering  <jim@meyering.net>
9262
9263         Sync from coreutils.
9264
9265         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
9266         failure on deficient systems, and simplify gnulib lgpl dependencies.
9267         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
9268         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
9269
9270         * lib/xalloc-die.c: Remove unused definition of N_.
9271
9272 2006-02-14  Jim Meyering  <jim@meyering.net>
9273
9274         Sync from coreutils.
9275         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
9276         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
9277         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
9278         double-quote uses of that variable, to accommodate the rare case in
9279         which getmntent is available in none of the libraries checked.  This
9280         happens at least on FreeBSD 5.0.
9281
9282 2006-02-13  Simon Josefsson  <jas@extundo.com>
9283
9284         * gnulib-tool (Usage): Fix --import, from
9285         karl@freefriends.org (Karl Berry).
9286
9287 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
9288
9289         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
9290
9291 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
9292
9293         * lib/argp-namefrob.h: Restore changes accidentally lost during the
9294         "autoupdate" on 2005-12-12.
9295
9296 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
9297
9298         * modules/closeout (Depends-on): Remove atexit.
9299
9300 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
9301
9302         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
9303         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
9304
9305 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
9306
9307         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
9308         __EXTENSIONS__ if this causes compilation to fail.  Problem
9309         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
9310         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
9311
9312 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
9313
9314         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
9315         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
9316         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
9317         All uses changed.
9318
9319 2006-01-26  Simon Josefsson  <jas@extundo.com>
9320
9321         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
9322         prototype is visible on mingw32.
9323
9324         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
9325         for mingw32.
9326
9327         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
9328         mingw32).
9329
9330 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
9331
9332         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
9333         attempt to open for write; this always fails, at least on POSIX
9334         hosts.  This reinstates the 2006-01-09 change, which was
9335         inadvertently removed.
9336
9337 2006-01-26  Bruno Haible  <bruno@clisp.org>
9338
9339         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
9340         Reported by Paul Eggert.
9341
9342 2006-01-26  Bruno Haible  <bruno@clisp.org>
9343             Paul Eggert  <eggert@cs.ucla.edu>
9344
9345         * lib/stdbool_.h (_Bool)
9346         [(! (defined __cplusplus || defined __BEOS__)
9347           && !defined __GNUC__
9348           && !(defined __HP_cc || defined __xlc__
9349                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
9350                || defined __sgi))]:
9351         #define to signed char in these cases too; this simplifies
9352         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
9353         etc., separately) and makes it more conservative.
9354
9355 2006-01-25  Simon Josefsson  <jas@extundo.com>
9356
9357         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
9358         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
9359         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
9360
9361 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
9362
9363         * lib/argp-namefrob.h: Bugfix. Remove stray #
9364
9365 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
9366
9367         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
9368         so that we test the test.
9369         Check for yet another HP-UX cc bug involving *bool |= bool.
9370
9371 2006-01-25  Karl Berry  <karl@gnu.org>
9372
9373         * config/srclist.txt (vasnprintf.c): sync lost.
9374
9375 2006-01-25  Jim Meyering  <jim@meyering.net>
9376
9377         Sync from the stable (b5) branch of coreutils:
9378
9379         * lib/fts.c (fts_children): Don't let close() clobber errno from
9380         failed fchdir().
9381
9382         * lib/fts.c (fts_stat): When following a symlink-to-directory,
9383         don't necessarily interpret stat-fails+lstat-succeeds as indicating
9384         a dangling symlink.  That can also happen at least for ELOOP.
9385         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
9386         FYI, this bug predates the inclusion of fts.c in coreutils.
9387
9388         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
9389         in their own block, so pre-c99 compilers don't object.
9390
9391         Avoid the double-free (first in fts_read, second in fts_close) that
9392         would occur when an `active' directory is made inaccessible (e.g.,
9393         via chmod a-x) during a traversal.
9394         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
9395         before returning.  Reproduce this failure by
9396         mkdir -p a/b; cd a; chmod a-x . b
9397         Reported by Stavros Passas.
9398
9399 2006-01-25  Jim Meyering  <jim@meyering.net>
9400
9401         * lib/fileblocks.c: Remove more useless parentheses.
9402         * lib/readutmp.h: Likewise.
9403
9404 2006-01-25  Bruno Haible  <bruno@clisp.org>
9405
9406         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
9407         warnings.
9408         Reported by Paul Eggert.
9409
9410 2006-01-25  Bruno Haible  <bruno@clisp.org>
9411
9412         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
9413         rid of a trap command. For Solaris sh.
9414         Reported by Mark D. Baushke <mdb@gnu.org>.
9415
9416 2006-01-24  Simon Josefsson  <jas@extundo.com>
9417
9418         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
9419         Bruno.
9420
9421 2006-01-24  Karl Berry  <karl@gnu.org>
9422
9423         * config/srclist.txt (argp-namefrob.h): sync lost.
9424
9425 2006-01-24  Jim Meyering  <jim@meyering.net>
9426
9427         * modules/openat (Files): Add lib/intprops.h.
9428         From Mark D. Baushke.
9429
9430 2006-01-24  Jim Meyering  <jim@meyering.net>
9431
9432         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
9433         Reported by Mark D. Baushke.
9434
9435 2006-01-24  Jim Meyering  <jim@meyering.net>
9436
9437         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
9438
9439 2006-01-24  Bruno Haible  <bruno@clisp.org>
9440
9441         * modules/strnlen (Maintainer): Change from glibc to all.
9442
9443 2006-01-24  Bruno Haible  <bruno@clisp.org>
9444
9445         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
9446         Patch by Paul Eggert.
9447
9448 2006-01-24  Bruno Haible  <bruno@clisp.org>
9449
9450         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
9451         already has it.
9452         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
9453         2005-11-26.
9454
9455         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
9456         'signed char' to avoid problems with the built-in _Bool type.
9457         Reported by Paul Eggert on 2005-11-26.
9458
9459 2006-01-24  Bruno Haible  <bruno@clisp.org>
9460
9461         * gnulib-tool (func_import): Avoid constructing complicated sed
9462         expressions inside backquote.
9463         Report and solution by Mark D. Baushke <mdb@gnu.org>.
9464
9465 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
9466
9467         These changes imported from libc.
9468         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
9469         test and two separate function calls.
9470         * lib/strndup.c (__strndup): Add libc_hidden_def.
9471
9472 2006-01-23  Simon Josefsson  <jas@extundo.com>
9473
9474         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
9475         Remove the test_*_SOURCES variable: automake infers it by default.
9476         * modules/tls-tests: Likewise.
9477
9478 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
9479
9480         Work around porting bugs reported by Dieter in
9481         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
9482         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
9483         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
9484         Include "getopt.h" first, to check interface.
9485         (getenv): Declare only if defined HAVE_DECL_GETENV &&
9486         !HAVE_DECL_GETENV.
9487         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
9488         (__strndup): Revert to K&R-style function dfns, the glibc style.
9489         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
9490         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
9491         Include strnlen.h first, to get prototype properly.
9492         (strnlen): Renamed from __strnlen.
9493         Remove weak alias.
9494
9495 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
9496
9497         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
9498
9499 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
9500
9501         * config/srclist.txt: Adjust to reflect glibc reorganization.
9502         This affects only comments.
9503
9504 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
9505
9506          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
9507          Reported by Bruce Korb <bkorb@gnu.org>.
9508
9509 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
9510
9511         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
9512         to pacify gcc -Wswitch-default.
9513
9514 2006-01-22  Bruno Haible  <bruno@clisp.org>
9515
9516         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
9517         temporary buffer for sprintf, take into account the precision also
9518         for 'd', 'i', 'u', 'o', 'x', 'X'.
9519
9520 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
9521
9522         * modules/argp-tests: New module
9523         * tests/test-argp.c: New file
9524         * tests/test-argp-2.sh: New file
9525
9526 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
9527
9528         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
9529         (__argp_base_name): Removed
9530         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
9531         typo.
9532         (__argp_base_name): Provide macro definition or extern declaration
9533         depending on the configuration
9534
9535 2006-01-20  Simon Josefsson  <jas@extundo.com>
9536
9537         * modules/inet_ntop (Depends-on): Depend on sys_socket.
9538
9539 2006-01-20  Simon Josefsson  <jas@extundo.com>
9540
9541         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
9542
9543 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
9544
9545         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
9546         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
9547         Suggested by Bruno Haible.
9548
9549 2006-01-20  Karl Berry  <karl@gnu.org>
9550
9551         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
9552         until changes propagate, I guess.
9553
9554 2006-01-19  Simon Josefsson  <jas@extundo.com>
9555
9556         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
9557
9558 2006-01-19  Simon Josefsson  <jas@extundo.com>
9559
9560         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
9561
9562 2006-01-19  Simon Josefsson  <jas@extundo.com>
9563
9564         * gnulib-tool: Set check_PROGRAMS.
9565
9566         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
9567         modules/des-tests, modules/gc-arcfour-tests,
9568         modules/gc-arctwo-tests, modules/gc-des-tests,
9569         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
9570         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
9571         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
9572         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
9573         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
9574         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
9575         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
9576         test_*_SOURCES.
9577
9578 2006-01-18  Simon Josefsson  <jas@extundo.com>
9579
9580         * modules/socklen (Depends-on): Depend on sys_socket.
9581
9582 2006-01-18  Simon Josefsson  <jas@extundo.com>
9583
9584         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
9585         modules/des-tests, modules/gc-arcfour-tests,
9586         modules/gc-arctwo-tests, modules/gc-des-tests,
9587         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
9588         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
9589         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
9590         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
9591         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
9592         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
9593         $(EXEEXT) to automake TESTS variable, for mingw32.
9594
9595 2006-01-17  Simon Josefsson  <jas@extundo.com>
9596
9597         * modules/socklen (Include): Need sys/socket.h.
9598
9599 2006-01-17  Bruno Haible  <bruno@clisp.org>
9600
9601         * modules/ssize_t (Include): Add <sys/types.h>.
9602
9603 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
9604
9605         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
9606         it's not portable and it doesn't work with cross-compiles.
9607         Problem reported by Bruno Haible.  Fix missing-$ typo in
9608         'test "gl_cv_ignore_unused_libraries" ...' that prevented
9609         -zignore from being used with Sun's C compiler.
9610
9611 2006-01-12  Simon Josefsson  <jas@extundo.com>
9612
9613         * lib/base64.c: Fix warning, reported by Bruno Haible
9614         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
9615
9616 2006-01-12  Bruno Haible  <bruno@clisp.org>
9617
9618         * modules/ldd: New file.
9619         * build-aux/ldd.sh.in: New file.
9620         * MODULES.html.sh (Support for building libraries and executables): Add
9621         ldd.
9622
9623 2006-01-12  Bruno Haible  <bruno@clisp.org>
9624
9625         * m4/ldd.m4: New file.
9626
9627 2006-01-12  Bruno Haible  <bruno@clisp.org>
9628
9629         * gnulib-tool (func_import, func_create_testdir): Don't go into an
9630         endless loop while replacing $auxdir with build-aux.
9631
9632 2006-01-11  Simon Josefsson  <jas@extundo.com>
9633
9634         * lib/stdint_.h (SIZE_MAX): Add missing (.
9635
9636 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
9637
9638         Sync from coreutils.
9639         * lib/md5.c: Fix commentary typos.
9640         (alignof, UNALIGNED_P): No need for a GCC-specific version.
9641         * lib/md5.h (__attribute__): Remove; unused.
9642         * lib/sha1.c: Fix commentary to match md5 better.
9643         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
9644         so that we don't need to worry about alignment.  All uses changed.
9645         This merges the 2005-10-28 md5 change into sha1.
9646
9647 2006-01-11  Jim Meyering  <jim@meyering.net>
9648
9649         Sync from coreutils.
9650         * lib/md5.c (OP): Fix spacing.
9651
9652 2006-01-11  Bruno Haible  <bruno@clisp.org>
9653
9654         Ensure automatic ordering between gl_LOCK and gl_ARGP.
9655         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
9656         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
9657
9658 2006-01-11  Bruno Haible  <bruno@clisp.org>
9659
9660         Ensure automatic ordering between gl_LOCK and gl_ARGP.
9661         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
9662         the "early" section as well.
9663
9664 2006-01-11  Bruno Haible  <bruno@clisp.org>
9665
9666         Avoid "ar: no archive members specified" error on MacOS X.
9667         * gnulib-tool (func_modules_add_dummy): New function.
9668         (func_import, func_create_testdir): Invoke it.
9669
9670 2006-01-11  Bruno Haible  <bruno@clisp.org>
9671
9672         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
9673         with $auxdir in AC_CONFIG_FILES statements.
9674
9675 2006-01-11  Bruno Haible  <bruno@clisp.org>
9676
9677         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
9678         Initialize also noinst_HEADERS to empty.
9679
9680 2006-01-11  Bruno Haible  <bruno@clisp.org>
9681
9682         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
9683         variables.
9684         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
9685         autoreconf.
9686
9687 2006-01-11  Bruno Haible  <bruno@clisp.org>
9688
9689         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
9690         overridable by the user.
9691         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9692
9693 2006-01-10  Simon Josefsson  <jas@extundo.com>
9694
9695         * modules/sys_socket: New file.
9696
9697 2006-01-10  Simon Josefsson  <jas@extundo.com>
9698
9699         * m4/sys_socket_h.m4: New file.
9700
9701 2006-01-10  Simon Josefsson  <jas@extundo.com>
9702
9703         * lib/socket_.h: New file.
9704
9705 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
9706
9707         * modules/readutmp (Maintainer): Add myself.
9708
9709 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
9710
9711         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
9712         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
9713         People who are still concerned with buggy memcmp implementations
9714         can invoke gl_FUNC_MEMCMP themselves.
9715
9716 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
9717
9718         * lib/regex_internal.h (BITSET_WORD_BITS):
9719         Work around a bug in 64-bit PGC (before version 6.1-2), where the
9720         preprocessor mishandles large unsigned values as if they were signed.
9721         Problem reported by Claudio Fontana in
9722         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
9723
9724 2006-01-10  Jim Meyering  <jim@meyering.net>
9725
9726         Avoid the double-free (first in fts_read, second in fts_close) that
9727         would occur when an `active' directory is made inaccessible (e.g.,
9728         via chmod a-x) during a traversal.
9729         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
9730         before returning.  Reproduce this failure by
9731         mkdir -p a/b; cd a; chmod a-x . b
9732         Reported by Stavros Passas.
9733
9734         Sync from coreutils.
9735         * lib/sha1.c: Tweak grammar in a comment.
9736
9737 2006-01-10  Jim Meyering  <jim@meyering.net>
9738
9739         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
9740         Patch by Joerg Sonnenberger.
9741
9742 2006-01-10  Bruno Haible  <bruno@clisp.org>
9743
9744         * modules/readutmp: Depend on module free.
9745         * modules/strtok_r: Depend on module restrict.
9746
9747 2006-01-10  Bruno Haible  <bruno@clisp.org>
9748
9749         * modules/gettext (configure.ac): Add an invocation of
9750         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
9751
9752 2006-01-10  Bruno Haible  <bruno@clisp.org>
9753
9754         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
9755         Reported by Werner Lemberg <wl@gnu.org>.
9756
9757 2006-01-10  Bruno Haible  <bruno@clisp.org>
9758
9759         * lib/localcharset.c: Update from GNU gettext.
9760
9761 2006-01-10  Bruno Haible  <bruno@clisp.org>
9762
9763         * lib/argp.h (__const): Remove macro. Use const instead.
9764         * lib/argp-fmtstream.h (__const): Likewise.
9765         * lib/glob_.h (__const): Remove macro.
9766         * lib/glob-libc.h: Use const instead of __const.
9767
9768 2006-01-10  Bruno Haible  <bruno@clisp.org>
9769
9770         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
9771         variable.
9772         Needed to avoid an automake error regarding the 'gettext' module.
9773
9774 2006-01-09  Simon Josefsson  <jas@extundo.com>
9775
9776         * modules/inet_ntop (Depends-on): Add restrict.
9777
9778 2006-01-09  Simon Josefsson  <jas@extundo.com>
9779
9780         * modules/gc-rijndael-tests (License): Put under LGPL.
9781
9782         * modules/gc-des-tests (License): Likewise.
9783
9784         * modules/gc-arcfour-tests (License): Likewise.
9785
9786         * modules/gc-arctwo-tests (License): Likewise.
9787
9788         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
9789
9790         * modules/gc-hmac-sha1-tests (Files): Likewise.
9791
9792         * modules/gc-hmac-md5-tests (License): Likewise.
9793
9794         * modules/gc-sha1-tests (License): Likewise.
9795
9796         * modules/gc-md5-tests (License): Likewise.
9797
9798         * modules/gc-md4-tests (License): Likewise.
9799
9800         * modules/gc-md2-tests (License): Likewise.
9801
9802         * modules/gc-tests (License): Likewise.
9803
9804         * modules/des-tests (License): Likewise.
9805
9806         * modules/md4-tests (License): Likewise.
9807
9808         * modules/md2-tests (License): Likewise.
9809
9810 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
9811
9812         Sync from coreutils:
9813
9814         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
9815         * modules/lib-ignore: New file.
9816         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
9817         chdir-safer.m4, lchmod.m4.
9818         * modules/openat: Add mkdirat.c, openat-priv.h.
9819
9820 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
9821
9822         Sync from coreutils.
9823         * m4/lib-ignore.m4: New file.
9824         * m4/lchmod.m4: New file.
9825
9826 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
9827
9828         Sync from coreutils.
9829         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
9830         for write access: POSIX says that must fail.
9831         * lib/fts.c (diropen): Likewise.
9832         * lib/save-cwd.c (save_cwd): Likewise.
9833         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
9834         well, for minor improvements on hosts that lack O_DIRECTORY.
9835         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
9836         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
9837         Fall back on chown if open failed with EACCES.
9838
9839         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
9840         Report an error at compile-time if only a 1-second nominal clock
9841         resolution is found.
9842
9843         * lib/lchmod.h: New file.
9844         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
9845         (make_dir_parents): Use lchown rather than chown, and
9846         lchmod rather than chmod.
9847
9848         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
9849         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
9850         "proc" reported by n0dalus.
9851
9852         * lib/mountlist.c: Include <limits.h>.
9853         (dev_from_mount_options)
9854         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
9855         New function.  It no longer assumes "dev=" has the System V meaning
9856         on Linux (since it doesn't).  It also parses "dev=" more carefully.
9857         (read_file_system_list)
9858         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
9859         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
9860         dev= in that case.
9861
9862         * lib/posixtm.h (PDS_PRE_2000): New macro.
9863         * lib/posixtm.c (year): Arg is now syntax_bits rather than
9864         allow_century.  All usages changed.  Reject dates outside the range
9865         1969-1999 if PDS_PRE_2000 is used.
9866
9867 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
9868
9869         Sync from coreutils.
9870         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
9871         (Time of day items): Mention the possibility of leap seconds.
9872         Problem reported by Dr. David Alan Gilbert.
9873
9874 2006-01-09  Jim Meyering  <jim@meyering.net>
9875
9876         Sync from coreutils.
9877
9878         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
9879
9880         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
9881
9882         * lib/modechange.c (mode_compile): Reject an invalid mode string
9883         that starts with an octal digit.  From Andreas Gruenbacher.
9884
9885         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
9886         and dup to open_safer and dup_safer, respectively.
9887         (openat_permissive): Fix typo in comment.
9888
9889         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
9890         "gettext.h"; either no longer needed or are guaranteed by openat.h.
9891         (_): Remove; no longer needed.
9892         (openat): Renamed from rpl_openat; no need for rpl_openat
9893         since openat.h renames openat for us.
9894         Replace most of the body with a call to openat_permissive,
9895         to avoid duplicate code.
9896         Port to (probably hypothetical) environments were mode_t is
9897         wider than int.
9898         (openat_permissive): Require mode arg, so that we can check
9899         types better.  Put it just after flags.  Change cwd failure
9900         indicator from pointer-to-bool to pointer-to-errno-value.
9901         All callers changed.
9902         Invoke openat_save_fail and/or openat_restore_fail if
9903         cwd_errno is null, so that openat can call us.
9904         (openat_permissive, fdopendir, fstatat, unlinkat):
9905         Simplify errno handling to avoid some duplicate code,
9906         as it's OK to set errno on success.
9907         * lib/openat.h: Revamp code so that function macros depend on
9908         __OPENAT_PREFIX only, not also on AT_FDCWD.
9909         (openat_ro): Remove.  Caller changed to use openat_permissive.
9910         (openat_permissive): Now a macro, if not a function.
9911         (openat_restore_fail, openat_save_fail): Now always functions,
9912         since mkdirat needs them even if __OPENAT_PREFIX is defined.
9913
9914         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
9915         and openat.c.
9916         * lib/mkdirat.c: Include openat-priv.h.
9917         Remove definitions of macros defined therein.
9918         * lib/openat.c: Likewise.
9919
9920         * lib/mkdirat.c (mkdirat): New file and function.
9921         * lib/openat.h (mkdirat): Declare.
9922
9923         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
9924
9925         * lib/openat.h (openat_permissive): Declare.
9926         (openat_ro): Define.
9927
9928         * lib/openat.c (EXPECTED_ERRNO): New macro.
9929         (openat_permissive): New function -- used in remove.c rewrite.
9930         (all functions): Set errno just before returning, only if there
9931         was an actual failure.
9932         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
9933
9934         Emulate openat-family functions using Linux's procfs, if possible.
9935         Idea and some code based on Ulrich Drepper's glibc changes.
9936
9937         * lib/openat.c: (BUILD_PROC_NAME): New macro.
9938         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
9939         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
9940         before falling back on save_cwd and restore_cwd.
9941         (fdopendir, fstatat, unlinkat): Likewise.
9942
9943         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
9944         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
9945
9946         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
9947         as second argument to va_arg.  Otherwise, some versions of gcc
9948         warn that `if this code is reached, the program will abort'.
9949
9950 2006-01-09  Jim Meyering  <jim@meyering.net>
9951
9952         Sync from coreutils.
9953         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
9954         Require openat-priv.h.
9955
9956 2006-01-09  Bruno Haible  <bruno@clisp.org>
9957
9958         * modules/strnlen (Include): Use strnlen.h.
9959
9960 2006-01-09  Bruno Haible  <bruno@clisp.org>
9961
9962         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
9963
9964 2006-01-09  Bruno Haible  <bruno@clisp.org>
9965
9966         * lib/sysexit_.h (EX_OK): New macro.
9967         Suggested by Martin Lambers <marlam@marlam.de>.
9968
9969 2006-01-09  Bruno Haible  <bruno@clisp.org>
9970
9971         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
9972         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
9973
9974 2006-01-09  Bruno Haible  <bruno@clisp.org>
9975
9976         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
9977         numbers.
9978
9979 2006-01-09  Bruno Haible  <bruno@clisp.org>
9980
9981         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
9982         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
9983         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
9984         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
9985
9986 2006-01-09  Bruno Haible  <bruno@clisp.org>
9987
9988         * build-aux/javacomp.sh.in: New file, moved from lib/.
9989         * modules/javacomp-script (Files): Update.
9990         (configure.ac): Add AC_CONFIG_FILES invocation.
9991         (EXTRA_DIST): Remove variable.
9992
9993         * build-aux/javaexec.sh.in: New file, moved from lib/.
9994         * modules/javaexec (Files): Update.
9995         (configure.ac): Add AC_CONFIG_FILES invocation.
9996         (EXTRA_DIST): Remove javaexec.sh.in.
9997
9998         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
9999         * modules/csharpcomp-script (Files): Update.
10000         (configure.ac): Add AC_CONFIG_FILES invocation.
10001         (EXTRA_DIST): Remove variable.
10002
10003         * build-aux/csharpexec.sh.in: New file, moved from lib/.
10004         * modules/csharpexec (Files): Update.
10005         (configure.ac): Add AC_CONFIG_FILES invocation.
10006         (EXTRA_DIST): Remove csharpexec.sh.in.
10007
10008 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
10009
10010         Sync from coreutils.
10011
10012         Add POSIX ACL support
10013         * lib/acl.h (copy_acl, set_acl): Add declarations.
10014         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
10015         systems other than Linux.
10016         (chmod_or_fchmod): New function: use fchmod when possible,
10017         and chmod otherwise.
10018         (file_has_acl): Add a POSIX ACL implementation, with a
10019         Linux-specific subcase.
10020         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
10021         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
10022         acls are unsupported.
10023         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
10024         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
10025         are unsupported.
10026
10027 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
10028
10029         Sync from coreutils.
10030         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
10031
10032 2006-01-07  Bruno Haible  <bruno@clisp.org>
10033
10034         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
10035         gl_EARLY.
10036
10037 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
10038
10039         * lib/strftime.c (tzname): Don't declare if it is already #defined.
10040         Problem reported for Mingw by Mark Junker.
10041
10042 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
10043
10044         * README: Gnulib normally doesn't generate a tarball.
10045
10046 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
10047
10048         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
10049         long int, not int, for nanosecond counts, so that people who are
10050         used to POSIX struct timespec won't be surprised.  Reported by Jim
10051         Meyering.
10052
10053 2005-12-28  Bruno Haible  <bruno@clisp.org>
10054
10055         * build-aux/config.rpath: Update from GNU gettext.
10056
10057 2005-12-16  Jim Meyering  <jim@meyering.net>
10058
10059         * modules/fprintftime: New module.
10060         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
10061
10062 2005-12-16  Jim Meyering  <jim@meyering.net>
10063
10064         * m4/fprintftime.m4: New file.
10065
10066 2005-12-16  Jim Meyering  <jim@meyering.net>
10067
10068         * lib/fprintftime.c, lib/fprintftime.h: New files.
10069
10070 2005-12-15  Simon Josefsson  <jas@extundo.com>
10071
10072         * modules/socklen (configure.ac): Fix M4 macro name, to align with
10073         new m4/socklen.m4.
10074
10075 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
10076
10077         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
10078         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
10079
10080 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
10081
10082         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
10083         * lib/argp-help.c (fill_in_uparams): Check if the constructed
10084         struct uparams is valid. Fall back to the default values if it is
10085         not.
10086
10087 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
10088
10089         * modules/argp (Files): Add argp-pin.c
10090         (Depends-on): dirname
10091         (lib_SOURCES): Add argp-pin.c
10092
10093 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
10094
10095         * m4/argp.m4:  Check if program_invocation_name and
10096         program_invocation_short_name are declared and define appropriate
10097         macros if they are not.
10098
10099 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
10100
10101         * lib/argp-help.c (__argp_base_name): New function
10102         (__argp_short_program_name): Rewrite using __argp_base_name
10103         * lib/argp-namefrob.h: Define program_invocation_name and
10104         program_invocation_short_name if requested
10105         (__argp_base_name): Add prototype
10106         * lib/argp-parse.c (argp_def): Use gettext wrappers
10107         (argp_default_parser): Use __argp_base_name
10108         * lib/argp-pin.c: New file. Defines program_invocation_name and
10109         program_invocation_short_name on systems that lack them.
10110
10111 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
10112
10113         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
10114         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
10115         porting problem reported by Georg Schwarz in
10116         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
10117
10118 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
10119
10120         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
10121         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
10122         porting problem reported by Georg Schwarz in
10123         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
10124
10125 2005-12-05  Bruno Haible  <bruno@clisp.org>
10126
10127         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
10128         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
10129         Reported by Mark Junker <mjscod@gmx.de>.
10130
10131 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
10132
10133         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
10134         Use implementation from Albert Chin, with some
10135         comments/corrections by Stepan Kasal and myself.
10136
10137 2005-12-02  Bruno Haible  <bruno@clisp.org>
10138
10139         * gnulib-tool (func_import): Accept GPLed build tool modules when
10140         --lgpl is given.
10141         * modules/csharpcomp-script: New file.
10142         * modules/csharpcomp: Depend on it.
10143         * modules/javacomp-script: New file.
10144         * modules/javacomp: Depend on it.
10145         Suggested by Simon Josefsson.
10146
10147 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
10148
10149         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
10150         statement, to work around an HP-UX 10.20 compiler bug reported by
10151         Peter O'Gorman.
10152
10153 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
10154
10155         * modules/savedir (Depends-on): Add openat.
10156
10157 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
10158
10159         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
10160         (uintmax_t) [defined uintmax_t]: Do not declare.
10161         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
10162         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
10163         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
10164         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
10165         sake of portability to weird hosts that C allows (though we don't
10166         know of any practical examples).
10167
10168         * lib/savedir.h (fdsavedir): New decl.
10169         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
10170         contains most of the former guts of savedir.
10171         (savedir): Use savedirstream.
10172         Include "openat.h".
10173
10174 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
10175
10176         * modules/obstack (Files): Add m4/ulonglong.m4.
10177         Problem reported by Davide Angelocola.
10178
10179 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
10180
10181         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
10182         coreutils no longer futzes with rounding modes.
10183
10184 2005-11-14  Jim Meyering  <jim@meyering.net>
10185
10186         * lib/mkstemp-safer.c: Include <config.h>, required for possible
10187         replacement of mkstemp.
10188
10189 2005-11-10  Simon Josefsson  <jas@extundo.com>
10190
10191         * lib/readline.c: Remove EOL.
10192
10193 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
10194
10195         * modules/gethrxtime (Depends-on): Add gettime.
10196
10197 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
10198
10199         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
10200         or gettimeofday; no longer needed.
10201
10202 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
10203
10204         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
10205         time business.
10206         (gethrxtime) [! (HAVE_NANOUPTIME
10207         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
10208         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
10209         our own approximation.
10210
10211 2005-11-08  Eric Blake  <ebb9@byu.net>
10212
10213         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
10214
10215 2005-11-08  Eric Blake  <ebb9@byu.net>
10216
10217         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
10218
10219 2005-11-04  Bruno Haible  <bruno@clisp.org>
10220
10221         * gnulib-tool: Implement --update mode.
10222
10223 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
10224
10225         Fix porting problem reported by Theodoros V. Kalamatianos.
10226         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
10227         Don't assume that futimes failing means we must fail.
10228
10229 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
10230
10231         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
10232         variables to suggest the intended function of the PATH_MAX check.
10233
10234 2005-10-30  Kean Johnston  <jkj@sco.com>
10235
10236         Trivial changes to support SCO systems.
10237         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
10238         as PATH_MAX.
10239         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
10240         where __ptr is null when no I/O is pending.
10241
10242 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
10243
10244         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
10245         leave errno alone.  Problem reported by Dmitry V. Levin.
10246
10247 2005-10-28  Simon Josefsson  <jas@extundo.com>
10248
10249         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
10250         Test more.
10251
10252         * tests/test-gc-md2.c, tests/test-md2.c: New files.
10253
10254         * modules/md2, modules/md2-tests: New files.
10255
10256 2005-10-28  Simon Josefsson  <jas@extundo.com>
10257
10258         * m4/inet_ntop.m4: More tests.
10259
10260         * m4/gc-md2.m4, md2.m4: New file.
10261
10262 2005-10-28  Simon Josefsson  <jas@extundo.com>
10263
10264         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
10265         "restrict" keywords, as per POSIX.  Protect the function
10266         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
10267         Don't use K&R prototypes.  Check the sprintf return values.
10268         Re-define EAFNOSUPPORT if not present.  Indent.
10269
10270         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
10271         suggested by Bruno Haible <bruno@clisp.org>.
10272
10273         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
10274
10275         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
10276
10277         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
10278         libgcrypt).
10279
10280         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
10281
10282         * lib/md2.h, lib/md2.c: New files.
10283
10284 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
10285
10286         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
10287         errno alone.  Problem reported by Frederic Jolliton.
10288
10289 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
10290
10291         * modules/verify (License): Change from GPL to LGPL.  This is a
10292         tiny module and there are apparently near-equivalents that are
10293         under the BSD license.
10294
10295 2005-10-24  Simon Josefsson  <jas@extundo.com>
10296
10297         * modules/sha1: Relicense to LGPL.
10298
10299 2005-10-24  Simon Josefsson  <jas@extundo.com>
10300
10301         * lib/md4.h: Shrink buffer size, now that we changed the type.
10302
10303 2005-10-23  Simon Josefsson  <jas@extundo.com>
10304
10305         * gnulib-tool (func_import): Fix --tests-base.
10306
10307 2005-10-22  Simon Josefsson  <jas@extundo.com>
10308
10309         * modules/arcfour (Depends-on): Need stdint.
10310
10311 2005-10-22  Simon Josefsson  <jas@extundo.com>
10312
10313         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
10314         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
10315
10316 2005-10-22  Simon Josefsson  <jas@extundo.com>
10317
10318         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
10319         suggested by Bruno Haible <bruno@clisp.org>.
10320
10321 2005-10-22  Simon Josefsson  <jas@extundo.com>
10322
10323         * lib/crc.h: Include stddef.h, for size_t.
10324
10325 2005-10-22  Simon Josefsson  <jas@extundo.com>
10326
10327         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
10328         arcfour_context struct (simplify test vector testing in GNU
10329         Shishi).
10330
10331 2005-10-21  Simon Josefsson  <jas@extundo.com>
10332
10333         * modules/des, modules/des-tests: New files.
10334
10335         * modules/gc-des, modules/gc-des-tests: New files.
10336
10337         * tests/test-des.c, tests/test-gc-des.c: New file.
10338
10339 2005-10-21  Simon Josefsson  <jas@extundo.com>
10340
10341         * modules/arctwo, modules/arctwo-tests: New files.
10342
10343         * tests/test-arctwo.c: New file.
10344
10345         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
10346
10347         * tests/test-gc-arctwo.c: New file.
10348
10349 2005-10-21  Simon Josefsson  <jas@extundo.com>
10350
10351         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
10352         Bruno Haible <bruno@clisp.org>.
10353
10354         * m4/gc-des.m4: New file.
10355
10356 2005-10-21  Simon Josefsson  <jas@extundo.com>
10357
10358         * m4/arctwo.m4: New file.
10359
10360         * m4/gc-arctwo.m4: New file.
10361
10362 2005-10-21  Simon Josefsson  <jas@extundo.com>
10363
10364         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
10365         block.
10366
10367 2005-10-21  Simon Josefsson  <jas@extundo.com>
10368
10369         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
10370         <bruno@clisp.org>.
10371
10372         * lib/hmac-sha1.c (hmac_sha1): Likewise.
10373
10374         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
10375         Bruno Haible <bruno@clisp.org>.
10376
10377         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
10378         <bruno@clisp.org>.
10379
10380 2005-10-21  Simon Josefsson  <jas@extundo.com>
10381
10382         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
10383
10384 2005-10-21  Simon Josefsson  <jas@extundo.com>
10385
10386         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
10387
10388 2005-10-21  Simon Josefsson  <jas@extundo.com>
10389
10390         * lib/des.h, lib/des.c: New files.
10391
10392         * lib/gc-gnulib.c: Support DES.c
10393
10394 2005-10-21  Simon Josefsson  <jas@extundo.com>
10395
10396         * lib/arctwo.h, lib/arctwo.c: New files.
10397
10398         * lib/gc-gnulib.c: Support ARCTWO.
10399
10400 2005-10-21  Simon Josefsson  <jas@extundo.com>
10401
10402         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
10403         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10404
10405 2005-10-21  Simon Josefsson  <jas@extundo.com>
10406
10407         * gnulib-tool (func_import, func_create_testdir): Define automake
10408         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
10409         Makefile.am snippet),
10410         suggested by Bruno Haible <bruno@clisp.org>.
10411
10412         * modules/gc (Makefile.am): Use it.
10413
10414 2005-10-21  Bruno Haible  <bruno@clisp.org>
10415
10416         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
10417         patch.
10418
10419 2005-10-19  Simon Josefsson  <jas@extundo.com>
10420
10421         * tests/test-gc-rijndael.c: New file.
10422
10423         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
10424
10425 2005-10-19  Simon Josefsson  <jas@extundo.com>
10426
10427         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
10428         interface too.
10429
10430 2005-10-19  Simon Josefsson  <jas@extundo.com>
10431
10432         * tests/test-gc-arcfour.c: New file.
10433
10434         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
10435
10436 2005-10-19  Simon Josefsson  <jas@extundo.com>
10437
10438         * modules/gc-md4, modules/gc-md4-tests: New file.
10439
10440         * tests/test-gc-md4.c: New file.
10441
10442 2005-10-19  Simon Josefsson  <jas@extundo.com>
10443
10444         * m4/gc-md4.m4: New file.
10445
10446 2005-10-19  Simon Josefsson  <jas@extundo.com>
10447
10448         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
10449         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
10450         <kasal@ucw.cz>.
10451
10452 2005-10-19  Simon Josefsson  <jas@extundo.com>
10453
10454         * m4/gc-arcfour.m4: New file.
10455
10456         * m4/gc-rijndael.m4: New file.
10457
10458 2005-10-19  Simon Josefsson  <jas@extundo.com>
10459
10460         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
10461
10462 2005-10-19  Simon Josefsson  <jas@extundo.com>
10463
10464         * lib/gc-gnulib.c: Support ARCFOUR.
10465
10466 2005-10-19  Simon Josefsson  <jas@extundo.com>
10467
10468         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
10469         support.
10470
10471         * lib/gc.h: Add ECB enum type.
10472
10473         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
10474
10475 2005-10-18  Simon Josefsson  <jas@extundo.com>
10476
10477         * tests/test-md5.c: New file.
10478
10479         * modules/md5-tests: New file.
10480
10481 2005-10-18  Simon Josefsson  <jas@extundo.com>
10482
10483         * tests/test-md4.c: New file.
10484
10485         * modules/md4, modules/md4-tests: New files.
10486
10487 2005-10-18  Simon Josefsson  <jas@extundo.com>
10488
10489         * m4/md4.m4: New file.
10490
10491 2005-10-18  Simon Josefsson  <jas@extundo.com>
10492
10493         * lib/md4.h, lib/md4.c: New files, based on md5.?.
10494
10495 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
10496
10497         * gnulib-tool (func_create_testdir): Omit the second check whether
10498         BUILT_SOURCES in nonempty.
10499
10500 2005-10-17  Simon Josefsson  <jas@extundo.com>
10501
10502         * tests/test-rijndael.c: New file.
10503
10504 2005-10-17  Simon Josefsson  <jas@extundo.com>
10505
10506         * modules/sha1: Depend on stdint instead of md5.
10507
10508         * modules/md5: Depend on stdint, remove uint32_t.
10509
10510 2005-10-17  Simon Josefsson  <jas@extundo.com>
10511
10512         * modules/gc-sha1-tests: New file.
10513
10514         * tests/test-gc-sha1.c: New file.
10515
10516 2005-10-17  Simon Josefsson  <jas@extundo.com>
10517
10518         * m4/md5.m4: Remove call to uint32_t.m4.
10519
10520 2005-10-17  Simon Josefsson  <jas@extundo.com>
10521
10522         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
10523
10524         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
10525         md5.h.
10526
10527         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
10528
10529         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
10530
10531 2005-10-17  Simon Josefsson  <jas@extundo.com>
10532
10533         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
10534
10535 2005-10-17  Simon Josefsson  <jas@extundo.com>
10536
10537         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
10538
10539 2005-10-17  Simon Josefsson  <jas@extundo.com>
10540
10541         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
10542
10543         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
10544
10545 2005-10-17  Bruno Haible  <bruno@clisp.org>
10546
10547         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
10548         that it can also be used in a test.
10549
10550 2005-10-16  Bruno Haible  <bruno@clisp.org>
10551
10552         * gnulib-tool (func_emit_tests_Makefile_am): Also define
10553         TESTS_ENVIRONMENT, so that individual tests can augment it.
10554
10555         * gnulib-tool (func_create_testdir): Use an intermediate target for
10556         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
10557         macros, like $(ALLOCA_H), which cannot be passed through the command
10558         line.
10559
10560 2005-10-15  Simon Josefsson  <jas@extundo.com>
10561
10562         * modules/rijndael-tests: New file.
10563
10564         * modules/rijndael: New file.
10565
10566 2005-10-15  Simon Josefsson  <jas@extundo.com>
10567
10568         * m4/rijndael.m4: New file.
10569
10570 2005-10-15  Simon Josefsson  <jas@extundo.com>
10571
10572         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
10573
10574         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
10575
10576 2005-10-14  Simon Josefsson  <jas@extundo.com>
10577
10578         * tests/test-arcfour.c: New file.
10579
10580         * modules/arcfour, modules/arcfour-tests: New files.
10581
10582 2005-10-14  Simon Josefsson  <jas@extundo.com>
10583
10584         * m4/arcfour.m4: New file.
10585
10586 2005-10-14  Simon Josefsson  <jas@extundo.com>
10587
10588         * lib/arcfour.h, lib/arcfour.c: New files.
10589
10590 2005-10-14  Roland McGrath  <roland@redhat.com>
10591
10592         Import from libc.  [BZ #1331]
10593         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
10594         macro argument.
10595         Reported by Matej Vela <vela@debian.org>.
10596
10597 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
10598
10599         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
10600         include <wchar.h>; no longer needed.
10601
10602 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
10603
10604         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
10605
10606 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
10607         and  Ulrich Drepper  <drepper@redhat.com>
10608
10609         Import from libc.
10610         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
10611         instead of inline stream orientation test and two separate
10612         function calls.  Pay no attention to USE_IN_LIBIO.
10613
10614 2005-10-13  Simon Josefsson  <jas@extundo.com>
10615
10616         * modules/gc-hmac-md5-tests: New file.
10617
10618         * tests/test-gc-hmac-sha1.c: New file.
10619
10620         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
10621
10622         * modules/gc-hmac-md5-tests: New file.
10623
10624         * tests/test-gc-md5.c: New file.
10625
10626         * modules/gc-md5-tests: New file.
10627
10628 2005-10-13  Simon Josefsson  <jas@extundo.com>
10629
10630         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
10631         Move memory allocation outside of loop.
10632
10633 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
10634
10635         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
10636         intermediate directory is in a read-only file system.  Problem
10637         reported by Eric Blake.
10638
10639 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
10640
10641         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
10642
10643 2005-10-12  Simon Josefsson  <jas@extundo.com>
10644
10645         * tests/test-hmac-sha1.c: New file.
10646
10647         * modules/hmac-sha1-tests: New file.
10648
10649         * modules/hmac-sha1: New file.
10650
10651 2005-10-12  Simon Josefsson  <jas@extundo.com>
10652
10653         * modules/gc-sha1: New file.
10654
10655 2005-10-12  Simon Josefsson  <jas@extundo.com>
10656
10657         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
10658
10659         * tests/test-gc-pbkdf2-sha1.c: New file.
10660
10661 2005-10-12  Simon Josefsson  <jas@extundo.com>
10662
10663         * modules/gc-md5, modules/gc-hmac-md5: New files.
10664
10665         * modules/gc (Files): Remove md5, memxor and hmac files.
10666
10667 2005-10-12  Simon Josefsson  <jas@extundo.com>
10668
10669         * m4/gc-pbkdf2-sha1.m4: New file.
10670
10671         * m4/gc-hmac-sha1.m4: New file.
10672
10673         * m4/gc-sha1: New file.
10674
10675         * m4/hmac-sha1.m4: New file.
10676
10677 2005-10-12  Simon Josefsson  <jas@extundo.com>
10678
10679         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
10680
10681         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
10682
10683 2005-10-12  Simon Josefsson  <jas@extundo.com>
10684
10685         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
10686         suggested by Bruno Haible <bruno@clisp.org>.
10687
10688 2005-10-12  Simon Josefsson  <jas@extundo.com>
10689
10690         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
10691
10692 2005-10-12  Simon Josefsson  <jas@extundo.com>
10693
10694         * lib/gc-pbkdf2-sha1.c: New file.
10695
10696         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
10697
10698 2005-10-12  Simon Josefsson  <jas@extundo.com>
10699
10700         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
10701
10702         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
10703
10704 2005-10-12  Simon Josefsson  <jas@extundo.com>
10705
10706         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
10707         GC_USE_HMAC_MD5, respectively.
10708
10709         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
10710         (gc_md5): Fix typo.
10711
10712         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
10713
10714         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
10715
10716         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
10717
10718 2005-10-12  Bruno Haible  <bruno@clisp.org>
10719
10720         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
10721         Reported by Stepan Kasal <kasal@ucw.cz>.
10722
10723 2005-10-11  Simon Josefsson  <jas@extundo.com>
10724
10725         * tests/test-crc.c: New file.
10726
10727         * modules/crc, modules/crc-tests: New files.
10728
10729 2005-10-11  Simon Josefsson  <jas@extundo.com>
10730
10731         * m4/crc.m4: New file.
10732
10733 2005-10-11  Simon Josefsson  <jas@extundo.com>
10734
10735         * lib/gc.h: Add gc_hash and gc_hash_buffer.
10736
10737         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
10738
10739         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
10740
10741 2005-10-11  Simon Josefsson  <jas@extundo.com>
10742
10743         * lib/crc.h, lib/crc.c: New files.
10744
10745         * lib/gc.h (gc_hash_buffer): Add doc.
10746
10747 2005-10-11  Bruno Haible  <bruno@clisp.org>
10748
10749         * modules/c-strcasestr: New file.
10750         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
10751
10752 2005-10-11  Bruno Haible  <bruno@clisp.org>
10753
10754         * modules/c-strcase: New file.
10755         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
10756
10757 2005-10-11  Bruno Haible  <bruno@clisp.org>
10758
10759         * lib/strcasecmp.c: Include limits.h.
10760         (strcasecmp): Avoid integer overflow on exotic platforms.
10761         * lib/strncasecmp.c: Include limits.h.
10762         (strncasecmp): Avoid integer overflow on exotic platforms.
10763         Reported by Paul Eggert.
10764
10765 2005-10-11  Bruno Haible  <bruno@clisp.org>
10766
10767         * lib/c-strcasestr.h: New file, from GNU gettext.
10768         * lib/c-strcasestr.c: New file, from GNU gettext.
10769
10770 2005-10-11  Bruno Haible  <bruno@clisp.org>
10771
10772         * lib/c-strcase.h: New file, from GNU gettext.
10773         * lib/c-strcasecmp.c: New file, from GNU gettext.
10774         * lib/c-strncasecmp.c: New file, from GNU gettext.
10775
10776 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
10777
10778         * modules/mempcpy (License): GPL -> LGPL.
10779         * modules/strchrnul (License): Likewise.
10780         * modules/sysexits (License): Likewise.
10781
10782 2005-10-08  Simon Josefsson  <jas@extundo.com>
10783
10784         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
10785
10786 2005-10-07  Simon Josefsson  <jas@extundo.com>
10787
10788         * m4/memxor.m4: Remove gl_C_RESTRICT call.
10789
10790 2005-10-06  Simon Josefsson  <jas@extundo.com>
10791
10792         * tests/test-hmac-md5.c: New file.
10793
10794         * modules/hmac-md5-tests: New file.
10795
10796         * modules/hmac-md5: New file.
10797
10798 2005-10-06  Simon Josefsson  <jas@extundo.com>
10799
10800         * m4/hmac-md5.m4: New file.
10801
10802         * m4/memxor.m4: Require gl_C_RESTRICT.
10803
10804 2005-10-06  Simon Josefsson  <jas@extundo.com>
10805
10806         * lib/memxor.c (memxor): Avoid casts and warnings.
10807
10808 2005-10-06  Simon Josefsson  <jas@extundo.com>
10809
10810         * lib/hmac-md5.c: New file.
10811
10812         * lib/hmac.h: New file.
10813
10814 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
10815
10816         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
10817         promotes to int, not unsigned int, to catch the AIX 5.3
10818         compiler bug.
10819
10820 2005-10-05  Simon Josefsson  <jas@extundo.com>
10821
10822         * modules/memxor: New file.
10823
10824         * modules/iconv (Files): Move config.rpath to havelib, it is used
10825         there.
10826
10827         * modules/havelib (Files): Add config.rpath.
10828
10829 2005-10-05  Simon Josefsson  <jas@extundo.com>
10830
10831         * m4/memxor.m4: New file.
10832
10833 2005-10-05  Simon Josefsson  <jas@extundo.com>
10834
10835         * lib/memxor.c (memxor): Fix compiler error.
10836
10837         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
10838         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
10839
10840         * lib/memxor.h, lib/memxor.c: New files.
10841
10842         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
10843         we assume all systems have it, suggested by Jim Meyering
10844         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
10845         any systems lack sys/socket.h; mingw32 is known to lack it, but we
10846         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
10847         same reasons.
10848
10849 2005-10-05  Simon Josefsson  <jas@extundo.com>
10850
10851         * config/srclist.txt: Add glibc bug 1423 for md5.h.
10852
10853 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
10854
10855         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
10856         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
10857         needed, since the source code now assumes these .h files.
10858
10859 2005-10-05  Derek Price  <derek@ximbiot.com>
10860
10861         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
10862
10863 2005-10-05  Bruno Haible  <bruno@clisp.org>
10864
10865         * modules/stdint (License): Change to LGPL.
10866
10867 2005-10-04  Simon Josefsson  <jas@extundo.com>
10868
10869         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
10870         D. Baushke" <mdb@gnu.org>.
10871
10872 2005-10-04  Bruno Haible  <bruno@clisp.org>
10873
10874         * lib/verify.h (verify_true): Provide alternative definition for C++.
10875
10876 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
10877
10878         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
10879         (SSIZE_MAX): New macro, if not already defined.
10880         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
10881         than 2 GiB.
10882
10883 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
10884
10885         Sync from coreutils.
10886         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
10887         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
10888         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
10889         ULLONG_MAX doesn't work with 2.7.2.1.
10890
10891 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
10892
10893         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
10894         From Ben Pfaff.
10895
10896         * modules/exclude (Depends-on): Depend on verify.
10897         * modules/strtoimax (Depends-on): Likewise.
10898         * modules/utimecmp (Depends-on): Likewise.
10899
10900 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
10901
10902         * lib/exclude.c: Include verify.h.
10903         (verify): Remove.  All callers changed to use verify.h's version.
10904         * lib/strtoimax.c: Likewise.
10905         * lib/utimecmp.c: Likewis.e
10906
10907         Sync from coreutils.
10908         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
10909         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
10910         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
10911         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
10912         bother returning ENOSYS if settimeofday or stime fails; just let
10913         them return whatever errno they want to return.
10914         * lib/utimens.c: Include unistd.h, for dup2.
10915         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
10916         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
10917
10918 2005-10-02  Jim Meyering  <jim@meyering.net>
10919
10920         Sync from coreutils.
10921         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
10922         from glibc-2.2.5 that fails for read-only files.
10923
10924 2005-10-02  Jim Meyering  <jim@meyering.net>
10925
10926         Sync from coreutils.
10927         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
10928         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
10929         `#if HAVE_CONFIG_H'.
10930         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
10931         Remove AT_FDCWD test.
10932         Do not consume the fd unless successful.
10933         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
10934         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
10935         block, so that we don't even try to compile it if settimeofday is
10936         available.  This works around a compilation failure on OSF1 V5.1,
10937         due to stime requiring a `long int*' while tv_sec is `int'.
10938
10939 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
10940
10941         Sync from coreutils.
10942         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
10943         against `yes', rather than just testing for nonempty.
10944
10945 2005-10-01  Simon Josefsson  <jas@extundo.com>
10946
10947         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
10948         and Darwin.
10949
10950         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
10951         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
10952         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
10953         freeaddrinfo and gai_strerror are declared by the POSIX headers.
10954         Check if struct addrinfo is declared.
10955
10956 2005-10-01  Simon Josefsson  <jas@extundo.com>
10957
10958         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
10959         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
10960         AI_* and EAI_* definitions.  Protect function declarations.
10961
10962 2005-10-01  Jim Meyering  <jim@meyering.net>
10963
10964         Sync from coreutils.
10965
10966         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
10967         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
10968         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
10969         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
10970         in the inet and nsl libraries.  Required on Solaris 5.7.
10971
10972 2005-10-01  Jim Meyering  <jim@meyering.net>
10973
10974         Sync from coreutils.
10975         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
10976         in the inet and nsl libraries.  Required on Solaris 5.7.
10977
10978 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
10979
10980         * lib/getdelim.c (getdelim): Remove unused variables.
10981
10982 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
10983
10984         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
10985         so that the code works even with ancient cpp.  Portability problem
10986         with GCC 2.7.2.1 reported by Thomas M.Ott.
10987
10988 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
10989
10990         * modules/regex (Depends-on): Add strcase.
10991
10992         * modules/gethostname (Licence): Change from GPL to LGPL, since
10993         gethostname.c is a trivial implementation of a standard library
10994         function.
10995         * modules/poll (License): Change from GPL to LGPL, since it's
10996         derived from LGPL code.
10997
10998 2005-09-27  Jim Meyering  <jim@meyering.net>
10999
11000         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
11001         HAVE_CONFIG_H.
11002
11003         * lib/intprops.h (signed_type_or_expr__): Define.
11004         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
11005         for unsigned types.
11006
11007 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
11008
11009         * lib/verify.h (verify_expr): Remove, replacing with:
11010         (verify_true): New macro that returns true instead of void.
11011         (verify_type__): Remove.
11012         (verify): Use verify_true rather than verify_type__.
11013
11014 2005-09-26  Bruno Haible  <bruno@clisp.org>
11015
11016         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
11017         is necessary.
11018         (lib_SOURCES): Remove mbchar.c.
11019         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
11020         (Files): Add m4/mbrtowc.m4.
11021         * modules/mbiter: Likewise.
11022         * modules/mbuiter: Likewise.
11023
11024 2005-09-26  Bruno Haible  <bruno@clisp.org>
11025
11026         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
11027         compile mbchar.c if they are not both present.
11028         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
11029         * m4/mbiter.m4 (gl_MBITER): Likewise.
11030         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
11031         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
11032         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
11033
11034 2005-09-25  Jim Meyering  <jim@meyering.net>
11035
11036         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
11037         also uses socklen_t.
11038
11039 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
11040
11041         * lib/utimens.c (ENOSYS): Define if not already defined.
11042         (futimens): Support having a null PATH if the file descriptor
11043         is nonnegative.
11044
11045         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
11046         Remove.
11047         (__attribute): Define to empty unless GCC 3.1 or later.
11048         This works around a core dump on OpenBSD 3.4, which has GCC
11049         2.95.3, which dumps core when given __attribute__(()).  It also
11050         simplifies other tests, since we really don't want to bother with
11051         worrying about which ancient version of GCC supported what.
11052         Original problem reported by Yoann Vandoorselaere, with part of
11053         the fix suggested by Derek Price.
11054
11055 2005-09-24  Jim Meyering  <jim@meyering.net>
11056
11057         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
11058         so we can once again use a positive bitfield width of 1 -- now we
11059         don't have to explain why we were using a bitfield width of 2.
11060
11061 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
11062
11063         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
11064         and similarly for the other external symbols.  Problem reported
11065         by James Gallager.
11066
11067         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
11068         bug reported by Jim Meyering.
11069
11070         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
11071         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
11072         not needed, since socklen is a prerequisite module.
11073
11074 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
11075
11076         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
11077         Problem reported by Eric Blake.
11078         (getaddrinfo): Initialize se so that it's not garbage.
11079         Redo internal storage allocation so that it doesn't make unportable
11080         assumptions about alignment.
11081         Fix a memory leak.
11082
11083         * lib/utimens.c (futimens): Use futimesat if available.
11084         Prefer it to futimes since it doesn't have the futimes bug.
11085
11086         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
11087         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
11088         Instead, declare a function that returns a pointer to an array,
11089         and use verify_type__ to declare the size of the array.
11090         Problem and germ of a solution reported by Bruno Haible.
11091         (verify_type__): Use 2, not 1, for bitfield size, to avoid
11092         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
11093
11094 2005-09-23  Jim Meyering  <jim@meyering.net>
11095
11096         Sync from coreutils.
11097         Correct build failure (socklen_t not defined) on at least
11098         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
11099         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
11100
11101 2005-09-23  Jim Meyering  <jim@meyering.net>
11102
11103         * modules/getaddrinfo (Depends-on): Add socklen.
11104
11105 2005-09-23  Bruno Haible  <bruno@clisp.org>
11106
11107         * tests/test-verify.c: New file.
11108
11109 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
11110
11111         Sync from coreutils.
11112
11113         * modules/argmatch (Depends-on): Add verify.
11114         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
11115         unistd-safer.
11116         * modules/save-cwd (Depends-on): Likewise.
11117
11118         * modules/openat (Files): Add lib/openat-die.c.
11119         (Depends-on): Remove error, exitfail.
11120         Add dirname.
11121
11122         * modules/verify: New file.
11123         * MODULES.html.sh (Diagnostics <assert.h>): New section,
11124         with "verify" module.
11125
11126 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
11127
11128         Sync from coreutils.
11129
11130         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
11131         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
11132         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
11133         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
11134         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
11135         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
11136         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
11137         Don't bother checking for string.h, stdlib.h, unistd.h.
11138         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
11139         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
11140         module's job.
11141         * m4/jm-macros.m4 (gl_MACROS): Likewise.
11142         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
11143
11144         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
11145         (gl_GETDATE): Use it.
11146
11147         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
11148
11149 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
11150
11151         Sync from coreutils.
11152
11153         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
11154         stat-time.h.
11155         * lib/argmatch.h: Include verify.h
11156         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
11157         (ARGMATCH_ASSERT): Remove; unused.
11158         * lib/canonicalize.c: Assume STDC_HEADERS.
11159         * lib/exclude.c: Include "strcase.h".
11160         * lib/regex_internal.h [!defined _LIBC]: Likewise.
11161         * lib/getusershell.c: Include stdio--.h rather than stdio.h
11162         and stdio-safer.h.
11163         (getusershell): Call fopen, not fopen_safer.
11164         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
11165         Do not include unistd-safer.h.
11166         (save_cwd): Don't call fd_safer; no longer needed
11167         now that we include fcntl--.h.
11168
11169         * lib/getdate.y (relative_time): New type.
11170         (RELATIVE_TIME_0): New constant.
11171         (parser_control): Use relative_time instead of doing it ourselves.
11172         (%union): Add new relative_time rel member.
11173         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
11174         Now typeless.
11175         (relunit, relunit_snumber): Now of type rel.
11176         (zone, rel, relunit, get_date): Adjust to above changes.
11177
11178         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
11179         Do not include unistd-safer.h.
11180         (getloadavg): Don't call fd_safer; no longer needed
11181         now that we include fcntl--.h.
11182
11183         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
11184         (make_dir_parents): Treat ENOSYS like EEXIST.
11185
11186         Improve quality of diagnostics on restore_cwd failure.
11187         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
11188         (make_dir_parents): Last arg is now int * (for errno), not bool *.
11189         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
11190         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
11191         each time through the loop.  Do not diagnose restore_cwd failure;
11192         that is the caller's job (and perhaps the caller does not care).
11193
11194         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
11195         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
11196         If the file already exists but is not a directory, don't bother
11197         to try to make its parents.
11198         Close potential file descriptor leak if we can't chdir("/") (!).
11199         Don't always return true if chdir($PWD) fails; return true only
11200         if the requested action was done successfully (except for the
11201         chdir($PWD)).
11202         Don't log final directory unless we actually made it.
11203         Refactor to avoid duplicate code to fix up permissions.
11204         Don't attempt to fix up parent permissions if chdir($PWD) fails.
11205
11206         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
11207         to make it a bit faster and (I hope) clearer.
11208         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
11209         Fix bug in formats like %2N.
11210
11211         * lib/verify.h: New file.
11212
11213 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
11214
11215         Sync from coreutils.
11216         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
11217
11218 2005-09-22  Jim Meyering  <jim@meyering.net>
11219
11220         Sync from coreutils.
11221
11222         * m4/lstat.m4 (gl_FUNC_LSTAT):
11223         Use AC_LIBSOURCES to require lstat.c and lstat.h.
11224         Remove obsolete comment.
11225         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
11226         * m4/xstrtod.m4: Likewise.
11227
11228         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
11229
11230 2005-09-22  Jim Meyering  <jim@meyering.net>
11231
11232         Sync from coreutils.
11233
11234         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
11235
11236         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
11237         the .tm_year member, since otherwise gcc-4.0 would now warn about
11238         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
11239
11240         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
11241         order to avoid an unsuppressible warning from gcc on 64-bit systems.
11242
11243         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
11244         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
11245         when run in a time zone for which daylight savings time is in effect
11246         for the starting date.
11247
11248         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
11249         stop us from restricting permissions of just-created absolute-named
11250         directories.
11251         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
11252         to restore initial working directory.
11253         * lib/mkdir-p.c (make_dir_parents): New parameter:
11254         different_working_dir, to tell caller if/when we change the working
11255         directory and are unable to return to the initial one.
11256         * lib/mkdir-p.h (make_dir_parents): Update prototype.
11257         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
11258         `return false'.  This fixes a bug introduced on 2004-07-30.
11259
11260         * lib/openat.c (fdopendir): Be sure to close the supplied
11261         file descriptor before returning.  This makes our replacement
11262         implementation a little closer to Solaris's, where fdopendir
11263         ties the file descriptor to the returned DIR* pointer.
11264         * lib/openat.c (unlinkat): New function.
11265         * lib/openat.h (unlinkat): Add prototype.
11266         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
11267         (openat_restore_fail): Rename from openat_restore_die.
11268         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
11269
11270         Provide an alternative to exiting immediately upon save_cwd or
11271         restore_cwd failure.  Now, an application can arrange e.g.,
11272         to perform a longjump in that case.
11273         * lib/openat.c: Include dirname.h.
11274         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
11275         (rpl_openat, fdopendir, fstatat): Call openat_save_die
11276         and openat_restore_die rather than calling error directly.
11277         Don't include "error.h" or "exitfail.h"; they're no longer needed.
11278
11279         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
11280         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
11281         define.
11282
11283         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
11284         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
11285                             int utc, int nanoseconds);
11286         Background:
11287         date should not have to allocate a megabyte of virtual memory to
11288         handle a format argument like +%1048575T.  When implemented with
11289         strftime, it must allocate such a buffer, use strftime to fill it
11290         in, print it, then free it.
11291         With fprintftime, it simply prints everything and exits.
11292         With no need for memory allocation, that's one fewer way to fail.
11293         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
11294         optional field width, not before, so we accept %9:z, not %:9z.
11295         (my_strftime): Be sure to use L_('x') for literals.
11296
11297         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
11298         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
11299         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
11300         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
11301         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
11302         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
11303         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
11304         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
11305         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
11306         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
11307         * lib/xgethostname.c, lib/xreadlink.c:
11308         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
11309
11310         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
11311         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
11312         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
11313         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
11314         and don't include <sys/file.h>).
11315
11316 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
11317
11318         Sync from coreutils.
11319
11320         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
11321         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
11322         [!LDAV_DONE]: Avoid unused variable warning.
11323
11324 2005-09-21  Bruno Haible  <bruno@clisp.org>
11325
11326         * lib/unicodeio.h (unicode_to_mb): New declaration.
11327
11328 2005-09-20  Derek Price  <derek@ximbiot.com>
11329
11330         * lib/getaddrinfo.c: Don't include <netdb.h> included from
11331         getaddrinfo.h.
11332
11333 2005-09-20  Bruno Haible  <bruno@clisp.org>
11334
11335         * gnulib-tool: Remove trailing slashes from the values specified for
11336         --source-base, --m4-base, --tests-base, --aux-dir.
11337         Suggested by Simon Josefsson <jas@extundo.com>.
11338
11339 2005-09-20  Bruno Haible  <bruno@clisp.org>
11340
11341         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
11342         func_modules_to_filelist, func_import, func_create_testdir): Make all
11343         sorting results locale-independent, so that gnulib-cache.m4 doesn't
11344         change when gnulib-tool is invoked in a different locale.
11345
11346 2005-09-19  Simon Josefsson  <jas@extundo.com>
11347
11348         * m4/socklen.m4: Fix typo.
11349
11350 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11351
11352         Use a consistent style for including <config.h>.
11353         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
11354         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
11355         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
11356         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
11357         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
11358         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
11359         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
11360         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
11361         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
11362         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
11363         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
11364         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
11365         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
11366         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
11367         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
11368         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
11369         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
11370         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
11371         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
11372         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
11373         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
11374         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
11375         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
11376         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
11377         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
11378         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
11379         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
11380         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
11381         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
11382         lib/xstrtoumax.c, lib/yesno.c:
11383         Standardize inclusion of config.h.
11384         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
11385         lib/inttostr.h:  Removed inclusion of config.h from header files.
11386         * lib/inttostr.c:  Adjusted in-tree users.
11387         * lib/timespec.h: Remove superfluous warning to include config.h.
11388         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
11389         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
11390         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
11391         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
11392         config.h with HAVE_CONFIG_H.
11393
11394 2005-09-19  Jim Meyering  <jim@meyering.net>
11395
11396         * modules/pathmax (License): Change to LGPL.
11397
11398 2005-09-19  Derek Price  <derek@ximbiot.com>
11399
11400         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
11401
11402 2005-09-19  Bruno Haible  <bruno@clisp.org>
11403
11404         * gnulib-tool (import): Provide default for --tests-base.
11405
11406 2005-09-19  Bruno Haible  <bruno@clisp.org>
11407
11408         * doc/quote.texi: New file, extracted from gnulib.texi.
11409         * doc/ctime.texi: New file, extracted from gnulib.texi.
11410         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
11411         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
11412         * doc/gnulib.texi: Include them.
11413
11414 2005-09-18  Bruno Haible  <bruno@clisp.org>
11415
11416         Portability fix.
11417         * gnulib-tool (func_readlink): New function.
11418         (func_ln_if_changed): Use it.
11419
11420 2005-09-18  Bruno Haible  <bruno@clisp.org>
11421
11422         * gnulib-tool: Support --with-tests also with --import.
11423         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
11424         (func_import): Use variables $testsbase and $inctests. Emit a
11425         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
11426         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
11427         SUBDIRS += $testsdir.
11428         (func_create_testdir): Update.
11429
11430 2005-09-18  Bruno Haible  <bruno@clisp.org>
11431
11432         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
11433         instead of $dry_run.
11434         (func_cp_if_changed, func_mv_if_changed): Remove functions.
11435         (func_ln_if_changed): Don't handle dry-run here.
11436         (func_import): In dry-run mode, detect more precisely which actions
11437         would be performed, and don't use "...ing" verbs.
11438
11439 2005-09-18  Bruno Haible  <bruno@clisp.org>
11440
11441         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
11442         (func_import): Use join on two temporary files instead of three nested
11443         loops, in order to determine which files are new or old.
11444
11445 2005-09-18  Bruno Haible  <bruno@clisp.org>
11446
11447         * gnulib-tool (func_import): Comment out code that spits out the
11448         new files with --dry-run.
11449
11450 2005-09-18  Bruno Haible  <bruno@clisp.org>
11451
11452         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
11453
11454 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
11455
11456         * lib/stat-time.h: New file.
11457         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
11458         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
11459         in a different way.
11460         (timespec_cmp): New function.
11461         * lib/utimecmp.c: Include stat-time.h.
11462         (SYSCALL_RESOLUTION): Depend on whether various struct stat
11463         members exist, not on the obsolescent ST_MTIM_NSEC.
11464         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
11465
11466 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
11467
11468         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
11469
11470 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
11471
11472         * MODULES.html.sh (File system functions): Add stat-time.
11473         * modules/stat-time: New file.
11474         * modules/timespec (Files): Remove m4/st_mtim.m4; this
11475         is now done in a different way, by the stat-time module.
11476         * modules/utimecmp (Depends-on): Add stat-time.
11477
11478 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
11479
11480         * m4/st_mtim.m4: Remove.  Superseded by...
11481         * m4/stat-time.m4: New file.
11482         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
11483         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
11484
11485 2005-09-15  Derek Price  <derek@ximbiot.com>
11486
11487         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
11488
11489 2005-09-15  Derek Price  <derek@ximbiot.com>
11490
11491         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
11492         * lib/regex_internal.c: Ditto, using this...
11493         (__GNUC_PREREQ): ...new macro.
11494         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
11495         using...
11496         (__GNUC_PREREQ): ...this new macro.
11497
11498         * lib/strstr.h: Include string.h. Define strstr as a macro here.
11499
11500 2005-09-15  Derek Price  <derek@ximbiot.com>
11501             Paul Eggert  <eggert@cs.ucla.edu>
11502
11503         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
11504         changes, consolidating in...
11505         * lib/regex_internal.h: ...this file.
11506
11507 2005-09-13  Jim Meyering  <jim@meyering.net>
11508
11509         * lib/canon-host.c: Filter through gnu indent and reword comments
11510         slightly.
11511         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
11512
11513 2005-09-13  Derek Price  <derek@ximbiot.com>
11514
11515         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
11516         failure.
11517         Reported by Jim Meyering  <jim@meyering.net>.
11518
11519 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
11520
11521         * lib/base64.c: Typo.
11522         (base64_encode): Put b64str in initialized data section.
11523
11524 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
11525
11526         Merge glibc and coreutils changes into gnulib, plus a few
11527         extra fixes.
11528         * lib/md5.c: Use #error rather than a string.
11529         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
11530         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
11531         (__attribute__): Define to empty for non recent-GCC.
11532         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
11533         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
11534         Renamed from their non-__ counterparts, with new macros replacing
11535         them if not _LIBC.  Add __THROW attribute.
11536         (rol): Remove.
11537         (struct md5_ctx): Align buffer if using GCC.
11538         * lib/sha1.h (struct sha1_ctx): Likewise.
11539         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
11540         The old name was backwards.
11541         (NOTSWAP): Remove; not used.
11542         (rol): New macro, moved here from md5.h.
11543         (sha1_process_block): Remove a FIXME that doesn't make sense.
11544
11545 2005-09-12  Derek Price  <derek@ximbiot.com>
11546
11547         Return usable errors from canon-host.
11548         * lib/canon-host.h: New file.
11549         * lib/canon-host.c (canon_host): Wrap...
11550         (canon_host_r): ...this new function, which now relies exclusively on
11551         getaddrinfo.
11552         (ch_strerror): New function.
11553         (last_cherror): New global.
11554         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
11555         interface.
11556         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
11557         void *.
11558         (freeaddrinfo): Free ai->ai_canonname when set.
11559
11560 2005-09-12  Derek Price  <derek@ximbiot.com>
11561
11562         Make canon-host require getaddrinfo.
11563         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
11564         AC_LIBSOURCE canon-host.h.  Call...
11565         (gl_PREREQ_CANON_HOST): ...this new function, which requires
11566         gl_GETADDRINFO.
11567         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
11568
11569 2005-09-12  Derek Price  <derek@ximbiot.com>
11570
11571         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
11572         LGPL.
11573         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
11574
11575 2005-09-12  Derek Price  <derek@ximbiot.com>
11576
11577         * lib/gai_strerror.c: Include config.h when available.  Include
11578         getaddrinfo.h before other headers to test interface.
11579         Reported by Larry Jones <lawrence.jones@ugs.com>.
11580
11581 2005-09-12  Derek Price  <derek@ximbiot.com>
11582             Paul Eggert  <eggert@cs.ucla.edu>
11583
11584         * modules/glob (Files): Add glob-libc.h.
11585
11586 2005-09-12  Derek Price  <derek@ximbiot.com>
11587             Paul Eggert  <eggert@cs.ucla.edu>
11588
11589         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
11590         glob_.h, glob-libc.h.
11591         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
11592
11593 2005-09-12  Derek Price  <derek@ximbiot.com>
11594             Paul Eggert  <eggert@cs.ucla.edu>
11595
11596         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
11597         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
11598         protecting things that should be done only in gnulib contexts.
11599         * lib/glob_.h: New file, containing only the glob things needed for
11600         gnulib.
11601         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
11602         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
11603         (glob, globfree, glob_pattern_p): Now defined simply in terms of
11604         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
11605         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
11606         and to respect the namespace rules better.
11607
11608 2005-09-08  Simon Josefsson  <jas@extundo.com>
11609
11610         * modules/socklen: New file.
11611
11612 2005-09-08  Simon Josefsson  <jas@extundo.com>
11613
11614         * m4/socklen.m4: New file.
11615
11616 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
11617
11618         * modules/utimens (Files): Add m4/utimbuf.m4, since
11619         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
11620         Reported by Sergey Poznyakoff.
11621
11622 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
11623
11624         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
11625         definitions, since that's the preferred style in glibc.
11626         Fix a minor spacing issue, and update copyright notice to match
11627         glibc's.
11628
11629 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
11630
11631         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
11632
11633 2005-09-06  Simon Josefsson  <jas@extundo.com>
11634
11635         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
11636         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
11637
11638 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
11639
11640         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
11641         warning.
11642
11643 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
11644
11645         * config/srclist.txt: Add glibc bug 1302.
11646
11647 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
11648
11649         Change bitset word type from unsigned int to unsigned long int,
11650         as this has better performance on typical 64-bit hosts.
11651         Port bitset code to hosts with unusual word sizes.
11652         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
11653         (build_collating_symbol):
11654         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
11655         argument is a bitset.  This is merely a style issue, but it makes
11656         it clearer that an entire array is expected.
11657         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
11658         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
11659         Port to the case where bitset_word is not the same as unsigned int.
11660         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
11661         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
11662         Likewise.
11663         * lib/regexec.c (check_dst_limits_calc_pos_1,
11664         check_subexp_matching_top):
11665         (build_trtable, group_nodes_into_DFAstates):
11666         Likewise.
11667         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
11668         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
11669         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
11670         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
11671         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
11672         * lib/regcomp.c (optimize_subexps, lower_subexp):
11673         Work even if bitset_word has holes in its bitwise representation.
11674         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
11675         * lib/regexec.c (check_dst_limits_calc_pos_1,
11676         check_subexp_matching_top):
11677         Likewise.
11678         * lib/regex_internal.c (re_string_reconstruct):
11679         Don't assume UCHAR_MAX == 255.
11680         * lib/regex_internal.h (bitset_set_all): Likewise.
11681         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
11682         All uses changed.
11683         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
11684         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
11685         All uses changed.
11686         (BITSET_WORD_MAX): New macro.
11687         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
11688         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
11689         (bitset_empty, bitset_copy):
11690         Prefer sizeof (bitset) to multiplying it out ourselves.
11691         (bitset_not_merge): Remove; unused.
11692         (bitset_contain): Return bool, not unsigned int with one bit on.
11693         All callers changed.
11694         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
11695         alignment than re_node_set; do this by defining a new internal
11696         type struct dests_alloc and using it to allocate memory.
11697
11698 2005-09-05  Bruno Haible  <bruno@clisp.org>
11699
11700         * gnulib-tool (func_import): Fix comparison in handling of symbolic
11701         links.
11702
11703 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
11704
11705         * modules/size_max (Makefile.am): Add size_max.h
11706
11707 2005-09-04  Derek Price  <derek@ximbiot.com>
11708
11709         * gnulib-tool (func_import): Fix reversed $symbolic logic.
11710
11711 2005-09-03  Simon Josefsson  <jas@extundo.com>
11712
11713         * gnulib-tool: Fix typo.
11714
11715 2005-09-03  Simon Josefsson  <jas@extundo.com>
11716
11717         * config/srclist.txt: Add glibc bug 1293.
11718
11719 2005-09-03  Derek Price  <derek@ximbiot.com>
11720
11721         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
11722         From Larry Jones <lawrence.jones@ugs.com>.
11723
11724 2005-09-02  Simon Josefsson  <jas@extundo.com>
11725
11726         * modules/socklen: New file.
11727
11728 2005-09-02  Simon Josefsson  <jas@extundo.com>
11729
11730         * modules/havelib: New module.
11731
11732         * modules/gettext, modules/iconv, modules/lock, modules/readline:
11733         Use havelib.
11734
11735 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
11736
11737         Check for arithmetic overflow when calculating sizes, to prevent
11738         some buffer-overflow issues.  These patches are conservative, in the
11739         sense that when I couldn't determine whether an overflow was possible,
11740         I inserted a run-time check.
11741         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
11742         macros.
11743         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
11744         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
11745         (re_xnrealloc, re_x2nrealloc): New inline functions.
11746         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
11747         parse_bracket_exp):
11748         (build_equiv_class, build_charclass): Check for arithmetic overflow
11749         in size expression calculations.
11750         * lib/regex_internal.c (re_string_realloc_buffers):
11751         (build_wcs_upper_buffer, re_node_set_add_intersect):
11752         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
11753         (re_dfa_add_node, register_state): Likewise.
11754         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
11755         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
11756         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
11757         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
11758
11759 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
11760
11761         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
11762         m4/ulonglong.m4.  Problem reported by Martin Lambers.
11763
11764 2005-09-02  Bruno Haible  <bruno@clisp.org>
11765
11766         Support for lib vs. lib64 distinction on biarch platforms.
11767         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
11768         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
11769         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
11770
11771 2005-09-02  Bruno Haible  <bruno@clisp.org>
11772
11773         * gnulib-tool (import): In the other first-use case, provide defaults
11774         as well.
11775
11776 2005-09-02  Bruno Haible  <bruno@clisp.org>
11777
11778         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
11779         patches not yet found in the latest gettext release.
11780
11781 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
11782
11783         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
11784         to avoid a collision with bits/local_lim.h in glibc.
11785         All uses changed.  Problem reported by Dmitry V. Levin in
11786         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
11787
11788         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
11789         bugs in int versus size_t comparisons.
11790         (re_string_context_at): Fix bug where the code assumed that
11791         Idx is signed.
11792
11793         Use bool where appropriate.
11794         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
11795         All callers changed.
11796         (calc_eclosure_iter): Likewise, for ROOT arg.
11797         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
11798         (build_charclass_op): Likewise, for NON_MATCH arg.
11799         * lib/regex_internal.c (re_string_allocate, re_string_construct):
11800         (re_string_construct_common): Likewise, for ICASE arg.
11801         * lib/regexec.c (re_search_2_stub, re_search_stub):
11802         Likewise, for RET_LEN arg.
11803         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
11804         (set_regs): Likewise, for FL_BACKTRACK arg.
11805         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
11806         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
11807         (calc_eclosure_iter, parse_bracket_exp):
11808         Use bool for internal variables that are booleans.
11809         * lib/regexec.c (re_search_internal, check_matching,
11810         proceed_next_node):
11811         (set_regs, build_sifted_states, sift_states_bkref):
11812         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
11813         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
11814         (find_collation_sequence_value):
11815         Likewise.
11816         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
11817         (re_node_set_compare):
11818         Return bool, not int. All callers changed.
11819         * lib/regexec.c (check_halt_node_context, check_dst_limits):
11820         (build_trtable, check_node_accept): Likewise.
11821         * lib/regex_internal.h: Include stdbool.h.
11822
11823         Fix bugs uncovered when converting to bool.
11824         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
11825         failure instead of charging ahead blindly.
11826         * lib/regex_internal.c (register_state): Likewise.
11827         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
11828         for freeing internal storage.
11829         (group_nodes_into_DFA_states): Use unsigned int, not int, for
11830         bitset pieces used as boolean, to avoid undefined behavior
11831         on hosts that do int overflow checking.
11832
11833 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
11834
11835         * config/srclist.txt: Add glibc bugs 1285-1287.
11836
11837 2005-09-01  Jim Meyering  <jim@meyering.net>
11838
11839         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
11840         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
11841         Require gl_STAT_MACROS, too.
11842
11843 2005-09-01  Bruno Haible  <bruno@clisp.org>
11844
11845         * gnulib-tool (import): In the first-use case, provide defaults.
11846
11847 2005-09-01  Bruno Haible  <bruno@clisp.org>
11848
11849         * gnulib-tool (func_import): Remove the .tmp files.
11850
11851 2005-09-01  Bruno Haible  <bruno@clisp.org>
11852
11853         * gnulib-tool (func_import): Fix handling of symbolic links.
11854
11855 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
11856
11857         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
11858         old glibc regex code mishandles strings longer than 2**31 bytes.
11859         This patch fixes this when the regex code is used in gnulib
11860         (i.e., outside glibc).
11861
11862         This patch should not affect the use of the regex code inside
11863         glibc.  No doubt this problem also needs to be handled for glibc
11864         as well, but the result will be an incompatible change to the
11865         glibc ABI, and the old ABI will have to be supported too.  That
11866         can be the the subject for another patch.
11867
11868         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
11869         governing whether the rest of this patch is active.  By default,
11870         the macro is disabled and the patch has no effect.
11871         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
11872         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
11873         (struct re_pattern_buffer, re_search, re_search_2, re_match):
11874         (re_match_2, re_set_registers): Use the new types.
11875         * lib/regex_internal.h (Idx, re_hashval_t): New types.
11876         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
11877         New macros.
11878         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
11879         (re_string_context_at, bin_tree_t, re_dfastate_t):
11880         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
11881         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
11882         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
11883         (re_string_char_size_at, re_string_wchar_at):
11884         (re_string_elem_size_at):
11885         Use the new types and macros to port to 64-bit hosts.
11886         Use unsigned types for internal values, so that the code
11887         mostly works even for arrays larger than SSIZE_MAX.
11888         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
11889         (search_duplicated_node, calc_eclosure_iter, fetch_number):
11890         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
11891         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
11892         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
11893         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
11894         (calc_inveclosure, parse_dup_op, build_range_exp):
11895         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
11896         (fetch_number, create_token_tree, mark_opt_subexp):
11897         Likewise.
11898         * lib/regex_internal.c (re_string_construct_common,
11899         create_ci_newstate):
11900         (create_cd_newstate, re_string_allocate, re_string_construct):
11901         (re_string_realloc_buffers, build_wcs_upper_buffer):
11902         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
11903         (re_string_reconstruct, re_string_peek_byte_case):
11904         (re_string_fetch_byte_case, re_string_context_at):
11905         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
11906         (re_node_set_init_copy, re_node_set_add_intersect):
11907         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
11908         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
11909         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
11910         (re_acquire_state, re_acquire_state_context, register_state):
11911         Likewise.
11912         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
11913         search_cur_bkref_entry):
11914         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
11915         (re_search_internal, re_search_2_stub, re_search_stub)
11916         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
11917         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
11918         (update_cur_sifted_state, check_dst_limits):
11919         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
11920         (check_subexp_limits, sift_states_bkref, merge_state_array):
11921         (check_subexp_matching_top, get_subexp, get_subexp_sub):
11922         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
11923         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
11924         (expand_bkref_cache, check_node_accept_bytes):
11925         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
11926         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
11927         (acquire_init_state_context, check_halt_node_context):
11928         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
11929         (sift_states_backward, clean_state_log_if_needed):
11930         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
11931         (find_recover_state, transit_state_sb, transit_state_mb):
11932         (transit_state_bkref, build_trtable, match_ctx_clean):
11933         Likewise.
11934         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
11935         to work around an assumption that REG_MISSING is negative.
11936
11937         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
11938         (seek_collating_symbol_entry) [defined _LIBC]:
11939         (lookup_collation_sequence_value) [defined _LIBC]:
11940         (build_range_exp, build_collating_symbol) [defined _LIBC]:
11941         Use prototypes rather than old-style function definitions.
11942         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
11943         (transit_state_sb) [0]:
11944         (find_collation_sequence_value) [defined _LIBC]: Likewise.
11945
11946         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
11947         rm_eo.
11948
11949         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
11950         (optimize_subexps, lower_subexp):
11951         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
11952         since the signed shift might overflow.  Use 1u<<31 instead.
11953         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
11954         Likewise.
11955         * lib/regexec.c (check_dst_limits_calc_pos_1,
11956         check_subexp_matching_top): Likewise.
11957
11958         * lib/regcomp.c (optimize_subexps, lower_subexp):
11959         Use CHAR_BIT rather than 8, for clarity.
11960         * lib/regexec.c (check_dst_limits_calc_pos_1):
11961         (check_subexp_matching_top): Likewise.
11962         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
11963         have to worry about portability issues when shifting it left.
11964         Remove no-longer-needed test for table_size > 0.
11965         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
11966         in a word, as the resulting behavior is undefined.
11967         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
11968         in one case, a <= should have been an <, and in another case the
11969         whole test was missing.
11970         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
11971         the standard name CHAR_BIT.
11972         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
11973         this is not true on one's complement and signed-magnitude hosts.
11974
11975         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
11976         next_last_offset.
11977         (struct re_dfa_t): Remove unused member states_alloc.
11978         * lib/regcomp.c (init_dfa): Don't initialize unused members.
11979
11980 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
11981
11982         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
11983         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
11984         and large-file glibc and in 32-bit large-file Solaris.
11985
11986 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
11987
11988         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
11989         lengths fit in regoff_t; this isn't true if regoff_t is the same
11990         width as size_t.
11991         * lib/regex.c (re_search_internal): 5th arg is LAST_START
11992         (= START + RANGE) instead of RANGE.  This avoids overflow
11993         problems when regoff_t is the same width as size_t.
11994         All callers changed.
11995         (re_search_2_stub): Check for overflow when adding the
11996         sizes of the two strings.
11997         (re_search_stub): Check for overflow when adding START
11998         to RANGE; if it occurs, substitute the extreme value.
11999
12000 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
12001
12002         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
12003
12004 2005-08-31  Jim Meyering  <jim@meyering.net>
12005
12006         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
12007         a pointer-to-const.
12008         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
12009         (register_state): Likewise.
12010         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
12011         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
12012         (group_nodes_into_DFAstates): Likewise.
12013
12014 2005-08-31  Jim Meyering  <jim@meyering.net>
12015
12016         * check-module: Add a FIXME comment.
12017
12018 2005-08-31  Eric Blake  <ebb9@byu.net>
12019
12020         * modules/unistd-safer (Files): Add unistd--.h.
12021         * modules/stdio-safer (Files): Add stdio--.h.
12022
12023 2005-08-31  Derek Price  <derek@ximbiot.com>
12024
12025         * lib/getdelim.c (getdelim): Return EOF on EOF.
12026         Reported by Larry Jones <lawrence.jones@ugs.com>.
12027
12028 2005-08-31  Bruno Haible  <bruno@clisp.org>
12029
12030         Avoid unnecessary diffs in the generated lib/Makefile.am.
12031         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
12032         the generated files.
12033         (func_import): Don't set cmd.
12034
12035 2005-08-31  Bruno Haible  <bruno@clisp.org>
12036
12037         * lib/strstr.c: Include <stddef.h>, for NULL.
12038         * lib/strcasestr.c: Likewise.
12039         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
12040
12041 2005-08-31  Bruno Haible  <bruno@clisp.org>
12042
12043         * gnulib-tool: New option --macro-prefix.
12044         (func_import): Use macro_prefix.
12045         (import): Handle option --macro-prefix.
12046
12047 2005-08-31  Bruno Haible  <bruno@clisp.org>
12048
12049         * gnulib-tool (import): Rename most ac_* variables to cached_*.
12050         Also use new variables cached_lgpl, cached_libtool.
12051
12052 2005-08-31  Bruno Haible  <bruno@clisp.org>
12053
12054         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
12055         always instantiating them.
12056
12057 2005-08-31  Bruno Haible  <bruno@clisp.org>
12058
12059         * gnulib-tool (func_import): Read the previous cached settings
12060         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
12061         earlier added by gnulib but are now dropped. Warn when a gnulib file
12062         overwrites a non-gnulib file.
12063
12064 2005-08-31  Bruno Haible  <bruno@clisp.org>
12065
12066         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
12067         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
12068         projects that don't keep autogenerated files in CVS. Put into
12069         actioncmd only the specified modules, not the transitive closure.
12070
12071 2005-08-31  Bruno Haible  <bruno@clisp.org>
12072
12073         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
12074         Create directories that shall be filled.
12075         (import): Don't look for gl_* macros in configure.ac. Recurse across
12076         all directories containing a gnulib-cache.m4 files, if meaningful.
12077
12078 2005-08-31  Bruno Haible  <bruno@clisp.org>
12079
12080         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
12081         (import): Set seen_libtool when we see gl_LIBTOOL.
12082
12083 2005-08-31  Bruno Haible  <bruno@clisp.org>
12084
12085         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
12086         declaration macro definitions from generated gnulib.m4.
12087
12088 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
12089
12090         * lib/iconvme.h: Add prototype for iconv_alloc.
12091
12092 2005-08-29  Simon Josefsson  <jas@extundo.com>
12093
12094         * lib/iconvme.c: Fix errno.
12095
12096 2005-08-29  Bruno Haible  <bruno@clisp.org>
12097
12098         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
12099         that it works when the directory contains spaces.
12100
12101 2005-08-29  Bruno Haible  <bruno@clisp.org>
12102
12103         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
12104
12105 2005-08-29  Bruno Haible  <bruno@clisp.org>
12106
12107         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
12108         Emit more advice.
12109
12110 2005-08-29  Bruno Haible  <bruno@clisp.org>
12111         and Stepan Kasal  <kasal@ucw.cz>
12112
12113         * check-module: If more parameters are given, check each of them
12114         separately; add more exceptions, as noted by Jim Meyering.
12115         (check_module): New procedure.
12116         (%exempt_header): Now contains all exceptions.
12117
12118 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
12119
12120         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
12121
12122 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
12123
12124         * lib/iconvme.c: Split iconv_string into iconv_alloc.
12125
12126 2005-08-28  Bruno Haible  <bruno@clisp.org>
12127
12128         * m4/gnulib-tool.m4: New file.
12129
12130 2005-08-27  Jim Meyering  <jim@meyering.net>
12131
12132         * modules/unistd-safer (Files): Add pipe-safer.c.
12133         * modules/fcntl-safer (Files): Add creat-safer.c.
12134
12135 2005-08-27  Jim Meyering  <jim@meyering.net>
12136
12137         * m4/stdlib-safer.m4: New file.  From coreutils.
12138         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
12139         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
12140         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
12141         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
12142         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
12143
12144 2005-08-27  Jim Meyering  <jim@meyering.net>
12145
12146         * lib/fopen-safer.c: Merge minor changes from coreutils.
12147         * lib/dup-safer.c: Likewise.
12148         * lib/fd-safer.c: Likewise.
12149
12150         Merge from coreutils.
12151         * lib/stdio--.h: New file.
12152         * lib/stdlib--.h: New file.
12153         * lib/mkstemp-safer.c: New file.
12154
12155         GNU tar needs these.
12156         * lib/pipe-safer.c: New file.
12157         * lib/creat-safer.c: New file.
12158         * lib/fcntl--.h (creat): Define to creat_safer.
12159         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
12160         * lib/unistd--.h (pipe): Define to pipe_safer.
12161         * lib/unistd-safer.h: Declare pipe_safer.
12162
12163 2005-08-26  Simon Josefsson  <jas@extundo.com>
12164
12165         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
12166         Haible <bruno@clisp.org>.
12167
12168 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
12169
12170         * lib/regex_internal.h: Remove all references to
12171         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
12172         or better.
12173         (bitset_not, bitset_merge, bitset_not_merge):
12174         (bitset_mask, re_string_allocate, re_string_construct):
12175         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
12176         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
12177         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
12178         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
12179         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
12180         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
12181         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
12182         (re_acquire_state_context):
12183         Remove unnecessary forward decls.
12184         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
12185         Put __attribute at function definition,
12186         now that the function decl has been removed.
12187         * lib/regex_internal.c (re_string_peek_byte_case):
12188         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
12189         Likewise.
12190
12191 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
12192
12193         * m4/regex.m4: Add AC_PREREQ(2.50).
12194         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
12195
12196 2005-08-25  Simon Josefsson  <jas@extundo.com>
12197
12198         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
12199         __fsetlocking.
12200
12201 2005-08-25  Simon Josefsson  <jas@extundo.com>
12202
12203         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
12204         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
12205         GLIBC specific code.
12206
12207 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
12208
12209         Make regex safe for g++.  This fixes one real bug (an "err"
12210         that should have been "*err").  g++ problem reported by
12211         Sam Steingold.
12212         * lib/regex_internal.h (re_calloc): New macro, consistent with
12213         re_malloc etc.  All callers of calloc changed to use re_calloc.
12214         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
12215         not int.  All callers changed.
12216         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
12217         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
12218         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
12219         (find_recover_state): Change "err" to "*err"; this fixes what
12220         appears to be a real bug.
12221         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
12222         versus int.
12223
12224 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
12225
12226         * modules/regex (Depends-on): Add malloc, since the code
12227         assumes that !malloc(0) means failure.
12228
12229 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
12230
12231         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
12232
12233         alloca modernization/simplification for regex.
12234         * lib/regex.c: Remove portability cruft for alloca.  This no longer
12235         needs to be at the start of the file, and can be moved into
12236         regex_internal.h and simplified.
12237         * lib/regex_internal.h: Include <alloca.h>.
12238         (__libc_use_alloca) [!defined _LIBC]: New macro.
12239         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
12240         now works outside glibc.
12241
12242 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
12243
12244         * config/srclist.txt: Add glibc bugs 1241, 1245.
12245
12246 2005-08-25  Jim Meyering  <jim@meyering.net>
12247
12248         * lib/open-safer.c: Include <config.h>.
12249         Otherwise, we'd lose LARGEFILE support in any file using
12250         e.g. "fcntl--.h"
12251
12252 2005-08-25  Bruno Haible  <bruno@clisp.org>
12253
12254         * m4/minmax.m4: Require autoconf 2.52.
12255         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
12256         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
12257         alternatives of translit over the alphabet.
12258         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
12259
12260 2005-08-24  Simon Josefsson  <jas@extundo.com>
12261
12262         * tests/test-getpass.c: New file.
12263
12264 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
12265
12266         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
12267         for GNU regex features.
12268
12269 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
12270
12271         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
12272         * lib/regex.h (regerror): Likewise.
12273
12274         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
12275         requires this.  (The code never needed it.)
12276
12277         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
12278         All uses of recently-renamed identifiers changed to use the new,
12279         POSIX-compliant names.  The code will build and run just fine
12280         without these changes, but it's better to eat our own dog food
12281         and use the standard-conforming names.
12282
12283         * lib/regex.h: Fix a multitude of POSIX name space violations.
12284         These changes have an effect only for programs that define
12285         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
12286         do not change anything for programs compiled in the normal way.
12287         Also, there is no effect on the ABI.
12288
12289         (_REGEX_SOURCE): New macro.
12290         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
12291         defined and _GNU_SOURCE is not; this fixes a name space violation.
12292
12293         Rename the following macros to obey POSIX requirements.
12294         The old names are still visible as macros if _REGEX_SOURCE is defined.
12295         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
12296         RE_BACKSLASH_ESCAPE_IN_LISTS.
12297         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
12298         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
12299         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
12300         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
12301         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
12302         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
12303         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
12304         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
12305         (REG_INTERVALS): renamed from RE_INTERVALS.
12306         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
12307         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
12308         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
12309         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
12310         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
12311         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
12312         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
12313         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
12314         RE_UNMATCHED_RIGHT_PAREN_ORD.
12315         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
12316         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
12317         (REG_DEBUG): renamed from RE_DEBUG.
12318         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
12319         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
12320         unusual, since we can't clash with the POSIX REG_ICASE.
12321         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
12322         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
12323         (REG_NO_SUB): renamed from RE_NO_SUB.
12324         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
12325         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
12326         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
12327         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
12328         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
12329         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
12330         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
12331         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
12332         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
12333         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
12334         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
12335         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
12336         RE_SYNTAX_POSIX_MINIMAL_BASIC.
12337         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
12338         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
12339         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
12340         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
12341         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
12342         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
12343         (REG_FIXED): Renamed from REGS_FIXED.
12344         (REG_NREGS): Renamed from RE_NREGS.
12345
12346         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
12347         of other REG_* macros, since POSIX says the user is allowed to
12348         #undef these macros selectively.
12349
12350         (reg_errcode_t): Update comment stating what other tables need
12351         to be consistent.
12352
12353         Rename the following enum values to obey POSIX requirements.
12354         The old names are still visible as macros.
12355         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
12356         is not defined, since GNU is supposed to be a superset of POSIX as
12357         much as possible, and since we want reg_errcode_t to be a signed
12358         type for implementation consistency.
12359         (_REG_NOERROR): Renamed from REG_NOERROR.
12360         (_REG_NOMATCH): Renamed from REG_NOMATCH.
12361         (_REG_BADPAT): Renamed from REG_BADPAT.
12362         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
12363         (_REG_ECTYPE): Renamed from REG_ECTYPE.
12364         (_REG_EESCAPE): Renamed from REG_EESCAPE.
12365         (_REG_ESUBREG): Renamed from REG_ESUBREG.
12366         (_REG_EBRACK): Renamed from REG_EBRACK.
12367         (_REG_EPAREN): Renamed from REG_EPAREN.
12368         (_REG_EBRACE): Renamed from REG_EBRACE.
12369         (_REG_BADBR): Renamed from REG_BADBR.
12370         (_REG_ERANGE): Renamed from REG_ERANGE.
12371         (_REG_ESPACE): Renamed from REG_ESPACE.
12372         (_REG_BADRPT): Renamed from REG_BADRPT.
12373         (_REG_EEND): Renamed from REG_EEND.
12374         (_REG_ESIZE): Renamed from REG_ESIZE.
12375         (_REG_ERPAREN): Renamed from REG_ERPAREN.
12376         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
12377         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
12378         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
12379         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
12380
12381         (_REG_RE_NAME, _REG_RM_NAME): New macros.
12382         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
12383         changed.  But support the old name if the new one is not defined
12384         and if _REGEX_SOURCE.
12385
12386         Change the following member names in struct re_pattern_buffer.
12387         The old names are still supported if !_REGEX_SOURCE.
12388         The new names are always supported, regardless of _REGEX_SOURCE.
12389         (re_buffer): Renamed from buffer.
12390         (re_allocated): Renamed from allocated.
12391         (re_used): Renamed from used.
12392         (re_syntax): Renamed from syntax.
12393         (re_fastmap): Renamed from fastmap.
12394         (re_translate): Renamed from translate.
12395         (re_can_be_null): Renamed from can_be_null.
12396         (re_regs_allocated): Renamed from regs_allocated.
12397         (re_fastmap_accurate): Renamed from fastmap_accurate.
12398         (re_no_sub): Renamed from no_sub.
12399         (re_not_bol): Renamed from not_bol.
12400         (re_not_eol): Renamed from not_eol.
12401         (re_newline_anchor): Renamed from newline_anchor.
12402
12403         Change the following member names in struct re_registers.
12404         The old names are still supported if !_REGEX_SOURCE.
12405         The new names are always supported, regardless of _REGEX_SOURCE.
12406         (rm_num_regs): Renamed from num_regs.
12407         (rm_start): Renamed from start.
12408         (rm_end): Renamed from end.
12409
12410         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
12411         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
12412         Prepend __ to parameter names.
12413
12414         Undo yesterday's changes.
12415
12416 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
12417
12418         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
12419         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
12420         lib/regex.c.
12421
12422 2005-08-24  Jim Meyering  <jim@meyering.net>
12423
12424         Sync from coreutils.
12425         * m4/fcntl-safer.m4: New file.
12426
12427         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
12428         and object files for this module.
12429
12430 2005-08-24  Jim Meyering  <jim@meyering.net>
12431
12432         Sync from coreutils.
12433         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
12434
12435 2005-08-24  Jim Meyering  <jim@meyering.net>
12436
12437         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
12438         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
12439
12440 2005-08-24  Jim Meyering  <jim@meyering.net>
12441
12442         * modules/fcntl-safer: New module.
12443         * modules/fts (Depends-on): Add fcntl-safer.
12444         * MODULES.html.sh (File descriptor based Input/Output):
12445         Add fcntl-safer.
12446
12447 2005-08-24  Bruno Haible  <bruno@clisp.org>
12448
12449         Support for unit test modules.
12450         * modules/README: Mention tests modules.
12451         * modules/TEMPLATE-TESTS: New file.
12452         * gnulib-tool: New options --extract-tests-module, --with-tests and
12453         --tests-base (unused for the moment).
12454         (testsbase, inctests): New variables.
12455         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
12456         (func_verify_module): Exclude TEMPLATE-TESTS.
12457         (func_verify_nontests_module, func_verify_tests_module): New functions.
12458         (func_get_dependencies): Add implicit dependency for tests modules.
12459         (func_get_tests_module): New function.
12460         (func_modules_transitive_closure): When --with-tests was specified,
12461         include the unit tests as well, unless explicitly avoided.
12462         (func_emit_lib_Makefile_am): Ignore the tests modules here.
12463         (func_emit_tests_Makefile_am): New function.
12464         (func_create_testdir): When --with-tests was specified, emit a
12465         tests/ directory.
12466         * MODULES.html.sh (Future developments): Update.
12467
12468 2005-08-24  Bruno Haible  <bruno@clisp.org>
12469
12470         * modules/tls-tests: New file.
12471         * tests/test-tls.c: New file, from GNU gettext.
12472
12473 2005-08-24  Bruno Haible  <bruno@clisp.org>
12474
12475         * modules/lock-tests: New file.
12476         * tests/test-lock.c: New file, from GNU gettext.
12477
12478 2005-08-24  Bruno Haible  <bruno@clisp.org>
12479
12480         * lib/lock.h: Add multiple inclusion guard.
12481         * lib/tls.h: Add multiple inclusion guard.
12482
12483 2005-08-24  Bruno Haible  <bruno@clisp.org>
12484
12485         * gnulib-tool: Add support for the --aux-dir option to
12486         --create-testdir, --create-megatestdir, --test, --megatest.
12487         (func_create_testdir, func_create_megatestdir): Optionally emit a
12488         AC_CONFIG_AUX_DIR directive.
12489         (create-testdir, create-megatestdir, test, megatest): Provide a
12490         default value for $auxdir.
12491
12492 2005-08-24  Bruno Haible  <bruno@clisp.org>
12493
12494         * gnulib-tool (import): Use compound statement instead of subshell
12495         where possible.
12496
12497 2005-08-24  Bruno Haible  <bruno@clisp.org>
12498
12499         * gnulib-tool (import): Change --aux-dir default to "build-aux".
12500
12501 2005-08-24  Bruno Haible  <bruno@clisp.org>
12502
12503         * gnulib-tool (func_version): Update.
12504
12505 2005-08-24  Bruno Haible  <bruno@clisp.org>
12506
12507         * gnulib-tool (func_import, func_create_testdir,
12508         func_create_megatestdir): Quote all autoconf macro arguments.
12509
12510 2005-08-24  Bruno Haible  <bruno@clisp.org>
12511
12512         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
12513         option --force, because --force causes the aclocal.m4 of each
12514         subdirectory to be newer than the corresponding config.h.in.
12515
12516 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
12517
12518         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
12519         All contents moved to gl_REGEX.
12520         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
12521         assume that it does.
12522
12523 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
12524
12525         * lib/regex.h (REG_NOSYS)
12526         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
12527         Define, since POSIX requires it as of 2001.
12528         (_REG_ENOSYS)
12529         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
12530         New private symbol, used to keep the enum signed in all cases.
12531         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
12532         Youngman in
12533         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
12534
12535         * lib/regex_internal.c (re_string_skip_chars, register_state):
12536         (calc_state_hash):
12537         Remove forward decls; no longer needed now that we use prototypes.
12538         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
12539         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
12540         (clean_state_log_if_needed): Likewise.
12541
12542 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
12543
12544         * config/srclist.txt: Add glibc bugs 1231-1233.
12545
12546 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
12547
12548         Fix problems reported by Sam Steingold in
12549         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
12550         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
12551         assumed that reg_errcode_t is a signed type, which is not
12552         necessarily true if _XOPEN_SOURCE is not defined.
12553         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
12554         since some compilers warn about it otherwise.
12555
12556 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
12557
12558         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
12559         (init_word_char, create_initial_state, duplicate_node_closure):
12560         (fetch_token, peek_token_bracket, build_range_exp):
12561         (build_collating_symbol): Remove forward decls; no longer needed
12562         now that we use prototypes.
12563
12564         * lib/regcomp.c:
12565         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
12566         (re_compile_fastmap_iter, regcomp, regerror, regfree):
12567         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
12568         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
12569         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
12570         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
12571         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
12572         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
12573         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
12574         (build_range_exp, build_collating_symbol, parse_bracket_exp):
12575         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
12576         (build_charclass, build_charclass_op, fetch_number, create_tree):
12577         (create_token_tree, mark_opt_subexp, duplicate_tree):
12578         Use prototypes rather than old-style definitions.
12579
12580         * lib/regex_internal.c:
12581         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
12582         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
12583         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
12584         (re_string_reconstruct, re_string_peek_byte_case):
12585         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
12586         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
12587         (re_node_set_init_copy, re_node_set_add_intersect):
12588         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
12589         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
12590         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
12591         (re_acquire_state, re_acquire_state_context, register_state):
12592         (create_ci_newstate, create_cd_newstate, free_state):
12593         Likewise.
12594         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
12595         re_search_2):
12596         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
12597         (re_search_internal, prune_impossible_nodes):
12598         (acquire_init_state_context, check_matching, static):
12599         (check_halt_node_context, check_halt_state_context, proceed_next_node):
12600         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
12601         (update_regs, sift_states_backward, build_sifted_states):
12602         (clean_state_log_if_needed, merge_state_array):
12603         (update_cur_sifted_state, add_epsilon_src_nodes):
12604         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
12605         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
12606         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
12607         (find_recover_state, check_subexp_matching_top, transit_state_mb):
12608         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
12609         (check_arrival, check_arrival_add_next_nodes):
12610         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
12611         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
12612         (check_node_accept_bytes, check_node_accept, extend_buffers):
12613         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
12614         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
12615         (sift_ctx_init):
12616         Likewise.
12617
12618         * lib/regex_internal.h:
12619         (re_string_allocate, re_string_construct, re_string_reconstruct):
12620         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
12621         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
12622         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
12623         (re_string_context_at, re_string_peek_byte_case):
12624         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
12625         is defined, since we now use prototypes always.
12626
12627         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
12628         C89 or better.  All uses removed.
12629
12630 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
12631
12632         * config/srclist.txt: Add glibc bugs 1220-1227.
12633
12634 2005-08-20  Jim Meyering  <jim@meyering.net>
12635
12636         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
12637         of unused local, dfa.
12638
12639 2005-08-20  Bruno Haible  <bruno@clisp.org>
12640
12641         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
12642
12643 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
12644
12645         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
12646         (re_node_set_insert_last, re_dfa_add_node):
12647         Rename local variables to avoid GCC shadowing warnings.
12648
12649 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
12650
12651         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
12652         [defined lint]: Suppress bogus uninitialized-variable warnings.
12653
12654         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
12655         and let the caller return REG_ESPACE if out of space.  This
12656         removes an uninitialied-variable warning with GCC 4.0.1, and also
12657         avoids taking the address of a local variable.  All callers
12658         changed.
12659
12660 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
12661
12662         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
12663         $LIBCSRC/posix/regexec.c.
12664         Add glibc bug 1217 for regcomp.c.
12665
12666 2005-08-19  Jim Meyering  <jim@meyering.net>
12667
12668         * lib/regexec.c (proceed_next_node): Redo local variables to
12669         avoid GCC shadowing warnings.
12670
12671 2005-08-18  Bruno Haible  <bruno@clisp.org>
12672
12673         * lib/strstr.c (strstr): Fix return value in multibyte case.
12674         * lib/strcasestr.c (strcasestr): Likewise.
12675
12676 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
12677
12678         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
12679
12680 2005-08-17  Jim Meyering  <jim@meyering.net>
12681
12682         Make the %s format (seconds since the epoch) work for a negative
12683         number and when used with a zero-padded field width, e.g. %015s.
12684
12685         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
12686         label so that it precedes the code to set `digits'.  Otherwise,
12687         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
12688         print `00-22'.  Now, it prints `-0022', as it should.
12689
12690 2005-08-17  Bruno Haible  <bruno@clisp.org>
12691
12692         * modules/strstr (Files): Add m4/mbrtowc.m4.
12693         (Depends-on): Add mbuiter.
12694
12695 2005-08-17  Bruno Haible  <bruno@clisp.org>
12696
12697         * modules/strcasestr: New file.
12698         * MODULES.html.sh (String handling, based on ANSI C 89): Add
12699         strcasestr.
12700
12701 2005-08-17  Bruno Haible  <bruno@clisp.org>
12702
12703         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
12704
12705 2005-08-17  Bruno Haible  <bruno@clisp.org>
12706
12707         * modules/mbuiter: New file.
12708         * MODULES.html.sh (Extended multibyte and wide character utilities):
12709         Add mbuiter.
12710
12711 2005-08-17  Bruno Haible  <bruno@clisp.org>
12712
12713         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
12714         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
12715
12716 2005-08-17  Bruno Haible  <bruno@clisp.org>
12717
12718         * m4/strcasestr.m4: New file.
12719
12720 2005-08-17  Bruno Haible  <bruno@clisp.org>
12721
12722         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
12723         * lib/strstr.c: Completely rewritten, with multibyte locale support.
12724
12725 2005-08-17  Bruno Haible  <bruno@clisp.org>
12726
12727         * lib/strcasestr.h: New file.
12728         * lib/strcasestr.c: New file.
12729
12730 2005-08-17  Bruno Haible  <bruno@clisp.org>
12731
12732         * lib/strcasecmp.c: Use mbuiter.h.
12733
12734 2005-08-17  Bruno Haible  <bruno@clisp.org>
12735
12736         * lib/mbuiter.h: New file.
12737
12738 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
12739
12740         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
12741         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
12742         and gl_GETOPT are both invoked via different paths (as happens
12743         with GNU tar CVS because it uses both argp and getopt), the former
12744         wins.
12745
12746 2005-08-16  Bruno Haible  <bruno@clisp.org>
12747
12748         * modules/tls: New file.
12749         * MODULES.html.sh (Multithreading): Add tls.
12750
12751 2005-08-16  Bruno Haible  <bruno@clisp.org>
12752
12753         * modules/strnlen1: New file.
12754         * MODULES.html.sh (String handling): Add strnlen1.
12755
12756 2005-08-16  Bruno Haible  <bruno@clisp.org>
12757
12758         * modules/strcase (Files): Add m4/mbrtowc.m4.
12759         (Depends-on): Add strnlen1, mbchar.
12760
12761 2005-08-16  Bruno Haible  <bruno@clisp.org>
12762
12763         * modules/mbiter: New file.
12764         * MODULES.html.sh (Extended multibyte and wide character utilities):
12765         Add mbiter.
12766
12767 2005-08-16  Bruno Haible  <bruno@clisp.org>
12768
12769         * modules/mbfile: New file.
12770         * MODULES.html.sh (Extended multibyte and wide character utilities):
12771         Add mbfile.
12772
12773 2005-08-16  Bruno Haible  <bruno@clisp.org>
12774
12775         * modules/mbchar: New file.
12776         * MODULES.html.sh (Extended multibyte and wide character utilities):
12777         New section.
12778
12779 2005-08-16  Bruno Haible  <bruno@clisp.org>
12780
12781         * m4/tls.m4: New file, from GNU gettext.
12782
12783 2005-08-16  Bruno Haible  <bruno@clisp.org>
12784
12785         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
12786         always.
12787         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
12788
12789 2005-08-16  Bruno Haible  <bruno@clisp.org>
12790
12791         * m4/mbiter.m4: New file.
12792
12793 2005-08-16  Bruno Haible  <bruno@clisp.org>
12794
12795         * m4/mbfile.m4: New file.
12796
12797 2005-08-16  Bruno Haible  <bruno@clisp.org>
12798
12799         * m4/mbchar.m4: New file.
12800
12801 2005-08-16  Bruno Haible  <bruno@clisp.org>
12802
12803         * lib/tls.h: New file, from GNU gettext.
12804         * lib/tls.c: New file, from GNU gettext.
12805
12806 2005-08-16  Bruno Haible  <bruno@clisp.org>
12807
12808         * lib/strnlen1.h: New file.
12809         * lib/strnlen1.c: New file.
12810
12811 2005-08-16  Bruno Haible  <bruno@clisp.org>
12812
12813         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
12814         (mbi_init): Update.
12815         (mbi_avail, mbi_advance): Let the iteration end before the terminating
12816         NUL byte, not after it.
12817
12818 2005-08-16  Bruno Haible  <bruno@clisp.org>
12819
12820         * lib/strcase.h (strcasecmp): Add note in comments.
12821         * lib/strncasecmp.c: Use code from strcasecmp.c.
12822         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
12823         (strcasecmp): Work correctly in multibyte locales.
12824
12825 2005-08-16  Bruno Haible  <bruno@clisp.org>
12826
12827         * lib/mbiter.h: New file.
12828
12829 2005-08-16  Bruno Haible  <bruno@clisp.org>
12830
12831         * lib/mbfile.h: New file.
12832
12833 2005-08-16  Bruno Haible  <bruno@clisp.org>
12834
12835         * lib/mbchar.h: New file.
12836         * lib/mbchar.c: New file.
12837
12838 2005-08-16  Bruno Haible  <bruno@clisp.org>
12839
12840         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
12841         the valid ones. Makes the comparison operations transitive:
12842         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
12843         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
12844
12845 2005-08-15  Simon Josefsson  <jas@extundo.com>
12846
12847         * modules/ssize_t (License): Change to 'unlimited'.
12848
12849         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
12850
12851 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
12852
12853         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
12854         Add comments for each pending glibc patch.
12855
12856 2005-08-15  Bruno Haible  <bruno@clisp.org>
12857
12858         * lib/regex.h (__restrict_arr): Don't define to __restrict if
12859         __cplusplus is defined.
12860
12861 2005-08-14  Jim Meyering  <jim@meyering.net>
12862
12863         Sync from coreutils.
12864
12865         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
12866         Use the hash-table-based cycle-detection code not just when
12867         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
12868         Reported by James Youngman in
12869         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
12870         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
12871         FTS_TIGHT_CYCLE_CHECK.
12872         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
12873         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
12874         once again.
12875         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
12876         * lib/fts.c (fd_safer): Remove decl.
12877         Include fcntl--.h rather than unistd-safer.h
12878         (fts_safe_changedir): Don't call fd_safer; no longer needed
12879         now that we include fcntl--.h.
12880
12881 2005-08-12  Simon Josefsson  <jas@extundo.com>
12882
12883         * modules/getndelim2: Use ssize_t module.
12884         * modules/getnline: Likewise.
12885         * modules/safe-read: Likewise.
12886         * modules/xreadlink: Likewise.
12887
12888         * modules/ssize_t: New file.
12889
12890 2005-08-12  Simon Josefsson  <jas@extundo.com>
12891
12892         * m4/readline.m4: Look for termcap, curses or ncurses if required.
12893
12894 2005-08-12  Simon Josefsson  <jas@extundo.com>
12895
12896         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
12897         ssize_t.
12898
12899 2005-08-12  Simon Josefsson  <jas@extundo.com>
12900
12901         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
12902         readline, getdelim and check_version.
12903         (Support for systems lacking ISO C 99: Sizes of integer types):
12904         Add size_max.
12905
12906 2005-08-12  Bruno Haible  <bruno@clisp.org>
12907
12908         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
12909
12910 2005-08-11  Simon Josefsson  <jas@extundo.com>
12911
12912         * modules/readline: New file.
12913
12914         * modules/strnlen (Files): Add strnlen.h.
12915
12916 2005-08-11  Simon Josefsson  <jas@extundo.com>
12917
12918         * m4/readline.m4: New file.
12919
12920 2005-08-11  Simon Josefsson  <jas@extundo.com>
12921
12922         * lib/readline.h, readline.c: New file.
12923
12924 2005-08-11  Simon Josefsson  <jas@extundo.com>
12925
12926         * doc/gnulib.texi (Initial import, Finishing touches): Mention
12927         gl_AVOID.
12928
12929 2005-08-11  Bruno Haible  <bruno@clisp.org>
12930
12931         * lib/strnlen.h (strnlen): Change parameter name to match comment.
12932
12933 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
12934
12935         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
12936
12937 2005-08-10  Simon Josefsson  <jas@extundo.com>
12938
12939         * tests/test-iconvme.c: New file.
12940
12941 2005-08-10  Simon Josefsson  <jas@extundo.com>
12942
12943         * m4/strnlen.m4: New file.
12944
12945         * m4/strndup.m4: Don't check for strnlen declaration, done in
12946         strnlen.m4.
12947
12948 2005-08-10  Simon Josefsson  <jas@extundo.com>
12949
12950         * lib/strndup.c: Use strnlen.h.
12951
12952         * lib/strnlen.h: New file.
12953
12954 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
12955
12956         * README: Typos.
12957
12958 2005-08-02  Simon Josefsson  <jas@extundo.com>
12959
12960         * modules/readline: New file.
12961
12962 2005-08-02  Simon Josefsson  <jas@extundo.com>
12963
12964         * modules/getdelim: New file.
12965
12966         * modules/getline: Rewrite, don't use getndelim2.
12967
12968 2005-08-02  Simon Josefsson  <jas@extundo.com>
12969
12970         * m4/getline.m4: Separate out getdelim stuff into separate module.
12971
12972         * m4/getdelim.m4: New file.
12973
12974 2005-08-02  Simon Josefsson  <jas@extundo.com>
12975
12976         * lib/getline.h, getline.c: Rewrite.
12977
12978         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
12979
12980 2005-07-31  Bruno Haible  <bruno@clisp.org>
12981
12982         * lib/lock.h (gl_lock_initializer): New macro.
12983         (gl_lock_define_initialized): Use it.
12984         (gl_rwlock_initializer): New macro.
12985         (gl_rwlock_define_initialized): Use it.
12986         (gl_recursive_lock_initializer): New macro.
12987         (gl_recursive_lock_define_initialized): Use it.
12988
12989 2005-07-30  Karl Berry  <karl@gnu.org>
12990
12991         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
12992         Report from Ben Pfaff, regarding getopt.
12993
12994 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
12995
12996         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
12997         normal way.
12998         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
12999         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
13000         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
13001         (gl_GETOPT): Use the new macros.  Most of the implementation
13002         is moved to the new macros.  This is for programs like Emacs
13003         that don't want all the functionality of gl_GETOPT.
13004
13005 2005-07-26  Bruno Haible  <bruno@clisp.org>
13006
13007         * m4/lock.m4: Update from GNU gettext.
13008
13009 2005-07-26  Bruno Haible  <bruno@clisp.org>
13010
13011         * lib/lock.h: Update from GNU gettext.
13012         * lib/lock.c: Update from GNU gettext.
13013
13014 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
13015
13016         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
13017         obsolescent AC_TRY_RUN.  Include the default includes files, for
13018         'exit'.
13019
13020 2005-07-24  Bruno Haible  <bruno@clisp.org>
13021
13022         * modules/visibility: New file.
13023         * MODULES.html.sh (Misc): Add visibility.
13024
13025 2005-07-24  Bruno Haible  <bruno@clisp.org>
13026
13027         * m4/visibility.m4: New file.
13028
13029 2005-07-24  Bruno Haible  <bruno@clisp.org>
13030
13031         * doc/visibility.texi: New file.
13032
13033 2005-07-22  Bruno Haible  <bruno@clisp.org>
13034
13035         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
13036         $(ALLOCA_H), redundant through BUILT_SOURCES.
13037         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
13038         redundant through BUILT_SOURCES.
13039         * modules/byteswap (Makefile.am): Remove explicit dependency on
13040         $(BYTESWAP_H), redundant through BUILT_SOURCES.
13041         * modules/fnmatch (Makefile.am): Remove explicit dependency on
13042         $(FNMATCH_H), redundant through BUILT_SOURCES.
13043         * modules/getopt (Makefile.am): Remove explicit dependency on
13044         $(GETOPT_H), redundant through BUILT_SOURCES.
13045         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
13046         redundant through BUILT_SOURCES.
13047         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
13048         redundant through BUILT_SOURCES.
13049         * modules/stdbool (Makefile.am): Remove explicit dependency on
13050         $(STDBOOL_H), redundant through BUILT_SOURCES.
13051         * modules/stdint (Makefile.am): Remove explicit dependency on
13052         $(STDINT_H), redundant through BUILT_SOURCES.
13053         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
13054         Remove explicit dependency on $(SYSEXITS_H).
13055         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
13056
13057 2005-07-18  Simon Josefsson  <jas@extundo.com>
13058
13059         * lib/check-version.c (check_version): Accept identical versions too.
13060
13061 2005-07-18  Bruno Haible  <bruno@clisp.org>
13062
13063         * modules/lock: New file.
13064         * MODULES.html.sh (Multithreading): New section.
13065
13066 2005-07-18  Bruno Haible  <bruno@clisp.org>
13067
13068         * m4/lock.m4: New file, from GNU gettext.
13069
13070 2005-07-18  Bruno Haible  <bruno@clisp.org>
13071
13072         * lib/lock.h: New file, from GNU gettext.
13073         * lib/lock.c: New file, from GNU gettext.
13074
13075 2005-07-18  Bruno Haible  <bruno@clisp.org>
13076
13077         * lib/lock.h (gl_once_t): New type.
13078         (gl_once_define, gl_once): New macros.
13079         * lib/lock.c (fresh_once): New variable.
13080         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
13081         functions.
13082
13083 2005-07-16  Simon Josefsson  <jas@extundo.com>
13084
13085         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
13086         workaround, suggested by Bruno.
13087
13088 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
13089
13090         * modules/xalloc (Depends-on): Add xalloc-die.
13091         * modules/xvasprintf (Depends-on): Add xalloc-die.
13092
13093 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
13094
13095         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
13096         with a minor change.
13097
13098 2005-07-15  Bruno Haible  <bruno@clisp.org>
13099
13100         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
13101         When using lib/poll.c, define poll as rpl_poll.
13102
13103 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
13104
13105         * modules/argp (Depends-on): Remove unlocked-io.
13106
13107 2005-07-14  Derek Price  <derek@ximbiot.com>
13108
13109         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
13110         for glob symlink bug.
13111
13112 2005-07-14  Bruno Haible  <bruno@clisp.org>
13113
13114         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
13115         Instead, test for *_unlocked function declarations directly.
13116
13117 2005-07-11  Simon Josefsson  <jas@extundo.com>
13118
13119         * modules/size_max: New file.
13120
13121         * modules/xsize: Depend on size_max module for size_max.m4.
13122
13123 2005-07-11  Simon Josefsson  <jas@extundo.com>
13124
13125         * lib/size_max.h: New file.
13126
13127 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
13128
13129         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
13130         copyright symbol and the year.
13131         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
13132         (version_etc_va): Use parameterized copyright notice.
13133         Reword to conform to the current GNU coding standards.
13134
13135 2005-07-11  Karl Berry  <karl@gnu.org>
13136
13137         * doc/gnulib.texi (Quoting): new node.
13138         (Initial import): more info, from Patrice.
13139
13140 2005-07-11  Bruno Haible  <bruno@clisp.org>
13141
13142         * gnulib-tool (func_usage): Document option --avoid.
13143         (Command line options): Handle --avoid.
13144         (func_acceptable): New function.
13145         (func_modules_transitive_closure): Use it.
13146
13147 2005-07-11  Bruno Haible  <bruno@clisp.org>
13148
13149         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
13150         Reported by Jim Meyering.
13151
13152 2005-07-10  Bruno Haible  <bruno@clisp.org>
13153
13154         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
13155         Needed when size_t is smaller than 'unsigned int'.
13156         Reported by Paul Eggert.
13157
13158 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
13159
13160         * modules/argp (Depends-on): Add unlocked-io
13161
13162 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
13163
13164         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
13165         block of defines.
13166
13167 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
13168
13169         * config/srclist.txt: Comment out regcomp.c, since we have a porting
13170         fix now.
13171
13172 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
13173         and Paul Eggert  <eggert@cs.ucla.edu>
13174
13175         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
13176         in wint_t, not wchar_t.  Remove now-unnecessary cast.
13177
13178 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
13179
13180         * modules/regex (Files): Add lib/regex_internal.c,
13181         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
13182         (Depends-on): Add extensions.
13183         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
13184
13185 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
13186
13187         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
13188         pathconf.
13189         * m4/same.m4 (gl_SAME): Likewise.
13190         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
13191
13192         * m4/regex.m4: Adjust to new libc regex implementation.
13193         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
13194         all the .c and .h parts of (the new) regex.
13195         Quote the m4 stuff better.
13196         Check for RE_ICASE bug of old gnulib.
13197         Check for REG_STARTEND of recent libc.
13198         Rename local variables from jm_* to gl_*.
13199         Quote operand of "test -f".
13200         Say "recent enough" version of libc, not "version 2".
13201         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
13202         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
13203         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
13204         Remove check for btowc, isascii.
13205         Require AM_LANGINFO_CODESET.
13206
13207 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
13208
13209         * lib/regex.c, regex.h: Sync from libc.
13210         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
13211         * lib/regexec.c:
13212         New files, synced from libc, except that regex_internal.h
13213         currently has a small porting fix.
13214
13215 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
13216
13217         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
13218         regex_internal.c, regexec.c.
13219         Add regex_internal.h too, but as a comment, since the libc version
13220         is currently broken in gnulib mode.
13221
13222 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
13223
13224         Support programs like Emacs that use gnulib but not gettext.
13225         * MODULES.html.sh (Internationalization functions): Add gettext-h.
13226         * modules/gettext-h: New file.
13227         * modules/gettext (Files): Remove lib/gettext.h.
13228         (Depends-on): Add gettext-h.
13229         (Makefile.am): Remove lib_SOURCES.
13230         * modules/argmatch, modules/c-stack, modules/closeout:
13231         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
13232         * modules/execute, modules/file-type, modules/getaddrinfo:
13233         * modules/getopt, modules/human, modules/javacomp:
13234         * modules/javaexec, modules/mkdir-p, modules/obstack:
13235         * modules/openat, modules/pagealign_alloc, modules/pipe:
13236         * modules/quotearg, modules/regex, modules/rpmatch:
13237         * modules/unicodeio, modules/userspec, modules/version-etc:
13238         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
13239         * modules/xsetenv:
13240         Depend on gettext-h, not gettext.
13241
13242 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
13243
13244         * gnulib-tool (func_import): Add support for 'public domain' license.
13245         * modules/alloca, modules/atexit, modules/memmove:
13246         Now public domain, not GPL.
13247         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
13248         * modules/realloc, modules/strerror, modules/strtod:
13249         Now LGPL, not GPL.
13250
13251 2005-07-05  Bruno Haible  <bruno@clisp.org>
13252
13253         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
13254         autoconf CVS. Needed for mingw.
13255
13256 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
13257
13258         Remove the dependency of the strftime module on the tzset module.
13259         * modules/strftime (Depends-on): Remove dependency on tzset.
13260
13261 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
13262
13263         Remove the dependency of the strftime module on the tzset module.
13264         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
13265         gl_FUNC_TZSET_CLOBBER.
13266
13267 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
13268
13269         Remove the dependency of the strftime module on the tzset module.
13270         * lib/strftime.c (my_strftime)
13271         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
13272         Copy the input structure, to work around some of the bug with
13273         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
13274         Solaris releases, you should also use the tzset module, but we won't
13275         require it as a dependency any more since we don't want LGPLed code
13276         to depend on GPLed code.
13277
13278 2005-07-02  Jim Meyering  <jim@meyering.net>
13279
13280         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
13281         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
13282         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
13283         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
13284
13285 2005-07-02  Jim Meyering  <jim@meyering.net>
13286
13287         * lib/backupfile.c (backup_args): Change a `0' to NULL.
13288
13289 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
13290
13291         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
13292         declares only 'struct timespec;' (!).
13293
13294 2005-07-01  Jim Meyering  <jim@meyering.net>
13295
13296         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
13297         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
13298         * lib/save-cwd.c, tempname.c:
13299         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
13300         and don't include <sys/file.h>).
13301
13302 2005-06-29  Jim Meyering  <jim@meyering.net>
13303
13304         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
13305         type name.  Use the variable name instead.
13306         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
13307         Likewise.
13308
13309 2005-06-28  Simon Josefsson  <jas@extundo.com>
13310
13311         * modules/check-version (Files): Add check-version.m4.
13312
13313 2005-06-28  Simon Josefsson  <jas@extundo.com>
13314
13315         * m4/check-version.m4: New file, suggested by Jim Meyering
13316         <jim@meyering.net>.
13317
13318 2005-06-28  Simon Josefsson  <jas@extundo.com>
13319
13320         * lib/check-version.h, lib/check-version.c: New files.
13321
13322 2005-06-28  Simon Josefsson  <jas@extundo.com>
13323
13324         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
13325         collision with global variable.  Better indentation.  Don't
13326         increment buffer pointer beyond buffer end.  Based on comments
13327         from Paul Eggert <eggert@cs.ucla.edu>.
13328
13329         * lib/base64.h: Indent.
13330
13331 2005-06-28  Simon Josefsson  <jas@extundo.com>
13332
13333         * doc/gnulib.texi (Library version handling): New section.
13334
13335 2005-06-28  Jim Meyering  <jim@meyering.net>
13336
13337         * check-module (find_included_lib_files): Hard-code another
13338         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
13339         but modules/fts-lgpl (correctly) does not list those files.
13340
13341         * modules/canonicalize (Files): Add lib/pathmax.h.
13342
13343 2005-06-25  Simon Josefsson  <jas@extundo.com>
13344
13345         * modules/check-version: New file.
13346
13347 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
13348
13349         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
13350         initializer of struct addrinfo, as an indication that we don't
13351         care how many members the structure has.
13352
13353 2005-06-24  Derek Price  <derek@ximbiot.com>
13354         and Bruno Haible  <bruno@clisp.org>
13355
13356         Remove stat module & update lstat.
13357         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
13358         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
13359         * m4/stat.m4: Remove this file.
13360
13361 2005-06-24  Derek Price  <derek@ximbiot.com>
13362         and Bruno Haible  <bruno@clisp.org>
13363
13364         Remove stat module & update lstat.
13365         * lib/stat.c: Remove this file...
13366         (slash_aware_lstat): ...moving this content and its support...
13367         * lib/lstat.c (rpl_lstat): ...into here.
13368         * lib/lstat.h: New file.
13369
13370 2005-06-24  Derek Price  <derek@ximbiot.com>
13371         and Bruno Haible  <bruno@clisp.org>
13372
13373         Remove stat module & update lstat.
13374         * config/srclist.txt (libc sources): Remove stat.
13375
13376 2005-06-24  Derek Price  <derek@ximbiot.com>
13377         and Bruno Haible  <bruno@clisp.org>
13378
13379         Remove stat module & update lstat.
13380         * MODULES.html.sh (stat): Remove.
13381         * MODULES.html: Regenerated.
13382         * modules/lstat (Description): Correct function name.
13383         (Files): Add "lstat.h".
13384         (Depends-on): Remove stat, add xalloc, stat-macros.
13385         * modules/stat: Remove this file.
13386         (Include): Add "lstat.h", remove <sys/stat.h>.
13387
13388 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
13389
13390         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
13391         (ranged_convert): Don't save conversion in a temporary struct.
13392         This causes a warning with GCC 4.0.0, and anyway in the typical
13393         case it's not worth the extra 100 bytes or so of code.
13394         (ranged_convert, __mktime_internal): When calling a function via a
13395         pointer P, use P () rather than (*P) (), as we now assume C89 or
13396         better.
13397
13398 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
13399
13400         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
13401         "who -r" failed to give output.  Problem reported by Tim Waugh.
13402
13403         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
13404         (xcalloc): Use it to avoid needless tests.
13405         Problem reported by Jim Meyering.
13406
13407 2005-06-20  Derek Price  <derek@ximbiot.com>
13408
13409         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
13410         unnecessary for Autoconfs > 2.59c.
13411
13412 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
13413
13414         * lib/argp.h (__option_is_short): Check upper limit of
13415         __key. Isprint() requires its argument to have the value
13416         of an unsigned char or EOF.
13417
13418 2005-06-16  Jim Meyering  <jim@meyering.net>
13419
13420         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
13421         when either N or S is zero.
13422
13423 2005-06-16  Derek Price  <derek@ximbiot.com>
13424
13425         * m4/bison.m4: Declare YACC & YFLAGS precious.
13426
13427 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
13428
13429         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
13430         multibyte string or pattern, fall back on unibyte matching.
13431         Problem reported by James Youngman.
13432
13433 2005-06-08  Bruno Haible  <bruno@clisp.org>
13434
13435         * modules/csharpcomp: New file.
13436         * MODULES.html.sh (C#): Add csharpcomp.
13437
13438 2005-06-08  Bruno Haible  <bruno@clisp.org>
13439
13440         * m4/csharpcomp.m4: New file, from GNU gettext.
13441
13442 2005-06-08  Bruno Haible  <bruno@clisp.org>
13443
13444         * lib/csharpcomp.h: New file, from GNU gettext.
13445         * lib/csharpcomp.c: New file, from GNU gettext.
13446         * lib/csharpcomp.sh.in: New file, from GNU gettext.
13447
13448 2005-06-08  Bruno Haible  <bruno@clisp.org>
13449
13450         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
13451         warning on mingw.
13452
13453 2005-06-07  Derek Price  <derek@ximbiot.com>
13454
13455         Sync from CVS.
13456         * lib/glob_.h: Indent nested #ifdef.
13457
13458 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
13459
13460         Sync from coreutils.
13461         Use "file name" when talking about file names, instead of "filename"
13462         or "path", as per the GNU coding standards.
13463         * lib/mkdir-p.c: Renamed from makepath.c.
13464         (make_dir_parents): Renamed from make_path.  All callers changed.
13465         * lib/mkdir-p.h: Likewise.  All includers changed.
13466         * lib/filenamecat.c: Renamed from path-concat.c.
13467         (file_name_concat): Renamed from path_concat.  All callers changed.
13468         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
13469         * lib/filenamecat.h: Likewise.  All includers changed.
13470         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
13471         in comments or local variable names.
13472         * lib/basename.c: Likewise.
13473         * lib/canonicalize.c, canonicalize.h: Likewise.
13474         * lib/dirname.c, dirname.h: Likewise.
13475         * lib/euidaccess.c: Likewise.
13476         * lib/exclude.c: Likewise
13477         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
13478         * lib/fsusage.c, fsuage.h: Likewise.
13479         * lib/fts.c, fts_.h: Likewise.
13480         * lib/getcwd.c: Likewise.
13481         * lib/getloadavg.c: Likewise.
13482         * lib/mkstemp.c: Likewise.
13483         * lib/mountlist.c, mountlist.h: Likewise.
13484         * lib/openat.c, openat.h: Likewise.
13485         * lib/readlink-stub.c: Likewise.
13486         * lib/readutmp.c, readutmp.h: Likewise.
13487         * lib/rename.c: Likewise.
13488         * lib/rmdir.c: Likewise.
13489         * lib/same.c: Likewise.
13490         * lib/savedir.c: Likewise.
13491         * lib/stripslash.c: Likewise.
13492         * lib/tempname.c: Likewise.
13493         * lib/xreadlink.c: Likewise.
13494         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
13495         All uses changed.
13496         * lib/exclude.h: Likewise.
13497
13498         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
13499         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
13500         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
13501         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
13502         * lib/pathmax.h: Include <limits.h> unconditionally, since other
13503         files have been getting away with it for years (MORE/BSD 4.3
13504         is extinct now).
13505         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
13506         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
13507
13508         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
13509         Define to 256, not 255, as per modern POSIX.
13510
13511 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
13512
13513         Sync from coreutils.
13514         Use "file name" when talking about file names, instead of "filename"
13515         or "path", as per the GNU coding standards.
13516         * MODULES.html.sh: mkdir-p renamed from makepath.
13517         filenamecat renamed from path-concat.
13518         * modules/filenamecat: Renamed from modules/path-concat.
13519         (Files): filenamecat.h and filenamecat.c renamed from
13520         path-concat.h and path-concat.c.
13521         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
13522         (Include): filenamecat.h, not path-concat.h.
13523         * modules/mkdir-p: Renamed from modules/makepath.
13524         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
13525         makepath.c.
13526         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
13527         (Include): mkdir-p.h, not makepath.h.
13528
13529 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
13530
13531         Sync from coreutils.
13532         * m4/mkdir-p.m4: Renamed from makepath.m4.
13533         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
13534         Rename files from makepath.c to mkdir-p.c, and from
13535         makepath.h to mkdir-p.h.
13536         * m4/filenamecat.m4: Renamed from path-concat.m4.
13537         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
13538         Rename files from path-concat.c to filenamecat.c,
13539         and from path-concat.h to filenamecat.h.
13540         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
13541         "file name" in local variables or comments.
13542         * m4/rename.m4: Likewise.
13543
13544 2005-06-01  Bruno Haible  <bruno@clisp.org>
13545
13546         * modules/csharpexec: New file.
13547         * MODULES.html.sh (C#): New section.
13548
13549 2005-06-01  Bruno Haible  <bruno@clisp.org>
13550
13551         * m4/csharp.m4: New file, from GNU gettext.
13552         * m4/csharpexec.m4: New file, from GNU gettext.
13553
13554 2005-06-01  Bruno Haible  <bruno@clisp.org>
13555
13556         * lib/csharpexec.h: New file, from GNU gettext.
13557         * lib/csharpexec.c: New file, from GNU gettext.
13558         * lib/csharpexec.sh.in: New file, from GNU gettext.
13559
13560 2005-05-31  Derek Price  <derek@ximbiot.com>
13561             Paul Eggert  <eggert@cs.ucla.edu>
13562
13563         Sync from cvs.
13564         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
13565
13566 2005-05-31  Derek Price  <derek@ximbiot.com>
13567             Paul Eggert  <eggert@cs.ucla.edu>
13568
13569         Sync from cvs.
13570         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
13571
13572 2005-05-29  Derek Price  <derek@ximbiot.com>
13573
13574         * config/srclist.txt (glob_.h, glob.c): Add these files.
13575
13576 2005-05-29  Derek Price  <derek@ximbiot.com>
13577
13578         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
13579         * modules/glob: New file.
13580         * modules/getlogin_r: Add link to POSIX spec in description.
13581
13582 2005-05-29  Derek Price  <derek@ximbiot.com>
13583             Paul Eggert  <eggert@cs.ucla.edu>
13584
13585         * m4/glob.m4: New file.
13586
13587 2005-05-29  Derek Price  <derek@ximbiot.com>
13588             Paul Eggert  <eggert@cs.ucla.edu>
13589
13590         * lib/glob_.h, lib/glob.c: New files.
13591
13592 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
13593
13594         * modules/fts (Files): Remove m4/inttypes-pri.m4.
13595         * modules/fts-lgpl (Depends-on): Remove gettext.
13596
13597 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
13598
13599         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
13600         and don't require gt_INTTYPES_PRI.
13601
13602 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
13603
13604         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
13605
13606         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
13607         the configuration hassle isn't worth it.
13608         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
13609         (LONGEST_MODIFIER, PRIuMAX): Remove.
13610
13611 2005-05-27  Bruno Haible  <bruno@clisp.org>
13612
13613         * lib/getlogin_r.h: Remove second include of <stddef.h>.
13614
13615 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
13616
13617         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
13618         _POSIX_PTHREAD_SEMANTICS for Solaris.
13619
13620 2005-05-25  Derek Price  <derek@ximbiot.com>
13621
13622         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
13623
13624 2005-05-25  Derek Price  <derek@ximbiot.com>
13625             Paul Eggert  <eggert@cs.ucla.edu>
13626
13627         * modules/getlogin_r, m4/getlogin_r.m4: New files.
13628         * lib/getlogin_r.c, getlogin_r.h: New files.
13629
13630 2005-05-25  Bruno Haible  <bruno@clisp.org>
13631             Derek Price  <derek@ximbiot.com>
13632
13633         * lib/getlogin_r.h: Simplify API documentation.
13634
13635 2005-05-23  Derek Price  <derek@ximbiot.com>
13636
13637         * modules/minmax (Files): Add m4/minmax.m4.
13638         (configure.ac): Add gl_MINMAX.
13639
13640 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
13641
13642         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
13643         so that unistd-safer.h (GPL'ed code) need not be included.
13644
13645 2005-05-22  Bruno Haible  <bruno@clisp.org>
13646
13647         * m4/minmax.m4: New file.
13648         Based on a patch by Derek Price <derek@ximbiot.com>.
13649
13650 2005-05-22  Bruno Haible  <bruno@clisp.org>
13651
13652         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
13653         (INT64_MIN): Fix definition.
13654         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
13655
13656         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
13657         NEED_SIGNED_INT_TYPES.
13658
13659         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
13660         HAVE_SYSTEM_INTTYPES.
13661
13662 2005-05-22  Bruno Haible  <bruno@clisp.org>
13663
13664         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
13665         Also include <sys/param.h> if it defines MIN, MAX.
13666         Based on a patch by Derek Price <derek@ximbiot.com>.
13667
13668 2005-05-21  Jim Meyering  <jim@meyering.net>
13669
13670         * modules/fts (Files): Add m4/inttypes-pri.m4.
13671         (Depends-on): Add lstat and remove gettext.  Alphabetize.
13672
13673 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
13674
13675         New fts module.
13676         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
13677         (setup_dir, free_dir): New functions.
13678         (enter_dir, leave_dir): Define trivial
13679         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
13680         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
13681         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
13682         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
13683         Move to fts-cycle.c.
13684         (fts_open): Use setup_dir.
13685         (fts_close): Use free_dir.
13686         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
13687         This adds a label and some gotos, but the alternatives were messier.
13688         Check for memory allocation failure when entering a dir.
13689         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
13690         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
13691         (FTS): New member fts_cycle, that is a union that contains the
13692         old active_dir_ht and cycle_state.  All uses changed to mention
13693         fts_cycle.ht and fts_cycle.state.
13694         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
13695         fts.c, with the following changes:
13696         (setup_dir, free_dir): New functions.
13697         (enter_dir): Now returns bool.  Return true if successful, false
13698         if memory exhausted.  All callers changed.
13699         Do not bother partly cleaning up on
13700         memory allocation failure; that is free_dir's job.
13701         However, free ad if hash_insert fails, to avoid memory leak.
13702         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
13703         fts->fts_options to see which union member to use.
13704
13705 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
13706
13707         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
13708         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
13709
13710 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
13711
13712         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
13713
13714 2005-05-20  Jim Meyering  <jim@meyering.net>
13715
13716         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
13717         Now a macro, to pacify GCC.
13718
13719 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
13720
13721         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
13722         of -1.
13723
13724 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
13725
13726         * lib/chown.c (rpl_chown): Return -1 on failure.
13727
13728 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
13729
13730         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
13731         Don't check for stddef.h.
13732         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
13733         don't use its results.
13734         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
13735         since we include them unconditionally.  Don't require
13736         AM_STDBOOL_H, since stdbool is a prerequisite.
13737         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
13738         since we assume C89 or better.
13739         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
13740         as we don't use their results.
13741         Don't check for fchdir, memmove, memset, strrchr, as we use
13742         them unconditionally.
13743         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
13744         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
13745
13746 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
13747
13748         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
13749         Include <stddef.h> unconditionally, since we assume C89 now.
13750         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
13751         * lib/fts.c: Include fts_.h first, to check interface.
13752         Do not include intprops.h; no longer needed.
13753         Include cycle-check.h and hash.h, since fts_.h no longer does.
13754         Remove unnecessary casts of closedir to void.
13755         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
13756         decide whether to decrement nlinks.
13757         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
13758         (FTS): Use struct hash_table * instead of Hash_table, so that
13759         we no longer need to include hash.h here.
13760
13761 2005-05-18  Jim Meyering  <jim@meyering.net>
13762
13763         * modules/dirfd (License): Change to LGPL.  Most of the code
13764         is already in the public domain.
13765
13766 2005-05-18  Jim Meyering  <jim@meyering.net>
13767
13768         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
13769         Reported by Yoann Vandoorselaere.
13770
13771 2005-05-17  Jim Meyering  <jim@meyering.net>
13772
13773         * m4/fts.m4: New file, from coreutils.
13774
13775 2005-05-17  Jim Meyering  <jim@meyering.net>
13776
13777         * lib/fts.c, lib/fts_.h: New files, from coreutils.
13778
13779 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
13780
13781         Sync from coreutils.
13782         * m4/unlinkdir.m4: New file.
13783
13784 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
13785
13786         Sync from coreutils.
13787         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
13788         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
13789         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
13790         White space changes only.
13791         * lib/makepath.c (make_path): Port to hosts where leading "//" is
13792         special.
13793         * lib/yesno.c: Include getline.h, not ctype.h.
13794         (yesno): Don't remove leading white space; POSIX doesn't allow it.
13795         Use getline to remove arbitrary restriction on response length.
13796
13797 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
13798
13799         * config/srclist-update: Spell out "Street" in FSF postal
13800         mail address; this is the style the FSF seems to prefer.
13801
13802         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
13803         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
13804         this updates FSF postal mail address.
13805
13806         Sync from coreutils.
13807         * modules/unlinkdir: New file.
13808         * modules/yesno (Depends-on): Add getline.
13809         * MODULES.html.sh (File system functions): Add unlinkdir.
13810
13811 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
13812
13813         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
13814         lib/strsep.h:
13815         Change the initial comment to refer to GPL, not LGPL.
13816         gnulib-tool will change it to LGPL as needed.
13817
13818         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
13819         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
13820         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
13821         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
13822         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
13823         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
13824         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
13825         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
13826         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
13827         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
13828         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
13829         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
13830         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
13831         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
13832         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
13833         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
13834         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
13835         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
13836         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
13837         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
13838         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
13839         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
13840         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
13841         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
13842         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
13843         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
13844         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
13845         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
13846         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
13847         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
13848         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
13849         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
13850         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
13851         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
13852         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
13853         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
13854         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
13855         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
13856         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
13857         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
13858         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
13859         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
13860         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
13861         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
13862         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
13863         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
13864         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
13865         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
13866         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
13867         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
13868         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
13869         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
13870         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
13871         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
13872         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
13873         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
13874         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
13875         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
13876         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
13877         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
13878         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
13879         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
13880         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
13881         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
13882         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
13883         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
13884         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
13885         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
13886         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
13887         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
13888         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
13889         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
13890         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
13891         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
13892         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
13893         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
13894         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
13895         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
13896         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
13897         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
13898         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
13899         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
13900         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
13901         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
13902         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
13903         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
13904         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
13905         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
13906         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
13907         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
13908         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
13909         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
13910         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
13911         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
13912         lib/yesno.c, lib/yesno.h:
13913         Update FSF postal mail address.
13914
13915 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
13916
13917         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
13918         tests/test-memmem.c, tests/test-stpncpy.c:
13919         Update FSF postal mail address.
13920
13921 2005-05-13  Bruno Haible  <bruno@clisp.org>
13922
13923         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
13924         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
13925         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
13926         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
13927         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
13928         Add support for 64-bit integers in the MSVC compiler.
13929
13930 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
13931
13932         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
13933
13934 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
13935
13936         * gnulib-tool (func_import): Sort and uniquify recommended includes.
13937
13938 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
13939
13940         * doc/getdate.texi (General date syntax): Don't say that date
13941         date --iso-8601=ns generates acceptable dates; it doesn't yet.
13942         Problem reported by Nic Ferrier.
13943
13944 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
13945
13946         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
13947         specified in ai_socktype. Fix invalid ai_protocol
13948         check. ai_protocol is usually set to 0 or depending on
13949         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
13950         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
13951         ai_socktype / ai_protocol in the returned addrinfo structure.
13952
13953 2005-05-10  Simon Josefsson  <jas@extundo.com>
13954
13955         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
13956         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
13957
13958 2005-05-10  Karl Berry  <karl@gnu.org>
13959
13960         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
13961         (from http://www.gnu.org/licenses).
13962         * doc/COPYING.LIB: also rename to COPYING.LESSER.
13963         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
13964         fdl.texi suffices.
13965
13966 2005-05-10  Karl Berry  <karl@gnu.org>
13967
13968         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
13969         (COPYING.DOC): remove.
13970
13971         * config/srclist-update: new FSF address.
13972
13973 2005-05-10  Derek Price  <derek@ximbiot.com>
13974
13975         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
13976         possible.
13977
13978 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
13979             Bruno Haible  <bruno@clisp.org>
13980
13981         * modules/inet_ntop: New file.
13982         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
13983         inet_ntop.
13984
13985 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
13986             Bruno Haible  <bruno@clisp.org>
13987
13988         * m4/inet_ntop.m4: New file.
13989
13990 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
13991             Bruno Haible  <bruno@clisp.org>
13992
13993         * lib/inet_ntop.h: New file.
13994         * lib/inet_ntop.c: New file, from glibc with modifications.
13995
13996 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
13997
13998         * modules/time_r (License): Change to LGPL.
13999         * modules/extensions (License): Change to LGPL.  Actually,
14000         the license is more permissive than that, but currently gnulib-tool
14001         doesn't know how to handle more-permissive licenses.
14002
14003         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
14004         Problem reported by Dave Love.
14005
14006 2005-05-08  Jim Meyering  <jim@meyering.net>
14007
14008         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
14009         blank.
14010
14011 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
14012
14013         * modules/argmatch (Depends-on): Add stdbool.
14014         * modules/backupfile (Depends-on): Likewise.
14015         * modules/chdir-long (Depends-on): Likewise.
14016         * modules/closeout (Depends-on): Likewise.
14017         * modules/cycle-check (Depends-on): Likewise.
14018         * modules/dirname (Depends-on): Likewise.
14019         * modules/fnmatch (Depends-on): Likewise.
14020         * modules/fsusage (Depends-on): Likewise.
14021         * modules/fwriteerror (Depends-on): Likewise.
14022         * modules/getcwd (Depends-on): Likewise.
14023         * modules/getloadavg (Depends-on): Likewise.
14024         * modules/hard-locale (Depends-on): Likewise.
14025         * modules/makepath (Depends-on): Likewise.
14026         * modules/mountlist (Depends-on): Likewise.
14027         * modules/nanosleep (Depends-on): Likewise.
14028         * modules/posixtm (Depends-on): Likewise.
14029         * modules/quotearg (Depends-on): Likewise.
14030         * modules/readtokens (Depends-on): Likewise.
14031         * modules/readtokens0 (Depends-on): Likewise.
14032         * modules/readutmp (Depends-on): Likewise.
14033         * modules/save-cwd (Depends-on): Likewise.
14034         * modules/strftime (Depends-on): Likewise.
14035         * modules/userspec (Depends-on): Likewise.
14036         * modules/utimecmp (Depends-on): Likewise.
14037         * modules/xgetcwd (Depends-on): Likewise.
14038         * modules/xnanosleep (Depends-on): Likewise.
14039         * modules/xstrtod (Depends-on): Likewise.
14040         * modules/yesno (Depends-on): Likewise.
14041
14042 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
14043
14044         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
14045         needless checks.
14046
14047 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
14048
14049         Merge from coreutils.  Among other things,
14050         add bulletproofing for cases where stdin, stdout, or stderr are closed.
14051         * lib/fd-safer.c: New file.
14052         * lib/fcntl-safer.h, open-safer.c: Remove.
14053         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
14054         * lib/dup-safer.c: Include unistd-safer.h first.
14055         Don't include errno.h.
14056         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
14057         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
14058         * lib/file-type.c: Rely on file-type.h change.
14059         * lib/getloadavg.c: Include unistd-safer.h.
14060         (getloadavg): Use safer open.
14061         * lib/getusershell.c: Include "stdio-safer.h".
14062         (getusershell): Use safer fopen.
14063         * lib/long-options.c (long_options): Use NULL rather than 0.
14064         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
14065         'free'.
14066         * lib/modechange.c: Likewise.
14067         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
14068         (MODE_DONE): New constant.
14069         (struct mode_change): Remove 'next' member.
14070         (make_node_op_equals): New function; like the old one of the
14071         same name, except it allocates an array.
14072         (mode_compile, mode_create_from_ref): Use it.
14073         (mode_compile): Allocate result as an array, not a linked list.
14074         Parse octal string ourself, so that we catch mistakes like "+0".
14075         (mode_adjust): Arg is an array, not a linked list.
14076         * lib/modechange.c: Include stat-macros.h, xalloc.h.
14077         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
14078         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
14079         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
14080         Remove.  This is now stat-macros.h's job.
14081         (talloc): Remove.  All callers replaced by xalloc, so that
14082         our invokers don't have to worry about reporting memory failures.
14083         (make_node_op_equals): Remove.
14084         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
14085         New constants.
14086         (struct mode_change): Moved here from modechange.h.
14087         (mode_append_entry): Remove.
14088         (mode_compile): Remove MASKED_OPS arg, since it encouraged
14089         apps to have incorrect behavior.  Use simpler algorithm for head
14090         and tail.  Don't futz with umask; that's now the job of mode_adjust.
14091         Detect more invalid usages rather than having somewhat-random behavior.
14092         Don't insert an "a=" action, as that leads to incorrect behavior.
14093         (mode_compile, mode_create_from_ref): Return NULL on error instead
14094         of an enum, since now there's only one way to have an error.  All
14095         callers changed.
14096         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
14097         at the correct time.  Simplify calculation of "+u" and its ilk.
14098         Don't mishandle "+X".
14099         (mode_free): Remove "register" and localize decls.
14100         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
14101         (struct mode_change): Move to modechange.c; callers don't
14102         need to see this stuff.
14103         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
14104         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
14105         (mode_change, mode_adjust): Reflect the new signatures noted above.
14106         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
14107         that might redefine system include files.
14108         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
14109         (my_usleep): Use NULL rather than (void *) 0.
14110         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
14111         Use siginterrupt to specify that system calls should be interrupted.
14112         (rpl_nanosleep): Move initialization of suspended closer to call of
14113         my_usleep.
14114         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
14115         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
14116         (desirable_utmp_entry): New function.
14117         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
14118         using x2nrealloc, to simplify logic.
14119         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
14120         size calculation.  Do not assume utmp file is a regular file.
14121         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
14122         (READ_UTMP_CHECK_PIDS): New constant.
14123         * lib/save-cwd.c: Include unistd-safer.h.
14124         (save_cwd): Use fd_safer.
14125         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
14126         [!_LIBC] Include "stat-macros.h" instead.
14127         * lib/unistd-safer.h (fd_safer): New decl.
14128
14129 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
14130
14131         * modules/getloadavg (Depends-on): Add unistd-safer.
14132         * modules/getusershell (Depends-on): Add stdio-safer.
14133         * modules/lstat (Depends-on): Remove xalloc.
14134         * modules/mkstemp (Depends-on): Add stat-macros.
14135         * modules/modechange (Depends-on): Remove xstrtol.
14136         Add stat-macros, xalloc.
14137         * modules/save-cwd (Depends-on): Add unistd-safer.
14138         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
14139         * modules/unistd-safer (Files): Add lib/fd-safer.c
14140         (Makefile.am): Remove lib_SOURCES.
14141
14142         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
14143         Remove fcntl-safer; unistd-safer supersedes it.
14144
14145 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
14146
14147         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
14148         AC_HEADER_STAT.
14149         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
14150         (gl_PREREQ_CHOWN): Remove.
14151         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
14152         it.  Don't require AC_HEADER_STAT.
14153         (gl_PREREQ_LSTAT): Remove.
14154         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
14155         Don't require AC_HEADER_STAT.
14156         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
14157         (gl_PREREQ_RMDIR): Remove.
14158         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
14159         mention stat-macros.h or AC_HEADER_STAT, since we'll make
14160         the stat-macros module a prerequisite.
14161         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
14162         * m4/filemode.m4 (gl_FILEMODE): Likewise.
14163         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
14164         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
14165         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
14166         variable names.
14167         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
14168         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
14169         variable prefixes.
14170         * m4/fcntl-safer.m4: Remove.
14171         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
14172         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
14173         Invoke gl_PREREQ_FD_SAFER.
14174         (gl_PREREQ_FD_SAFER): New macro.
14175         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
14176         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
14177         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
14178         Remove duplicate call to AC_LIBOBJ(readutmp).
14179         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
14180
14181         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
14182         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
14183
14184 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
14185
14186         * MODULES.html.sh (Misc): Add byteswap.
14187
14188 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
14189
14190         * modules/getcwd (Depends-on): Add extensions.
14191         * modules/openat (Depends-on): Likewise.
14192
14193 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
14194
14195         * modules/byteswap: New file.
14196
14197 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
14198
14199         * m4/byteswap.m4: New file.
14200
14201 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
14202
14203         * lib/byteswap_.h: New file.
14204
14205 2005-04-25  Karl Berry  <karl@gnu.org>
14206
14207         * m4/gettext.m4: Update from GNU gettext 0.14.4.
14208
14209 2005-04-25  Albert Chin  <china@thewrittenword.com>
14210
14211         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
14212         Toolkit C bug.
14213
14214 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
14215
14216         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
14217         (func_ln_if_changed) Remove forcibly for no error message
14218         in case file does not exist.
14219
14220 2005-04-19  Simon Josefsson  <jas@extundo.com>
14221
14222         * gnulib-tool (Options): Make --symlink mean --symbolic.
14223
14224 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
14225
14226         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
14227
14228 2005-04-16  Simon Josefsson  <jas@extundo.com>
14229
14230         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
14231
14232 2005-04-15  Simon Josefsson  <jas@extundo.com>
14233
14234         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
14235
14236 2005-04-15  Simon Josefsson  <jas@extundo.com>
14237
14238         * gnulib-tool: Rename --symlink to --symbolic.
14239
14240 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
14241
14242         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
14243         symbolic links to files instead of copying/moving.  Add --aux-dir,
14244         specifying directory relative --dir where auxiliary build tools
14245         are placed.
14246
14247 2005-04-14  Bruno Haible  <bruno@clisp.org>
14248
14249         * modules/allocsa (License): Change to LGPL.
14250         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
14251
14252 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
14253
14254         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
14255         that "UTC +1 second" continues to work.  Problem reported
14256         by Dmitry V. Levin.
14257         (relunit_snumber): New rule.
14258         (relunit): Use it.
14259
14260 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
14261
14262         * lib/getdate.y (universal_time_zone_table): New constant.
14263         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
14264         universal_time_zone_table.
14265         (lookup_zone): Prefer universal_time_zone_table to
14266         local_time_zone_table, so that "GMT" time stamps are allowed in
14267         London during the summer.  Problem reported by Ian Abbott.
14268
14269 2005-04-12  Jim Meyering  <jim@meyering.net>
14270
14271         * lib/human.c (humblock): Set *options even when returning due to
14272         xstrtoumax conversion failure.  Thanks to a used-uninitialized
14273         warning from gcc-4.
14274
14275 2005-04-09  Jim Meyering  <jim@meyering.net>
14276
14277         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
14278         -Wuninitialized: initialize tm0.tm_year.
14279
14280 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
14281
14282         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
14283         count, since there's no maximum.  All uses changed.
14284         Add member dsts_seen.
14285         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
14286         not being INT_MAX.
14287         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
14288         Use pc_rels_seen to decide whther a date is absolute.
14289
14290         * lib/getdate.y (number): Don't overwrite year.
14291         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
14292         check.
14293
14294 2005-04-02  Simon Josefsson  <jas@extundo.com>
14295
14296         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
14297         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
14298
14299 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
14300
14301         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
14302         where no absolute path name can be longer than PATH_MAX.
14303
14304 2005-03-27  Jim Meyering  <jim@meyering.net>
14305
14306         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
14307
14308 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
14309
14310         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
14311         "one's complement" -> "ones' complement" in comment, as per Knuth.
14312         "value of type" -> "type or expression" in comment.
14313         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
14314
14315 2005-03-26  Jim Meyering  <jim@meyering.net>
14316
14317         Comment nits.
14318         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
14319         Correct typos: s/or/of/.
14320
14321 2005-03-26  Jim Meyering  <jim@meyering.net>
14322
14323         * modules/check-include-files: Move to ../ and rename to...
14324         * check-module: ...this.
14325
14326 2005-03-25  Jim Meyering  <jim@meyering.net>
14327
14328         * modules/xvasprintf (Files): Add xalloc.h.
14329
14330 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
14331
14332         * modules/gettext (Files): config/config.rpath ->
14333         build-aux/config.rpath
14334         * modules/iconv (Files): Likewise.
14335         Problem reported by Oskar Liljeblad.
14336
14337 2005-03-23  Jim Meyering  <jim@meyering.net>
14338
14339         * modules/check-include-files: New script to check for
14340         missing dependencies, multiple includes, etc.
14341
14342         * modules/c-strtold (Depends-on): Add xalloc.
14343         * modules/c-strtod (Depends-on): Add xalloc.
14344         * modules/hash (Depends-on): Add xalloc.
14345         (Files): Remove lib/xalloc.h.
14346
14347         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
14348         * modules/userspec (Files): Add lib/inttostr.h.
14349
14350 2005-03-23  Jim Meyering  <jim@meyering.net>
14351
14352         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
14353
14354 2005-03-22  Jim Meyering  <jim@meyering.net>
14355
14356         * modules/stat-macros: New module.
14357         * modules/canonicalize, modules/euidaccess, modules/file-type,
14358         * modules/filemode, modules/lchown, modules/makepath,
14359         * modules/rmdir, modules/stat: Depend on new stat-macros module
14360         rather than listing lib/stat-macros.h manually.
14361         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
14362
14363 2005-03-22  Jim Meyering  <jim@meyering.net>
14364
14365         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
14366
14367 2005-03-22  Bruno Haible  <bruno@clisp.org>
14368
14369         * config/srclist.txt: Replace target directory 'config' with
14370         'build-aux'.
14371         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
14372         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
14373         ../build-aux/.
14374
14375 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
14376
14377         * modules/chdir-long (Depends-on): Add mempcpy.
14378
14379         * modules/acl, modules/backupfile, modules/c-strtod,
14380         modules/c-strtold, modules/canon-host, modules/canonicalize,
14381         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
14382         modules/exclude, modules/exitfail, modules/file-type,
14383         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
14384         modules/getdate, modules/getline, modules/getpagesize,
14385         modules/getpass, modules/getugroups, modules/group-member,
14386         modules/hard-locale, modules/hash, modules/human, modules/idcache,
14387         modules/inttostr, modules/long-options, modules/makepath,
14388         modules/md5, modules/memcasecmp, modules/memcoll,
14389         modules/modechange, modules/mountlist, modules/path-concat,
14390         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
14391         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
14392         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
14393         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
14394         modules/strftime, modules/strndup, modules/strverscmp,
14395         modules/timespec, modules/unlocked-io, modules/userspec,
14396         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
14397         modules/yesno:
14398         Remove lib_SOURCES line from Makefile.am section, as this is now
14399         done automatically by the corresponding Autoconf macro.
14400
14401 2005-03-21  Jim Meyering  <jim@meyering.net>
14402
14403         Changes imported from coreutils.
14404
14405         * lib/cycle-check.c: Don't include xalloc.h.
14406
14407         * lib/path-concat.c: Don't include assert.h.
14408         (path_concat): Remove assertion that would have triggered
14409         for ABASE starting with more than one slash.
14410         Reported by Andreas Schwab.
14411
14412         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
14413         properly when ABASE is an absolute file name.
14414         Correct the description of this function.
14415         Include <assert.h>.
14416         Add an assertion and a test driver.
14417         This fixes a bug introduced on 2004-07-02.
14418         Andreas Schwab reported the resulting failure of cp --parents:
14419         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
14420
14421 2005-03-21  Jim Meyering  <jim@meyering.net>
14422
14423         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
14424         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
14425
14426 2005-03-21  Jim Meyering  <jim@meyering.net>
14427         and  Paul Eggert  <eggert@cs.ucla.edu>
14428
14429         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
14430         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
14431         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
14432         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
14433         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
14434         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
14435         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
14436         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
14437         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
14438         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
14439         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
14440         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
14441         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
14442         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
14443         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
14444         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
14445         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
14446         for these modules.
14447
14448 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
14449
14450         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
14451         (which shouldn't happen), generate nothing instead of returning 0
14452         immediately, so that nstrftime (NULL, ...) doesn't return 0.
14453
14454 2005-03-16  Bruno Haible  <bruno@clisp.org>
14455
14456         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
14457         HAVE_LONGLONG_64BIT.
14458
14459 2005-03-16  Bruno Haible  <bruno@clisp.org>
14460
14461         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
14462         HAVE_LONGLONG_64BIT.
14463
14464 2005-03-16  Bruno Haible  <bruno@clisp.org>
14465
14466         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
14467         HAVE_LONGLONG_64BIT.
14468
14469 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
14470
14471         * lib/strftime.c (my_strftime): Prepend space to format so that we can
14472         reliably distinguish strftime failure from empty output on POSIX
14473         hosts.
14474
14475 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
14476
14477         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
14478         (iconv_string): Don't guess a size-zero buffer, as that might cause
14479         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
14480         result would be 'too large', where 'too large' is (heuristically)
14481         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
14482         overflow concerns.  This will prevent some unwanted malloc failures
14483         when the inputs are very large.
14484
14485 2005-03-15  Karl Berry  <karl@gnu.org>
14486
14487         * config/srclist.txt (config.rpath): from gettext.
14488         * config/config.rpath: update.
14489
14490 2005-03-15  Bruno Haible  <bruno@clisp.org>
14491
14492         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
14493         to 'negate'.
14494
14495         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
14496         variable.
14497
14498         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
14499         results.
14500
14501 2005-03-14  Simon Josefsson  <jas@extundo.com>
14502
14503         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
14504         <fx@gnu.org>.
14505
14506 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
14507
14508         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
14509         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
14510         intprops.h.
14511         * lib/strtol.c: Likewise.
14512
14513 2005-03-14  Jim Meyering  <jim@meyering.net>
14514
14515         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
14516         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
14517         to be nonzero so that we (and caller) can detect the difference
14518         between a valid zero-length expansion and an error return, even
14519         when the underlying strftime fails before writing anything into
14520         that location.
14521
14522 2005-03-14  Bruno Haible  <bruno@clisp.org>
14523
14524         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
14525         Update from GNU gettext 0.14.3.
14526
14527 2005-03-10  Jim Meyering  <jim@meyering.net>
14528
14529         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
14530
14531 2005-03-10  Jim Meyering  <jim@meyering.net>
14532
14533         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
14534         so that this module works on systems without fchdir.
14535
14536 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
14537
14538         Factor int-properties macros into a single file, except for
14539         glibc-related files.
14540         * lib/intprops.h: New file.
14541         * lib/getloadavg.c: Include it instead of limits.h.
14542         (INT_STRLEN_BOUND): Remove.
14543         * lib/human.c: Include intprops.h.
14544         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
14545         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
14546         302/1000.
14547         * lib/inttostr.h: Include intprops.h instead of limits.h.
14548         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
14549         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
14550         for consistency with intprops.h.
14551         (time_t_is_integer, twos_complement_arithmetic): Use them.
14552         * lib/sig2str.h: Include <signal.h>, intprops.h.
14553         (INT_STRLEN_BOUND): Remove.
14554         * lib/strftime.c (TYPE_SIGNED): Remove.
14555         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
14556         * lib/strtol.c: Adjust comments to match intprops.h.
14557         * lib/userspec.c: Include intprops.h.
14558         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
14559         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
14560         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
14561         instead of rolling our own expressions.
14562         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
14563
14564         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
14565         instead of int.
14566         (my_strftime): Do not mishandle years close to INT_MAX, by doing
14567         the right thing even if adding 1900 would overflow.  Similarly
14568         for tm_mon + 1 and tm_yday + 1.
14569         Make %Y always equivalent to %C%y, and similarly for %G and %g.
14570         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
14571         (DO_SIGNED_NUMBER): New macro.
14572         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
14573
14574 2005-03-07  Bruno Haible  <bruno@clisp.org>
14575
14576         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
14577
14578 2005-03-07  Bruno Haible  <bruno@clisp.org>
14579
14580         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
14581
14582 2005-03-04  Derek R. Price  <derek@ximbiot.com>
14583
14584         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
14585         (func_import): Only replace files via --import when they have actually
14586         changed.
14587
14588 2005-03-03  Derek R. Price  <derek@ximbiot.com>
14589
14590         * m4/mmap-anon.m4: New file.
14591         * m4/pagealign_alloc.m4: New file.
14592
14593 2005-03-03  Derek R. Price  <derek@ximbiot.com>
14594             Bruno Haible  <bruno@clisp.org>
14595
14596         * modules/pagealign_alloc: New file.
14597         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
14598
14599 2005-03-03  Derek R. Price  <derek@ximbiot.com>
14600             Bruno Haible  <bruno@clisp.org>
14601
14602         * lib/pagealign_alloc.h: New file.
14603         * lib/pagealign_alloc.c: New file.
14604
14605 2005-03-03  Bruno Haible  <bruno@clisp.org>
14606
14607         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
14608         Use an all-permissive copyright notice, recommended by RMS.
14609
14610 2005-03-02  Bruno Haible  <bruno@clisp.org>
14611
14612         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
14613         of AIX, the replacement has to be done only after <string.h> is
14614         included, therefore not in config.h. stpncpy.h does the replacement,
14615         and stpncpy.c uses it.
14616
14617 2005-03-02  Bruno Haible  <bruno@clisp.org>
14618
14619         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
14620         stpncpy.c uses it.
14621
14622 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
14623
14624         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
14625         The workaround isn't strictly needed for POSIX conformance, and
14626         it's too much of a pain to configure and maintain.  We'll ask
14627         people to fix their kernels instead.
14628         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
14629         (NANOSLEEP_BUG_WORKAROUND): Remove.
14630         (xnanosleep): Remove the workaround.
14631
14632 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
14633
14634         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
14635         Reported by Derek Price.
14636         (Include): Add "timespec.h".
14637
14638         * modules/xnanosleep (Depends-on): Remove gethrxtime.
14639
14640 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
14641
14642         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
14643         to detect nanosleep bug.
14644
14645 2005-03-01  Bruno Haible  <bruno@clisp.org>
14646
14647         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
14648
14649 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
14650
14651         * modules/gethrxtime: New file.
14652         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
14653         (Depends-on): Add gethrxtime.
14654         (configure.ac): Add gl_XNANOSLEEP.
14655         (Makefile.am): Remove lib_SOURCES line.
14656
14657 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
14658
14659         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
14660         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
14661
14662 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
14663
14664         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
14665         * lib/timespec.h (gettime): Return void, since it always
14666         succeeds now.  All uses changed.
14667         * lib/gettime.c (gettime) Likewise.
14668         [HAVE_NANOTIME]: Prefer nanotime.
14669         Assume gettimeofday succeeds, as POSIX requires.
14670         Assime time () succeeds, since other code already does.
14671         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
14672         (timespec_subtract): Remove.
14673         (NANOSLEEP_BUG_WORKAROUND): New constant.
14674         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
14675         things considerably.  Use it only on GNU/Linux hosts, since the
14676         workaround shouldn't be needed elsewhere.
14677
14678 2005-02-24  Bruno Haible  <bruno@clisp.org>
14679
14680         * modules/gettext (Files): Add m4/glibc2.m4.
14681
14682 2005-02-24  Bruno Haible  <bruno@clisp.org>
14683
14684         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
14685         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
14686         * m4/progtest.m4:
14687         Update from GNU gettext 0.14.2.
14688         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
14689
14690 2005-02-24  Bruno Haible  <bruno@clisp.org>
14691
14692         * lib/localcharset.c: Update from GNU gettext 0.14.2.
14693         * lib/config.charset: Update from GNU gettext 0.14.2.
14694
14695 2005-02-24  Bruno Haible  <bruno@clisp.org>
14696
14697         * lib/gettext.h: Update from GNU gettext 0.14.2.
14698
14699 2005-02-23  Simon Josefsson  <jas@extundo.com>
14700
14701         * m4/iconvme.m4: New file.
14702
14703 2005-02-23  Jim Meyering  <jim@meyering.net>
14704
14705         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
14706         change.
14707         Thanks to Bruno Haible for catching it.
14708
14709 2005-02-22  Simon Josefsson  <jas@extundo.com>
14710
14711         * modules/iconvme: New file.
14712
14713         * MODULES.html.sh: Add iconvme.
14714
14715 2005-02-22  Simon Josefsson  <jas@extundo.com>
14716
14717         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
14718
14719 2005-02-22  Simon Josefsson  <jas@extundo.com>
14720
14721         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
14722
14723 2005-02-22  Jim Meyering  <jim@meyering.net>
14724
14725         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
14726         s/ifndef/ifdef/.
14727
14728 2005-02-20  Neil Conway  <neilc@samurai.com>
14729
14730         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
14731         returned by OSX/Darwin if the specified buffer is not large
14732         enough for the hostname.
14733
14734 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
14735
14736         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
14737         pass it to _help, otherwise the latter coredumps trying to
14738         dereference state.root_argp.
14739
14740 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
14741
14742         * modules/chdir-long (Depends-on): Add memrchr.
14743         * modules/memrchr (Files): Add lib/memrchr.h.
14744         (Include): "memrchr.h".
14745
14746 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
14747
14748         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
14749
14750 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
14751
14752         * lib/memrchr.h: New file.
14753         * lib/chdir-long.c: Include it.
14754         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
14755         Don't bother including stddef.h.
14756
14757 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
14758
14759         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
14760         inclusion.
14761         Include <sys/types.h>, for dev_t.
14762         (ME_DUMMY, ME_REMOTE): Move from here....
14763         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
14764         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
14765         Dmitry V. Levin.
14766         Include mountlist.h first, to test the interface.
14767
14768 2005-01-29  Bruno Haible  <bruno@clisp.org>
14769
14770         * lib/progname.c (program_name): Initialize.
14771         Needed when linking statically on MacOS X.
14772
14773 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
14774
14775         Sync from coreutils.
14776         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
14777         (Depends-on): Add c-strtod.
14778         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
14779
14780 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
14781
14782         Sync from coreutils.
14783         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
14784
14785         Remove files that are specific to coreutils.
14786         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
14787
14788 2005-01-28  Bruno Haible  <bruno@clisp.org>
14789
14790         * modules/javacomp: New file.
14791         * MODULES.html.sh (Java): Add javacomp.
14792
14793 2005-01-28  Bruno Haible  <bruno@clisp.org>
14794
14795         * m4/javacomp.m4: New file, from GNU gettext.
14796
14797 2005-01-28  Bruno Haible  <bruno@clisp.org>
14798
14799         * lib/javacomp.sh.in: New file, from GNU gettext.
14800         * lib/javacomp.h: New file, from GNU gettext.
14801         * lib/javacomp.c: New file, from GNU gettext.
14802
14803 2005-01-26  Simon Josefsson  <jas@extundo.com>
14804
14805         * lib/gai_strerror.c: Use GPL in header.
14806
14807 2005-01-26  Bruno Haible  <bruno@clisp.org>
14808
14809         * modules/javaexec: New file.
14810         * MODULES.html.sh (Java): Add javaexec.
14811
14812 2005-01-26  Bruno Haible  <bruno@clisp.org>
14813
14814         * m4/javaexec.m4: New file, from GNU gettext.
14815
14816 2005-01-26  Bruno Haible  <bruno@clisp.org>
14817
14818         * lib/javaexec.sh.in: New file, from GNU gettext.
14819         * lib/javaexec.h: New file, from GNU gettext.
14820         * lib/javaexec.c: New file, from GNU gettext.
14821
14822 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
14823
14824         * modules/lchown (Depends-on): Remove lchown.h
14825
14826 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
14827
14828         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
14829         must be defined if the header file was not found, in order
14830         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
14831
14832 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
14833
14834         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
14835         initializers for struct pentry_state.
14836         (__argp_error): Check return value of __asprintf
14837         (__argp_failure): Translate error message
14838
14839         * lib/argp-parse.c: Removed braces around the expansion of N_()
14840
14841 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
14842
14843         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
14844         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
14845         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
14846         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
14847         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
14848         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
14849         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
14850         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
14851         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
14852         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
14853         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
14854         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
14855         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
14856         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
14857         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
14858         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
14859         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
14860         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
14861         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
14862         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
14863         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
14864         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
14865         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
14866         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
14867         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
14868         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
14869         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
14870         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
14871         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
14872         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
14873         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
14874         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
14875         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
14876         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
14877         xstrtol.m4, xstrtoumax.m4, yesno.m4:
14878         Use an all-permissive copyright notice, recommended by RMS.
14879
14880 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
14881
14882         * modules/chdir-long (Depends-on): Remove mempcpy.
14883
14884 2005-01-21  Jim Meyering  <jim@meyering.net>
14885
14886         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
14887         same value as for Solaris 9.
14888
14889         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
14890         component length.  This included changing the parameter to be
14891         of type `char *' rather than `char const *'.
14892         * lib/chdir-long.h (chdir_long): Update prototype.
14893
14894         * lib/openat.c (fdopendir, fstatat): New functions.
14895         * lib/openat.h: Include headers required for use of DIR and struct
14896         stat.
14897         [AT_SYMLINK_NOFOLLOW]: Define.
14898         (fdopendir, fstatat): Add prototypes.
14899
14900 2005-01-21  Bruno Haible  <bruno@clisp.org>
14901
14902         * modules/classpath: New file.
14903         * MODULES.html.sh (Java): Add classpath.
14904
14905 2005-01-21  Bruno Haible  <bruno@clisp.org>
14906
14907         * lib/classpath.h: New file, from GNU gettext.
14908         * lib/classpath.c: New file, from GNU gettext.
14909
14910 2005-01-20  Simon Josefsson  <jas@extundo.com>
14911
14912         * modules/version-etc-fsf: New file.
14913
14914 2005-01-20  Simon Josefsson  <jas@extundo.com>
14915
14916         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
14917         * lib/version-etc.c: Remove version_etc_copyright.
14918         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
14919         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
14920
14921 2005-01-20  Simon Josefsson  <jas@extundo.com>
14922
14923         * lib/base64.h (isbase64): Add.
14924
14925         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
14926         using a unsigned prototype, don't inline.
14927         (base64_decode): Use it.
14928
14929 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
14930
14931         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
14932         it.
14933
14934 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
14935
14936         * lib/save-cwd.c (save_cwd): Remove code to support the case
14937         where fchdir is missing or flaky.
14938
14939 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
14940
14941         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
14942
14943 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
14944
14945         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
14946         AC_LIBSOURCES now does this.
14947         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
14948         with new ullong_max module.
14949
14950 2005-01-19  Bruno Haible  <bruno@clisp.org>
14951
14952         * modules/sh-quote: New file.
14953         * MODULES.html.sh (Executing programs): Add sh-quote.
14954
14955 2005-01-19  Bruno Haible  <bruno@clisp.org>
14956
14957         * lib/sh-quote.h: New file, from GNU gettext.
14958         * lib/sh-quote.c: New file, from GNU gettext.
14959
14960 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
14961
14962         Merge from coreutils.
14963         * m4/ullong_max.m4: New file.
14964         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
14965         (gl_MACROS): Assume localeconv exists.
14966
14967 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
14968
14969         Merge changes from coreutils, as described below in several
14970         changelogs dated today.
14971
14972         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
14973         (O_DIRECTORY): Remove; not needed here, since "." must be
14974         a directory.  All uses removed.
14975         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
14976         universal on Suns, and we also need to test for IRIX.
14977         Revamp code to use 'if' rather than '#if'.
14978         Avoid unnecessary comparison of cwd->desc to 0.
14979
14980         * lib/utimens.c (futimens): Robustify the previous patch, by checking
14981         for known valid error numbers rather than observed invalid ones.
14982
14983 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
14984
14985         * modules/ullong_max: New file.
14986
14987         * modules/chdir-long, modules/openat: New files.
14988         * modules/save-cwd (Depends-on): Depend on chdir-long.
14989         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
14990
14991 2005-01-18  Jim Meyering  <jim@meyering.net>
14992
14993         Merge from coreutils.
14994         * m4/chdir-long.m4, m4/openat.m4: New files.
14995         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
14996         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
14997         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
14998         is sane and DOES follow symlinks.  Besides, testing 20 different
14999         systems found no broken chown implementations.
15000         Prompted by a change in rsync's copy of this macro.
15001         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
15002
15003         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
15004
15005         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
15006         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
15007         NULL-means-set-to-current-time semantics.
15008         Remove temporary file immediately, rather than waiting
15009         for configure's at-exit trap code to do it.
15010
15011 2005-01-18  Jim Meyering  <jim@meyering.net>
15012
15013         * lib/version-etc.c (version_etc_copyright): Update copyright date.
15014
15015         * lib/utimens.c (futimens): Account for the fact that futimes
15016         can also fail with errno == ENOSYS or errno == ENOENT.
15017         Patch from Dmitry V. Levin.
15018
15019         Change the name of the robust chdir function from chdir to chdir_long.
15020         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
15021         (restore_cwd): Use chdir_long, not chdir.
15022         * lib/chdir-long.c: Renamed from chdir.c.
15023         * lib/chdir-long.h: Renamed from chdir.h.
15024         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
15025         Hurd.
15026
15027 2005-01-18  Bruno Haible  <bruno@clisp.org>
15028
15029         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
15030         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
15031         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
15032         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
15033         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
15034         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
15035         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
15036         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
15037         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
15038         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
15039         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
15040         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
15041         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
15042         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
15043         Use an all-permissive copyright notice, recommended by RMS.
15044
15045 2005-01-18  Bob Proulx  <bob@proulx.com>
15046
15047         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
15048         simplify offsetof() macro construct to avoid compile failure with
15049         native HP-UX 11.0 ANSI C compiler.
15050
15051 2005-01-17  Bruno Haible  <bruno@clisp.org>
15052
15053         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
15054         redundant because stpncpy.m4 takes care of it.
15055
15056 2005-01-17  Bruno Haible  <bruno@clisp.org>
15057
15058         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
15059
15060 2005-01-17  Bruno Haible  <bruno@clisp.org>
15061
15062         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
15063         used.
15064
15065 2005-01-17  Bruno Haible  <bruno@clisp.org>
15066
15067         * lib/fwriteerror.h (fwriteerror): Change specification to include
15068         fclose.
15069         * lib/fwriteerror.c: Include <stdbool.h>.
15070         (fwriteerror): At the end, close the file stream. Record whether
15071         stdout was already closed.
15072
15073 2005-01-17  Bruno Haible  <bruno@clisp.org>
15074
15075         * lib/execute.c (environ): Declare if needed.
15076         * lib/pipe.c (environ): Likewise.
15077         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
15078
15079 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
15080
15081         * modules/argp: Depend on vsnprintf
15082
15083 2005-01-10  Jim Meyering  <jim@meyering.net>
15084
15085         * modules/closeout (Depends-on): Add atexit.
15086
15087 2005-01-06  Bruno Haible  <bruno@clisp.org>
15088
15089         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
15090
15091 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
15092
15093         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
15094         definitions to be after all include files, to avoid collisions.
15095         Problem reported by Bob Proulx.
15096
15097 2005-01-04  Jim Meyering  <jim@meyering.net>
15098
15099         Changes imported from coreutils.
15100         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
15101         as the mkstemp template, use a temporary directory and an
15102         8.3-friendly template to avoid trouble on systems like DJGPP.
15103         Reported by Juan M. Guerrero via Stepan Kasal.
15104         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
15105         close. Remove the temporary directory right away, rather than waiting
15106         for configure's at-exit trap code to do it.
15107         Suggestion from Stepan Kasal.
15108
15109 2005-01-01  Simon Josefsson  <jas@extundo.com>
15110
15111         * gnulib-tool: Print #include directives when --import'ing.
15112
15113 2004-12-28  Simon Josefsson  <jas@extundo.com>
15114
15115         * tests/test-base64.c: Include required header files.  Remove
15116         unused variables.
15117
15118 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
15119
15120         * modules/error (Depends-on): Remove gettext.
15121
15122 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
15123
15124         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
15125         not needed.  This removes a dependency on the gettext module.
15126         [defined _LIBC]: Do not include <libintl.h>; not needed.
15127
15128 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
15129
15130         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
15131         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
15132
15133 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
15134
15135         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
15136         HAVE_DECL_STRTOLD.
15137
15138 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
15139
15140         * modules/getdate (Depends-on): Remove alloca-opt.
15141
15142 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
15143
15144         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
15145
15146 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
15147
15148         * lib/argp-parse.c: Include <stddef.h>.
15149         (alignof, alignto): New macros.
15150         (parser_init): Don't assume that void * is aligned sufficiently
15151         for struct option.
15152
15153         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
15154         need to extend the stack.
15155         (YYINITDEPTH): New macro, so that the initial stack isn't overly
15156         large.
15157
15158 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
15159
15160         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
15161
15162 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
15163
15164         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
15165         (2004-10-24) change.  Apparently this was a false alarm.
15166
15167         * modules/getdate: Depend on alloca-opt, not alloca.
15168
15169 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
15170
15171         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
15172         Remove now-obsolete comment about AIX.
15173         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
15174         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
15175         (YYMAXDEPTH): New macro.
15176
15177 2004-12-18  Simon Josefsson  <jas@extundo.com>
15178
15179         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
15180
15181 2004-12-18  Bruno Haible  <bruno@clisp.org>
15182
15183         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
15184
15185 2004-12-18  Bruno Haible  <bruno@clisp.org>
15186
15187         * lib/fatal-signal.c (fatal_signals): Make non-const.
15188         (init_fatal_signals): New function.
15189         (uninstall_handlers, install_handlers): Ignore signals that were set to
15190         SIG_IGN.
15191         (at_fatal_signal): Call init_fatal_signals.
15192         (init_fatal_signal_set): Likewise. Ignore signals that were set to
15193         SIG_IGN.
15194         Reported by Paul Eggert.
15195
15196 2004-12-18  Bruno Haible  <bruno@clisp.org>
15197
15198         * doc/alloca.texi: New file.
15199         * doc/alloca-opt.texi: New file.
15200
15201 2004-12-17  Jim Meyering  <jim@meyering.net>
15202
15203         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
15204         Otherwise, install-sh could exit with improper exit status when
15205         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
15206
15207 2004-12-16  Simon Josefsson  <jas@extundo.com>
15208
15209         * tests/test-base64.c: Add license.
15210
15211 2004-12-15  Stepan Kasal  <address@hidden>
15212
15213         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
15214
15215 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
15216
15217         * modules/getcwd (Files): Add m4/d-ino.m4.
15218         Suggested by Mark D. Baushke.
15219
15220 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
15221
15222         * lib/getdate.y (textint): New member "negative".
15223         (time_zone_hhmm): New function.
15224         Expect 14 shift-reduce conflicts, not 13.
15225         (o_colon_minutes): New rule.
15226         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
15227         (yylex): Set the "negative" member of signed numbers.
15228
15229 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
15230
15231         * doc/getdate.texi (Time of day items, Time zone items):
15232         Describe new formats +00:00, UTC+00:00.
15233
15234 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
15235
15236         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
15237         spurious "-l"s.  Problem reported by Stepan Kasal.
15238
15239 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
15240
15241         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
15242         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
15243
15244 2004-12-04  Simon Josefsson  <jas@extundo.com>
15245
15246         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
15247         Vandoorselaere <yoann@prelude-ids.org>.
15248
15249 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
15250
15251         Changes imported from coreutils.
15252         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
15253         exist.
15254         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
15255
15256 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
15257
15258         Changes imported from coreutils.
15259         * lib/hard-locale.c: Assume <locale.h> exists.
15260         Include "strdup.h".
15261         (GLIBC_VERSION): New macro.
15262         (hard_locale): Assume setlocale exists.
15263         Rewrite to avoid #ifdef.
15264         Use strdup rather than malloc + strcpy.
15265         * lib/human.c: Assume <locale.h> exists.
15266         (human_readable): Assume localeconv exists.
15267
15268 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
15269
15270         * modules/hard-locale (Depends-on): Add strdup.
15271
15272 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
15273
15274         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
15275         convert T2, not T.  (Imported from libc.)
15276
15277 2004-11-30  Simon Josefsson  <jas@extundo.com>
15278
15279         * modules/restrict (License): Change to LGPL.
15280
15281 2004-11-30  Simon Josefsson  <jas@extundo.com>
15282
15283         * m4/restrict.m4: Add copyright and copying conditions.
15284
15285 2004-11-30  Simon Josefsson  <jas@extundo.com>
15286
15287         * m4/base64.m4: New file.
15288
15289 2004-11-30  Simon Josefsson  <jas@extundo.com>
15290
15291         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
15292         base64.
15293
15294         * tests/test-base64.c: New file.
15295
15296         * modules/base64: New file.
15297
15298 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
15299
15300         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
15301         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
15302
15303         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
15304
15305 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
15306
15307         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
15308         (__getcwd.c): Don't restore errno; glibc doesn't.
15309         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
15310         first, falling back to our code only if its results look suspicious.
15311         Ensure that the resulting buffer is only as large as necessary.
15312
15313         * lib/readutmp.c: Include readutmp.h first.
15314         Include <errno.h>, since readutmp.h no longer does that.
15315         * lib/readutmp.h: Don't include <errno.h>,
15316         <sys/param.h>, <time.h>; not needed to establish interface.
15317         (errno): Remove decl.
15318         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
15319         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
15320         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
15321
15322 2004-11-28  Simon Josefsson  <jas@extundo.com>
15323
15324         * lib/base64.h, base64.c: New file.
15325
15326 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
15327
15328         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
15329
15330 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
15331
15332         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
15333         (Depends-on): Remove pathmax, same.  Add mempcpy.
15334         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
15335         (Makefile.am): Append getcwd.h to lib_SOURCES.
15336         (Include): Add getcwd.h.
15337         (Maintainer): Change from Jim Meyering to "all, glibc",
15338         since getdate now uses intended-for-glibc code.
15339         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
15340         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
15341
15342 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
15343
15344         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
15345         HP's ANSI C compiler.
15346         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
15347         Declaring int functions causes warnings on some modern systems and
15348         shouldn't be needed to compile on ancient ones.
15349         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
15350         defined.
15351
15352         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
15353         with the following changes.
15354         (__set_errno): Parenthesize properly.
15355         Include <stdbool.h>.
15356         (MIN, MAX, MATCHING_INO): New macros.
15357         (__getcwd): Define with prototype, not K&R form.
15358         Use heuristics to allocate default buffer on stack if possible.
15359         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
15360         behavior, and to avoid the PATH_MAX limit when computing
15361         ../../../../...
15362         Use MATCHING_INO to compare inode number to file.
15363         Check for arithmetic overflow in size calculations.
15364         Fix bug in reallocation of dot array that caused getcwd to fail
15365         on directories nested deeper than 75.
15366         Be more careful about saving errno on error.
15367         Do not use realloc; use only free+malloc, as this is a bit
15368         more flexible and avoids a needless copy operation.
15369         Do not inspect st_dev and st_ino for symbolic links; POSIX
15370         doesn't specify the latter.
15371         Check for closedir errors.
15372         Avoid needless casts.
15373         Use "#ifdef weak_alias" around weak_alias, to be like other
15374         glibc code.
15375         The following changes to getcwd.c have effect only when used in
15376         gnulib; they have no effect inside glibc proper.
15377         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
15378         as alloca isn't used.
15379         (alloca, __alloca): Likewise.
15380         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
15381         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
15382         unconditionally, as gnulib assumes C89 or better.
15383         Do not include <sys/param.h>.
15384         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
15385         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
15386         better.
15387         (NULL) [!defined NULL]: Remove; we assume C89 or better.
15388         Include <dirent.h> in a way that is compatible with modern Autoconf.
15389         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
15390         New macros, if not already defined.
15391         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
15392         Use "_LIBC", not "defined _LIBC", for consistency.
15393         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
15394         a mempcpy module.
15395         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
15396         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
15397         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
15398         credit only to Jim Meyering and adjust the copyright dates.
15399         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
15400         <stdlib.h>, <unistd.h>, "pathmax.h".
15401         Instead, include "xgetcwd.h" (first) and "getcwd.h".
15402         (INITIAL_BUFFER_SIZE): Remove.
15403         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
15404
15405 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
15406
15407         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
15408         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
15409         Use the _ONCE methods, for efficiency.
15410         Check for fcntl.h.  In test program, include <errno.h>
15411         and <fcntl.h> if available.  Remove old K&R cruft from
15412         test program.  Check for common errors in GNU/Linux,
15413         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
15414         don't do AC_LIBOBJ, as that's getcwd.m4's job.
15415         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
15416         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
15417         name accordingly.
15418         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
15419         accommodate new getcwd.c.
15420         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
15421         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
15422         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
15423         that's all we need now.
15424
15425 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
15426
15427         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
15428         argp-parse.c depends on getopt internals, that means we should
15429         always use our getopt, to be on the safe side.
15430         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
15431         order not to spoil the result of an eventual previous invocation
15432         of gl_GETOPT_SUBSTITUTE.
15433
15434 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
15435
15436         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
15437         redefinition warnings. To avoid them, include the defines
15438         in `#if !defined __need_getopt ... #endif'. The only place
15439         where __getopt_argv_const is used is in definitions
15440         of getopt_long and getopt_long_only below, which are as well
15441         protected by `#ifndef __need_getopt'.
15442         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
15443         __need_getopt after including <stdio.h> and <unistd.h> These
15444         headers might have defined it.
15445
15446 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
15447
15448         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
15449
15450 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
15451
15452         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
15453         (futimens): New function, which uses futimes if available.
15454         (futimens, utimens): Support timespec==NULL, with same semantics
15455         as utime and utimens.
15456         * lib/utimens.h (futimens): New decl.
15457
15458 2004-11-23  Jim Meyering  <jim@meyering.net>
15459
15460         * lib/getopt_.h: Remove trailing blanks.
15461
15462 2004-11-23  Jim Meyering  <jim@meyering.net>
15463
15464         * lib/__fpending.c: Add comment.
15465
15466 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
15467
15468         * modules/canonicalize (Depends-on): Add xreadlink.
15469         Problem reported by James Youngman.
15470
15471 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
15472
15473         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
15474         New macros.
15475         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
15476         optopt): Use them instead of invoking ## directly; otherwise, the
15477         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
15478
15479 2004-11-19  Bruno Haible  <bruno@clisp.org>
15480
15481         * lib/strtok_r.c: Move comments from here...
15482         * lib/strtok_r.h: ... to here.
15483
15484 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
15485
15486         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
15487         implementations that mishandle size_t overflow.
15488
15489 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
15490
15491         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
15492         might fail.  Problem reported by Yoann Vandoorselaere.
15493         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
15494         implementations that mishandle size_t overflow.
15495
15496 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
15497
15498         * modules/canon-host (Depends-on): Add strdup.
15499
15500 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
15501
15502         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
15503
15504 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
15505
15506         * lib/canon-host.c: Include "strdup.h".
15507         (canon_host): Use getaddrinfo if available, so that IPv6 works.
15508         Use strdup instead of malloc/strcpy to duplicate strings.
15509
15510         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
15511         (human_space_before_unit): New constant.
15512         * lib/human.c (human_readable): Support it.
15513
15514         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
15515         (xgetcwd): Set errno correctly when failing.
15516         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
15517         the failure is actually due to a PATH_MAX problem.
15518
15519         Further getopt changes to make it more likely that glibc will
15520         buy the changes back.
15521         * lib/getopt.c (POSIXLY_CORRECT): New constant.
15522         (getopt): Use it, so to preserve glibc semantic
15523         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
15524         when compiling for libc.
15525         * lib/getopt_.h (__getopt_argv_const): Bring it back.
15526         (getopt_long, getopt_long_only): Use it.
15527
15528         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
15529         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
15530         (getopt): Argv is now char * const *, as per standard.
15531         (_getopt_internal_r, _getopt_internal): Argv is now char **,
15532         not char *__getopt_argv_const *.
15533         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
15534         _getopt_long_only_r): Likewise.
15535         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
15536         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
15537         _getopt_long_r, _getopt_long_only_r): Likewise.
15538         * lib/getopt_.h (__getopt_argv_const): Remove.
15539         (getopt): Argv is now char * const *, as per standard.
15540
15541         * lib/getdate.y (tORDINAL): New token.
15542         (day, relunit): Allow it for relative times.
15543         (relative_time_table): Use tORDINAL for ordinals.
15544
15545 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
15546
15547         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
15548         Document that "second" isn't allowed as an ordinal number.
15549
15550 2004-11-16  Jim Meyering  <jim@meyering.net>
15551
15552         * modules/closeout (Depends-on): Add fpending.
15553
15554 2004-11-15  Jim Meyering  <jim@meyering.net>
15555
15556         * lib/closeout.c: Include "__fpending.h" once again.
15557         Include <stdbool.h>.
15558         (close_stdout): Don't fail just because stdout was closed initially,
15559         since some programs don't write to stdout in the normal course of
15560         operation (other than --version and --help), and we don't want this
15561         function to make e.g. `touch file >&-' fail.
15562         But do fail if it was closed and someone has tried to write to it.
15563         E.g., `printf foo >&-' must fail.
15564
15565 2004-11-13  Jim Meyering  <jim@meyering.net>
15566
15567         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
15568
15569 2004-11-12  Simon Josefsson  <jas@extundo.com>
15570
15571         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
15572         small doc fix is still pending.
15573
15574 2004-11-11  Simon Josefsson  <jas@extundo.com>
15575
15576         * modules/strtok_r: New file.
15577
15578         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
15579         strtok_r.
15580
15581 2004-11-11  Simon Josefsson  <jas@extundo.com>
15582
15583         * m4/strtok_r.m4: New file.
15584
15585         * m4/getopt.m4: Replace opterr.
15586
15587 2004-11-11  Simon Josefsson  <jas@extundo.com>
15588
15589         * lib/strtok_r.h, strtok_r.c: New file.
15590
15591 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
15592
15593         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
15594         of replacing opterr, getopt, etc.  This should handle the
15595         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
15596
15597 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
15598
15599         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
15600         we can stop lying to compilers about the constness of argv when we
15601         are compiled outside glibc.
15602         (getopt, getopt_long, getopt_long_only): Use it.
15603         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
15604         _getopt_internal, getopt): Likewise.
15605         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
15606         _getopt_long_only_r): Likewise.
15607         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
15608         _getopt_long_r, _getopt_long_only_r): Likewise.
15609
15610         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
15611         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
15612         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
15613         the other external symbols.
15614         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
15615         declaration, since the above renaming now works around collisions.
15616
15617 2004-11-11  Jim Meyering  <jim@meyering.net>
15618
15619         * lib/linebreak.c: Remove trailing blanks.
15620         * lib/alloca_.h: Likewise.
15621         * lib/acosl.c: Likewise.
15622         * lib/euidaccess.c: Likewise.
15623         * lib/allocsa.h: Likewise.
15624
15625 2004-11-10  Simon Josefsson  <jas@extundo.com>
15626
15627         * m4/getaddrinfo.m4: New file.
15628
15629 2004-11-10  Simon Josefsson  <jas@extundo.com>
15630
15631         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
15632
15633 2004-11-10  Simon Josefsson  <jas@extundo.com>
15634
15635         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
15636         getaddrinfo.
15637
15638         * modules/getaddrinfo: New file.
15639
15640 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
15641
15642         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
15643
15644 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
15645
15646         * lib/mktime.c (SHR): New macro, which is a portable
15647         substitute for >> that should work even on Crays.
15648         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
15649         Problem reported by Mark D. Baushke in
15650         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
15651         * lib/getdate.y (SHR): Likewise.
15652         (tm_diff): Use it.
15653         * lib/strftime.c (SHR): Likewise.
15654         (tm_diff): Use it.
15655         * lib/quotearg.c (struct quoting_options): Use unsigned int for
15656         quote_these_too, so that right shifts are well defined.  All uses
15657         changed.
15658
15659 2004-11-10  Jim Meyering  <jim@meyering.net>
15660
15661         Ensure that no close failure goes unreported.
15662         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
15663         return early when it seems there's nothing to flush.
15664         Don't include __fpending.h.
15665
15666 2004-11-10  Jim Meyering  <jim@meyering.net>
15667
15668         * modules/closeout (Depends-on): Remove fpending.
15669
15670 2004-11-10  Jim Meyering  <jim@meyering.net>
15671
15672         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
15673
15674 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
15675
15676         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
15677         gl_FUNC_STRFTIME.
15678         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
15679         and AC_REQUIRE when possible, to avoid duplicate checks.
15680         Check for <wchar.h>.
15681
15682 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
15683
15684         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
15685
15686 2004-11-09  Bruno Haible  <bruno@clisp.org>
15687
15688         * m4/sockpfaf.m4: New file.
15689
15690 2004-11-05  Bruno Haible  <bruno@clisp.org>
15691
15692         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
15693         Reported by Mark D. Baushke <mdb@cvshome.org>.
15694
15695 2004-11-04  Bruno Haible  <bruno@clisp.org>
15696
15697         2004-09-11  Bruno Haible  <bruno@clisp.org>
15698                 * allocsa.valgrind: New file.
15699         2004-02-06  Bruno Haible  <bruno@clisp.org>
15700                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
15701                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
15702                 Reported by Christopher Seip <chris.seip@hp.com>.
15703
15704 2004-11-04  Bruno Haible  <bruno@clisp.org>
15705
15706         * modules/allocsa (Files): Add lib/allocsa.valgrind.
15707         (Makefile.am): Distribute it.
15708
15709 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
15710
15711         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
15712         with errno == ERANGE if the buffer is too small.
15713         Problem reported by Mark D. Baushke.
15714
15715 2004-11-03  Albert Chin  <china@thewrittenword.com>
15716             Paul Eggert  <eggert@cs.ucla.edu>
15717
15718         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
15719         equivalent, substitute $ac_type for equivalent type rather than
15720         blindly using uint32_t *always* which won't work if uint32_t is not
15721         available.  Define _UINT32_T to work around typedef of uint32_t if
15722         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
15723         2.5.1.
15724
15725 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
15726
15727         * m4/jm-macros.m4: Sync from coreutils.
15728         (gl_MACROS): Check for mbrlen, for pathchk.
15729         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
15730
15731 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
15732
15733         * lib/xreadlink.c (MAXSIZE): New macro.
15734         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
15735         size does not exceed MAXSIZE.  Avoid cast.
15736         As suggested by Mark D. Baushke in
15737         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
15738         if readlink fails with buffer size just under MAXSIZE, try again
15739         with MAXSIZE.
15740
15741 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
15742
15743         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
15744
15745 2004-11-02  Derek R. Price  <derek@ximbiot.com>
15746         and  Paul Eggert  <eggert@cs.ucla.edu>
15747
15748         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
15749         (get_date): Overparenthesize to avoid GCC warning.
15750
15751 2004-11-02  Bruno Haible  <bruno@clisp.org>
15752
15753         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
15754         returns void.
15755
15756 2004-11-02  Bruno Haible  <bruno@clisp.org>
15757
15758         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
15759         function returns void.
15760
15761 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
15762
15763         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
15764         fflush_unlocked, flockfile, funlockfile, funlockfile,
15765         fputs_unlocked, putc_unlocked.
15766
15767 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
15768
15769         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
15770         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
15771         already declared.
15772
15773 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
15774
15775         * modules/getdate (Files): Add doc/getdate.texi.
15776         (Depends-on): Add setenv, xalloc.
15777
15778 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
15779
15780         * lib/getdate.y: Add support for TZ="foo" within a date string.
15781         Fix some bugs near time_t boundaries.  Reject dates with
15782         out-of-range components, e.g., "Sept 31".
15783         Include <stdlib.h>, "setenv.h", "xalloc.h".
15784         (ISDIGIT_LOCALE): Remove; unused.
15785         Note that the TZ and time functions used here are not reentrant.
15786         (mktime_ok, get_tz): New functions.
15787         (TZBUFSIZE): New constant.
15788         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
15789         This requires that we sometimes generate our own TZ="XXX..." setting.
15790
15791 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
15792
15793         * doc/getdate.texi: New file, from coreutils with modifications for
15794         the new TZ parsing.
15795
15796 2004-10-27  Derek R. Price  <derek@ximbiot.com>
15797
15798         * lib/mktime.c (not_equal_tm): Remove redundant check.
15799
15800 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
15801
15802         * modules/regex (lib_SOURCES): Add regex.c.
15803         Reported by James Youngman in
15804         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
15805
15806 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
15807
15808         * lib/getdate.y: Use Bison 1.875 features, and some minor
15809         code cleanups.  This change does not affect semantics.
15810         Don't include <stdlib.h>; no longer needed.
15811         Don't include unlocked-io.h; only the "#if TEST" code uses
15812         stdio, and performance isn't crucial there.
15813         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
15814         Bison 1.875 features as described below.
15815         All uses of "PC." replaced by "pc->".
15816         (YYSTYPE): Add a forward declaration.
15817         (yylex, yyerror): Use full prototypes in forward decls.
15818         Use "%pure-parser" rather than obsolescent "%pure_parser".
15819         Use %parse-param and %lex-param instead of obsolescent
15820         YYPARSE_PARAM and YYLEX_PARAM.
15821         (meridian_table, month_and_day_table, time_units_table,
15822         relative_time_table, time_zone_table, military_table,
15823         lookup_zone, lookup_word, get_date):
15824         Use NULL instead of 0 where appropriate.
15825         (to_hour): Avoid abort (), to avoid a dependency on
15826         stdlib.h.
15827         (yyerror, yylex): Now accepts parser_control * arg.
15828         (main) [TEST]: Use '\0' rather than 0 for char.
15829
15830 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
15831
15832         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
15833
15834 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
15835
15836         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
15837         It's now the caller's responsibility to handle the case where
15838         !HAVE_GETPAGESIZE && !defined getpagesize.
15839
15840         * lib/mktime.c (leapyear): Arg is long int, not int.
15841
15842 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
15843
15844         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
15845
15846 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
15847
15848         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
15849         missing.  Problem reported by James Youngman.
15850
15851 2004-10-16  Simon Josefsson  <jas@extundo.com>
15852
15853         * gnulib-tool: Fix comments.  Fix parse problem.
15854         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
15855
15856 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
15857
15858         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
15859         implementation of getopt_long.  Problem reported by Alexander Taler in:
15860         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
15861
15862 2004-10-15  Bruno Haible  <bruno@clisp.org>
15863
15864         * gnulib-tool: Untabify. Initialize supplied_libname.
15865         (func_usage): More homogenous output.
15866         (func_modules_transitive_closure, func_modules_to_filelist,
15867         func_emit_lib_Makefile_am): New functions.
15868         (func_import): New function, extracted from big case statement. Use
15869         func_get_license, func_modules_transitive_closure,
15870         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
15871         opt_lgpl. Don't use test -a, as it's not portable.
15872         (func_create_testdir): Use func_modules_transitive_closure,
15873         func_modules_to_filelist, func_emit_lib_Makefile_am.
15874
15875 2004-10-15  Bruno Haible  <bruno@clisp.org>
15876
15877         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
15878
15879 2004-10-15  Bruno Haible  <bruno@clisp.org>
15880
15881         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
15882         the portions belonging to each module.
15883         Suggested by Derek Robert Price <derek@ximbiot.com>.
15884
15885 2004-10-12  Simon Josefsson  <jas@extundo.com>
15886
15887         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
15888         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
15889         to real functions.
15890
15891 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
15892
15893         * modules/vsnprintf: New file.
15894
15895 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
15896
15897         * m4/vsnprintf.m4: New file.
15898
15899 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
15900
15901         * lib/vsnprintf.h: New file.
15902         * lib/vsnprintf.c: New file.
15903
15904 2004-10-11  Bruno Haible  <bruno@clisp.org>
15905
15906         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
15907         vsnprintf.
15908
15909 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
15910
15911         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
15912
15913 2004-10-07  Bruno Haible  <bruno@clisp.org>
15914
15915         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
15916         fits into the provided buffer.
15917
15918 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
15919
15920         * lib/diacrit.c, diacrit.h: Add GPL notice.
15921
15922         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
15923         notice.
15924         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
15925         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
15926         This avoids a potential constant-folding bug.
15927
15928 2004-10-05  Bruno Haible  <bruno@clisp.org>
15929
15930         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
15931         for the declaration of strsep.
15932
15933 2004-10-05  Bruno Haible  <bruno@clisp.org>
15934
15935         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
15936
15937 2004-10-04  Simon Josefsson  <jas@extundo.com>
15938
15939         * modules/memmem: New file.
15940         * tests/test-memmem.c: New file.
15941         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
15942
15943 2004-10-04  Simon Josefsson  <jas@extundo.com>
15944
15945         * m4/memmem.m4: New file.
15946
15947 2004-10-04  Simon Josefsson  <jas@extundo.com>
15948
15949         * lib/memmem.h: New file.
15950         * lib/memmem.c: New file, taken from glibc.
15951
15952 2004-10-04  Simon Josefsson  <jas@extundo.com>
15953
15954         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
15955         '#ifdef USE_UNLOCKED_IO'.
15956
15957 2004-10-04  Simon Josefsson  <jas@extundo.com>
15958
15959         * config/srclist.txt: Add memmem from glibc.
15960
15961 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
15962
15963         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
15964
15965         * modules/argmatch, modules/argp, modules/closeout, modules/error,
15966         modules/exclude, modules/getdate, modules/getline,
15967         modules/getndelim2, modules/getpass, modules/getpass-gnu,
15968         modules/getusershell, modules/linebuffer, modules/md5,
15969         modules/mountlist, modules/posixtm, modules/readtokens,
15970         modules/readutmp, modules/regex, modules/sha1,
15971         modules/version-etc, modules/yesno:
15972         Remove dependency on unlocked-io.
15973
15974 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
15975
15976         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
15977
15978         * m4/unlocked-io.m4: Add copyright notice.
15979         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
15980
15981 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
15982
15983         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
15984         * lib/xmalloc.c (xmemdup): Likewise.
15985         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
15986         XFREE): Remove these long-obsolescent macros.
15987         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
15988         * lib/xstrdup.c: Remove.
15989
15990         * lib/regex.c (re_comp): Cast gettext return value to char *,
15991         Problem reported by Martin Neitzel via Mark D. Baushke.
15992
15993 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
15994
15995         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
15996         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
15997         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
15998         regex.c, sha1.c, version-etc.c, yesno.c:
15999         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
16000         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
16001         the includer's responsibility.
16002
16003         Sync from coreutils.
16004
16005         * lib/modechange.c (mode_compile): Don't decrement a pointer that
16006         points to the start of a string, as the C Standard says the
16007         resulting behavior is undefined.
16008
16009         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
16010         simple -> simple_backups, numbered_existing ->
16011         numbered_existing_backups, numbered -> numbered_backups
16012         to avoid shadowing problems.  All uses changed.
16013         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
16014         * lib/backupfile.c (check_extension, numbered_backup):
16015         Rename locals to avoid shadowing 'basename'.
16016         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
16017         once.
16018
16019         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
16020         * lib/.cvsignore: Add getopt.h.
16021
16022 2004-10-04  Bruno Haible  <bruno@clisp.org>
16023
16024         * modules/README: New file.
16025         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
16026         not a module.
16027
16028 2004-10-02  Jim Meyering  <jim@meyering.net>
16029
16030         * lib/dirfd.h, getpagesize.h: Add copyright notice.
16031
16032 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
16033
16034         * modules/strsep: New file.
16035
16036 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
16037
16038         * m4/strsep.m4: New file.
16039
16040 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
16041
16042         * lib/strsep.h: New file.
16043         * lib/strsep.c: New file.
16044
16045 2004-10-01  Simon Josefsson  <jas@extundo.com>
16046
16047         * lib/snprintf.c (snprintf): Handle size==0.
16048
16049 2004-10-01  Simon Josefsson  <jas@extundo.com>
16050             Bruno Haible  <bruno@clisp.org>
16051
16052         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
16053         (snprintf): Declare 'args'.
16054
16055 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
16056
16057         * lib/snprintf.c: Remove comments as to why each header is needed.
16058
16059 2004-10-01  Bruno Haible  <bruno@clisp.org>
16060
16061         * MODULES.html.sh: Add strsep.
16062
16063 2004-09-30  Simon Josefsson  <jas@extundo.com>
16064
16065         * modules/snprintf: New file.
16066
16067 2004-09-30  Simon Josefsson  <jas@extundo.com>
16068
16069         * m4/snprintf.m4: New file.
16070
16071 2004-09-30  Simon Josefsson  <jas@extundo.com>
16072
16073         * lib/snprintf.h, lib/snprintf.c: New files.
16074
16075 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
16076
16077         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
16078         (hol_entry_help): Never translate an empty string.
16079         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
16080         * lib/argp.h (OPTION_NO_TRANS): New option.
16081
16082 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
16083
16084         * modules/argp (Maintainer): Replace Simon Josefsson
16085         by Sergey Poznyakoff.
16086
16087 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
16088
16089         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
16090         changes merged back into glibc.
16091
16092 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
16093
16094         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
16095
16096 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
16097
16098         * lib/xvasprintf.c: Include xalloc.h.
16099         (xvasprintf): Use xalloc_die, not xmalloc_die.
16100
16101 2004-09-29  Bruno Haible  <bruno@clisp.org>
16102
16103         * modules/alloca-opt: New file, derived from modules/alloca.
16104         * modules/allocsa: Depend on alloca-opt instead of alloca.
16105         * modules/setenv: Likewise.
16106         * modules/vasnprintf: Likewise.
16107         * MODULES.html.sh: Add alloca-opt.
16108
16109 2004-09-28  Simon Josefsson  <jas@extundo.com>
16110
16111         * gnulib-tool: New parameter --lgpl, to asseert that modules are
16112         LGPL, and to replace license template from GPL to LGPL.
16113
16114 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
16115
16116         * modules/dummy: Change license to LGPL.
16117
16118 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
16119
16120         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
16121
16122 2004-09-24  Simon Josefsson  <jas@extundo.com>
16123
16124         * modules/minmax (License): Change from GPL to LGPL.
16125
16126 2004-09-23  Simon Josefsson  <jas@extundo.com>
16127
16128         * gnulib-tool (--import): Typo.
16129
16130 2004-09-23  Simon Josefsson  <jas@extundo.com>
16131
16132         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
16133
16134 2004-09-22  Bruno Haible  <bruno@clisp.org>
16135
16136         * modules/*: Add 'License' field.
16137         * gnulib-tool: Accept --extract-license option.
16138         (func_get_license): New function.
16139
16140 2004-09-21  Bruno Haible  <bruno@clisp.org>
16141
16142         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
16143         Reported by Simon Josefsson.
16144
16145 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
16146
16147         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
16148         gl_AC_TYPE_LONG_LONG.
16149
16150 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
16151
16152         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
16153
16154 2004-09-18  Simon Josefsson  <jas@extundo.com>
16155         and  Paul Eggert  <eggert@cs.ucla.edu>
16156
16157         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
16158         calls with autoreconf.  Define GL_LIB.
16159
16160 2004-09-14  Karl Berry  <karl@gnu.org>
16161
16162         * config/srclist.txt: unsync setenv.c, sigh.
16163
16164 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
16165
16166         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
16167         Problem reported by Bruno Haible in:
16168         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
16169
16170 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
16171
16172         * config/srclist.txt: Comment out argp-pvh.c.
16173
16174 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
16175
16176         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
16177         in case some system header has #define'd it.  Problem reported by
16178         Soeren D. Schulze in
16179         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
16180
16181 2004-09-09  Karl Berry  <karl@gnu.org>
16182
16183         * regex.[ch]: delete from the root.  These were supposed to be
16184                 synced with emacs cvs, but this has not happened for about
16185                 a year, and anyway nothing else uses emacs regex.[ch].
16186                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
16187                 lib/regex[.ch] is untouched.
16188
16189 2004-09-09  Bruno Haible  <bruno@clisp.org>
16190
16191         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
16192
16193 2004-09-09  Bruno Haible  <bruno@clisp.org>
16194
16195         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
16196         modifications.
16197         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
16198
16199 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
16200
16201         * modules/xvasprintf: New file.
16202         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
16203
16204 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
16205
16206         * lib/xvasprintf.h: New file.
16207         * lib/xvasprintf.c: New file.
16208         * lib/xasprintf.c: New file.
16209
16210 2004-09-08  Bruno Haible  <bruno@clisp.org>
16211
16212         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
16213
16214 2004-09-08  Bruno Haible  <bruno@clisp.org>
16215
16216         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
16217         length is > INT_MAX.
16218         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
16219         more.
16220
16221 2004-09-08  Bruno Haible  <bruno@clisp.org>
16222
16223         * lib/stdint_.h: New file, taken from GNU clisp.
16224
16225 2004-09-08  Bruno Haible  <bruno@clisp.org>
16226             Oskar Liljeblad  <oskar@osk.mine.nu>
16227
16228         * modules/stdint: New file.
16229         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
16230
16231 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
16232
16233         Import from coreutils.
16234         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
16235         strings on unbounded length.  alloca's performance benefits aren't
16236         that important here.
16237         (V_STRDUP): Remove.
16238         (parse_with_separator): New function, with most of the internals
16239         of the old parse_user_spec.  Allow user to omit both user and group,
16240         for compatibility with FreeBSD.
16241         Clone only the user name, not the entire spec.
16242         Do not set *uid, *gid unless entirely successful.
16243         Avoid memory leak in some failing cases.
16244         Fix regression for USER.GROUP reported by Dmitry V. Levin in
16245         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
16246         (parse_user_spec): Rewrite to use parse_with_separator.
16247
16248 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
16249
16250         * modules/userspec: Don't depend on alloca.
16251
16252 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
16253
16254         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
16255
16256 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
16257
16258         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
16259         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
16260         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
16261
16262 2004-08-16  Simon Josefsson  <jas@extundo.com>
16263
16264         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
16265         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
16266         Add --dry-run for --import.
16267         Let user provided command line parameters override configure.ac
16268         settings.
16269
16270 2004-08-12  Simon Josefsson  <jas@extundo.com>
16271
16272         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
16273         as discussed with Paul Eggert in threads rooted at
16274         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
16275         and
16276         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
16277         Before, the test was empty, and relied on ELIDE_CODE in source
16278         code.)
16279         (gl_PREREQ_GETOPT): New macro.
16280         (gl_GETOPT): Use them.
16281
16282 2004-08-12  Simon Josefsson  <jas@extundo.com>
16283
16284         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
16285         * lib/getopt_.h: Renamed from getopt.h.
16286
16287 2004-08-12  Simon Josefsson  <jas@extundo.com>
16288
16289         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
16290         Change default library name from libfoo to libgnu.
16291         Now, if you have a configure.ac that says:
16292                 gl_SOURCE_BASE(gl)
16293                 gl_M4_BASE(gl/m4)
16294                 gl_MODULES(error getopt etcetera)
16295                 gl_INIT
16296         you can import all you need by running:
16297                 ../gnulib/gnulib-tool --import
16298
16299         * modules/getopt (Files): Rename getopt.h to getopt_.h.
16300         (Makefile.am): Rewrite, use logic from argz.
16301         (Include): Use <getopt.h> instead of "getopt.h".
16302
16303 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
16304
16305         * modules/argp (Files): Add m4/unlocked-io.m4.
16306         (Depends-on): Add extensions.
16307
16308 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
16309
16310         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
16311         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
16312         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
16313         Check for program_invocation_name, program_invocation_short_name,
16314         flockfile, funlockfile, features.h, _getopt_long_only_r.
16315
16316 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
16317
16318         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
16319         its complicated substitute.
16320         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
16321         and program_invocation_name.
16322         (__argp_basename) [!_LIBC]: Remove; the only use was
16323         replaced by its body.
16324         (__argp_short_program_name): Change condition from
16325         !defined __argp_short_program_name to
16326         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
16327         to match argp-namefrob.h.
16328         (__argp_failure): Don't assume strerror_r returns char *.
16329         * lib/argp-parse.c (N_): Define unconditionally.
16330         (argp_default_options): Fill out initializers with 0 to avoid
16331         gcc warnings.
16332
16333 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
16334
16335         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
16336         getopt1.c.
16337
16338 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
16339
16340         Merge from coreutils.
16341
16342         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
16343
16344         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
16345         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
16346
16347 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
16348
16349         Merge from coreutils.
16350
16351         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
16352         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
16353         for Reliant Unix 5.43.
16354
16355         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
16356         (union fooround): Use uintmax_t, not long int.
16357         The rest is a merge from libc:
16358         [defined _LIBC]: Include <shlib-compat.h>.
16359         (_obstack) [defined _LIBC]: Remove after 2.3.4.
16360
16361         * lib/settime.c (settime): Recode to avoid warning with
16362         Sun Forte C 6U2.
16363
16364         * lib/strverscmp.c: Convert to UTF-8.
16365
16366 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
16367
16368         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
16369         m4/uintmax_t.m4.
16370
16371 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
16372
16373         * modules/xalloc-die: New file.
16374         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
16375
16376         * modules/md5 (Files): Add m4/uint32_t.m4.
16377         * modules/sha1: Renamed from modules/sha.
16378         (Files):
16379         Rename lib/sha.h to lib/sha1.h.
16380         Rename lib/sha.c to lib/sha1.c.
16381         Rename m4/sha.m4 to m4/sha1.m4.
16382         (lib_SOURCES): Likewise.
16383         (configure.ac): Rename gl_SHA to gl_SHA1.
16384         (Include): sha.h -> sha1.h.
16385
16386 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
16387
16388         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
16389         * m4/sha1.m4: Renamed from sha.m4.
16390         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
16391
16392 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
16393
16394         * lib/obstack.h (obstack_empty_p):
16395         Don't assume that chunk->contents is suitably aligned.
16396         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
16397         Likewise. Problem reported by Benno in
16398         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
16399
16400         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
16401         readable.  This could be improved further but it'd take some work.
16402
16403 2004-08-08  Simon Josefsson  <jas@extundo.com>
16404
16405         * modules/xgethostname (Depends-on): Remove exit and error (not
16406         used).
16407
16408         * modules/getpass-gnu: Add getpass.h.
16409         (Depends-on): Add stdbool.
16410         * modules/getpass: Add getpass.h.
16411
16412 2004-08-08  Simon Josefsson  <jas@extundo.com>
16413
16414         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
16415         Check getpass declaration.
16416
16417 2004-08-08  Simon Josefsson  <jas@extundo.com>
16418
16419         * lib/xgethostname.c: Don't include error.h (not used).
16420
16421         * lib/getpass.h: Add.
16422         * lib/getpass.c: Include getpass.h first.
16423
16424 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
16425
16426         * lib/xalloc-die.c: New file.
16427         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
16428         All uses removed.
16429         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
16430         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
16431         xalloc-die.c.
16432         (_, N_, xalloc_die): Move to xalloc-die.c.
16433         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
16434         so that we needn't mess with xalloc_msg_memory_exhausted.
16435
16436         * lib/sha1.h: Renamed from sha.h.
16437         (SHA1_H): Renamed from _SHA_H.
16438         (sha1_ctx): Renamed from sha_ctx.
16439         (sha1_init_ctx): Renamed from sha_init_ctx.
16440         (sha1_process_block): Renamed from sha_process_block.
16441         (sha1_process_bytes): Renamed from sha_process_bytes.
16442         (sha1_finish_ctx): Renamed from sha_finish_ctx.
16443         (sha1_read_ctx): Renamed from sha_read_ctx.
16444         (sha1_stream): Renamed from sha_stream.
16445         (sha1_buffer): Renamed from sha_buffer.
16446         * lib/sha1.c: Likewise; renamed from sha.c.
16447         Do not include <sys/types.h>.
16448         Include <stddef.h> rather than <stdlib.h>.
16449
16450 2004-08-08  Bruno Haible  <bruno@clisp.org>
16451
16452         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
16453         FILESYSTEM_PREFIX_LEN.
16454         * lib/progreloc.c: Likewise.
16455         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
16456
16457 2004-08-06  Simon Josefsson  <jas@extundo.com>
16458
16459         * modules/progname (Depends-on): Don't depend on stdbool.
16460
16461 2004-08-06  Simon Josefsson  <jas@extundo.com>
16462
16463         * modules/getsubopt: New file.
16464         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
16465         getsubopt.
16466
16467 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
16468
16469         More merge from coreutils.
16470
16471         * m4/utimens.m4, m4/utimecmp.m4: New files.
16472         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
16473         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
16474         prereq.m4, sha.m4: Import changes from coreutils.
16475
16476 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
16477
16478         More merge from coreutils.
16479         * modules/raise, modules/readtokens0, modules/utimens:
16480         * modules/utimecmp, module/xnanosleep: New files.
16481         * modules/strftime: Add lib/strftime.h.
16482         Change include from <time.h> to "strftime.h".
16483         * modules/yesno: Add lib/yesno.h.
16484         * modules/backupfile: Remove lib/addext.c.
16485         * modules/euidaccess: Add stat-macros.h.
16486         * modules/canonicalize, modules/euidaccess,
16487         modules/filemode, modules/lchown, modules/makepath,
16488         modules/rmdir, modules/stat: Likewise.
16489
16490 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
16491
16492         Merge from tar.
16493         * lib/argp-help.c (make_hol, hol_append): Don't assume that
16494         SIZE_MAX is a valid preprocessor constant.
16495         (__argp_basename): Change from "#ifndef _LIBC"
16496         to "#ifndef __argp_short_program_name", so that
16497         we don't compile these functions for tar.
16498
16499         More merges from coreutils.
16500         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
16501         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
16502         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
16503         * lib/addext.c: Remove; no longer needed.
16504         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
16505         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
16506         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
16507         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
16508         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
16509         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
16510         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
16511         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
16512         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
16513         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
16514         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
16515         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
16516         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
16517         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
16518         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
16519         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
16520         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
16521         Import changes from coreutils.
16522
16523 2004-08-05  Simon Josefsson  <jas@extundo.com>
16524
16525         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
16526
16527 2004-08-05  Simon Josefsson  <jas@extundo.com>
16528
16529         * m4/getsubopt.m4: New file.
16530
16531 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
16532
16533         Merge from coreutils.
16534
16535         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
16536         * m4/getcwd-path-max.m4: New files.
16537
16538         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
16539         FILESYSTEM_PREFIX_LEN ->
16540         FILE_SYSTEM_PREFIX_LEN.
16541         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
16542         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
16543         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
16544         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
16545
16546         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
16547         prerequisite modules now handle the DOS stuff.
16548         Don't check for unistd.h.
16549
16550 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
16551
16552         Merge from coreutils.
16553
16554         * lib/.gdb-history: Remove; this doesn't belong here.
16555
16556         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
16557         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
16558         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
16559         * lib/getcwd.c: New files.
16560
16561         * lib/dirname.h: Include <stdbool.h>.
16562         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
16563         for consistency with POSIX terminology.  All uses changed.
16564         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
16565         (strip_trailing_slashes): Use bool for booleans.
16566         * lib/stripslash.c (strip_trailing_slashes): Likewise.
16567
16568         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
16569         sometimes returns a positive errno value even when it succeeds.
16570         (print_errno_message) [!LIBC]: Fall back on strerror if
16571         __strerror_r fails.
16572
16573         * lib/path-concat.c (mempcpy): Don't define if a system header defines
16574         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
16575         (longest_relative_suffix): New function.
16576         (path_concat): Use it.  Assume first argument is not NULL.
16577         Port to DOS.  Omit redundant separators.
16578         Report an error instead of returning NULL.
16579         Use mempcpy instead of memcpy.
16580         (xpath_concat): Remove: not declared or used.
16581
16582         * lib/same.h: Include <stdbool.h>
16583         (same_name): Return bool, not int.
16584         * lib/same.c (same_name): Likewise.
16585         (errno): Don't declare; we assume C89 or better now.
16586
16587         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
16588         if not already defined.
16589
16590         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
16591         * lib/dup-safer.c (errno): Likewise.
16592
16593 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
16594
16595         Merge from coreutils.
16596         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
16597         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
16598         * modules/path-concat: Don't depend on strdup.
16599
16600 2004-08-03  Simon Josefsson  <jas@extundo.com>
16601
16602         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
16603         * lib/progname.h: Don't include stdbool.h.
16604
16605 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
16606
16607         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
16608         * MODULES.html.sh (func_all_modules): Remove fatal.
16609
16610 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
16611
16612         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
16613
16614 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
16615
16616         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
16617         working.
16618
16619 2004-08-02  Simon Josefsson  <jas@extundo.com>
16620
16621         * lib/getsubopt.h: New file, with comments from Bruno Haible.
16622         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
16623         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
16624
16625 2004-08-01  Simon Josefsson  <jas@extundo.com>
16626
16627         * lib/xgetdomainname.c: Include stdlib.h, for free().
16628
16629 2004-07-19  Bruno Haible  <bruno@clisp.org>
16630
16631         * MODULES.html.sh (func_all_modules): Add dummy.
16632
16633 2004-07-16  Simon Josefsson  <jas@extundo.com>
16634
16635         * modules/dummy: New file.
16636
16637 2004-07-16  Simon Josefsson  <jas@extundo.com>
16638
16639         * lib/dummy.c: New file.
16640
16641 2004-07-16  Bruno Haible  <bruno@clisp.org>
16642
16643         * lib/backupfile.h: Add extern "C" for C++.
16644         * lib/closeout.h: Likewise.
16645         * lib/copy-file.h: Likewise.
16646         * lib/findprog.h: Likewise.
16647         * lib/full-write.h: Likewise.
16648         * lib/pathname.h: Likewise.
16649         * lib/progname.h: Likewise.
16650         * lib/stpcpy.h: Likewise.
16651         * lib/stpncpy.h: Likewise.
16652         * lib/strcase.h: Likewise.
16653         * lib/strstr.h: Likewise.
16654         * lib/xalloc.h: Likewise.
16655
16656         * lib/mbswidth.h: Add extern "C" for C++.
16657         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
16658
16659 2004-07-13  Robert Millan  <robertmh@gnu.org>
16660
16661         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
16662
16663 2004-07-09  Simon Josefsson  <jas@extundo.com>
16664
16665         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
16666         failed without this.)
16667
16668 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
16669
16670         * modules/chown (Files): Add lib/fchown-stub.c, since
16671         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
16672
16673 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
16674
16675         * lib/fchown-stub.c: New file.
16676
16677 2004-06-24  Jim Meyering  <jim@meyering.net>
16678
16679         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
16680
16681 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
16682
16683         * modules/argz: Omit "#include".
16684
16685         * MODULES.html.sh (func_all_modules): Add calloc, to match
16686         2004-06-01 addition of calloc module.
16687
16688 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
16689
16690         * m4/argz.m4: New file, which is autoupdated from libtool.
16691
16692 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
16693
16694         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
16695         libtool.
16696
16697 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
16698
16699         * config/srclist-update: Don't insist on "USA." before the
16700         close-comment, as libtool omits the period and puts the */ on a
16701         separate line.
16702         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
16703         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
16704
16705 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
16706
16707         * modules/argz: New file.
16708         * MODULES.html.sh (func_all_modules): Add argz.
16709
16710 2004-06-12  Jim Meyering  <jim@meyering.net>
16711         and  Paul Eggert  <eggert@cs.ucla.edu>
16712
16713         * modules/hash (Files): Add lib/xalloc.h.
16714         * modules/pipe (Depends-on): Add wait-process.
16715         * modules/stat (Depends-on): Add xalloc.
16716         * modules/userspec (Files): Add lib/userspec.h.
16717         * modules/xstrto
16718
16719         Upgrade from gettext-0.13.
16720         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
16721         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
16722         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
16723
16724 2004-06-10  Jim Meyering  <jim@meyering.net>
16725
16726         * lib/calloc.c: New file.
16727
16728 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
16729
16730         * lib/getdate.y (yylex): Allow space between sign and number.
16731         Problem reported by Dan Jacobson.
16732
16733 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
16734
16735         Merge from coreutils CVS.
16736
16737         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
16738         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
16739         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
16740         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
16741         xstrtol.m4: Fix copyright date and/or serial number.
16742
16743         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
16744         See if we need an fchown replacement.
16745         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
16746         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
16747         and use the replacement function if we detect either defect.
16748
16749         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
16750         gl_UTIMECMP.
16751
16752 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
16753         and  Jim Meyering  <jim@meyering.net>
16754
16755         Merge from coreutils CVS.
16756
16757         * lib/stat-macros.h: New file, with contents from file-type.h
16758         and coreutils' system.h.
16759         * lib/file-type.c: Include "stat-macros.h".
16760         * lib/file-type.h (file_type): Move all macro definitions to new file,
16761         stat-macros.h.
16762
16763         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
16764         Wrap old code with this conditional.
16765         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
16766         function that does not dereference symlinks.
16767         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
16768
16769         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
16770         dependency problems.
16771         (xreadlink): Accept new arg SIZE, for efficiency.
16772         All decls and uses changed.
16773         * lib/xreadlink.h: Include <stddef.h>, for size_t.
16774
16775         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
16776         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
16777
16778         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
16779         sysexits.h.
16780
16781 2004-06-01  Jim Meyering  <jim@meyering.net>
16782
16783         * m4/calloc.m4: New file.
16784
16785 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
16786
16787         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
16788         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
16789         Also, fix a typo in a diagnostic.
16790
16791 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
16792
16793         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
16794         or AC_FUNC_REALLOC.
16795
16796 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
16797
16798         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
16799         macros to be defined.
16800         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
16801         the allocator returns NULL because the requested size is zero.
16802
16803 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
16804
16805         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
16806         var.  Add comment explaining why libc still defines it.  This
16807         merges the following patch from glibc:
16808         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
16809
16810 2004-05-20  Andreas Schwab  <schwab@suse.de>
16811
16812         * m4/free.m4: Replace free if it not known to work, not the other
16813         way round.
16814
16815 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
16816
16817         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
16818         present in glibc since revision 1.1 of this file.
16819         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
16820         obstack_alignment_mask, obstack_alloc, obstack_base,
16821         obstack_blank, obstack_blank_fast, obstack_chunk_size,
16822         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
16823         obstack_grow0, obstack_init, obstack_int_grow,
16824         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
16825         obstack_next_free, obstack_object_size, obstack_ptr_grow,
16826         obstack_ptr_grow_fast, obstack_room): Remove declarations of
16827         nonexistent functions.
16828
16829 2004-05-18  Karl Berry  <karl@gnu.org>
16830
16831         * config/srclist.txt: break link for vasnprintf.c.
16832
16833 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
16834
16835         Port obstack to the AS/400, where pointers are 16 bytes wide and
16836         you cannot cast an integer to a valid pointer.  This patch is
16837         currently waiting to be integrated into glibc; see
16838         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
16839
16840         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
16841         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
16842         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
16843         (struct obstack): temp member is now a union of a pointer and
16844         an integer, instead of an integer.  All integer uses changed.
16845         This does not affect the physical layout of struct obstack,
16846         except on hosts (like the AS/400) where the size or alignment of
16847         void * is greater than that of ptrdiff_t.
16848         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
16849         __STDC__)]: Store temporary in pointer member of union, not
16850         integer member.
16851         * lib/obstack.c: Include <stddef.h>, for offsetof.
16852         (struct fooalign): Remove; it doesn't need a name.
16853         (union fooround): Change double to long double, and add void *.
16854         (DEFAULT_ALIGNMENT): Use offsetof to compute.
16855         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
16856         not a macro.  Hence the values are always int; so remove all
16857         casts-to-int in uses.
16858
16859 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
16860
16861         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
16862         we can get this patch merged into glibc.
16863
16864 2004-05-17  Derek R. Price  <derek@ximbiot.com>
16865             Paul Eggert  <eggert@cs.ucla.edu>
16866
16867         * m4/argp: Depend on alloca.
16868
16869 2004-05-17  Derek R. Price  <derek@ximbiot.com>
16870             Paul Eggert  <eggert@cs.ucla.edu>
16871
16872         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
16873         freecoding.
16874
16875 2004-05-17  Bruno Haible  <bruno@clisp.org>
16876
16877         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
16878         precision that consists of a '.' followed by an empty digit string.
16879         Patch by Tor Lillqvist <tml@iki.fi>.
16880
16881 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
16882
16883         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
16884         for backward compatibility with older code.  We need our own
16885         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
16886         it under some other name, and our alloca.h will define it.
16887
16888 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
16889             Derek Price  <derek@ximbiot.com>
16890
16891         * lib/alloca.c: Include <alloca.h>, to get our interface.
16892         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
16893         include <alloca.h> first.  Use C89 prototype for alloca; this
16894         requires including <stddef.h> for size_t.  Use extern "C" if C++.
16895         Use #elif for simplicity, since we can assume C89 now.
16896         Don't try to source the system alloca.h since it will not be found
16897         and to prevent recursively including its replacement.
16898         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
16899         * lib/regex.c: Likewise.
16900
16901 2004-05-16  Derek Price  <derek@ximbiot.com>
16902             Paul Eggert  <eggert@cs.ucla.edu>
16903
16904         getline cleanup.  This changes the getndelim2 API: both order of
16905         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
16906         no delimiter).
16907
16908         * lib/getline.c: Don't include stddef.h or stdio.h, since our
16909         interface does that.
16910         (getline): Always use getdelim, so that we don't have two
16911         copies of this code.
16912         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
16913         if available.
16914         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
16915         (GETNDELIM2_MAXIMUM): New macro.
16916         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
16917         instead of the old practice of delim2==0.  All callers changed.
16918         Return -1 on overflow, instead of returning junk.
16919         Do not set *linesize unless allocation succeeds.
16920         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
16921         that we include sys/types.h.
16922         * lib/getnline.h: Likewise.
16923         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
16924         (getndelim2): Reorder arguments.
16925         * lib/getnline.c (getnline, getndelim):
16926         Don't discard the NMAX argument.
16927         (getnline): Invoke getndelim, to avoid code duplication.
16928         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
16929         of (size_t) -1 by callers of the getnline family.
16930
16931 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
16932
16933         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
16934         Check for gettimeofday.
16935         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
16936         Check for settimeofday, stime.
16937
16938 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
16939
16940         * lib/nanosleep.c (suspended): Change its type from int to
16941         sig_atomic_t volatile.
16942         (first_call): Make it private to rpl_nanosleep, and have it
16943         be zero initially as that's a bit faster.
16944         (my_usleep): Round up fractional times instead of truncating them,
16945         as this is the usual meaning for 'sleep'.
16946
16947         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
16948         doesn't work.
16949         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
16950         (ENOSYS): Define if not defined.
16951         (settime): Fall back on stime if it exists and settimeofday fails.
16952         But don't bother with fallbacks if a method fails with errno == EPERM.
16953
16954 2004-05-11  Jim Meyering  <jim@meyering.net>
16955
16956         Prior to this change, the save_cwd caller required read access to the
16957         current directory on most systems (ones with the fchdir function).
16958
16959         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
16960         fails, try write-only, and finally, resort to using xgetcwd.
16961
16962 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
16963
16964         * lib/obstack.c, obstack.h: Import changes from libc.
16965
16966 2004-04-28  Bruno Haible  <bruno@clisp.org>
16967
16968         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
16969         also implicitly appends .exe to executables.
16970         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
16971         accepts Windows pathnames.
16972         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
16973         Treat Cygwin like Windows, since it now accepts Windows pathnames.
16974         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
16975         Treat Cygwin like Windows, since it now accepts Windows pathnames.
16976         Reported by Derek Robert Price <derek@ximbiot.com>.
16977
16978 2004-04-21  Karl Berry  <karl@gnu.org>
16979
16980         * config/srclist.txt (localcharset.c): break sync.
16981
16982 2004-04-20  Paul Eggert  <eggert@twinsun.com>
16983
16984         * m4/host-os.m4: Add a copyright notice.
16985
16986 2004-04-20  Jim Meyering  <jim@meyering.net>
16987
16988         Change UTILS_ to gl_ in AC_DEFINE'd names.
16989         Change utils_- and jm_-prefixed variables, too.
16990         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
16991         UTILS_FUNC_MKDIR_TRAILING_SLASH.
16992         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
16993
16994         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
16995         Don't emit trailing blanks.
16996         Also rename jm_-prefixed variables to have gl_ prefix.
16997
16998         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
16999         Also rename jm_-prefixed variables to have gl_ prefix.
17000
17001         * m4/jm-macros.m4: Reflect the renamings.
17002         * m4/prereq.m4: Likewise.
17003
17004 2004-04-20  Jim Meyering  <jim@meyering.net>
17005
17006         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
17007         memory.
17008
17009 2004-04-20  Jim Meyering  <jim@meyering.net>
17010             Bruno Haible  <bruno@clisp.org>
17011
17012         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
17013         memory when realloc fails.
17014
17015 2004-04-19  Jim Meyering  <jim@meyering.net>
17016
17017         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
17018         now that readutmp.c may call `free (0)'.
17019
17020 2004-04-19  Bruno Haible  <bruno@clisp.org>
17021
17022         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
17023         * m4/inttypes_h.m4: Likewise.
17024         * m4/stdint_h.m4: Likewise.
17025         * m4/intmax_t.m4: Likewise.
17026         * m4/uintmax_t.m4: Likewise.
17027
17028 2004-04-18  Jim Meyering  <jim@meyering.net>
17029
17030         * m4/prereq.m4: Don't forbid jm_ prefix.
17031
17032         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
17033         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
17034         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
17035         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
17036         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
17037         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
17038         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
17039         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
17040         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
17041         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
17042         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
17043         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
17044         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
17045         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
17046         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
17047         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
17048         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
17049         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
17050         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
17051
17052 2004-04-18  Jim Meyering  <jim@meyering.net>
17053
17054         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
17055         failure, don't leak memory and do call END_UTMP_ENT.
17056
17057 2004-04-16  Jim Meyering  <jim@meyering.net>
17058
17059         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
17060         coreutils' stat program.
17061         (gl_PREREQ): Don't require jm_PREREQ_STAT.
17062
17063 2004-04-11  Paul Eggert  <eggert@twinsun.com>
17064
17065         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
17066         C89.
17067         (CHAR_BIT): Remove, since we assume C89.
17068         Include <stdint.h> if available, as per current Autoconf CVS advice.
17069
17070 2004-03-31  Jim Meyering  <jim@meyering.net>
17071
17072         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
17073         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
17074         * m4/xalloc.m4: Likewise.
17075
17076 2004-03-30  Paul Eggert  <eggert@twinsun.com>
17077
17078         Merge from coreutils.
17079
17080         * m4/inttostr.m4: New file.
17081         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
17082         Require AM_STDBOOL_H and gl_TIMESPEC instead.
17083         Require gl_CLOCK_TIME.
17084         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
17085
17086 2004-03-30  Paul Eggert  <eggert@twinsun.com>
17087
17088         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
17089         not bool, to be more consistent with Unix conventions.
17090         Suggested by Bruno Haible.
17091
17092         Merge from coreutils.
17093
17094         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
17095         * lib/umaxtostr.c: New files.
17096
17097         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
17098         the usual <time.h> dance.
17099         (get_date): Change signature to support fractional time stamps.
17100         All callers changed.
17101         * lib/getdate.y: Include "getdate.h" first, as we can now
17102         assume C89 and don't need to worry about 'const'.
17103         Similarly, include "unlocked-io.h" near start, not in middle.
17104         Include <limits.h>.
17105         (textint.value): Use long int rather than int.
17106         (textint.digits): Use size_t rather than int.
17107         (BILLION, LOG10_BILLION): New constants.
17108         (parser_control): New member rel_ns.  Members day_ordinal,
17109         time_zone, month, day, hour, minutes, rel_year, rel_month,
17110         rel_day, rel_hour, rel_minutes, rel_seconds
17111         are now long int, not int.  Member seconds is now struct timespec,
17112         not int.  New member timespec_seen.  Members dates_seen, days_seen,
17113         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
17114         not int.
17115         (%union.intval): Now long int, not int.
17116         New member timespec.
17117         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
17118         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
17119         (spec): Now is a timespec or an item list.
17120         (timespec, items): New nonterminals.
17121         (time, rel, relunit, number, get_date):
17122         Add support for fractional seconds.
17123         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
17124         (gmtime, localtime, mktime): Remove decls; not needed with C89.
17125         (to_hour): First arg is now long int, not int.
17126         (to_year): Returns long int, not int.
17127         Don't treat year -70 like 70.
17128         (tm_diff): Returns long int, not int.
17129         (lookup_word): Use bool instead of int when appropriate.
17130         (yylex): Use size_t for count, not int.
17131         Detect overflow when parsing large integer constants.
17132         Add support for fractions.
17133         (get_date): Make pointers 'const' if possible.
17134         Use more-portable code to detect integer overflow.
17135         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
17136         Don't use ctime; it's not reliable if the year has >4 digits.
17137
17138         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
17139         This is for compatibility with BSD.
17140
17141         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
17142         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
17143         From coreutils' system.h.
17144
17145         * lib/userspec.c: Don't include "posixver.h".
17146         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
17147         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
17148         compatible extension.  Simplify code by removing a boolean int
17149         that was always nonzero if a string was nonnull.
17150
17151 2004-03-30  Jim Meyering  <jim@meyering.net>
17152
17153         Merge from coreutils.
17154
17155         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
17156         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
17157         on some systems one must include <grp.h> before it.
17158         Reported by Christian Krackowizer.
17159
17160 2004-03-30  Jim Meyering  <jim@meyering.net>
17161
17162         Merge from coreutils.
17163
17164         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
17165
17166         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
17167         an empty input stream.
17168
17169         * lib/readtokens.c: Include <stdbool.h>.
17170         (readtoken): Use `size_t' rather than int/long.
17171         All callers adjusted.
17172         Use `bool' rather than `int' where appropriate.
17173         Use memset rather than an explicit loop.
17174         Use x2nrealloc rather than xrealloc.
17175         Allow the use of `\0' as a delimiter.
17176         (readtokens): Likewise.
17177         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
17178
17179 2004-03-30  Jim Meyering  <jim@meyering.net>
17180
17181         * m4/realloc.m4: Remove file, since now it does no more than
17182         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
17183         the `configure.ac' section of module/realloc.
17184         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
17185
17186 2004-03-30  Bruno Haible  <bruno@clisp.org>
17187
17188         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
17189         nonnull.
17190
17191 2004-03-29  Paul Eggert  <eggert@twinsun.com>
17192
17193         Merge changes to getloadavg.c from coreutils and Emacs.
17194
17195         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
17196         Define to an expression, not to the empty string.
17197         Include cloexec.h and xalloc.h.
17198         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
17199         Use set_cloexec_flag rather than rolling our own.
17200         * lib/cloexec.c, lib/cloexec.h: New files.
17201
17202 2004-03-29  Paul Eggert  <eggert@twinsun.com>
17203
17204         * m4/cloexec.m4: New file.
17205
17206 2004-03-18  Paul Eggert  <eggert@twinsun.com>
17207
17208         * lib/getopt.h: Sync with libc CVS.
17209
17210 2004-03-18  Paul Eggert  <eggert@twinsun.com>
17211             Bruno Haible  <bruno@clisp.org>
17212
17213         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
17214         mbswidth.
17215
17216 2004-03-18  Paul Eggert  <eggert@twinsun.com>
17217             Bruno Haible  <bruno@clisp.org>
17218
17219         * lib/mbswidth.h: Include <wchar.h> only if
17220         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
17221         <wchar.h>.
17222         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
17223
17224 2004-03-09  Paul Eggert  <eggert@twinsun.com>
17225
17226         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
17227         Sync with libc CVS.
17228         * lib/getopt_int.h: New file, also synced from libc.
17229
17230 2004-03-09  Paul Eggert  <eggert@twinsun.com>
17231
17232         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
17233         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
17234         Bring back getopt.c, getopt.h, getopt1.c.
17235
17236 2004-03-07  Paul Eggert  <eggert@twinsun.com>
17237
17238         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
17239         All uses changed.  Check for sa_sigaction member; this fixes
17240         a bug first reported by Jason Andrade in
17241         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
17242
17243 2004-03-07  Paul Eggert  <eggert@twinsun.com>
17244
17245         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
17246         '#if' expressions.  Unlike the code it replaces, it does not
17247         depend on (defined _SC_PAGESIZE).  However, it does depend on
17248         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
17249         first reported by Jason Andrade in
17250         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
17251
17252 2004-02-25  Simon Josefsson  <jas@extundo.com>
17253
17254         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
17255
17256 2004-02-25  Simon Josefsson  <jas@extundo.com>
17257
17258         * lib/strdup.h: New file.
17259         * lib/strdup.c: Include it.
17260         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
17261         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
17262
17263 2004-02-23  Karl Berry  <karl@gnu.org>
17264
17265         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
17266         (from fencepost.gnu.org:/gd/gnuorg).
17267
17268 2004-02-23  Karl Berry  <karl@gnu.org>
17269
17270         * config/srclistvars.sh (GNUORG) [karl]: redefine.
17271         * config/srclist.txt: add maintain/standards documents.
17272
17273 2004-02-18  Bruno Haible  <bruno@clisp.org>
17274
17275         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
17276         Reported by Derek Robert Price <derek@ximbiot.com>.
17277
17278 2004-02-16  Karl Berry  <karl@gnu.org>
17279
17280         * config/mkinstalldirs, install-sh: update from automake.
17281
17282 2004-02-06  Karl Berry  <karl@gnu.org>
17283
17284         * m4/po.m4: update from gettext 0.14.1.
17285
17286 2004-02-06  Karl Berry  <karl@gnu.org>
17287
17288         * lib/config.charset: update from gettext 0.14.1.
17289
17290 2004-02-05  Paul Eggert  <eggert@twinsun.com>
17291
17292         Add comments and code, prompted by suggestions from Bruno Haible
17293         for sh-quote.
17294         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
17295         describing the enum quoting_style values.
17296         * lib/quotearg.c (quotearg_alloc): New function.
17297         (quotearg_buffer_restyled): Treat lone { and } as special.
17298         Treat = as special.  Work around bug with older shells
17299         that "see" a '\' that is really the 2nd byte of a multibyte char.
17300         Quote empty string with shell_quoting_style.
17301
17302 2004-02-03  Bruno Haible  <bruno@clisp.org>
17303
17304         * m4/pipe.m4: New file, from GNU gettext.
17305
17306 2004-02-03  Bruno Haible  <bruno@clisp.org>
17307
17308         * lib/pipe.h: New file, from GNU gettext.
17309         * lib/pipe.c: New file, from GNU gettext.
17310
17311 2004-01-27  Bruno Haible  <bruno@clisp.org>
17312
17313         * m4/execute.m4: New file, from GNU gettext.
17314
17315 2004-01-27  Bruno Haible  <bruno@clisp.org>
17316
17317         * lib/execute.h: New file, from GNU gettext.
17318         * lib/execute.c: New file, from GNU gettext.
17319         * lib/w32spawn.h: New file, from GNU gettext.
17320
17321 2004-01-24  Paul Eggert  <eggert@twinsun.com>
17322
17323         Merge from diffutils.
17324
17325         * lib/file-type.c (file_type): Add typed memory objects.
17326         * lib/file-type.h (S_TYPEISTMO): New macro.
17327
17328         * lib/c-stack.h (c_stack_action): Remove argv argument.
17329         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
17330         (die): Don't calculate message unless segv_action returns.
17331         (get_stack_location, min_address_from_argv, max_address_from_argv,
17332         volatile stack_base, volatile_stack_size): Remove.
17333         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
17334         that every segmentation violation is a stack overflow.  (Ouch!)
17335         See Debian bug 136249 (still outstanding) for more info about why
17336         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
17337
17338 2004-01-24  Paul Eggert  <eggert@twinsun.com>
17339
17340         Exit-status fix from coreutils.
17341
17342         Use exit_failure consistently in place of EXIT_FAILURE,
17343         so that program exit statuses are consistent on failure.
17344
17345         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
17346         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
17347         * lib/argmatch.h: Comment fix to match the above.
17348         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
17349         Now a macro referring to exit_failure, instead of a separate
17350         variable.  Include "exitfail.h" to get it.
17351         * lib/xstrtol.h: Include "exitfail.h".
17352         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
17353
17354         * lib/long-options.c (parse_long_options): Use prototype
17355         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
17356         for clarity.
17357
17358 2004-01-21  Jim Meyering  <jim@meyering.net>
17359
17360         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
17361         so as not to conflict with a different-sized __mktime_internal
17362         function in GNU libc.
17363         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
17364         Problem building statically-linked `ls' reported by Michael Brunnbauer.
17365
17366 2004-01-20  Karl Berry  <karl@gnu.org>
17367
17368         * config/config.guess: update from config.
17369
17370         * config/srclistvars.sh: GNUWWWLICENSES for karl.
17371
17372 2004-01-20  Bruno Haible  <bruno@clisp.org>
17373
17374         Safer stack allocation.
17375         * lib/setenv.c: Include allocsa.h.
17376         (alloca): Remove fallback definition.
17377         (freea): Remove macro.
17378         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
17379         instead of freea.
17380
17381 2004-01-20  Bruno Haible  <bruno@clisp.org>
17382
17383         * m4/eealloc.m4: New file, from GNU gettext.
17384
17385 2004-01-20  Bruno Haible  <bruno@clisp.org>
17386
17387         * m4/allocsa.m4: New file, from GNU gettext.
17388
17389 2004-01-20  Bruno Haible  <bruno@clisp.org>
17390
17391         * lib/xallocsa.h: New file, from GNU gettext.
17392         * lib/xallocsa.c: New file, from GNU gettext.
17393
17394 2004-01-20  Bruno Haible  <bruno@clisp.org>
17395
17396         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
17397
17398 2004-01-20  Bruno Haible  <bruno@clisp.org>
17399
17400         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
17401         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
17402         specially.
17403
17404 2004-01-20  Bruno Haible  <bruno@clisp.org>
17405
17406         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
17407         patch.
17408
17409 2004-01-20  Bruno Haible  <bruno@clisp.org>
17410
17411         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
17412
17413 2004-01-20  Bruno Haible  <bruno@clisp.org>
17414
17415         * lib/eealloc.h: New file.
17416
17417 2004-01-20  Bruno Haible  <bruno@clisp.org>
17418
17419         * lib/binary-io.h: Avoid warnings on Cygwin.
17420
17421 2004-01-20  Bruno Haible  <bruno@clisp.org>
17422
17423         * lib/allocsa.h: New file, from GNU gettext.
17424         * lib/allocsa.c: New file, from GNU gettext.
17425
17426 2004-01-18  Karl Berry  <karl@gnu.org>
17427
17428         * doc/gpl.texi, doc/lgpl.texi: new files.
17429
17430 2004-01-18  Karl Berry  <karl@gnu.org>
17431
17432         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
17433         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
17434
17435 2004-01-15  Paul Eggert  <eggert@twinsun.com>
17436
17437         Merge from coreutils.
17438
17439         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
17440         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
17441         (gl_DEFAULT_POSIX2_VERSION): Move
17442         the documentation from 'configure' into 'config.hin',
17443         so that 'configure --help' isn't burdened by it and
17444         we don't have to worry about its formatting there.
17445         Reword the documentation so that it's more succinct
17446         and can be run together into a single paragraph.
17447         * m4/same.m4 (gl_SAME): Check for pathconf.
17448
17449 2004-01-15  Paul Eggert  <eggert@twinsun.com>
17450
17451         Merge from coreutils.
17452
17453         * lib/posixver.c: Include posixver.h.
17454
17455         * lib/same.c: Include <stdbool.h>, <limits.h>.
17456         (_POSIX_NAME_MAX): Define if not defined.
17457         (MIN): New macro.
17458         (same_name): If file names are silently truncated, report
17459         that the file names are the same if they are the same after
17460         the silent truncation.
17461
17462         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
17463         conversion function.
17464         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
17465         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
17466         longer needed.
17467
17468 2004-01-15  Jim Meyering  <jim@meyering.net>
17469
17470         Merge from coreutils.
17471
17472         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
17473         if no library is required.
17474         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
17475         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
17476         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
17477         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
17478         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
17479         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
17480         value, $ac_cv_search_crypt, if it's "none required".
17481         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
17482         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
17483         not gl_FUNC_GETLOADAVG.
17484         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
17485         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
17486
17487 2004-01-15  Jim Meyering  <jim@meyering.net>
17488
17489         Merge from coreutils.
17490
17491         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
17492         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
17493         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
17494
17495         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
17496         optional configure-time default.
17497
17498         * lib/version-etc.c (version_etc_copyright): Update copyright date.
17499
17500         * lib/xreadlink.c (xreadlink): Correct outdated comment.
17501
17502 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
17503
17504         Merge from coreutils.
17505
17506         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
17507         value, $ac_cv_search_nanosleep, if it's "none required".
17508
17509 2004-01-14  Paul Eggert  <eggert@twinsun.com>
17510
17511         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
17512         with like-named macro in fnmatch.c.
17513         (EXT): Use an internal constant instead.
17514
17515         Merge fnmatch patches from glibc.
17516         * lib/fnmatch.c (mbsinit): Remove define.
17517         Add libc_hidden_ver (__fnmatch, fnmatch).
17518         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
17519         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
17520
17521 2004-01-14  Karl Berry  <karl@gnu.org>
17522
17523         * config/install-sh: update from automake.
17524
17525 2004-01-13  Karl Berry  <karl@gnu.org>
17526
17527         * config/install-sh: update from automake.
17528
17529 2004-01-09  Karl Berry  <karl@gnu.org>
17530
17531         * config/install-sh: update from automake.
17532
17533 2004-01-05  Karl Berry  <karl@gnu.org>
17534
17535         * config/config.{sub,guess}: update from config.
17536
17537 2003-12-31  Karl Berry  <karl@gnu.org>
17538
17539         * config/depcomp: update from automake.
17540
17541 2003-12-14  Karl Berry  <karl@gnu.org>
17542
17543         * lib/config.charset: update from gettext-runtime.
17544
17545 2003-12-03  Paul Eggert  <eggert@twinsun.com>
17546
17547         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
17548         Bug reported by Alfred M. Szmidt.
17549
17550 2003-12-03  Bruno Haible  <bruno@clisp.org>
17551
17552         * m4/gettext.m4: Upgrade from gettext-0.13.
17553         * m4/po.m4: Upgrade from gettext-0.13.
17554         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
17555         * m4/intmax.m4: New file, from gettext-0.13.
17556         * m4/printf-posix.m4: New file, from gettext-0.13.
17557
17558 2003-11-29  Karl Berry  <karl@gnu.org>
17559
17560         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
17561
17562 2003-11-25  Paul Eggert  <eggert@twinsun.com>
17563             Bruno Haible  <bruno@clisp.org>
17564
17565         * lib/printf-parse.h: Don't include sys/types.h.
17566         (ARG_NONE): New macro.
17567         (char_directive): Change type of *arg_index fields to size_t.
17568         * lib/printf-parse.c: Don't include sys/types.h.
17569         (SSIZE_MAX): Remove macro.
17570         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
17571         Remove unnecessary overflow check.
17572         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
17573         fields.
17574
17575 2003-11-25  Bruno Haible  <bruno@clisp.org>
17576
17577         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
17578
17579 2003-11-25  Bruno Haible  <bruno@clisp.org>
17580
17581         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
17582         gt_TYPE_SSIZE_T.
17583
17584 2003-11-24  Paul Eggert  <eggert@twinsun.com>
17585
17586         * modules/alloca: Remove dependency on xalloc.
17587
17588 2003-11-24  Paul Eggert  <eggert@twinsun.com>
17589
17590         * lib/alloca.c: Remove dependency on xalloc module.
17591         (xalloc_die): Remove.
17592         (memory_full) [!defined emacs]: New macro.
17593         [!defined emacs]: Don't include xalloc.h.
17594         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
17595         address arithmetic overflows.  Change datatypes a bit to avoid
17596         unnecessary casts.
17597
17598 2003-11-22  Jim Meyering  <jim@meyering.net>
17599
17600         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
17601         s/size/size_t/.
17602
17603 2003-11-21  Karl Berry  <karl@gnu.org>
17604
17605         * config/config.{sub,guess}: update from config.
17606
17607 2003-11-18  Karl Berry  <karl@gnu.org>
17608
17609         * config/config.{sub,guess}: update from config.
17610
17611         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
17612
17613 2003-11-17  Paul Eggert  <eggert@twinsun.com>
17614
17615         * README: Mention that S+T cannot overflow if S is the size of
17616         an existing object and T is sufficiently small.
17617
17618 2003-11-17  Jim Meyering  <jim@meyering.net>
17619
17620         On systems without utime and without a utimes function capable of
17621         dealing with a NULL struct utimbuf* argument, this utime replacement
17622         could -- in unusual circumstances -- leak a file descriptor.
17623         * lib/utime.c: Include <unistd.h> and <errno.h>.
17624         (utime_null): Be sure to close `fd' and to preserve errno.
17625         Reported by Geoff Collyer via Arnold Robbins.
17626
17627 2003-11-17  Bruno Haible  <bruno@clisp.org>
17628
17629         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
17630         (Depends-on): Add xsize.
17631
17632 2003-11-17  Bruno Haible  <bruno@clisp.org>
17633
17634         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
17635
17636 2003-11-17  Bruno Haible  <bruno@clisp.org>
17637
17638         * lib/vasnprintf.c (alloca): Remove fallback definition.
17639         (freea): Remove definition.
17640         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
17641         Reported by Paul Eggert.
17642
17643 2003-11-16  Paul Eggert  <eggert@twinsun.com>
17644             Bruno Haible  <bruno@clisp.org>
17645
17646         Protect against address arithmetic overflow.
17647         * lib/printf-args.h: Include stddef.h.
17648         (arguments): Change type of field 'count' to size_t.
17649         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
17650         'unsigned int' where appropriate.
17651         * lib/printf-parse.h: Include sys/types.h.
17652         (char_directive): Change type of *arg_index fields to ssize_t.
17653         (char_directives): Change type of fields 'count', max_*_length to
17654         size_t.
17655         * lib/printf-parse.c: Include sys/types.h and xsize.h.
17656         (SSIZE_MAX): Define fallback value.
17657         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
17658         instead of 'int' where appropriate. Check a_allocated, d_allocated
17659         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
17660         * lib/vasnprintf.c: Include xsize.h.
17661         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
17662         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
17663         overflow. Avoid wraparound when converting a width or precision from
17664         decimal to binary.
17665
17666 2003-11-16  Bruno Haible  <bruno@clisp.org>
17667
17668         Update from GNU gettext.
17669         * lib/printf-parse.c: Generalize to it can be compiled for wide
17670         strings.
17671         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
17672         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
17673         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
17674         SNPRINTF): New macros.
17675         Don't include <alloca.h> if the file is used inside libintl.
17676         (local_wcslen): New function, for Solaris 2.5.1.
17677         (VASNPRINTF): Use it instead of wcslen.
17678
17679 2003-11-16  Bruno Haible  <bruno@clisp.org>
17680
17681         * lib/xsize.h (xmax): New function.
17682         (xsum, xsum3, xsum4): Declare as "pure" functions.
17683
17684 2003-11-12  Paul Eggert  <eggert@twinsun.com>
17685
17686         * modules/xalloc (Files): Undo latest change, since xalloc.h
17687         no longer needs SIZE_MAX or PTRDIFF_MAX.
17688
17689 2003-11-12  Paul Eggert  <eggert@twinsun.com>
17690
17691         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
17692         gl_PTRDIFF_MAX.
17693
17694 2003-11-12  Paul Eggert  <eggert@twinsun.com>
17695
17696         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
17697         "return", to pacify some unknown compiler.  Problem reported
17698         by Joerg Schilling.
17699
17700 2003-11-12  Paul Eggert  <eggert@twinsun.com>
17701
17702         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
17703         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
17704         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
17705         heuristic is just as accurate as far as we know, and it removes a
17706         dependency on size_max.m4 and ptrdiff_max.m4.
17707
17708 2003-11-11  Bruno Haible  <bruno@clisp.org>
17709
17710         * modules/xsize (Files): Add m4/size_max.m4.
17711         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
17712
17713 2003-11-11  Bruno Haible  <bruno@clisp.org>
17714
17715         * m4/size_max.m4: New file.
17716         * m4/ptrdiff_max.m4: New file.
17717         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
17718         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
17719         (gl_XALLOC): Invoke it.
17720
17721 2003-11-11  Bruno Haible  <bruno@clisp.org>
17722
17723         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
17724         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
17725         defined.
17726
17727 2003-11-10  Paul Eggert  <eggert@twinsun.com>
17728
17729         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
17730         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
17731         rejected some allocations of exactly SIZE_MAX - 2 bytes.
17732         From Bruno Haible.
17733         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
17734         not (size_t) -1, since it's defined here.
17735
17736 2003-11-09  Karl Berry  <karl@gnu.org>
17737
17738         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
17739
17740 2003-11-06  Paul Eggert  <eggert@twinsun.com>
17741
17742         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
17743         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
17744         Reject sizes of exactly SIZE_MAX bytes.
17745         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
17746         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
17747
17748 2003-11-05  Bruno Haible  <bruno@clisp.org>
17749
17750         * lib/xsize.h: Include limits.h, to avoid a possible collision with
17751         SIZE_MAX defined in <limits.h> on Solaris.
17752
17753 2003-11-04  Jim Meyering  <jim@meyering.net>
17754
17755         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
17756         variable names, rather than @VAR@.
17757         * modules/poll: Likewise.
17758
17759 2003-11-04  Bruno Haible  <bruno@clisp.org>
17760
17761         * modules/xsize: New file.
17762         * modules/linebreak: Depend on xsize.
17763         * MODULES.html.sh (func_all_modules): Add xsize.
17764
17765 2003-11-04  Bruno Haible  <bruno@clisp.org>
17766
17767         * m4/xsize.m4: New file.
17768
17769 2003-11-04  Bruno Haible  <bruno@clisp.org>
17770
17771         * lib/xsize.h: New file.
17772         * lib/linebreak.c: Include xsize.h.
17773         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
17774         argument for overflow.
17775         Suggested by Paul Eggert.
17776
17777 2003-11-03  Karl Berry  <karl@gnu.org>
17778
17779         * config/config.{guess,sub}: update from config.
17780
17781 2003-11-03  Jim Meyering  <jim@meyering.net>
17782
17783         * modules/userspec (lib_SOURCES): Add userspec.h.
17784         (Include): Add "userspec.h".
17785         Improve description.
17786
17787 2003-11-03  Jim Meyering  <jim@meyering.net>
17788
17789         * lib/userspec.c: Include "userspec.h".
17790         * lib/userspec.h: New file.
17791
17792 2003-11-03  Bruno Haible  <bruno@clisp.org>
17793
17794         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
17795
17796 2003-11-03  Bruno Haible  <bruno@clisp.org>
17797
17798         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
17799         available, to avoid (extremely rare) race condition.
17800         Suggested by Paul Eggert.
17801
17802 2003-11-02  Karl Berry  <karl@gnu.org>
17803
17804         * config/srclist.txt (vasprintf.c): sync broken, sigh.
17805
17806 2003-10-31  Paul Eggert  <eggert@twinsun.com>
17807
17808         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
17809         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
17810         (read_filesystem_list): Set and use me_type_malloced.
17811         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
17812         whatever the type happens to be), for brevity and consistency.
17813         Check for size calculation overflow on Alphas running OSF/1.
17814
17815 2003-10-31  Jim Meyering  <jim@meyering.net>
17816
17817         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
17818
17819         * lib/linebuffer.c: Include <string.h> for declaration of memset.
17820
17821 2003-10-30  Paul Eggert  <eggert@twinsun.com>
17822             Bruno Haible  <bruno@clisp.org>
17823
17824         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
17825         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
17826
17827 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
17828
17829         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
17830         netbsd*-gnu*.  Suggested by Robert Millan.
17831
17832 2003-10-29  Paul Eggert  <eggert@twinsun.com>
17833
17834         * modules/group-member: Depend on stdbool.
17835
17836 2003-10-29  Paul Eggert  <eggert@twinsun.com>
17837
17838         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
17839
17840 2003-10-29  Paul Eggert  <eggert@twinsun.com>
17841
17842         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
17843         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
17844         after the 'gnu' in these cases.  This fixes some bugs in the
17845         previous change, and is based on suggestions by Robert Millan.
17846
17847 2003-10-29  Paul Eggert  <eggert@twinsun.com>
17848
17849         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
17850         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
17851         no longer needed.
17852         * lib/quotearg.c (quotearg_n_options): Use it.
17853         * lib/group-member.c: Include <stdbool.h>.
17854         (free_group_info): Arg is now const *; don't free arg.
17855         (get_group_info): Now returns bool and accepts struct group_info *,
17856         rather than returning a malloc'ed struct group_info *.
17857         All uses changed.  Check for overflow in internal size calculation.
17858
17859         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
17860         rather than xmalloc/xrealloc.
17861         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
17862         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
17863         conformance bug: the old code used a pointer after freeing the
17864         storage that it addressed.
17865         * lib/hash.c (hash_initialize): Simplify the code by using
17866         xalloc_oversized rather than doing it by hand.
17867         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
17868         the buffer preserved.  Use free and xmalloc instead.
17869         * lib/quotearg.c (quotearg_n_options): Likewise.
17870         Use a simpler test for size overflow.  Don't use xalloc_oversized
17871         because unsigned int might be wider than size_t (!); this suggests
17872         that we should switch from unsigned int to size_t for slot numbers.
17873
17874 2003-10-28  Paul Eggert  <eggert@twinsun.com>
17875
17876         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
17877         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
17878         NetBSD kernels.  Requested by Richard Stallman.
17879
17880 2003-10-27  Paul Eggert  <eggert@twinsun.com>
17881
17882         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
17883         to allocate the returned structure.  Do not allocate a subarray,
17884         as x2nrealloc will do that.
17885         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
17886         instead of xnrealloc.
17887         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
17888
17889 2003-10-27  Bruno Haible  <bruno@clisp.org>
17890
17891         * lib/stdbool_.h: Better support for BeOS.
17892
17893 2003-10-26  Paul Eggert  <eggert@twinsun.com>
17894
17895         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
17896         now uses inline.
17897
17898 2003-10-26  Paul Eggert  <eggert@twinsun.com>
17899
17900         * lib/xalloc.h (xalloc_oversized): New static inline function, for
17901         callers that want to do their own size-overflow checking.  Include
17902         <stdbool.h>, since xalloc_oversized returns bool.
17903         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
17904         to use xalloc_oversized.
17905
17906         Add two functions x2realloc, x2nrealloc, for programs that grow
17907         arrays dynamically by doubling their sizes.
17908         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
17909         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
17910         New functions.
17911
17912         Port to C99 semantics for 'inline' of external functions.
17913         Bug reported by Bruno Haible.
17914         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
17915         with the old contents of xnmalloc.
17916         (xnmalloc, xmalloc): Use it.
17917         (xnrealloc_inline): New static inline function,
17918         with the old contents of xnrealloc.
17919         (xnrealloc, xrealloc): Use it.
17920
17921         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
17922         that.
17923
17924 2003-10-26  Karl Berry  <karl@gnu.org>
17925
17926         * config/srclist.txt (COPYING.DOC): no longer available from
17927         /gd/gnuorg; don't know where the ultimate source is.
17928
17929 2003-10-25  Paul Eggert  <eggert@twinsun.com>
17930
17931         Fix several address-calculation bugs in the hash modules,
17932         plus some minor code cleanup.
17933
17934         * lib/hash.h: Include <stdbool.h>, for bool.
17935         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
17936         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
17937         hash_get_n_entries, hash_get_max_bucket_length,
17938         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
17939         hash_rehash): Use size_t rather than unsigned.
17940         * lib/hash.c (struct hash_table, hash_get_n_buckets,
17941         hash_get_n_buckets_used, hash_get_n_entries,
17942         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
17943         hash_get_entries, hash_do_for_each, hash_string, is_prime,
17944         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
17945         Likewise.
17946         (SIZE_MAX): Define if not defined.
17947         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
17948         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
17949         hash_print):
17950         Use const * when possible.
17951         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
17952         (check_tuning): Fix bug: if tuning parameters were very close to
17953         0 or 1, rounding errors could have caused subscript violations.
17954         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
17955         (hash_initialize): Add 'fail:' label
17956         to free table and return NULL, and use it to simplify code.
17957         Use calloc rather than clearing the storage ourself.
17958         (hash_initialize, hash_rehash): Check for arithmetic overflow in
17959         buffer size calculations.
17960         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
17961         Include <stddef.h>, for size_t.
17962         * lib/hash-pjw.c (hash_pjw): Likewise.
17963         Switch to method described by Bruno Haible.
17964         Include <limits.h>, for CHAR_BIT.
17965         (SIZE_BITS): New macro.
17966
17967 2003-10-23  Paul Eggert  <eggert@twinsun.com>
17968
17969         * m4/getline.m4 (AM_FUNC_GETLINE):
17970         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
17971         hosts.  Problem reported by Derek Robert Price in
17972         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
17973         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
17974         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
17975
17976 2003-10-21  Paul Eggert  <eggert@twinsun.com>
17977
17978         * lib/getndelim2.c (getndelim2): When size calculation overflows,
17979         ceiling the allocation at NMAX bytes rather than silently
17980         discarding input bytes before NMAX is reached.  This makes
17981         a difference only if NMAX exceeds SIZE_MAX / 2.
17982
17983         * lib/obstack.c: Merge from glibc.
17984         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
17985         Add libc_hidden_def (_obstack_newchunk).
17986         (_obstack_free) [! defined _LIBC]: Remove.
17987         [defined _LIBC]: Make a strong alias from obstack_free, rather than
17988         a clone of the function body.
17989         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
17990         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
17991
17992         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
17993         glibc.
17994         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
17995         arg to memcpy.
17996
17997         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
17998         (obstack_ptr_grow_fast, obstack_int_grow_fast):
17999         Don't use lvalue casts, as GCC plans to remove support for them
18000         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
18001         was also present in the non-GCC version, indicating that this
18002         code had always been buggy and had never been widely used.
18003         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
18004         Use the fast variant of each macro, rather than copying the
18005         definiens of the fast variant; that way, we'll be more likely to
18006         catch future bugs in the fast variants.
18007
18008 2003-10-20  Bruno Haible  <bruno@clisp.org>
18009
18010         * modules/wait-process: New file.
18011         * MODULES.html.sh (func_all_modules): Add wait-process.
18012
18013 2003-10-20  Bruno Haible  <bruno@clisp.org>
18014
18015         * m4/wait-process.m4: New file.
18016
18017 2003-10-20  Bruno Haible  <bruno@clisp.org>
18018
18019         * lib/wait-process.h: New file, from GNU gettext.
18020         * lib/wait-process.c: New file, from GNU gettext.
18021
18022 2003-10-19  Jim Meyering  <jim@meyering.net>
18023
18024         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
18025         HPUX 10.20.
18026
18027 2003-10-18  Karl Berry  <karl@gnu.org>
18028
18029         * config/config.guess: update from config.
18030
18031 2003-10-16  Paul Eggert  <eggert@twinsun.com>
18032
18033         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
18034         (getgroups): First arg is int, not size_t.
18035         Don't let 'free' mangle errno.
18036
18037 2003-10-16  Paul Eggert  <eggert@twinsun.com>
18038
18039         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
18040
18041 2003-10-16  Karl Berry  <karl@gnu.org>
18042
18043         * config/config.{guess,sub}: update from config.
18044
18045 2003-10-16  Jim Meyering  <jim@meyering.net>
18046
18047         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
18048         memcpy.
18049
18050 2003-10-15  Paul Eggert  <eggert@twinsun.com>
18051
18052         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
18053         (SIZE_MAX): Remove.
18054         (new_exclude, add_exclude_file): Initial size no longer needs to
18055         be a power of 2.
18056         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
18057         our own address arithmetic overflow checking.
18058
18059         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
18060         (fnmatch): Do not alloca more than 2000 wide characters;
18061         instead, use malloc for large buffers.
18062         Check for address arithmetic overflow, and return -1
18063         with errno set to ENOMEM in that case.
18064         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
18065         (NEW_PATTERN): Do not alloca more than 8000 bytes;
18066         instead, return -1.  Check for address arithmetic overflow.
18067
18068 2003-10-14  Paul Eggert  <eggert@twinsun.com>
18069
18070         Handle invalid suffixes and overflow independently, so that
18071         callers can treat them independently as needed.  Fix some bugs in
18072         suffix handling, e.g., "100k@" was not diagnosed as an invalid
18073         suffix for a human-readable blocksize.  The major caller-visible
18074         change is the addition of a new
18075         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
18076         that both overflow and suffix chars were found.
18077
18078         * lib/human.c (humblock): Don't check separately for invalid suffix
18079         char; that is xstrtoumax's job (now that its bug is fixed).
18080         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
18081         INTMAX_MAX]: New macros.
18082         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
18083         TYPE_MAXIMUM): New macros.
18084         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
18085         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
18086         if overflow occurs, as it's what __strtol does and it's more useful
18087         in practice.
18088         (__xstrtol): If __strtol reports some error other than ERANGE,
18089         reflect it to the caller as LONGINT_INVALID.  If it reports
18090         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
18091         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
18092         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
18093         value.
18094         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
18095         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
18096         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
18097         [defined UINTMAX_MAX]: New macros.
18098
18099 2003-10-14  Bruno Haible  <bruno@clisp.org>
18100
18101         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
18102
18103 2003-10-14  Bruno Haible  <bruno@clisp.org>
18104
18105         * m4/sig_atomic_t: New file, from GNU gettext.
18106         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
18107
18108 2003-10-14  Bruno Haible  <bruno@clisp.org>
18109
18110         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
18111         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
18112         Also use volatile where needed.
18113
18114 2003-10-12  Paul Eggert  <eggert@twinsun.com>
18115
18116         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
18117         Change maintainer from Bruno Haible to 'all'.
18118
18119 2003-10-12  Paul Eggert  <eggert@twinsun.com>
18120
18121         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
18122
18123 2003-10-12  Paul Eggert  <eggert@twinsun.com>
18124
18125         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
18126         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
18127         and define in terms of the other primitives.
18128         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
18129         (SIZE_MAX): Define if not already defined.
18130         (array_size_overflow): New function.
18131         (xalloc_die): Abort instead of exiting if 'error' returns.
18132         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
18133         (xmalloc, xrealloc): Use them.
18134         (xcalloc): Check for address arithmetic overflow.
18135         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
18136         a bit faster than strcpy.
18137
18138 2003-10-10  Simon Josefsson  <jas@extundo.com>
18139
18140         * modules/argp (Depends-on): Add restrict and strcase.
18141
18142 2003-10-10  Simon Josefsson  <jas@extundo.com>
18143
18144         * m4/argp.m4: Add AC_C_INLINE.
18145
18146 2003-10-08  Paul Eggert  <eggert@twinsun.com>
18147
18148         Merge getpass from libc, plus a few fixes.
18149
18150         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
18151         Include <stdbool.h>.
18152         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
18153         __fsetlocking to empty.
18154         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
18155         do include <bits/libc-lock.h>.
18156         Do not include <fcntl.h>; not needed.
18157         [_LIBC]: Include <wchar.h>.
18158         (NOTCANCEL_MODE): New macro.
18159         (flockfile, funlockfile) [_LIBC]: New macros.
18160         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
18161         [!_LIBC]: New macros.
18162         (call_fclose): New function.
18163         (getpass): Use it.  Save tty stream separately; this simplifies the
18164         code and makes it more reliable if stdin happens to equal stdout.
18165         Invoke __fsetlocking on tty.
18166         Handle thread cancellation if needed.
18167         Namespace cleanup (use __tcgetattr, __getline).
18168         Use bool for Booleans.
18169         [USE_IN_LIBIO]: Handle wide streams.
18170         [!_LIBC]: Unconditionally do the fseek, since we don't know what
18171         stream might go where.
18172
18173         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
18174         doesn't have to include <stdio.h> before us.
18175         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
18176         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
18177         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
18178         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
18179         if not declared, so that we can use getpass.c code from libc without
18180         rewriting it.
18181         (flockfile, ftrylockfile, funlockfile): New macros.
18182
18183 2003-10-08  Paul Eggert  <eggert@twinsun.com>
18184
18185         * modules/getpass: Depend on stdbool.
18186
18187 2003-10-08  Paul Eggert  <eggert@twinsun.com>
18188
18189         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
18190
18191 2003-10-07  Karl Berry  <karl@gnu.org>
18192
18193         * config/config.{guess,sub}: update from config.
18194
18195 2003-10-06  Jim Meyering  <jim@meyering.net>
18196             Bruno Haible  <bruno@clisp.org>
18197
18198         This lets translators provide better translations for the
18199         "Written by ..." part of --version output.
18200         * lib/version-etc.h: Include stdarg.h.
18201         (version_etc_copyright): Declare as readonly.
18202         (version_etc): Make this function variadic with a NULL-terminated list
18203         of author name strings.
18204         (version_etc_va): New declaration.
18205         * lib/version-etc.c: Include stdarg.h, stdlib.h.
18206         (version_etc_copyright): Declare as readonly.
18207         (version_etc_va): New function. Provide a different translatable string
18208         for each possible number of authors < 10. Abbreviate when there are 10
18209         authors or more.
18210         (version_etc): Make this function variadic. Call version_etc_va.
18211         Suggestion from Gary V. Vaughan.
18212
18213         * lib/long-options.h (parse_long_options): Change prototype: the
18214         authors string is moved to the end and becomes variadic.
18215         * lib/long-options.c: Include stdarg.h.
18216         (parse_long_options): Make this function variadic, too.
18217         Call version_etc_va, not version_etc.
18218
18219 2003-10-06  Bruno Haible  <bruno@clisp.org>
18220
18221         * modules/version-etc-2: Remove file.
18222         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
18223
18224 2003-10-06  Bruno Haible  <bruno@clisp.org>
18225
18226         * modules/fatal-signal: New file.
18227         * MODULES.html.sh (func_all_modules): Add fatal-signal.
18228
18229 2003-10-06  Bruno Haible  <bruno@clisp.org>
18230
18231         * m4/fatal-signal.m4: New file.
18232         * m4/signalblocking.m4: New file, from GNU gettext.
18233
18234 2003-10-06  Bruno Haible  <bruno@clisp.org>
18235
18236         * lib/version-etc-2.h: Remove file.
18237         * lib/version-etc-2.c: Remove file.
18238
18239 2003-10-06  Bruno Haible  <bruno@clisp.org>
18240
18241         * lib/fatal-signal.h: New file, from GNU gettext.
18242         * lib/fatal-signal.c: New file, from GNU gettext.
18243
18244 2003-10-05  Paul Eggert  <eggert@twinsun.com>
18245
18246         * README: Rework advice for preventing empty .o files.
18247         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
18248         not <sys/types.h>.
18249
18250 2003-10-04  Karl Berry  <karl@gnu.org>
18251
18252         * lib/argp*: update from libc.
18253
18254 2003-10-04  Karl Berry  <karl@gnu.org>
18255
18256         * config/config.{guess,sub}: update from config.
18257
18258 2003-10-02  Bruno Haible  <bruno@clisp.org>
18259
18260         * modules/lchown (Include): Add lchown.h.
18261         * modules/time_r (Include): Use "..." syntax.
18262         * modules/xgetdomainname (Include): Add xgetdomainname.h.
18263
18264 2003-10-01  Simon Josefsson  <jas@extundo.com>
18265
18266         * MODULES.html.sh (func_all_modules): Move gethostname from section
18267         'based on' to section 'lacking' POSIX:2001.
18268
18269 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
18270
18271         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
18272         to output mode on the same stream.
18273
18274 2003-09-29  Paul Eggert  <eggert@twinsun.com>
18275
18276         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
18277         Fix arg typo in previous patch.
18278
18279 2003-09-28  Jim Meyering  <jim@meyering.net>
18280
18281         * lib/error.c: Correct cpp indentation.
18282
18283 2003-09-27  Paul Eggert  <eggert@twinsun.com>
18284
18285         * modules/free: New file.
18286
18287 2003-09-27  Paul Eggert  <eggert@twinsun.com>
18288
18289         * m4/free.m4: New file.
18290
18291 2003-09-27  Paul Eggert  <eggert@twinsun.com>
18292
18293         * lib/minmax.h (MIN, MAX)
18294         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
18295         Omit the special code that used __typeof__, since we worry that
18296         it could be more trouble than it's worth.  See:
18297         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
18298         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
18299
18300         * lib/free.c: New file.
18301
18302 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
18303
18304         Trivial fixes to Makefile.am parts of module listings.
18305         * modules/strstr: Append strstr.h to lib_SOURCES.
18306         * modules/strcase: Likewise, for strcase.h.
18307
18308 2003-09-27  Karl Berry  <karl@gnu.org>
18309
18310         * config/mkinstalldirs: update from automake.
18311
18312 2003-09-26  Paul Eggert  <eggert@twinsun.com>
18313
18314         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
18315         (error_tail): Do not loop, reallocating temporary buffer, since
18316         the output cannot contain more wide characters than the input
18317         contains bytes, the size must be big enough already.  This avoids
18318         one potential size overflow calculation.  Check for size overflow
18319         when calculating temporary buffer size.  Free temporary buffer
18320         when done, if it was allocated with malloc; this plugs a memory
18321         leak.  Remove casts from void * to pointers, that are no longer
18322         needed now that we're assuming C89 or better.
18323
18324         Merge error changes from glibc.
18325
18326         * lib/error.c, error.h: Update copyright notice header to match glibc.
18327         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
18328         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
18329         Disable cancellation while printing error.
18330         * lib/error.h: Prepend __ to parameter names.
18331
18332 2003-09-26  Jim Meyering  <jim@meyering.net>
18333
18334         * lib/error.c (error_tail): Move some declarations
18335         into inner scope where the local variables are used.
18336
18337 2003-09-26  Bruno Haible  <bruno@clisp.org>
18338
18339         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
18340         stpncpy().
18341         Don't define stpncpy through config.h; it's now done through stpncpy.h.
18342
18343 2003-09-26  Bruno Haible  <bruno@clisp.org>
18344
18345         * lib/stpncpy.h (gnu_stpncpy): New declaration.
18346         (stpncpy): Define as alias for gnu_stpncpy.
18347         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
18348
18349 2003-09-25  Simon Josefsson  <jas@extundo.com>
18350
18351         * lib/xgetdomainname.h: New file.
18352         * lib/xgetdomainname.c: New file.
18353
18354 2003-09-25  Simon Josefsson  <jas@extundo.com>
18355             Bruno Haible  <bruno@clisp.org>
18356
18357         * modules/getdomainname: New file.
18358         * modules/xgetdomainname: New file.
18359         * MODULES.html.sh (func_all_modules): Add getdomainname,
18360         xgetdomainname.
18361
18362 2003-09-25  Simon Josefsson  <jas@extundo.com>
18363             Bruno Haible  <bruno@clisp.org>
18364
18365         * m4/getdomainname.m4: New file.
18366
18367 2003-09-25  Simon Josefsson  <jas@extundo.com>
18368             Bruno Haible  <bruno@clisp.org>
18369
18370         * lib/getdomainname.h: New file.
18371         * lib/getdomainname.c: New file.
18372
18373 2003-09-25  Karl Berry  <karl@gnu.org>
18374
18375         * lib/argp-fmtstream.c, argp-help.c: update from libc.
18376
18377 2003-09-25  Karl Berry  <karl@gnu.org>
18378
18379         * config/install-sh: update from automake.
18380
18381 2003-09-25  Bruno Haible  <bruno@clisp.org>
18382
18383         * modules/version-etc-2: New file, from modules/version-etc with
18384         modifications.
18385         * MODULES.html.sh (func_all_modules): Add version-etc-2.
18386
18387 2003-09-25  Bruno Haible  <bruno@clisp.org>
18388
18389         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
18390         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
18391
18392 2003-09-24  Simon Josefsson  <jas@extundo.com>
18393
18394         * modules/xgethostname: Add xgethostname.h.
18395
18396 2003-09-24  Paul Eggert  <eggert@twinsun.com>
18397
18398         * lib/linebuffer.c (freebuffer): Don't free the argument, just
18399         the buffer associated with the argument.  Bug reported by
18400         Simon Josefsson.
18401
18402 2003-09-24  Paul Eggert  <eggert@twinsun.com>
18403
18404         * README: Document assumptions that 'int' is at least 32 bits
18405         wide, that integer arithmetic is 2's complement without overflow,
18406         that there are no holes in integer values, that adding sizes of
18407         two nonoverlapping objects can't overflow, and that all-bits-zero
18408         yields scalar zero.  Fix spelling and capitalization typos.
18409
18410 2003-09-19  Karl Berry  <karl@gnu.org>
18411
18412         * lib/argp.h: update from libc.
18413
18414 2003-09-17  Paul Eggert  <eggert@twinsun.com>
18415
18416         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
18417         to avoid spurious warnings like "AC_RUN_IFELSE was called before
18418         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
18419
18420 2003-09-17  Paul Eggert  <eggert@twinsun.com>
18421
18422         * gnulib-tool: Use "test -h", not "test -L", for portability
18423         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
18424         (tags_regexp): Remove, since \| doesn't conform to POSIX.
18425         (sed_extract_prog): Issue s commands one-by-one, rather than
18426         using \| in one s command.
18427
18428 2003-09-16  Paul Eggert  <eggert@twinsun.com>
18429
18430         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
18431         input error, instead of returning NULL the next time we are called
18432         (and therefore losing track of errno).
18433
18434 2003-09-16  Bruno Haible  <bruno@clisp.org>
18435
18436         * gnulib-tool (func_create_testdir): Warn about duplicated
18437         dependencies.
18438
18439 2003-09-15  Paul Eggert  <eggert@twinsun.com>
18440
18441         * modules/argmatch, modules/fatal, modules/obstack,
18442         modules/xalloc, modules/xgethostname: Sort dependencies by
18443         importance, not alphabetically.
18444
18445 2003-09-15  Paul Eggert  <eggert@twinsun.com>
18446
18447         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
18448         fails, so that the caller gets the proper errno.
18449
18450         * lib/readutmp.c (read_utmp): Likewise.
18451         Check for fstat error.  Close stream and free storage
18452         when failing.
18453
18454 2003-09-14  Karl Berry  <karl@gnu.org>
18455
18456         * config/srclist.txt (strdup.c): disable for c89 changes.
18457
18458 2003-09-14  Jim Meyering  <jim@meyering.net>
18459
18460         * lib/getloadavg.c: Correct cpp indentation.
18461         * lib/strdup.c: Likewise.
18462         * lib/vasnprintf.c: Likewise.
18463
18464 2003-09-14  Bruno Haible  <bruno@clisp.org>
18465
18466         * modules/fwriteerror: New file.
18467         * MODULES.html.sh (func_all_modules): Add fwriteerror.
18468
18469 2003-09-14  Bruno Haible  <bruno@clisp.org>
18470
18471         * lib/fwriteerror.h: New file.
18472         * lib/fwriteerror.c: New file.
18473
18474 2003-09-12  Paul Eggert  <eggert@twinsun.com>
18475
18476         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
18477         modules/xgethostname, modules/xalloc: Depend on exit.
18478
18479 2003-09-12  Paul Eggert  <eggert@twinsun.com>
18480
18481         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
18482
18483         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
18484         and AC_MINIX, too, so that their extensions are available.
18485
18486         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
18487         This macro has been superseded by gl_BACKUPFILE.
18488
18489         More patches to assume C89 or better.
18490
18491         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
18492
18493         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
18494         unconditionally.
18495         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
18496         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
18497         Include <string.h>, <stdlib.h> unconditionally.
18498         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
18499         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
18500         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
18501         headers or for string.h.
18502         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
18503         or strtoul.
18504
18505         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
18506         headers.
18507         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
18508         * m4/userspec.m4 (gl_USERSPEC): Likewise.
18509         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
18510         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
18511         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
18512         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
18513         memcpy, memset.
18514         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
18515         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
18516         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
18517         strtol.
18518         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
18519         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
18520         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
18521         strtoul.
18522
18523 2003-09-12  Paul Eggert  <eggert@twinsun.com>
18524
18525         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
18526         * lib/obstack.c [!defined _LIBC]: Likewise.
18527         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
18528         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
18529         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
18530
18531         More changes to assume C89 or better.
18532
18533         * lib/error.c (error_tail): Assume vprintf.
18534
18535         * lib/argmatch.c (getenv): Remove decl.
18536         * lib/progreloc.c (get_full_program_name): Define via prototype.
18537         * lib/setenv.c (clearenv): Likewise.
18538         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
18539         needed.
18540         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
18541         (malloc, memcpy): Remove decls.
18542         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
18543         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
18544         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
18545         (memcpy): Remove macro.
18546         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
18547         (__P): Remove.  All uses removed.
18548         (PTR): Remove.  All uses changed to void *.
18549         (CHAR_BIT, NULL): Remove.
18550         (spaces, zeros, memset_space, memset_zero)
18551         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
18552         Remove.
18553         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
18554         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
18555         Define with prototype.
18556         Remove now-unnecessary prototype decl.
18557         (extra_args_spec): Assume ANSI C.  All uses changed.
18558         (extra_args_spec_iso): Remove.
18559         (my_strftime, emacs_strftimeu): Define via prototype.
18560         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
18561         unconditionally.
18562         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
18563         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
18564         (strtoul, strtol): Remove decls.
18565         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
18566         LONG_MAX): Remove.
18567         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
18568         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
18569         (LOCALE_PARAM_PROTO): New macro.
18570         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
18571         (INTERNAL (strtol), strtol): Define with a prototype.
18572         (PARAMS): Remove.  All uses removed.
18573         * lib/tempname.c: Include <string.h> unconditionally.
18574         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
18575         * lib/xgethostname.c (main): Define with a prototype.
18576         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
18577         Include <stdlib.h> unconditionally.
18578         (calloc, malloc, realloc, free): Remove decls.
18579         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
18580         Include <stdlib.h> unconditionally.  Sort include file names.
18581         (strtod): Remove.
18582         (xstrtod): Define with a prototype.
18583         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
18584         (strtol, strtoul): Remove decls.
18585
18586 2003-09-11  Paul Eggert  <eggert@twinsun.com>
18587
18588         More patches to assume C89 or better.
18589         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
18590         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
18591         string.h, memchr, STDC_HEADERS.
18592
18593 2003-09-11  Paul Eggert  <eggert@twinsun.com>
18594
18595         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
18596         Include <stdlib.h>, <string.h> unconditionally.
18597         Remove now-unnecessary cast to char *.
18598         * lib/strnlen.c: Include <string.h> unconditionally.
18599         * lib/yesno.c (yesno): Define with a prototype.
18600
18601 2003-09-11  Bruno Haible  <bruno@clisp.org>
18602
18603         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
18604
18605 2003-09-10  Jim Meyering  <jim@meyering.net>
18606
18607         * lib/error.c: Correct indentation of cpp directives.
18608
18609 2003-09-10  Bruno Haible  <bruno@clisp.org>
18610
18611         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
18612         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
18613         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
18614         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
18615         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
18616         <stdlib.h> and <string.h> checks.
18617         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
18618         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
18619
18620 2003-09-10  Bruno Haible  <bruno@clisp.org>
18621
18622         * lib/strcspn.c: Include <string.h> unconditionally.
18623         * lib/strpbrk.c: Include <string.h> unconditionally.
18624         * lib/strstr.c: Include <string.h> unconditionally.
18625         * lib/unicodeio.c: Include <string.h> unconditionally.
18626         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
18627         * lib/unsetenv.c: Likewise.
18628         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
18629         * lib/yesno.c: Include <stdlib.h> unconditionally.
18630         (rpmatch): Add prototype.
18631
18632 2003-09-09  Paul Eggert  <eggert@twinsun.com>
18633
18634         More patches to assume C89 or better.
18635         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
18636         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
18637         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
18638         or for string.h.
18639         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
18640         stdlib.h.
18641         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
18642         C headers.
18643         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
18644         string.h.
18645         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
18646         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
18647         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
18648         or for string.h.
18649         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
18650         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
18651         C headers.
18652         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
18653         memcpy.
18654         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
18655         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
18656         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
18657         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
18658         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
18659         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
18660         string.h, free.
18661         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
18662         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
18663         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
18664         C headers, or for string.h.
18665         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
18666         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
18667         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
18668         headers, memory.h, stdlib.h, string.h, strings.h.
18669         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
18670         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
18671         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
18672         strchr.
18673         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
18674         headers, memory.h, string.h.
18675         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
18676         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
18677         free.
18678         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
18679         headers.
18680         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
18681         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
18682         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
18683         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
18684         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
18685
18686 2003-09-09  Paul Eggert  <eggert@twinsun.com>
18687
18688         More K&R removal.
18689
18690         * lib/acosl.c (main): Use a prototype.
18691         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
18692         tanl.c: Likewise.
18693
18694         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
18695
18696         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
18697         (getopt, etopt_long, getopt_long_only, _getopt_internal)
18698         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
18699         with a prototype.
18700         * lib/getopt.c (const): Remove macro.
18701         Include <string.h> unconditionally.
18702         (my_index): Remove; all uses changed to strchr.
18703         (strlen): Remove decl.
18704         (exchange): Remove forward decl; no longer needed.
18705         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
18706         Define with prototype.
18707         * lib/getopt1.c (const): Remove macro.
18708         (getopt_long, getopt_long_only, main): Define with prototype.
18709
18710         * lib/getugroups.c: Include <string.h> unconditionally.
18711
18712         * lib/getusershell.c: Include <stdlib.h> unconditionally.
18713         (getusershell, setusershell, endusershell, readname, main):
18714         Define with prototypes.
18715
18716         * lib/group-member.c: Include group-member.h first.
18717         Include <stdlib.h> unconditionally.
18718
18719         * lib/hard-locale.c: Include hard-locale.h first.
18720         Include <stdlib.h>, <string.h> unconditionally.
18721
18722         * lib/hash.c (free, malloc): Remove decls.
18723         Include <stdlib.h> unconditionally.
18724
18725         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
18726         (getenv): Do not declare.
18727
18728         * lib/idcache.c: Include <string.h> unconditionally.
18729
18730         * lib/long-options.c: Include long-options.h first, to test interface.
18731         Include <stdlib.h> unconditionally.
18732
18733         * lib/makepath.c: Include makepath.h first, to test interface.
18734         Include <stdlib.h> and <string.h> unconditionally.
18735
18736         * lib/linebuffer.c: Include <stdlib.h>.
18737         (free): Remove decl.
18738
18739         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
18740         stddef.h. rpl_malloc returns void *, not char *.
18741         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
18742         prototype.
18743
18744         * lib/md5.h: Include <limits.h> unconditionally.
18745         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
18746         (__P): Remove; all uses removed.
18747         * lib/md5.c: Include "md5.h" first.
18748         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
18749         md5_buffer, md5_process_bytes, md5_process_block):
18750         Define with prototypes.
18751         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
18752         * lib/sha.c: Include "sha.h" first.
18753         Include <stdlib.h>, <string.h> unconditionally.
18754
18755         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
18756         * lib/memcmp.c (__ptr_t): Likewise.
18757         * lib/memrchr.c (__ptr_t): Likewise.
18758         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
18759         Include <string.h> unconditionally.
18760         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
18761         * lib/memchr.c: Include <stdlib.h> unconditionally.
18762         * lib/memchr.c (LONG_MAX): Remove.
18763         * lib/memrchr.c (LONG_MAX): Likewise.
18764         * lib/memchr.c (__memchr): Define via a prototype.
18765         * lib/memrchr.c (__memrchr): Likewise.
18766         * lib/memcmp.c (__P): Remove, and remove all uses.
18767         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
18768         Remove forward decls; no longer needed.
18769         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
18770         Use types required by C89 in prototype.
18771
18772         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
18773         * lib/savedir.c: Likewise.
18774         * lib/mkdir.c (free): Remove decl.
18775         * lib/rmdir.c (rmdir): Define with a prototype.
18776         * lib/savedir.c: Include savedir.h first, to test interface.
18777
18778         * lib/mktime.c (STDC_HEADERS): Remove.
18779         Include <stdlib.h>, <string.h> unconditionally.
18780
18781         * lib/modechange.c: Include <stdlib.h> unconditionally.
18782         (malloc): Remove decl.
18783
18784         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
18785         (free): Remove decl.
18786
18787         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
18788         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
18789         (This type really should be intptr_t, but that's a C99ism.)
18790         (_obstack_memcpy): Remove: all uses changed to memcpy.
18791         Include <string.h> unconditionally.
18792         (struct obstack): Assume __STDC__ for types of members
18793         chunkfun, freefun, extra_arg.
18794         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
18795         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
18796         obstack_begin, obstack_specify_allocation,
18797         obstack_specify_allocation_with_arg, obstack_chunkfun,
18798         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
18799         Remove unprototyped decls and the macros that use them.
18800         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
18801         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
18802         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
18803         (defined __STDC__ && __STDC__)]:
18804         Remove nonprototyped code.
18805         Include <stdlib.h> unconditionally.
18806         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
18807         _obstack_allocated_p, _obstack_free, obstack_free,
18808         _obstack_memory_used, print_and_abort):
18809         Define using prototypes.
18810         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
18811         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
18812         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
18813         obstack_next_free, obstack_object_size, obstack_room) [0]:
18814         Remove unused, unprototyped code.
18815
18816         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
18817
18818         * lib/physmem.c (physmem_total, physmem_available, main): Define
18819         with prototypes.
18820
18821         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
18822         (main): Define with a prototype.
18823
18824         * lib/posixver.c (getenv): Remove decl.
18825
18826         * lib/putenv.c (malloc): Returns void *, not char *.
18827         Include <string.h> unconditionally.
18828         (strchr, memcpy, NULL): Do not define.
18829
18830         * lib/readtokens.c: Include readtokens.h first, to test interface.
18831         Include <stdlib.h>, <string.h> unconditionally.
18832         (init_tokenbuffer): Define with a prototype.
18833
18834         * lib/regex.c (PARAMS): Remove.  All uses removed.
18835         All uses of _RE_ARGS removed, too.
18836         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
18837         unconditionally.
18838         (bzero): Assume memset exists.
18839         (memcmp, memcpy, NULL): Remove.
18840         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
18841         char, or assignments to local vars of type signed char.
18842         (init_syntax_once, PREFIX(extract_number_and_incr),
18843         PREFIX(print_partial_compiled_pattern),
18844         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
18845         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
18846         PREFIX(regex_grow_registers), PREFIX(regex_compile),
18847         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
18848         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
18849         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
18850         wcs_compile_range, byte_compile_range, truncate_wchar,
18851         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
18852         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
18853         count_mbs_length, wcs_re_match_2_internal,
18854         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
18855         PREFIX(alt_match_null_string_p),
18856         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
18857         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
18858         regfree, PREFIX(extract_number)): Define with prototype.  Remove
18859         now-unnecessary declaration, if any.
18860         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
18861         regcomp, regexec):
18862         Remove now-unnecessary casts among pointer types.
18863         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
18864
18865         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
18866         (free): Remove decl.
18867
18868         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
18869
18870         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
18871         (free): Remove decl.
18872
18873         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
18874         * lib/xgetcwd.c: Likewise.
18875
18876         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
18877         (free): Remove decl.
18878
18879         * lib/strchrnul.c (strchrnul): Define with a prototype.
18880         Fix bug: c_in was not converted to char before searching.
18881
18882         The following changes are not K&R related:
18883
18884         * lib/group-member.h: Include <sys/types.h>, so that this file is
18885         self-contained.
18886         * lib/makepath.h: Likewise.
18887
18888         * lib/getusershell.c (readname, default_index, line_size, readname):
18889         Use size_t, not int, for sizes.
18890         (readname): If the size overflows, report an error instead of
18891         looping forever.
18892
18893 2003-09-09  Paul Eggert  <eggert@twinsun.com>
18894
18895         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
18896         libc.
18897
18898 2003-09-09  Paul Eggert  <eggert@twinsun.com>
18899
18900         * README: New section: portability guidelines.
18901
18902 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
18903
18904         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
18905         C89 spec.
18906
18907 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
18908
18909         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
18910
18911 2003-09-08  Paul Eggert  <eggert@twinsun.com>
18912
18913         Assume C89 or better; remove K&R cruft.
18914         A few of these changes were first proposed by Derek Robert Price
18915         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
18916
18917         * lib/addext.c: Include <string.h> unconditionally.
18918         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
18919         Don't declare getenv or malloc.
18920
18921         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
18922         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
18923         (NULL): Remove.
18924         (find_stack_direction, alloca): Use prototypes.
18925
18926         * lib/atexit.c (atexit): Define using a prototype.
18927
18928         * lib/basename.c, dirname.c, stripslash.c:
18929         Include <string.h> unconditionally.
18930
18931         * lib/bcopy.c: Include <stddef.h>.
18932         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
18933
18934         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
18935
18936         * lib/error.h (error, error_at_line, error_print_progname)
18937         [! (defined (__STDC__) && __STDC__)]: Remove decls.
18938         * lib/error.c: Include error.h first, to check interface.
18939         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
18940         (VA_START): Remove; all uses changeed to va_start.
18941         (exit, strerror): Remove decls.
18942         (error_print_progname): Prototype uncondionally.
18943         Don't include <errno.h>; no longer needed.
18944         (private_strerror): Remove.
18945         (error_tail): Always define.
18946         (error, error_at_line): Assume C89 or better; always use prototypes.
18947         * lib/fatal.c: Include "fatal.h" first, to test interface.
18948         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
18949         (VA_START): Remove; all uses changed to va_start.
18950         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
18951         this case.
18952         (exit): Remove decl.
18953         (fatal): Prototype unconditionally.  Assume va_start works.
18954         Abort at end, to pacify gcc.
18955
18956         * lib/euidaccess.c (main): Define with a prototype.
18957
18958         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
18959
18960         * lib/exitfail.c: Include <stdlib.h> unconditionally.
18961
18962         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
18963         prototypes.
18964         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
18965         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
18966         (getenv): Remove decl.
18967         (fnmatch): Define using a prototype.
18968         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
18969         (FCT): Define using a prototype.
18970
18971         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
18972
18973         * lib/gethostname.c: Include <stddef.h>.
18974         (gethostname): Define with prototype.  Length is size_t, not int.
18975
18976 2003-09-08  Paul Eggert  <eggert@twinsun.com>
18977
18978         Assume C89 or better; remove K&R cruft.
18979         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
18980         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
18981         string.h, getenv, malloc.
18982         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
18983         headers.
18984         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
18985         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
18986         do not check for strerror.
18987         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
18988         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
18989         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
18990         do not check for doprnt or vprintf.
18991         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
18992         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
18993
18994 2003-09-08  Paul Eggert  <eggert@twinsun.com>
18995
18996         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
18997         getversion.c should have been removed then, but was accidentally
18998         preserved.
18999
19000         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
19001         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
19002
19003 2003-09-08  Karl Berry  <karl@gnu.org>
19004
19005         * config/config.sub, config.guess, srclistvars.sh: update from savannah
19006                 config, forget about prep.
19007
19008         * config/depcomp, missing: update from automake.
19009
19010 2003-09-07  Paul Eggert  <eggert@twinsun.com>
19011
19012         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
19013         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
19014
19015 2003-09-07  Paul Eggert  <eggert@twinsun.com>
19016
19017         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
19018         copy_tm_result.  Bug reported by Simon Josefsson in
19019         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
19020
19021 2003-09-06  Paul Eggert  <eggert@twinsun.com>
19022
19023         * m4/time_r.m4: New file.
19024         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
19025         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
19026         is. Check for timegm declaration.
19027         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
19028         Do not check for gmtime_r.
19029         Replace mktime if __mktime_internal does not exist and if mktime
19030         hasn't been replaced already.
19031
19032 2003-09-06  Paul Eggert  <eggert@twinsun.com>
19033
19034         * lib/time_r.c, lib/time_r.h: New files.
19035
19036         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
19037         __localtime_r.
19038         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
19039         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
19040
19041         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
19042         __gmtime_r.
19043         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
19044         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
19045         Include <time_r.h>.
19046
19047         * lib/timegm.c: Switch to glibc implementation, with the following
19048         changes:
19049         [defined HAVE_CONFIG_H]: Include <config.h>.
19050         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
19051         (__mktime_internal) [!defined _LIBC]: New decl.
19052         (__gmtime_r) [!defined _LIBC]: New macro and function.
19053         (timegm): Use a prototype, since gnulib assumes C89.
19054         Do not bother declaring tmp to be const, as it's not really usefu.
19055         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
19056         (timegm): Declare only if HAVE_DECL_TIMEGM.
19057
19058 2003-09-06  Paul Eggert  <eggert@twinsun.com>
19059
19060         * MODULES.html.sh (func_all_modules): Add time_r.
19061         * modules/time_r: New file.
19062         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
19063         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
19064
19065 2003-09-03  Paul Eggert  <eggert@twinsun.com>
19066
19067         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
19068         Bug reported by Lute Kamstra in
19069         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
19070
19071         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
19072         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
19073         course with correspondingly smaller numbers for tomorrow and
19074         yesterday.  From Tadayoshi Funaba.  Originally installed into
19075         sh-utils on 1999-08-07, but the patch got lost (I guess during the
19076         coreutils merge?).
19077
19078 2003-08-31  Simon Josefsson  <jas@extundo.com>
19079
19080         * modules/timegm: New file.
19081         * MODULES.html.sh (func_all_modules): Add timegm.
19082
19083 2003-08-31  Simon Josefsson  <jas@extundo.com>
19084
19085         * m4/timegm.m4: New file.
19086
19087 2003-08-31  Simon Josefsson  <jas@extundo.com>
19088
19089         * lib/timegm.h: New file.
19090         * lib/timegm.c: New file.  Based on
19091         wget-1.8.2/src/http.c:mktime_from_utc.
19092
19093 2003-08-31  Karl Berry  <karl@gnu.org>
19094
19095         * lib/argp.h: update from libc.
19096
19097 2003-08-28  Bruno Haible  <bruno@clisp.org>
19098
19099         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
19100         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
19101         followed by '#define fnmatch fnmatch_posix' gives an error.
19102
19103 2003-08-28  Bruno Haible  <bruno@clisp.org>
19104
19105         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
19106         warning on QNX, which defines O_BINARY to 000000.
19107
19108 2003-08-27  Jim Meyering  <jim@meyering.net>
19109
19110         * m4/mkstemp.m4: Require that the system mkstemp be able to create
19111         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
19112         would fail after 32.  Reported by Danny Levinson.  Details here:
19113         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
19114
19115 2003-08-24  Bruno Haible  <bruno@clisp.org>
19116
19117         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
19118         MSVC7 <stdio.h> is included later.
19119
19120 2003-08-22  Simon Josefsson  <jas@extundo.com>
19121
19122         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
19123
19124 2003-08-20  Karl Berry  <karl@gnu.org>
19125
19126         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
19127
19128 2003-08-20  Bruno Haible  <bruno@clisp.org>
19129
19130         * modules/progname: New file.
19131         * MODULES.html.sh (func_all_modules): Add progname.
19132
19133 2003-08-20  Bruno Haible  <bruno@clisp.org>
19134
19135         * lib/progname.h: New file, from GNU gettext.
19136         * lib/progname.c: New file, from GNU gettext.
19137         * lib/progreloc.c: New file, from GNU gettext.
19138
19139 2003-08-19  Jim Meyering  <jim@meyering.net>
19140
19141         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
19142         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
19143
19144 2003-08-19  Bruno Haible  <bruno@clisp.org>
19145
19146         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
19147         more.
19148
19149 2003-08-19  Bruno Haible  <bruno@clisp.org>
19150
19151         * lib/xstrdup.c: Assume <string.h> exists.
19152
19153 2003-08-18  Paul Eggert  <eggert@twinsun.com>
19154
19155         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
19156         in makefile rules.
19157
19158 2003-08-18  Jim Meyering  <jim@meyering.net>
19159
19160         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
19161         * m4/lib-ld.m4: Likewise.
19162
19163 2003-08-18  Jim Meyering  <jim@meyering.net>
19164
19165         * lib/setenv.h: Indent nested cpp directive.
19166         * lib/vasnprintf.c: Remove trailing blanks.
19167
19168 2003-08-17  Simon Josefsson  <jas@extundo.com>
19169
19170         * modules/xstrndup: New file.
19171         * MODULES.html.sh (func_all_modules): Add xstrndup.
19172
19173 2003-08-17  Simon Josefsson  <jas@extundo.com>
19174
19175         * modules/argp: Fix autoconf macro name. Add more dependencies.
19176
19177 2003-08-17  Simon Josefsson  <jas@extundo.com>
19178
19179         * m4/xstrndup.m4: New file.
19180
19181 2003-08-17  Simon Josefsson  <jas@extundo.com>
19182
19183         * m4/argp.m4: New file.
19184
19185 2003-08-17  Simon Josefsson  <jas@extundo.com>
19186             Bruno Haible  <bruno@clisp.org>
19187
19188         * lib/xstrndup.h: New file.
19189         * lib/xstrndup.c: New file.
19190
19191 2003-08-17  Bruno Haible  <bruno@clisp.org>
19192
19193         * modules/strndup (Files, Include): Add lib/strndup.h.
19194
19195 2003-08-17  Bruno Haible  <bruno@clisp.org>
19196
19197         * modules/euidaccess (Files): Add lib/euidaccess.h.
19198
19199 2003-08-17  Bruno Haible  <bruno@clisp.org>
19200
19201         * lib/strndup.h: New file.
19202
19203 2003-08-17  Bruno Haible  <bruno@clisp.org>
19204
19205         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
19206         like AC_GNU_SOURCE.
19207         * modules/extensions (configure.ac): Comment out the invocation of
19208         gl_USE_SYSTEM_EXTENSIONS.
19209
19210 2003-08-16  Paul Eggert  <eggert@twinsun.com>
19211
19212         Merges from coreutils, etc.
19213         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
19214         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
19215         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
19216         fixing a typo.
19217         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
19218         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
19219
19220 2003-08-16  Paul Eggert  <eggert@twinsun.com>
19221
19222         Document merge from coreutils.
19223         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
19224         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
19225         * modules/utime: Add m4/utimes-null.m4.
19226
19227 2003-08-16  Paul Eggert  <eggert@twinsun.com>
19228
19229         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
19230         space, undoing this 2003-08-12 change:
19231         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
19232
19233 2003-08-16  Paul Eggert  <eggert@twinsun.com>
19234
19235         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
19236         strtoul.c from libc, undoing this 2003-08-12 change:
19237         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
19238
19239 2003-08-16  Jim Meyering  <jim@meyering.net>
19240
19241         Merges from coreutils.
19242         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
19243         prefix.  Adjust cache variables similarly.  Create 500 rather than
19244         just 300 files, to exercise bug on Darwin6.5, too.
19245         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
19246         $missing_dir.
19247         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
19248         AM_SYS_POSIX_TERMIOS.
19249         Reported by mkc@mathdogs.com.
19250         Also change use of $am_cv_sys_posix_termios
19251         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
19252         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
19253         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
19254         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
19255         in /proc/mounts until it finds one with matching device number.  This
19256         is unnecessary when the FILE argument *is* a mount point.  No stat call
19257         is necessary in that case.  So, disable the statvfs-testing code on
19258         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
19259         as RedHat bug# 84846.
19260         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
19261         to 1MB, so as not to render systems with no stack size limit (e.g.,
19262         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
19263         Include <unistd.h>.  On some systems,
19264         it is required for the definition of _SC_PAGESIZE.
19265
19266 2003-08-16  Jim Meyering  <jim@meyering.net>
19267
19268         Merge from coreutils.
19269         * lib/xstrtoimax.c: #else #if -> #elif.
19270         * lib/xstrtoumax.c: Likewise.
19271
19272 2003-08-16  Jim Meyering  <jim@meyering.net>
19273
19274         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
19275         * m4/utimes.m4: Removed.
19276         * m4/utimes-null.m4: Renamed from utimes.m4.
19277
19278         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
19279         to 1MB, so as not to render systems with no stack size limit (e.g.,
19280         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
19281         Include <unistd.h>.  On some systems,
19282         it is required for the definition of _SC_PAGESIZE.
19283
19284 2003-08-16  Jim Meyering  <jim@meyering.net>
19285         and Paul Eggert  <eggert@cs.ucla.edu>
19286
19287         Merges from coreutils, etc.
19288
19289         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
19290         using the latest version from cvs.  This avoids problems with #line
19291         directives using a vendor (Sun) compiler.
19292         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
19293         Don't set GETGROUPS_LIB here; now it's
19294         done via getgroups.m4's wrapper function.
19295         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
19296         rather than just in sh-util/configure.in, so that the
19297         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
19298         same.
19299         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
19300         AC_FUNC_GETLOADAVG where to find getloadavg.c.
19301         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
19302         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
19303         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
19304         Remove code that is now done by the newly-required macros.
19305         Append $(EXEEXT) to DF_PROG.
19306         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
19307         Do not invoke or require the following here,
19308         since prereq.m4 or some gnulib .m4 now does this for us:
19309         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
19310         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
19311         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
19312         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
19313         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
19314         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
19315         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
19316         AC_FUNC_OBSTACK.
19317         Do not replace the following functions, as this is now the job
19318         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
19319         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
19320         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
19321         atexit getpass, strdup, getpagesize.
19322         Replace 'raise'.
19323         Do not check for the following functions, as this is now the job
19324         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
19325         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
19326         setregid.
19327         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
19328         Check for sys/sysctl.h.
19329         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
19330         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
19331         of checking for ssize_t ourselves.
19332
19333         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
19334         Require every macro that gnulib/modules/* suggests for us.
19335         (jm_PREREQ_ADDEXT): New macro.
19336         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
19337         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
19338
19339         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
19340         (gl_PHYSMEM): Use it.
19341         Also check for `table' function.
19342         Check for new headers and functions.
19343         Add check for sys/sysmp.h.
19344         With suggestions from Kaveh Ghazi.
19345         Ignore headers that are present but cannot be compiled.  This
19346         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
19347         C 5.4.
19348
19349 2003-08-15  Paul Eggert  <eggert@twinsun.com>
19350
19351         Document merge from coreutils.
19352         * modules/userspec: Depend on posixver.
19353         * modules/strftime: Depend on tzset.
19354
19355 2003-08-15  Paul Eggert  <eggert@twinsun.com>
19356
19357         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
19358         rather than tab, after '#' in shell-script copyright notices.
19359         Suggested by Bruno Haible.
19360
19361 2003-08-15  Paul Eggert  <eggert@twinsun.com>
19362
19363         * config/srclist-update: Use three spaces, rather than tab, after '#'
19364         in shell-script copyright notices.  Suggested by Bruno Haible.
19365         Remove unnecessary parenthesization in regular expression.
19366
19367 2003-08-15  Jim Meyering  <jim@meyering.net>
19368
19369         Merge from coreutils.
19370         * lib/xgethostname.c: Include <stdlib.h>.
19371         (xghostname): Don't exit for anything other than memory-related
19372         failure; just return NULL.
19373         * lib/userspec.c: Include "posixver.h".
19374         (parse_user_spec): Accept `.' as a separator only
19375         in pre-POSIX-200112 mode.
19376         * lib/strtoimax.c: Use #elif rather than #else #if.
19377         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
19378         Remove function, now that we can rely on a working tzset function.
19379         [!_LIBC]: Ensure that the required autoconf test has been run.
19380         [!defined _NL_CURRENT && HAVE_STRFTIME]:
19381         Use underlying_strftime for %r.
19382         * lib/sha.c: Merge in some clean-up and optimization changes from
19383         glibc.
19384         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
19385         Ensure that it is a multiple of 64.
19386         Rearrange loop exit tests so as to avoid performing an
19387         additional fread after encountering an error or EOF.
19388         * lib/realloc.c: Update copyright date.
19389
19390 2003-08-15  Jim Meyering  <jim@meyering.net>
19391         and Paul Eggert  <eggert@twinsun.com>
19392
19393         Merge from coreutils.
19394         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
19395         member but strut utmpx does not.  Needed for AIX 4.3.3.
19396         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
19397
19398 2003-08-15  Jim Meyering  <jim@meyering.net>
19399         and Paul Eggert  <eggert@cs.ucla.edu>
19400
19401         Merges from coreutils, etc.
19402         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
19403         Require gl_FUNC_TZSET_CLOBBER.
19404         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
19405         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
19406         members.
19407
19408 2003-08-14  Paul Eggert  <eggert@twinsun.com>
19409
19410         Help the merge from coreutils.
19411         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
19412         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
19413         * m4/tzset.m4: Use it too.
19414
19415 2003-08-14  Paul Eggert  <eggert@twinsun.com>
19416
19417         * modules/tzset: New file.
19418
19419 2003-08-14  Jim Meyering  <jim@meyering.net>
19420
19421         Merges from coreutils.
19422         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
19423         variable names, rather than @FNMATCH_H@.
19424         * modules/alloca: Likewise for $(ALLOCA_H).
19425
19426         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
19427         the three copies of the literal target, `fnmatch.h'.
19428         * modules/alloca (alloca.h): Likewise.
19429
19430 2003-08-14  Jim Meyering  <jim@meyering.net>
19431
19432         Merge from coreutils.
19433         * m4/tzset.m4: New file.
19434         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
19435         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
19436         otherwise, AIX 5.1 systems would end up using the latter.
19437         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
19438         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
19439         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
19440         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
19441
19442 2003-08-14  Jim Meyering  <jim@meyering.net>
19443
19444         Merge from coreutils.
19445         * lib/obstack.h: Whitespace changes.
19446         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
19447         and xcalloc return values.
19448         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
19449         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
19450         hang on OSF/1 5.1 for DIR on both local and remote file systems.
19451         Reported by (and fix confirmed by) Nelson H. F. Beebe.
19452         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
19453         error from mntctl.
19454         Use mntctl's return value to drive the entry-processing loop, since
19455         we can't rely on the value of the vmt_length member in the last
19456         entry.  On some systems doing so could result in exhausting
19457         virtual memory.  Based in part on a patch from Mike Jetzer.
19458
19459 2003-08-14  Jim Meyering  <jim@meyering.net>
19460         and Paul Eggert  <eggert@twinsun.com>
19461
19462         Merges from coreutils, plus other fixes.
19463         * lib/physmem.c: Merge in portability changes from gcc/libiberty
19464         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
19465         for credits and details.  Thanks to Kaveh Ghazi for helping
19466         to keep these files in sync.
19467         (ARRAY_SIZE): Define it.
19468         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
19469         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
19470         (memcasecmp): Don't assume size_t fits in unsigned int.
19471         Remove casts and duplicate code.
19472         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
19473         (memcpy): Remove definition.
19474         Merge in some clean-up and optimization changes from glibc.
19475         [BLOCKSIZE]: Move definition to top of file.
19476         Ensure that it is a multiple of 64.
19477         Rearrange loop exit tests so as to avoid performing an
19478         additional fread after encountering an error or EOF.
19479         * lib/md5.h (md5_uintptr): Define.
19480         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
19481         return to the initial working directory.  Preserve errno
19482         for caller.
19483         * lib/idcache.c: Include "xalloc.h".
19484         (xmalloc, xrealloc): Remove decls.
19485         (getuser): Remove casts no longer required in C89.
19486         * lib/human.c: Include stdio.h, for sprintf.
19487         * lib/group-member.c: Include "xalloc.h".
19488         (xmalloc, xrealloc): Remove decls.
19489         (get_group_info): Remove casts no longer required in C89.
19490         * lib/getusershell.c (readname): Remove casts no longer required in
19491         C89.
19492         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
19493         * lib/getline.c: Whitespace fix, from coreutils.
19494
19495 2003-08-13  Paul Eggert  <eggert@twinsun.com>
19496
19497         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
19498         Check for isascii.
19499
19500         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
19501         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
19502         Undo previous (whitespace-only) change.
19503
19504 2003-08-13  Paul Eggert  <eggert@twinsun.com>
19505
19506         * lib/exclude.c: Include <ctype.h>
19507         (IN_CTYPE_DOMAIN): New macro.
19508         (is_space): New fn.
19509         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
19510         and empty lines.
19511
19512         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
19513         Undo previous (whitespace-only) change.
19514
19515 2003-08-13  Paul Eggert  <eggert@twinsun.com>
19516
19517         * config/srclist-update: Change update back to the old behavior,
19518         leaving whitespace alone.  Use one 'sed' command rather than a
19519         pipeline.
19520         (fixlicense): Now a variable, not a function.
19521         (remove_trailing_blanks): Remove.
19522         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
19523         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
19524         Undo previous (whitespace-only) change.
19525
19526 2003-08-12  Paul Eggert  <eggert@twinsun.com>
19527
19528         Merge from coreutils.
19529         * modules/euidaccess: Add lib_SOURCES, include for new
19530         file euidaccess.h
19531
19532 2003-08-12  Paul Eggert  <eggert@twinsun.com>
19533
19534         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
19535         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
19536         Normalize leading white space and remove trailing white space.
19537
19538         Merge from coreutils
19539         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
19540
19541         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
19542         0.12.1.  These files are now being upgraded automatically by
19543         ../config/srclist-update.
19544
19545 2003-08-12  Paul Eggert  <eggert@twinsun.com>
19546
19547         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
19548         Normalize leading white space and remove trailing white space.
19549         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
19550         notice, as per ../config/srclist-update.
19551
19552         Merge from coreutils.
19553         * lib/euidaccess.h: New file.
19554         * lib/euidaccess.c: Include it.
19555         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
19556         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
19557         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
19558
19559 2003-08-12  Paul Eggert  <eggert@twinsun.com>
19560
19561         * config/srclist-update: Add copyright notice.
19562         (remove_id_lines, remove_trailing_blanks): New constants.
19563         (fixfile): Use them to normalize spacing a bit in copied files.
19564         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
19565         Normalize leading white space and remove trailing white space.
19566
19567         * config/texinfo.tex: Sync with texinfo.
19568
19569         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
19570         strtoul.c from libc, to merge coreutils whitespace changes.
19571
19572         * config/srclist.txt: Get the following m4 files from gettext:
19573         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
19574         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
19575         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
19576         wint_t.m4.
19577
19578 2003-08-12  Karl Berry  <karl@gnu.org>
19579
19580         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
19581         been made.
19582
19583 2003-08-11  Paul Eggert  <eggert@twinsun.com>
19584
19585         * modules/gnu-source, m4/gnu-source.m4:
19586         Remove; we're assuming Autoconf 2.54 or later now.
19587         Suggested by Bruno Haible.
19588         * MODULES.html.sh (func_all_modules): Remove gnu-source.
19589
19590 2003-08-11  Bruno Haible  <bruno@clisp.org>
19591
19592         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
19593
19594 2003-08-11  Bruno Haible  <bruno@clisp.org>
19595
19596         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
19597         (vasnprintf): Use it instead of wcslen.
19598
19599 2003-08-11  Bruno Haible  <bruno@clisp.org>
19600
19601         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
19602         value to ensure that _Bool promotes to int. Use #define for _Bool when
19603         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
19604
19605 2003-08-10  Karl Berry  <karl@gnu.org>
19606
19607         * lib/regex.h: update from libc (whitespace fix).
19608
19609 2003-08-09  Paul Eggert  <eggert@twinsun.com>
19610
19611         Merge some files from coreutils.  These changes were
19612         originally made by Jim Meyering.
19613         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
19614         many older Unixes require this.
19615         * lib/alloca.c (alloca): Remove cast to argument of free;
19616         no longer needed in C89.
19617         * lib/alloca_.h, regex.h: Fix white space to match
19618         what GNU indent does.
19619
19620 2003-08-09  Paul Eggert  <eggert@twinsun.com>
19621
19622         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
19623         apparently Emacs's Unicode mode got confused before my 2003-08-05
19624         checkin.
19625
19626 2003-08-08  Paul Eggert  <eggert@twinsun.com>
19627
19628         * m4/extensions.m4: New file.
19629         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
19630         Require gl_USE_SYSTEM_EXTENSIONS.
19631         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
19632         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
19633
19634 2003-08-08  Paul Eggert  <eggert@twinsun.com>
19635
19636         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
19637         * modules/extensions, modules/gnu-source: New files.
19638         * modules/timespec, modules/unlocked-io: Depend on extensions.
19639
19640 2003-08-07  Paul Eggert  <eggert@twinsun.com>
19641
19642         * modules/restrict: New file.
19643         * MODULES.html.sh (func_all_modules): Add restrict.
19644         * modules/regex: Depend on restrict.
19645
19646 2003-08-07  Paul Eggert  <eggert@twinsun.com>
19647
19648         * m4/restrict.m4: New file.
19649         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
19650
19651 2003-08-07  Bruno Haible  <bruno@clisp.org>
19652
19653         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
19654         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
19655
19656 2003-08-07  Bruno Haible  <bruno@clisp.org>
19657
19658         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
19659         makes the module 'getndelim2' compatible with the module 'getline'.
19660
19661 2003-08-05  Paul Eggert  <eggert@twinsun.com>
19662
19663         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
19664         byte with "\201" to avoid glitches when editing that source file
19665         with multi-gnome-terminal.
19666
19667 2003-08-05  Paul Eggert  <eggert@twinsun.com>
19668
19669         * lib/bumpalloc.h: Remove.
19670
19671 2003-08-05  Paul Eggert  <eggert@twinsun.com>
19672
19673         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
19674         * modules/bumpalloc: Remove.
19675
19676 2003-08-04  Paul Eggert  <eggert@twinsun.com>
19677
19678         * lib/getloadavg.c: Change copyright notice and spacing to conform to
19679         GNU coding style.
19680
19681         Merge from coreutils.
19682         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
19683         1. From glibc.
19684         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
19685         from Karl Berry, implemented by Jim Meyering.
19686         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
19687         from Dmitry V. Levin.
19688         Remove anachronistic cast of xrealloc.
19689         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
19690         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
19691         type. Otherwise, it wouldn't compile with at least /bin/cc on
19692         ymp-cray-unicos9.0.2.X.
19693         Combine two mostly-identical uses of alloca into one.
19694         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
19695
19696 2003-08-04  Dave Love  <d.love@dl.ac.uk>
19697
19698         [From Emacs.]
19699
19700         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
19701         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
19702         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
19703         obsolete NLIST_NAME_UNION.
19704         [__GNU__]: Undef BSD and FSCALE.
19705         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
19706
19707 2003-08-03  Paul Eggert  <eggert@twinsun.com>
19708
19709         * lib/stdbool_.h (_Bool): Make it signed char, instead of
19710         an enum type, so that it's guaranteed to promote to int.  See:
19711         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
19712
19713 2003-08-03  Karl Berry  <karl@gnu.org>
19714
19715         * config/depcomp: update from automake.
19716
19717 2003-07-31  Paul Eggert  <eggert@twinsun.com>
19718
19719         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
19720         (strerror): Don't assume that a printable int fits in 14 bytes.
19721
19722 2003-07-31  Bruno Haible  <bruno@clisp.org>
19723
19724         * modules/getpass-gnu: New file.
19725         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
19726
19727 2003-07-31  Bruno Haible  <bruno@clisp.org>
19728
19729         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
19730
19731 2003-07-24  Karl Berry  <karl@gnu.org>
19732
19733         * config/missing: update from automake.
19734
19735 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
19736             Bruno Haible  <bruno@clisp.org>
19737
19738         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
19739         * lib/getline.c (getline, getdelim): Likewise.
19740         Remove _GNU_SOURCE define; now it's defined in config.h through
19741         m4/getline.m4.
19742
19743 2003-07-23  Karl Berry  <karl@gnu.org>
19744
19745         * config/config.sub: update from prep.
19746
19747 2003-07-22  Paul Eggert  <eggert@twinsun.com>
19748
19749         * modules/xalloc (Depends-on): Add exitfail.
19750         * modules/xmemcoll: Likewise.
19751
19752 2003-07-22  Paul Eggert  <eggert@twinsun.com>
19753
19754         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
19755         over-parenthesization in macros.
19756
19757         Sync with coreutils.
19758
19759         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
19760         required by C99.
19761
19762         Use `exit_failure' for xalloc and xmemcoll instead of their own
19763         private exit-failure variables.
19764         * lib/xalloc.h (xalloc_exit_failure): Remove.
19765         * lib/xmalloc.c: Likewise.  Include exitfail.h.
19766         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
19767         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
19768         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
19769         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
19770
19771 2003-07-20  Jim Meyering  <jim@meyering.net>
19772
19773         * modules/closeout (Depends-on): Add exitfail.
19774         Suggestion from Bruno Haible.
19775
19776 2003-07-19  Karl Berry  <karl@gnu.org>
19777
19778         * config/config.sub: update from prep.
19779
19780 2003-07-18  Paul Eggert  <eggert@twinsun.com>
19781
19782         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
19783         Remove.
19784         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
19785         to test that it can stand by itself.  Include "exitfail.h".
19786         Clients should set exit_failure instead.
19787         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
19788
19789 2003-07-18  Bruno Haible  <bruno@clisp.org>
19790
19791         * modules/getndelim2: New file.
19792         * modules/getline: Share files with module getndelim2.
19793         * modules/getnline: Depend on getndelim2 instead of sharing files with
19794         it. Add getnline.c to lib_SOURCES.
19795         * MODULES.html.sh (func_all_modules): Add getndelim2.
19796
19797 2003-07-18  Bruno Haible  <bruno@clisp.org>
19798
19799         * m4/getndelim2.m4: New file.
19800         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
19801         invoke gl_PREREQ_GETNDELIM2.
19802         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
19803         gl_PREREQ_GETNDELIM2.
19804         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
19805         gl_GETNDELIM2.
19806
19807 2003-07-18  Bruno Haible  <bruno@clisp.org>
19808
19809         * lib/getndelim2.h: New file.
19810         * lib/getndelim2.c: Make into a module of its own. Include config.h,
19811         getndelim2.h.
19812         (getndelim2): Make non-static. Change return type to ssize_t.
19813         * lib/getline.h: Change argument names.
19814         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
19815         * lib/getnline.c: Include getndelim2.h.
19816
19817 2003-07-18  Andreas Schwab  <schwab@suse.de>
19818
19819         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
19820
19821 2003-07-17  Karl Berry  <karl@gnu.org>
19822
19823         * config/config.sub: update from prep.
19824
19825 2003-07-17  Bruno Haible  <bruno@clisp.org>
19826
19827         * modules/getnline: New file.
19828         * modules/getline: Add lib/getndelim2.c to source file list.
19829         * MODULES.html.sh (func_all_modules): Add getnline.
19830
19831 2003-07-17  Bruno Haible  <bruno@clisp.org>
19832
19833         * m4/getnline.m4: New file.
19834
19835 2003-07-17  Bruno Haible  <bruno@clisp.org>
19836
19837         * m4/Makefile.am.in: Remove file.
19838         * m4/Makefile.am: Remove file.
19839         * m4/Makefile.in: Remove file.
19840
19841 2003-07-17  Bruno Haible  <bruno@clisp.org>
19842
19843         * lib/getnline.h: New file.
19844         * lib/getnline.c: New file.
19845         * lib/getndelim2.c: New file, extracted from getline.c.
19846         (getndelim2): Renamed from getdelim2, with added nmax argument.
19847         * lib/getline.c: Include getndelim2.c.
19848         (getdelim2): Moved out to getndelim2.c.
19849         (getline, getdelim): Update.
19850
19851 2003-07-17  Bruno Haible  <bruno@clisp.org>
19852
19853         * lib/Makefile.am: Remove file.
19854         * lib/Makefile.in: Remove file.
19855
19856 2003-07-17  Bruno Haible  <bruno@clisp.org>
19857
19858         * configure.in: Remove file.
19859         * Makefile.in: Remove file.
19860
19861 2003-07-17  Bruno Haible  <bruno@clisp.org>
19862
19863         * MODULES.html.sh: Put the </BODY> right before </HTML>.
19864
19865 2003-07-16  Karl Berry  <karl@gnu.org>
19866
19867         * config/srclist-update: was running fixlicense twice, which caused
19868                 texinfo.tex to be nullified for some reason.  Simplify,
19869                 $gplsrc is no longer needed as far as I can see?
19870
19871 2003-07-16  Jim Meyering  <jim@meyering.net>
19872
19873         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
19874
19875 2003-07-15  Paul Eggert  <eggert@twinsun.com>
19876
19877         * config/srclist.txt: Get the following files from gettext-runtime/intl
19878         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
19879         ref-del.sin.  From Bruno Haible.
19880         * config/srclist-update (fixfile): Change grep pattern again, since the
19881         previous fix didn't work (there was another trailing $).  Use
19882         '[$]' to escape the $s.
19883
19884 2003-07-15  Karl Berry  <karl@gnu.org>
19885
19886         * lib/vasnprintf.c: update from gettext.
19887
19888 2003-07-15  Karl Berry  <karl@gnu.org>
19889
19890         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
19891         gets expanded when surrounded by '$'.
19892
19893 2003-07-15  Jim Meyering  <jim@meyering.net>
19894
19895         * modules/save-cwd: Don't depend on error.  From Derek Price.
19896
19897 2003-07-15  Jim Meyering  <jim@meyering.net>
19898
19899         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
19900
19901 2003-07-14  Simon Josefsson  <jas@extundo.com>
19902
19903         * modules/mempcpy: New file.
19904         * MODULES.html.sh (func_all_modules): Add mempcpy.
19905
19906 2003-07-14  Simon Josefsson  <jas@extundo.com>
19907
19908         * m4/mempcpy.m4: New file.
19909
19910 2003-07-14  Simon Josefsson  <jas@extundo.com>
19911
19912         * lib/mempcpy.h: New file.
19913         * lib/mempcpy.c: New file.
19914
19915 2003-07-14  Paul Eggert  <eggert@twinsun.com>
19916
19917         * modules/getdate, modules/posixtm: Depend on mktime.
19918
19919 2003-07-14  Paul Eggert  <eggert@twinsun.com>
19920
19921         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
19922         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
19923         unicodeio.c, unicodeio.h, unlocked-io.h:
19924         Switch from LGPL to GPL.
19925
19926 2003-07-14  Paul Eggert  <eggert@twinsun.com>
19927
19928         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
19929         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
19930         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
19931         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
19932         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
19933         updated automatically by ../config/srclist-update.  This changes
19934         their license from LPGL to GPL.
19935
19936 2003-07-14  Paul Eggert  <eggert@twinsun.com>
19937
19938         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
19939         assumed to refer to the root of the most recent stable gettext version.
19940         * config/srclistvars.sh: Add defaults for eggert.
19941         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
19942         Match "This program" as well as "The program".  This is needed
19943         for gettext.
19944
19945 2003-07-14  Jim Meyering  <jim@meyering.net>
19946
19947         Don't emit diagnostics.  Let callers do that.
19948         * lib/save-cwd.c: Don't include "error.h".
19949         (save_cwd): Don't call error.  Ensure that errno is valid
19950         when returning nonzero.
19951
19952         * lib/save-cwd.h (restore_cwd): Update prototype.
19953         * lib/save-cwd.c (restore_cwd): Remove two parameters.
19954         Simplify.  Don't call error upon failure.  Let callers do that.
19955         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
19956         when auditing is enabled.  But don't bother updating the #if.
19957
19958 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
19959
19960         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
19961         it breaks C++ compilation.
19962         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
19963
19964 2003-07-10  Simon Josefsson  <jas@extundo.com>
19965
19966         * modules/strchrnul (Makefile.am): Add strchrnul.h.
19967
19968 2003-07-10  Jim Meyering  <jim@meyering.net>
19969
19970         * m4/clock_time.m4: Remove trailing blank.
19971         * m4/intmax_t.m4: Likewise.
19972
19973 2003-07-10  Jim Meyering  <jim@meyering.net>
19974
19975         * lib/vasnprintf.c: Remove trailing blanks.
19976         Make cpp indentation consistent.
19977
19978 2003-07-09  Paul Eggert  <eggert@twinsun.com>
19979
19980         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
19981         posixver.c, strftime.c, strnlen.c, strverscmp.c:
19982         Switch from LGPL to GPL.
19983
19984 2003-07-09  Paul Eggert  <eggert@twinsun.com>
19985
19986         * config/srclist.txt: Sort sublists.  Add
19987         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
19988         that differ from gnulib for one reason or another; we'd like this list
19989         to be smaller but for now let's document what we have.
19990
19991 2003-07-08  Paul Eggert  <eggert@twinsun.com>
19992
19993         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
19994         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
19995         and sweeter "eval x=$x".
19996         * config/srclist.txt: Get lib/argp* from glibc.
19997
19998 2003-07-07  Paul Eggert  <eggert@twinsun.com>
19999
20000         * lib/mktime.c: Fix some boundary cases and remove need for floating
20001         point.
20002
20003         Issue a compile-time diagnostic if time_t is floating point, or if
20004         two's complement arithmetic is not in effect, or if arithmetic
20005         right shift does not propagate the sign.  These assumptions were
20006         all in the original code but they weren't checked.
20007
20008         (TIME_T_MIDPOINT, verify): New macros.
20009         (__isleap): Remove; it has integer overflow problems.
20010         (leapyear): New function, without those problems.
20011         (ydhms_tm_diff): Remove; splitting into two parts.
20012         (ydhms_diff): New function, containing the arithmetic part of
20013         the old ydhms_tm_diff function.  Issue a compile-time
20014         diagnostic if we are not using C99 integer division.
20015         Avoid casts when possible.
20016         (guess_time_tm): New function, containing the checking part of
20017         the old ydhms_tm_diff function.  Return the new value, rather than
20018         the difference between it and the old.  Accept a new argument T
20019         so that *T specifies the old value.  Check for overflow in the result.
20020
20021         (__mktime_internal): Use a time_t offset, not a long int offset.
20022         This undoes the 2003-06-04 change, which is no longer needed now
20023         that we have better overflow checking.
20024         (localtime_offset): Likewise.
20025
20026         (__mktime_internal): Avoid harmful overflow on hosts where time_t
20027         and long are 64-bit but int is only 32-bit.
20028         (ydhms_diff): Use long int to store year1 and yday1.
20029         Issue a compile-time diagnostic if long int is not wide enough.
20030
20031         (__mktime_internal): Use long int to store adjusted year and yday.
20032         Use plain C rather than preprocessor commands, if that doesn't
20033         affect efficiency.
20034         Check for overflow (and try to repair) after each probe
20035         rather than checking only at the very end.  This avoids some bugs
20036         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
20037         does not equal GMT offset at maximum time).
20038         Use integer to check for overflow rather than floating point; this
20039         is more portable to non-IEEE hosts, and is a tad faster.
20040         When we detect that we are oscillating between two values,
20041         don't check whether tm_isdst has the requested value, since
20042         we already know the answer.  When tm_isdst has the wrong value,
20043         use a different heuristic to find the right one, based on the
20044         extreme values actually observed in practice in tz2003a,
20045         rather than the (overly optimistic) "previous 3 calendar quarters".
20046
20047         (not_equal_tm, print_tm, check_result): Use "const T" rather than
20048         "T const" to accommodate glibc style.
20049         (check_result): Use less-confusing report format.  "long" -> "long int.
20050         (main): Likewise.
20051         Don't loop if the iteration overflows time_t.
20052         Allow a negative step in the iteration.
20053
20054 2003-07-06  Karl Berry  <karl@gnu.org>
20055
20056         * config/depcomp: update from automake.
20057         * config/config.sub: update from prep.
20058
20059 2003-07-03  Karl Berry  <karl@gnu.org>
20060
20061         * config/config.guess: update from prep.
20062
20063 2003-07-01  Paul Eggert  <eggert@twinsun.com>
20064
20065         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
20066         xreadlink.c now includes it unconditionally.
20067
20068 2003-07-01  Paul Eggert  <eggert@twinsun.com>
20069
20070         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
20071         having it depend on HAVE_SYS_TYPES_H.
20072
20073 2003-07-01  Bruno Haible  <bruno@clisp.org>
20074
20075         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
20076         <sys/types.h> should be sufficient.
20077         Reported by Paul Eggert.
20078
20079 2003-06-26  Karl Berry  <karl@gnu.org>
20080
20081         * config/depcomp: update from automake.
20082
20083 2003-06-26  Bruno Haible  <bruno@clisp.org>
20084
20085         * modules/human: Depend on module stdbool.
20086
20087 2003-06-25  Bruno Haible  <bruno@clisp.org>
20088
20089         * modules/readlink: New file.
20090         * modules/xreadlink: Depend on it.
20091         * MODULES.html.sh (func_all_modules): Add readlink.
20092
20093 2003-06-25  Bruno Haible  <bruno@clisp.org>
20094
20095         * m4/readlink.m4: New file.
20096
20097 2003-06-25  Bruno Haible  <bruno@clisp.org>
20098
20099         * lib/readlink.c: New file.
20100
20101 2003-06-22  Karl Berry  <karl@gnu.org>
20102
20103         * config/srclist.txt: update mkinstalldirs from automake.
20104         * config/mkinstalldirs: update.
20105
20106 2003-06-22  Bruno Haible  <bruno@clisp.org>
20107
20108         Portability to mingw32.
20109         * m4/ssize_t.m4: New file, from GNU gettext.
20110         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
20111         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
20112
20113 2003-06-22  Bruno Haible  <bruno@clisp.org>
20114
20115         * modules/safe-read: Add m4/ssize_t.m4.
20116         * modules/xreadlink: Add m4/ssize_t.m4.
20117
20118 2003-06-20  Bruno Haible  <bruno@clisp.org>
20119
20120         Assume C89, so PARAMS isn't needed.
20121         * lib/unicodeio.h (PARAMS): Remove.
20122         * lib/unicodeio.c: Don't use PARAMS.
20123
20124 2003-06-18  Karl Berry  <karl@gnu.org>
20125
20126         * config/config.{guess,sub}: update from prep.
20127
20128 2003-06-18  Jim Meyering  <jim@meyering.net>
20129
20130         Merge changes from coreutils.
20131         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
20132         Remove explicit declarations of xmalloc and realloc.
20133         Include xalloc.h.
20134         (read_utmp): Remove anachronistic cast of xmalloc.
20135
20136 2003-06-17  Paul Eggert  <eggert@twinsun.com>
20137
20138         Assume C89, so PARAMS isn't needed.
20139         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
20140         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
20141         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
20142         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
20143         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
20144         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
20145         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
20146         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
20147         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
20148         lib/xstrtod.h, lib/xstrtol.h: Likewise.
20149         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
20150         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
20151         no longer needed. Anyway, config.h should always be included before any
20152         other file.
20153
20154 2003-06-11  Simon Josefsson  <jas@extundo.com>
20155
20156         * modules/sysexits: New file.
20157         * MODULES.html.sh (func_all_modules): Add sysexits.
20158
20159 2003-06-11  Simon Josefsson  <jas@extundo.com>
20160
20161         * lib/sysexit_.h: New file.
20162
20163 2003-06-11  Derek Price  <derek@ximbiot.com>
20164
20165         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
20166         necessary.
20167
20168 2003-06-11  Bruno Haible  <bruno@clisp.org>
20169
20170         * m4/sysexits.m4: New file.
20171
20172 2003-06-10  Simon Josefsson  <jas@extundo.com>
20173
20174         * lib/argp.h: New file, from glibc.
20175         * lib/argp-ba.c: New file, from glibc.
20176         * lib/argp-eexst.c: New file, from glibc.
20177         * lib/argp-fmtstream.c: New file, from glibc.
20178         * lib/argp-fmtstream.h: New file, from glibc.
20179         * lib/argp-fs-xinl.c: New file, from glibc.
20180         * lib/argp-help.c: New file, from glibc.
20181         * lib/argp-namefrob.h: New file, from glibc.
20182         * lib/argp-parse.c: New file, from glibc.
20183         * lib/argp-pv.c: New file, from glibc.
20184         * lib/argp-pvh.c: New file, from glibc.
20185         * lib/argp-xinl.c: New file, from glibc.
20186
20187 2003-06-10  Simon Josefsson  <jas@extundo.com>
20188
20189         * modules/strchrnul: New file.
20190
20191 2003-06-10  Simon Josefsson  <jas@extundo.com>
20192
20193         * modules/argp: New file.
20194
20195 2003-06-10  Simon Josefsson  <jas@extundo.com>
20196
20197         * m4/strchrnul.m4: New file.
20198
20199 2003-06-10  Simon Josefsson  <jas@extundo.com>
20200
20201         * lib/strchrnul.h: New file.
20202         * lib/strchrnul.c: New file.
20203
20204 2003-06-10  Bruno Haible  <bruno@clisp.org>
20205
20206         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
20207
20208 2003-06-07  Karl Berry  <karl@gnu.org>
20209
20210         * config/config.{guess,sub}: update from prep.
20211
20212 2003-06-07  Jim Meyering  <jim@meyering.net>
20213
20214         * modules/strtod: Use $(...) notation, not @...@ for
20215         AC_REPLACE'd variables.
20216         * modules/localcharset: Likewise.
20217
20218 2003-06-07  Jim Meyering  <jim@meyering.net>
20219
20220         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
20221         in place of my name in the copyright comment.
20222         Remove definition and uses of __P.
20223
20224         From coreutils.
20225         * lib/stat.c: Don't declare xmalloc explicitly.
20226         Instead, include "xalloc.h".
20227         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
20228         xrealloc, and xcalloc return values.
20229         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
20230         Improve comment.
20231         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
20232
20233 2003-06-07  Bruno Haible  <bruno@clisp.org>
20234
20235         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
20236         avoid AC_CONFIG_LINKS.
20237         * modules/fnmatch (Makefile.am): Use explicit creation rule for
20238         fnmatch.h, to avoid AC_CONFIG_LINKS.
20239         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
20240
20241 2003-06-07  Bruno Haible  <bruno@clisp.org>
20242
20243         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
20244         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
20245         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
20246         directory.
20247         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
20248         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
20249         directory.
20250
20251 2003-06-06  Jim Meyering  <jim@meyering.net>
20252
20253         Merge from coreutils.
20254         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
20255         Consolidate declarations and initializations of *_base* locals.
20256
20257         Merge from coreutils.
20258         This avoids a core dump on systems without GNU putenv,
20259         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
20260         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
20261         (unsetenv): New static function, from GNU libc.
20262         (rpl_putenv): Use it.
20263
20264         * lib/modechange.c: Remove trailing blanks.
20265
20266         Merge from coreutils.
20267         * lib/fsusage.c: Remove declaration of statfs.
20268         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
20269
20270         * lib/posixtm.c: Include <stdbool.h> unconditionally.
20271
20272 2003-06-06  Jim Meyering  <jim@meyering.net>
20273
20274         * lib/stdbool_.h: Renamed from stdbool.h.in.
20275
20276 2003-06-06  Jim Meyering  <jim@meyering.net>
20277             Bruno Haible  <bruno@clisp.org>
20278
20279         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
20280         Adjust Makefile.am snippet not to redirect directly to target.
20281         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
20282
20283 2003-06-05  Paul Eggert  <eggert@twinsun.com>
20284
20285         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
20286         mismatch, look in future quarters as well as past.  This fixes a
20287         bug when processing fall-backwards gaps immediately after a long
20288         period of daylight-saving time.
20289
20290         * lib/mktime.c: Assume freestanding C89 or better.
20291         (HAVE_LIMITS_H): Remove.  Assume it's 1.
20292         (__P): Remove; not used.
20293         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
20294         (mktime, not_equal_tm, print_tm, check_result,
20295         main): Use prototypes.  Use const * where appropriate.
20296         (main): Fix typo in testing code that uncovered by above changes.
20297         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
20298
20299 2003-06-04  Paul Eggert  <eggert@twinsun.com>
20300
20301         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
20302         locale.h, localeconv.  This merges changes from coreutils.
20303
20304         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
20305         It can be removed after the next Autoconf is released.
20306         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
20307         needed.
20308
20309 2003-06-04  Paul Eggert  <eggert@twinsun.com>
20310
20311         * lib/mktime.c: Fix Debian bug 177940
20312         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
20313         (localtime_offset): Now long int, not time_t, because we want it
20314         to be guaranteed to be signed.  All uses changed.
20315         (__mktime_internal): If overflow would occur when adding offset,
20316         don't add it.
20317
20318         Merge 'human' changes from coreutils.  Rewrite to support
20319         locale-specific notations like thousands separators.
20320         * lib/human.c: Simplify authorship notice.
20321         Include human.h immediately after config.h.
20322         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
20323         <limits.h>: Do not include, since human.h does.
20324         (SIZE_MAX, UINTMAX_MAX): New macros.
20325         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
20326         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
20327         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
20328         (power_letter): Renamed from suffixes.
20329         (generate_suffix_backwards): Remove.
20330         (adjust_value): Now takes int style (because of human.h changes)
20331         and long double value (for greater precision on some platforms).
20332         (group_number): New function.
20333         (human_readable): Use it.  Use integer options, not enum.
20334         Put the options before the sizes in the arg list.
20335         Support all the new options.
20336         The old human_readable function has been removed;
20337         use inttostr.h instead.
20338         (human_readable, default_block_size, humblock):
20339         Use uintmax_t, not int, for block sizes.
20340         (human_readable_inexact, block_size_types): Remove.
20341         (block_size_opts): New constant.
20342         (human_options): Renamed from human_block_size, with new signature
20343         that allows block sizes up to UINTMAX_MAX.  All callers changed.
20344         * lib/human.h: Add copyright and authorship notice.
20345         Include <limits.h> and <stdbool.h> unconditionally.
20346         (PARAMS): Remove.  All uses removed.
20347         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
20348         (enum human_inexact_style): Remove tag; now a nameless enum.
20349         (human_floor, human_ceiling, human_round_to_even): Now have
20350         values 2, 0, 1 rather than -1, 1, 0.
20351         (human_group_digits, human_suppress_point_zero, human_autoscale,
20352         human_base_1024, human_SI, human_B): New constants.
20353         (human_readable_inexact, human_block_size): Remove.
20354         (human_readable): Size args are now uintmax_t, not int.
20355         (human_options): New decl.
20356
20357         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
20358         unnecessary now that we assume C89 or better.  This change
20359         imported from coreutils.
20360
20361         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
20362         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
20363         in the 2003-05-30 sync from glibc.
20364
20365         .h files should stand alone, but we shouldn't include <sys/types.h>
20366         if we can get away with just <stddef.h>.
20367
20368         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
20369         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
20370         rather than <sys/types.h>, as we merely need size_t.
20371         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
20372         to get size_t.
20373         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
20374         Include <stdio.h>, to get FILE.
20375         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
20376         memcasecmp.h has included <stddef.h> and all we need is size_t.
20377         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
20378         our interface, instead of including <sys/types.h>
20379
20380 2003-06-04  Paul Eggert  <eggert@twinsun.com>
20381
20382         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
20383         now, as glibc mktime is buggy on non-glibc systems.
20384
20385 2003-06-03  Karl Berry  <karl@gnu.org>
20386
20387         * config/config.sub: update from prep.
20388
20389 2003-06-02  Paul Eggert  <eggert@twinsun.com>
20390
20391         [from coreutils]
20392         Fix some minor time-related bugs with POSIX time arguments.
20393         Some valid time stamps were being rejected (notably -1, and
20394         time stamps before 1900 on 64-bit hosts).  And some invalid
20395         time stamps were being accepted, e.g. September 31.
20396
20397         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
20398         that we can return (time_t) -1 successfully.
20399         * lib/posixtm.c: Likewise.
20400         [HAVE_STDBOOL_H]: Include <stdbool.h>.
20401         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
20402         (t): Remove static var.
20403         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
20404         of static var.  All uses changed.
20405         (year): Do not reject years before 1900; they can occur with
20406         64-bit time_t.
20407         (posix_time_parse): Do not check for out-of-range components;
20408         that is now the caller's responsibility, since our checks were
20409         only approximations.
20410         (posixtime): Use mktime to check for out-of-range components,
20411         since it knows them exactly.
20412         If mktime returns (time_t) -1, check whether an error actually occurred
20413         by invoking localtime on -1.
20414         (main) [TEST_POSIXTIME]: Check for input data errors, and report
20415         posixtime failures better.
20416         Improve the test data (in comments only).
20417
20418 2003-06-02  Karl Berry  <karl@gnu.org>
20419
20420         * config/mkinstalldirs (version): new variable.
20421         (--version): new option.
20422         (usage): improve message.
20423
20424 2003-05-30  Karl Berry  <karl@gnu.org>
20425
20426         * lib/mktime.c: update from libc.
20427
20428 2003-05-30  Bruno Haible  <bruno@clisp.org>
20429
20430         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
20431         * config/config.rpath: Upgrade to gettext-0.12.1.
20432
20433 2003-05-30  Bruno Haible  <bruno@clisp.org>
20434
20435         * m4/gettext.m4: Upgrade to gettext-0.12.1.
20436         * m4/nls.m4: New file, from gettext-0.12.1.
20437         * m4/po.m4: New file, from gettext-0.12.1.
20438         * m4/progtest.m4: Upgrade to gettext-0.12.1.
20439
20440 2003-05-30  Bruno Haible  <bruno@clisp.org>
20441
20442         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
20443         * lib/localcharset.h: Likewise.
20444         * lib/localcharset.c: Likewise.
20445
20446 2003-05-29  Karl Berry  <karl@gnu.org>
20447
20448         * config/config.rpath: update from gettext.
20449
20450 2003-05-28  Paul Eggert  <eggert@twinsun.com>
20451
20452         Assume the headers required for C89 freestanding compilers.
20453         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
20454         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
20455         * m4/human.m4 (gl_HUMAN): Likewise.
20456         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
20457         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
20458         * m4/userspec.m4 (gl_USERSPEC): Likewise.
20459         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
20460         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
20461         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
20462
20463 2003-05-28  Paul Eggert  <eggert@twinsun.com>
20464
20465         Assume the headers required for C89 freestanding compilers.
20466         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
20467         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
20468         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
20469         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
20470         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
20471         define, since <limits.h> is guaranteed to do that.
20472         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
20473         * lib/exclude.c: Include <stdbool.h> unconditionally.
20474         * lib/tempname.c: Include <stddef.h> unconditionally.
20475         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
20476         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
20477         <stddef.h> does that.
20478         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
20479         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
20480         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
20481         needed.
20482         * lib/xstrtol.c: Likewise.
20483         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
20484         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
20485
20486         * lib/addext.c (addext): Use assignment rather than cast, to avoid
20487         warnings on some platforms.
20488
20489         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
20490         arbitrarily.
20491
20492 2003-05-26  Jim Meyering  <jim@meyering.net>
20493
20494         Merge in a change from coreutils:
20495         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
20496         that is guaranteed to be `no'.  Use `no_such_member' to indicate
20497         that condition, rather than `-1' which is slightly misleading.
20498         Change the name of the cache variable to have the gl_ prefix.
20499         Prompted by a patch from Richard Dawe for DJGPP.
20500
20501 2003-05-24  Karl Berry  <karl@gnu.org>
20502
20503         * config/config.guess: update from prep.
20504
20505 2003-05-22  Karl Berry  <karl@gnu.org>
20506
20507         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
20508
20509 2003-05-20  Karl Berry  <karl@gnu.org>
20510
20511         * config/config.guess: update from prep.
20512
20513 2003-05-18  Karl Berry  <karl@gnu.org>
20514
20515         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
20516         might actually be set by the user.
20517
20518         * config/depcomp, install-sh, mdate-sh: update from automake.
20519
20520 2003-05-17  Bruno Haible  <bruno@clisp.org>
20521
20522         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
20523         invalid expansion for AC_EGREP_CPP.
20524         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
20525         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
20526         Suggested by Akim Demaille <akim@epita.fr> in
20527         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
20528
20529 2003-05-12  Jim Meyering  <jim@meyering.net>
20530
20531         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
20532         the space-padded-by-default conversion specifiers, %e, %k, %l.
20533
20534 2003-05-12  Bruno Haible  <bruno@clisp.org>
20535
20536         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
20537         the string is longer than 4 KB.
20538
20539 2003-05-11  Karl Berry  <karl@gnu.org>
20540
20541         * config/config.{guess,sub}: update from prep.
20542
20543 2003-05-09  Bruno Haible  <bruno@clisp.org>
20544
20545         * modules/error: Add m4/strerror_r.m4 to file list.
20546
20547 2003-05-03  Bruno Haible  <bruno@clisp.org>
20548
20549         Upgrade to Unicode-4.0.
20550         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
20551         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
20552         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
20553         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
20554         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
20555         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
20556         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
20557         Change width of U+E0100..U+E01EF from 1 to 0.
20558
20559 2003-04-25  Jim Meyering  <jim@meyering.net>
20560
20561         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
20562         of type size_t, not int.
20563
20564 2003-04-25  Bruno Haible  <bruno@clisp.org>
20565
20566         * lib/copy-file.c: Include <stddef.h>, for size_t.
20567
20568 2003-04-21  Paul Eggert  <eggert@twinsun.com>
20569
20570         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
20571         code which expansion is under static control.  Patch imported from
20572         Akim Demaille's patch to Bison; see
20573         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
20574
20575 2003-04-14  Bruno Haible  <bruno@clisp.org>
20576
20577         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
20578
20579 2003-04-11  Jim Meyering  <jim@meyering.net>
20580
20581         Merge changes from Coreutils.
20582
20583         2003-03-22  Jim Meyering  <jim@meyering.net>
20584
20585         * lib/strftime.c (widen): Cast alloca return value to proper type.
20586
20587         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
20588
20589         From GNU libc.
20590         * lib/strftime.c (my_strftime): Handle very large width
20591         specifications for numeric values correctly.  Improve checks for
20592         overflow.
20593
20594         2003-01-19  Jim Meyering  <jim@meyering.net>
20595
20596         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
20597         definitions.
20598         (nl_get_alt_digit) [! defined my_strftime]: Define.
20599         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
20600         _nl_get_alt_digit and _nl_get_walt_digit.
20601
20602         * lib/strftime.c (my_strftime): Merge in locale-related changes from
20603         libc. These changes have no effect outside of _LIBC.
20604
20605 2003-04-10  Bruno Haible  <bruno@clisp.org>
20606
20607         * modules/findprog: New file.
20608         * MODULES.html.sh (func_all_modules): Add it.
20609
20610 2003-04-10  Bruno Haible  <bruno@clisp.org>
20611
20612         * m4/findprog.m4: New file.
20613         * m4/eaccess.m4: New file.
20614
20615 2003-04-10  Bruno Haible  <bruno@clisp.org>
20616
20617         * lib/findprog.h: New file, from GNU gettext.
20618         * lib/findprog.c: New file, from GNU gettext.
20619
20620 2003-04-05  Jim Meyering  <jim@meyering.net>
20621
20622         Merge changes from Coreutils.
20623
20624         * lib/exclude.h (PARAMS): Remove definition and uses.
20625         * lib/exclude.c: Remove uses of `PARAMS'.
20626
20627         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
20628         Add test-cases for DOS filenames. Declare program_name.
20629         (main): Set up program_name.  Patch by Rich Dawe.
20630
20631         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
20632         error from mntctl.
20633         Use mntctl's return value to drive the entry-processing loop, since
20634         we can't rely on the value of the vmt_length member in the last
20635         entry.  On some systems doing so could result in exhausting
20636         virtual memory.  Based in part on a patch from Mike Jetzer.
20637
20638 2003-04-04  Bruno Haible  <bruno@clisp.org>
20639
20640         * modules/linebreak: New file.
20641         * MODULES.html.sh (func_all_modules): Add it.
20642
20643 2003-04-04  Bruno Haible  <bruno@clisp.org>
20644
20645         * m4/linebreak.m4: New file.
20646
20647 2003-04-04  Bruno Haible  <bruno@clisp.org>
20648
20649         * lib/linebreak.h: New file, from GNU gettext.
20650         * lib/linebreak.c: New file, from GNU gettext with slight
20651         modifications.
20652         * lib/lbrkprop.h: New file, from GNU gettext.
20653
20654 2003-04-03  Bruno Haible  <bruno@clisp.org>
20655
20656         * modules/utf8-ucs4: New file.
20657         * modules/utf16-ucs4: New file.
20658         * modules/ucs4-utf8: New file.
20659         * modules/ucs4-utf16: New file.
20660         * MODULES.html.sh (func_all_modules): Add them.
20661
20662 2003-04-03  Bruno Haible  <bruno@clisp.org>
20663
20664         * m4/utf-ucs4.m4: New file.
20665         * m4/ucs4-utf.m4: New file.
20666
20667 2003-04-03  Bruno Haible  <bruno@clisp.org>
20668
20669         * lib/utf8-ucs4.h: New file, from GNU gettext.
20670         * lib/utf16-ucs4.h: New file, from GNU gettext.
20671         * lib/ucs4-utf8.h: New file, from GNU gettext.
20672         * lib/ucs4-utf16.h: New file, from GNU gettext.
20673
20674 2003-04-02  Bruno Haible  <bruno@clisp.org>
20675
20676         * modules/binary-io: New file.
20677         * MODULES.html.sh (func_all_modules): Add it.
20678
20679 2003-04-02  Bruno Haible  <bruno@clisp.org>
20680
20681         * lib/binary-io.h: New file, from GNU gettext.
20682
20683 2003-04-01  Bruno Haible  <bruno@clisp.org>
20684
20685         * modules/pathname: New file.
20686         * MODULES.html.sh (func_all_modules): Add it.
20687
20688 2003-04-01  Bruno Haible  <bruno@clisp.org>
20689
20690         * lib/pathname.h: New file, from GNU gettext.
20691         * lib/concatpath.c: New file, from GNU gettext.
20692
20693 2003-03-30  Bruno Haible  <bruno@clisp.org>
20694
20695         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
20696
20697 2003-03-30  Bruno Haible  <bruno@clisp.org>
20698
20699         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
20700         function chown() doesn't exist.
20701
20702 2003-03-28  Bruno Haible  <bruno@clisp.org>
20703
20704         * modules/copy-file: New file.
20705         * MODULES.html.sh (func_all_modules): Add it.
20706
20707 2003-03-28  Bruno Haible  <bruno@clisp.org>
20708
20709         * m4/copy-file.m4: New file.
20710
20711 2003-03-28  Bruno Haible  <bruno@clisp.org>
20712
20713         * lib/copy-file.h: New file, from GNU gettext.
20714         * lib/copy-file.c: New file, from GNU gettext.
20715
20716 2003-03-18  Jim Meyering  <jim@meyering.net>
20717
20718         * lib/quote.c (quote_n): Fix typo in comment.
20719
20720 2003-03-18  Bruno Haible  <bruno@clisp.org>
20721
20722         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
20723         checking.
20724         * m4/onceonly_2_57.m4: Likewise.
20725
20726 2003-03-17  Bruno Haible  <bruno@clisp.org>
20727
20728         * m4/onceonly.m4: Require autoconf 2.54 or newer.
20729         (m4_quote): Remove macro.
20730         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
20731
20732 2003-03-14  Jim Meyering  <jim@meyering.net>
20733
20734         Merge changes from Coreutils.
20735         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
20736         to be const, in order to avoid warnings.
20737         (obstack_room): Likewise.
20738         (obstack_empty_p): Likewise.
20739
20740 2003-03-14  Bruno Haible  <bruno@clisp.org>
20741
20742         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
20743         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
20744
20745 2003-03-13  Paul Eggert  <eggert@twinsun.com>
20746
20747         Merge changes from Bison.
20748         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
20749         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
20750         when compiling Bison 1.875's `bitset bset = obstack_alloc
20751         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
20752         * lib/hash.c: Include <stdbool.h> unconditionally.
20753
20754 2003-03-13  Paul Eggert  <eggert@twinsun.com>
20755
20756         * m4/onceonly.m4 (m4_quote): New macro.
20757         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
20758         Quote AC_FOREACH variable-expansions properly.
20759
20760 2003-03-13  Paul Eggert  <eggert@twinsun.com>
20761
20762         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
20763
20764 2003-03-09  Paul Eggert  <eggert@twinsun.com>
20765
20766         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
20767         Reported by Bruce Becker; see:
20768         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
20769
20770 2003-03-03  Paul Eggert  <eggert@twinsun.com>
20771             Bruno Haible  <bruno@clisp.org>
20772
20773         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
20774         Reported by John Hughes, see
20775         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
20776
20777 2003-02-20  Bruno Haible  <bruno@clisp.org>
20778
20779         * MODULES.html.sh (func_all_modules): Add poll.
20780
20781 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
20782
20783         * modules/poll: New file.
20784
20785 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
20786
20787         * lib/poll_.h: New file.
20788         * lib/poll.c: New file.
20789
20790 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
20791
20792         * m4/poll.m4: New file.
20793
20794 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
20795
20796         * modules/mathl: New file.
20797
20798 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
20799
20800         * lib/mathl.h: New file.
20801         * lib/acosl.c: New file.
20802         * lib/asinl.c: New file.
20803         * lib/atanl.c: New file.
20804         * lib/ceill.c: New file.
20805         * lib/cosl.c: New file.
20806         * lib/expl.c: New file.
20807         * lib/floorl.c: New file.
20808         * lib/frexpl.c: New file.
20809         * lib/ldexpl.c: New file.
20810         * lib/logl.c: New file.
20811         * lib/sincosl.c: New file.
20812         * lib/sinl.c: New file.
20813         * lib/sqrtl.c: New file.
20814         * lib/tanl.c: New file.
20815         * lib/trigl.c: New file.
20816         * lib/trigl.h: New file.
20817
20818 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
20819
20820         * m4/mathl.m4: New file.
20821
20822 2003-02-18  Bruno Haible  <bruno@clisp.org>
20823
20824         * MODULES.html.sh (func_all_modules): Add mathl.
20825
20826 2003-02-17  Bruno Haible  <bruno@clisp.org>
20827
20828         * modules/mkdtemp: New module.
20829         * MODULES.html.sh (func_all_modules): Add it.
20830
20831 2003-02-17  Bruno Haible  <bruno@clisp.org>
20832
20833         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
20834
20835 2003-02-17  Bruno Haible  <bruno@clisp.org>
20836
20837         * lib/mkdtemp.h: New file, from GNU gettext.
20838         * lib/mkdtemp.c: New file, from GNU gettext.
20839
20840 2003-02-02  Jim Meyering  <jim@meyering.net>
20841
20842         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
20843         e.g. glibc-2.2.93.
20844
20845 2003-01-31  Bruno Haible  <bruno@clisp.org>
20846
20847         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
20848         'rpl_rename'.
20849         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
20850         'rpl_strnlen'.
20851         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
20852         'rpl_strtod'.
20853         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
20854         'rpl_utime'.
20855
20856 2003-01-31  Bruno Haible  <bruno@clisp.org>
20857
20858         * lib/rename.c: #undef rename before defining rpl_rename.
20859         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
20860
20861 2003-01-30  Bruno Haible  <bruno@clisp.org>
20862
20863         * modules/vasnprintf, modules/vasprintf: New modules.
20864         * MODULES.html.sh (func_all_modules): Add them.
20865
20866 2003-01-30  Bruno Haible  <bruno@clisp.org>
20867
20868         * m4/signed.m4: New file, from GNU gettext.
20869         * m4/longdouble.m4: New file, from GNU gettext.
20870         * m4/wchar_t.m4: New file, from GNU gettext.
20871         * m4/wint_t.m4: New file, from GNU gettext.
20872         * m4/vasnprintf.m4: New file.
20873         * m4/vasprintf.m4: New file.
20874
20875 2003-01-30  Bruno Haible  <bruno@clisp.org>
20876
20877         * lib/printf-args.h: New file, from GNU gettext.
20878         * lib/printf-args.c: New file, from GNU gettext.
20879         * lib/printf-parse.h: New file, from GNU gettext.
20880         * lib/printf-parse.c: New file, from GNU gettext.
20881         * lib/vasnprintf.h: New file, from GNU gettext.
20882         * lib/vasnprintf.c: New file, from GNU gettext.
20883         * lib/asnprintf.c: New file, from GNU gettext.
20884         * lib/vasprintf.h: New file, from GNU gettext with modifications.
20885         * lib/vasprintf.c: New file, from GNU gettext.
20886         * lib/asprintf.c: New file, from GNU gettext.
20887
20888 2003-01-29  Bruno Haible  <bruno@clisp.org>
20889
20890         * modules/stpncpy: New module.
20891         * MODULES.html.sh (func_all_modules): Add it.
20892
20893 2003-01-29  Bruno Haible  <bruno@clisp.org>
20894
20895         * m4/stpncpy.m4: New file.
20896
20897 2003-01-29  Bruno Haible  <bruno@clisp.org>
20898
20899         * lib/stpncpy.h: New file, from GNU gettext with modifications.
20900         * lib/stpncpy.c: New file, from GNU gettext with modifications.
20901
20902 2003-01-28  Bruno Haible  <bruno@clisp.org>
20903
20904         * modules/c-ctype: New module.
20905         * MODULES.html.sh (func_all_modules): Add it.
20906
20907 2003-01-28  Bruno Haible  <bruno@clisp.org>
20908
20909         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
20910         Paul Eggert.
20911         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
20912         Paul Eggert.
20913
20914 2003-01-27  Bruno Haible  <bruno@clisp.org>
20915
20916         * modules/xsetenv: New module.
20917         * MODULES.html.sh (func_all_modules): Add it.
20918
20919 2003-01-27  Bruno Haible  <bruno@clisp.org>
20920
20921         * lib/xsetenv.h: New file, from GNU gettext.
20922         * lib/xsetenv.c: New file, from GNU gettext.
20923
20924 2003-01-23  Jim Meyering  <jim@meyering.net>
20925
20926         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
20927         from working on systems without dirfd (at least Irix and OSF1/Tru64).
20928
20929 2003-01-23  Bruno Haible  <bruno@clisp.org>
20930
20931         * modules/minmax: New module.
20932         * MODULES.html.sh (func_all_modules): Add it.
20933
20934 2003-01-23  Bruno Haible  <bruno@clisp.org>
20935
20936         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
20937         Eggert.
20938
20939 2003-01-22  Bruno Haible  <bruno@clisp.org>
20940
20941         * modules/exit: New module.
20942         * MODULES.html.sh (func_all_modules): Add it.
20943
20944 2003-01-22  Bruno Haible  <bruno@clisp.org>
20945
20946         * lib/exit.h: New file, from GNU gettext.
20947
20948 2003-01-19  Bruno Haible  <bruno@clisp.org>
20949
20950         * gnulib-tool: Recognize option --extract-maintainer.
20951         (func_get_maintainer): New function.
20952         * modules/*: Add Maintainer entry.
20953
20954 2003-01-16  Jim Meyering  <jim@meyering.net>
20955
20956         * m4/regex.m4: The `regex' struct is both input and output.
20957         Initialize it before each use.  Patch by Tim Waugh.
20958
20959 2003-01-16  Bruno Haible  <bruno@clisp.org>
20960
20961         * MODULES.html.sh: Add a table of contents. Add the module name as
20962         leftmost column. Add hyperlinks.
20963
20964 2003-01-15  Bruno Haible  <bruno@clisp.org>
20965
20966         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
20967
20968 2003-01-15  Bruno Haible  <bruno@clisp.org>
20969
20970         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
20971         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
20972         suffix.
20973
20974 2003-01-15  Bruno Haible  <bruno@clisp.org>
20975
20976         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
20977
20978 2003-01-15  Bruno Haible  <bruno@clisp.org>
20979
20980         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
20981         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
20982
20983 2003-01-14  Jim Meyering  <jim@meyering.net>
20984
20985         * lib/same.c (same_name): Tweak a comment.
20986
20987 2003-01-14  Bruno Haible  <bruno@clisp.org>
20988
20989         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
20990         when a string comparison is sufficient.
20991
20992 2003-01-14  Bruno Haible  <bruno@clisp.org>
20993
20994         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
20995         'unsigned int'.
20996
20997 2003-01-14  Bruno Haible  <bruno@clisp.org>
20998
20999         * lib/hash-pjw.c: Add comment about low quality of this function.
21000
21001 2003-01-13  Bruno Haible  <bruno@clisp.org>
21002
21003         * modules/stpcpy: Distribute lib/stpcpy.h.
21004         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
21005
21006 2003-01-13  Bruno Haible  <bruno@clisp.org>
21007
21008         * modules/*: Add a description.
21009         * modules/strpbrk: Fix Makefile.am snippet.
21010         * modules/strtoimax: Fix dependencies.
21011         * modules/strtoumax: Likewise.
21012
21013 2003-01-13  Bruno Haible  <bruno@clisp.org>
21014
21015         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
21016         * modules/alloca (Makefile.am): All object files depend on alloca.h.
21017         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
21018
21019 2003-01-13  Bruno Haible  <bruno@clisp.org>
21020
21021         * gnulib-tool (func_create_testdir): Store config/* files in the main
21022         directory.
21023         * config.rpath: Move to ...
21024         * config/config.rpath: ... here.
21025         * modules/gettext: Contains config/config.rpath, not config.rpath.
21026         * modules/iconv: Likewise.
21027
21028 2003-01-12  Paul Eggert  <eggert@twinsun.com>
21029
21030         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
21031         to avoid collisions with libcurses and libreadline.
21032
21033         * m4/getstr.m4: Remove.
21034         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
21035
21036 2003-01-12  Paul Eggert  <eggert@twinsun.com>
21037
21038         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
21039         to avoid collisions with libcurses and libreadline.
21040
21041         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
21042         * lib/getstr.h, getstr.c: Remove.
21043         * lib/getline.c: Include "getline.h", to check interface.
21044         Move body of old getstr.c here: this defines MIN_CHUNK and
21045         declares getdelim2, which is renamed from getstr.
21046         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
21047
21048         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
21049         All uses changed.
21050         * lib/linebuffer.h: Likewise.
21051         (readline): Remove backward-compatibility macro.
21052
21053 2003-01-12  Paul Eggert  <eggert@twinsun.com>
21054
21055         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
21056         to avoid collisions with libcurses and libreadline.
21057         * getstr: Remove.
21058         * MODULES.html.sh: Remove getstr.
21059         * modules/getline: Depend on unlocked-io, not getstr.
21060
21061 2003-01-12  Jim Meyering  <jim@meyering.net>
21062
21063         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
21064
21065 2003-01-10  Bruno Haible  <bruno@clisp.org>
21066
21067         * modules/alloca: Change Makefile.am requirements. Simplify Include
21068         requirements. Add lib/alloca_.h to file list.
21069
21070 2003-01-10  Bruno Haible  <bruno@clisp.org>
21071
21072         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
21073
21074 2003-01-10  Bruno Haible  <bruno@clisp.org>
21075
21076         * lib/alloca_.h: New file.
21077         * lib/getdate.y: Unconditionally include alloca.h.
21078         * lib/makepath.c: Likewise.
21079         * lib/setenv.c: Likewise.
21080         * lib/userspec.c: Likewise.
21081
21082 2003-01-09  Karl Berry  <karl@gnu.org>
21083
21084         * MODULES.html.sh: include `dirname $0` in PATH, to find
21085         gnulib-tool.
21086
21087 2003-01-09  Bruno Haible  <bruno@clisp.org>
21088
21089         * modules/stdbool: Change configure.ac, Makefile.am requirements.
21090         Simplify Include requirements. Add lib/stdbool.h.in to file list.
21091
21092 2003-01-09  Bruno Haible  <bruno@clisp.org>
21093
21094         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
21095
21096 2003-01-09  Bruno Haible  <bruno@clisp.org>
21097
21098         * lib/stdbool.h.in: New file.
21099
21100 2003-01-09  Bruno Haible  <bruno@clisp.org>
21101
21102         * gnulib-tool (func_all_modules): Ignore files ending in ~.
21103         * MODULES.html.sh: Likewise.
21104
21105 2003-01-08  Jim Meyering  <jim@meyering.net>
21106
21107         * lib/full-write.c: Undefine and define-away `const' after inclusion
21108         of errno.h, not before.  Suggestion from Bruno Haible.
21109
21110 2003-01-08  Bruno Haible  <bruno@clisp.org>
21111
21112         * modules/full-read: Depend on full-write.
21113
21114 2003-01-08  Bruno Haible  <bruno@clisp.org>
21115
21116         * lib/safe-read.c: Include specification header first, to ensure its
21117         selfcontainedness.
21118         * lib/full-write.c: Likewise.
21119
21120 2003-01-07  Jim Meyering  <jim@meyering.net>
21121
21122         * lib/full-write.c: Rework so that it may serve to define full_read,
21123         too.
21124         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
21125
21126 2003-01-07  Bruno Haible  <bruno@clisp.org>
21127
21128         * lib/strtoimax.c: Include <stdint.h> as an alternative to
21129         <inttypes.h>.
21130         * lib/xstrtol.h: Likewise.
21131         * lib/xstrtoimax.c: Likewise.
21132         * lib/xstrtoumax.c: Likewise.
21133         * lib/human.h: Likewise.
21134
21135         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
21136         on systems that have <inttypes.h> but not <stdint.h>.
21137
21138 2003-01-07  Bruno Haible  <bruno@clisp.org>
21139
21140         * MODULES.html.sh: Add copyright notice.
21141         (missed_files): Omit CVS directory entries.
21142         (func_module): Make it work with sed-3.02.
21143         * MODULES.txt: Remove file.
21144
21145 2003-01-06  Jim Meyering  <jim@meyering.net>
21146
21147         * lib/version-etc.c: Update year in translatable copyright string.
21148
21149 2003-01-03  Karl Berry  <karl@gnu.org>
21150
21151         * config/config.{guess,sub}: update from prep.
21152
21153 2003-01-02  Karl Berry  <karl@gnu.org>
21154
21155         * doc/COPYING.DOC: belatedly updated to 1.2.
21156
21157 2003-01-01  Karl Berry  <karl@gnu.org>
21158
21159         * gnulib-tool (func_verify_module): report module name $module in
21160         error message, not $1.
21161         * gnulib-tool (create-testdir): don't complain if destdir couldn't
21162         be created, only if it doesn't exist.
21163         * gnulib-tool (last_checkin_date): don't expand the $Date here.
21164
21165 2002-12-31  Paul Eggert  <eggert@twinsun.com>
21166
21167         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
21168
21169 2002-12-31  Paul Eggert  <eggert@twinsun.com>
21170
21171         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
21172         memcmp if strcoll doesn't work.
21173
21174 2002-12-31  Bruno Haible  <bruno@clisp.org>
21175
21176         * lib/utime.c (utime_null): No need to call ftruncate if the file was
21177         nonempty.
21178
21179 2002-12-31  Bruno Haible  <bruno@clisp.org>
21180
21181         * lib/memcoll.c (STRCOLL): New macro.
21182         (memcoll): Use it.
21183
21184 2002-12-31  Bruno Haible  <bruno@clisp.org>
21185
21186         * lib/localcharset.h: New file.
21187         * lib/localcharset.c: Include it.
21188         * lib/unicodeio.c: Likewise.
21189
21190 2002-12-31  Bruno Haible  <bruno@clisp.org>
21191
21192         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
21193         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
21194
21195 2002-12-31  Bruno Haible  <bruno@clisp.org>
21196
21197         * lib/getline.h: Include <stddef.h>, for size_t.
21198
21199         * lib/unicodeio.h: Include <stddef.h>, for size_t.
21200         * lib/unicodeio.c: Don't include <stddef.h>.
21201
21202 2002-12-31  Bruno Haible  <bruno@clisp.org>
21203
21204         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
21205         HAVE_TM_ZONE.
21206
21207 2002-12-24  Karl Berry  <karl@gnu.org>
21208
21209         * config/config.guess: update from prep.
21210
21211 2002-12-24  Bruno Haible  <bruno@clisp.org>
21212
21213         General infrasructure.
21214         * m4/README: Rewritten.
21215         * m4/onceonly.m4: New file.
21216         * m4/onceonly_2_57.m4: New file.
21217
21218         Module atexit.
21219         * m4/atexit.m4: New file.
21220
21221         Module strtod.
21222         * m4/strtod.m4: New file.
21223
21224         Module strtol.
21225         * m4/strtol.m4: New file.
21226
21227         Module strtoul.
21228         * m4/strtoul.m4: New file.
21229
21230         Module memchr.
21231         * m4/memchr.m4: New file.
21232
21233         Module memcmp.
21234         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
21235         (jm_FUNC_MEMCMP): Invoke it.
21236
21237         Module memcpy.
21238         * m4/memcpy.m4: New file.
21239
21240         Module memmove.
21241         * m4/memmove.m4: New file.
21242
21243         Module memset.
21244         * m4/memset.m4: New file.
21245
21246         Module strcspn.
21247         * m4/strcspn.m4: New file.
21248
21249         Module strpbrk.
21250         * m4/strpbrk.m4: New file.
21251
21252         Module strstr.
21253         * m4/strstr.m4: New file.
21254
21255         Module strerror.
21256         * m4/strerror.m4: New file.
21257
21258         Module mktime.
21259         * m4/mktime.m4: Renamed from jm-mktime.m4.
21260         (gl_PREREQ_MKTIME): New macro.
21261         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
21262
21263         Module malloc.
21264         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
21265         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
21266         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
21267
21268         Module realloc.
21269         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
21270         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
21271         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
21272
21273         Module strftime.
21274         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
21275         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
21276         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
21277         gl_TM_GMTOFF.
21278         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
21279
21280         Module xalloc.
21281         * m4/xalloc.m4: New file.
21282
21283         Module alloca.
21284         * m4/alloca.m4: New file.
21285
21286         Module putenv.
21287         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
21288         (jm_FUNC_PUTENV): Invoke it.
21289
21290         Module setenv.
21291         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
21292         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
21293         when invoked twice.
21294         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
21295         gt_FUNC_SETENV.
21296
21297         Module memrchr.
21298         * m4/memrchr.m4: New file.
21299
21300         Module stpcpy.
21301         * m4/stpcpy.m4: New file.
21302
21303         Module strcase.
21304         * m4/strcase.m4: New file.
21305
21306         Module strdup.
21307         * m4/strdup.m4: New file.
21308
21309         Module strnlen.
21310         * m4/strnlen.m4: New file.
21311
21312         Module strndup.
21313         * m4/strndup.m4: New file.
21314
21315         Module xstrtod.
21316         * m4/xstrtod.m4: New file.
21317
21318         Module xstrtol.
21319         * m4/xstrtol.m4: New file.
21320
21321         Module getdate.
21322         * m4/getdate.m4: New file.
21323
21324         Module unlocked-io.
21325         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
21326         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
21327         * m4/jm-glibc-io.m4n: Remove file.
21328
21329         Module long-options.
21330         * m4/long-options.m4: New file.
21331
21332         Module md5.
21333         * m4/md5.m4: New file.
21334
21335         Module sha.
21336         * m4/sha.m4: New file.
21337
21338         Module getstr.
21339         * m4/getstr.m4: New file.
21340
21341         Module getline.
21342         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
21343         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
21344         <sys/types.h>, for size_t. Use the function name gnu_getline, not
21345         simply getline. Infoke gl_PREREQ_GETLINE.
21346
21347         Module obstack.
21348         * m4/obstack.m4: New file.
21349
21350         Module hash.
21351         * m4/hash.m4: New file.
21352
21353         Module readtokens.
21354         * m4/readtokens.m4: New file.
21355
21356         Module strverscmp.
21357         * m4/strverscmp.m4: New file.
21358
21359         Module stdbool.
21360         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
21361         OSF/1.
21362
21363         Module strtoll.
21364         * m4/strtoll.m4: New file.
21365
21366         Module strtoull.
21367         * m4/strtoull.m4: New file.
21368
21369         Module strtoimax.
21370         * m4/strtoimax.m4: New file.
21371
21372         Module strtoumax.
21373         * m4/strtoumax.m4: New file.
21374
21375         Module xstrtoimax.
21376         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
21377         jm_AC_PREREQ_XSTRTOIMAX.
21378         Moved the strtol prerequisites to strtol.m4.
21379         Moved the strtoll prerequisites to strtoll.m4.
21380         Moved the strtoimax prerequisites to strtoimax.m4.
21381
21382         Module xstrtoumax.
21383         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
21384         jm_AC_PREREQ_XSTRTOUMAX.
21385         Moved the strtoul prerequisites to strtoul.m4.
21386         Moved the strtoull prerequisites to strtoull.m4.
21387         Moved the strtoumax prerequisites to strtoumax.m4.
21388
21389         Module chown.
21390         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
21391         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
21392
21393         Module dup2.
21394         * m4/dup2.m4: New file.
21395
21396         Module ftruncate.
21397         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
21398         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
21399
21400         Module getgroups.
21401         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
21402         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
21403
21404         Module gettimeofday.
21405         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
21406         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
21407         gl_PREREQ_GETTIMEOFDAY.
21408
21409         Module mkdir.
21410         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
21411         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
21412
21413         Module mkstemp.
21414         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
21415         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
21416         jm_AC_TYPE_UINTMAX_T.
21417         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
21418
21419         Module stat.
21420         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
21421         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
21422
21423         Module lstat.
21424         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
21425         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
21426
21427         Module timespec.
21428         * m4/timespec.m4 (gl_TIMESPEC): New macro.
21429         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
21430         * m4/st_mtim.m4: Indentation.
21431
21432         Module nanosleep.
21433         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
21434         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
21435         gl_PREREQ_NANOSLEEP.
21436
21437         Module regex.
21438         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
21439         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
21440         (gl_REGEX): New macro.
21441
21442         Module rename.
21443         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
21444         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
21445
21446         Module rmdir.
21447         * m4/rmdir.m4: New file.
21448
21449         Module utime.
21450         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
21451         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
21452         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
21453
21454         Module dirname.
21455         * m4/dirname.m4: New file.
21456
21457         Module getopt.
21458         * m4/getopt.m4: New file.
21459
21460         Module unistd-safer.
21461         * m4/unistd-safer.m4: New file.
21462
21463         Module fnmatch.
21464         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
21465         declaration.
21466         (gl_PREREQ_FNMATCH_EXTRA): New macro.
21467         (gl_FUNC_FNMATCH_POSIX): New macro.
21468         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
21469         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
21470         simply fnmatch.
21471
21472         Module exclude.
21473         * m4/exclude.m4: New file.
21474
21475         Module human.
21476         * m4/human.m4: New file.
21477
21478         Module acl.
21479         * m4/acl.m4: Nop.
21480
21481         Module backupfile.
21482         * m4/backupfile.m4: New file.
21483         * m4/d-ino.m4: Indentation.
21484
21485         Module fsusage.
21486         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
21487         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
21488         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
21489
21490         Module dirfd.
21491         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
21492         requirements.
21493
21494         Module euidaccess.
21495         * m4/euidaccess.m4: New file.
21496
21497         Module file-type.
21498         * m4/file-type.m4: New file.
21499
21500         Module fileblocks.
21501         * m4/fileblocks.m4: New file.
21502
21503         Module filemode.
21504         * m4/filemode.m4: New file.
21505
21506         Module isdir.
21507         * m4/isdir.m4: New file.
21508
21509         Module lchown.
21510         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
21511         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
21512
21513         Module makepath.
21514         * m4/makepath.m4: New file.
21515
21516         Module modechange.
21517         * m4/modechange.m4: New file.
21518
21519         Module mountlist.
21520         * m4/mountlist.m4: New file.
21521         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
21522         Indentation.
21523
21524         Module path-concat.
21525         * m4/path-concat.m4: New file.
21526
21527         Module pathmax.
21528         * m4/pathmax.m4: New file.
21529
21530         Module same.
21531         * m4/same.m4: New file.
21532
21533         Module save-cwd.
21534         * m4/save-cwd.m4: New file.
21535
21536         Module savedir.
21537         * m4/savedir.m4: New file.
21538
21539         Module xgetcwd.
21540         * m4/xgetcwd.m4: New file.
21541         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
21542
21543         Module xreadlink.
21544         * m4/xreadlink.m4: New file.
21545
21546         Module safe-read.
21547         * m4/safe-read.m4: New file.
21548
21549         Module safe-write.
21550         * m4/safe-write.m4: New file.
21551
21552         Module closeout.
21553         * m4/closeout.m4: New file.
21554
21555         Module stdio-safer.
21556         * m4/stdio-safer.m4: New file.
21557
21558         Module getpass.
21559         * m4/getpass.m4: New file.
21560
21561         Module getugroups.
21562         * m4/getugroups.m4: New file.
21563
21564         Module group-member.
21565         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
21566         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
21567
21568         Module idcache.
21569         * m4/idcache.m4: New file.
21570
21571         Module userspec.
21572         * m4/userspec.m4: New file.
21573
21574         Module gettime.
21575         * m4/clock_time.m4: New file.
21576         * m4/gettime.m4: New file.
21577
21578         Module settime.
21579         * m4/settime.m4: New file.
21580
21581         Module posixtm.
21582         * m4/posixtm.m4: New file.
21583
21584         Module gethostname.
21585         * m4/gethostname.m4: New file.
21586
21587         Module canon-host.
21588         * m4/canon-host.m4: New file.
21589
21590         Module gettext.
21591         * m4/codeset.m4: New file, from gettext-0.11.5.
21592         * m4/gettext.m4: New file, from gettext-0.11.5.
21593         * m4/glibc21.m4: New file, from gettext-0.11.5.
21594         * m4/iconv.m4: New file, from gettext-0.11.5.
21595         * m4/intdiv0.m4: New file, from gettext-0.11.5.
21596         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
21597         * m4/inttypes.m4: New file, from gettext-0.11.5.
21598         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
21599         * m4/isc-posix.m4: New file, from gettext-0.11.5.
21600         * m4/lcmessage.m4: New file, from gettext-0.11.5.
21601         * m4/lib-ld.m4: New file, from gettext-0.11.5.
21602         * m4/lib-link.m4: New file, from gettext-0.11.5.
21603         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
21604         * m4/progtest.m4: New file, from gettext-0.11.5.
21605         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
21606         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
21607         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
21608
21609         Module localcharset.
21610         * m4/localcharset.m4: New file.
21611
21612         Module hard-locale.
21613         * m4/hard-locale.m4: New file.
21614
21615         Module mbswidth.
21616         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
21617         onceonly macros.
21618         * m4/mbrtowc.m4: Add comment.
21619
21620         Module memcasecmp.
21621         * m4/memcasecmp.m4: New file.
21622
21623         Module memcoll.
21624         * m4/memcoll.m4: New file.
21625
21626         Module unicodeio.
21627         * m4/unicodeio.m4: New file.
21628
21629         Module rpmatch.
21630         * m4/rpmatch.m4: New file.
21631
21632         Module yesno.
21633         * m4/yesno.m4: New file.
21634
21635         Module exitfail.
21636         * m4/exitfail.m4: New file.
21637
21638         Module c-stack.
21639         * m4/c-stack.m4 (gl_C_STACK): New macro.
21640         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
21641
21642         Module error.
21643         * m4/error.m4 (gl_ERROR): New macro.
21644         (jm_PREREQ_ERROR): Use onceonly macros.
21645
21646         Module fatal.
21647         * m4/fatal.m4: New file.
21648
21649         Module getloadavg.
21650         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
21651         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
21652
21653         Module getpagesize.
21654         * m4/getpagesize.m4: New file.
21655
21656         Module getusershell.
21657         * m4/getusershell.m4: New file.
21658
21659         Module physmem.
21660         * m4/physmem.m4: New file.
21661
21662         Module posixver.
21663         * m4/posixver.m4: New file.
21664
21665         Module quotearg.
21666         * m4/quotearg.m4: New file.
21667
21668         Module quote.
21669         * m4/quote.m4: New file.
21670
21671         Module readutmp.
21672         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
21673
21674         Module sig2str.
21675         * m4/sig2str.m4: New file.
21676
21677         Other.
21678         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
21679         ulonglong.m4.
21680         * m4/intmax_t.m4: New file.
21681         * m4/d-type.m4: Indentation.
21682         * m4/jm-macros.m4: Update.
21683         * m4/prereq.m4 (jm_PREREQ): Update.
21684         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
21685         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
21686         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
21687         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
21688         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
21689         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
21690         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
21691         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
21692         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
21693         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
21694         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
21695         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
21696         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
21697         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
21698         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
21699         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
21700         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
21701         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
21702         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
21703
21704 2002-12-24  Bruno Haible  <bruno@clisp.org>
21705
21706         * MODULES.txt: Update according to m4/ changes.
21707
21708         Module gettext.
21709         * config.rpath: New file, from gettext-0.11.5.
21710
21711         * modules/*: New module descriptions.
21712         * gnulib-tool: New file.
21713         * MODULES.html.sh: New file.
21714
21715 2002-12-21  Karl Berry  <karl@gnu.org>
21716
21717         * doc/fdl.texi: update to version 1.2.
21718
21719 2002-12-19  Karl Berry  <karl@gnu.org>
21720
21721         * config/config.guess: update from prep.
21722
21723 2002-12-18  Bruno Haible  <bruno@clisp.org>
21724
21725         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
21726         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
21727
21728 2002-12-17  Bruno Haible  <bruno@clisp.org>
21729
21730         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
21731         stdlib.h, string.h.
21732
21733 2002-12-17  Bruno Haible  <bruno@clisp.org>
21734
21735         * lib/canon-host.c (strdup): Remove unused declaration.
21736
21737         * lib/fsusage.c: Include full_read.h.
21738         (get_fs_usage): Use full_read instead of safe_read.
21739
21740         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
21741
21742 2002-12-12  Karl Berry  <karl@gnu.org>
21743
21744         * config/config.guess: update from prep.
21745
21746 2002-12-11  Bruno Haible  <bruno@clisp.org>
21747
21748         * m4/setenv.m4: New file, from gettext-0.11.5.
21749
21750 2002-12-11  Bruno Haible  <bruno@clisp.org>
21751
21752         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
21753         not unsetenv().
21754         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
21755         modifications:
21756
21757         2002-12-11  Bruno Haible  <bruno@clisp.org>
21758
21759                 * setenv.c (alloca): Fall back to malloc.
21760                 (freea): New macro.
21761                 (setenv): Use freea() to free memory allocated with alloca().
21762
21763         2002-11-13  Bruno Haible  <bruno@clisp.org>
21764
21765                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
21766                 function declarations.
21767                 * unsetenv.c (unsetenv): Likewise.
21768
21769         2002-03-04  Bruno Haible  <bruno@clisp.org>
21770
21771                 Portability to AIX 4.3.3.
21772                 * unsetenv.c: New file, extracted from setenv.c.
21773                 * setenv.c: Move the unsetenv() function to unsetenv.c.
21774
21775         2001-12-20  Bruno Haible  <bruno@clisp.org>
21776
21777                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
21778                 use malloc instead. For SunOS 4.
21779
21780         2001-12-11  Bruno Haible  <bruno@clisp.org>
21781
21782                 * setenv.c: Declare alloca.
21783                 (compar_fn_t): New typedef.
21784                 (KNOWN_VALUE, STORE_VALUE): Use it.
21785
21786         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
21787         setenv.h.
21788
21789 2002-12-10  Paul Eggert  <eggert@twinsun.com>
21790
21791         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
21792         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
21793         Choose values that are less likely to collide with system fnmatch
21794         options.
21795         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
21796         defined (e.g., a pure POSIX system).
21797         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
21798         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
21799
21800 2002-12-06  Paul Eggert  <eggert@twinsun.com>
21801
21802         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
21803         a pain in practice to deal with generated m4 files.  This change
21804         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
21805
21806         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
21807         and jm-glibc-io.m4, as they are no longer a special case.
21808         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
21809         kludge and the auto-generation stuff.  Check only whether the
21810         functions are declared, not whether they exist, since older hosts
21811         that don't declare the functions can't use the optimization anyway.
21812
21813 2002-12-06  Jim Meyering  <jim@meyering.net>
21814
21815         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
21816
21817         Merge in changes from libc's misc/error.c, in preparation
21818         for the merge of gnulib's changes back into libc.
21819
21820         * lib/error.c (_): Define only if not already defined.
21821         Move definition to follow all #include directives.
21822         Include unlocked-io.h only if !_LIBC.
21823         [_LIBC]: Include <libio/libioP.h>.
21824         [USE_IN_LIBIO]: Include <libio/iolibio.h>
21825         (fflush): Tweak definition to use INTUSE.
21826         (putc): Define.
21827
21828 2002-12-05  Paul Eggert  <eggert@twinsun.com>
21829
21830         * lib/alloca.c [defined emacs]: Include "lisp.h".
21831         (xalloc_die) [defined emacs]: New macro.
21832         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
21833         [! defined emacs]: Include <xalloc.h>.
21834         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
21835         (pointer): Typedef to POINTER_TYPE *.
21836         (malloc): Remove decl; we now always use xmalloc.
21837         (alloca): Use old-style definition, since Emacs needs this.
21838         Check for arithmetic overflow when computing combined size.
21839
21840 2002-12-04  Paul Eggert  <eggert@twinsun.com>
21841
21842         Do not generate unlocked-io.h automatically, since it's easier to
21843         maintain it by hand.
21844
21845         * lib/unlocked-io.h: New file, from GNU diffutils,
21846         but with proper copyright notice and attribution.
21847         * lib/gen-uio: Remove.
21848         * lib/Makefile.am: Add copyright notice.
21849         (libfetish_a_SOURCES): Add unlocked-io.h.
21850         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
21851         (DISTCLEANFILES, io_functions): Remove macros.
21852         (EXTRA_DIST): Remove gen_uio.
21853         (unlocked-io.h): Remove rule.
21854
21855 2002-12-04  Jim Meyering  <jim@meyering.net>
21856
21857         Reflect the fact that stat.c and lstat.c are no longer generated.
21858         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
21859         (DISTCLEANFILES): Likewise.
21860         (EXTRA_DIST): Likewise.
21861         (all_local): Don't depend on stat.c or lstat.c.
21862         (stat.c, lstat.c): Remove rules.
21863         (EXTRA_DIST): Remove xstat.in.
21864
21865         * lib/xstat.in: Remove file.  Contents moved into stat.c.
21866         * lib/stat.c: New file.  Contents mostly from xstat.in.
21867         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
21868         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
21869
21870         * lib/safe-read.c: Rework so that it may serve to define safe_write,
21871         too.
21872         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
21873
21874 2002-12-03  Jim Meyering  <jim@meyering.net>
21875
21876         * lib/safe-read.c, safe-write.c: Change variable names and comments,
21877         but not semantics, to minimize the differences between these two files.
21878         (safe_read): Change comment to mention SAFE_READ_ERROR.
21879
21880         * lib/safe-read.c (IS_EINTR): Define.
21881         (safe_read): Use IS_EINTR in place of in-function cpp directives.
21882
21883 2002-12-02  Jim Meyering  <jim@meyering.net>
21884
21885         * lib/safe-read.c (EINTR): Define.
21886         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
21887         (INT_MAX): Provide fallback.
21888         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
21889
21890         * lib/safe-read.h (SAFE_READ_ERROR): Define.
21891
21892 2002-12-02  Bruno Haible  <bruno@clisp.org>
21893
21894         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
21895         Define, taken from safe-read.c.
21896         (INT_MAX): Provide fallback.
21897         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
21898         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
21899
21900         * lib/safe-read.c (EINTR): Remove definition.
21901         (safe_read): Don't use EINTR if it is absent.
21902
21903 2002-12-01  Jim Meyering  <jim@meyering.net>
21904
21905         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
21906         zero.
21907         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
21908
21909 2002-11-27  Paul Eggert  <eggert@twinsun.com>
21910
21911         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
21912         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
21913         with `if (! (value < limit)) abort ();', for readability.
21914
21915 2002-11-26  Karl Berry  <karl@gnu.org>
21916
21917         * lib/strdup.c: copy from libc again, with jim's ok.
21918         * lib/.cppi-disable: re-add strdup.c
21919
21920 2002-11-25  Karl Berry  <karl@gnu.org>
21921
21922         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
21923         instead of "strtol.c".
21924
21925 2002-11-25  Karl Berry  <karl@gnu.org>
21926
21927         * config/install-sh: update from automake for variable quoting, $0 in
21928         error msgs, etc.
21929
21930         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
21931         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
21932         entry.
21933
21934 2002-11-25  Jim Meyering  <jim@meyering.net>
21935
21936         * lib/mktime.c: Sync from libc, now that it has the latest fix.
21937
21938 2002-11-24  Karl Berry  <karl@gnu.org>
21939
21940         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
21941         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
21942
21943 2002-11-24  Jim Meyering  <jim@meyering.net>
21944
21945         Update from coreutils:
21946
21947         * lib/mktime.c: Merge in changes from libc.
21948
21949         Avoid a link-time failure on some Linux systems.
21950         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
21951         (otherwise).
21952         (__mon_yday): Declare with the STATIC attribute.
21953         (__mktime_internal): Likewise.
21954         Based on a report from Greg Schafer.
21955
21956 2002-11-23  Jim Meyering  <jim@meyering.net>
21957
21958         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
21959         Use `unsigned', not `int', as type of index.
21960
21961         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
21962
21963         * lib/fsusage.c: Remove unneeded parentheses around operands of
21964         `defined'.
21965
21966 2002-11-22  Paul Eggert  <eggert@twinsun.com>
21967
21968         * lib/quotearg.h: Allow multiple inclusion by surrounding with
21969         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
21970         so that we can be included first.
21971         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
21972         * lib/quotearg.c: Include quotearg.h immediately after config.h.
21973         No need to include stddef.h or sys/types.h any more.
21974         Surround local include files with "", not "<>".
21975         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
21976         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
21977         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
21978         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
21979         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
21980         (ISPRINT): Remove; no longer needed now that we assume C89.
21981
21982         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
21983         Preserve errno.
21984
21985         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
21986         quotearg_char): Use SIZE_MAX rather than
21987         (size_t) -1 when we are talking about "infinity".
21988
21989         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
21990
21991 2002-11-22  Paul Eggert  <eggert@twinsun.com>
21992
21993         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
21994         hint that one should use `if (! x) abort ();' rather than `assert
21995         (x);', and anyway it's one less thing to worry about configuring.
21996         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
21997         hash_rehash, hash_insert): Use abort rather than assert.
21998
21999 2002-11-22  Bruno Haible  <bruno@clisp.org>
22000
22001         * lib/safe-read.h: Assume C89. Add comments.
22002         (safe_read): Change return type to size_t.
22003         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
22004         byte counts > SSIZE_MAX correctly.
22005         * lib/safe-write.h: New file.
22006         * lib/safe-write.c: New file.
22007         * lib/full-read.h: New file.
22008         * lib/full-read.c: New file.
22009         * lib/full-write.h: Assume C89. Add comments.
22010         * lib/full-write.c: Include safe-write.h.
22011         (full_write): Rewritten to use safe_write.
22012         Suggested by Jim Meyering and Paul Eggert.
22013
22014 2002-11-21  Jim Meyering  <jim@meyering.net>
22015
22016         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
22017
22018         Merge in changes from the coreutils.
22019
22020         2002-09-25  Paul Eggert  <eggert@twinsun.com>
22021         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
22022         <stdint.h>.
22023         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
22024         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
22025         int.  Work more efficiently if X is the same width as uintmax_t.
22026         Do not compare X to -1, to avoid bogus compiler warning.
22027         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
22028         Don't assume that f_frsize and f_bsize are the same type.
22029
22030         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
22031         warning on FreeBSD.
22032
22033         * lib/makepath.c (make_path): Restore umask *before* creating the final
22034         component.
22035         (make_path): Minor reformatting.
22036
22037         * lib/xmalloc.c: Adjust to work with new autoconf macros,
22038         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
22039         HAVE_MALLOC/HAVE_REALLOC.
22040
22041         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
22042         dummy ones.  At least on GNU/Linux systems, `auto' means something
22043         else.
22044         From Michael Stone.
22045
22046 2002-11-21  Bruno Haible  <bruno@clisp.org>
22047
22048         Remove case insensitive option matching.
22049         * lib/argmatch.h (argcasematch): Remove declaration.
22050         (ARGCASEMATCH): Remove macro.
22051         (__xargmatch_internal): Remove case_sensitive argument.
22052         (XARGMATCH): Update.
22053         (XARGCASEMATCH): Remove macro.
22054         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
22055         case_sensitive argument.
22056         (argcasematch): Remove function.
22057         (__xargmatch_internal): Remove case_sensitive argument.
22058         (main): Use XARGMATCH instead of XARGCASEMATCH.
22059
22060         * lib/xmalloc.c: Change compile-time error message. Add comment about
22061         required autoconf version.
22062
22063 2002-11-20  Paul Eggert  <eggert@twinsun.com>
22064
22065         Merge argmatch cleanups from Bison.  Assume C89.
22066
22067         * lib/argmatch.c: Include config.h here, not in argmatch.h.
22068         Include stdlib.h, for EXIT_FAILURE.
22069         Always include <string.h>, since we assume C89.
22070         (EXIT_FAILURE): Remove pre-C89 bug workaround.
22071         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
22072         Include <stddef.h> instead, since it's all we need for size_t.
22073         (PARAMS): Remove.  All uses removed.
22074         (ARRAY_CARDINALITY): Do not bother to #undef.
22075         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
22076         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
22077         Remove unnecessary parentheses.
22078         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
22079         Insert necessary parentheses.
22080         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
22081         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
22082
22083 2002-11-19  Bruno Haible  <bruno@clisp.org>
22084
22085         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
22086         * lib/mbswidth.h: Include <stddef.h>, for size_t.
22087
22088         * lib/mbswidth.h (PARAMS): Remove macro.
22089         (mbswidth, mbsnwidth): Use ANSI C function declarations.
22090         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
22091
22092         * lib/gcd.h (PARAMS): Remove macro.
22093         (gcd): Use ANSI C function declarations.
22094         * lib/gcd.c (gcd): Likewise.
22095
22096 2002-11-15  Bruno Haible  <bruno@clisp.org>
22097
22098         * lib/strcspn.c: Include <stddef.h>.
22099         (strcspn): Use ANSI C function declaration. Change return type to
22100         size_t. Use NULL.
22101         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
22102         (strpbrk): Use NULL.
22103         * lib/strpbrk.h (PARAMS): Remove macro.
22104         (strpbrk): Use ANSI C function declaration.
22105         * lib/strstr.c: Don't include <sys/types.h>.
22106         * lib/strstr.h (PARAMS): Remove macro.
22107         (strstr): Use ANSI C function declarations.
22108
22109 2002-11-14  Karl Berry  <karl@gnu.org>
22110
22111         * config/mkinstalldirs: `do' on separate line, instead of
22112         `for var; do'.
22113
22114 2002-11-06  Bruno Haible  <bruno@clisp.org>
22115
22116         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
22117         * lib/gcd.c (gcd): Likewise.
22118
22119 2002-11-05  Bruno Haible  <bruno@clisp.org>
22120
22121         * lib/gcd.h: New file, from gettext-0.11.5.
22122         * lib/gcd.c: New file, from gettext-0.11.5.
22123
22124 2002-11-05  Bruno Haible  <bruno@clisp.org>
22125
22126         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
22127         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
22128         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
22129         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
22130
22131         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
22132         <libintl.h>.
22133         * lib/makepath.c: Include gettext.h instead of <locale.h> and
22134         <libintl.h>.
22135
22136         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
22137         * lib/human.c: Include gettext.h instead of <libintl.h>.
22138         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
22139         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
22140         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
22141         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
22142         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
22143         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
22144         (textdomain): Remove definition.
22145         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
22146
22147         * lib/long-options.c: Remove include of <libintl.h> and definition of
22148         _.
22149         * lib/same.c: Remove include of <libintl.h> and definition of _.
22150
22151 2002-11-04  Owen Taylor  <otaylor@redhat.com>
22152
22153         * lib/config.charset: A few additions for Solaris.
22154
22155 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
22156
22157         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
22158         * lib/localcharset.c (locale_charset): Declare as extern "C".
22159
22160 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
22161
22162         * lib/config.charset: msdos in uk_UA uses CP1125.
22163
22164 2002-11-04  Bruno Haible  <bruno@clisp.org>
22165
22166         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
22167         * lib/strcase.h: New file, from GNU gettext-0.11.5.
22168         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
22169         * lib/strstr.h: New file, from GNU gettext-0.11.5.
22170         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
22171
22172 2002-11-04  Bruno Haible  <bruno@clisp.org>
22173
22174         * lib/localcharset.c (locale_charset): Don't return an empty string.
22175
22176 2002-11-04  Bruno Haible  <bruno@clisp.org>
22177
22178         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
22179         aliases.
22180
22181 2002-11-04  Bruno Haible  <bruno@clisp.org>
22182
22183         * lib/config.charset: Update for newest glibc. Add canonical names
22184         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
22185
22186 2002-11-04  Bruno Haible  <bruno@clisp.org>
22187
22188         * lib/config.charset: Add support for NetBSD.
22189
22190 2002-11-04  Bruno Haible  <bruno@clisp.org>
22191
22192         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
22193
22194 2002-11-01  Bruno Haible  <bruno@clisp.org>
22195
22196         * configure.in: Add AC_CONFIG_AUX_DIR call.
22197         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
22198         test/Makefile.
22199         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
22200
22201 2002-09-28  Karl Berry  <karl@gnu.org>
22202
22203         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
22204         installed automake until the next release, since changes have been
22205         made.
22206
22207 2002-09-25  Karl Berry  <karl@gnu.org>
22208
22209         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
22210         * lib/getopt*: copy from libc/posix.
22211         * lib/gettext.h: copy from gettext.
22212         * lib/.cppi-disable: add strdup.c, gettext.h.
22213
22214 2002-09-25  Karl Berry  <karl@gnu.org>
22215
22216         * config/srclist.txt: enable gettext.h check.
22217         * config/config.{guess,sub}: update from prep.
22218         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
22219                 from automake 1.6.3.
22220         See srclist*.
22221
22222 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
22223
22224         * regex.c (PATFETCH): Remove the translating fetch.
22225         (PATFETCH_RAW): Rename to PATFETCH.
22226         (set_image_of_range): New fun.
22227         (SET_RANGE_TABLE_WORK_AREA): Use it.
22228         (regex_compile): Don't translate the pattern chars so eagerly.
22229         Only do it when inserting an `exactn' bytecode or when handling
22230         a char-range.
22231         (mutually_exclusive_p): Avoid empty statement.
22232
22233 2002-07-06  Jim Meyering  <meyering@lucent.com>
22234
22235         * m4/README: Don't mention Makefile.am.in.
22236         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
22237
22238 2002-07-01  Jim Meyering  <meyering@lucent.com>
22239
22240         * lib/c-stack.c: Include sys/time.h.
22241         From Volker Borchert.
22242
22243 2002-06-26  Paul Eggert  <eggert@twinsun.com>
22244
22245         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
22246
22247 2002-06-26  Paul Eggert  <eggert@twinsun.com>
22248
22249         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
22250         New macro.  Use it uniformly instead of
22251         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
22252         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
22253         reported by Vin Shelton.
22254
22255 2002-06-22  Paul Eggert  <eggert@twinsun.com>
22256
22257         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
22258         Do not assume SA_SIGINFO behavior.
22259         Bug reported by Jim Meyering on NetBSD 1.5.2.
22260
22261 2002-06-22  Jim Meyering  <meyering@lucent.com>
22262
22263         * m4/c-stack.m4: New file, from diffutils-2.8.2.
22264         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
22265
22266         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
22267         now that configure.ac uses AC_GNU_SOURCE.
22268         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
22269         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
22270
22271         Update to latest tools.  Suggestions from Paul Eggert.
22272         * m4/stdbool.m4: New file, from diffutils-2.8.2.
22273         * m4/gnu-source.m4: Update from diffutils-2.8.2.
22274         * m4/fnmatch.m4: Likewise.
22275         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
22276         to AC_HEADER_STDBOOL
22277
22278 2002-06-22  Jim Meyering  <meyering@lucent.com>
22279
22280         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
22281         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
22282
22283 2002-06-22  Jim Meyering  <meyering@lucent.com>
22284
22285         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
22286
22287         * lib/exitfail.c, exitfail.h: Likewise.
22288         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
22289
22290         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
22291         of fnmatch.h.
22292         (EXTRA_DIST): Add fnmatch_loop.c.
22293         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
22294
22295         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
22296         * lib/fnmatch.c: Update from diffutils-2.8.2.
22297         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
22298         * lib/fnmatch.h: Remove file.
22299
22300 2002-06-21  Jim Meyering  <meyering@lucent.com>
22301
22302         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
22303         * m4/mbrtowc.m4: Likewise.
22304
22305         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
22306         * m4/mbswidth.m4: Reflect name change:
22307         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
22308         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
22309
22310         * m4/lib-link.m4: Update from gettext-0.11.2.
22311         * m4/gettext.m4: Likewise.
22312
22313         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
22314         From Alfred M. Szmidt.
22315
22316 2002-06-18  Paul Eggert  <eggert@twinsun.com>
22317
22318         * lib/file-type.h: Report an error if neither S_ISREG nor
22319         S_IFREG is defined, instead of using a test specific to glibc
22320         2.2.  This should be safe, since POSIX requires S_ISREG and
22321         Unix Version 7 had S_IFREG.  We don't need to check for
22322         <sys/types.h> since we don't use any symbols that it defines.
22323
22324 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
22325
22326         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
22327         $@-t, so that each temporary file name is unique and valid in the first
22328         8 characters, for operation under DOS.
22329
22330 2002-06-15  Paul Eggert  <eggert@twinsun.com>
22331
22332         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
22333
22334 2002-06-15  Jim Meyering  <meyering@lucent.com>
22335
22336         Work even with DJGPP 2.03, which lacks support for symlinks.
22337         From Richard Dawe.
22338         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
22339         is defined.
22340         * lib/lchown.c (S_ISLNK): Likewise.
22341
22342 2002-06-15  Jim Meyering  <meyering@lucent.com>
22343
22344         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
22345         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
22346         have been included before this file.
22347
22348 2002-06-14  Jim Meyering  <meyering@lucent.com>
22349
22350         * lib/file-type.h: Use the version from diffutils-2.8.2.
22351         * lib/file-type.c: Likewise.
22352
22353 2002-06-07  Jim Meyering  <meyering@lucent.com>
22354
22355         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
22356         They're needed at least for NetBSD 1.5.2.
22357         ($statxfs_includes): Include those same headers.
22358         ($statxfs_includes): Include sys/vfs.h if available.
22359         ($statxfs_includes): Likewise for sys/statvfs.h.
22360         Check for the following members in both structs statfs and statvfs:
22361         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
22362
22363 2002-06-01  Jim Meyering  <meyering@lucent.com>
22364
22365         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
22366         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
22367
22368 2002-05-28  Jim Meyering  <meyering@lucent.com>
22369
22370         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
22371         Reported by Volker Borchert.
22372
22373 2002-05-27  Jim Meyering  <meyering@lucent.com>
22374
22375         Fix a problem seen only on nonconforming systems whereby ls.c's
22376         use of localtime, and then of gettimeofday would cause trouble:
22377         the localtime call used to initialize rpl_gettimeofday's save
22378         mechanism would clobber ls's current local time information so
22379         that in any long listing the first file would always be listed
22380         with date 1970-01-01.  Analysis by Volker Borchert.
22381
22382         * lib/gettimeofday.c (localtime): Undefine.
22383         (rpl_localtime): New function.
22384
22385 2002-05-27  Jim Meyering  <meyering@lucent.com>
22386
22387         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
22388         localtime.
22389
22390         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
22391         use the replacement function; it wouldn't resolve at link time.
22392         Reported by Volker Borchert.
22393
22394 2002-05-22  Jim Meyering  <meyering@lucent.com>
22395
22396         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
22397         file-type.h.
22398         * lib/file-type.h: New file.
22399         * lib/file-type.c (file_type): New file/function.  Extracted from
22400         diffutils.
22401
22402 2002-04-30  Jim Meyering  <meyering@lucent.com>
22403
22404         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
22405
22406 2002-04-29  Paul Eggert  <eggert@twinsun.com>
22407
22408         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
22409
22410 2002-04-29  Paul Eggert  <eggert@twinsun.com>
22411
22412         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
22413         Do not check for alloca.h (no longer used) or stdbool.h (was never
22414         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
22415
22416 2002-04-29  Paul Eggert  <eggert@twinsun.com>
22417
22418         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
22419
22420 2002-04-29  Jim Meyering  <meyering@lucent.com>
22421
22422         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
22423         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
22424         Use AC_FUNC_STRNLEN here instead.
22425
22426         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
22427         With autoconf-2.53a, it's part of AC_PROG_CC.
22428
22429 2002-04-28  Paul Eggert  <eggert@twinsun.com>
22430
22431         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
22432         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
22433
22434 2002-04-28  Paul Eggert  <eggert@twinsun.com>
22435
22436         * lib/sig2str.h, lib/sig2str.c: New files.
22437         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
22438
22439 2002-04-28  Paul Eggert  <eggert@twinsun.com>
22440
22441         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
22442         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
22443         of 127, since 64 is the largest conceivable number for ancient
22444         nonstandard hosts.
22445         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
22446
22447 2002-04-28  Jim Meyering  <meyering@lucent.com>
22448
22449         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
22450
22451 2002-04-24  Jim Meyering  <meyering@lucent.com>
22452
22453         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
22454         (jm_PREREQ): Use it.
22455
22456         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
22457         mach/mach.h fcntl.h.
22458         Check for this function: setlocale.
22459
22460 2002-04-24  Jim Meyering  <meyering@lucent.com>
22461
22462         * lib/gettext.h: New file, from Gettext.
22463         * lib/Makefile.am (INCLUDES): Remove -I../intl.
22464         (libfetish_a_SOURCES): Add gettext.h.
22465
22466 2002-04-16  Jim Meyering  <meyering@lucent.com>
22467
22468         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
22469         ut_pid, ut_id, ut_exit.
22470
22471 2002-04-16  Jim Meyering  <meyering@lucent.com>
22472
22473         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
22474         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
22475         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
22476
22477 2002-04-12  Jim Meyering  <meyering@lucent.com>
22478
22479         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
22480         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
22481         existence of the getmntinfo function.  Needed for Darwin 5.3.
22482
22483         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
22484         This is necessary at least on Darwin 5.3.
22485
22486         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
22487         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
22488         strnlen.o in the library, and that makes some versions of ranlib
22489         object.
22490
22491 2002-04-12  Jim Meyering  <meyering@lucent.com>
22492
22493         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
22494
22495 2002-04-09  Jim Meyering  <meyering@lucent.com>
22496
22497         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
22498         to be more precise.  Rather than saying we're checking whether the
22499         function `works', say what we're testing.
22500         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
22501         Reported by Bruno Haible.
22502
22503 2002-03-10  Jim Meyering  <meyering@lucent.com>
22504
22505         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
22506         Suggestion from Santiago Vila.
22507
22508 2002-03-08  Jim Meyering  <meyering@lucent.com>
22509
22510         * lib/rename.c: Mention that this wrapper is needed also on
22511         mips-dec-ultrix4.4 systems.
22512
22513 2002-03-02  Jim Meyering  <meyering@lucent.com>
22514
22515         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
22516         not HAVE_CLOCK_SETTIME.
22517
22518 2002-02-27  Paul Eggert  <eggert@twinsun.com>
22519
22520         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
22521         Check for clock_settime.
22522
22523 2002-02-27  Paul Eggert  <eggert@twinsun.com>
22524
22525         * lib/nanosleep.h: Rename to....
22526         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
22527
22528         * lib/gettime.c: New file.
22529         * lib/settime.c: New file.
22530         * lib/stime.c: Remove.
22531
22532         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
22533         timespec.h.  Remove nanosleep.h.
22534
22535 2002-02-25  Paul Eggert  <eggert@twinsun.com>
22536
22537         * m4/acl.m4: New file.
22538         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
22539         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
22540
22541 2002-02-25  Paul Eggert  <eggert@twinsun.com>
22542
22543         * lib/acl.c, lib/acl.h: New files.
22544         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
22545
22546 2002-02-24  Jim Meyering  <meyering@lucent.com>
22547
22548         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
22549         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
22550         cause trouble.  Reported by Nelson Beebe.
22551
22552 2002-02-23  Paul Eggert  <eggert@twinsun.com>
22553
22554         * lib/path-concat.c (xpath_concat): Reorder code to pacify
22555         compilers that don't know that xalloc_die never returns.
22556
22557 2002-02-20  Jim Meyering  <meyering@lucent.com>
22558
22559         * lib/getdate.c: Regenerate using bison-1.33.
22560
22561 2002-02-17  Jim Meyering  <meyering@lucent.com>
22562
22563         * config/config.guess (main): Don't use `head -1'; it's no longer
22564         portable. Use `sed 1q' instead.
22565
22566 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
22567
22568         * m4/codeset.m4: Upgrade to gettext-0.11.
22569         * m4/gettext.m4: Upgrade to gettext-0.11.
22570         * m4/glibc21.m4: Upgrade to gettext-0.11.
22571         * m4/iconv.m4: Upgrade to gettext-0.11.
22572         * m4/isc-posix.m4: Upgrade to gettext-0.11.
22573         * m4/lcmessage.m4: Upgrade to gettext-0.11.
22574         * m4/lib-ld.m4: New file, from gettext-0.11.
22575         * m4/lib-link.m4: New file, from gettext-0.11.
22576         * m4/lib-prefix.m4: New file, from gettext-0.11.
22577         * m4/progtest.m4: Upgrade to gettext-0.11.
22578
22579 2002-02-15  Paul Eggert  <eggert@twinsun.com>
22580
22581         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
22582         (jm_PREREQ): Use it.
22583
22584 2002-02-15  Paul Eggert  <eggert@twinsun.com>
22585
22586         * lib/posixver.c, lib/posixver.h: New files.
22587         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
22588
22589 2002-02-02  Paul Eggert  <eggert@twinsun.com>
22590             Bruno Haible  <bruno@clisp.org>
22591
22592         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
22593         (fwrite_success_callback): New declaration.
22594         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
22595         print_unicode_char. Call failure callback instead of error.
22596         (fwrite_success_callback): New function.
22597         (exit_failure_callback): New function.
22598         (fallback_failure_callback): New function.
22599         (print_unicode_char): Call unicode_to_mb.
22600
22601 2002-01-26  Jim Meyering  <meyering@lucent.com>
22602
22603         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
22604         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
22605
22606 2002-01-26  Jim Meyering  <meyering@lucent.com>
22607
22608         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
22609
22610 2002-01-22  Paul Eggert  <eggert@twinsun.com>
22611
22612         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
22613
22614 2002-01-22  Jim Meyering  <meyering@lucent.com>
22615
22616         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
22617         Otherwise, some versions of automake would omit the rule that makes
22618         Makefile from Makefile.in.
22619
22620 2002-01-21  Paul Eggert  <eggert@twinsun.com>
22621
22622         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
22623         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
22624         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
22625         (memcoll): Set errno to zero if there is no error.
22626
22627         * lib/quotearg.c (quotearg_buffer_restyled):
22628         Fix bug with quoting buffers containing NUL when backslashing escapes.
22629         This bug was exposed by the other changes in this patch.
22630         (quotearg_n_options): New arg ARGSIZE.
22631         All callers changed.
22632         (quoting_options_from_style): New function.
22633         (quotearg_n_style): Use it.
22634         (quotearg_n_style_mem): New function.
22635
22636         * lib/quotearg.h (quotearg_n_style_mem): New function.
22637
22638 2002-01-19  Jim Meyering  <meyering@lucent.com>
22639
22640         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
22641         Remove useless quotes: DF_PROG="df".
22642         * m4/strnlen.m4: New file.
22643
22644 2002-01-16  Paul Eggert  <eggert@twinsun.com>
22645
22646         * lib/backupfile.c (ISDIGIT): Comment fix.
22647         * lib/getdate.y (ISDIGIT): Likewise.
22648         * lib/posixtm.c (ISDIGIT, year): Likewise.
22649         * lib/strverscmp.c (ISDIGIT): Likewise.
22650         * lib/userspec.c (ISDIGIT): Likewise.
22651
22652 2002-01-16  Jim Meyering  <meyering@lucent.com>
22653
22654         * lib/getdate.y: Add three semicolons, each just before a closing
22655         brace. Bison (as of version 1.31) no longer papers over that mistake.
22656
22657 2002-01-05  Jim Meyering  <meyering@lucent.com>
22658
22659         * lib/version-etc.c (version_etc_copyright): Update copyright year.
22660
22661 2001-12-19  Paul Eggert  <eggert@twinsun.com>
22662
22663         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
22664         not silently exit merely because the output buffer happens to
22665         have nothing pending.
22666
22667 2001-12-18  Paul Eggert  <eggert@twinsun.com>
22668
22669         See the big note in ../ChangeLog.
22670         * lib/human.c (suffixes): Prefer K to k for 1024.
22671         (generate_suffix_backwards): New function.
22672         (human_readable_inexact): Use it.
22673         * lib/xstrtol.c (__xstrtol): If there is no number but there
22674         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
22675         Accept 'K' as well as 'k'.
22676
22677 2001-12-15  Jim Meyering  <meyering@lucent.com>
22678
22679         * lib/regex.h (__restrict_arr): Update from libc.
22680
22681         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
22682         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
22683         (STREQ): Define.
22684
22685 2001-12-14  Jim Meyering  <meyering@lucent.com>
22686
22687         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
22688         Suggestion from Bruno Haible.
22689
22690 2001-12-10  Jim Meyering  <meyering@lucent.com>
22691
22692         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
22693         xrealloc, Instead, include "xalloc.h".
22694         (initbuffer): Don't cast xmalloc return value to char*.
22695         (readline): Reword comment.
22696         Don't cast xrealloc return value to char*
22697         Return NULL, not 0.
22698
22699 2001-12-09  Jim Meyering  <meyering@lucent.com>
22700
22701         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
22702         about `signed and unsigned type in conditional expression'.
22703         * lib/posixtm.c (posix_time_parse): Likewise.
22704
22705         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
22706
22707         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
22708         to avoid a pedantic warning.
22709
22710         * lib/getstr.c: Don't include assert.h.
22711         (getstr): Remove warning-evoking assertions.
22712         Return -1 if offset parameter is out of bounds.
22713         Change the type of a local from int to size_t.
22714
22715         * lib/strftime.c (my_strftime_localtime_r): Include this function
22716         definition in the `#if ! HAVE_TM_GMTOFF' block.
22717
22718         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
22719         Include xalloc.h instead.
22720
22721 2001-12-02  Jim Meyering  <meyering@lucent.com>
22722
22723         * lib/tempname.c: Don't declare getenv, thus reverting the change of
22724         2001-11-18.  It's no longer necessary, now that stdlib.h is always
22725         included.
22726
22727         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
22728         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
22729
22730 2001-11-30  Akim Demaille  <akim@epita.fr>
22731
22732         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
22733         before being defined.
22734
22735 2001-11-27  Paul Eggert  <eggert@twinsun.com>
22736
22737         * lib/quotearg.h (quotearg_n, quotearg_n_style):
22738         First arg is int, not unsigned.
22739         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
22740         (SIZE_MAX, UINT_MAX): New macros.
22741         (quotearg_n_options): Abort if N is negative.
22742         Avoid overflow check on hosts where size_t is 64 bits and int
22743         is 32 bits, as overflow is impossible there.
22744         Fix off-by-one typo that caused unnecessary reallocation.
22745
22746 2001-11-27  Jim Meyering  <meyering@lucent.com>
22747
22748         * lib/tempname.c: Merge with version from libc.
22749         * lib/regex.c: Likewise.
22750
22751         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
22752         systems for which STDC_HEADERS is 0, it was not included, resulting in
22753         a warning about an integer-to-pointer conversion problem with getenv.
22754         Reported by Volker Borchert.
22755
22756 2001-11-26  Jim Meyering  <meyering@lucent.com>
22757
22758         * lib/gtod.h: Remove file.
22759         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
22760         * lib/gettimeofday.c: Don't include gtod.h.
22761         (GTOD_init): Remove function.
22762         (rpl_gettimeofday): Do its job here instead, rather than aborting.
22763         Suggestion from Volker Borchert.
22764
22765 2001-11-23  Jim Meyering  <meyering@lucent.com>
22766
22767         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
22768         it.
22769         * lib/hash.c (struct hash_table): Define it here instead.
22770
22771 2001-11-22  Jim Meyering  <meyering@lucent.com>
22772
22773         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
22774
22775 2001-11-20  Jim Meyering  <meyering@lucent.com>
22776
22777         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
22778         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
22779
22780 2001-11-19  Jim Meyering  <meyering@lucent.com>
22781
22782         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
22783         directory.  Use "conftestXXXXXX" as the template.
22784         Suggestion from Paul Eggert.
22785
22786         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
22787         immediately, so the test doesn't mistakenly hit the max-open-files
22788         limit.
22789
22790 2001-11-18  Paul Eggert  <eggert@twinsun.com>
22791
22792         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
22793         (TEMPORARIES): New macro.
22794         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
22795         removes an artificial limitation (e.g. HP-UX 10.20, where
22796         TMP_MAX is 17576).
22797
22798 2001-11-18  Jim Meyering  <meyering@lucent.com>
22799
22800         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
22801
22802 2001-11-18  Jim Meyering  <meyering@lucent.com>
22803
22804         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
22805         on SunOS 4.
22806
22807         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
22808         files will be created before anything else.
22809
22810 2001-11-17  Paul Eggert  <eggert@twinsun.com>
22811
22812         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
22813         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
22814
22815 2001-11-17  Jim Meyering  <meyering@lucent.com>
22816
22817         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
22818         Prompted by a report from Bob Proulx.
22819
22820         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
22821         Instead, require UTILS_FUNC_MKSTEMP.
22822
22823 2001-11-17  Jim Meyering  <meyering@lucent.com>
22824
22825         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
22826         Now, that's done as part of AC_FUNC_STRTOD.
22827
22828 2001-11-17  Jim Meyering  <meyering@lucent.com>
22829
22830         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
22831         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
22832         rather than group writable.  Patch by Juan F. Codagnone.
22833
22834         * lib/readtokens.c: Remove explicit declarations of xmalloc and
22835         xrealloc, Instead, include "xalloc.h".
22836
22837         * lib/mountlist.c: Include unlocked-io.h after all system headers.
22838         Remove explicit declarations of xmalloc, xrealloc,
22839         and xstrdup.  Instead, include "xalloc.h".
22840
22841         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
22842         unlocked-io.h.
22843         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
22844         Likewise.
22845         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
22846
22847         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
22848         Reported by Padraig Brady.
22849
22850         * lib/mkstemp.c: #undef mkstemp.
22851         Include config.h.
22852         (rpl_mkstemp): Rename from mkstemp.
22853         Protoize.
22854
22855 2001-11-16  Jim Meyering  <meyering@lucent.com>
22856
22857         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
22858         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
22859         determine the amount of total physical memory, use pstat_getstatic.
22860         HPUX-11 doesn't define _SC_PHYS_PAGES.
22861         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
22862         If sysconf couldn't be used to determine the amount of available
22863         physical memory, use both pstat_getstatic and pstat_getdynamic.
22864         Based on a patch from Bob Proulx.
22865
22866 2001-11-10  Jim Meyering  <meyering@lucent.com>
22867
22868         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
22869         (jm_PREREQ): Use it.
22870
22871 2001-11-09  Jim Meyering  <meyering@lucent.com>
22872
22873         * m4/jm-macros.m4: Require autoconf-2.52f.
22874         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
22875         Use these AC_-prefixed names, not the AM_-prefixed ones.
22876
22877         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
22878
22879 2001-11-05  Jim Meyering  <meyering@lucent.com>
22880
22881         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
22882
22883 2001-11-04  Jim Meyering  <meyering@lucent.com>
22884
22885         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
22886         $DEFS.
22887
22888 2001-11-03  Jim Meyering  <meyering@lucent.com>
22889
22890         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
22891         of AC_DEFUN.
22892
22893         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
22894         know the name of the variable in the macro definition.
22895
22896 2001-11-03  Jim Meyering  <meyering@lucent.com>
22897
22898         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
22899         in argmatch_to_argument call.
22900
22901         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
22902         argument.
22903
22904         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
22905         e.g., a fault due to an attempt to free a NULL pointer.
22906
22907 2001-11-01  Jim Meyering  <meyering@lucent.com>
22908
22909         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
22910         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
22911
22912 2001-11-01  Jim Meyering  <meyering@lucent.com>
22913
22914         * lib/dirfd.c, lib/dirfd.h: New files.
22915         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
22916
22917         * lib/hash.c (hash_print) [TESTING]: Clean up.
22918
22919 2001-10-22  Paul Eggert  <eggert@twinsun.com>
22920
22921         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
22922         to avoid a warning if -Wall.
22923
22924 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
22925
22926         * README: New file
22927         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
22928         (per RMS's instructions, this is now the canonical source)
22929         * lgpl/, gpl/: New directories.
22930
22931 2001-10-21  Paul Eggert  <eggert@twinsun.com>
22932
22933         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
22934
22935 2001-10-21  Jim Meyering  <meyering@lucent.com>
22936
22937         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
22938         this code would end up calling gettext even in packages built
22939         with --disable-nls.
22940         * lib/getopt.c (_): Likewise.
22941         * lib/regex.c (_): Likewise.
22942
22943 2001-10-20  Paul Eggert  <eggert@twinsun.com>
22944
22945         * m4/error.m4 (jm_PREREQ_ERROR):
22946         Do not invoke AC_CHECK_FUNCS with strerror_r, as
22947         AC_FUNC_STRERROR_R does that.
22948         Check for strerror declaration.
22949
22950         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
22951         are supposed to have them these days.
22952         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
22953         Merge changes from latest Autoconf CVS.
22954         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
22955         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
22956         POSIX decided to standardize on the int flavor of strerror_r.
22957
22958 2001-10-20  Paul Eggert  <eggert@twinsun.com>
22959
22960         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
22961         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
22962         Use strerror_r that is only a macro, even if it is not a function.
22963         (strerror): Check for HAVE_DECL_STRERROR before declaring.
22964         (private_strerror): Use prototypes, not old-style function definition.
22965         (print_errno_message): New function.
22966         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
22967         char*-flavored one.
22968         (error_tail, error, error_at_line): Use it.
22969
22970 2001-10-11  Jim Meyering  <meyering@lucent.com>
22971
22972         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
22973         and quote_n (1, ... to avoid clobbering a buffer.
22974
22975 2001-10-05  Jim Meyering  <meyering@lucent.com>
22976
22977         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
22978         hash-pjw.h.
22979         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
22980         * lib/hash-pjw.h: New file.
22981
22982 2001-09-30  Jim Meyering  <meyering@lucent.com>
22983
22984         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
22985         `struct fsstat' has the `f_fstypename' member.
22986         Use that to define FS_TYPE, which is now used to make
22987         the getfsstat link test tighter.
22988
22989 2001-09-30  Jim Meyering  <meyering@lucent.com>
22990
22991         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
22992         Include <sys/ucred.h>, for Apple Darwin.
22993         Include sys/mount.h and sys/fs_types.h only if available.
22994         (FS_TYPE): Define.
22995         (read_filesystem_list): Use FS_TYPE.
22996
22997 2001-09-29  Paul Eggert  <eggert@twinsun.com>
22998
22999         * lib/exclude.c (excluded_filename): 0 -> false, since it's
23000         a boolean context.
23001
23002 2001-09-29  Jim Meyering  <meyering@lucent.com>
23003
23004         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
23005         [one-argument getmntent function]): Include stdio.h before mntent.h.
23006         SunOS 4.1.x needs it for the declaration of `FILE'.
23007         Patch by Volker Borchert.
23008
23009         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
23010         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
23011         sys/fs_types.h, and make the link-test for getfsstat guard #include
23012         directives with appropriate #if HAVE_*_H tests so that we can
23013         detect getfsstat on Apple Darwin1.3.7 systems.
23014         Reported by Nelson Beebe.
23015         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
23016
23017 2001-09-28  Paul Eggert  <eggert@twinsun.com>
23018
23019         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
23020         #defines strtoimax.  Also treat the other strto* functions
23021         like strtoimax.
23022
23023         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
23024         Check for strtoul and strtoumax,
23025         as those declarations are made even in the signed case.
23026         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
23027         Likewise, for strtol and strtoimax.
23028
23029 2001-09-28  Paul Eggert  <eggert@twinsun.com>
23030
23031         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
23032         #defines strtoimax.  Also treat the other strto* functions
23033         like strtoimax.
23034
23035         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
23036         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
23037         (strtoimax, strtoumax): Do not declare if already defined as a macro.
23038
23039 2001-09-26  Jim Meyering  <meyering@lucent.com>
23040
23041         Most macros in unlocked-io.h had the wrong number of arguments.
23042         * lib/gen-uio: New script.
23043         (USE_UNLOCKED_IO): Define to 1 if not already defined.
23044         * lib/unlocked-io.hin: Remove file.
23045         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
23046         rather than trying to embed it here.
23047         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
23048         Reported by Padraig Brady.
23049
23050 2001-09-25  Volker Borchert  <bt@teknon.de>
23051
23052         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
23053         `result'.
23054
23055 2001-09-24  Jim Meyering  <meyering@lucent.com>
23056
23057         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
23058
23059 2001-09-23  Jim Meyering  <meyering@lucent.com>
23060
23061         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
23062         instead of the mere test for existence of mntent.h.  The latter
23063         would get a false-positive on AIX 3.4 systems.
23064         In the outer getmntent if-block, don't die if neither of the getmntent
23065         tests succeeds.  Instead, just fall through and continue with the
23066         remaining tests.
23067
23068 2001-09-23  Jim Meyering  <meyering@lucent.com>
23069
23070         * lib/mountlist.c: Remove useless parentheses in #if directives.
23071         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
23072         the deprecated MOUNTED symbol is no longer defined in mntent.h.
23073
23074 2001-09-22  Jim Meyering  <meyering@lucent.com>
23075
23076         * m4/gettext.m4: New file.  From gettext.
23077         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
23078         * m4/progtest.m4: Likewise
23079         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
23080         * m4/glibc21.m4: Likewise.
23081
23082         * m4/libintl.m4: Remove.  No longer used.
23083
23084 2001-09-22  Jim Meyering  <meyering@lucent.com>
23085
23086         * lib/localcharset.c: Update from latest gettext.
23087         * lib/config.charset: Likewise.
23088
23089 2001-09-20  Jim Meyering  <meyering@lucent.com>
23090
23091         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
23092         strtoimax.
23093         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
23094         strtoumax.
23095
23096 2001-09-20  Jim Meyering  <meyering@lucent.com>
23097
23098         * lib/xstrtol.c (strtoimax): Guard declaration with
23099         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
23100         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
23101         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
23102         (strtoumax): Likewise, for completeness (it wasn't necessary).
23103
23104 2001-09-17  Paul Eggert  <eggert@twinsun.com>
23105
23106         * lib/strtoimax.c (HAVE_LONG_LONG):
23107         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
23108         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
23109         to work around bug in IBM C compiler.
23110
23111 2001-09-17  Jim Meyering  <meyering@lucent.com>
23112
23113         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
23114         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
23115         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
23116         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
23117         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
23118         whenever the right hand side need not be expanded by the shell.
23119
23120 2001-09-16  Paul Eggert  <eggert@twinsun.com>
23121
23122         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
23123         library.  It's not correct, as some older glibcs are buggy.
23124         fnmatch wasn't fixed until glibc 2.2.
23125
23126         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
23127         special shell magic here.
23128
23129 2001-09-16  Jim Meyering  <meyering@lucent.com>
23130
23131         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
23132         * m4/jm-macros.m4: Require it.
23133
23134 2001-09-16  Jim Meyering  <meyering@lucent.com>
23135
23136         * lib/mkdir.c: New file.
23137
23138 2001-09-15  Jim Meyering  <meyering@lucent.com>
23139
23140         * m4/jm-macros.m4: Check for help2man.
23141
23142 2001-09-11  Jim Meyering  <meyering@lucent.com>
23143
23144         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
23145         The body, by Paul Eggert, was moved here from configure.in.
23146         * m4/jm-macros.m4: Require UTILS_HOST_OS.
23147
23148 2001-09-04  Paul Eggert  <eggert@twinsun.com>
23149
23150         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
23151         (jm_PREREQ): Use it.
23152
23153 2001-09-04  Paul Eggert  <eggert@twinsun.com>
23154
23155         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
23156         Use ssize_t, not int, to store result of readlink.
23157         Check for ssize_t overflow as well as size_t overflow,
23158         as POSIX says the result of readlink is implementation-defined
23159         when ssize_t overflows.
23160         Remove unnecessary cast to char*.
23161         Use free+malloc instead of realloc, as the storage doesn't need
23162         to be preserved and it's clearer and can be more efficient that way.
23163         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
23164         * lib/xreadlink.h (xreadlink): Update prototype.
23165
23166 2001-09-04  Paul Eggert  <eggert@twinsun.com>
23167
23168         * lib/xgetcwd.c: Revert some of the previous change; intead,
23169         fix the HAVE_GETCWD_NULL code to behave more like the
23170         !HAVE_GETCWD_NULL code used to.
23171
23172         Include "xalloc.h".
23173         (xgetcwd): Do not return NULL when memory is exhausted; instead,
23174         invoke xalloc_die.
23175
23176 2001-09-03  Paul Eggert  <eggert@twinsun.com>
23177
23178         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
23179         sys/param.h, as pathmax.h includes them.
23180
23181 2001-09-03  Paul Eggert  <eggert@twinsun.com>
23182
23183         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
23184         (jm_PREREQ_XGETCWD): New macro.
23185
23186         * m4/getcwd.m4: New file.
23187
23188 2001-09-03  Paul Eggert  <eggert@twinsun.com>
23189
23190         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
23191         like the HAVE_GETCWD_NULL code.
23192         Include pathmax.h if not HAVE_GETCWD.
23193         Do not include xalloc.h.
23194         (INITIAL_BUFFER_SIZE): New symbol.
23195         Do not use xmalloc / xrealloc, since the caller is responsible for
23196         handling errors.  Preserve errno around `free' during failure.
23197         Do not overrun buffer when using getwd.
23198
23199 2001-09-03  Paul Eggert  <eggert@twinsun.com>
23200
23201         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
23202         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
23203         getcwd (NULL, 0).
23204
23205 2001-09-03  Paul Eggert  <eggert@twinsun.com>
23206
23207         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
23208         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
23209         spotted by Jim Meyering.
23210
23211 2001-09-03  Jim Meyering  <meyering@lucent.com>
23212
23213         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
23214         failure.
23215
23216 2001-09-02  Jim Meyering  <meyering@lucent.com>
23217
23218         * lib/error.c: Update from GNU libc.
23219
23220 2001-09-01  Jim Meyering  <meyering@lucent.com>
23221
23222         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
23223         Used by df.
23224
23225 2001-09-01  Jim Meyering  <meyering@lucent.com>
23226
23227         * lib/xreadlink.c: New file.
23228         * lib/xreadlink.h: New file.
23229         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
23230         xreadlink.h.
23231
23232         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
23233         doesn't conflict with sparc Solaris 7's definition in
23234         /usr/include/sys/int_types.h.
23235
23236         * lib/exclude.c: Use `""', not `<>' to #include non-system header
23237         files.
23238         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
23239         and strncasecmp as r-values.  Unixware didn't have declarations.
23240
23241 2001-08-31  Paul Eggert  <eggert@twinsun.com>
23242
23243         * lib/xstrtol.h: Add copyright notice.
23244         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
23245         LONGINT_INVALID_SUFFIX_CHAR.
23246
23247 2001-08-31  Paul Eggert  <eggert@twinsun.com>
23248
23249         * lib/xstrtol.c (strtoimax): New decl.
23250
23251 2001-08-31  Paul Eggert  <eggert@twinsun.com>
23252
23253         * lib/xgetcwd.c: Don't include pathmax.h.
23254         Include stdlib.h and unistd.h if available.
23255         Include xalloc.h.
23256         (xmalloc, xstrdup, free): Remove decls.
23257         (xgetcwd): Don't assume sizes fit in unsigned.
23258         Check for overflow when computing sizes.
23259         Simplify reallocation code.
23260
23261 2001-08-31  Paul Eggert  <eggert@twinsun.com>
23262
23263         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
23264         a directory's st_size can have an arbitrary value, so the old
23265         usage could waste an arbitrary amount of memory.  All uses
23266         changed.
23267         * lib/savedir.h: Update prototype.
23268
23269 2001-08-31  Paul Eggert  <eggert@twinsun.com>
23270
23271         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
23272
23273         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
23274         old strtoimax.c.
23275
23276         Also, make the following further changes to make this file's
23277         configuration more similar to that of strtol.c:
23278         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
23279         (strtoumax, uintmax_t, strtoull, strtol): Remove.
23280         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
23281         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
23282         changed to signed values.
23283
23284         And make the following changes as well:
23285         Fix copyright notice, as 1999 was missing.
23286         (verify): New macro.
23287         (strtoimax): Check sizes at compile-time, not run-time.
23288         Prefer strtol to strtoll if both work.
23289         (main): Remove; it was not that useful and was a pain to maintain.
23290
23291         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
23292
23293 2001-08-31  Jim Meyering  <meyering@lucent.com>
23294
23295         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
23296         Use an initial, malloc'd, buffer of length 128 rather than
23297         a statically allocated one of length 1024.
23298
23299 2001-08-30  Paul Eggert  <eggert@twinsun.com>
23300
23301         Simplify code, partly by assuming autoconf 2.52 semantics.
23302
23303         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
23304
23305         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
23306         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
23307         All uses removed.
23308         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
23309         Move AC_REQUIRE to next-to-top level, to avoid confusion.
23310         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
23311         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
23312         jm_AC_HEADER_INTTYPES_H.
23313         * m4/jm-macros.m4 (jm_MACROS): Likewise.
23314
23315         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
23316
23317         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
23318         Quote first arg of AC_DEFUN.
23319         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
23320         since they are needed to parse the include file even if we need
23321         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
23322         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
23323         but with opposite signedness.
23324
23325 2001-08-30  Paul Eggert  <eggert@twinsun.com>
23326
23327         Merge 'exclude' changes from tar 1.13.22.
23328         This fixes one or two unlikely storage allocation overflow bugs,
23329         but doesn't change user-visible behavior otherwise.
23330
23331 2001-08-30  Paul Eggert  <eggert@twinsun.com>
23332
23333         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
23334         (jm_PREREQ_EXCLUDE): New macro.
23335
23336 2001-08-30  Paul Eggert  <eggert@twinsun.com>
23337
23338         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
23339         tm to be declared.
23340
23341 2001-08-30  Paul Eggert  <eggert@twinsun.com>
23342
23343         * lib/hash.c: Remove '2001' from copyright notice.
23344
23345 2001-08-30  Paul Eggert  <eggert@twinsun.com>
23346
23347         * lib/full-write.h: New file.
23348         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
23349         * lib/full-write.c: Correct credits, as cccp.c no longer
23350         exists and anyway it was so heavily changed from the old cccp
23351         code as to be unrecognizable.  Include full-write.h.
23352         (full_write) Return size_t, with short writes meaning failure.
23353         All callers changed.  This fixes a bug with large buffers
23354         on 64-bit hosts.
23355         * lib/utime.c: Include full-write.h.
23356
23357 2001-08-30  Paul Eggert  <eggert@twinsun.com>
23358
23359         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
23360         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
23361         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
23362         Include if available.
23363         (<xalloc.h>): Include
23364         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
23365         (verify): New macro.  Use it to verify that EXCLUDE macros do not
23366         collide with FNM macros.
23367         (struct patopts): New struct.
23368         (struct exclude): Use it, as exclude patterns now come with options.
23369         (new_exclude): Support above changes.
23370         (new_exclude, add_exclude_file):
23371         Initial size must now be a power of two to simplify overflow checking.
23372         (free_exclude, fnmatch_no_wildcards): New function.
23373         (excluded_filename): No longer requires options arg, as the options
23374         are determined by add_exclude.  Now returns bool, not int.
23375         (excluded_filename, add_exclude):
23376         Add support for the fancy new exclusion options.
23377         (add_exclude, add_exclude_file): Now takes int options arg.
23378         Check for arithmetic overflow when computing sizes.
23379         (add_exclude_file): xrealloc might modify errno, so don't
23380         realloc until after errno might be used.
23381
23382         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
23383         New macros.
23384         (free_exclude): New decl.
23385         (add_exclude, add_exclude_file): Now takes int options arg.
23386         (excluded_filename): No longer requires options arg, as the options
23387         are determined by add_exclude.  Now returns bool, not int.
23388
23389 2001-08-30  Paul Eggert  <eggert@twinsun.com>
23390
23391         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
23392
23393 2001-08-27  Jim Meyering  <meyering@lucent.com>
23394
23395         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
23396
23397         * lib/version-etc.c (N_): Remove definition.
23398         Revert most of last change.
23399         Instead, simply don't mark the `Copyright...' string for translation.
23400         Based on advice from Paul Eggert.
23401
23402         * lib/strtoxmax.c: Tweak comment.
23403
23404 2001-08-26  Jim Meyering  <meyering@lucent.com>
23405
23406         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
23407
23408         * m4/xstrtoimax.m4: New file.
23409         * m4/xstrtoumax.m4: Add comments explaining why we
23410         AC_REPLACE_FUNCS(strtol).
23411
23412 2001-08-26  Jim Meyering  <meyering@lucent.com>
23413
23414         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
23415         of copyright with `%s' so translators don't get an untranslated
23416         message in 2002.
23417         (COPYRIGHT_YEAR): Define.
23418         (version_etc): Use fprintf rather than fputs.
23419         Suggestion from Ulrich Drepper.
23420
23421         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
23422
23423         * lib/strtoll.c: New file, from GNU libc.
23424         * lib/xstrtoimax.c: New file.
23425
23426         * lib/xstrtol.h: Add xstrtoimax.
23427         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
23428         * lib/strtoimax.c: New file.  Likewise, but first define
23429         STRTOUXMAX_SIGNED.
23430
23431         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
23432         ...
23433         * lib/strtoxmax.c: ... then renamed to this.
23434
23435 2001-08-18  Paul Eggert  <eggert@twinsun.com>
23436
23437         * m4/inttypes.m4: Add AC_PREREQ(2.13).
23438         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
23439         (jm_AC_TYPE_INTMAX_T): New macro.
23440         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
23441
23442         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
23443
23444         * m4/longlong.m4: Renamed from ulonglong.m4.
23445         * m4/inttypes.m4: Renamed from inttypes_h.m4.
23446         * m4/uintmax_t.m4: Removed.
23447
23448 2001-08-13  Paul Eggert  <eggert@twinsun.com>
23449
23450         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
23451         Port to Solaris 8, where 'sed' requires a space after the 'r'
23452         command, and where sh dislikes "$/".  Clean up the spacing a bit.
23453         Redirect output to $tmp just once.
23454
23455 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
23456
23457         * lib/addext.c (<errno.h>): Include.
23458         (errno): Declare if not defined.
23459         (addext): Work correctly when pathconf returns -1 and leaves
23460         errno alone because there is no limit.  Also, work even if
23461         pathconf returns a value greater than SIZE_MAX.
23462
23463 2001-08-12  Jim Meyering  <meyering@lucent.com>
23464
23465         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
23466         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
23467         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
23468         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
23469         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
23470         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
23471         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
23472         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
23473         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
23474         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
23475         utime.m4, utimes.m4, xstrtoumax.m4:
23476         Quote the first argument in each use of AC_DEFUN.
23477
23478 2001-08-12  Jim Meyering  <meyering@lucent.com>
23479
23480         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
23481         Simply `return getcwd (NULL, 0);'.
23482         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
23483         Use 1300 as initial value for length, not PATH_MAX.
23484
23485         * lib/pathmax.h: Clean up cpp syntax.
23486
23487 2001-08-12  Jim Meyering  <meyering@lucent.com>
23488
23489         * lib/gettimeofday.c: New file.
23490         * lib/gtod.h: New file.
23491         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
23492
23493 2001-08-05  Jim Meyering  <meyering@lucent.com>
23494
23495         * m4/jm-macros.m4: Require autoconf-2.52.
23496
23497 2001-08-04  Jim Meyering  <meyering@lucent.com>
23498
23499         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
23500         stmt, to get in sync with glibc.
23501
23502 2001-08-03  Paul Eggert  <eggert@twinsun.com>
23503
23504         The following changes are from gettext 0.10.39 as maintained by
23505         Bruno Haible.
23506
23507         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
23508         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
23509         with inverted sense.  All uses changed.
23510
23511         * lib/mbswidth.c: Don't include <limits.h>.
23512         Include <stdlib.h> and <string.h> unconditionally.
23513         (iswcntrl, mbsinit, ISCNTRL): New macros.
23514         (mbsnwidth): Use K&R style function declarations.
23515         Don't bother checking for MB_LEN_MAX == 1, since the compiler
23516         can optimize it when MB_CUR_MAX == 1.
23517         The width of control characters is zero, not 1.
23518
23519 2001-08-03  Paul Eggert  <eggert@twinsun.com>
23520
23521         The following changes are from gettext 0.10.39 as maintained by
23522         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
23523
23524         * m4/codeset.m4: Upgrade to serial AM1.
23525         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
23526         all uses changed.  Quote first arg of AC_DEFUN.
23527         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
23528
23529         * m4/iconv.m4: Upgrade to serial AM2.
23530         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
23531         Add --with-libconv-prefix.
23532         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
23533         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
23534         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
23535         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
23536         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
23537
23538         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
23539         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
23540         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
23541         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
23542         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
23543         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
23544         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
23545         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
23546         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
23547
23548         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
23549         string.h any more.
23550
23551         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
23552         not the default value.
23553
23554         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
23555         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
23556         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
23557         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
23558         Also check for iswcntrl, used for wcwidth fallback.
23559         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
23560         to Autoconf 2.13.
23561
23562 2001-08-03  Jim Meyering  <meyering@lucent.com>
23563
23564         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
23565         as it was in the original.  Reported by Paul Eggert.
23566
23567 2001-07-16  Jim Meyering  <meyering@lucent.com>
23568
23569         * m4/gettimeofday.m4: New file.
23570         Prompted by a report from Bernhard Baehr.
23571
23572 2001-07-15  Jim Meyering  <meyering@lucent.com>
23573
23574         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
23575         stuff. Now it's in ../Makefile.cfg.
23576
23577 2001-07-15  Jim Meyering  <meyering@lucent.com>
23578
23579         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
23580         (BUILT_SOURCES): Add unlocked-io.h.
23581         (io_functions): Define.
23582         (unlocked-io.h): New rule.
23583         (DISTCLEANFILES): Add unlocked-io.h.
23584         (all-local): Depend on unlocked-io.h, to ensure it is created.
23585
23586         * lib/unlocked-io.hin: New file
23587
23588         * lib/regex.c: Update from glibc.
23589
23590 2001-07-05  Jim Meyering  <meyering@lucent.com>
23591
23592         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
23593         recommendation.
23594         (libfetish_a_SOURCES): Put all .h files here instead.
23595         Remove a thus-exposed (better checks in automake) duplicate and
23596         two unnecessary .h files.
23597
23598 2001-07-04  Jim Meyering  <meyering@lucent.com>
23599
23600         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
23601         that generates jm-glibc-io.m4 so that it doesn't trigger any make
23602         distcheck failure.
23603
23604 2001-07-02  Jim Meyering  <meyering@lucent.com>
23605
23606         The following changes were prompted by suggestions from Bruno Haible.
23607
23608         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
23609         is now generated.
23610         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
23611         definition of EXTRA_DIST.
23612         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
23613         ensure that the generated file is created/updated whenever the list
23614         of $(unlocked_functions) is changed.
23615         (jm-glibc-io.m4): New rule.
23616         (unlocked-io.h): New rule -- currently unused.
23617
23618 2001-06-24  Jim Meyering  <meyering@lucent.com>
23619
23620         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
23621         unmatched right bracket, rather than kludging it with an extra,
23622         falsely-matching quote in a comment.  Patch by Akim Demaille.
23623
23624 2001-06-11  Jim Meyering  <meyering@lucent.com>
23625
23626         * lib/regex.c: Update from GNU libc.
23627
23628 2001-05-27  Jim Meyering  <meyering@lucent.com>
23629
23630         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
23631         Check for ut_type in struct utmp.
23632
23633 2001-05-27  Jim Meyering  <meyering@lucent.com>
23634
23635         * lib/readutmp.h (UT_TYPE): Define.
23636
23637 2001-05-24  Jim Meyering  <meyering@lucent.com>
23638
23639         * lib/argmatch.c: Include "quote.h".
23640         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
23641         quote function.  Reported by Göran Uddeborg.
23642
23643 2001-05-22  Jim Meyering  <meyering@lucent.com>
23644
23645         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
23646         now that we use the package-supplied version unconditionally.
23647         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
23648
23649 2001-05-21  Jim Meyering  <meyering@lucent.com>
23650
23651         * m4/regex.m4: Change a couple backticks to single quotes to avoid
23652         shell syntax errors.
23653
23654 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
23655
23656         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
23657
23658 2001-05-20  Paul Eggert  <eggert@twinsun.com>
23659
23660         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
23661         Don't bother to check library strftime, since
23662         we'll be using our own my_strftime function anyway.
23663         Define my_strftime instead of strftime.
23664
23665 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
23666
23667         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
23668         which is not yet declared.
23669
23670 2001-05-15  Jim Meyering  <meyering@lucent.com>
23671
23672         * m4/regex.m4: Use proper quoting so brackets appear in the test
23673         program.
23674         Reported by, and with help from, Bruno Haible.
23675
23676 2001-05-13  Jim Meyering  <meyering@lucent.com>
23677
23678         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
23679         undefined.
23680
23681 2001-05-11  Paul Eggert  <eggert@twinsun.com>
23682
23683         dirname code cleanup.  base_name now behaves more compatibly
23684         with POSIX basename when given file names that have trailing
23685         slashes, and similarly for dir_name.  Add new primitives
23686         base_len and dir_len.  Put the directory-name-related decls
23687         into dirname.h.
23688
23689         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
23690         * lib/backupfile.c (base_name): Likewise.
23691         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
23692         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
23693         * lib/makepath.c (strip_trailing_slashes): Likewise.
23694         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
23695         ISSLASH): Likewise.
23696         * lib/rename.c (strip_trailing_slashes): Likewise.
23697         * lib/same.c (base_name): Likewise.
23698         * lib/stripslash.c (ISSLASH): Likewise.
23699
23700         * lib/addext.c: Include <dirname.h> after size_t is defined.
23701         * lib/backupfile.c: Likewise.
23702
23703         * lib/addext.c (addext): Use base_len to trim redundant
23704         trailing slashes instead of doing it ourselves.
23705         But do not trim the last slash if it is not redundant.
23706
23707         * lib/backupfile.c (find_backup_file_name,
23708         max_backup_version): Use base_len instead of rolling it ourselves.
23709         Handle the case of "" and (on DOS) "C:" correctly.
23710
23711         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
23712         needed. Include <string.h>, <dirname.h>.
23713         (base_name): Allow file names ending in slashes, other than names
23714         that are all slashes.  In this case, return the basename followed
23715         by the slashes.  This is more general, and can be used in places
23716         where the original base_name purposely had an assertion failure.
23717         (base_len): New function.
23718
23719         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
23720         Do not include <assert.h>; no longer needed.
23721         Include xalloc.h.
23722         (memrchr): Remove decl.
23723         (dir_name_r): Remove.
23724         (dir_len): Renamed from dirlen.  All callers changed.
23725         Rewrite in terms of base_name, for simplicity and consistency.
23726         (dir_name): Never return NULL.  All callers changed.
23727         Do not include <stdlib.h> in test program; no longer needed.
23728         return 0; is fine for test program.
23729
23730         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
23731         New macros.
23732         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
23733
23734         * lib/path-concat.c (path_concat): Use base_len to compute
23735         base length, not strlen; this means we cannot rely on memcpy
23736         to null-terminate.
23737
23738         * lib/same.c (STREQ): Remove.
23739         (same_name): Handle the case where the basename ends in trailing '/'.
23740
23741         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
23742         a slash was stripped.  Do not strip the last slash after a
23743         file system prefix.
23744
23745 2001-05-11  Paul Eggert  <eggert@twinsun.com>
23746
23747         * lib/Makefile.am (libfetish_a_SOURCES):
23748         Add strftime.c, since we now compile it on all hosts.
23749
23750         * lib/strftime.c (my_strftime):
23751         Define to nstrftime if emacs, but only if my_strftime is not defined.
23752         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
23753         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
23754         Add one more extra argument: a nanoseconds value.
23755         All uses changed.
23756         (ns): New macro.
23757         (my_strftime function): Add %N format.
23758         (emacs_strftimeu): Renamed from emacs_strftime,
23759         with extra ut argument.
23760
23761 2001-05-09  Paul Eggert  <eggert@twinsun.com>
23762
23763         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
23764
23765 2001-04-21  Jim Meyering  <meyering@lucent.com>
23766
23767         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
23768         doesn't interfere.
23769
23770 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
23771
23772         * m4/ftruncate.m4: Check for chsize.
23773         Link with ftruncate.o unconditionally if ftruncate is missing.
23774         This was required when cross-compiling to i586-mingw32msvc.
23775
23776 2001-04-08  Jim Meyering  <meyering@lucent.com>
23777
23778         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
23779         recomputed; that's necessary when the offset spans a DST transition.
23780         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
23781
23782 2001-04-02  Jim Meyering  <meyering@lucent.com>
23783
23784         * lib/regex.h, regex.c: Update from GNU libc.
23785
23786 2001-03-24  Jim Meyering  <meyering@lucent.com>
23787
23788         * m4/jm-macros.m4: Require autoconf-2.49d.
23789
23790 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
23791
23792         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
23793
23794 2001-03-19  Paul Eggert  <eggert@twinsun.com>
23795
23796         * lib/version-etc.c (version_etc_copyright): Update to 2001.
23797
23798 2001-03-17  Jim Meyering  <meyering@lucent.com>
23799
23800         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
23801         now that the version in autoconf is equivalent.
23802         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
23803
23804         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
23805         Suggestion from Akim Demaille.
23806
23807         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
23808         (jm_PREREQ_TEMPNAME): New function.
23809
23810 2001-03-16  Paul Eggert  <eggert@twinsun.com>
23811
23812         * lib/tempname.c (uint64_t): Define to uintmax_t if
23813         not defined, and if UINT64_MAX is not defined.
23814         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
23815         Reported by John David Anglin.
23816
23817 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
23818
23819         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
23820         resolve alias if codeset is empty.
23821         * lib/config.charset (BeOS): Use wildcard syntax.
23822
23823 2001-03-13  Jim Meyering  <meyering@lucent.com>
23824
23825         * lib/path-concat.c (path_concat)
23826         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
23827         concatenating e.g., `C:' and `foo'.
23828         From Bruno Haible.
23829
23830 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
23831
23832         * lib/localcharset.c (locale_charset): Don't use
23833         setlocale(LC_CTYPE,NULL). Don't return NULL.
23834         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
23835
23836 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
23837
23838         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
23839         support for DOS/DJGPP.
23840
23841 2001-03-01  Paul Eggert  <eggert@twinsun.com>
23842
23843         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
23844         lacks mkstemp.  Compile our own tempname.c if we compile our own
23845         mkstemp.c, as mkstemp relies on tempname.
23846
23847 2001-03-01  Jim Meyering  <meyering@lucent.com>
23848
23849         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
23850         AH_VERBATIM really does output its argument verbatim.
23851
23852 2001-02-28  Paul Eggert  <eggert@twinsun.com>
23853
23854         * lib/Makefile.am (libfetish_a_SOURCES):
23855         Add dup-safer.c, fopen-safer.c.
23856         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
23857
23858         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
23859         * lib/unistd-safer.h: New files.
23860
23861 2001-02-25  Paul Eggert  <eggert@twinsun.com>
23862
23863         The mkstemp replacement is taken from glibc 2.2.2, with some
23864         portability fixes for use outside glibc, as follows:
23865
23866         * lib/tempname.c (struct_stat64): New macro.
23867         (direxists, __gen_tempname): Use it.
23868         This avoids a portability problem with Solaris 8.
23869
23870         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
23871         (<stddef.h>, <stdint.h>, <string.h>):
23872         Include only if STDC_HEADERS || _LIBC.
23873         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
23874         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
23875         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
23876         (__set_errno): Define this macro if <errno.h> doesn't.
23877         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
23878         Define these macros if <stdio.h> doesn't.
23879         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
23880         Define these macros if <sys/stat.h>
23881         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
23882         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
23883         __xstat64): Define if not _LIBC.
23884         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
23885         (__gen_tempname): Invoke gettimeofday only if
23886         HAVE_GETTIMEOFDAY || _LIBC;
23887         otherwise, fall back on plain "time".
23888         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
23889
23890         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
23891
23892         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
23893
23894 2001-02-18  Paul Eggert  <eggert@twinsun.com>
23895
23896         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
23897
23898 2001-02-17  Paul Eggert  <eggert@twinsun.com>
23899
23900         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
23901         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
23902         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
23903         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
23904
23905 2001-02-17  Paul Eggert  <eggert@twinsun.com>
23906
23907         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
23908         Remove workaround macros for hosts that have mbrtowc but not
23909         mbstate_t, as we now insist on proper declarations for both
23910         before using mbrtowc.
23911
23912 2001-02-17  Jim Meyering  <meyering@lucent.com>
23913
23914         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
23915         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
23916         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
23917         UnixWare 7.1.1.
23918
23919         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
23920         rather than AC_CACHE_VAL.
23921
23922 2001-02-17  Jim Meyering  <meyering@lucent.com>
23923
23924         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
23925         around included file name.
23926
23927         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
23928
23929         * lib/strftime.c: Update from GNU libc (the only changes were to
23930         comments).
23931
23932 2001-02-17  Jim Meyering  <meyering@lucent.com>
23933
23934         * lib/regex.c: Update from libc.
23935
23936 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
23937
23938         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
23939         clash.
23940
23941 2001-02-16  Paul Eggert  <eggert@twinsun.com>
23942
23943         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
23944         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
23945         Reported by Mark Hounschell via Paul Eggert.
23946
23947 2001-02-07  Jim Meyering  <meyering@lucent.com>
23948
23949         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
23950
23951 2001-02-05  Jim Meyering  <meyering@lucent.com>
23952
23953         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
23954         it includes the patch required for `large file' support with at least
23955         HP-UX's 10.20 /bin/cc.
23956
23957 2001-02-03  Jim Meyering  <meyering@lucent.com>
23958
23959         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
23960         AS_IF, now that it works once again (mysteriously).
23961         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
23962
23963 2001-01-30  Jim Meyering  <meyering@lucent.com>
23964
23965         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
23966         * m4/chown.m4: Rename conftestchown to conftest.chown.
23967         * m4/rename.m4: s/conftestdir/conftest.d1/ and
23968         s/conftestdir2/conftest.d2/.
23969         * m4/utimes.m4: s/conftestdata/conftest.data/
23970         Inspired by Pavel Roskin's change in autoconf.
23971
23972 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
23973
23974         * lib/config.charset: Update for FreeBSD 4.2.
23975
23976 2001-01-27  Jim Meyering  <meyering@lucent.com>
23977
23978         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
23979         a use of AS_IF.
23980         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
23981
23982 2001-01-26  Jim Meyering  <meyering@lucent.com>
23983
23984         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
23985         quotearg.c includes it.
23986
23987 2001-01-26  Jim Meyering  <meyering@lucent.com>
23988
23989         * lib/quotearg.c: Include stddef.h.
23990         * lib/quote.c: Include stddef.h.
23991         Reported by Axel Kittenberger.
23992
23993         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
23994         line in double quotes so that it evokes a better diagnostic.
23995         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
23996         Reported by Axel Kittenberger.
23997
23998 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
23999
24000         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
24001         as if it was a `charset'.
24002
24003 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
24004
24005         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
24006         has const.
24007
24008 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
24009
24010         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
24011         to avoid a warning.  Add back 'const' to inptr.
24012
24013 2001-01-20  Jim Meyering  <meyering@lucent.com>
24014
24015         Be sure that headers are checked before used in code compiled
24016         for the type checks.
24017         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
24018         In place of that, invoke jm_CHECK_ALL_TYPES.
24019         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
24020         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
24021         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
24022         The check for ssize_t was mistakenly run before the test for unistd.h.
24023
24024         The configure-time check for stdbool.h was missing.
24025         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
24026         (jm_PREREQ_HASH): New function.
24027
24028 2001-01-17  Jim Meyering  <meyering@lucent.com>
24029
24030         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
24031         for autoconf-2.49c.
24032         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
24033
24034 2001-01-16  Jim Meyering  <meyering@lucent.com>
24035
24036         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
24037         From Bruno Haible.
24038
24039 2001-01-14  Jim Meyering  <meyering@lucent.com>
24040
24041         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
24042         foo and bar.  Create conftestdir/ in the script, not in the C code.
24043         Remove directories in the script, not in the C code.
24044         Remove conftestdir{,2} before trying to create the directory.
24045         Make the entire configure script fail if the mkdir fails.
24046
24047 2001-01-14  Jim Meyering  <meyering@lucent.com>
24048
24049         * lib/rename.c: New file.  From Volker Borchert.
24050         Include stdlib.h, string.h or strings.h, and xalloc.h.
24051         Use strip_trailing_slashes rather than open-coding it.
24052
24053 2001-01-03  Paul Eggert  <eggert@twinsun.com>
24054
24055         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
24056
24057 2001-01-03  Jim Meyering  <meyering@lucent.com>
24058
24059         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
24060         of local `inptr' to avoid warning with some system declarations of
24061         iconv.
24062
24063 2001-01-02  Volker Borchert  <bt@teknon.de>
24064
24065         * m4/rename.m4: New file.
24066         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
24067
24068 2001-01-01  Jim Meyering  <meyering@lucent.com>
24069
24070         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
24071         even on systems with utmpx.h.  It's necessary for the declaration of
24072         utmp's ut_user member.  Reported by Andreas Jaeger.
24073
24074         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
24075         available. They are required for the declarations of getgrgid and
24076         getpwuid resp.
24077         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
24078         Reported by Andreas Jaeger.
24079
24080 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
24081
24082         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
24083         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
24084         so `make install' also works in VPATH builds.
24085
24086 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
24087
24088         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
24089         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
24090         can be used in subdirectories.
24091
24092 2000-12-29  Paul Eggert  <eggert@twinsun.com>
24093
24094         * lib/modechange.c: Do not assume that mode_t uses the
24095         traditional octal encoding.  E.g. "chmod 1 FOO" should set
24096         the other-execute bit of FOO even if S_IXOTH != 1.
24097
24098         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
24099         WOTH, XOTH, ALLM): New macros.
24100         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
24101          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
24102         Use them.
24103         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
24104         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
24105         (mode_compile):
24106         No need to use uintmax_t; unsigned long is long enough.
24107         Don't bother to get suffix since we don't use it.
24108
24109 2000-12-26  Jim Meyering  <meyering@lucent.com>
24110
24111         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
24112         better with autoheader.
24113
24114 2000-12-24  Jim Meyering  <meyering@lucent.com>
24115
24116         * lib/hash.c (is_prime): Return explicit boolean values.
24117         (hash_get_first): Return NULL to appease Irix5.6's 89.
24118         Reported by Nelson Beebe.
24119
24120 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
24121
24122         * lib/localcharset.c (locale_charset): Add support for Win32.
24123
24124 2000-12-18  Paul Eggert  <eggert@twinsun.com>
24125
24126         * lib/physmem.h, lib/physmem.c: New files.
24127
24128         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
24129         (noinst_HEADERS): Add physmem.h.
24130
24131         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
24132         't' for compatibility with Solaris 8 sort.
24133
24134 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
24135
24136         * lib/config.charset: Add support for BeOS.
24137
24138 2000-12-17  Jim Meyering  <meyering@lucent.com>
24139
24140         * m4/dos.m4 (jm_AC_DOS): New file and macro.
24141         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
24142
24143 2000-12-16  Jim Meyering  <meyering@lucent.com>
24144
24145         This bug had a serious impact on chown: `chown N:M FILE' (for integer
24146         N and M) would have treated it like `chown N:N FILE'.
24147
24148         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
24149
24150 2000-12-16  Jim Meyering  <meyering@lucent.com>
24151
24152         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
24153         SHELLS_FILE to a file name that's useful on djgpp systems.
24154         Include stdlib.h.
24155         (ADDITIONAL_DEFAULT_SHELLS): Define.
24156         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
24157         Based mostly on a patch from Prashant TR.
24158
24159 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
24160
24161         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
24162         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
24163         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
24164
24165 2000-12-08  Andreas Schwab  <schwab@suse.de>
24166
24167         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
24168         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
24169
24170 2000-12-07  Jim Meyering  <meyering@lucent.com>
24171
24172         * lib/stripslash.c (ISSLASH): Define.
24173         (strip_trailing_slashes): Use ISSLASH rather than comparing against
24174         `/'.
24175         From Prashant TR.
24176
24177         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
24178         (dir_name_r): Declare this function as static.
24179         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
24180         manifest itself on a name containing a mix of slashes and
24181         backslashes.
24182         Make this function work with names starting with a DOS-style
24183         drive letter and colon prefix.
24184         (dir_name): Append `.' if necessary.
24185         Based mostly on patches from Prashant TR and Eli Zaretskii.
24186
24187         * lib/dirname.h (dir_name_r): Remove prototype.
24188
24189 2000-12-06  Paul Eggert  <eggert@twinsun.com>
24190
24191         * m4/off_t-format.m4: Remove this file.
24192         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
24193
24194 2000-12-06  Jim Meyering  <meyering@lucent.com>
24195
24196         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
24197         replacement strtoull, we may well need the replacement strtoul, too.
24198         Check for declarations of strtoul and strtoull.
24199         Check for strtol.  Mainly as a cue to cause automake to include
24200         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
24201         Check for limits.h -- strtol.c needs it.
24202
24203 2000-12-05  Jim Meyering  <meyering@lucent.com>
24204
24205         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
24206
24207 2000-12-04  Jim Meyering  <meyering@lucent.com>
24208
24209         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
24210         Also include memory.h, stdlib.h, unistd.h if appropriate.
24211         Reported by Andreas Jaeger (conflicting declaration of malloc).
24212
24213 2000-12-02  Jim Meyering  <meyering@lucent.com>
24214
24215         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
24216         * m4/jm-macros.m4 (jm_MACROS): require it.
24217
24218 2000-12-02  Jim Meyering  <meyering@lucent.com>
24219
24220         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
24221
24222 2000-12-01  Paul Eggert  <eggert@twinsun.com>
24223
24224         * lib/memrchr.c: Include <config.h> before any system include file.
24225
24226 2000-11-30  Jim Meyering  <meyering@lucent.com>
24227
24228         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
24229
24230 2000-11-30  Jim Meyering  <meyering@lucent.com>
24231
24232         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
24233
24234 2000-11-29  Paul Eggert  <eggert@twinsun.com>
24235
24236         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
24237
24238 2000-11-26  Jim Meyering  <meyering@lucent.com>
24239
24240         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
24241
24242 2000-11-22  Paul Eggert  <eggert@twinsun.com>
24243
24244         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
24245         size of (size_t) -1; it's not portable.
24246
24247 2000-11-17  Jim Meyering  <meyering@lucent.com>
24248
24249         * lib/strstr.c: Update from GNU libc.
24250
24251 2000-11-17  Akim Demaille  <akim@epita.fr>
24252
24253         * lib/obstack.h: Formatting changes.
24254         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
24255         prevent type checking.
24256         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
24257         cast the value to (void *): assigning a `foo *' to a `void *'
24258         variable is valid.
24259         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
24260
24261 2000-11-16  Jim Meyering  <meyering@lucent.com>
24262
24263         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
24264
24265 2000-11-11  Jim Meyering  <meyering@lucent.com>
24266
24267         * lib/error.c: Add a couple #includes, merging from GNU libc version.
24268
24269 2000-11-10  Jim Meyering  <meyering@lucent.com>
24270
24271         * lib/obstack.h: Update from GNU libc.
24272         * lib/obstack.c: Likewise.
24273
24274 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
24275
24276         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
24277
24278 2000-11-06  Paul Eggert  <eggert@twinsun.com>
24279
24280         * lib/getusershell.c (setusershell): Use rewind rather than
24281         fseek/fseeko, to avoid configuration hassles with fseeko.
24282         Don't bother opening SHELLS_FILE if shellstream is NULL;
24283         it's not necessary.
24284
24285 2000-11-05  Jim Meyering  <meyering@lucent.com>
24286
24287         * lib/makepath.h (make_dir): Declare.
24288         * lib/makepath.c (make_dir): Remove `static' attribute.
24289         Tweak a comment.
24290
24291 2000-11-04  Jim Meyering  <meyering@lucent.com>
24292
24293         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
24294
24295 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
24296
24297         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
24298         last one in a bucket, advance to the next bucket.
24299
24300 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
24301
24302         * lib/fnmatch.c: Do not comment out all the code if we are using
24303         the GNU C library, because in some cases we are replacing buggy
24304         code in the GNU C library itself.
24305
24306 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
24307
24308         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
24309         (regex_compile): Catch bogus \(\1\).
24310
24311 2000-10-30  Paul Eggert  <eggert@twinsun.com>
24312
24313         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
24314         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
24315         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
24316
24317 2000-10-30  Paul Eggert  <eggert@twinsun.com>
24318
24319         * lib/error.h, getline.h, modechange.h:
24320         Remove "2000" from Copyright line, as the file hasn't been
24321         changed this year other than in the copyright notice.
24322
24323         * lib/xalloc.h: Add "2000" to Copyright line, as this file
24324         was changed this year.
24325
24326 2000-10-29  Jim Meyering  <meyering@lucent.com>
24327
24328         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
24329         renaming.
24330         * m4/ls-mntd-fs.m4: Likewise
24331
24332 2000-10-29  Jim Meyering  <meyering@lucent.com>
24333
24334         * lib/xstat.in: Fix grammar in comment.
24335
24336 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
24337
24338         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
24339         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
24340         doesn't define __restrict_arr.
24341
24342 2000-10-28  Jim Meyering  <meyering@lucent.com>
24343
24344         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
24345         (jm_PREREQ_MEMCHR): New function.
24346
24347 2000-10-28  Jim Meyering  <meyering@lucent.com>
24348
24349         * lib/memchr.c: Update from libc.
24350         Adjust for portability:
24351         [HAVE_STDLIB_H]: Include stdlib.h.
24352         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
24353         Undef __memchr, too.
24354         [!weak_alias]: Define __memchr to memchr.
24355
24356         * lib/regex.c: Update from libc.
24357         * lib/regex.h: Likewise.
24358         * lib/getopt1.c: Likewise.
24359         * lib/memcmp.c: Likewise.
24360
24361         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
24362         Avoid using fseek, when possible -- it's broken by design.
24363         Patch by Ulrich Drepper.
24364
24365 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
24366
24367         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
24368         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
24369         Giving in to popular pressure to shut up the compiler with casts.
24370
24371 2000-10-26  Jim Meyering  <meyering@lucent.com>
24372
24373         * lib/strftime.c: Update from libc.
24374
24375 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
24376
24377         * regex.c: More `unsigned char' -> `re_char' changes.
24378         Also change several `int' into `re_wchar_t'.
24379         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
24380         (PUSH_FAILURE_POINTER): Don't cast any more.
24381         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
24382         We want GCC to complain, since this piece of code makes
24383         re_match non-reentrant, which *should* be fixed.
24384         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
24385         (EXTEND_BUFFER): Use RETALLOC.
24386         (SET_LIST_BIT): Don't cast.
24387         (re_wchar_t): New type.
24388         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
24389         that those two functions will always properly return.
24390         (IMMEDIATE_QUIT_CHECK): Cast to void.
24391         (analyse_first): Use recursion rather than an explicit stack.
24392         (re_compile_fastmap): Can't fail anymore.
24393         (re_search_2): Don't check re_compile_fastmap for failure.
24394         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
24395         Now also sets the new value (passed in a new argument).
24396         (re_match_2_internal): Use it.
24397         Also, use a new var `reg' of type size_t when looping through regs
24398         rather than reuse the inappropriate `mcnt'.
24399
24400 2000-10-25  Jim Meyering  <meyering@lucent.com>
24401
24402         * lib/obstack.c: Update from libc.
24403
24404 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
24405
24406         * regex.c (regex_compile): Change the way of handling a range from
24407         a char less than 256 to a char not less than 256.
24408
24409 2000-10-24  Andrew Innes  <andrewi@gnu.org>
24410
24411         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
24412         NT-Emacs only.
24413         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
24414         so that re_search functions only quit when callers expect them to.
24415
24416 2000-10-23  Jim Meyering  <meyering@lucent.com>
24417
24418         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
24419         wrong.  That set_locale call must not have any side effects.
24420         From Paul Eggert.
24421
24422 2000-10-22  Jim Meyering  <meyering@lucent.com>
24423
24424         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
24425         [CYCLIC]: Remove now-unused definition.
24426
24427         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
24428         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
24429         Suggestion from Ulrich Drepper.
24430
24431 2000-10-21  Jim Meyering  <meyering@lucent.com>
24432
24433         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
24434         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
24435         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
24436
24437 2000-10-21  Jim Meyering  <meyering@lucent.com>
24438
24439         * lib/dirname.c (memrchr): Declare if necessary.
24440         (dir_name): Remove the restriction that there be no
24441         trailing slashes.  Now, this code skips past them, effectively
24442         ignoring them.
24443         [TEST_DIRNAME] (main): New unit tests.
24444
24445         * lib/memrchr.c: New file from GNU libc.
24446         Undef __memrchr, too.
24447         [!weak_alias]: Define __memrchr to memrchr.
24448         Guard weak_alias use with `#ifdef weak_alias'.
24449
24450 2000-10-21  Jim Meyering  <meyering@lucent.com>
24451
24452         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
24453         (dir_name): Use dir_name_r.
24454         * lib/dirname.h (dir_name_r): Declare it.
24455
24456 2000-10-17  Jim Meyering  <meyering@lucent.com>
24457
24458         * lib/quote.h (PARAMS): Define and use.
24459         Reported by Akim Demaille.
24460
24461         * lib/getopt.c: Update from libc.
24462
24463 2000-10-16  Jim Meyering  <meyering@lucent.com>
24464
24465         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
24466         setlocale.
24467         From Jan Fedak.
24468
24469 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
24470
24471         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
24472
24473 2000-09-25  Jim Meyering  <meyering@lucent.com>
24474
24475         * lib/md5.h (rol): Define (from GnuPG).
24476
24477         * lib/sha.c: Give credit (GnuPG) where due.
24478         (M): Use rol rather than open-coding it.
24479         Add a FIXME comment.
24480
24481 2000-09-21  Jim Meyering  <meyering@lucent.com>
24482
24483         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
24484         Reported by Michael Stone.
24485
24486 2000-09-20  Jim Meyering  <meyering@lucent.com>
24487
24488         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
24489         (noinst_HEADERS): Add sha.h.
24490         Based on code from Scott G. Miller and from GnuPG.
24491
24492 2000-09-18  Jim Meyering  <meyering@lucent.com>
24493
24494         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
24495         LIBS. Otherwise, everyone ends up linking with -lelf for some
24496         configurations.
24497         Reported by Mike Stone.
24498
24499 2000-09-15  Jim Meyering  <meyering@lucent.com>
24500
24501         * lib/regex.c: Update from libc.
24502
24503 2000-09-10  Jim Meyering  <meyering@lucent.com>
24504
24505         * lib/getopt.c (_getopt_internal): Update from glibc.
24506
24507 2000-09-09  Jim Meyering  <meyering@lucent.com>
24508
24509         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
24510         think it should be used as a general replacement for isascii.
24511         * lib/fnmatch.c: Likewise.
24512         * lib/mbswidth.c: Likewise
24513         * lib/regex.c: Likewise.
24514
24515         Don't use atoi.
24516         * lib/userspec.c: Include sys/param.h and limits.h.
24517         Include xstrtol.h.
24518         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
24519         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
24520         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
24521         UID, GID.  Check range.
24522
24523 2000-09-06  Jim Meyering  <meyering@lucent.com>
24524
24525         * lib/getopt.c (_getopt_internal): Update from glibc.
24526
24527 2000-08-30  Jim Meyering  <meyering@lucent.com>
24528
24529         * lib/strftime.c: Merge in changes from GNU libc.
24530
24531 2000-08-26  Jim Meyering  <meyering@lucent.com>
24532
24533         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
24534         * m4/fpending.m4: New file.
24535
24536 2000-08-26  Jim Meyering  <meyering@lucent.com>
24537
24538         * lib/closeout.c: Include "__fpending.h".
24539         (close_stdout_status): Return right away if there's nothing to flush.
24540
24541         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
24542         * lib/__fpending.c: New file.
24543         * lib/__fpending.h: New file.
24544
24545 2000-08-20  Jim Meyering  <meyering@lucent.com>
24546
24547         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
24548         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
24549         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
24550
24551 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
24552
24553         Improve fileutils installation on systems where running
24554         programs (like install) can't be unlinked.
24555         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
24556         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
24557
24558 2000-08-07  Paul Eggert  <eggert@twinsun.com>
24559
24560         Standardize on "memory exhausted" instead of "Memory exhausted"
24561         or "virtual memory exhausted".
24562         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
24563         "virtual memory exhausted".
24564         * lib/same.c (same_name): Invoke xalloc_die instead of printing
24565         our own message.
24566         * lib/userspec.c (parse_user_spec): Likewise.
24567         * lib/bumpalloc.h: comment fix
24568         * lib/same.c, userspec.c: Include xalloc.h.
24569
24570         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
24571         not char *const and pointing to a constant array.
24572         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
24573         (xrealloc): Comment fix.
24574
24575         * lib/userspec.c (parse_user_spec):
24576         Don't translate a message until just before returning,
24577         to avoid unnecessary translation.
24578
24579 2000-08-07  Jim Meyering  <meyering@lucent.com>
24580
24581         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
24582         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
24583         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
24584         getgroups.c, gethostname.c, getopt.h, group-member.c,
24585         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
24586         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
24587         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
24588         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
24589         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
24590         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
24591         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
24592         yesno.c: Back out Copyright date changes for each file with no change
24593         this year.  This eases coordination with other programs using the same
24594         source code modules.  From Paul Eggert.
24595
24596 2000-08-06  Paul Eggert  <eggert@twinsun.com>
24597
24598         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
24599         not char, for compatibility with glibc 2.1.3 strftime.c.
24600
24601 2000-08-03  Greg McGary  <greg@mcgary.org>
24602
24603         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
24604         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
24605         (EXTEND_BUFFER): Use them.
24606
24607 2000-08-01  Jim Meyering  <meyering@lucent.com>
24608
24609         * lib/dirname.c (ISSLASH): Define.
24610         (BACKSLASH_IS_PATH_SEPARATOR): Define.
24611         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
24612         both `\' and `/' may be use as path separators.
24613         Based on a patch from Prashant TR.
24614
24615 2000-07-31  Paul Eggert  <eggert@twinsun.com>
24616
24617         * lib/quotearg.c (quotearg_n_options): Don't make the initial
24618         slot vector a constant, since it might get modified.
24619
24620 2000-07-31  Jim Meyering  <meyering@lucent.com>
24621
24622         * lib/xmalloc.c: Use `virtual memory exhausted', not
24623         `Memory exhausted'.
24624         * lib/obstack.c (print_and_abort): Likewise.
24625
24626 2000-07-30  Paul Eggert  <eggert@twinsun.com>
24627
24628         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
24629         buffer, so that the caller can always quote one small
24630         component of a "memory exhausted" message in slot 0.
24631         From a suggestion by Jim Meyering.
24632
24633 2000-07-30  Jim Meyering  <meyering@lucent.com>
24634
24635         * lib/makepath.c (make_path): Quote the other instance, too.
24636
24637         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
24638         (STATIC_BUF_SIZE): Define.
24639         (quotearg_n_options): Use only statically allocated storage when
24640         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
24641         than STATIC_BUF_SIZE.
24642
24643 2000-07-29  Jim Meyering  <meyering@lucent.com>
24644
24645         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
24646         * lib/dirname.c (dir_name): Likewise.
24647
24648         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
24649         `/'.
24650
24651         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
24652         (dir_name): Assert that there are no trailing slashes.
24653
24654 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
24655
24656         * lib/mbswidth.h (mbswidth): Add a flags argument.
24657         (mbswidth): New declaration.
24658         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
24659         * lib/mbswidth.c (mbswidth): Add a flags argument.
24660         (mbsnwidth): New function.
24661
24662 2000-07-24  Jim Meyering  <meyering@lucent.com>
24663
24664         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
24665
24666 2000-07-23  Paul Eggert  <eggert@twinsun.com>
24667
24668         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
24669
24670 2000-07-23  Paul Eggert  <eggert@twinsun.com>
24671
24672         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
24673         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
24674         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
24675         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
24676         invoke multibyte primitives.
24677
24678 2000-07-23  Paul Eggert  <eggert@twinsun.com>
24679
24680         * lib/quotearg.c:
24681         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
24682         so that mbstate_t is always defined.
24683
24684         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
24685         be 1 in at least one GCC installation, and this configuration
24686         error is likely to be common.  Ignoring MB_LEN_MAX hurts
24687         performance on hosts that have mbrtowc but have only unibyte
24688         locales, but I assume these hosts are rare.
24689
24690 2000-07-23  Paul Eggert  <eggert@twinsun.com>
24691
24692         * lib/mbswidth.c (_XOPEN_SOURCE):
24693         Don't define; this causes problems on Solaris 7.
24694         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
24695
24696 2000-07-23  Jim Meyering  <meyering@lucent.com>
24697
24698         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
24699         too: getgrgid, getpwuid, getuid.
24700
24701 2000-07-23  Jim Meyering  <meyering@lucent.com>
24702
24703         * lib/basename.c (base_name): Add an assertion.
24704
24705 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
24706
24707         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
24708         shadow its mbsinit function.
24709
24710 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
24711
24712         * lib/mbswidth.h: New file.
24713         * lib/mbswidth.c: New file.
24714         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
24715         (noinst_HEADERS): Add mbswidth.h.
24716
24717 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
24718
24719         * lib/config.charset: Add support for FreeBSD. Improve support for
24720         HP-UX and IRIX 6.
24721
24722 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
24723
24724         * m4/mbswidth.m4: New file.
24725         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
24726
24727 2000-07-15  Jim Meyering  <meyering@lucent.com>
24728
24729         * lib/makepath.c: Include quote.h.
24730         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
24731         corresponding argument in a `quote (...)' call.
24732         Give better diagnostics.
24733
24734         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
24735         (noinst_HEADERS): Add quote.h.
24736
24737         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
24738         from tar's src/misc.c.
24739         * lib/quote.h: New file.  Prototypes for same.
24740
24741 2000-07-14  Paul Eggert  <eggert@twinsun.com>
24742
24743         From a suggestion by Bruno Haible.
24744         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
24745         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
24746         to decide whether to define the BeOS workaround macro;
24747         this adjusts to the change to AC_MBSTATE_T.
24748
24749 2000-07-14  Jim Meyering  <meyering@lucent.com>
24750
24751         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
24752         jm_AC_TYPE_UINTMAX_T.
24753
24754 2000-07-13  Paul Eggert  <eggert@twinsun.com>
24755
24756         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
24757
24758         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
24759         quotearg_buffer_restyled): Add support for
24760         clocale_quoting_style.  Undo previous change to
24761         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
24762         and "{RIGHT QUOTATION MARK}" msgids.
24763
24764 2000-07-10  Paul Eggert  <eggert@twinsun.com>
24765
24766         From a suggestion by Bruno Haible.
24767         * m4/mbstate_t.m4 (AC_MBSTATE_T):
24768         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
24769         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
24770         and mbstate_t, to a single-part test that simply defines mbstate_t.
24771         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
24772         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
24773
24774 2000-07-10  Jim Meyering  <meyering@lucent.com>
24775
24776         * m4/strerror_r.m4: Mirror the correction made in autoconf.
24777
24778         * m4/gnu-source.m4: Output to confdefs.h directly.
24779         Suggestion from Akim Demaille.
24780
24781 2000-07-09  Paul Eggert  <eggert@twinsun.com>
24782
24783         The old behavior of quoting `like this' doesn't look good with
24784         newer, ISO-style fonts.  See:
24785         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
24786
24787         Instead, quote "like this" by default.  Let the translator
24788         tailor the locale-specific quoting behavior by providing
24789         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
24790
24791         * lib/quotearg.c (N_): New macro.
24792         (gettext_default): New function.
24793         (quotearg_buffer_restyled): Use
24794         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
24795         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
24796
24797 2000-07-09  Jim Meyering  <meyering@lucent.com>
24798
24799         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
24800         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
24801
24802         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
24803         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
24804
24805 2000-07-09  Jim Meyering  <meyering@lucent.com>
24806
24807         * lib/Most files: Update copyright dates to include 2000.
24808
24809 2000-07-08  Jim Meyering  <meyering@lucent.com>
24810
24811         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
24812         if not defined.
24813         (xgethostname): Remove now-unnecessary #ifdef.
24814         Move declaration of `err' into loop where it's used.
24815
24816 2000-07-05  Paul Eggert  <eggert@twinsun.com>
24817         and Bruno Haible  <haible@clisp.cons.org>
24818
24819         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
24820         only if the test for an object-type mbstate_t fails.  This
24821         prevents us from mistakenly reporting that mbstate_t is a
24822         system object type after we "#define mbstate_t int" to work
24823         around its lack.
24824
24825 2000-07-05  Paul Eggert  <eggert@twinsun.com>
24826         and Bruno Haible  <haible@clisp.cons.org>
24827
24828         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
24829
24830 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
24831
24832         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
24833         to strerror_r.
24834         Include <ctype.h> for use of isalpha.
24835
24836 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
24837
24838         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
24839         by allocating a larger buffer. Test the gethostname return value for
24840         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
24841         returns an error and ENAMETOOLONG isn't defined.
24842
24843 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
24844
24845         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
24846         dimension.
24847
24848 2000-07-04  Jim Meyering  <meyering@lucent.com>
24849
24850         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
24851         of the deprecated AC_CHECKING.
24852
24853 2000-07-04  Jim Meyering  <meyering@lucent.com>
24854
24855         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
24856         Reported by Bruno Haible.
24857
24858 2000-07-04  Jim Meyering  <meyering@lucent.com>
24859
24860         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
24861         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
24862         lacks mbrtowc.
24863
24864 2000-07-03  Paul Eggert  <eggert@twinsun.com>
24865
24866         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
24867         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
24868
24869 2000-07-03  Paul Eggert  <eggert@twinsun.com>
24870         and Bruno Haible  <haible@clisp.cons.org>
24871
24872         * lib/quotearg.c (mbrtowc):
24873         Assign to *pwc, and return 1 only if result is nonzero.
24874         (iswprint): Use ISPRINT when substituting our own mbrtowc.
24875
24876 2000-07-03  Jim Meyering  <meyering@lucent.com>
24877
24878         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
24879
24880 2000-07-03  Jim Meyering  <meyering@lucent.com>
24881
24882         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
24883         This is necessary to get a definition of e.g., UTMP_FILE on
24884         HP-UX 10.20.
24885         From Bob Proulx.
24886
24887 2000-07-02  Jim Meyering  <meyering@lucent.com>
24888
24889         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
24890
24891         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
24892         AC_LIBOBJ(function_name).
24893         * m4/chown.m4: Likewise.
24894         * m4/fnmatch.m4: Likewise.
24895         * m4/ftruncate.m4: Likewise.
24896         * m4/getgroups.m4: Likewise.
24897         * m4/getline.m4: Likewise.
24898         * m4/group-member.m4: Likewise.
24899         * m4/jm-macros.m4: Likewise.
24900         * m4/lstat.m4: Likewise.
24901         * m4/malloc.m4: Likewise.
24902         * m4/memcmp.m4: Likewise.
24903         * m4/nanosleep.m4: Likewise.
24904         * m4/putenv.m4: Likewise.
24905         * m4/realloc.m4: Likewise.
24906         * m4/regex.m4: Likewise.
24907         * m4/stat.m4: Likewise.
24908         * m4/strftime.m4: Likewise.
24909
24910 2000-07-02  Jim Meyering  <meyering@lucent.com>
24911
24912         * lib/quotearg.c (mbstate_t): Don't define here.
24913
24914 2000-07-02  Jim Meyering  <meyering@lucent.com>
24915
24916         * lib/nanosleep.c (SIGCONT): Define if not already defined.
24917
24918 2000-07-01  Jim Meyering  <meyering@lucent.com>
24919
24920         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
24921
24922 2000-07-01  Jim Meyering  <meyering@lucent.com>
24923
24924         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
24925         problem.
24926
24927 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
24928
24929         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
24930         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
24931
24932 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
24933
24934         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
24935         per change in ../m4/ls-mntd-fs.m4.
24936         (read_filesystem_list): Ignore symbolic links.
24937
24938 2000-06-29  Jim Meyering  <meyering@lucent.com>
24939
24940         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
24941         for declaration of strcmp.
24942
24943         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
24944
24945         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
24946         Avoid warning by casting result to `char *' to remove `const'.
24947
24948 2000-06-28  Jim Meyering  <meyering@lucent.com>
24949
24950         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
24951         included by quotearg.c, for which we perform this test.  From
24952         Bruno Haible.
24953
24954 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
24955
24956         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
24957         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
24958         <utmpx.h> exists, put readutmp.o into LIBOBJS.
24959
24960 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
24961
24962         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
24963
24964 2000-06-26  Paul Eggert  <eggert@twinsun.com>
24965
24966         savedir now sets errno on failure and invokes xmalloc to get memory.
24967         Fix a couple of other minor bugs while we're at it.
24968
24969         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
24970         (NAMLEN): Remove macro.
24971         (malloc, realloc): Remove decls.
24972         (stpcpy): Likewise.
24973         ("xalloc.h"): Include.
24974         (NAME_SIZE_DEFAULT): New macro.
24975         (savedir): Use xmalloc / xrealloc to allocate memory.
24976         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
24977         Skip "" directory entries.
24978         Use strlen to calculate directory entry length, since the old method
24979         is rarely used these days and isn't worth supporting.
24980         Don't use a pointer after freeing it.
24981         Check for integer overflow when calculating allocation size.
24982         Use memcpy to copy entries, instead of stpcpy.
24983         Set errno properly when returning NULL.
24984         Check for readdir error.
24985
24986 2000-06-26  Jim Meyering  <meyering@lucent.com>
24987
24988         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
24989
24990 2000-06-25  Jim Meyering  <meyering@lucent.com>
24991
24992         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
24993         Linux header bug when _XOPEN_SOURCE is defined to 500.
24994
24995 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
24996
24997         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
24998         deficiency.
24999
25000 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
25001
25002         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
25003         Include xalloc.h.
25004         Don't include <stdlib.h>.  Don't declare malloc, realloc.
25005
25006 2000-06-24  Jim Meyering  <meyering@lucent.com>
25007
25008         * m4/strerror_r.m4: Revive this file -- to try out an experimental
25009         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
25010         for which strerror does return char*, but which lacks a conveniently
25011         accessible declaration of the function.  If the compile-test says
25012         strerror_r doesn't work, then resort to a `run'-test that works on
25013         BeOS and segfaults on DEC Unix.
25014
25015 2000-06-24  Jim Meyering  <meyering@lucent.com>
25016
25017         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
25018
25019 2000-06-23  Paul Eggert  <eggert@twinsun.com>
25020
25021         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
25022         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
25023
25024 2000-06-23  Paul Eggert  <eggert@twinsun.com>
25025
25026         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
25027         (mbrtowc, mbstate_t): Define substitutes if
25028         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
25029         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
25030         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
25031
25032 2000-06-23  Jim Meyering  <meyering@lucent.com>
25033
25034         * m4/afs.m4: Add missing AC_MSG_RESULT.
25035         Reported by Bruno Haible.
25036
25037         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
25038         Suggestion from Bruno Haible.
25039
25040 2000-06-23  Jim Meyering  <meyering@lucent.com>
25041
25042         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
25043
25044 2000-06-21  Jim Meyering  <meyering@lucent.com>
25045
25046         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
25047
25048 2000-06-21  Jim Meyering  <meyering@lucent.com>
25049
25050         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
25051         (noinst_HEADERS): Add getstr.h.
25052
25053         * lib/getline.c (getstr): Move into a separate file.
25054         * lib/getstr.c (getstr): New file, extracted from getline.c, with
25055         the following changes: new parameter, delim2; both delim[12]
25056         parameters have type `int', not `char'.  The latter would lose
25057         with 8-bit delimiters.
25058         * lib/getstr.h: New file.
25059
25060 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
25061
25062         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
25063         than 1024, return a memory chunk of least possible size, instead
25064         of size PATH_MAX + 2. In the loop, increment the size proportionally.
25065         Use free/xmalloc instead of xrealloc to avoid copying for very long
25066         paths.
25067
25068 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
25069
25070         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
25071         the empty string.
25072
25073 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
25074
25075         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
25076         address, not strdup.  Include <stdlib.h> and don't declare free().
25077
25078 2000-06-19  Jim Meyering  <meyering@lucent.com>
25079
25080         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
25081
25082 2000-06-18  Jim Meyering  <meyering@lucent.com>
25083
25084         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
25085
25086         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
25087         `checking whether...' message to be consistent with that of the
25088         lstat test.
25089
25090 2000-06-18  Jim Meyering  <meyering@lucent.com>
25091
25092         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
25093         Besides, these days every porting target provides a mkdir function.
25094
25095         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
25096         needed. (this snippet comes from src/system.h).
25097
25098 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
25099
25100         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
25101
25102 2000-06-15  Paul Eggert  <eggert@twinsun.com>
25103
25104         * lib/human.c (adjust_value): New function.
25105         (human_readable_inexact): Apply rounding style even when
25106         printing approximate values.
25107
25108 2000-06-14  Paul Eggert  <eggert@twinsun.com>
25109
25110         * lib/human.c (human_readable_inexact): Allow an input block
25111         size that is not a multiple of the output block size, and vice versa.
25112         Reported by Piergiorgio Sartor.
25113
25114 2000-06-14  Paul Eggert  <eggert@twinsun.com>
25115
25116         * lib/getdate.y (get_date): Apply relative times after time
25117         zone indicator, not before.  Reported by Todd A. Jacobs.
25118
25119 2000-06-13  Jim Meyering  <meyering@lucent.com>
25120
25121         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
25122
25123         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
25124
25125 2000-06-12  Paul Eggert  <eggert@twinsun.com>
25126
25127         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
25128
25129 2000-06-12  Jim Meyering  <meyering@lucent.com>
25130
25131         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
25132         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
25133         optional argument.
25134         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
25135         the optional argument, `lib'.
25136
25137 2000-06-08  Jim Meyering  <meyering@lucent.com>
25138
25139         * m4/largefile.m4: Remove file (now that it's part of autoconf).
25140
25141 2000-06-04  Paul Eggert  <eggert@twinsun.com>
25142
25143         Rewrite largefile configuration so that we don't need to run
25144         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
25145         AC_CANONICAL_HOST in configure.in -- jmm]
25146
25147         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
25148         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
25149         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
25150         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
25151         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
25152         All uses changed.
25153         Instead of inspecting the output of getconf, try to compile the
25154         test program without and with the macro definition.
25155         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
25156         for getconf.  Instead, check for the needed flags by compiling
25157         test programs.
25158
25159 2000-06-04  Paul Eggert  <eggert@twinsun.com>
25160
25161         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
25162
25163 2000-06-04  Jim Meyering  <meyering@lucent.com>
25164
25165         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
25166         SunOS 4.1.4 for which gid_t is an unsigned type.
25167
25168 2000-06-03  Jim Meyering  <meyering@lucent.com>
25169
25170         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
25171         now that autoconf requires that.
25172
25173         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
25174         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
25175         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
25176
25177 2000-06-03  Jim Meyering  <meyering@lucent.com>
25178
25179         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
25180
25181 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
25182
25183         * m4/glibc21.m4: New file.
25184         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
25185
25186 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
25187
25188         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
25189         newer, don't install charset.alias.
25190         * lib/config.charset: Change the Linux/glibc rules so they become empty
25191         on glibc-2.1 or newer.
25192
25193 2000-06-02  Jim Meyering  <meyering@lucent.com>
25194
25195         * lib/mountlist.c: Back out last change.  Instead, do this...
25196         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
25197         me_dummy member using the same `ignore'-testing code.
25198         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
25199         fs_type strings.
25200         From Mark D. Roth.
25201
25202 2000-05-29  Jim Meyering  <meyering@lucent.com>
25203
25204         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
25205         mounts with the `ignore' attribute.  Based on a patch from
25206         Mark D. Roth.
25207
25208 2000-05-28  Jim Meyering  <meyering@lucent.com>
25209
25210         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
25211         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
25212         * m4/stat.m4: Likewise.
25213         * m4/lstat.m4: Likewise.
25214         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
25215
25216         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
25217         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
25218
25219 2000-05-26  Jim Meyering  <meyering@lucent.com>
25220
25221         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
25222
25223 2000-05-24  Jim Meyering  <meyering@lucent.com>
25224
25225         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
25226         autoconf requires that.
25227         * m4/lib-check.m4: Likewise.
25228         * m4/jm-macros.m4: Likewise.
25229         * m4/strftime.m4: Likewise.
25230
25231         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
25232         AC_CHECK_DECLS, now that autoconf requires that.
25233
25234 2000-05-22  Jim Meyering  <meyering@lucent.com>
25235
25236         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
25237         * m4/lstat.m4: Likewise.
25238
25239 2000-05-22  Jim Meyering  <meyering@lucent.com>
25240
25241         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
25242
25243 2000-05-20  Jim Meyering  <meyering@lucent.com>
25244
25245         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
25246         (jm_PREREQ): Use it.
25247
25248 2000-05-18  Jim Meyering  <meyering@lucent.com>
25249
25250         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
25251         back, too, since it may have been modified by allocate_entry.
25252         (hash_delete): Rewrite to use neither the assignment operator
25253         nor the comma operator in an if-expression.
25254
25255 2000-05-15  Paul Eggert  <eggert@twinsun.com>
25256
25257         * lib/closeout.c:
25258         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
25259         Remove; no longer needed.
25260         "quotearg.h": Add include.
25261         (file_name): Do not bother to explicitly initialize to NULL; it's less
25262         efficient on some hosts.
25263         (close_stdout_status): Remove test as to whether stdout was already
25264         closed; it breaks for the case "echo x | sort >&-".
25265         Quote file name colons.
25266         Do not assume that _("write error") lacks format strings.
25267
25268 2000-05-15  Jim Meyering  <meyering@lucent.com>
25269
25270         * lib/version-etc.c (version_etc_copyright): Update the copyright
25271         string used in all --version output.
25272
25273 2000-05-14  Jim Meyering  <meyering@lucent.com>
25274
25275         * lib/closeout.c (close_stdout_set_file_name): New function.
25276         (close_stdout_status): Use new file-scoped global.
25277         Return right away if fstat says the stdout file descriptor is invalid.
25278         * lib/closeout.h (close_stdout_set_file_name): Declare.
25279
25280 2000-05-10  Jim Meyering  <meyering@lucent.com>
25281
25282         * lib/closeout.c [default_exit_status]: New file-scoped variable.
25283         (close_stdout_set_status): New function.
25284         * lib/closeout.h (close_stdout_set_status): Declare.
25285
25286 2000-05-09  Jim Meyering  <meyering@lucent.com>
25287
25288         * m4/gettext.m4: Rename this...
25289         * m4/libintl.m4: ...to this.
25290
25291 2000-05-08  Jim Meyering  <meyering@lucent.com>
25292
25293         * lib/long-options.c: Don't include closeout.h.
25294         (parse_long_options): Don't call close_stdout for --version.
25295
25296 2000-05-06  Paul Eggert  <eggert@twinsun.com>
25297
25298         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
25299         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
25300         2.1.3 bug.  This avoids a clash when files like regex.c define
25301         _GNU_SOURCE.
25302
25303 2000-05-06  Jim Meyering  <meyering@lucent.com>
25304
25305         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
25306         (AC_REPLACE_FUNCS): Add strnlen.
25307
25308         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
25309         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
25310
25311         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
25312         AC_SEARCH_LIBS call for nanosleep.
25313         (LIB_NANOSLEEP): Set and AC_SUBST.
25314
25315 2000-05-06  Jim Meyering  <meyering@lucent.com>
25316
25317         * lib/strnlen.c: Undefine __strnlen and strnlen.
25318         [!weak_alias]: Define __strnlen to strnlen.
25319
25320         * lib/atexit.c: New file, from libiberty.
25321
25322 2000-05-06  Jim Meyering  <meyering@lucent.com>
25323
25324         * lib/closeout.c (close_stdout_status): Also check for errors on the
25325         stderr stream.
25326
25327 2000-05-05  Jim Meyering  <meyering@lucent.com>
25328
25329         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
25330         AC_SEARCH_LIBS call for clock_gettime.
25331         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
25332
25333         * m4/search-libs.m4: Update from autoconf.
25334
25335         su doesn't work on Solaris 2.6.
25336         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
25337         <shadow.h>.  Reported by Dragos Harabor.
25338
25339 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
25340
25341         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
25342         memcpy instead of xmalloc, xrealloc, path_concat.
25343         (locale_charset): Treat empty environment variables as absent.
25344         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
25345
25346 2000-05-04  Jim Meyering  <meyering@lucent.com>
25347
25348         * lib/getopt.c: Update from glibc.
25349         * lib/obstack.c: Likewise.
25350         * lib/obstack.h: Likewise.
25351         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
25352         file
25353
25354         * lib/regex.h: Likewise.
25355         * lib/strndup.c: Likewise.
25356         * lib/strnlen.c: New file, from glibc.
25357
25358 2000-05-03  Jim Meyering  <meyering@lucent.com>
25359
25360         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
25361
25362 2000-05-02  Paul Eggert  <eggert@twinsun.com>
25363
25364         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
25365         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
25366         compile-time test, rather than inspecting host and OS, to
25367         decide whether to define _LARGEFILE_SOURCE.
25368
25369 2000-05-01  Jim Meyering  <meyering@lucent.com>
25370
25371         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
25372
25373         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
25374         Based on a patch from Bruno Haible.
25375
25376 2000-05-01  Jim Meyering  <meyering@lucent.com>
25377
25378         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
25379
25380 2000-04-29  Jim Meyering  <meyering@lucent.com>
25381
25382         * lib/path-concat.c: Declare strdup only if it's not defined.
25383         * lib/canon-host.c: Likewise.
25384
25385 2000-04-28  Jim Meyering  <meyering@lucent.com>
25386
25387         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
25388         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
25389         is included first, then limits.h is included by locale.h by libintl.h.
25390         From John David Anglin.
25391
25392 2000-04-25  Jim Meyering  <meyering@lucent.com>
25393
25394         * lib/makepath.c (S_IRWXUGO): Define.
25395         (make_path): Always perform explicit chmod if MODE specifies any
25396         of the `special' permission bits.  Prompted by a bug report against
25397         install from Mate Wierdl and Joost van Baal.
25398
25399 2000-04-18  Jim Meyering  <meyering@lucent.com>
25400
25401         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
25402         (jm_PREREQ): Use it.
25403
25404 2000-04-18  Jim Meyering  <meyering@lucent.com>
25405
25406         * lib/README: New file.
25407
25408         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
25409         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
25410
25411 2000-04-17  Jim Meyering  <meyering@lucent.com>
25412
25413         Get it right :-)
25414         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
25415         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
25416         Suggestion from Akim Demaille.
25417
25418 2000-04-17  Jim Meyering  <meyering@lucent.com>
25419
25420         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
25421         the definition of it to rpl_strftime also defined-away the system's
25422         declaration.
25423
25424 2000-04-15  Jim Meyering  <meyering@lucent.com>
25425
25426         Use `C' to denote so-called `contiguous' files, the same way
25427         that tar does.
25428         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
25429         (ftypelet): Use S_ISCTG.
25430         From Michael Deutschmann.
25431
25432 2000-04-14  Jim Meyering  <meyering@lucent.com>
25433
25434         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
25435         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
25436         clobbered.
25437
25438 2000-04-14  Jim Meyering  <meyering@lucent.com>
25439
25440         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
25441
25442 2000-04-13  Jim Meyering  <meyering@lucent.com>
25443
25444         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
25445         AH_VERBATIM to insert required #ifndef into config.h.in.
25446         Suggestion from Akim Demaille.
25447
25448 2000-04-12  Jim Meyering  <meyering@lucent.com>
25449
25450         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
25451         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
25452         Christian Krackowizer.
25453
25454         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
25455         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
25456         (AC_SYS_LARGEFILE): Require.
25457         (AM_C_PROTOTYPES): Require.
25458
25459 2000-04-08  Jim Meyering  <meyering@lucent.com>
25460
25461         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
25462         names don't conflict.  Reported by Eli Zaretskii.
25463
25464 2000-04-07  Jim Meyering  <meyering@lucent.com>
25465
25466         * lib/putenv.c: Move inclusion of errno.h so it follows that of
25467         sys/types.h, to work around system header problems on AIX 3.2.5.
25468         From Bruno Haible.
25469
25470 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
25471
25472         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
25473         bug.  Deal with the different error behavior of Irix iconv.
25474
25475 2000-04-05  Paul Eggert  <eggert@twinsun.com>
25476
25477         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
25478         IRIX if the installer said otherwise.
25479
25480 2000-04-05  Jim Meyering  <meyering@lucent.com>
25481
25482         Portability tweaks required for ultrix4.3.
25483         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
25484         (jm_CHECK_DECLS): Add getutent to the list of functions.
25485         (_jm_DECL_HEADERS): Add utmpx.h.
25486         From John David Anglin.
25487
25488         * m4/strftime.m4: Back out the 2000-04-02 change.
25489         Instead of that change, simply undefine putenv in the test program.
25490
25491 2000-04-05  Jim Meyering  <meyering@lucent.com>
25492
25493         Portability tweaks required for ultrix4.3.
25494         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
25495         getutent.
25496         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
25497         * lib/canon-host.c: Declare strdup.
25498         * lib/path-concat.c: Likewise.
25499         From John David Anglin.
25500
25501 2000-04-04  Jim Meyering  <meyering@lucent.com>
25502
25503         Be more DOS 8.3-friendly.
25504         * lib/ref-add.sin: Renamed from ref-add.sed.in.
25505         * lib/ref-del.sin: Renamed from ref-del.sed.in.
25506         * lib/Makefile.am: Reflect renaming.
25507         Reported by Eli Zaretskii.
25508
25509         Use a temporary file name that won't clash with `charset.alias'
25510         in the DOS 8.3 name space.
25511         * lib/Makefile.am (charset_tmp): Define.
25512         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
25513         (uninstall-local): Likewise.
25514         Reported by Eli Zaretskii.
25515
25516 2000-04-03  Jim Meyering  <meyering@lucent.com>
25517
25518         * m4/gettext.m4: Fix typo in comment.
25519
25520         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
25521         textutils/configure.in).  Suggestion from Paul Eggert.
25522         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
25523
25524 2000-04-02  Paul Eggert  <eggert@twinsun.com>
25525
25526         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
25527         variable in the shell rather than using putenv, which isn't
25528         portable.  This avoids the configure-time inter-test dependency
25529         on the potentially-renamed putenv function.
25530
25531 2000-03-30  Paul Eggert  <eggert@twinsun.com>
25532
25533         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
25534         before checking struct stat.st_blksize, so that
25535         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
25536
25537 2000-03-29  Paul Eggert  <eggert@twinsun.com>
25538
25539         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
25540         since strftime.c uses HAVE_STRFTIME to decide whether to use
25541         the underlying strftime.
25542
25543 2000-03-29  Paul Eggert  <eggert@twinsun.com>
25544
25545         * lib/time/strftime.c (my_strftime): Make sure we call the system
25546         strftime, not ourselves, when invoking the underlying strftime.
25547
25548 2000-03-24  Jim Meyering  <meyering@lucent.com>
25549
25550         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
25551         (charset_alias): Define.
25552         (install-exec-local): Factor out common code.
25553         (uninstall-local): Split lines longer than 80.
25554         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
25555         (SUFFIXES): Define.
25556         (.sed.in.sed): New rule.  Don't redirect directly to $@.
25557         (CLEANFILES): Add ref-add.sed and ref-del.sed.
25558
25559 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
25560
25561         * lib/config.charset: Output a line containing "Packages using this
25562         file".
25563         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
25564         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
25565         ref-del.sed): New rules.
25566
25567 2000-03-17  Jim Meyering  <meyering@lucent.com>
25568
25569         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
25570         Otherwise, include <strings.h>
25571
25572 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
25573
25574         * lib/unicodeio.c (utf8_wctomb): New function.
25575         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
25576         format instead of in UCS-4 with platform dependent endianness.
25577
25578 2000-03-10  Jim Meyering  <meyering@lucent.com>
25579
25580         * m4/lib-check.m4: Look for getspnam in -lgen, too.
25581         From Marco Franzen.
25582
25583 2000-03-07  Paul Eggert  <eggert@twinsun.com>
25584
25585         * lib/savedir.c (savedir): Work even if directory size is
25586         negative; this can happen with some screwy NFS configurations.
25587
25588 2000-03-06  Jim Meyering  <meyering@lucent.com>
25589
25590         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
25591         if it's NULL (because we ran out of memory).  From Bruno Haible.
25592
25593 2000-03-05  Jim Meyering  <meyering@lucent.com>
25594
25595         * lib/localcharset.c ("path-concat.h"): Include.
25596         (get_charset_aliases): Use path_concat instead of ANSI string
25597         concatenation.
25598
25599         * lib/unicodeio.h (PARAMS): Define.
25600         Use it to guard prototype.
25601
25602 2000-03-04  Jim Meyering  <meyering@lucent.com>
25603
25604         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
25605         for lib/localcharset.c.
25606
25607 2000-03-04  Jim Meyering  <meyering@lucent.com>
25608
25609         * lib/Makefile.am (install-exec-local): Create $(libdir) before
25610         installing into it.
25611         (uninstall-local): Uncomment this rule so `make distcheck' works
25612         once again.
25613
25614         * lib/unicodeio.c (<errno.h>): Include it.
25615         (errno): Declare if not defined.
25616
25617         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
25618
25619         * lib/config.charset: New version, incorporating remarks from a linux
25620         i18n mailing list.  From Bruno Haible.
25621
25622 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
25623
25624         * m4/codeset.m4: New file.
25625         * m4/iconv.m4: New file.
25626         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
25627
25628 2000-03-03  Jim Meyering  <meyering@lucent.com>
25629
25630         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
25631
25632 2000-03-02  Jim Meyering  <meyering@lucent.com>
25633
25634         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
25635         the messages come out on separate lines.
25636
25637         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
25638         rather than jm_CHECK_DECLARATIONS.
25639         * m4/decl.m4: Remove now-unused file.
25640
25641         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
25642         geteuid.
25643
25644 2000-03-02  Jim Meyering  <meyering@lucent.com>
25645
25646         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
25647
25648 2000-03-01  Jim Meyering  <meyering@lucent.com>
25649
25650         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
25651         * lib/unicodeio.c: Likewise.
25652
25653 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
25654
25655         * lib/config.charset: New file.
25656         * lib/localcharset.c: New file.
25657         * lib/unicodeio.h, lib/unicodeio.c: New files.
25658         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
25659         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
25660         (noinst_HEADERS): Add unicodeio.h.
25661         (all-local, install-exec-local, charset.alias): New targets.
25662
25663 2000-02-28  Paul Eggert  <eggert@twinsun.com>
25664
25665         * lib/quotearg.c (ALERT_CHAR): New macro.
25666         (quotearg_buffer_restyled): Use it.
25667
25668 2000-02-27  Jim Meyering  <meyering@lucent.com>
25669
25670         * m4/check-decl.m4: Add getenv to the list.
25671
25672 2000-02-27  Jim Meyering  <meyering@lucent.com>
25673
25674         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
25675         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
25676
25677         * lib/backupfile.c: Guard inclusion of stdlib.h with
25678         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
25679         Declare malloc if needed.
25680
25681         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
25682         `#ifndef HAVE_DECL..'
25683         now that autoconf always defines the HAVE_DECL_ symbols.
25684         * lib/human.c: Likewise.
25685         * lib/same.c: Likewise.
25686         * lib/strtoumax.c: Likewise.
25687
25688         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
25689         declaration check was not run.
25690         * lib/hash.c: Likewise.
25691         * lib/human.c: Likewise.
25692         * lib/same.c: Likewise.
25693         * lib/strtoumax.c: Likewise.
25694
25695         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
25696         `.', then first look up the entire `.'-containing string as a login
25697         name.
25698
25699 2000-02-23  Jim Meyering  <meyering@lucent.com>
25700
25701         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
25702         in place of my hack.
25703
25704 2000-02-18  Paul Eggert  <eggert@twinsun.com>
25705
25706         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
25707         (textint): New typedef.
25708         (parser_control): Member year changed from int to textint.
25709         All uses changed.
25710         (YYSTYPE): Removed; replaced by %union with int and textint members.
25711         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
25712         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
25713         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
25714         (tSNUMBER, tUNUMBER): Now of type <textintval>.
25715         (date, number, to_year): Use width of number in digits, not its value,
25716         to determine whether it's a 2-digit year, or a 2-digit time.
25717         (yylex): Store number of digits of numeric tokens.
25718         Reported by John Kendall.
25719
25720         (parser_control): Changed from struct parser_control to typedef (for
25721         consistency).  All uses changed.
25722
25723         (tID): Removed; not used.
25724         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
25725
25726 2000-02-14  Paul Eggert  <eggert@twinsun.com>
25727
25728         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
25729         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
25730
25731 2000-02-12  Jim Meyering  <meyering@lucent.com>
25732
25733         * lib/userspec.c (ISDIGIT): Define it.
25734         (isdigit): Remove definition.
25735         (is_number): Use ISDIGIT, not isdigit.
25736         <libintl.h>: Include.
25737         (_ and N_): Define.
25738         (parse_user_spec): Mark translatable strings.
25739
25740 2000-02-10  Jim Meyering  <meyering@lucent.com>
25741
25742         With these changes, nanosleep.[ch] are finally enough like the other
25743         lib/* replacement files to compile on a few more losing systems.
25744
25745         * lib/nanosleep.h: Don't include config.h.
25746         Remove prototype from declaration of nanosleep.
25747         (PARAMS): Remove now-unneeded definition.
25748         * lib/nanosleep.c: #undef nanosleep.
25749         (rpl_nanosleep): Rename from nanosleep.
25750
25751 2000-02-10  Jim Meyering  <meyering@lucent.com>
25752
25753         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
25754         gnu_nanosleep to rpl_nanosleep.
25755
25756 2000-02-09  Jim Meyering  <meyering@lucent.com>
25757
25758         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
25759         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
25760
25761 2000-02-08  Akim Demaille  <akim@epita.fr>
25762
25763         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
25764         `[' and `]' and remove uses of `changequote'.
25765         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
25766         (AC_SYS_LARGEFILE): Likewise.
25767         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
25768         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
25769         of changequote.
25770         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
25771         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
25772         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
25773         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
25774
25775 2000-02-05  Jim Meyering  <meyering@lucent.com>
25776
25777         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
25778         Remove explicit use of AC_HEADER_TIME.  It is required by
25779         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
25780         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
25781         in autoconf whereby the expansion of the latter ended up preceding
25782         the expansion of its prerequisite, AC_HEADER_TIME.
25783         Reported by Volker Borchert.
25784
25785 2000-02-03  Jim Meyering  <meyering@lucent.com>
25786
25787         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
25788
25789 2000-02-03  Jim Meyering  <meyering@lucent.com>
25790
25791         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
25792         rather than with `#if HAVE_UTMPNAME'.
25793
25794 2000-02-02  Jim Meyering  <meyering@lucent.com>
25795
25796         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
25797         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
25798         Reported by Eli Zaretskii.
25799
25800 2000-02-01  Jim Meyering  <meyering@lucent.com>
25801
25802         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
25803
25804 2000-01-31  Jim Meyering  <meyering@lucent.com>
25805
25806         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
25807         functions.  Add the time.h and sys/time.h headers along with the
25808         AC_REQUIRE'ment of AC_HEADER_TIME.
25809
25810 2000-01-31  Jim Meyering  <meyering@lucent.com>
25811
25812         * lib/nanosleep.h (nanosleep): Guard declaration with
25813         `#if ! HAVE_DECL_NANOSLEEP'.
25814         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
25815         the declaration in that vendor's sys/timers.h.
25816         Reported by Christian Krackowizer.
25817
25818         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
25819         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
25820         (ISPRINT): Likewise.
25821         Reported by Tom Tromey.
25822
25823 2000-01-30  Jim Meyering  <meyering@lucent.com>
25824
25825         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
25826
25827         * m4/prereq.m4 (utmp_includes): Define.
25828         Check for ut_user and ut_name members in both struct utmpx
25829         and struct utmp.
25830
25831 2000-01-30  Jim Meyering  <meyering@lucent.com>
25832
25833         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
25834         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
25835         header files where only utmpx.ut_user is declared.
25836
25837         * lib/readutmp.h (UT_USER): Define.
25838
25839 2000-01-29  Jim Meyering  <meyering@lucent.com>
25840
25841         * m4/lib-check.m4: New file containing library-related checks from
25842         fileutils and sh-utils (textutils had none).
25843
25844 2000-01-28  Jim Meyering  <meyering@lucent.com>
25845
25846         * m4/perl.m4: Change format of warning message to look more like that
25847         from the missing script.  Suggestion from François Pinard.
25848
25849 2000-01-25  Jim Meyering  <meyering@lucent.com>
25850
25851         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
25852         well as time.h in the compile check.
25853         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
25854         Fix typo in cross-compiling case: s/yes/no/.
25855
25856 2000-01-23  Jim Meyering  <meyering@lucent.com>
25857
25858         * m4/jm-macros.m4: Move df-related tests here from
25859         fileutils/configure.in
25860
25861         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
25862         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
25863
25864         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
25865         s/space/ac_fsusage_space/.
25866         (jm_FILE_SYSTEM_USAGE): Take two parameters.
25867
25868         * m4/ftruncate.m4: New file (derived from part of
25869         fileutils/configure.in).
25870         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
25871         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
25872
25873         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
25874         AC_SUBST these here, rather than just in sh-util/configure.in, so
25875         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
25876         all the same.
25877         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
25878         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
25879         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
25880         (AC_SUBST(POW_LIBM)): Likewise.
25881         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
25882
25883 2000-01-23  Jim Meyering  <meyering@lucent.com>
25884
25885         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
25886         obstack.c.
25887
25888 2000-01-22  Jim Meyering  <meyering@lucent.com>
25889
25890         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
25891
25892         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
25893
25894         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
25895         configure.in
25896         (AC_CHECK_HEADERS): Likewise for sh-utils.
25897         (AC_CHECK_HEADERS): Likewise for textutils.
25898         Merge the three lists of headers.
25899
25900         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
25901         from fileutils' configure.in.
25902
25903         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
25904         code. Moved tests into their own function (_jm_DECL_HEADERS) in
25905         check-decl.m4.
25906
25907         * m4/check-decl.m4: Use #if rather than #ifdef.
25908         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
25909         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
25910         (_jm_DECL_HEADERS): Define new function.
25911         (jm_CHECK_DECLARATIONS): Require it.
25912
25913 2000-01-22  Jim Meyering  <meyering@lucent.com>
25914
25915         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
25916         [! HAVE_DECL_STRTOULL]: Declare strtoull.
25917         Required for some AIX systems.  Reported by Christian Krackowizer.
25918         [TESTING] (main): New function.
25919
25920         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
25921         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
25922         letters.
25923
25924         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
25925         iswprint.
25926
25927         * lib/strverscmp.c (ISDIGIT): Define.
25928         (strverscmp): Use ISDIGIT, not isdigit.
25929
25930 2000-01-19  Jim Meyering  <meyering@lucent.com>
25931
25932         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
25933         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
25934         defines `struct timespec' in <sys/time.h>
25935
25936         * m4/c-bs-a.m4: Remove uses of changequote altogether.
25937         Thanks to Akim for explaining.
25938
25939 2000-01-17  Paul Eggert  <eggert@twinsun.com>
25940
25941         * lib/nanosleep.c (nanosleep):
25942         Don't use SA_INTERRUPT to decide whether to call sigaction, as
25943         POSIX.1 doesn't require SA_INTERRUPT and some systems
25944         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
25945         it's been part of POSIX.1 since day 1 (in 1988).
25946
25947 2000-01-17  Jim Meyering  <meyering@lucent.com>
25948
25949         * lib/interlock: Remove unused file.  Reported by François Pinard.
25950
25951 2000-01-16  Paul Eggert  <eggert@twinsun.com>
25952
25953         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
25954         alert, backslash, formfeed, and vertical tab unnecessarily in
25955         shell quoting style.
25956
25957 2000-01-16  Jim Meyering  <meyering@lucent.com>
25958
25959         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
25960         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
25961         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
25962         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
25963
25964 2000-01-16  Jim Meyering  <meyering@lucent.com>
25965
25966         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
25967         because the latter didn't work.
25968
25969 2000-01-15  Jim Meyering  <meyering@lucent.com>
25970
25971         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
25972         (AC_REPLACE_FUNCS): Add memcpy and memset.
25973         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
25974         Add strpbrk.
25975         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
25976
25977 2000-01-12  Jim Meyering  <meyering@lucent.com>
25978
25979         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
25980         (jm_PREREQ): Use it.
25981         (jm_PREREQ_READUTMP): New macro.
25982         (jm_PREREQ): Use it.
25983
25984 2000-01-11  Paul Eggert  <eggert@twinsun.com>
25985
25986         Quote multibyte characters correctly.
25987         * m4/c-bs-a.m4: New file.
25988         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
25989         (jm_PREREQ): Use it.
25990
25991 2000-01-11  Paul Eggert  <eggert@twinsun.com>
25992
25993         * m4/uintmax_t.m4: Port to autoconf 2.13.
25994
25995 2000-01-08  Jim Meyering  <meyering@ascend.com>
25996
25997         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
25998         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
25999
26000 2000-01-04  Jim Meyering  <meyering@ascend.com>
26001
26002         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
26003         jm_STRUCT_DIRENT_D_TYPE.
26004         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
26005         jm_STRUCT_DIRENT_D_INO.
26006         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
26007         jm_STRUCT_UTIMBUF.
26008         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
26009         renamings.
26010         * m4/utime.m4: Likewise.
26011
26012         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
26013         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
26014
26015 2000-01-03  Paul Eggert  <eggert@twinsun.com>
26016
26017         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
26018         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
26019
26020 2000-01-02  Jim Meyering  <meyering@ascend.com>
26021
26022         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
26023         remember if this is necessary.
26024
26025 1999-12-26  Jim Meyering  <meyering@ascend.com>
26026
26027         * m4/jm-macros.m4: Use it here.
26028         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
26029
26030 1999-12-23  Jim Meyering  <meyering@ascend.com>
26031
26032         * m4/jm-macros.m4: Check for clock_gettime (moved from
26033         fileutils/configure.in)
26034         Check for gettimeofday.
26035
26036 1999-12-20  Jim Meyering  <meyering@ascend.com>
26037
26038         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
26039         autoconf-2.14a-1999-12-20.
26040
26041 1999-12-19  Jim Meyering  <meyering@ascend.com>
26042
26043         * m4/lstat-slash.m4: New file.
26044         * m4/jm-macros.m4: Use the new macro:
26045         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
26046
26047 1999-12-07  Jim Meyering  <meyering@ascend.com>
26048
26049         * m4/perl.m4: Require that File::Compare be available, too.
26050         Too many systems seem to lack it.
26051
26052         * m4/strftime.m4: Add checks for most of the cpp macros tested in
26053         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
26054
26055 1999-11-18  Paul Eggert  <eggert@twinsun.com>
26056
26057         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
26058         problem with the QNX 4.25 shell, which doesn't propagate exit
26059         status of failed commands inside shell assignments.
26060
26061 1999-11-17  Jim Meyering  <meyering@ascend.com>
26062
26063         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
26064
26065 1999-11-07  Jim Meyering  <meyering@ascend.com>
26066
26067         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
26068
26069 1999-11-06  Jim Meyering  <meyering@ascend.com>
26070
26071         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
26072         * m4/jm-macros.m4 (jm_MACROS): Use it here.
26073
26074 1999-11-05  Jim Meyering  <meyering@ascend.com>
26075
26076         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
26077         configure.in of textutils, fileutils, and sh-utils into this one
26078         (shared between those packages) file.
26079         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
26080         AC_STRUCT_ST_BLKSIZE.
26081
26082 1999-11-03  Jim Meyering  <meyering@ascend.com>
26083
26084         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
26085         of AC_CHECK_TYPE checks includes unistd.h.
26086         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
26087         Suggestion from Akim Demaille.
26088
26089 1999-10-30  Jim Meyering  <meyering@ascend.com>
26090
26091         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
26092         m4-quoted string.
26093         * m4/ls-mntd-fs.m4: Likewise.
26094         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
26095         * m4/jm-winsz1.m4: Likewise.
26096
26097         * m4/const.m4: Remove file, since the fix made it into the experimental
26098         version of autoconf.
26099         * m4/mktime.m4: Likewise.
26100
26101         * m4/check-type.m4: Remove file, now that the latest version of
26102         AC_CHECK_TYPE takes a third arg to specify additional #includes.
26103
26104         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
26105         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
26106         AC_CHECK_TYPE.
26107
26108 1999-10-04  Jim Meyering  <meyering@ascend.com>
26109
26110         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
26111
26112 1999-09-22  Paul Eggert  <eggert@twinsun.com>
26113
26114         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
26115         2.95.1 bug with HP-UX 10.20.
26116
26117 1999-09-17  Jim Meyering  <meyering@ascend.com>
26118
26119         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
26120         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
26121         due to missing strdup (against sh-utils-2.0).
26122
26123 1999-08-29  Jim Meyering  <meyering@ascend.com>
26124
26125         * m4/jm-macros.m4: Require jm_BISON.
26126         * m4/bison.m4: New file.
26127
26128 1999-08-17  Paul Eggert  <eggert@twinsun.com>
26129
26130         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
26131         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
26132
26133 1999-08-05  Jim Meyering  <meyering@ascend.com>
26134
26135         * m4/getline.m4: Rename test file from conftestdata to conftest.data
26136         to avoid conflicts with `conftest' on 8+3 filesystems.
26137         Suggestion from Eli Zaretskii.
26138
26139 1999-08-04  Jim Meyering  <meyering@ascend.com>
26140
26141         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
26142         fileutils and sh-utils (textutils's getline test was inadequate).
26143         (AM_FUNC_GETLINE): Run this test.
26144         (AC_CHECK_FUNCS): Check for getdelim.
26145         Reported by Bob Proulx.
26146
26147 1999-08-02  Jim Meyering  <meyering@ascend.com>
26148
26149         * m4/jm-macros.m4: Add a comment.
26150
26151 1999-08-01  Paul Eggert  <eggert@twinsun.com>
26152
26153         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
26154         <inttypes.h> defines strtoumax as a macro (and not as a
26155         function).
26156
26157 1999-08-01  Paul Eggert  <eggert@twinsun.com>
26158
26159         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
26160         that we can shift, multiply and divide unsigned long long
26161         values; Ultrix cc can't do it.
26162
26163 1999-08-01  Paul Eggert  <eggert@twinsun.com>
26164
26165         * m4/mktime.m4: New file, which is a preview of what should appear
26166         in the next public autoconf release.
26167
26168 1999-08-01  Paul Eggert  <eggert@twinsun.com>
26169
26170         * m4/lfs.m4: Remove this file.
26171         * m4/largefile.m4: New file.  It contains the old contents of
26172         lfs.m4, except that all names with prefix AC_LFS have been
26173         changed to use the prefix AC_SYS_LARGEFILE instead, to be
26174         compatible with future autoconf versions.  Also, some minor m4
26175         quoting problems have been fixed.
26176
26177 1999-08-01  Paul Eggert  <eggert@twinsun.com>
26178
26179         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
26180         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
26181         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
26182         and simplify the shell code.
26183
26184 1999-08-01  Jim Meyering  <meyering@ascend.com>
26185
26186         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
26187         m4.
26188
26189 1999-07-20  Jim Meyering  <meyering@ascend.com>
26190
26191         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
26192
26193 1999-07-15  Jim Meyering  <meyering@ascend.com>
26194
26195         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
26196
26197 1999-05-22  Jim Meyering  <meyering@ascend.com>
26198
26199         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
26200
26201 1999-05-20  Jim Meyering  <meyering@ascend.com>
26202
26203         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
26204         Add a colon after each `then' in case $4 is empty.
26205
26206 1999-05-16  Jim Meyering  <meyering@ascend.com>
26207
26208         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
26209
26210 1999-05-10  Jim Meyering  <meyering@ascend.com>
26211
26212         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
26213
26214         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
26215         AC_FUNC_MKTIME.
26216
26217 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
26218
26219         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
26220
26221 1999-05-04  Paul Eggert  <eggert@twinsun.com>
26222
26223         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
26224         not CPPFLAGS, so that linking works correctly in IRIX.
26225
26226 1999-04-30  Paul Eggert  <eggert@twinsun.com>
26227
26228         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
26229
26230 1999-04-20  Paul Eggert  <eggert@twinsun.com>
26231
26232         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
26233         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
26234         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
26235         jm_AC_TYPE_UNSIGNED_LONG_LONG.
26236         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
26237
26238         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
26239
26240 1999-04-20  Jim Meyering  <meyering@ascend.com>
26241
26242         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
26243         AC_REPLACE xstroull if necessary.  From Paul Eggert.
26244         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
26245
26246 1999-04-18  Jim Meyering  <meyering@ascend.com>
26247
26248         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
26249         * m4/jm-macros.m4: Use it.
26250
26251 1999-04-06  Jim Meyering  <meyering@ascend.com>
26252
26253         * m4/strftime.m4: Remove test for %f.
26254
26255 1999-03-29  Jim Meyering  <meyering@ascend.com>
26256
26257         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
26258         superset of the AC_TYPE_* checks in the textutils, fileutils,
26259         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
26260         AC_TYPE_PID_T.
26261
26262 1999-03-28  Jim Meyering  <meyering@ascend.com>
26263
26264         * m4/jm-macros.m4: Define GNU_PACKAGE here.
26265         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
26266         replaced e.g., in the *.sh files of the sh-utils.
26267
26268 1999-03-20  Jim Meyering  <meyering@ascend.com>
26269
26270         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
26271         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
26272         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
26273
26274 1999-03-19  Jim Meyering  <meyering@ascend.com>
26275
26276         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
26277
26278 1999-03-12  Jim Meyering  <meyering@ascend.com>
26279
26280         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
26281
26282 1999-03-07  Jim Meyering  <meyering@ascend.com>
26283
26284         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
26285         declared.
26286
26287 1999-02-17  Jim Meyering  <meyering@ascend.com>
26288
26289         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
26290         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
26291
26292 1999-02-07  Jim Meyering  <meyering@ascend.com>
26293
26294         * m4/group-member.m4: New file -- extracted from sh-utils'
26295         configure.in.
26296
26297         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
26298         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
26299
26300 1999-02-06  Jim Meyering  <meyering@ascend.com>
26301
26302         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
26303         * m4/fnmatch.m4: Likewise.
26304         * m4/getgroups.m4: Likewise.
26305         * m4/lstat.m4: Likewise.
26306         * m4/malloc.m4: Likewise.
26307         * m4/putenv.m4: Likewise.
26308         * m4/realloc.m4: Likewise.
26309         * m4/regex.m4: Likewise.
26310         * m4/stat.m4: Likewise.
26311         * m4/strftime.m4: Likewise.
26312         Suggestion from Alain Magloire.
26313
26314         * m4/chown.m4: Use `.$ac_objext', not `.o'.
26315         * m4/fnmatch.m4: Likewise.
26316         * m4/getgroups.m4: Likewise.
26317         * m4/getline.m4: Likewise.
26318         * m4/lstat.m4: Likewise.
26319         * m4/malloc.m4: Likewise.
26320         * m4/memcmp.m4: Likewise.
26321         * m4/putenv.m4: Likewise.
26322         * m4/realloc.m4: Likewise.
26323         * m4/regex.m4: Likewise.
26324         * m4/stat.m4: Likewise.
26325         * m4/strftime.m4: Likewise.
26326         Suggestion from Alain Magloire.
26327
26328         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
26329         an argument.
26330
26331         * m4/regex.m4: Add a run-time Test for proper operation of
26332         re_compile_pattern.
26333
26334 1999-01-31  Jim Meyering  <meyering@ascend.com>
26335
26336         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
26337
26338 1999-01-30  Jim Meyering  <meyering@ascend.com>
26339
26340         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
26341
26342         * m4/jm-mktime.m4: Make this a wrapper around the official
26343         AM_FUNC_MKTIME rather than my private copy, now that the official one
26344         is up to date.
26345         * m4/mktime.m4: Remove file.
26346
26347         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
26348         * m4/uptime.m4: Likewise.
26349         * m4/uintmax_t.m4: Likewise.
26350
26351 1999-01-28  Jim Meyering  <meyering@ascend.com>
26352
26353         * m4/jm-macros.m4: Use jm_AFS.
26354         * m4/afs.m4: New file (from fileutils' configure.in).
26355
26356         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
26357         * m4/chown.m4: Likewise.
26358         * m4/d-ino.m4: Likewise.
26359         * m4/d-type.m4: Likewise.
26360         * m4/fnmatch.m4: Likewise.
26361         * m4/getgroups.m4: Likewise.
26362         * m4/gettext.m4: Likewise.
26363         * m4/jm-mktime.m4: Likewise.
26364         * m4/jm-winsz2.m4: Likewise.
26365         * m4/lcmessage.m4: Likewise.
26366         * m4/ls-mntd-fs.m4: Likewise.
26367         * m4/malloc.m4: Likewise.
26368         * m4/memcmp.m4: Likewise.
26369         * m4/putenv.m4: Likewise.
26370         * m4/realloc.m4: Likewise.
26371         * m4/st_mtim.m4: Likewise.
26372         * m4/strftime.m4: Likewise.
26373
26374 1999-01-16  Jim Meyering  <meyering@ascend.com>
26375
26376         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
26377         (ARGMATCH_DIE_DECL): Define.
26378
26379 1999-01-12  Jim Meyering  <meyering@ascend.com>
26380
26381         * m4/Makefile.am.in: Rewrite to avoid using fmt.
26382         Reported by Lars Hecking.
26383
26384 1999-01-10  Jim Meyering  <meyering@ascend.com>
26385
26386         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
26387         gross kludge.
26388         * m4/inttypes_h.m4: Likewise.
26389         * m4/lstat.m4: Likewise.
26390         * m4/malloc.m4: Likewise.
26391         * m4/readdir.m4: Likewise.
26392         * m4/realloc.m4: Likewise.
26393         * m4/st_dm_mode.m4: Likewise.
26394         * m4/stat.m4: Likewise.
26395         * m4/utimbuf.m4: Likewise.
26396         * m4/utimes.m4: Likewise.
26397
26398         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
26399         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
26400         comments in config.h.in are meaningful.
26401
26402         * m4/jm-macros.m4: Require autoconf-2.13 here.
26403
26404         * m4/regex.m4: By default, don't use the included regex.c on systems
26405         with glibc 2.  Suggestion from Uli Drepper.
26406
26407 1999-01-02  Jim Meyering  <meyering@ascend.com>
26408
26409         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
26410
26411 1998-12-18  Jim Meyering  <meyering@ascend.com>
26412
26413         * m4/Makefile.am.in (Makefile.am): Simplify rule.
26414         Based on a suggestion from Lars Hecking.
26415
26416 1998-11-16  Paul Eggert  <eggert@twinsun.com>
26417
26418         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
26419
26420 1998-11-16  Jim Meyering  <meyering@ascend.com>
26421
26422         * m4/lfs.m4: Double-quote the `uname...` expression.
26423
26424 1998-11-14  Jim Meyering  <meyering@ascend.com>
26425
26426         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
26427         * m4/stat.m4: Likewise.
26428
26429 1998-11-03  Jim Meyering  <meyering@ascend.com>
26430
26431         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
26432         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
26433
26434 1998-10-18  Jim Meyering  <meyering@ascend.com>
26435
26436         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
26437
26438 1998-10-17  Jim Meyering  <meyering@ascend.com>
26439
26440         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
26441         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
26442         calls for those previously hard-coded headers.  Instead, take a new
26443         parameter.
26444         (jm_CHECK_DECLARATIONS): Reflect interface change.
26445         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
26446         (jm_CHECK_DECL_LOCALTIME_R): New macro.
26447
26448         * m4/mktime.m4: Test for spring-forward gap before long-running test.
26449
26450 1998-10-14  Jim Meyering  <meyering@ascend.com>
26451
26452         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
26453         instead of "TZ=America/Vancouver".  From Paul Eggert.
26454
26455 1998-10-11  Jim Meyering  <meyering@ascend.com>
26456
26457         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
26458         This adds a test for a recently added compatibility fix for mktime.c.
26459         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
26460
26461 1998-09-27  Jim Meyering  <meyering@ascend.com>
26462
26463         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
26464
26465         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
26466         ../configure.in, including a change from Gordon Matzigkeit to allow
26467         cross-compiling for the Hurd.
26468
26469         * m4/glibc.m4: New file/macro to test for the GNU C Library
26470         versions 1 and 2.  From Gordon Matzigkeit.
26471         Indent.
26472
26473 1998-09-21  Jim Meyering  <meyering@ascend.com>
26474
26475         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
26476
26477 1998-08-18  Paul Eggert  <eggert@twinsun.com>
26478
26479         Port nanosecond-resolution times to UnixWare 2.1.2 and
26480         pedantic Solaris 2.6.
26481
26482         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
26483         AC_STRUCT_ST_MTIM.
26484         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
26485         Generate name of ns member, instead of just 1 or undef.
26486         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
26487
26488 1998-08-15  Jim Meyering  <meyering@ascend.com>
26489
26490         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
26491         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
26492         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
26493         instead of jm_TYPE_SSIZE_T.
26494
26495 1998-08-12  Jim Meyering  <meyering@ascend.com>
26496
26497         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
26498
26499 1998-08-02  Jim Meyering  <meyering@ascend.com>
26500
26501         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
26502         in acconfig.h manually.
26503
26504 1998-07-31  Paul Eggert  <eggert@twinsun.com>
26505
26506         * m4/st_mtim.m4: New file.
26507
26508 1998-07-28  Jim Meyering  <meyering@ascend.com>
26509
26510         * m4/utimes.m4: Undef stat.
26511
26512 1998-07-25  Jim Meyering  <meyering@ascend.com>
26513
26514         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
26515         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
26516
26517 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
26518
26519         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
26520         uid and gid actually remain unchanged.
26521
26522 1998-07-07  Jim Meyering  <meyering@ascend.com>
26523
26524         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
26525
26526 1998-07-04  Jim Meyering  <meyering@ascend.com>
26527
26528         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
26529         to prove that this macro can be used in packages without regex.c.
26530
26531 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
26532
26533         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
26534         is to be used.
26535
26536 1998-07-03  Jim Meyering  <meyering@ascend.com>
26537
26538         * m4/gettext.m4: Add -lintl if it's found to be necessary.
26539
26540         * m4/gettext.m4: New file -- from gettext-0.10.35.
26541         * m4/lcmessage.m4: Likewise.
26542         * m4/progtest.m4: Likewise.
26543
26544         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
26545         * m4/jm-macros.m4: Require the new macro.
26546
26547 1998-06-29  Jim Meyering  <meyering@ascend.com>
26548
26549         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
26550         for the definition of NGROUPS (used in a system header included
26551         by sys/mount.h).
26552
26553 1998-06-28  Jim Meyering  <meyering@ascend.com>
26554
26555         * m4/ls-mntd-fs.m4: New file.
26556         * m4/fstypename.m4: New file.
26557
26558         * m4/jm-macros.m4: Require the new macro.
26559         * m4/jm-glibc-io.m4: New file.
26560
26561 1998-05-19  Jim Meyering  <meyering@ascend.com>
26562
26563         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
26564         * m4/lchown.m4: New file.
26565
26566         * m4/Makefile.am.in: New file.
26567         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
26568
26569 1998-05-14  Jim Meyering  <meyering@ascend.com>
26570
26571         * m4/Makefile.am (EXTRA_DIST): Add them.
26572         * m4/jm-macros.m4: New file.
26573         * m4/utimbuf.m4: New file.
26574
26575 1998-05-12  Jim Meyering  <meyering@ascend.com>
26576
26577         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
26578
26579 1998-05-11  Jim Meyering  <meyering@ascend.com>
26580
26581         * m4/isc-posix.m4: New file.
26582
26583 1998-05-10  Jim Meyering  <meyering@ascend.com>
26584
26585         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
26586
26587 1998-05-09  Jim Meyering  <meyering@ascend.com>
26588
26589         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
26590         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
26591         with automake.
26592
26593         * m4/ssize_t.m4: New file.
26594         * m4/mktime.m4: Remove file -- the new automake has this now.
26595
26596 1998-04-26  Jim Meyering  <meyering@ascend.com>
26597
26598         * m4/assert.m4: New file.
26599         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
26600
26601 1998-04-05  Jim Meyering  <meyering@ascend.com>
26602
26603         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
26604         (jm_PREREQ): Use it here.
26605
26606 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
26607
26608         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
26609         in acconfig.h.
26610
26611 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
26612
26613         * m4/prereq.m4: New file.
26614         * m4/error.m4: New file.
26615         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
26616
26617 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
26618
26619         * m4/getline.m4: Don't set am_cv_func_working_getline before the
26620         cache-check for the same variable -- that defeated the purpose of
26621         the test; the test program was never run.  This was a problem only
26622         on systems with losing getline functions -- HP-UX 10.20 is one.
26623         Reported by Bjorn Helgaas.
26624
26625 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
26626
26627         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
26628
26629 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
26630
26631         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
26632
26633         * m4/const.m4: New file.  Use an initializer in this declaration
26634         typedef int charset[2]; const charset x;
26635         Reported by Bob Glickstein.
26636
26637 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
26638
26639         * m4/chown.m4: Fix reversed types on -1 args to chown.
26640         From Kaveh Ghazi.
26641
26642 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
26643
26644         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
26645         Add lseek and memchr.
26646
26647         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
26648         T.E.Dickey <dickey@clark.net> said that some older preprocessors
26649         have a 20-character limit on names.
26650
26651 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
26652
26653         * m4/inttypes_h.m4: New file.
26654         * m4/uintmax_t.m4: New file.
26655         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
26656
26657 Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
26658   Free Software Foundation, Inc.
26659 Copying and distribution of this file, with or without modification,
26660 are permitted provided the copyright notice and this notice are preserved.