76cb764118bbaaf1e6ffe69657d37de076d1b35a
[gnulib.git] / ChangeLog
1 2008-04-22  Simon Josefsson  <simon@josefsson.org>
2
3         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
4         parameter to void* as per POSIX standard (MinGW uses char*).
5
6 2008-04-21  Bruno Haible  <bruno@clisp.org>
7
8         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
9         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
10         Define to replacements if REPLACE_ISWCNTRL is 1.
11         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
12         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
13         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
14         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
15         what it fixes.
16         * doc/posix-functions/iswalpha.texi: Likewise.
17         * doc/posix-functions/iswblank.texi: Likewise.
18         * doc/posix-functions/iswcntrl.texi: Likewise.
19         * doc/posix-functions/iswdigit.texi: Likewise.
20         * doc/posix-functions/iswgraph.texi: Likewise.
21         * doc/posix-functions/iswlower.texi: Likewise.
22         * doc/posix-functions/iswprint.texi: Likewise.
23         * doc/posix-functions/iswpunct.texi: Likewise.
24         * doc/posix-functions/iswspace.texi: Likewise.
25         * doc/posix-functions/iswupper.texi: Likewise.
26         * doc/posix-functions/iswxdigit.texi: Likewise.
27         Reported by Alain Guibert.
28
29 2008-04-21  Bruno Haible  <bruno@clisp.org>
30
31         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
32         Patch by Alain Guibert.
33
34 2008-04-21  Bruno Haible  <bruno@clisp.org>
35
36         Fix test failures on mingw.
37         * tests/test-xstrtol.c (print_no_progname): New function.
38         (main): Install it in error_print_progname hook.
39         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
40         * tests/test-xstrtoimax.sh: Likewise.
41         * tests/test-xstrtoumax.sh: Likewise.
42
43 2008-04-21  Bruno Haible  <bruno@clisp.org>
44
45         Fix test failure on mingw.
46         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
47
48 2008-04-21  Bruno Haible  <bruno@clisp.org>
49
50         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
51         Actually assign a value.
52
53 2008-04-20  Bruno Haible  <bruno@clisp.org>
54
55         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
56         take 2.
57         * lib/canonicalize.c (canonicalize_file_name): Elide if the
58         'canonicalize-lgpl' module is also used.
59         * lib/canonicalize-lgpl.c: Undo last change.
60         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
61
62 2008-04-20  Bruno Haible  <bruno@clisp.org>
63
64         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
65         config.h. Provide _mkdir based fallback for mingw.
66         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
67         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
68         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
69         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
70         rather than defining mkdir in config.h.
71         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
72         (gl_SYS_STAT_H_DEFAULTS): New macro.
73         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
74         HAVE_IO_H any more.
75         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
76         HAVE_DECL_MKDIR and HAVE_IO_H.
77
78 2008-04-20  Bruno Haible  <bruno@clisp.org>
79
80         * lib/isapipe.c: Port to native Windows platforms.
81
82 2008-04-20  Bruno Haible  <bruno@clisp.org>
83
84         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
85
86 2008-04-21  Eric Blake  <ebb9@byu.net>
87
88         Work around preprocessors that don't handle UINTMAX_MAX.
89         * lib/memchr2.c (memchr2): Avoid embedded #if.
90         Reported by Alain Guibert, fix suggested by Bruno Haible.
91
92 2008-04-21  Simon Josefsson  <simon@josefsson.org>
93
94         * doc/posix-functions/strftime.texi (strftime): Explain better
95         Windows incompatibility.  Suggested by Micah Cowan
96         <micah@cowan.name>.
97
98 2008-04-20  Bruno Haible  <bruno@clisp.org>
99
100         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
101         unistr/u8-mblen.
102
103 2008-04-20  Bruno Haible  <bruno@clisp.org>
104
105         Fix test failure on platforms with non-GNU iconv.
106         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
107         (U_TO_U8): Use it, rather than u16_to_u8.
108         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
109         units at the end of the input string.
110         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
111
112 2008-04-20  Bruno Haible  <bruno@clisp.org>
113
114         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
115         when the resulting length is 0.
116         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
117
118 2008-04-20  Bruno Haible  <bruno@clisp.org>
119
120         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
121         works.
122         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
123
124 2008-04-20  Bruno Haible  <bruno@clisp.org>
125
126         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
127         * modules/tsearch-tests (configure.ac): Test for initstate function.
128
129 2008-04-20  Bruno Haible  <bruno@clisp.org>
130
131         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
132         for nlink_t if missing.
133         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
134
135 2008-04-19  Bruno Haible  <bruno@clisp.org>
136
137         Work around snprintf bug on Linux libc5.
138         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
139         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
140         gl_SNPRINTF_SIZE1.
141         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
142         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
143         that test failed.
144         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
145         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
146         * modules/snprintf (Files): Add m4/printf.m4.
147         * modules/vsnprintf (Files): Likewise.
148         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
149         * doc/posix-functions/vsnprintf.texi: Likewise.
150
151 2008-04-19  Bruno Haible  <bruno@clisp.org>
152
153         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
154         from 0.0058 to less than 10^-7.
155
156 2008-04-19  Bruno Haible  <bruno@clisp.org>
157
158         Fix rounding when a precision is given.
159         * lib/vasnprintf.c (is_borderline): New function.
160         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
161         9...9x.
162         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
163         %e, %g.
164         * tests/test-vasprintf-posix.c (test_function): Likewise.
165         * tests/test-snprintf-posix.h (test_function): Likewise.
166         * tests/test-sprintf-posix.h (test_function): Likewise.
167         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
168         * tests/test-printf-posix.h (test_function): Likewise.
169         * tests/test-printf-posix.output: Update.
170         Reported by John Darrington <john@darrington.wattle.id.au> via
171         Ben Pfaff <blp@cs.stanford.edu>.
172
173 2008-04-18  Simon Josefsson  <simon@josefsson.org>
174
175         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
176         Suggested by Bruno Haible <bruno@clisp.org>.
177
178 2008-04-17  Bruno Haible  <bruno@clisp.org>
179
180         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
181         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
182         implementation.
183         Patch by Bruce Merry <bmerry@gmail.com>.
184
185 2008-04-17  Simon Josefsson  <simon@josefsson.org>
186
187         * doc/posix-functions/strftime.texi (strftime): Mention that %e
188         doesn't work under Windows.
189
190 2008-04-16  Bruno Haible  <bruno@clisp.org>
191
192         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
193         New macros.
194         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
195         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
196         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
197         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
198         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
199         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
200         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
201         macros.
202         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
203         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
204         Northern Sotho, Uighur.
205
206 2008-04-16  Bruno Haible  <bruno@clisp.org>
207
208         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
209         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
210         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
211         Reported by Daniel Bergström <daniel@octocode.com>.
212
213 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
214             Bruno Haible  <bruno@clisp.org>
215
216         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
217         function.
218         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
219         New functions, mostly extracted from gl_locale_name_default.
220         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
221
222 2008-04-16  Eric Blake  <ebb9@byu.net>
223
224         Adjust strtod detection to catch glibc 2.7 bug.
225         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
226         Reported by John Gatewood Ham.
227
228 2008-04-16  Bruno Haible  <bruno@clisp.org>
229
230         Add tentative support for Linux libc5.
231         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
232         * lib/fpurge.c (fpurge): Likewise.
233         * lib/freadable.c (freadable): Likewise.
234         * lib/freadahead.c (freadahead): Likewise.
235         * lib/freading.c (freading): Likewise.
236         * lib/freadptr.c (freadptr): Likewise.
237         * lib/freadseek.c (freadptrinc): Likewise.
238         * lib/fseeko.c (rpl_fseeko): Likewise.
239         * lib/fseterr.c (fseterr): Likewise.
240         * lib/fwritable.c (fwritable): Likewise.
241         * lib/fwriting.c (fwriting): Likewise.
242         Reported by Alain Guibert <alguibert+bts@free.fr>.
243
244 2008-04-15  Bruno Haible  <bruno@clisp.org>
245
246         * modules/mathl (configure.ac): Define module indicator.
247
248 2008-04-15  Bruno Haible  <bruno@clisp.org>
249
250         * lib/logl.c (logl): Remove unused variables.
251
252 2008-04-15  Bruno Haible  <bruno@clisp.org>
253
254         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
255         fails.
256
257 2008-04-15  Bruno Haible  <bruno@clisp.org>
258
259         * lib/trim.c (trim2): Fix argument of isspace() macro.
260
261 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
262
263         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
264         to 0.
265         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
266
267 2008-04-14  Bruno Haible  <bruno@clisp.org>
268
269         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
270         AC_LANG_PROGRAM argument.
271         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
272         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
273         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
274         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
275         * m4/math_h.m4 (gl_MATH_H): Likewise.
276         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
277         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
278         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
279         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
280         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
281         * m4/regex.m4 (gl_REGEX): Likewise.
282         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
283         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
284         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
285         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
286         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
287         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
288         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
289         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
290
291 2008-04-14  Jim Meyering  <meyering@redhat.com>
292
293         test-strtod: fix typos: s/abs/fabs/
294         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
295
296 2008-04-13  Bruno Haible  <bruno@clisp.org>
297
298         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
299         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
300         module is also used and while not building the reloc-wrapper.
301
302 2008-04-13  Bruno Haible  <bruno@clisp.org>
303
304         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
305
306 2008-04-13  Bruno Haible  <bruno@clisp.org>
307
308         Fix AIX compilation failure introduced on 2008-04-02.
309         * tests/test-frexp.c (exp): Undefine before redefining.
310         * tests/test-frexpl.c (exp): Likewise.
311
312 2008-04-13  Bruno Haible  <bruno@clisp.org>
313
314         Work around a HP-UX stdio bug.
315         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
316         * tests/test-ftello.c (main): Likewise.
317         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
318         * doc/posix-functions/ftello.texi: Likewise.
319
320 2008-04-13  Bruno Haible  <bruno@clisp.org>
321
322         Make test-signbit pass on HP-UX/hppa.
323         * tests/test-signbit.c (minus_zerol): New variable.
324         (test_signbitl): Use it.
325
326 2008-04-13  Bruno Haible  <bruno@clisp.org>
327
328         Make truncl work on OSF/1 4.0.
329         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
330         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
331         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
332         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
333         HAVE_DECL_TRUNCL.
334         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
335         HAVE_DECL_TRUNCL.
336         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
337
338 2008-04-13  Bruno Haible  <bruno@clisp.org>
339
340         * lib/unictype.h: Remove trailing comma from enumeration definitions.
341
342 2008-04-13  Bruno Haible  <bruno@clisp.org>
343
344         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
345         expression, so as to avoid HP-UX 11 cc compiler bug.
346
347 2008-04-13  Bruno Haible  <bruno@clisp.org>
348
349         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
350
351 2008-04-13  Bruno Haible  <bruno@clisp.org>
352
353         * lib/git-merge-changelog.c: Remove empty declaration outside of
354         functions.
355
356 2008-04-13  Bruno Haible  <bruno@clisp.org>
357
358         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
359
360 2008-04-13  Bruno Haible  <bruno@clisp.org>
361
362         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
363         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
364         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
365         also if it exists but lacks definitions of the SHUT_* macros.
366         * modules/sys_socket (Description): Update.
367         Reported by Elbert Pol <e.pol@chello.nl>.
368
369 2008-04-13  Bruno Haible  <bruno@clisp.org>
370
371         * lib/localcharset.c (OS2): Don't redefine if already defined.
372         Reported by Elbert Pol <e.pol@chello.nl>.
373
374 2008-04-13  Bruno Haible  <bruno@clisp.org>
375
376         * lib/binary-io.h [__EMX__]: Include <io.h>.
377         Reported by Elbert Pol <e.pol@chello.nl>.
378
379 2008-04-12  Bruno Haible  <bruno@clisp.org>
380
381         * lib/fpucw.h: Enable the definitions also for x86_64.
382         Needed for NetBSD/x86_64.
383         Reported by Thomas Klausner <tk@giga.or.at>.
384
385 2008-04-12  Bruno Haible  <bruno@clisp.org>
386
387         * tests/test-strtod.c: Include isnand.h.
388         (main): Use isnand instead of isnan.
389         Reported by Jim Meyering.
390
391 2008-04-12  Bruno Haible  <bruno@clisp.org>
392
393         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
394         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
395
396 2008-04-12  Jim Meyering  <meyering@redhat.com>
397
398         * m4/math_h.m4 (gl_MATH_H): Fix typos.
399
400 2008-04-12  Bruno Haible  <bruno@clisp.org>
401
402         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
403         Reported by Elbert Pol <e.pol@chello.nl>.
404
405 2008-04-12  Eric Blake  <ebb9@byu.net>
406
407         Work around Solaris 10 math.h bug.
408         * m4/math_h.m4 (gl_MATH_H): Check for bug.
409         (gl_MATH_H_DEFAULTS): Set up default.
410         * modules/math (Makefile.am): Replace new indicators.
411         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
412         * tests/test-math.c (main): Test this.
413         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
414         * doc/posix-headers/math.texi (math.h): Mention bug.
415         Reported by Nelson H. F. Beebe and Jim Meyering.
416
417 2008-04-11  Bruno Haible  <bruno@clisp.org>
418
419         Adapt to future versions of Apple GCC.
420         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
421         Reported by Peter O'Gorman <peter@pogma.com>.
422
423 2008-04-11  Bruno Haible  <bruno@clisp.org>
424
425         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
426
427 2008-04-11  Bruno Haible  <bruno@clisp.org>
428
429         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
430
431         * modules/getaddrinfo-tests (Makefile.am): Define
432         test_getaddrinfo_LDADD.
433
434 2008-04-11  Bruno Haible  <bruno@clisp.org>
435
436         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
437         (init): Fix syntax error.
438         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
439         is declared.
440
441 2008-04-11  Bruno Haible  <bruno@clisp.org>
442
443         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
444         * modules/glob (Depends-on): Add stdbool.
445
446 2008-04-11  Bruno Haible  <bruno@clisp.org>
447
448         * lib/trim.c: Include <string.h>.
449
450 2008-04-11  Eric Blake  <ebb9@byu.net>
451
452         Avoid compile failure on OS/2.
453         * lib/regex_internal.h (internal_function): Disable optimization
454         on OS/2 (__EMX__), where it caused compiler error.
455         Reported by Elbert Pol.
456
457 2008-04-11  Bruno Haible  <bruno@clisp.org>
458
459         Flush the standard error stream before aborting. Needed on mingw.
460         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
461         * tests/test-array_list.c (ASSERT): Likewise.
462         * tests/test-array_oset.c (ASSERT): Likewise.
463         * tests/test-avltree_list.c (ASSERT): Likewise.
464         * tests/test-avltree_oset.c (ASSERT): Likewise.
465         * tests/test-avltreehash_list.c (ASSERT): Likewise.
466         * tests/test-binary-io.c (ASSERT): Likewise.
467         * tests/test-byteswap.c (ASSERT): Likewise.
468         * tests/test-c-ctype.c (ASSERT): Likewise.
469         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
470         * tests/test-c-strcasestr.c (ASSERT): Likewise.
471         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
472         * tests/test-c-strstr.c (ASSERT): Likewise.
473         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
474         * tests/test-canonicalize.c (ASSERT): Likewise.
475         * tests/test-carray_list.c (ASSERT): Likewise.
476         * tests/test-ceilf1.c (ASSERT): Likewise.
477         * tests/test-ceilf2.c (ASSERT): Likewise.
478         * tests/test-ceill.c (ASSERT): Likewise.
479         * tests/test-count-one-bits.c (ASSERT): Likewise.
480         * tests/test-fbufmode.c (ASSERT): Likewise.
481         * tests/test-fflush2.c (ASSERT): Likewise.
482         * tests/test-floorf1.c (ASSERT): Likewise.
483         * tests/test-floorf2.c (ASSERT): Likewise.
484         * tests/test-floorl.c (ASSERT): Likewise.
485         * tests/test-fopen.c (ASSERT): Likewise.
486         * tests/test-fpending.c (ASSERT): Likewise.
487         * tests/test-fprintf-posix.c (ASSERT): Likewise.
488         * tests/test-fpurge.c (ASSERT): Likewise.
489         * tests/test-freadable.c (ASSERT): Likewise.
490         * tests/test-freadahead.c (ASSERT): Likewise.
491         * tests/test-freading.c (ASSERT): Likewise.
492         * tests/test-freadptr.c (ASSERT): Likewise.
493         * tests/test-freadptr2.c (ASSERT): Likewise.
494         * tests/test-freadseek.c (ASSERT): Likewise.
495         * tests/test-freopen.c (ASSERT): Likewise.
496         * tests/test-frexp.c (ASSERT): Likewise.
497         * tests/test-frexpl.c (ASSERT): Likewise.
498         * tests/test-fseek.c (ASSERT): Likewise.
499         * tests/test-fseeko.c (ASSERT): Likewise.
500         * tests/test-fstrcmp.c (ASSERT): Likewise.
501         * tests/test-ftell.c (ASSERT): Likewise.
502         * tests/test-ftello.c (ASSERT): Likewise.
503         * tests/test-func.c (ASSERT): Likewise.
504         * tests/test-fwritable.c (ASSERT): Likewise.
505         * tests/test-fwriting.c (ASSERT): Likewise.
506         * tests/test-getdelim.c (ASSERT): Likewise.
507         * tests/test-getline.c (ASSERT): Likewise.
508         * tests/test-i-ring.c (ASSERT): Likewise.
509         * tests/test-iconv-utf.c (ASSERT): Likewise.
510         * tests/test-iconv.c (ASSERT): Likewise.
511         * tests/test-isfinite.c (ASSERT): Likewise.
512         * tests/test-isnand.c (ASSERT): Likewise.
513         * tests/test-isnanf.c (ASSERT): Likewise.
514         * tests/test-isnanl.h (ASSERT): Likewise.
515         * tests/test-ldexpl.c (ASSERT): Likewise.
516         * tests/test-linked_list.c (ASSERT): Likewise.
517         * tests/test-linkedhash_list.c (ASSERT): Likewise.
518         * tests/test-localename.c (ASSERT): Likewise.
519         * tests/test-lseek.c (ASSERT): Likewise.
520         * tests/test-mbscasecmp.c (ASSERT): Likewise.
521         * tests/test-mbscasestr1.c (ASSERT): Likewise.
522         * tests/test-mbscasestr2.c (ASSERT): Likewise.
523         * tests/test-mbscasestr3.c (ASSERT): Likewise.
524         * tests/test-mbscasestr4.c (ASSERT): Likewise.
525         * tests/test-mbschr.c (ASSERT): Likewise.
526         * tests/test-mbscspn.c (ASSERT): Likewise.
527         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
528         * tests/test-mbspbrk.c (ASSERT): Likewise.
529         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
530         * tests/test-mbsrchr.c (ASSERT): Likewise.
531         * tests/test-mbsspn.c (ASSERT): Likewise.
532         * tests/test-mbsstr1.c (ASSERT): Likewise.
533         * tests/test-mbsstr2.c (ASSERT): Likewise.
534         * tests/test-mbsstr3.c (ASSERT): Likewise.
535         * tests/test-memchr2.c (ASSERT): Likewise.
536         * tests/test-memmem.c (ASSERT): Likewise.
537         * tests/test-open.c (ASSERT): Likewise.
538         * tests/test-printf-frexp.c (ASSERT): Likewise.
539         * tests/test-printf-frexpl.c (ASSERT): Likewise.
540         * tests/test-printf-posix.c (ASSERT): Likewise.
541         * tests/test-quotearg.c (ASSERT): Likewise.
542         * tests/test-rbtree_list.c (ASSERT): Likewise.
543         * tests/test-rbtree_oset.c (ASSERT): Likewise.
544         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
545         * tests/test-round1.c (ASSERT): Likewise.
546         * tests/test-roundf1.c (ASSERT): Likewise.
547         * tests/test-roundl.c (ASSERT): Likewise.
548         * tests/test-signbit.c (ASSERT): Likewise.
549         * tests/test-sleep.c (ASSERT): Likewise.
550         * tests/test-snprintf-posix.c (ASSERT): Likewise.
551         * tests/test-snprintf.c (ASSERT): Likewise.
552         * tests/test-sprintf-posix.c (ASSERT): Likewise.
553         * tests/test-stat-time.c (ASSERT): Likewise.
554         * tests/test-strcasestr.c (ASSERT): Likewise.
555         * tests/test-strerror.c (ASSERT): Likewise.
556         * tests/test-striconv.c (ASSERT): Likewise.
557         * tests/test-striconveh.c (ASSERT): Likewise.
558         * tests/test-striconveha.c (ASSERT): Likewise.
559         * tests/test-strsignal.c (ASSERT): Likewise.
560         * tests/test-strstr.c (ASSERT): Likewise.
561         * tests/test-strtod.c (ASSERT): Likewise.
562         * tests/test-trunc1.c (ASSERT): Likewise.
563         * tests/test-trunc2.c (ASSERT): Likewise.
564         * tests/test-truncf1.c (ASSERT): Likewise.
565         * tests/test-truncf2.c (ASSERT): Likewise.
566         * tests/test-truncl.c (ASSERT): Likewise.
567         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
568         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
569         * tests/test-vasnprintf.c (ASSERT): Likewise.
570         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
571         * tests/test-vasprintf.c (ASSERT): Likewise.
572         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
573         * tests/test-vprintf-posix.c (ASSERT): Likewise.
574         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
575         * tests/test-vsnprintf.c (ASSERT): Likewise.
576         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
577         * tests/test-wcwidth.c (ASSERT): Likewise.
578         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
579         * tests/test-xprintf-posix.c (ASSERT): Likewise.
580         * tests/test-xvasprintf.c (ASSERT): Likewise.
581         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
582         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
583         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
584         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
585         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
586         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
587         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
588         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
589         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
590         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
591         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
592         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
593         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
594         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
595         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
596         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
597         * tests/unictype/test-block_list.c (ASSERT): Likewise.
598         * tests/unictype/test-block_of.c (ASSERT): Likewise.
599         * tests/unictype/test-block_test.c (ASSERT): Likewise.
600         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
601         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
602         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
603         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
604         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
605         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
606         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
607         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
608         * tests/unictype/test-combining.c (ASSERT): Likewise.
609         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
610         * tests/unictype/test-digit.c (ASSERT): Likewise.
611         * tests/unictype/test-mirror.c (ASSERT): Likewise.
612         * tests/unictype/test-numeric.c (ASSERT): Likewise.
613         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
614         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
615         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
616         * tests/unictype/test-scripts.c (ASSERT): Likewise.
617         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
618         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
619         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
620         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
621         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
622         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
623         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
624         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
625         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
626         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
627         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
628         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
629         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
630         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
631         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
632         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
633         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
634         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
635         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
636         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
637         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
638         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
639         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
640         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
641         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
642         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
643         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
644         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
645         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
646         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
647         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
648         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
649         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
650         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
651         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
652         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
653         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
654         Reported by Eric Blake.
655
656 2008-04-11  Bruno Haible  <bruno@clisp.org>
657
658         * lib/wchar.in.h: Tweak comment.
659
660 2008-04-11  Bruno Haible  <bruno@clisp.org>
661
662         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
663         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
664         gl_COMMON.
665         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
666
667 2008-04-11  Bruno Haible  <bruno@clisp.org>
668
669         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
670
671 2008-04-11  Simon Josefsson  <simon@josefsson.org>
672
673         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
674         of attempting to use non-existing /dev/*random.  Based on patch
675         from Adam Strzelecki <ono@java.pl> in
676         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
677
678 2008-04-08  Bruno Haible  <bruno@clisp.org>
679
680         Add tentative support for emx+gcc.
681         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
682         * lib/fpurge.c (fpurge): Likewise.
683         * lib/freadable.c (freadable): Likewise.
684         * lib/freadahead.c (freadahead): Likewise.
685         * lib/freading.c (freading): Likewise.
686         * lib/freadptr.c (freadptr): Likewise.
687         * lib/freadseek.c (freadptrinc): Likewise.
688         * lib/fseeko.c (rpl_fseeko): Likewise.
689         * lib/fseterr.c (fseterr): Likewise.
690         * lib/fwritable.c (fwritable): Likewise.
691         * lib/fwriting.c (fwriting): Likewise.
692         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
693
694 2008-04-09  Eric Blake  <ebb9@byu.net>
695
696         Avoid some autoconf warnings.
697         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
698         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
699         * m4/afs.m4 (gl_AFS): Likewise.
700         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
701         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
702         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
703         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
704         (gl_INTEGER_TYPE_SUFFIX): Likewise.
705         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
706         (AC_CHECK_DECLS_ONCE): Likewise.
707         Rename file...
708         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
709         gnulib-tool requires autoconf 2.59 or better.
710         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
711
712 2008-04-08  Eric Blake  <ebb9@byu.net>
713
714         Use 'git describe --match' if present (added in git 1.5.5).
715         * build-aux/git-version-gen: Limit result to tags that match 'v*'
716         if possible.
717
718 2008-04-08  Bruno Haible  <bruno@clisp.org>
719
720         Add tentative support for OpenServer.
721         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
722         _ptr, _cnt.
723         * lib/fpurge.c (fpurge): Likewise.
724         * lib/freadable.c (freadable): Likewise.
725         * lib/freadahead.c (freadahead): Likewise.
726         * lib/freading.c (freading): Likewise.
727         * lib/freadptr.c (freadptr): Likewise.
728         * lib/freadseek.c (freadptrinc): Likewise.
729         * lib/fseeko.c (rpl_fseeko): Likewise.
730         * lib/fseterr.c (fseterr): Likewise.
731         * lib/fwritable.c (fwritable): Likewise.
732         * lib/fwriting.c (fwriting): Likewise.
733         Reported by Roger Cornelius <rac@tenzing.org> and
734         Brian K. White <brian@aljex.com>.
735
736 2008-04-06  Jim Meyering  <meyering@redhat.com>
737
738         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
739
740 2008-04-06  Bruno Haible  <bruno@clisp.org>
741
742         Avoid possible error with non-ASCII bytes in UTF-8 locales.
743         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
744         * tests/test-printf-posix.sh: Likewise.
745         * tests/test-vfprintf-posix.sh: Likewise.
746         * tests/test-vprintf-posix.sh: Likewise.
747         * tests/test-xprintf-posix.sh: Likewise.
748
749 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
750
751         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
752         hide error from 'ls', needed on OS/2.
753         Report by Elbert Pol <elbert.pol@gmail.com>.
754
755 2008-04-04  Eric Blake  <ebb9@byu.net>
756
757         Make test-fseeko.c failures meaningful.
758         * tests/test-fseeko.c: Print line number on failure.
759         * tests/test-fseek.c: Likewise.
760         Reported by Nelson H. F. Beebe.
761
762         Improve strtod bug detection check.
763         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
764         required for Solaris 10.
765         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
766
767 2008-04-04  Bruno Haible  <bruno@clisp.org>
768
769         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
770         by m4/setenv.m4.
771
772 2008-04-03  Eric Blake  <ebb9@byu.net>
773
774         Ensure sane .version contents.
775         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
776         version string.
777         * build-aux/git-version-gen: Improve documentation.
778
779         Make GNU make output nicer.
780         * top/GNUmakefile [!_have-Makefile]: Add dependency on
781         MAKECMDGOALS to enforce message for all command line targets.  Set
782         srcdir for use in maint.mk.
783
784         Another maintainer tweak.
785         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
786         a target that regenerates version.
787
788 2008-04-03  Jim Meyering  <meyering@redhat.com>
789
790         vc-list-files: don't cause coreutils "make po-check" failure
791         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
792
793 2008-04-03  Eric Blake  <ebb9@byu.net>
794
795         Allow VPATH usage of vc-list-files.
796         * build-aux/vc-list-files (scriptversion): Add timestamp.
797         (options): Add --help, --version, -C.
798         (CVS): Support installed cvsu.
799
800 2008-04-02  Bruno Haible  <bruno@clisp.org>
801
802         Avoid some "statement with no effect" warnings from gcc.
803         * tests/test-wctype.c (main): Explicitly ignore unused values.
804         Reported by Jim Meyering.
805
806 2008-04-02  Jim Meyering  <meyering@redhat.com>
807
808         Avoid some warnings from "gcc -Wshadow".
809         * tests/test-frexp.c (exp): Define to a different identifier.
810         * tests/test-frexpl.c (exp): Likewise.
811
812 2008-04-03  Jim Meyering  <meyering@redhat.com>
813
814         bootstrap: remove dangling *.[ch] symlinks from lib
815         * build-aux/bootstrap [dangling symlink removal]: Move find's
816         -depth option to precede all others, to avoid a warning.
817         Remove *.[ch] files too, and from "$source_base" (usually lib/).
818
819 2008-04-02  Bruno Haible  <bruno@clisp.org>
820
821         Avoid some warnings from "gcc -Wshadow".
822         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
823         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
824         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
825         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
826         Reported by Jim Meyering.
827
828 2008-04-01  Bruno Haible  <bruno@clisp.org>
829
830         Fix test to work on IRIX 6.5 with cc.
831         * tests/test-math.c (numeric_equal): New function.
832         (main): Use it.
833
834 2008-04-01  Bruno Haible  <bruno@clisp.org>
835
836         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
837
838 2008-04-01  Bruno Haible  <bruno@clisp.org>
839
840         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
841         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
842         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
843         (Depends-on): Remove math.
844
845         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
846         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
847         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
848         (Depends-on): Remove math.
849
850         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
851         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
852         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
853         (Depends-on): Remove math.
854         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
855         (Depends-on): Remove math.
856
857         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
858         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
859         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
860         (Depends-on): Remove math.
861         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
862         (Depends-on): Remove math.
863
864         * tests/test-round1.c: Include nan.h.
865         (main): Use NaNd instead of NAN.
866         * modules/round-tests (Files): Add tests/nan.h.
867
868         * tests/test-trunc1.c: Include nan.h.
869         (main): Use NaNd instead of NAN.
870         * modules/trunc-tests (Files): Add tests/nan.h.
871
872         * tests/test-roundf1.c: Include nan.h.
873         (main): Use NaNf instead of NAN.
874         * modules/roundf-tests (Files): Add tests/nan.h.
875
876         * tests/test-truncf1.c: Include nan.h.
877         (main): Use NaNf instead of NAN.
878         * modules/truncf-tests (Files): Add tests/nan.h.
879
880         * tests/test-ceilf1.c: Include nan.h.
881         (main): Use NaNf instead of NAN.
882         * modules/ceilf-tests (Files): Add tests/nan.h.
883
884         * tests/test-floorf1.c: Include nan.h.
885         (main): Use NaNf instead of NAN.
886         * modules/floorf-tests (Files): Add tests/nan.h.
887
888         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
889         (main): Use NaNf instead of NAN.
890         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
891
892         * tests/test-isnand.c: Include nan.h instead of <math.h>.
893         (main): Use NaNd instead of NAN.
894         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
895
896         * tests/test-frexp.c: Include nan.h.
897         (main): Use NaNd instead of NAN.
898         * modules/frexp-tests (Files): Add tests/nan.h.
899
900         * lib/isnan.c: Don't include <math.h>.
901         (FUNC): Don't use NAN macro.
902         * modules/isnand-nolibm (Depends-on): Remove math.
903         * modules/isnanf-nolibm (Depends-on): Remove math.
904         * modules/isnanl (Depends-on): Remove math.
905         * modules/isnanl-nolibm (Depends-on): Remove math.
906
907         * tests/nan.h: New file.
908
909 2008-04-01  Eric Blake  <ebb9@byu.net>
910
911         Fix typos.
912         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
913         values to be the right type.
914
915         For now, cater to gnulib strtod inaccuracies.
916         * tests/test-strtod.c (main): Allow 1-ulp error on expected
917         fractional results.  While not as nice from a QoI perspective, it
918         is a quicker patch than correctly implementing decimal to binary
919         rounding.
920
921 2008-03-31  Eric Blake  <ebb9@byu.net>
922
923         Guarantee a definition of NAN.
924         * lib/math.in.h (NAN): Define if missing.
925         * tests/test-math.c (main): Test it.
926         * doc/posix-headers/math.texi (math.h): Document this.
927         * lib/isnan.c (rpl_isnand): Use it.
928         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
929         * tests/test-floorf1.c (NaN): Likewise.
930         * tests/test-frexp.c (NaN): Likewise.
931         * tests/test-isnand.c (NaN): Likewise.
932         * tests/test-isnanf.c (NaN): Likewise.
933         * tests/test-round1.c (NaN): Likewise.
934         * tests/test-roundf1.c (NaN): Likewise.
935         * tests/test-snprintf-posix.h (NaN): Likewise.
936         * tests/test-sprintf-posix.h (NaN): Likewise.
937         * tests/test-trunc1.c (NaN): Likewise.
938         * tests/test-truncf1.c (NaN): Likewise.
939         * tests/test-vasnprintf-posix.c (NaN): Likewise.
940         * tests/test-vasprintf-posix.c (NaN): Likewise.
941         * modules/isnand-nolibm (Depends-on): Add math.
942         * modules/isnanf-nolibm (Depends-on): Likewise.
943         * modules/isnanl (Depends-on): Likewise.
944         * modules/isnanl-nolibm (Depends-on): Likewise.
945         * modules/snprintf-posix-tests (Depends-on): Likewise.
946         * modules/sprintf-posix-tests (Depends-on): Likewise.
947         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
948         * modules/vsprintf-posix-tests (Depends-on): Likewise.
949         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
950         * modules/vasprintf-posix-tests (Depends-on): Likewise.
951
952 2008-03-31  Bruno Haible  <bruno@clisp.org>
953
954         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
955         * doc/posix-functions/strtod.texi: Likewise.
956
957 2008-03-31  Bruno Haible  <bruno@clisp.org>
958
959         * tests/test-strtod.c (main): Don't use C99 syntax.
960
961 2008-03-31  Bruno Haible  <bruno@clisp.org>
962
963         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
964         Reported by Eric Blake.
965
966 2008-03-31  Jim Meyering  <meyering@redhat.com>
967
968         Don't compare actual signbit return values.
969         * tests/test-strtod.c (main): Rather, compare only their
970         zero/non-zero nature.
971
972 2008-03-31  Eric Blake  <ebb9@byu.net>
973
974         More strtod documentation.
975         * doc/posix-functions/strtod.texi (strtod): Interpret more test
976         failures as distinct bugs.
977
978 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
979
980         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
981         Problem reported by Erik Benada in
982         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
983
984 2008-03-30  Bruno Haible  <bruno@clisp.org>
985
986         * tests/test-strtod.c: Add comments about which assertion fails on which
987         platform.
988         * doc/posix-functions/strtod.texi: Add info about many more platforms.
989
990 2008-03-30  Eric Blake  <ebb9@byu.net>
991
992         Test signbit behavior on zeros.
993         * tests/test-signbit.c (test_signbitf): Add tests for zero.
994         (test_signbitd, test_signbitl): Likewise.
995
996         More strtod touchups.
997         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
998         sign of negative underflow, for now.  Use .5, not .1.
999         * doc/posix-functions/strtod.texi (strtod): Mention these
1000         limitations.
1001         Reported by Jim Meyering.
1002
1003 2008-03-30  Bruno Haible  <bruno@clisp.org>
1004
1005         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
1006         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
1007
1008 2008-03-30  Bruno Haible  <bruno@clisp.org>
1009
1010         Avoid failure when attempting to return empty iconv results on some
1011         platforms.
1012         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
1013         allocation, don't report ENOMEM when the resulting string is empty.
1014
1015 2008-03-30  Bruno Haible  <bruno@clisp.org>
1016
1017         Fix buffer overrun.
1018         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
1019         Don't consider the width for tmp_length. Check count against tmp_length
1020         before doing the padding. Ensure enough allocation during padding.
1021
1022 2008-03-30  Eric Blake  <ebb9@byu.net>
1023
1024         strtod touchups.
1025         * lib/strtod.c (strtod): Avoid compiler warnings.
1026         Reported by Jim Meyering.
1027
1028 2008-03-30  Bruno Haible  <bruno@clisp.org>
1029
1030         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
1031         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
1032         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
1033         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
1034         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
1035         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
1036         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
1037         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
1038
1039         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
1040         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
1041         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
1042         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
1043         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
1044         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
1045         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
1046         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
1047
1048         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
1049         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
1050         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
1051         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
1052         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
1053         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
1054         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
1055         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
1056
1057         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
1058         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
1059
1060         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
1061         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
1062
1063         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
1064         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
1065
1066         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
1067         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
1068         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
1069
1070         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
1071         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
1072         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
1073
1074         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
1075         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
1076         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
1077
1078         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
1079         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
1080         * modules/vasprintf (Depends-on): Add EOVERFLOW.
1081
1082         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
1083         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
1084         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
1085         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
1086         (Depends-on): Add EOVERFLOW.
1087         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
1088         (Depends-on): Add EOVERFLOW.
1089         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
1090         (Depends-on): Add EOVERFLOW.
1091         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
1092         (Depends-on): Add EOVERFLOW.
1093         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
1094         (Depends-on): Add EOVERFLOW.
1095         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
1096         (Depends-on): Add EOVERFLOW.
1097         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
1098         (Depends-on): Add EOVERFLOW.
1099         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
1100         (Depends-on): Add EOVERFLOW.
1101
1102         * lib/sprintf.c (EOVERFLOW): Remove fallback.
1103         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
1104         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
1105
1106         * lib/snprintf.c (EOVERFLOW): Remove fallback.
1107         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
1108         * modules/snprintf (Depends-on): Add EOVERFLOW.
1109
1110         * lib/poll.c (EOVERFLOW): Remove fallback.
1111         * modules/poll (Depends-on): Add EOVERFLOW.
1112
1113         * lib/getugroups.c (EOVERFLOW): Remove fallback.
1114         * modules/getugroups (Depends-on): Add EOVERFLOW.
1115
1116         * lib/getdelim.c (EOVERFLOW): Remove fallback.
1117         * modules/getdelim (Depends-on): Add EOVERFLOW.
1118
1119         * lib/ftell.c (EOVERFLOW): Remove fallback.
1120         * modules/ftell (Depends-on): Add EOVERFLOW.
1121
1122         * lib/fprintf.c (EOVERFLOW): Remove fallback.
1123         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
1124         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
1125
1126         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
1127
1128         * modules/EOVERFLOW-tests: New file.
1129         * tests/test-EOVERFLOW.c: New file.
1130
1131         * modules/EOVERFLOW: New file.
1132         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
1133
1134 2008-03-30  Bruno Haible  <bruno@clisp.org>
1135
1136         Fix bug introduced on 2007-06-10.
1137         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
1138         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
1139
1140 2008-03-30  Bruno Haible  <bruno@clisp.org>
1141
1142         Improve freadseek's efficiency after ungetc.
1143         * lib/freadseek.c: Include freadahead.h.
1144         (freadptrinc): New function, extracted from freadseek.
1145         (freadseek): Use it in a loop. Use freadahead to determine the number
1146         of loop iterations.
1147         * modules/freadseek (Depends-on): Add freadahead.
1148         (configure.ac): Require AC_C_INLINE.
1149
1150 2008-03-30  Bruno Haible  <bruno@clisp.org>
1151
1152         * lib/freadseek.c (freadseek): Don't ignore the return value of
1153         freadptr.
1154
1155 2008-03-29  Eric Blake  <ebb9@byu.net>
1156
1157         Add hex float support.
1158         * modules/strtod (Depends-on): Add c-ctype.
1159         (Link): Mention POW_LIB.
1160         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
1161         whitespace between 'e' and exponent.
1162         * tests/test-strtod.c (main): Enable hex float tests.
1163         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
1164         now provides.
1165
1166         Document various strtod bugs, with some fixes.
1167         * doc/posix-functions/strtod.texi (strtod): Document bugs with
1168         "-0x", "inf", "nan", and hex constants.
1169         * doc/posix-functions/atof.texi (atof): Likewise.
1170         * modules/stdlib (Makefile.am): Support strtod.
1171         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
1172         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
1173         detect additional strtod bugs.
1174         * lib/stdlib.in.h (rpl_strtod): Add declarations.
1175         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
1176         bool where appropriate.  Parse 'inf' and 'nan'.
1177         * tests/test-strtod.c: New file.
1178         * modules/strtod (Depends-on): Add stdbool, stdlib.
1179         (configure.ac): Turn on module indicator.
1180         * modules/strtod-tests: New module.
1181
1182 2008-03-29  Eric Blake  <ebb9@byu.net>
1183
1184         Fix ftell on mingw.
1185         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
1186         * modules/ftell-tests (Depends-on): Add binary-io.
1187         * modules/ftello-tests (Depends-on): Likewise.
1188         * tests/test-ftell.c (main): Enhance test to cover behavior after
1189         ungetc.  Enforce binary mode.
1190         * tests/test-ftello.c (main): Likewise.
1191
1192         Pass test-freadseek on cygwin.
1193         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
1194         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
1195         ungetc buffer.
1196
1197         * tests/test-fflush2.c (main): Fix typo.
1198
1199 2008-03-29  Bruno Haible  <bruno@clisp.org>
1200
1201         * tests/test-fflush2.c (main): Temporarily disable the contents of
1202         this test.
1203         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
1204         Reported by Eric Blake.
1205
1206 2008-03-28  Simon Josefsson  <simon@josefsson.org>
1207
1208         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
1209         (GC_SHA224_DIGEST_SIZE): Add.
1210
1211         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
1212         (gc_hash_digest_length): Likewise.
1213         (gc_hash_buffer): Likewise.
1214
1215 2008-03-25  Bruno Haible  <bruno@clisp.org>
1216
1217         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
1218         detail which gettext release to use.
1219         Reported by Simon Josefsson.
1220
1221 2008-03-26  Jim Meyering  <meyering@redhat.com>
1222
1223         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
1224         * modules/gnumakefile (clean-GNUmakefile): Also, use
1225         test ... && ... || : syntax rather than if-then ... fi.
1226
1227         gnumakefile: Don't double-quote-expand $(VPATH) value.
1228         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
1229
1230 2008-03-24  Eric Blake  <ebb9@byu.net>
1231
1232         Alter GNUmakefile to install into top directory.
1233         * modules/maintainer-makefile: Split, and add dependency...
1234         * modules/gnumakefile: to this new module.
1235         * build-aux/GNUmakefile: Move...
1236         * top/GNUmakefile: ...here.
1237         * build-aux/maint.mk: Move...
1238         * top/maint.mk: ...here.
1239         * MODULES.html.sh (Support for maintaining...): Document new
1240         module.
1241
1242 2008-03-23  Bruno Haible  <bruno@clisp.org>
1243
1244         * gnulib-tool: New options --vc-files, --no-vc-files.
1245         (func_usage): Document them.
1246         (vc_files): New variable.
1247         (func_import): Consider vc_files.
1248         (func_create_testdir): Set vc_files to empty.
1249         Suggested by Jim Meyering and Karl Berry.
1250
1251 2008-03-23  Bruno Haible  <bruno@clisp.org>
1252
1253         Fix regex compilation error on HP-UX 11.
1254         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
1255         * modules/regex (Files): Add m4/mbstate_t.m4.
1256         Reported by Ton Voon <ton.voon@altinity.com>.
1257
1258 2008-03-23  Bruno Haible  <bruno@clisp.org>
1259
1260         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
1261
1262 2008-03-23  Eric Blake  <ebb9@byu.net>
1263             Bruno Haible  <bruno@clisp.org>
1264
1265         Install files from top/ in the destination directory.
1266         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
1267         augmentation also for the files from top/.
1268         (func_import, func_create_testdir): Rewrite file names:
1269         top/filename -> filename.
1270
1271 2008-03-23  Bruno Haible  <bruno@clisp.org>
1272
1273         Tweak "gnulib --version" output.
1274         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
1275
1276 2008-03-23  Bruno Haible  <bruno@clisp.org>
1277
1278         Tweak "gnulib --version" output.
1279         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
1280         rather than contents of ChangeLog, when possible.
1281
1282 2008-03-21  Eric Blake  <ebb9@byu.net>
1283
1284         More --version tweaks.
1285         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
1286         date of last ChangeLog entry.
1287
1288 2008-03-21  Jim Meyering  <meyering@redhat.com>
1289
1290         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
1291
1292 2008-03-20  Eric Blake  <ebb9@byu.net>
1293
1294         VPATH fix.
1295         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
1296
1297 2008-03-20  Simon Josefsson  <simon@josefsson.org>
1298
1299         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
1300         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
1301
1302 2008-03-20  Eric Blake  <ebb9@byu.net>
1303
1304         Sync GNUmakefile with coreutils.
1305         * build-aux/GNUmakefile (have-Makefile): Rename...
1306         (_have-Makefile): ...to this, for namespace consideration.
1307         (GNUmakefile.cfg): Include, if present.
1308         (_autoreconf): Define a default.
1309         (_is-dist-target): New rule for rebuilds to pick up intra-release
1310         version.
1311         (maint-cfg.mk): Rename...
1312         (cfg.mk): ...to this.
1313
1314 2008-03-18  Jim Meyering  <meyering@redhat.com>
1315
1316         New script and module: mktempd
1317         * MODULES.html.sh (maint+release support): Add mktempd.
1318         * build-aux/mktempd: New file.
1319         * modules/mktempd: New file.
1320
1321 2008-03-15  Jim Meyering  <meyering@redhat.com>
1322
1323         Undo last change.
1324         * lib/sha1.c, lib/md5.c: 63 != ~63.
1325         Reported by Andreas Schwab.
1326
1327         sha1.c, md5.c: Hoist a redundant expression.
1328         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
1329         "ctx->buflen" only once, before calling *_process_block.
1330         * lib/md5.c (md5_process_bytes): Likewise.
1331
1332 2008-03-14  Eric Blake  <ebb9@byu.net>
1333
1334         Bump copyright year in files generated by gnulib-tool.
1335         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
1336         gnulib-tool, rather than hard-coding it.
1337
1338         Fix 'gnulib-tool --version' output to work with git.
1339         * gnulib-tool (func_gnulib_dir): New function, extracted from...
1340         (startup): ...here.
1341         (func_version): Use it to invoke git-version-gen, rather than
1342         relying on CVS keyword expansion.  Modernize wording.
1343         (cvsdatestamp, last_checkin_date, version): Kill unused
1344         variables.
1345
1346 2008-03-12  Jim Meyering  <meyering@redhat.com>
1347
1348         Recognize optional cast of the argument to free.
1349         * build-aux/useless-if-before-free: Update regexps.
1350
1351         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
1352
1353 2008-03-11  Bruno Haible  <bruno@clisp.org>
1354
1355         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
1356         by a single package.
1357         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
1358         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
1359         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
1360         Reported by Sam Steingold <sds@gnu.org>.
1361
1362 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
1363
1364         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
1365         repositories.
1366
1367 2008-03-11  Bruno Haible  <bruno@clisp.org>
1368
1369         Avoid conflicts between local macro definitions.
1370         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
1371         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
1372
1373 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
1374             Bruno Haible  <bruno@clisp.org>
1375
1376         Make va_copy work with some version of xlc on AIX 5.1.
1377         * lib/stdarg.in.h: New file.
1378         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
1379         On AIX, use a <stdarg.h> file substitute.
1380         * modules/stdarg (Files): Add lib/stdarg.in.h.
1381         (Depends-on): Add include_next.
1382         (Makefile.am): Build a stdarg.h substitute if requested.
1383         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
1384
1385 2008-03-10  Bruno Haible  <bruno@clisp.org>
1386
1387         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
1388         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
1389         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
1390
1391 2008-03-10  Bruno Haible  <bruno@clisp.org>
1392
1393         * modules/stdlib (Depends-on): Add include_next, remove
1394         absolute-header.
1395
1396 2008-03-09  Bruno Haible  <bruno@clisp.org>
1397
1398         * lib/freadahead.h (freadahead): Document more precisely.
1399         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
1400         the sum of both buffer sizes.
1401         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
1402         * NEWS: Document the change.
1403
1404 2008-03-09  Bruno Haible  <bruno@clisp.org>
1405
1406         Extend freadptr to return also the buffer size.
1407         * lib/freadptr.h (freadptr): Add sizep argument.
1408         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
1409         (freadptr): Add sizep argument. Determine buffer size like freadahead
1410         does.
1411         * tests/test-freadptr.c: Don't include freadahead.h.
1412         (main): Adapt for new calling convention of freadptr.
1413         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
1414         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
1415         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
1416         tests/test-freadptr2.sh.
1417         (Depends): Remove freadahead.
1418         (TESTS): Add test-freadptr2.sh.
1419         (check_PROGRAMS): Add test-freadptr2.
1420
1421 2008-03-09  Bruno Haible  <bruno@clisp.org>
1422
1423         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
1424         Report and solution by Simon Josefsson.
1425
1426 2008-03-06  Bruno Haible  <bruno@clisp.org>
1427
1428         Make fflush after ungetc work on BSD platforms.
1429         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
1430         * tests/test-fflush2.c: New file.
1431         * tests/test-fflush2.sh: New file.
1432         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
1433         tests/test-fflush2.c.
1434         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
1435         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
1436
1437 2008-03-06  Eric Blake  <ebb9@byu.net>
1438
1439         Likewise for ftello.
1440         * modules/ftello (Dependencies): Add extensions.
1441         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
1442
1443 2008-03-06  Bruno Haible  <bruno@clisp.org>
1444
1445         * modules/fseeko (Dependencies): Add extensions.
1446         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
1447         Needed on glibc systems.
1448
1449 2008-03-06  Bruno Haible  <bruno@clisp.org>
1450
1451         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
1452         email address.
1453         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
1454
1455 2008-03-06  Bruno Haible  <bruno@clisp.org>
1456
1457         * users.txt: Add libgnupdf.
1458
1459 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
1460
1461         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
1462         (Header File Substitutes, Function Substitutes,
1463         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
1464         (Build robot for gnulib): Fix typo.
1465
1466 2008-03-06  Bruno Haible  <bruno@clisp.org>
1467
1468         * doc/gnulib-tool.texi (VCS Issues): Small updates.
1469         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
1470
1471 2008-03-06  Bruno Haible  <bruno@clisp.org>
1472
1473         * doc/func.texi: New file, extracted from doc/gnulib.texi.
1474         * doc/gnulib.texi: Include it.
1475
1476 2008-03-06  Simon Josefsson  <simon@josefsson.org>
1477
1478         * modules/func (License): Change license to unlimited; there was
1479         no LGPL parts in the module anyway.
1480
1481 2008-03-06  Simon Josefsson  <simon@josefsson.org>
1482
1483         * modules/__func__: Renamed to modules/func.
1484         * modules/__func__-tests: Renamed to modules/func-tests.
1485         * tests/test-__func__.c: Renamed to tests/test-func.c.
1486         * m4/__func__.m4: Renamed to m4/func.m4.
1487         * doc/gnulib.texi (__func__): Section renamed to func.
1488         Suggested by Eric Blake <ebb9@byu.net>.
1489
1490 2008-03-06  Simon Josefsson  <simon@josefsson.org>
1491
1492         * doc/gnulib.texi (__func__): Use C99 terminology when talking
1493         about __func__.  Make example self-contained.  Suggested by Eric
1494         Blake <ebb9@byu.net>.
1495
1496         * tests/test-__func__.c (main): Avoid extraneous () around __func.
1497         Suggested by Eric Blake <ebb9@byu.net>.
1498
1499 2008-03-06  Simon Josefsson  <simon@josefsson.org>
1500
1501         * modules/__func__: New file.
1502         * modules/__func__-tests: New file.
1503         * tests/test-__func__.c: New file.
1504         * m4/__func__.m4: New file.
1505         * doc/gnulib.texi (__func__): Document __func__ module.
1506
1507 2008-03-05  Simon Josefsson  <simon@josefsson.org>
1508
1509         * modules/byteswap (License): Re-license as LGPLv2+.
1510
1511 2008-03-05  Simon Josefsson  <simon@josefsson.org>
1512
1513         * doc/Makefile: Add pdf target.
1514
1515 2008-03-05  Simon Josefsson  <simon@josefsson.org>
1516
1517         * modules/inline (License): Use 'unlimited', since there are only
1518         *.m4 files in this module.
1519
1520 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
1521             Bruno Haible  <bruno@clisp.org>
1522
1523         Add support for HP C 7.1 on OpenVMS 8.3.
1524         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
1525
1526 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
1527
1528         Update VMS specifics.
1529         * lib/getopt.c [VMS]: Remove include of unixlib.h.
1530
1531 2008-03-02  Jim Meyering  <meyering@redhat.com>
1532
1533         Remove the last dependency on the "free" module.
1534         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
1535         Reported by Bob Proulx.
1536
1537         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
1538
1539         Remove useless "if" tests before free.  Deprecate "free" module.
1540         * doc/posix-functions/free.texi: Mention that this
1541         module is no longer useful.
1542         * modules/free (Notice): Say this module is obsolete.
1543         * modules/readutmp (Depends-on): Remove free.
1544         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
1545         * lib/putenv.c (putenv): Likewise.
1546         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
1547         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
1548         * tests/test-c-strcasestr.c (main): Likewise.
1549         * tests/test-c-strstr.c (main): Likewise.
1550         * tests/test-mbscasestr1.c (main): Likewise.
1551         * tests/test-mbscasestr2.c (main): Likewise.
1552         * tests/test-mbsstr1.c (main): Likewise.
1553         * tests/test-mbsstr2.c (main): Likewise.
1554         * tests/test-memmem.c (main): Likewise.
1555         * tests/test-strcasestr.c (main): Likewise.
1556         * tests/test-striconv.c (main): Likewise.
1557         * tests/test-striconveh.c (main): Likewise.
1558         * tests/test-striconveha.c (main): Likewise.
1559         * tests/test-strstr.c (main): Likewise.
1560
1561         * build-aux/git-version-gen: Adjust a comment and the Usage string.
1562
1563         bootstrap: sync from coreutils again
1564         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
1565
1566 2008-03-01  Jim Meyering  <meyering@redhat.com>
1567
1568         bootstrap: sync from coreutils
1569         * build-aux/bootstrap (update_po_files): Copy a .po file into place
1570         also when the target doesn't exist.
1571
1572 2008-03-01  Eric Blake  <ebb9@byu.net>
1573
1574         Fix bugs in last patch.
1575         * lib/memchr2.c (memchr2): Fix typo.
1576         * tests/test-memchr2.c: Test previous bug, and don't use GNU
1577         extension.
1578         Reported by Bruce Korb.
1579
1580         New module 'memchr2'.
1581         * modules/memchr2: New file.
1582         * modules/memchr2-tests: Likewise.
1583         * lib/memchr2.h: Likewise.
1584         * lib/memchr2.c: Likewise, based on memchr.c.
1585         * tests/test-memchr2.c: New test.
1586         * MODULES.html.sh (String handling): Add memchr2.
1587
1588 2008-02-29  Bruno Haible  <bruno@clisp.org>
1589
1590         * modules/freadseek-tests: New file.
1591         * tests/test-freadseek.sh: New file.
1592         * tests/test-freadseek.c: New file.
1593
1594         New module 'freadseek'.
1595         * modules/freadseek: New file.
1596         * lib/freadseek.h: New file.
1597         * lib/freadseek.c: New file.
1598         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
1599
1600 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
1601
1602         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
1603         wydawca.
1604
1605         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
1606         program_invocation_name and program_invocation_short_name are
1607         present.
1608
1609 2008-02-28  Bruno Haible  <bruno@clisp.org>
1610
1611         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
1612         * tests/test-freadptr.sh: Also test non-seekable stdin.
1613
1614 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
1615
1616         * build-aux/bootstrap (source_base, m4_base)
1617         (doc_base, tests_base): New variables.
1618         (gnulib_tool_options): Do not hardcode base directories, use
1619         the above variables instead.
1620
1621 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
1622
1623         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
1624
1625 2008-02-28  Bruno Haible  <bruno@clisp.org>
1626
1627         * modules/freadptr-tests: New file.
1628         * tests/test-freadptr.sh: New file.
1629         * tests/test-freadptr.c: New file.
1630
1631         New module 'freadptr'.
1632         * modules/freadptr: New file.
1633         * lib/freadptr.h: New file.
1634         * lib/freadptr.c: New file.
1635         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
1636
1637 2008-02-26  Karl Berry  <karl@freefriends.org>
1638
1639         Sync from Libtool:
1640         * libltdl/argz.c (argz_add, argz_count): New functions.
1641         * libltdl/argz.in.h: Declare them.
1642         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
1643
1644 2008-02-22  Bruno Haible  <bruno@clisp.org>
1645
1646         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
1647         is a pointer type.  Needed for HP-UX 10.
1648         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
1649         * doc/posix-functions/gmtime_r.texi: Likewise.
1650         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
1651
1652 2008-02-24  Bruno Haible  <bruno@clisp.org>
1653
1654         * modules/environ-tests: New file.
1655         * tests/test-environ.c: New file.
1656
1657         New module 'environ'.
1658         * modules/environ: New file.
1659         * lib/unistd.in.h (environ): New declaration.
1660         * m4/environ.m4: New file.
1661         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
1662         after use.
1663         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
1664         HAVE_DECL_ENVIRON.
1665         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
1666         HAVE_DECL_ENVIRON.
1667         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
1668         wrong claim that 'environ' is missing on some systems.
1669         * modules/execute (Depends-on): Add environ.
1670         * lib/execute.c (environ): Remove fallback declaration.
1671         * modules/pipe (Depends-on): Add environ.
1672         * lib/pipe.c (environ): Remove fallback declaration.
1673         * modules/setenv (Depends-on): Add environ.
1674         * lib/setenv.c (environ): Remove fallback declaration.
1675         * modules/unsetenv (Depends-on): Add environ.
1676         * lib/unsetenv.c (environ): Remove fallback declaration.
1677         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
1678         m4/environ.m4.
1679         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
1680         (gl_PREREQ_UNSETENV): Likewise.
1681
1682 2008-02-24  Bruno Haible  <bruno@clisp.org>
1683
1684         * doc/posix-functions/environ.texi: Document the MacOS X problem.
1685
1686 2008-02-20  Bob Proulx  <bob@proulx.com>
1687
1688         Enable use of older two part flavor 'git describe'.
1689         * build-aux/git-version-gen: If using the older two part flavor of
1690         git version then recreate the third part now present in the
1691         newer three part flavor of git describe.
1692
1693 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
1694
1695         * lib/fts.c (fts_build): Typo correction to comment.
1696
1697 2008-02-17  Bruno Haible  <bruno@clisp.org>
1698
1699         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
1700         generating no-op conflicts.
1701
1702 2008-02-17  Bruno Haible  <bruno@clisp.org>
1703
1704         Speed up by 10%.
1705         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
1706         result_entries, rather than an index-based loop.
1707
1708 2008-02-17  Bruno Haible  <bruno@clisp.org>
1709
1710         Speed up by 25%.
1711         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
1712         'hashcode_cached'.
1713         (entry_create): New function.
1714         (entry_hashcode): Use the cached hashcode if possible.
1715         (read_changelog_file, try_split_merged_entry): Use entry_create.
1716
1717 2008-02-17  Bruno Haible  <bruno@clisp.org>
1718
1719         Speed up from O(n^2) to O(n) for long ChangeLog files.
1720         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
1721         (read_changelog_file): Change implementation of entries_reversed list
1722         to rbtreehash.
1723         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
1724
1725 2008-02-17  Bruno Haible  <bruno@clisp.org>
1726
1727         New option --split-merged-entry.
1728         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
1729         (find_paragraph_end, try_split_merged_entry): New functions.
1730         (long_options): Add option --split-merged-entry.
1731         (usage): Document option --split-merged-entry.
1732         (main): Implement option --split-merged-entry.
1733         Reported by Eric Blake.
1734
1735 2008-02-17  Bruno Haible  <bruno@clisp.org>
1736
1737         * lib/git-merge-changelog.c: Include c-strstr.h.
1738         (main): Support the "git pull --rebase" situation.
1739         * modules/git-merge-changelog (Depends-on): Add c-strstr.
1740         Reported by Eric Blake.
1741
1742 2008-02-16  Eric Blake  <ebb9@byu.net>
1743
1744         Avoid doubling \ in common case of "c-maybe" quoting style.
1745         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
1746         eliding outer quotes.
1747         * lib/quotearg.h: Document this.
1748         * tests/test-quotearg.c (result_strings, inputs, results_g)
1749         (flag_results, locale_results): Test it by adding a new string to
1750         each test group.
1751         (compare_strings): Test new string.
1752
1753 2008-02-13  Eric Blake  <ebb9@byu.net>
1754
1755         Avoid trigraph quoting in default output.
1756         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
1757         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
1758         unless explicitly requested.
1759         * tests/test-quotearg.c (flag_results, main): Add additional tests.
1760
1761 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
1762
1763         Don't rely on signed integer overflowing to negative value.
1764         * lib/getugroups.c (getugroups): Include <limits.h>.
1765         Instead, compare against INT_MAX, and increment only if the test passes.
1766
1767 2008-02-13  Jim Meyering  <meyering@redhat.com>
1768         and Eric Blake  <ebb9@byu.net>
1769
1770         Avoid shadowing warning and compile errors on Linux.
1771         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
1772         forwarding macros on Linux.
1773         (dcgettext): Define a stub, for Linux.
1774         (results_g, main): Avoid warnings.
1775
1776 2008-02-12  Eric Blake  <ebb9@byu.net>
1777
1778         Silence warning in last patch.
1779         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
1780
1781         Quotearg part 4: add tests, fix c-maybe colon quoting.
1782         * lib/quotearg.h: Improve documentation.
1783         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
1784         escapes when adding outer quotes.  When quoting trigraphs, use
1785         valid C notation.  When quoting NUL, omit extra characters if next
1786         character is not digit.  Alter prototype.
1787         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
1788         callers.
1789         * modules/quotearg-tests: New module.
1790         * tests/test-quotearg.c: New test.
1791
1792 2008-02-07  Eric Blake  <ebb9@byu.net>
1793
1794         Quotearg part 3: add flag to control outer quote elision.
1795         * lib/quotearg.h (c_maybe_quoting_style): New style.
1796         (enum quoting_flags): Better documentation of flags.
1797         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
1798         c-maybe style.
1799         (quotearg_buffer_restyled): Handle new flag to elide outer
1800         quotes.
1801
1802         Quotearg part 2: add flag that can control NUL elision.
1803         * lib/quotearg.h (set_quoting_flags): New prototype.
1804         * lib/quotearg.c (struct quoting_options): Add flag field.
1805         (set_quoting_flags): New function.
1806         (quotearg_buffer_restyled): Add flags parameter.
1807         (quotearg_alloc_mem): Set the flag if length cannot be returned.
1808         (quotearg_n_options): Set the flag, since length cannot be
1809         returned.
1810         (quoting_options_from_style): Default flags correctly.
1811
1812         Quotearg part 1: more wrappers, restore quotearg_char state.
1813         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
1814         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
1815         (quotearg_colon_mem): New wrappers.
1816         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
1817         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
1818         functions.
1819         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
1820         (quotearg_colon_mem): New functions.
1821
1822 2008-02-11  Bruno Haible  <bruno@clisp.org>
1823
1824         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
1825         library in the current directory: it does not work with parallel make.
1826         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
1827
1828 2008-02-11  Bruno Haible  <bruno@clisp.org>
1829
1830         * .gitattributes: New file.
1831
1832 2008-02-11  Jim Meyering  <meyering@redhat.com>
1833
1834         useless-if-before-free: Fix reversed exit values.
1835         * build-aux/useless-if-before-free: Use correct values
1836         for EXIT_MATCH and EXIT_NO_MATCH.
1837
1838         * build-aux/useless-if-before-free: Close stdout carefully.
1839
1840 2008-02-10  Bruno Haible  <bruno@clisp.org>
1841
1842         New module 'git-merge-changelog'.
1843         * modules/git-merge-changelog: New file.
1844         * lib/git-merge-changelog.c: New file.
1845
1846 2008-02-10  Jim Meyering  <meyering@redhat.com>
1847
1848         useless-if-before-free: New option: --list (-l).
1849
1850         useless-if-before-free: Don't exit immediately upon open failure.
1851         * build-aux/useless-if-before-free: Exit 2 for errors.
1852         Upon failure to open a file, don't exit immediately.
1853         Rather, just warn and continue with any remaining files.
1854
1855 2008-02-10  Bruno Haible  <bruno@clisp.org>
1856
1857         New abstract list operation 'node_set_value'.
1858         * lib/gl_list.h (gl_list_node_set_value): New function.
1859         (struct gl_list_implementation): New field node_set_value.
1860         * lib/gl_list.c (gl_list_node_set_value): New function.
1861         * lib/gl_array_list.c (gl_array_node_set_value): New function.
1862         (gl_array_list_implementation): Update.
1863         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
1864         (gl_carray_list_implementation): Update.
1865         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
1866         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
1867         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
1868         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
1869         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
1870         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
1871         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
1872         Update.
1873         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
1874         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
1875         (gl_sublist_list_implementation): Update.
1876
1877 2008-02-10  Bruno Haible  <bruno@clisp.org>
1878
1879         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
1880         Needed when ELEMENT is #defined to 'some_type *'.
1881
1882 2008-02-10  Jim Meyering  <meyering@redhat.com>
1883
1884         New script and module: useless-if-before-free
1885         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
1886         * build-aux/useless-if-before-free: New file.
1887         * modules/useless-if-before-free: New file.
1888
1889         * build-aux/gitlog-to-changelog: Use committer date, not author date.
1890
1891         xstrtol_error: Fix typo.
1892         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
1893         s/exit_failure/exit_status/.
1894
1895 2008-02-09  Jim Meyering  <meyering@redhat.com>
1896
1897         New script and module: gitlog-to-changelog
1898         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
1899         * modules/gitlog-to-changelog: New file.
1900         * build-aux/gitlog-to-changelog: New file.
1901
1902 2008-02-08  Jim Meyering  <meyering@redhat.com>
1903
1904         Avoid two "parameter unused" warnings.
1905         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
1906         Mark "st" as used.
1907
1908         Use "git COMMAND", not "git-COMMAND".
1909         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
1910         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
1911         * build-aux/git-version-gen: Use "git status", not "git-status".
1912
1913 2008-02-07  Bruno Haible  <bruno@clisp.org>
1914
1915         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
1916         Avoids a crash on Windows Vista.
1917         Reported by Adam Strzelecki <ono@java.pl> via
1918         Simon Josefsson <simon@josefsson.org>.
1919
1920 2008-02-06  Bruno Haible  <bruno@clisp.org>
1921
1922         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
1923         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
1924         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
1925         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
1926         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
1927         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
1928         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
1929         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
1930         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
1931         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
1932         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
1933         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
1934         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
1935         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
1936         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
1937         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
1938         left-adjust flag.
1939         * tests/test-snprintf-posix.h (test_function): Likewise.
1940         * tests/test-sprintf-posix.h (test_function): Likewise.
1941         * tests/test-vasprintf-posix.c (test_function): Likewise.
1942         * doc/posix-functions/fprintf.texi: Update.
1943         * doc/posix-functions/printf.texi: Update.
1944         * doc/posix-functions/snprintf.texi: Update.
1945         * doc/posix-functions/sprintf.texi: Update.
1946         * doc/posix-functions/vfprintf.texi: Update.
1947         * doc/posix-functions/vprintf.texi: Update.
1948         * doc/posix-functions/vsnprintf.texi: Update.
1949         * doc/posix-functions/vsprintf.texi: Update.
1950         Reported by Peter Fales <psfales@alcatel-lucent.com>.
1951
1952 2008-02-06  Bruno Haible  <bruno@clisp.org>
1953
1954         Fix bug introduced on 2008-01-26.
1955         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
1956
1957 2008-02-06  Bruno Haible  <bruno@clisp.org>
1958
1959         Fix bug introduced on 2007-06-10.
1960         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
1961         !NEED_PRINTF_FLAG_ZERO.
1962
1963 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
1964
1965         getloadavg: use libperfstat on AIX5
1966         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
1967
1968 2008-02-03  Bruno Haible  <bruno@clisp.org>
1969
1970         * lib/diffseq.h: Add comments about required #includes.
1971         Reported by Michael Biggs <gnulib@doubleplum.net>.
1972
1973 2008-02-01  Bruno Haible  <bruno@clisp.org>
1974
1975         * users.txt: Add gnuit.
1976
1977 2008-01-31  Bruno Haible  <bruno@clisp.org>
1978
1979         * lib/md4.c (set_uint32): Mark as inline.
1980         * lib/md5.c (set_uint32): Likewise.
1981         * lib/sha1.c (set_uint32): Likewise.
1982         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
1983         * m4/md5.m4 (gl_MD5): Likewise.
1984         * m4/sha1.m4 (gl_SHA1): Likewise.
1985
1986 2008-01-31  Jim Meyering  <meyering@redhat.com>
1987
1988         Use "sizeof VAR", rather than a literal "4".
1989         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
1990         * lib/md4.c (md4_read_ctx): Likewise.
1991         * lib/sha1.c (sha1_read_ctx): Likewise.
1992
1993 2008-01-31  Simon Josefsson  <simon@josefsson.org>
1994
1995         * tests/test-sha1.c: New file, based on test-md5.c.
1996
1997         * modules/crypto/sha1-tests: New file.
1998
1999 2008-01-31  Simon Josefsson  <simon@josefsson.org>
2000
2001         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
2002
2003 2008-01-31  Jim Meyering  <meyering@redhat.com>
2004
2005         Prefer "sizeof v" over the equivalent "4".
2006         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
2007         * lib/md5.c (set_uint32): Likewise.
2008         * lib/sha1.c (set_uint32): Likewise.
2009
2010 2008-01-31  Simon Josefsson  <simon@josefsson.org>
2011
2012         * lib/sha1.c (set_uint32): Mark function as static.
2013
2014 2008-01-31  Simon Josefsson  <simon@josefsson.org>
2015
2016         md2: clarify comments to say that alignment is not required.
2017         * lib/md2.h: Remove warning about alignment in comment.
2018         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
2019         never been required.
2020
2021 2008-01-31  Simon Josefsson  <simon@josefsson.org>
2022
2023         md4: adapt alignment constraint fix from sha1.
2024         * lib/md4.c (set_uint32): New function, from sha1.c
2025         (md4_read_ctx): Use it.
2026         (md4_finish_ctx): Doc fix.
2027         * lib/md4.h: Doc fix.
2028
2029 2008-01-31  Simon Josefsson  <simon@josefsson.org>
2030
2031         md5: adapt alignment constraint fix from sha1.
2032         * lib/md5.c (set_uint32): New function, from sha1.c
2033         (md5_read_ctx): Use it.
2034         (md5_finish_ctx): Doc fix.
2035         * lib/md5.h: Doc fix.
2036
2037 2008-01-30  Peter Palfrader  <weasel@debian.org>
2038
2039         sha1: remove the result buffer alignment constraint
2040         * lib/sha1.c (set_uint32): New function.
2041         (sha1_read_ctx): Rewrite to remove the result buffer alignment
2042         constraint.
2043         (sha1_finish_ctx): Remove comment warning about alignment constraint.
2044         * lib/sha1.h: Likewise.
2045
2046 2008-01-30  Andreas Schwab  <schwab@suse.de>
2047             Bruno Haible  <bruno@clisp.org>
2048
2049         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
2050         correct definition of LDBL_MIN_EXP.
2051
2052 2008-01-30  Karl Berry  <karl@gnu.org>
2053
2054         * config/srclist-update: try to preserve x bit on updates.
2055         * config/srclistvars.sh: update for karl.
2056
2057 2008-01-29  Jim Meyering  <meyering@redhat.com>
2058
2059         vasnprintf.c: Avoid warning about unused label
2060         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
2061         "overflow" label definition and associated code with the
2062         same cpp condition that guards the sole use of that label.
2063
2064 2008-01-26  Bruno Haible  <bruno@clisp.org>
2065
2066         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
2067         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
2068         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
2069         * lib/isnanl-nolibm.h (isnanl): Likewise.
2070         Reported by Paul Eggert <eggert@cs.ucla.edu>.
2071
2072 2008-01-26  Bruno Haible  <bruno@clisp.org>
2073
2074         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
2075         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
2076
2077 2008-01-26  Bruno Haible  <bruno@clisp.org>
2078
2079         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
2080         GCC >= 4.0 built-in.
2081         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
2082
2083 2008-01-26  Bruno Haible  <bruno@clisp.org>
2084
2085         Rename isnan, applicable to 'double' only, to isnand.
2086         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
2087         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
2088         (configure.ac): Update.
2089         (Include): Replace "isnan.h" with "isnand.h".
2090         * m4/isnand.m4: Renamed from m4/isnan.m4.
2091         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
2092         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
2093         instead of isnan.c.
2094         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
2095         instead of HAVE_ISNAN_IN_LIBC.
2096         (isnand): Renamed from isnan.
2097         * lib/isnand.c: New file.
2098         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
2099         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
2100         (Makefile.am): Update.
2101         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
2102         Include isnand.h instead of isnan.h.
2103         (main): Test isnand instead of isnan.
2104         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
2105         isnan-nolibm.
2106         * modules/frexp (Depends-on): Likewise.
2107         * modules/frexp-tests (Depends-on): Likewise.
2108         * modules/frexp-nolibm (Depends-on): Likewise.
2109         * modules/frexp-nolibm-tests (Depends-on): Likewise.
2110         * modules/isfinite (Depends-on): Likewise.
2111         * modules/round-tests (Depends-on): Likewise.
2112         * modules/signbit (Depends-on): Likewise.
2113         * modules/signbit-tests (Depends-on): Likewise.
2114         * modules/snprintf-posix (Depends-on): Likewise.
2115         * modules/sprintf-posix (Depends-on): Likewise.
2116         * modules/trunc-tests (Depends-on): Likewise.
2117         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
2118         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
2119         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
2120         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
2121         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
2122         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
2123         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
2124         * modules/vasnprintf-posix (Depends-on): Likewise.
2125         * modules/vasprintf-posix (Depends-on): Likewise.
2126         * modules/vfprintf-posix (Depends-on): Likewise.
2127         * modules/vsnprintf-posix (Depends-on): Likewise.
2128         * modules/vsprintf-posix (Depends-on): Likewise.
2129         * lib/frexp.c: Include isnand.h instead of isnan.h.
2130         (ISNAN): Set to isnand instead of isnan.
2131         * lib/isfinite.c: Include isnand.h instead of isnan.h.
2132         (gl_isfinited): Use isnand instead of isnan.
2133         * lib/signbitd.c: Include isnand.h instead of isnan.h.
2134         (gl_signbitd): Use isnand instead of isnan.
2135         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
2136         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
2137         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
2138         (main): Use isnand instead of isnan.
2139         * tests/test-round1.c: Include isnand.h.
2140         (main): Use isnand instead of isnan.
2141         * tests/test-round2.c: Include isnand.h instead of isnan.h.
2142         (ISNAN): Set to isnand instead of isnan.
2143         * tests/test-trunc1.c: Include isnand.h.
2144         (main): Use isnand instead of isnan.
2145         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
2146         (equal): Use isnand instead of isnan.
2147         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
2148         isnand-nolibm.
2149         * NEWS: Mention the change.
2150
2151 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
2152             Bruno Haible  <bruno@clisp.org>
2153
2154         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
2155         the GCC builtins for signbits are present and set
2156         REPLACE_SIGNBIT_USING_GCC if so.
2157         * lib/math.in.h (signbit): Define using GCC builtins if
2158         REPLACE_SIGNBIT_USING_GCC is set.
2159         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
2160         REPLACE_SIGNBIT_USING_GCC.
2161         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
2162
2163 2008-01-25  Jim Meyering  <meyering@redhat.com>
2164
2165         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
2166         * lib/poll.c: Include <config.h>, not "config.h".
2167         * tests/test-getaddrinfo.c: Likewise.
2168
2169 2008-01-25  Simon Josefsson  <simon@josefsson.org>
2170
2171         * modules/sockets-tests: New file.
2172
2173 2008-01-24  Simon Josefsson  <simon@josefsson.org>
2174
2175         * modules/sockets: New module, can be used to call WSA_Startup and
2176         WSA_Cleanup when needed.
2177
2178         * lib/sockets.h, lib/sockets.c: New files.
2179
2180         * m4/sockets.m4: New file.
2181
2182         * tests/test-sockets.c: New file.
2183
2184 2008-01-19  Bruno Haible  <bruno@clisp.org>
2185
2186         * doc/posix-headers: Renamed from doc/headers.
2187         * doc/posix-functions: Renamed from doc/functions.
2188         * doc/gnulib.texi: Update.
2189
2190 2008-01-19  Bruno Haible  <bruno@clisp.org>
2191
2192         * doc/glibc-functions/strcasestr.texi: Include contents of
2193         doc/functions/strcasestr.texi, fixing the list of platforms.
2194         * doc/functions/strcasestr.texi: Remove file.
2195
2196 2008-01-19  Bruno Haible  <bruno@clisp.org>
2197
2198         * doc/glibc-functions/memmem.texi: Include contents of
2199         doc/functions/memmem.texi.
2200         * doc/functions/memmem.texi: Remove file.
2201
2202 2008-01-18  Bruno Haible  <bruno@clisp.org>
2203
2204         * doc/glibc-functions/*.texi: New files.
2205         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
2206         to use the new files.
2207
2208 2008-01-17  Bruno Haible  <bruno@clisp.org>
2209
2210         * tests/test-gethostname.c (main): Fix printf statement.
2211
2212 2008-01-17  Simon Josefsson  <simon@josefsson.org>
2213
2214         * modules/gethostname-tests: New file.
2215
2216         * tests/test-gethostname.c: New file.
2217
2218 2008-01-17  Simon Josefsson  <simon@josefsson.org>
2219
2220         * lib/gethostname.c: Include string.h unconditionally, strncpy is
2221         used by the UNAME case.  Reported by Bruno Haible
2222         <bruno@clisp.org>.
2223
2224 2008-01-17  Eric Blake  <ebb9@byu.net>
2225
2226         Convert c-strcasestr to be more efficient.
2227         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
2228         (Depends-on): Add c-strcase, remove malloca, strnlen.
2229         * tests/test-c-strcasestr.c (main): Enhance test.
2230         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
2231
2232 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
2233
2234         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
2235         Use it in creating po/Makevars.
2236
2237 2008-01-15  Simon Josefsson  <simon@josefsson.org>
2238
2239         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
2240         Applications that requires it should initialize libgcrypt
2241         manually.
2242
2243 2008-01-16  Simon Josefsson  <simon@josefsson.org>
2244
2245         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
2246
2247 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
2248
2249         Fix problem with getdate on mingw32 reported by Simon Josefsson
2250         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
2251         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
2252         tzname", when deciding whether to declare tzname.
2253         * lib/strftime.c (tzname): Likewise.
2254
2255 2008-01-15  Bruno Haible  <bruno@clisp.org>
2256
2257         Work around a MacOS X 10.5 bug in frexpl().
2258         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
2259         * doc/functions/frexpl.texi: Document the bug.
2260         Reported by Elias Pipping <pipping@gentoo.org>.
2261
2262 2008-01-14  Eric Blake  <ebb9@byu.net>
2263
2264         Touch up previous patch.
2265         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
2266         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
2267
2268         Convert strcasestr module to use Two-Way algorithm.
2269         * modules/strcasestr-simple: New module, based on the old
2270         strcasestr, but with Two-Way rather than KMP.
2271         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
2272         * lib/string.in.h (rpl_strcasestr): Declare.
2273         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
2274         performance.
2275         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
2276         * modules/string (Makefile.am): Support strcasestr.
2277         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
2278         * modules/strcasestr-tests (Depends-on): Check for alarm.
2279         * tests/test-strcasestr.c: Augment test.
2280         * lib/str-two-way.h: Clean up stray macro.
2281         * NEWS: Document new module.
2282         * MODULES.html.sh (string handling): Likewise.
2283         * doc/functions/strcasestr.texi: New file.
2284         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
2285         here, since it is not a POSIX function.
2286
2287 2008-01-14  Colin Watson  <cjwatson@debian.org>
2288             Bruno Haible  <bruno@clisp.org>
2289
2290         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
2291         works fine; if not, set REPLACE_STRSIGNAL.
2292         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
2293         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
2294         REPLACE_STRSIGNAL.
2295         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
2296         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
2297         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
2298
2299 2008-01-14  Bruno Haible  <bruno@clisp.org>
2300
2301         * modules/strsignal (Include): Change to <string.h>.
2302
2303 2008-01-14  Colin Watson  <cjwatson@debian.org>
2304
2305         * modules/argp (Notice): Add a notice recommending to change
2306         XGETTEXT_OPTIONS.
2307         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
2308
2309 2008-01-13  Colin Watson  <cjwatson@debian.org>
2310
2311         * modules/strsignal-tests: New file.
2312         * tests/test-strsignal.c: New file.
2313
2314         * lib/strsignal.c: New file, from glibc with modifications.
2315         * lib/siglist.h: New file, from glibc with modifications.
2316         * lib/string.in.h (strsignal): New declaration.
2317         * m4/strsignal.m4: New file.
2318         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
2319         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
2320         * modules/strsignal: New file.
2321         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
2322         HAVE_DECL_STRSIGNAL.
2323
2324 2008-01-13  Bruno Haible  <bruno@clisp.org>
2325
2326         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
2327         locale encoding is not ASCII. Needed for OpenBSD 4.0.
2328         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
2329         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
2330
2331 2008-01-13  Bruno Haible  <bruno@clisp.org>
2332
2333         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
2334         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
2335         * lib/argp.h (__attribute__): Likewise.
2336         * lib/c-stack.c (__attribute__): Likewise.
2337         * lib/error.h (__attribute__): Likewise.
2338         * lib/fts.c (__attribute__): Likewise.
2339         * lib/openat.h (__attribute__): Likewise.
2340         * lib/stdio.in.h (__attribute__): Likewise.
2341         * lib/string.in.h (__attribute__): Likewise.
2342         * lib/utimens.c (__attribute__): Likewise.
2343         * lib/vasnprintf.h (__attribute__): Likewise.
2344         * lib/xalloc.h (__attribute__): Likewise.
2345         * lib/xprintf.h (__attribute__): Likewise.
2346         * lib/xstrtol.h (__attribute__): Likewise.
2347         * lib/xvasprintf.h (__attribute__): Likewise.
2348
2349 2008-01-12  Bruno Haible  <bruno@clisp.org>
2350
2351         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
2352         * doc/glibc-headers/a.out.texi: New file.
2353         * doc/glibc-headers/aliases.texi: New file.
2354         * doc/glibc-headers/alloca.texi: New file.
2355         * doc/glibc-headers/ar.texi: New file.
2356         * doc/glibc-headers/argp.texi: New file.
2357         * doc/glibc-headers/argz.texi: New file.
2358         * doc/glibc-headers/byteswap.texi: New file.
2359         * doc/glibc-headers/crypt.texi: New file.
2360         * doc/glibc-headers/endian.texi: New file.
2361         * doc/glibc-headers/envz.texi: New file.
2362         * doc/glibc-headers/err.texi: New file.
2363         * doc/glibc-headers/error.texi: New file.
2364         * doc/glibc-headers/execinfo.texi: New file.
2365         * doc/glibc-headers/fpu_control.texi: New file.
2366         * doc/glibc-headers/fstab.texi: New file.
2367         * doc/glibc-headers/fts.texi: New file.
2368         * doc/glibc-headers/getopt.texi: New file.
2369         * doc/glibc-headers/ieee754.texi: New file.
2370         * doc/glibc-headers/ifaddrs.texi: New file.
2371         * doc/glibc-headers/libintl.texi: New file.
2372         * doc/glibc-headers/mcheck.texi: New file.
2373         * doc/glibc-headers/mntent.texi: New file.
2374         * doc/glibc-headers/obstack.texi: New file.
2375         * doc/glibc-headers/paths.texi: New file.
2376         * doc/glibc-headers/printf.texi: New file.
2377         * doc/glibc-headers/pty.texi: New file.
2378         * doc/glibc-headers/resolv.texi: New file.
2379         * doc/glibc-headers/shadow.texi: New file.
2380         * doc/glibc-headers/sysexits.texi: New file.
2381         * doc/glibc-headers/ttyent.texi: New file.
2382
2383 2008-01-12  Jim Meyering  <meyering@redhat.com>
2384
2385         announce-gen: emit Gnulib's git-based version string.
2386         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
2387         New option --gnulib-version=V, where V is expected to be
2388         the output of running git describe in the gnulib directory.
2389         (get_tool_versions): Request feedback on xdelta.  I suspect it's
2390         not useful, and plan to stop publishing an xdelta file with each
2391         coreutils release.
2392
2393         * build-aux/announce-gen: Also check for lzma-compressed files.
2394
2395 2008-01-11  Bruno Haible  <bruno@clisp.org>
2396
2397         * tests/test-memmem.c (main): Increase maximum allowed time.
2398         * tests/test-strstr.c (main): Likewise.
2399
2400 2008-01-11  Bruno Haible  <bruno@clisp.org>
2401
2402         * doc/functions/memmem.texi: Add more precisions about platforms.
2403         * doc/functions/strstr.texi: Likewise.
2404
2405 2008-01-10  Eric Blake  <ebb9@byu.net>
2406
2407         * m4/strstr.m4: Delete cruft from copy-n-paste.
2408         Reported by Bruno Haible.
2409
2410 2008-01-10  Bruno Haible  <bruno@clisp.org>
2411
2412         Make c-strstr rely on strstr.
2413         * lib/c-strstr.c: Don't include str-kmp.h.
2414         (c_strstr): Define in terms of strstr.
2415         * modules/c-strstr (Files): Remove lib/str-kmp.h.
2416         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
2417
2418 2008-01-10  Bruno Haible  <bruno@clisp.org>
2419
2420         * doc/gnulib.texi (String Functions in C Locale): New section.
2421         * doc/c-ctype.texi: New file.
2422         * doc/c-strcase.texi: New file.
2423         * doc/c-strcaseeq.texi: New file.
2424         * doc/c-strcasestr.texi: New file.
2425         * doc/c-strstr.texi: New file.
2426         * doc/c-strtod.texi: New file.
2427         * doc/c-strtold.texi: New file.
2428
2429 2008-01-10  Eric Blake  <ebb9@byu.net>
2430
2431         * lib/relocatable.h: Fix a comment.
2432
2433 2008-01-10  Eric Blake  <ebb9@byu.net>
2434
2435         Share two-way algorithm.
2436         * lib/str-two-way.h: New file, merged from...
2437         * lib/memmem.c: ...here...
2438         * lib/strstr.c: ...and here.
2439         * modules/memmem (Files): Use it.
2440         * modules/strstr (Files): Likewise.
2441
2442         Avoid quadratic strstr implementations.
2443         * lib/strstr.c: New file.
2444         * m4/strstr.m4: Likewise.
2445         * modules/strstr: Likewise.
2446         * modules/strstr-tests: Likewise.
2447         * tests/test-strstr.c: Likewise.
2448         * lib/string.in.h (rpl_strstr): Declare.
2449         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
2450         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
2451         * modules/string (Makefile.am): Likewise.
2452         * MODULES.html.sh (string handling): Mention new module.
2453         * doc/functions/strstr.texi (strstr): Document the bug.
2454
2455 2008-01-10  Bruno Haible  <bruno@clisp.org>
2456
2457         * lib/relocatable.h (relocate): State whether result is freshly
2458         allocated or not.
2459         * lib/relocatable.c (relocate): Return a freshly allocated string
2460         instead of a pointer to a privately held string.
2461         Reported by Sylvain Beucler <beuc@gnu.org>.
2462
2463 2008-01-10  Colin Watson  <cjwatson@debian.org>
2464
2465         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
2466         s/S_ISNLK/S_ISLNK/.
2467
2468 2008-01-09  Bruno Haible  <bruno@clisp.org>
2469
2470         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
2471         and other files.
2472         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
2473         if it's only a guess.
2474         * modules/memmem: Simplify by depending on memmem-simple.
2475
2476 2008-01-09  Bruno Haible  <bruno@clisp.org>
2477
2478         Work around OpenBSD 4.0 tdelete() bug.
2479         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
2480         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
2481         macros and don't redefine the enum values.
2482         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
2483         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
2484         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
2485
2486 2008-01-09  Bruno Haible  <bruno@clisp.org>
2487
2488         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
2489         (main): Don't perform the tests if setlocale did not install a UTF-8
2490         locale. Needed on OpenBSD 4.0.
2491         * modules/wcwidth-tests (Depends-on): Add localcharset.
2492
2493 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
2494
2495         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
2496         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
2497         * NEWS: announce this.
2498         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
2499
2500 2008-01-09  Simon Josefsson  <simon@josefsson.org>
2501         and Eric Blake  <ebb9@byu.net>
2502
2503         Add memmem-simple module.
2504         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
2505         (gl_FUNC_MEMMEM): Separate performance from presence checks.
2506         * modules/memmem-simple: New file.
2507         * modules/memmem (Description): Tweak.
2508         * MODULES.html.sh (string handling): Mention new module.
2509         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
2510         addressed by memmem-simple.
2511         * NEWS: Document the difference.
2512
2513 2008-01-09  Eric Blake  <ebb9@byu.net>
2514
2515         Give gcc some memmem optimization hints.
2516         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
2517         (strcasestr): Declare as pure.
2518         * modules/memmem (Maintainer): Claim my implementation.
2519
2520 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2521
2522         Support AIX 6.1 and higher.
2523         * build-aux/config.libpath: Likewise.
2524         * build-aux/config.rpath: Likewise.
2525
2526 2008-01-08  Jim Meyering  <meyering@redhat.com>
2527             Bruno Haible  <bruno@clisp.org>
2528
2529         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
2530         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
2531         Reported by Peter Fales in
2532         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
2533
2534 2008-01-08  Bruno Haible  <bruno@clisp.org>
2535
2536         * modules/unictype/category-of (Depends-on): Add
2537         unictype/category-none.
2538         * modules/unictype/category-and-tests (Depends-on): Add
2539         unictype/category-{L,N,Lu,Nd}.
2540         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
2541         * modules/unictype/category-or-tests (Depends-on): Add
2542         unictype/category-{L,N}.
2543         * modules/unictype/category-name-tests (Depends-on): Add
2544         unictype/category-{Z,Nl}.
2545         Reported by Simon Josefsson.
2546
2547 2008-01-08  Bruno Haible  <bruno@clisp.org>
2548
2549         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
2550         convention better.
2551         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
2552         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
2553         Reported by Peter Miller <millerp@canb.auug.org.au>.
2554
2555 2008-01-08  Eric Blake  <ebb9@byu.net>
2556
2557         Rewrite memmem to guarantee linear complexity without malloc.
2558         * lib/memmem.c (memmem): Use Two-Way rather than
2559         Knuth-Morris-Pratt, to allow O(1) space usage.
2560         (critical_factorization, two_way_short_needle)
2561         (two_way_long_needle): New functions.
2562         (knuth_morris_pratt): Delete.
2563         * modules/memmem (Depends-on): No longer need malloca or stdbool.
2564         Add stdint.
2565         * tests/test-memmem.c (main): Add tests for periodic needle and
2566         sublinear performance.
2567         * doc/functions/memmem.texi (memmem): Document other deficiencies
2568         in cygwin and older glibc.
2569
2570 2008-01-08  Bruno Haible  <bruno@clisp.org>
2571
2572         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
2573         augmentation.
2574
2575 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
2576
2577         Add a configure time option: --disable-acl.
2578         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
2579         AC_ARG_ENABLE(acl).
2580
2581 2008-01-06  Simon Josefsson  <simon@josefsson.org>
2582
2583         * tests/test-localename.c: Don't include obsolete "setenv.h".
2584
2585         * modules/localename-tests (Depends-on): Need unsetenv.
2586
2587 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2588
2589         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
2590
2591 2008-01-06  Colin Watson  <cjwatson@debian.org>
2592
2593         * users.txt: Add man-db.
2594
2595 2008-01-07  Bruno Haible  <bruno@clisp.org>
2596
2597         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
2598         previous section name.
2599
2600 2008-01-07  Bruno Haible  <bruno@clisp.org>
2601
2602         * lib/progname.c (set_program_name): Don't strip off a leading
2603         "lt-" prefix outside a .libs directory.
2604         Suggested by Paul Eggert.
2605
2606 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
2607             Bruno Haible  <bruno@clisp.org>
2608
2609         Improve memory cleanup in 'relocatable' module.
2610         * lib/relocatable.h (compute_curr_prefix): Change return type to
2611         'char *'.
2612         * lib/relocatable.c (compute_curr_prefix): Change return type to
2613         'char *'. Free curr_installdir after use.
2614         (relocate): Free curr_prefix_better after use.
2615         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
2616
2617 2008-01-01  Bruno Haible  <bruno@clisp.org>
2618
2619         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
2620         failure on older glibc systems.
2621         Reported by Peter Fales <psfales@alcatel-lucent.com>.
2622
2623 2008-01-05  Eric Blake  <ebb9@byu.net>
2624
2625         Avoid quadratic system memmem.
2626         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
2627         Reported by Ralf Wildenhues.
2628
2629         Fix memmem test for mingw.
2630         * modules/memmem-tests (configure.ac): Check for alarm.
2631         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
2632         it.
2633         * doc/functions/memmem.texi: New file.
2634         * doc/gnulib.texi (Function Substitutes): Add memmem.
2635         Reported by Bruno Haible.
2636
2637 2008-01-04  Bruno Haible  <bruno@clisp.org>
2638
2639         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
2640         Require gl_HEADER_STRINGS_H_DEFAULTS, not
2641         gl_HEADER_STRING_H_DEFAULTS.
2642
2643 2008-01-04  Eric Blake  <ebb9@byu.net>
2644
2645         Shorten duration of memmem test.
2646         * tests/test-memmem.c (main): Use alarm to declare failure if test
2647         is taking too long.
2648         Reported by Ralf Wildenhues.
2649
2650 2007-12-21  Simon Josefsson  <simon@josefsson.org>
2651
2652         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
2653         string, needed by strerror.
2654
2655 2008-01-03  Colin Watson  <cjwatson@debian.org>
2656             Bruno Haible  <bruno@clisp.org>
2657
2658         * doc/gnulib-tool.texi (Localization): New section.
2659
2660 2008-01-02  Bruno Haible  <bruno@clisp.org>
2661
2662         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
2663         variables to 'unsigned char *' type.
2664         Reported by Paul Eggert.
2665
2666 2008-01-02  Jim Meyering  <jim@meyering.net>
2667
2668         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
2669
2670 2007-12-31  Jim Meyering  <jim@meyering.net>
2671
2672         Avoid use of private FTS type name.
2673         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
2674
2675 2007-12-30  Karl Berry  <karl@gnu.org>
2676
2677         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
2678         work around defect in Texinfo and/or the standalone Info browser.
2679
2680 2007-12-30  Bruno Haible  <bruno@clisp.org>
2681
2682         Unify 5 copies of the KMP code.
2683         * lib/str-kmp.h: New file.
2684         * lib/c-strcasestr.c: Include str-kmp.h.
2685         (knuth_morris_pratt): Remove function.
2686         (c_strcasestr): Update.
2687         * lib/c-strstr.c: Include str-kmp.h.
2688         (knuth_morris_pratt): Remove function.
2689         (c_strcasestr): Update.
2690         * lib/mbscasestr.c: Include str-kmp.h.
2691         (knuth_morris_pratt_unibyte): Remove function.
2692         * lib/mbsstr.c: Include str-kmp.h.
2693         (knuth_morris_pratt_unibyte): Remove function.
2694         * lib/strcasestr.c: Include str-kmp.h.
2695         (knuth_morris_pratt): Remove function.
2696         (strcasestr): Update.
2697         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
2698         * modules/c-strstr (Files): Likewise.
2699         * modules/mbscasestr (Files): Likewise.
2700         * modules/mbsstr (Files): Likewise.
2701         * modules/strcasestr (Files): Likewise.
2702         Suggested by Paul Eggert.
2703
2704 2007-12-30  Bruno Haible  <bruno@clisp.org>
2705
2706         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
2707         defined.
2708
2709 2007-12-30  Bruno Haible  <bruno@clisp.org>
2710
2711         * lib/xmalloca.h: Include xalloc.h.
2712         (xnmalloca): New macro.
2713
2714 2007-12-30  Bruno Haible  <bruno@clisp.org>
2715
2716         * lib/malloca.h (nmalloca): New macro.
2717         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
2718         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
2719         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
2720         knuth_morris_pratt_multibyte): Likewise.
2721         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
2722         knuth_morris_pratt_multibyte): Likewise.
2723         * lib/memmem.c (knuth_morris_pratt): Likewise.
2724         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
2725
2726 2007-12-25  Bruno Haible  <bruno@clisp.org>
2727
2728         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
2729         * lib/glob.c: Don't include openat.h.
2730         (link_exists2_p): Add back the code that deals with the
2731         !GLOB_ALTDIRFUNC case.
2732         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
2733         let it do the filename concatenation.
2734         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
2735         * modules/glob (Depends-on): Remove openat.
2736
2737 2007-12-31  Bruno Haible  <bruno@clisp.org>
2738
2739         * modules/dirfd (License): Change to LGPLv2+.
2740         Approved by Jim Meyering.
2741
2742 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
2743
2744         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
2745         when multiplying M by sizeof (size_t).
2746
2747 2007-12-10  Martin Lambers  <marlam@marlam.de>
2748
2749         Override getpagesize on mingw.
2750         * lib/getpagesize.c: New file.
2751         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
2752         * modules/getpagesize (Files): Add lib/getpagesize.c.
2753         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
2754         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
2755         REPLACE_GETPAGESIZE.
2756         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
2757
2758 2007-12-25  Bruno Haible  <bruno@clisp.org>
2759
2760         * modules/localcharset (Notice): New field.
2761         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
2762         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
2763
2764 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
2765             Bruno Haible  <bruno@clisp.org>
2766
2767         Avoid using the syntax symbol() in formatted documentation.
2768         * MODULES.html.sh (func_module): When replacing symbol() with a
2769         hyperlink, remove the parentheses. Show an error if some remain.
2770         Recognize and render the '...' syntax.
2771         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
2772         Rework. Add paragraph about GCC's inlining.
2773         * doc/alloca.texi: Likewise.
2774         * doc/error.texi: Remove parentheses from symbol reference.
2775         * doc/gnulib-intro.texi: Likewise.
2776         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
2777         * modules/fnmatch (Description): Reword to say "the ... function".
2778         * modules/full-read (Description): Likewise.
2779         * modules/full-write (Description): Likewise.
2780         * modules/safe-read (Description): Likewise.
2781         * modules/safe-write (Description): Likewise.
2782         * modules/strchrnul (Description): Likewise.
2783         * modules/trim (Description): Likewise.
2784         * modules/error (Description): Remove parentheses from symbol
2785         references.
2786         * modules/verror (Description): Likewise.
2787         Reported by Karl Berry.
2788
2789 2007-12-25  Bruno Haible  <bruno@clisp.org>
2790
2791         Fixup after 2007-10-16 commit.
2792         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
2793
2794 2007-12-24  Bruno Haible  <bruno@clisp.org>
2795
2796         Make --enable-relocatable work with DESTDIR.
2797         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
2798         to compute installdir from destprog.
2799         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
2800         also set the RELOC_DESTDIR variable.
2801         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
2802
2803 2007-12-24  Bruno Haible  <bruno@clisp.org>
2804
2805         Fix link error due to xalloc_die().
2806         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
2807         of xreadlink.
2808         * lib/relocwrapper.c: Update comments.
2809         * build-aux/install-reloc: Remove xreadlink.c from file list.
2810         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
2811         xreadlink.c.
2812         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
2813
2814 2007-12-24  Bruno Haible  <bruno@clisp.org>
2815
2816         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
2817         * lib/setenv.h: Remove file.
2818         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
2819         lib/setenv.h.
2820         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
2821         (Depends-on): Add stdlib.
2822         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
2823         gl_FUNC_UNSETENV.
2824         (Include): Replace setenv.h with <stdlib.h>.
2825         * modules/unsetenv: New file.
2826         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
2827         * lib/unsetenv.c: Include <stdlib.h> first.
2828         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
2829         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
2830         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
2831         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
2832         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
2833         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
2834         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
2835         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
2836         * doc/functions/unsetenv.texi: Update.
2837         * modules/xsetenv (Depends-on): Add unsetenv.
2838         * modules/getdate (Depends-on): Likewise.
2839         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
2840         * lib/xsetenv.c: Don't include setenv.h.
2841         * lib/getdate.y: Likewise.
2842         * lib/relocwrapper.c: Likewise.
2843         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
2844         (Depends-on): Add stdlib.
2845         * NEWS: Mention the changes.
2846         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
2847
2848 2007-12-23  Bruno Haible  <bruno@clisp.org>
2849
2850         * lib/memmem.c (memmem): Use lowercase variable names. Tab
2851         indentation.
2852
2853 2007-12-23  Bruno Haible  <bruno@clisp.org>
2854
2855         * lib/c-strcasestr.c: Add more comments.
2856         * lib/c-strstr.c: Likewise.
2857         * lib/mbscasestr.c: Likewise.
2858         * lib/mbsstr.c: Likewise.
2859         * lib/strcasestr.c: Likewise.
2860         * lib/memmem.c: Likewise.
2861
2862 2007-12-23  Bruno Haible  <bruno@clisp.org>
2863
2864         * tests/test-memmem.c: Include <string.h> first.
2865
2866 2007-12-22  Bruno Haible  <bruno@clisp.org>
2867
2868         * gnulib-tool (func_create_testdir): Change $auxdir while generating
2869         the contents of $testsbase.
2870         Reported by Ralf Wildenhues.
2871
2872 2007-12-22  Bruno Haible  <bruno@clisp.org>
2873
2874         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
2875         two variables local_ldadd_before, local_ldadd_last.
2876
2877 2007-12-20  Eric Blake  <ebb9@byu.net>
2878
2879         Work around circular library issue when cross-compiling.
2880         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
2881         that progname.o does not need to pull in rpl_memcmp.
2882
2883 2007-12-19  Eric Blake  <ebb9@byu.net>
2884
2885         Fix memmem to avoid O(n^2) worst-case complexity.
2886         * lib/memmem.c (knuth_morris_pratt): New function.
2887         (memmem): Use it if first few naive iterations fail.
2888         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
2889         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
2890         * modules/memchr (License): Likewise.
2891         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
2892         malloca.
2893         * tests/test-memmem.c: Rewrite, borrowing ideas from
2894         test-mbsstr1.c; the old version wouldn't even compile!
2895         * modules/memmem-tests: New file.
2896         * lib/string.in.h (rpl_memmem): Add declaration.
2897         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
2898         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
2899         REPLACE_MEMMEM.
2900
2901 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
2902
2903         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
2904         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
2905         before any system include files, and undef after them all.  This
2906         should fix a problem on VMS reported by John E. Malmberg in
2907         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
2908
2909 2007-12-17  Eric Blake  <ebb9@byu.net>
2910
2911         Revert addition of verify, for BSD/OS.
2912         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
2913         can't handle large files, for the sake of obsolete platforms.
2914         * modules/fseeko (Depends-on): Remove verify.
2915         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
2916         * doc/functions/ftello.texi (ftello): Likewise.
2917         * doc/functions/fgetpos.texi (fgetpos): Likewise.
2918         Reported by Larry Jones.
2919
2920 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
2921
2922         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
2923         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
2924
2925 2007-12-17  Jim Meyering  <meyering@redhat.com>
2926
2927         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
2928         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
2929         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
2930         * modules/getcwd (Depends-on): Add openat.
2931         Reported by Petr Salinger.
2932
2933 2007-12-17  Bruno Haible  <bruno@clisp.org>
2934
2935         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
2936         avoid a segmentation fault of the configure test on x86_64 systems.
2937
2938 2007-12-15  Jim Meyering  <meyering@redhat.com>
2939
2940         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
2941
2942 2007-12-13  Eric Blake  <ebb9@byu.net>
2943
2944         Another fseek test.
2945         * tests/test-fseek.c (main): Also test ungetc handling.
2946         * tests/test-fseeko.c (main): Likewise.
2947         * modules/fseeko (Depends-on): Add verify.
2948         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
2949         large.
2950         Reported by Larry Jones.
2951
2952         Fix fseeko on mingw.
2953         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
2954         seek.
2955
2956         Beef up fseek tests.
2957         * tests/test-fseek.c (main): Also test eof handling.
2958         * tests/test-fseeko.c (main): Likewise.
2959         Reported by Larry Jones.
2960
2961 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
2962
2963         Fix fseeko on BSD-based platforms.
2964         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
2965         successful seek.
2966
2967 2007-12-12  Eric Blake  <ebb9@byu.net>
2968
2969         Allow circular dependency of separate libtests.a
2970         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
2971         when use_libtests.
2972
2973 2007-12-11  Eric Blake  <ebb9@byu.net>
2974
2975         Fix bug with -0.0L in previous patch.
2976         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
2977         * tests/test-isnan.c (main): Also test on zeroes.
2978         * tests/test-isnanf.c (main): Likewise.
2979         * tests/test-isnanl.h (main): Likewise.
2980
2981         Detect pseudo-denormals on x86 even when cross-compiling.
2982         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
2983         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
2984         invalid bit patterns that happen to satisfy ==.
2985
2986         Avoid link failures with separate libtests.a.
2987         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
2988         last, to satisfy circular dependencies.
2989
2990 2007-12-11  Eric Blake  <ebb9@byu.net>
2991         and Bruno Haible  <bruno@clisp.org>
2992
2993         Fix OpenBSD 4.0 <float.h> handling of long double.
2994         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
2995         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
2996         * doc/headers/float.texi (float.h): Document OpenBSD bug.
2997
2998 2007-12-11  Jim Meyering  <meyering@redhat.com>
2999
3000         * users.txt: Add libvirt.
3001
3002         Support versions of autoconf prior to 2.59c.
3003         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
3004         if it is not already defined.
3005
3006 2007-12-09  Bruno Haible  <bruno@clisp.org>
3007
3008         Let 'gnulib-tool --import' collect sources needed for the tests in
3009         tests/ rather than in lib/.
3010         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
3011         argument. If true, add rules to generate libtests.a, and put libtests.a
3012         into $(LDADD). Consider source files in subdirectories and set
3013         uses_subdirs.
3014         (func_emit_initmacro_start, func_emit_initmacro_end,
3015         func_emit_initmacro_done): Pass all arguments explicitly.
3016         (func_import): Determine two module lists main_modules,
3017         testsrelated_modules. Determine use_libtests. Determine two variables
3018         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
3019         instead of just sed_transform_lib_file. Determine two variables
3020         main_files and testsrelated_files. Compute 'files' as the union of
3021         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
3022         func_add_or_update. In the generated gnulib-comp.m4, collect the
3023         object files for tests/ in different variables than those for lib/.
3024         Substitute LIBTESTS_LIBDEPS.
3025         (func_create_testdir): Combine the uses_subdirs results from
3026         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
3027
3028 2007-12-09  Bruno Haible  <bruno@clisp.org>
3029
3030         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
3031         the build-aux directory.
3032
3033 2007-12-09  Bruno Haible  <bruno@clisp.org>
3034
3035         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
3036         introduced on 2006-09-09.
3037
3038 2007-12-07  Jim Meyering  <meyering@redhat.com>
3039
3040         Let these macros work also with autoconf-2.59.
3041         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
3042         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
3043         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
3044
3045 2007-12-06  Jim Meyering  <meyering@redhat.com>
3046
3047         Avoid a configure-time syntax error in gl_FUNC_ACL.
3048         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
3049         function in each branch, before testing the cache variable.
3050
3051 2007-12-04  Eric Blake  <ebb9@byu.net>
3052
3053         Make scripts executable.
3054         * build-aux/config.guess: Add execute permissions.
3055         * build-aux/config.sub: Likewise.
3056         * build-aux/gendocs.sh: Likewise.
3057
3058         Fix frexp on mingw.
3059         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
3060         cross-compiling.
3061         * doc/functions/frexp.texi (frexp): Document the bug.
3062
3063         Make cygwin fseeko check more reliable.
3064         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
3065         version numbers, rather than unrelated feature check.
3066         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
3067         * doc/functions/ftello.texi (ftello): Likewise.
3068         Reported by Bruno Haible.
3069
3070         * m4/strerror.m4: Bump version number.
3071
3072 2007-12-03  Bruno Haible  <bruno@clisp.org>
3073
3074         * doc/functions/mprotect.texi: Mention the mingw problem.
3075
3076 2007-12-03  Eric Blake  <ebb9@byu.net>
3077
3078         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
3079         REPLACE_STRERROR is initialized before this macro.
3080
3081 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
3082
3083         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
3084         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
3085         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
3086         put -lsec in even for programs other than 'ls'.  This fixes a problem
3087         for gettext reported by Bruno Haible in
3088         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
3089         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
3090         Add support for Solaris 10.  This isn't efficient, but should get the
3091         job done for now.
3092
3093 2007-12-03  James Youngman  <jay@gnu.org>
3094
3095         * doc/regexprops-generic.texi: change "an close-group" to "a
3096         close-group" and "illegal" to "not allowed".
3097
3098 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3099
3100         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
3101         pr_byname.h. Needed for the rare case when the maintainer has done
3102         "make maintainer-clean" in the source directory and then attempts a
3103         build outside the source directory.
3104         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
3105         scripts_byname.h.
3106
3107 2007-12-02  Martin Lambers <marlam@marlam.de>
3108             Bruno Haible  <bruno@clisp.org>
3109
3110         * lib/getpagesize.h: Remove file.
3111         * lib/unistd.in.h: Include declaration of getpagesize here.
3112         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
3113         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
3114         HAVE_SYS_PARAM_H.
3115         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
3116         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
3117         * modules/getpagesize (Files): Remove lib/getpagesize.h.
3118         (Depends-on): Add unistd.
3119         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
3120         (Include): Use <unistd.h> instead of getpagesize.h.
3121         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
3122         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
3123         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
3124         gl_GETPAGESIZE invocation, already handled by module dependency.
3125         * lib/pagealign_alloc.c: Don't include getpagesize.h.
3126
3127 2007-12-02  Bruno Haible  <bruno@clisp.org>
3128
3129         * modules/strings-tests: New file.
3130         * tests/test-strings.c: New file.
3131
3132         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
3133         * lib/strings.in.h: New file.
3134         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
3135         * m4/strings_h.m4: New file.
3136         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
3137         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
3138         * modules/strings: New file.
3139         * modules/string (Makefile.am): Update.
3140         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
3141         Reported by Karl Berry.
3142
3143 2007-12-01  Eric Blake  <ebb9@byu.net>
3144
3145         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
3146         accomodate fix in cygwin 1.5.25.
3147
3148 2007-12-01  Jim Meyering  <meyering@redhat.com>
3149
3150         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
3151         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
3152         that would inhibit utf8-optimization of a regexp containing line-
3153         or buffer-anchors, e.g., `^', `$'.
3154
3155 2007-11-30  Bruno Haible  <bruno@clisp.org>
3156
3157         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
3158         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
3159         glthread_recursive_lock_init.
3160         * lib/lock.c (glthread_recursive_lock_init)
3161         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
3162         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
3163
3164 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
3165
3166         New function qset_acl, like set_acl but with syscall semantics.
3167         * lib/acl.h (qset_acl): New decl.
3168         * lib/acl.c (qset_acl): New function.
3169         (set_acl): Use new function.  Use more-consistent diagnostics.
3170
3171 2007-11-28  Jim Meyering  <meyering@redhat.com>
3172
3173         * modules/physmem (License): Change from GPL to LGPLv2+.
3174
3175 2007-11-26  Bruno Haible  <bruno@clisp.org>
3176
3177         * lib/vasnprintf.c (decode_long_double): Don't abort if the
3178         'long double' type has excess precision.
3179         Reported by Jim Meyering in
3180         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
3181
3182 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3183
3184         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
3185         Sync from <http://gnu.org/licenses>.
3186         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
3187         with license text from same location.
3188         * doc/maintain.texi, doc/standards.texi:  Sync from
3189         <http://savannah.gnu.org/projects/gnustandards>.
3190
3191 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
3192         and Jim Meyering  <meyering@redhat.com>
3193
3194         Adjust getdate' grammar to accept a slightly more regular language.
3195         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
3196         Before, the former was rejected.
3197         * lib/getdate.y (digits_to_date_time): New function, factored
3198         out of ...
3199         (number): ...here.  Just call digits_to_date_time.
3200         (hybrid): New non-terminal to handle an <unsigned number,
3201         signed relative offset> sequence consistently.
3202
3203 2007-11-18  Jim Meyering  <meyering@redhat.com>
3204
3205         Pull my changes from coreutils:
3206         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
3207         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
3208         use of $gnulib_tool_option_extras, so that it's separated from the
3209         preceding argument.
3210
3211         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
3212         * build-aux/bootstrap (cp_mark_as_generated): Create any required
3213         parent destination directories before copying a file into place.
3214
3215 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
3216
3217         bootstrap: work also with 4-argument variant of AC_INIT
3218         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
3219
3220 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
3221
3222         Port test-getaddrinfo to Solaris.
3223         Problem reported by Bruno Haible in
3224         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
3225         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
3226         explanation of setting 'hints'.
3227         Don't reject an implementation merely because it returns EAI_SERVICE.
3228         (EAI_SERVICE): Define to 0 if not defined.
3229
3230 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
3231
3232         The license of gnu-make and posix-shell is now "GPLed build tool".
3233         * modules/gnu-make (License): Likewise.
3234         * modules/posix-shell (License): Likewise.
3235
3236         New module posix-shell, for determining a POSIX shell
3237         or perhaps something that is close enough to a POSIX shell.
3238         * m4/posix-shell.m4: New file.
3239         * modules/posix-shell: New file.
3240
3241         * MODULES.html.sh: Mention new module.
3242
3243         New module gnu-make, for determining whether we're using GNU Make.
3244         * m4/gnu-make.m4: New file.
3245         * modules/gnu-make: New file.
3246         * MODULES.html.sh: Mention new module.
3247
3248 2007-11-14  Jim Meyering  <meyering@redhat.com>
3249
3250         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
3251         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
3252         use this macro to create a function _definition_.
3253         Remove useless "#undef ARGMATCH_DIE".
3254
3255 2007-11-14  Bruno Haible  <bruno@clisp.org>
3256
3257         * lib/config.charset: Update for OpenBSD 4.1.
3258         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
3259
3260 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
3261
3262         Document 64-bit #if problems in stdint.texi.
3263         * doc/headers/stdint.texi (stdint.h): Mention problems with
3264         64-bit-#if, and how to work around them.
3265
3266         Don't insist on 'long long int' support in the preprocessor.  It
3267         breaks too many things.  For example, PRIdMAX still uses a 'long
3268         long int' format with the latest Sun compiler, even though
3269         HAVE_LONG_LONG_INT isn't defined due to that compiler's
3270         preprocessor problem.  This causes the latest coreutils to dump
3271         core on Solaris 10 sparc with the Sun C compiler.
3272         Instead, fix the 2007-10-16 problem in a different way, by evaluating
3273         the troublesome expressions at configure-time, not at #if-time.
3274         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
3275         preprocessor.
3276         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
3277         compile-time C checks, done at 'configure'-time.
3278         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
3279         * modules/inttypes (Makefile): Substitute the new symbols that
3280         gl_INTTYPES_H now generates.
3281         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
3282
3283 2007-11-12  Bruno Haible  <bruno@clisp.org>
3284
3285         Tests for Unicode character classification functions.
3286
3287         * modules/unictype/bidicategory-byname-tests: New file.
3288         * modules/unictype/bidicategory-name-tests: New file.
3289         * modules/unictype/bidicategory-of-tests: New file.
3290         * modules/unictype/bidicategory-test-tests: New file.
3291         * modules/unictype/block-list-tests: New file.
3292         * modules/unictype/block-of-tests: New file.
3293         * modules/unictype/block-test-tests: New file.
3294         * modules/unictype/category-C-tests: New file.
3295         * modules/unictype/category-Cc-tests: New file.
3296         * modules/unictype/category-Cf-tests: New file.
3297         * modules/unictype/category-Cn-tests: New file.
3298         * modules/unictype/category-Co-tests: New file.
3299         * modules/unictype/category-Cs-tests: New file.
3300         * modules/unictype/category-L-tests: New file.
3301         * modules/unictype/category-Ll-tests: New file.
3302         * modules/unictype/category-Lm-tests: New file.
3303         * modules/unictype/category-Lo-tests: New file.
3304         * modules/unictype/category-Lt-tests: New file.
3305         * modules/unictype/category-Lu-tests: New file.
3306         * modules/unictype/category-M-tests: New file.
3307         * modules/unictype/category-Mc-tests: New file.
3308         * modules/unictype/category-Me-tests: New file.
3309         * modules/unictype/category-Mn-tests: New file.
3310         * modules/unictype/category-N-tests: New file.
3311         * modules/unictype/category-Nd-tests: New file.
3312         * modules/unictype/category-Nl-tests: New file.
3313         * modules/unictype/category-No-tests: New file.
3314         * modules/unictype/category-P-tests: New file.
3315         * modules/unictype/category-Pc-tests: New file.
3316         * modules/unictype/category-Pd-tests: New file.
3317         * modules/unictype/category-Pe-tests: New file.
3318         * modules/unictype/category-Pf-tests: New file.
3319         * modules/unictype/category-Pi-tests: New file.
3320         * modules/unictype/category-Po-tests: New file.
3321         * modules/unictype/category-Ps-tests: New file.
3322         * modules/unictype/category-S-tests: New file.
3323         * modules/unictype/category-Sc-tests: New file.
3324         * modules/unictype/category-Sk-tests: New file.
3325         * modules/unictype/category-Sm-tests: New file.
3326         * modules/unictype/category-So-tests: New file.
3327         * modules/unictype/category-Z-tests: New file.
3328         * modules/unictype/category-Zl-tests: New file.
3329         * modules/unictype/category-Zp-tests: New file.
3330         * modules/unictype/category-Zs-tests: New file.
3331         * modules/unictype/category-and-not-tests: New file.
3332         * modules/unictype/category-and-tests: New file.
3333         * modules/unictype/category-byname-tests: New file.
3334         * modules/unictype/category-name-tests: New file.
3335         * modules/unictype/category-none-tests: New file.
3336         * modules/unictype/category-of-tests: New file.
3337         * modules/unictype/category-or-tests: New file.
3338         * modules/unictype/category-test-withtable-tests: New file.
3339         * modules/unictype/combining-class-tests: New file.
3340         * modules/unictype/ctype-alnum-tests: New file.
3341         * modules/unictype/ctype-alpha-tests: New file.
3342         * modules/unictype/ctype-blank-tests: New file.
3343         * modules/unictype/ctype-cntrl-tests: New file.
3344         * modules/unictype/ctype-digit-tests: New file.
3345         * modules/unictype/ctype-graph-tests: New file.
3346         * modules/unictype/ctype-lower-tests: New file.
3347         * modules/unictype/ctype-print-tests: New file.
3348         * modules/unictype/ctype-punct-tests: New file.
3349         * modules/unictype/ctype-space-tests: New file.
3350         * modules/unictype/ctype-upper-tests: New file.
3351         * modules/unictype/ctype-xdigit-tests: New file.
3352         * modules/unictype/decimal-digit-tests: New file.
3353         * modules/unictype/digit-tests: New file.
3354         * modules/unictype/mirror-tests: New file.
3355         * modules/unictype/numeric-tests: New file.
3356         * modules/unictype/property-alphabetic-tests: New file.
3357         * modules/unictype/property-ascii-hex-digit-tests: New file.
3358         * modules/unictype/property-bidi-arabic-digit-tests: New file.
3359         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
3360         * modules/unictype/property-bidi-block-separator-tests: New file.
3361         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
3362         * modules/unictype/property-bidi-common-separator-tests: New file.
3363         * modules/unictype/property-bidi-control-tests: New file.
3364         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
3365         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
3366         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
3367         * modules/unictype/property-bidi-european-digit-tests: New file.
3368         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
3369         * modules/unictype/property-bidi-left-to-right-tests: New file.
3370         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
3371         * modules/unictype/property-bidi-other-neutral-tests: New file.
3372         * modules/unictype/property-bidi-pdf-tests: New file.
3373         * modules/unictype/property-bidi-segment-separator-tests: New file.
3374         * modules/unictype/property-bidi-whitespace-tests: New file.
3375         * modules/unictype/property-byname-tests: New file.
3376         * modules/unictype/property-combining-tests: New file.
3377         * modules/unictype/property-composite-tests: New file.
3378         * modules/unictype/property-currency-symbol-tests: New file.
3379         * modules/unictype/property-dash-tests: New file.
3380         * modules/unictype/property-decimal-digit-tests: New file.
3381         * modules/unictype/property-default-ignorable-code-point-tests: New file.
3382         * modules/unictype/property-deprecated-tests: New file.
3383         * modules/unictype/property-diacritic-tests: New file.
3384         * modules/unictype/property-extender-tests: New file.
3385         * modules/unictype/property-format-control-tests: New file.
3386         * modules/unictype/property-grapheme-base-tests: New file.
3387         * modules/unictype/property-grapheme-extend-tests: New file.
3388         * modules/unictype/property-grapheme-link-tests: New file.
3389         * modules/unictype/property-hex-digit-tests: New file.
3390         * modules/unictype/property-hyphen-tests: New file.
3391         * modules/unictype/property-id-continue-tests: New file.
3392         * modules/unictype/property-id-start-tests: New file.
3393         * modules/unictype/property-ideographic-tests: New file.
3394         * modules/unictype/property-ids-binary-operator-tests: New file.
3395         * modules/unictype/property-ids-trinary-operator-tests: New file.
3396         * modules/unictype/property-ignorable-control-tests: New file.
3397         * modules/unictype/property-iso-control-tests: New file.
3398         * modules/unictype/property-join-control-tests: New file.
3399         * modules/unictype/property-left-of-pair-tests: New file.
3400         * modules/unictype/property-line-separator-tests: New file.
3401         * modules/unictype/property-logical-order-exception-tests: New file.
3402         * modules/unictype/property-lowercase-tests: New file.
3403         * modules/unictype/property-math-tests: New file.
3404         * modules/unictype/property-non-break-tests: New file.
3405         * modules/unictype/property-not-a-character-tests: New file.
3406         * modules/unictype/property-numeric-tests: New file.
3407         * modules/unictype/property-other-alphabetic-tests: New file.
3408         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
3409         * modules/unictype/property-other-grapheme-extend-tests: New file.
3410         * modules/unictype/property-other-id-continue-tests: New file.
3411         * modules/unictype/property-other-id-start-tests: New file.
3412         * modules/unictype/property-other-lowercase-tests: New file.
3413         * modules/unictype/property-other-math-tests: New file.
3414         * modules/unictype/property-other-uppercase-tests: New file.
3415         * modules/unictype/property-paired-punctuation-tests: New file.
3416         * modules/unictype/property-paragraph-separator-tests: New file.
3417         * modules/unictype/property-pattern-syntax-tests: New file.
3418         * modules/unictype/property-pattern-white-space-tests: New file.
3419         * modules/unictype/property-private-use-tests: New file.
3420         * modules/unictype/property-punctuation-tests: New file.
3421         * modules/unictype/property-quotation-mark-tests: New file.
3422         * modules/unictype/property-radical-tests: New file.
3423         * modules/unictype/property-sentence-terminal-tests: New file.
3424         * modules/unictype/property-soft-dotted-tests: New file.
3425         * modules/unictype/property-space-tests: New file.
3426         * modules/unictype/property-terminal-punctuation-tests: New file.
3427         * modules/unictype/property-test-tests: New file.
3428         * modules/unictype/property-titlecase-tests: New file.
3429         * modules/unictype/property-unassigned-code-value-tests: New file.
3430         * modules/unictype/property-unified-ideograph-tests: New file.
3431         * modules/unictype/property-uppercase-tests: New file.
3432         * modules/unictype/property-variation-selector-tests: New file.
3433         * modules/unictype/property-white-space-tests: New file.
3434         * modules/unictype/property-xid-continue-tests: New file.
3435         * modules/unictype/property-xid-start-tests: New file.
3436         * modules/unictype/property-zero-width-tests: New file.
3437         * modules/unictype/scripts-tests: New file.
3438         * modules/unictype/syntax-c-ident-tests: New file.
3439         * modules/unictype/syntax-c-whitespace-tests: New file.
3440         * modules/unictype/syntax-java-ident-tests: New file.
3441         * modules/unictype/syntax-java-whitespace-tests: New file.
3442         * tests/unictype/test-bidi_byname.c: New file.
3443         * tests/unictype/test-bidi_name.c: New file.
3444         * tests/unictype/test-bidi_of.c: New file.
3445         * tests/unictype/test-bidi_test.c: New file.
3446         * tests/unictype/test-block_list.c: New file.
3447         * tests/unictype/test-block_of.c: New file.
3448         * tests/unictype/test-block_test.c: New file.
3449         * tests/unictype/test-categ_and.c: New file.
3450         * tests/unictype/test-categ_and_not.c: New file.
3451         * tests/unictype/test-categ_byname.c: New file.
3452         * tests/unictype/test-categ_name.c: New file.
3453         * tests/unictype/test-categ_none.c: New file.
3454         * tests/unictype/test-categ_of.c: New file.
3455         * tests/unictype/test-categ_or.c: New file.
3456         * tests/unictype/test-categ_test_withtable.c: New file.
3457         * tests/unictype/test-combining.c: New file.
3458         * tests/unictype/test-decdigit.c: New file.
3459         * tests/unictype/test-digit.c: New file.
3460         * tests/unictype/test-mirror.c: New file.
3461         * tests/unictype/test-numeric.c: New file.
3462         * tests/unictype/test-pr_byname.c: New file.
3463         * tests/unictype/test-pr_test.c: New file.
3464         * tests/unictype/test-predicate-part1.h: New file.
3465         * tests/unictype/test-predicate-part2.h: New file.
3466         * tests/unictype/test-scripts.c: New file.
3467         * tests/unictype/test-sy_c_ident.c: New file.
3468         * tests/unictype/test-sy_java_ident.c: New file.
3469
3470         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
3471         for Unicode 5.0.0.
3472         * tests/unictype/test-categ_Cc.c: Likewise.
3473         * tests/unictype/test-categ_Cf.c: Likewise.
3474         * tests/unictype/test-categ_Cn.c: Likewise.
3475         * tests/unictype/test-categ_Co.c: Likewise.
3476         * tests/unictype/test-categ_Cs.c: Likewise.
3477         * tests/unictype/test-categ_L.c: Likewise.
3478         * tests/unictype/test-categ_Ll.c: Likewise.
3479         * tests/unictype/test-categ_Lm.c: Likewise.
3480         * tests/unictype/test-categ_Lo.c: Likewise.
3481         * tests/unictype/test-categ_Lt.c: Likewise.
3482         * tests/unictype/test-categ_Lu.c: Likewise.
3483         * tests/unictype/test-categ_M.c: Likewise.
3484         * tests/unictype/test-categ_Mc.c: Likewise.
3485         * tests/unictype/test-categ_Me.c: Likewise.
3486         * tests/unictype/test-categ_Mn.c: Likewise.
3487         * tests/unictype/test-categ_N.c: Likewise.
3488         * tests/unictype/test-categ_Nd.c: Likewise.
3489         * tests/unictype/test-categ_Nl.c: Likewise.
3490         * tests/unictype/test-categ_No.c: Likewise.
3491         * tests/unictype/test-categ_P.c: Likewise.
3492         * tests/unictype/test-categ_Pc.c: Likewise.
3493         * tests/unictype/test-categ_Pd.c: Likewise.
3494         * tests/unictype/test-categ_Pe.c: Likewise.
3495         * tests/unictype/test-categ_Pf.c: Likewise.
3496         * tests/unictype/test-categ_Pi.c: Likewise.
3497         * tests/unictype/test-categ_Po.c: Likewise.
3498         * tests/unictype/test-categ_Ps.c: Likewise.
3499         * tests/unictype/test-categ_S.c: Likewise.
3500         * tests/unictype/test-categ_Sc.c: Likewise.
3501         * tests/unictype/test-categ_Sk.c: Likewise.
3502         * tests/unictype/test-categ_Sm.c: Likewise.
3503         * tests/unictype/test-categ_So.c: Likewise.
3504         * tests/unictype/test-categ_Z.c: Likewise.
3505         * tests/unictype/test-categ_Zl.c: Likewise.
3506         * tests/unictype/test-categ_Zp.c: Likewise.
3507         * tests/unictype/test-categ_Zs.c: Likewise.
3508         * tests/unictype/test-ctype_alnum.c: Likewise.
3509         * tests/unictype/test-ctype_alpha.c: Likewise.
3510         * tests/unictype/test-ctype_blank.c: Likewise.
3511         * tests/unictype/test-ctype_cntrl.c: Likewise.
3512         * tests/unictype/test-ctype_digit.c: Likewise.
3513         * tests/unictype/test-ctype_graph.c: Likewise.
3514         * tests/unictype/test-ctype_lower.c: Likewise.
3515         * tests/unictype/test-ctype_print.c: Likewise.
3516         * tests/unictype/test-ctype_punct.c: Likewise.
3517         * tests/unictype/test-ctype_space.c: Likewise.
3518         * tests/unictype/test-ctype_upper.c: Likewise.
3519         * tests/unictype/test-ctype_xdigit.c: Likewise.
3520         * tests/unictype/test-decdigit.h: Likewise.
3521         * tests/unictype/test-digit.h: Likewise.
3522         * tests/unictype/test-numeric.h: Likewise.
3523         * tests/unictype/test-pr_alphabetic.c: Likewise.
3524         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
3525         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
3526         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
3527         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
3528         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
3529         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
3530         * tests/unictype/test-pr_bidi_control.c: Likewise.
3531         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
3532         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
3533         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
3534         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
3535         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
3536         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
3537         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
3538         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
3539         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
3540         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
3541         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
3542         * tests/unictype/test-pr_combining.c: Likewise.
3543         * tests/unictype/test-pr_composite.c: Likewise.
3544         * tests/unictype/test-pr_currency_symbol.c: Likewise.
3545         * tests/unictype/test-pr_dash.c: Likewise.
3546         * tests/unictype/test-pr_decimal_digit.c: Likewise.
3547         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
3548         * tests/unictype/test-pr_deprecated.c: Likewise.
3549         * tests/unictype/test-pr_diacritic.c: Likewise.
3550         * tests/unictype/test-pr_extender.c: Likewise.
3551         * tests/unictype/test-pr_format_control.c: Likewise.
3552         * tests/unictype/test-pr_grapheme_base.c: Likewise.
3553         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
3554         * tests/unictype/test-pr_grapheme_link.c: Likewise.
3555         * tests/unictype/test-pr_hex_digit.c: Likewise.
3556         * tests/unictype/test-pr_hyphen.c: Likewise.
3557         * tests/unictype/test-pr_id_continue.c: Likewise.
3558         * tests/unictype/test-pr_id_start.c: Likewise.
3559         * tests/unictype/test-pr_ideographic.c: Likewise.
3560         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
3561         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
3562         * tests/unictype/test-pr_ignorable_control.c: Likewise.
3563         * tests/unictype/test-pr_iso_control.c: Likewise.
3564         * tests/unictype/test-pr_join_control.c: Likewise.
3565         * tests/unictype/test-pr_left_of_pair.c: Likewise.
3566         * tests/unictype/test-pr_line_separator.c: Likewise.
3567         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
3568         * tests/unictype/test-pr_lowercase.c: Likewise.
3569         * tests/unictype/test-pr_math.c: Likewise.
3570         * tests/unictype/test-pr_non_break.c: Likewise.
3571         * tests/unictype/test-pr_not_a_character.c: Likewise.
3572         * tests/unictype/test-pr_numeric.c: Likewise.
3573         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
3574         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
3575         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
3576         * tests/unictype/test-pr_other_id_continue.c: Likewise.
3577         * tests/unictype/test-pr_other_id_start.c: Likewise.
3578         * tests/unictype/test-pr_other_lowercase.c: Likewise.
3579         * tests/unictype/test-pr_other_math.c: Likewise.
3580         * tests/unictype/test-pr_other_uppercase.c: Likewise.
3581         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
3582         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
3583         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
3584         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
3585         * tests/unictype/test-pr_private_use.c: Likewise.
3586         * tests/unictype/test-pr_punctuation.c: Likewise.
3587         * tests/unictype/test-pr_quotation_mark.c: Likewise.
3588         * tests/unictype/test-pr_radical.c: Likewise.
3589         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
3590         * tests/unictype/test-pr_soft_dotted.c: Likewise.
3591         * tests/unictype/test-pr_space.c: Likewise.
3592         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
3593         * tests/unictype/test-pr_titlecase.c: Likewise.
3594         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
3595         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
3596         * tests/unictype/test-pr_uppercase.c: Likewise.
3597         * tests/unictype/test-pr_variation_selector.c: Likewise.
3598         * tests/unictype/test-pr_white_space.c: Likewise.
3599         * tests/unictype/test-pr_xid_continue.c: Likewise.
3600         * tests/unictype/test-pr_xid_start.c: Likewise.
3601         * tests/unictype/test-pr_zero_width.c: Likewise.
3602         * tests/unictype/test-sy_c_whitespace.c: Likewise.
3603         * tests/unictype/test-sy_java_whitespace.c: Likewise.
3604
3605 2007-11-12  Bruno Haible  <bruno@clisp.org>
3606
3607         Unicode character classification functions.
3608         * lib/unictype.h: New file.
3609         * modules/unictype/base: New file.
3610         * modules/unictype/category-L: New file.
3611         * modules/unictype/category-Lu: New file.
3612         * modules/unictype/category-Ll: New file.
3613         * modules/unictype/category-Lt: New file.
3614         * modules/unictype/category-Lm: New file.
3615         * modules/unictype/category-Lo: New file.
3616         * modules/unictype/category-M: New file.
3617         * modules/unictype/category-Mn: New file.
3618         * modules/unictype/category-Mc: New file.
3619         * modules/unictype/category-Me: New file.
3620         * modules/unictype/category-N: New file.
3621         * modules/unictype/category-Nd: New file.
3622         * modules/unictype/category-Nl: New file.
3623         * modules/unictype/category-No: New file.
3624         * modules/unictype/category-P: New file.
3625         * modules/unictype/category-Pc: New file.
3626         * modules/unictype/category-Pd: New file.
3627         * modules/unictype/category-Ps: New file.
3628         * modules/unictype/category-Pe: New file.
3629         * modules/unictype/category-Pi: New file.
3630         * modules/unictype/category-Pf: New file.
3631         * modules/unictype/category-Po: New file.
3632         * modules/unictype/category-S: New file.
3633         * modules/unictype/category-Sm: New file.
3634         * modules/unictype/category-Sc: New file.
3635         * modules/unictype/category-Sk: New file.
3636         * modules/unictype/category-So: New file.
3637         * modules/unictype/category-Z: New file.
3638         * modules/unictype/category-Zs: New file.
3639         * modules/unictype/category-Zl: New file.
3640         * modules/unictype/category-Zp: New file.
3641         * modules/unictype/category-C: New file.
3642         * modules/unictype/category-Cc: New file.
3643         * modules/unictype/category-Cf: New file.
3644         * modules/unictype/category-Cs: New file.
3645         * modules/unictype/category-Co: New file.
3646         * modules/unictype/category-Cn: New file.
3647         * modules/unictype/category-or: New file.
3648         * modules/unictype/category-of: New file.
3649         * modules/unictype/category-test: New file.
3650         * modules/unictype/category-test-withtable: New file.
3651         * modules/unictype/category-byname: New file.
3652         * modules/unictype/category-none: New file.
3653         * modules/unictype/category-and: New file.
3654         * modules/unictype/category-and-not: New file.
3655         * modules/unictype/category-name: New file.
3656         * modules/unictype/combining-class: New file.
3657         * modules/unictype/category-all: New file.
3658         * modules/unictype/bidicategory-all: New file.
3659         * modules/unictype/bidicategory-byname: New file.
3660         * modules/unictype/bidicategory-name: New file.
3661         * modules/unictype/bidicategory-of: New file.
3662         * modules/unictype/bidicategory-test: New file.
3663         * modules/unictype/decimal-digit: New file.
3664         * modules/unictype/digit: New file.
3665         * modules/unictype/numeric: New file.
3666         * modules/unictype/mirror: New file.
3667         * modules/unictype/property-white-space: New file.
3668         * modules/unictype/property-alphabetic: New file.
3669         * modules/unictype/property-other-alphabetic: New file.
3670         * modules/unictype/property-not-a-character: New file.
3671         * modules/unictype/property-default-ignorable-code-point: New file.
3672         * modules/unictype/property-other-default-ignorable-code-point: New
3673         file.
3674         * modules/unictype/property-deprecated: New file.
3675         * modules/unictype/property-logical-order-exception: New file.
3676         * modules/unictype/property-variation-selector: New file.
3677         * modules/unictype/property-private-use: New file.
3678         * modules/unictype/property-unassigned-code-value: New file.
3679         * modules/unictype/property-uppercase: New file.
3680         * modules/unictype/property-other-uppercase: New file.
3681         * modules/unictype/property-lowercase: New file.
3682         * modules/unictype/property-other-lowercase: New file.
3683         * modules/unictype/property-titlecase: New file.
3684         * modules/unictype/property-soft-dotted: New file.
3685         * modules/unictype/property-id-start: New file.
3686         * modules/unictype/property-other-id-start: New file.
3687         * modules/unictype/property-id-continue: New file.
3688         * modules/unictype/property-other-id-continue: New file.
3689         * modules/unictype/property-xid-start: New file.
3690         * modules/unictype/property-xid-continue: New file.
3691         * modules/unictype/property-pattern-white-space: New file.
3692         * modules/unictype/property-pattern-syntax: New file.
3693         * modules/unictype/property-join-control: New file.
3694         * modules/unictype/property-grapheme-base: New file.
3695         * modules/unictype/property-grapheme-extend: New file.
3696         * modules/unictype/property-other-grapheme-extend: New file.
3697         * modules/unictype/property-grapheme-link: New file.
3698         * modules/unictype/property-bidi-control: New file.
3699         * modules/unictype/property-bidi-left-to-right: New file.
3700         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
3701         * modules/unictype/property-bidi-arabic-right-to-left: New file.
3702         * modules/unictype/property-bidi-european-digit: New file.
3703         * modules/unictype/property-bidi-eur-num-separator: New file.
3704         * modules/unictype/property-bidi-eur-num-terminator: New file.
3705         * modules/unictype/property-bidi-arabic-digit: New file.
3706         * modules/unictype/property-bidi-common-separator: New file.
3707         * modules/unictype/property-bidi-block-separator: New file.
3708         * modules/unictype/property-bidi-segment-separator: New file.
3709         * modules/unictype/property-bidi-whitespace: New file.
3710         * modules/unictype/property-bidi-non-spacing-mark: New file.
3711         * modules/unictype/property-bidi-boundary-neutral: New file.
3712         * modules/unictype/property-bidi-pdf: New file.
3713         * modules/unictype/property-bidi-embedding-or-override: New file.
3714         * modules/unictype/property-bidi-other-neutral: New file.
3715         * modules/unictype/property-hex-digit: New file.
3716         * modules/unictype/property-ascii-hex-digit: New file.
3717         * modules/unictype/property-ideographic: New file.
3718         * modules/unictype/property-unified-ideograph: New file.
3719         * modules/unictype/property-radical: New file.
3720         * modules/unictype/property-ids-binary-operator: New file.
3721         * modules/unictype/property-ids-trinary-operator: New file.
3722         * modules/unictype/property-zero-width: New file.
3723         * modules/unictype/property-space: New file.
3724         * modules/unictype/property-non-break: New file.
3725         * modules/unictype/property-iso-control: New file.
3726         * modules/unictype/property-format-control: New file.
3727         * modules/unictype/property-dash: New file.
3728         * modules/unictype/property-hyphen: New file.
3729         * modules/unictype/property-punctuation: New file.
3730         * modules/unictype/property-line-separator: New file.
3731         * modules/unictype/property-paragraph-separator: New file.
3732         * modules/unictype/property-quotation-mark: New file.
3733         * modules/unictype/property-sentence-terminal: New file.
3734         * modules/unictype/property-terminal-punctuation: New file.
3735         * modules/unictype/property-currency-symbol: New file.
3736         * modules/unictype/property-math: New file.
3737         * modules/unictype/property-other-math: New file.
3738         * modules/unictype/property-paired-punctuation: New file.
3739         * modules/unictype/property-left-of-pair: New file.
3740         * modules/unictype/property-combining: New file.
3741         * modules/unictype/property-composite: New file.
3742         * modules/unictype/property-decimal-digit: New file.
3743         * modules/unictype/property-numeric: New file.
3744         * modules/unictype/property-diacritic: New file.
3745         * modules/unictype/property-extender: New file.
3746         * modules/unictype/property-ignorable-control: New file.
3747         * modules/unictype/property-test: New file.
3748         * modules/unictype/property-byname: New file.
3749         * modules/unictype/property-all: New file.
3750         * modules/unictype/scripts: New file.
3751         * modules/unictype/scripts-all: New file.
3752         * modules/unictype/block-of: New file.
3753         * modules/unictype/block-test: New file.
3754         * modules/unictype/block-list: New file.
3755         * modules/unictype/block-all: New file.
3756         * modules/unictype/syntax-c-whitespace: New file.
3757         * modules/unictype/syntax-java-whitespace: New file.
3758         * modules/unictype/syntax-c-ident: New file.
3759         * modules/unictype/syntax-java-ident: New file.
3760         * modules/unictype/ctype-alnum: New file.
3761         * modules/unictype/ctype-alpha: New file.
3762         * modules/unictype/ctype-cntrl: New file.
3763         * modules/unictype/ctype-digit: New file.
3764         * modules/unictype/ctype-graph: New file.
3765         * modules/unictype/ctype-lower: New file.
3766         * modules/unictype/ctype-print: New file.
3767         * modules/unictype/ctype-punct: New file.
3768         * modules/unictype/ctype-space: New file.
3769         * modules/unictype/ctype-upper: New file.
3770         * modules/unictype/ctype-xdigit: New file.
3771         * modules/unictype/ctype-blank: New file.
3772         * lib/unictype/bidi_byname.c: New file.
3773         * lib/unictype/bidi_name.c: New file.
3774         * lib/unictype/bidi_of.c: New file.
3775         * lib/unictype/bidi_test.c: New file.
3776         * lib/unictype/bitmap.h: New file.
3777         * lib/unictype/block_test.c: New file.
3778         * lib/unictype/blocks.c: New file.
3779         * lib/unictype/categ_C.c: New file.
3780         * lib/unictype/categ_Cc.c: New file.
3781         * lib/unictype/categ_Cf.c: New file.
3782         * lib/unictype/categ_Cn.c: New file.
3783         * lib/unictype/categ_Co.c: New file.
3784         * lib/unictype/categ_Cs.c: New file.
3785         * lib/unictype/categ_L.c: New file.
3786         * lib/unictype/categ_Ll.c: New file.
3787         * lib/unictype/categ_Lm.c: New file.
3788         * lib/unictype/categ_Lo.c: New file.
3789         * lib/unictype/categ_Lt.c: New file.
3790         * lib/unictype/categ_Lu.c: New file.
3791         * lib/unictype/categ_M.c: New file.
3792         * lib/unictype/categ_Mc.c: New file.
3793         * lib/unictype/categ_Me.c: New file.
3794         * lib/unictype/categ_Mn.c: New file.
3795         * lib/unictype/categ_N.c: New file.
3796         * lib/unictype/categ_Nd.c: New file.
3797         * lib/unictype/categ_Nl.c: New file.
3798         * lib/unictype/categ_No.c: New file.
3799         * lib/unictype/categ_P.c: New file.
3800         * lib/unictype/categ_Pc.c: New file.
3801         * lib/unictype/categ_Pd.c: New file.
3802         * lib/unictype/categ_Pe.c: New file.
3803         * lib/unictype/categ_Pf.c: New file.
3804         * lib/unictype/categ_Pi.c: New file.
3805         * lib/unictype/categ_Po.c: New file.
3806         * lib/unictype/categ_Ps.c: New file.
3807         * lib/unictype/categ_S.c: New file.
3808         * lib/unictype/categ_Sc.c: New file.
3809         * lib/unictype/categ_Sk.c: New file.
3810         * lib/unictype/categ_Sm.c: New file.
3811         * lib/unictype/categ_So.c: New file.
3812         * lib/unictype/categ_Z.c: New file.
3813         * lib/unictype/categ_Zl.c: New file.
3814         * lib/unictype/categ_Zp.c: New file.
3815         * lib/unictype/categ_Zs.c: New file.
3816         * lib/unictype/categ_and.c: New file.
3817         * lib/unictype/categ_and_not.c: New file.
3818         * lib/unictype/categ_byname.c: New file.
3819         * lib/unictype/categ_name.c: New file.
3820         * lib/unictype/categ_none.c: New file.
3821         * lib/unictype/categ_of.c: New file.
3822         * lib/unictype/categ_or.c: New file.
3823         * lib/unictype/categ_test.c: New file.
3824         * lib/unictype/combining.c: New file.
3825         * lib/unictype/ctype_alnum.c: New file.
3826         * lib/unictype/ctype_alpha.c: New file.
3827         * lib/unictype/ctype_blank.c: New file.
3828         * lib/unictype/ctype_cntrl.c: New file.
3829         * lib/unictype/ctype_digit.c: New file.
3830         * lib/unictype/ctype_graph.c: New file.
3831         * lib/unictype/ctype_lower.c: New file.
3832         * lib/unictype/ctype_print.c: New file.
3833         * lib/unictype/ctype_punct.c: New file.
3834         * lib/unictype/ctype_space.c: New file.
3835         * lib/unictype/ctype_upper.c: New file.
3836         * lib/unictype/ctype_xdigit.c: New file.
3837         * lib/unictype/decdigit.c: New file.
3838         * lib/unictype/digit.c: New file.
3839         * lib/unictype/identsyntaxmap.h: New file.
3840         * lib/unictype/mirror.c: New file.
3841         * lib/unictype/numeric.c: New file.
3842         * lib/unictype/pr_alphabetic.c: New file.
3843         * lib/unictype/pr_ascii_hex_digit.c: New file.
3844         * lib/unictype/pr_bidi_arabic_digit.c: New file.
3845         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
3846         * lib/unictype/pr_bidi_block_separator.c: New file.
3847         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
3848         * lib/unictype/pr_bidi_common_separator.c: New file.
3849         * lib/unictype/pr_bidi_control.c: New file.
3850         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
3851         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
3852         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
3853         * lib/unictype/pr_bidi_european_digit.c: New file.
3854         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
3855         * lib/unictype/pr_bidi_left_to_right.c: New file.
3856         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
3857         * lib/unictype/pr_bidi_other_neutral.c: New file.
3858         * lib/unictype/pr_bidi_pdf.c: New file.
3859         * lib/unictype/pr_bidi_segment_separator.c: New file.
3860         * lib/unictype/pr_bidi_whitespace.c: New file.
3861         * lib/unictype/pr_byname.c: New file.
3862         * lib/unictype/pr_byname.gperf: New file.
3863         * lib/unictype/pr_combining.c: New file.
3864         * lib/unictype/pr_composite.c: New file.
3865         * lib/unictype/pr_currency_symbol.c: New file.
3866         * lib/unictype/pr_dash.c: New file.
3867         * lib/unictype/pr_decimal_digit.c: New file.
3868         * lib/unictype/pr_default_ignorable_code_point.c: New file.
3869         * lib/unictype/pr_deprecated.c: New file.
3870         * lib/unictype/pr_diacritic.c: New file.
3871         * lib/unictype/pr_extender.c: New file.
3872         * lib/unictype/pr_format_control.c: New file.
3873         * lib/unictype/pr_grapheme_base.c: New file.
3874         * lib/unictype/pr_grapheme_extend.c: New file.
3875         * lib/unictype/pr_grapheme_link.c: New file.
3876         * lib/unictype/pr_hex_digit.c: New file.
3877         * lib/unictype/pr_hyphen.c: New file.
3878         * lib/unictype/pr_id_continue.c: New file.
3879         * lib/unictype/pr_id_start.c: New file.
3880         * lib/unictype/pr_ideographic.c: New file.
3881         * lib/unictype/pr_ids_binary_operator.c: New file.
3882         * lib/unictype/pr_ids_trinary_operator.c: New file.
3883         * lib/unictype/pr_ignorable_control.c: New file.
3884         * lib/unictype/pr_iso_control.c: New file.
3885         * lib/unictype/pr_join_control.c: New file.
3886         * lib/unictype/pr_left_of_pair.c: New file.
3887         * lib/unictype/pr_line_separator.c: New file.
3888         * lib/unictype/pr_logical_order_exception.c: New file.
3889         * lib/unictype/pr_lowercase.c: New file.
3890         * lib/unictype/pr_math.c: New file.
3891         * lib/unictype/pr_non_break.c: New file.
3892         * lib/unictype/pr_not_a_character.c: New file.
3893         * lib/unictype/pr_numeric.c: New file.
3894         * lib/unictype/pr_other_alphabetic.c: New file.
3895         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
3896         * lib/unictype/pr_other_grapheme_extend.c: New file.
3897         * lib/unictype/pr_other_id_continue.c: New file.
3898         * lib/unictype/pr_other_id_start.c: New file.
3899         * lib/unictype/pr_other_lowercase.c: New file.
3900         * lib/unictype/pr_other_math.c: New file.
3901         * lib/unictype/pr_other_uppercase.c: New file.
3902         * lib/unictype/pr_paired_punctuation.c: New file.
3903         * lib/unictype/pr_paragraph_separator.c: New file.
3904         * lib/unictype/pr_pattern_syntax.c: New file.
3905         * lib/unictype/pr_pattern_white_space.c: New file.
3906         * lib/unictype/pr_private_use.c: New file.
3907         * lib/unictype/pr_punctuation.c: New file.
3908         * lib/unictype/pr_quotation_mark.c: New file.
3909         * lib/unictype/pr_radical.c: New file.
3910         * lib/unictype/pr_sentence_terminal.c: New file.
3911         * lib/unictype/pr_soft_dotted.c: New file.
3912         * lib/unictype/pr_space.c: New file.
3913         * lib/unictype/pr_terminal_punctuation.c: New file.
3914         * lib/unictype/pr_test.c: New file.
3915         * lib/unictype/pr_titlecase.c: New file.
3916         * lib/unictype/pr_unassigned_code_value.c: New file.
3917         * lib/unictype/pr_unified_ideograph.c: New file.
3918         * lib/unictype/pr_uppercase.c: New file.
3919         * lib/unictype/pr_variation_selector.c: New file.
3920         * lib/unictype/pr_white_space.c: New file.
3921         * lib/unictype/pr_xid_continue.c: New file.
3922         * lib/unictype/pr_xid_start.c: New file.
3923         * lib/unictype/pr_zero_width.c: New file.
3924         * lib/unictype/scripts.c: New file.
3925         * lib/unictype/sy_c_ident.c: New file.
3926         * lib/unictype/sy_c_whitespace.c: New file.
3927         * lib/unictype/sy_java_ident.c: New file.
3928         * lib/unictype/sy_java_whitespace.c: New file.
3929
3930         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
3931         Unicode 5.0.0.
3932         * lib/unictype/blocks.h: Likewise.
3933         * lib/unictype/categ_C.h: Likewise.
3934         * lib/unictype/categ_Cc.h: Likewise.
3935         * lib/unictype/categ_Cf.h: Likewise.
3936         * lib/unictype/categ_Cn.h: Likewise.
3937         * lib/unictype/categ_Co.h: Likewise.
3938         * lib/unictype/categ_Cs.h: Likewise.
3939         * lib/unictype/categ_L.h: Likewise.
3940         * lib/unictype/categ_Ll.h: Likewise.
3941         * lib/unictype/categ_Lm.h: Likewise.
3942         * lib/unictype/categ_Lo.h: Likewise.
3943         * lib/unictype/categ_Lt.h: Likewise.
3944         * lib/unictype/categ_Lu.h: Likewise.
3945         * lib/unictype/categ_M.h: Likewise.
3946         * lib/unictype/categ_Mc.h: Likewise.
3947         * lib/unictype/categ_Me.h: Likewise.
3948         * lib/unictype/categ_Mn.h: Likewise.
3949         * lib/unictype/categ_N.h: Likewise.
3950         * lib/unictype/categ_Nd.h: Likewise.
3951         * lib/unictype/categ_Nl.h: Likewise.
3952         * lib/unictype/categ_No.h: Likewise.
3953         * lib/unictype/categ_P.h: Likewise.
3954         * lib/unictype/categ_Pc.h: Likewise.
3955         * lib/unictype/categ_Pd.h: Likewise.
3956         * lib/unictype/categ_Pe.h: Likewise.
3957         * lib/unictype/categ_Pf.h: Likewise.
3958         * lib/unictype/categ_Pi.h: Likewise.
3959         * lib/unictype/categ_Po.h: Likewise.
3960         * lib/unictype/categ_Ps.h: Likewise.
3961         * lib/unictype/categ_S.h: Likewise.
3962         * lib/unictype/categ_Sc.h: Likewise.
3963         * lib/unictype/categ_Sk.h: Likewise.
3964         * lib/unictype/categ_Sm.h: Likewise.
3965         * lib/unictype/categ_So.h: Likewise.
3966         * lib/unictype/categ_Z.h: Likewise.
3967         * lib/unictype/categ_Zl.h: Likewise.
3968         * lib/unictype/categ_Zp.h: Likewise.
3969         * lib/unictype/categ_Zs.h: Likewise.
3970         * lib/unictype/categ_of.h: Likewise.
3971         * lib/unictype/combining.h: Likewise.
3972         * lib/unictype/ctype_alnum.h: Likewise.
3973         * lib/unictype/ctype_alpha.h: Likewise.
3974         * lib/unictype/ctype_blank.h: Likewise.
3975         * lib/unictype/ctype_cntrl.h: Likewise.
3976         * lib/unictype/ctype_digit.h: Likewise.
3977         * lib/unictype/ctype_graph.h: Likewise.
3978         * lib/unictype/ctype_lower.h: Likewise.
3979         * lib/unictype/ctype_print.h: Likewise.
3980         * lib/unictype/ctype_punct.h: Likewise.
3981         * lib/unictype/ctype_space.h: Likewise.
3982         * lib/unictype/ctype_upper.h: Likewise.
3983         * lib/unictype/ctype_xdigit.h: Likewise.
3984         * lib/unictype/decdigit.h: Likewise.
3985         * lib/unictype/digit.h: Likewise.
3986         * lib/unictype/mirror.h: Likewise.
3987         * lib/unictype/numeric.h: Likewise.
3988         * lib/unictype/pr_alphabetic.h: Likewise.
3989         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
3990         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
3991         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
3992         * lib/unictype/pr_bidi_block_separator.h: Likewise.
3993         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
3994         * lib/unictype/pr_bidi_common_separator.h: Likewise.
3995         * lib/unictype/pr_bidi_control.h: Likewise.
3996         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
3997         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
3998         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
3999         * lib/unictype/pr_bidi_european_digit.h: Likewise.
4000         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
4001         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
4002         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
4003         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
4004         * lib/unictype/pr_bidi_pdf.h: Likewise.
4005         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
4006         * lib/unictype/pr_bidi_whitespace.h: Likewise.
4007         * lib/unictype/pr_combining.h: Likewise.
4008         * lib/unictype/pr_composite.h: Likewise.
4009         * lib/unictype/pr_currency_symbol.h: Likewise.
4010         * lib/unictype/pr_dash.h: Likewise.
4011         * lib/unictype/pr_decimal_digit.h: Likewise.
4012         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
4013         * lib/unictype/pr_deprecated.h: Likewise.
4014         * lib/unictype/pr_diacritic.h: Likewise.
4015         * lib/unictype/pr_extender.h: Likewise.
4016         * lib/unictype/pr_format_control.h: Likewise.
4017         * lib/unictype/pr_grapheme_base.h: Likewise.
4018         * lib/unictype/pr_grapheme_extend.h: Likewise.
4019         * lib/unictype/pr_grapheme_link.h: Likewise.
4020         * lib/unictype/pr_hex_digit.h: Likewise.
4021         * lib/unictype/pr_hyphen.h: Likewise.
4022         * lib/unictype/pr_id_continue.h: Likewise.
4023         * lib/unictype/pr_id_start.h: Likewise.
4024         * lib/unictype/pr_ideographic.h: Likewise.
4025         * lib/unictype/pr_ids_binary_operator.h: Likewise.
4026         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
4027         * lib/unictype/pr_ignorable_control.h: Likewise.
4028         * lib/unictype/pr_iso_control.h: Likewise.
4029         * lib/unictype/pr_join_control.h: Likewise.
4030         * lib/unictype/pr_left_of_pair.h: Likewise.
4031         * lib/unictype/pr_line_separator.h: Likewise.
4032         * lib/unictype/pr_logical_order_exception.h: Likewise.
4033         * lib/unictype/pr_lowercase.h: Likewise.
4034         * lib/unictype/pr_math.h: Likewise.
4035         * lib/unictype/pr_non_break.h: Likewise.
4036         * lib/unictype/pr_not_a_character.h: Likewise.
4037         * lib/unictype/pr_numeric.h: Likewise.
4038         * lib/unictype/pr_other_alphabetic.h: Likewise.
4039         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
4040         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
4041         * lib/unictype/pr_other_id_continue.h: Likewise.
4042         * lib/unictype/pr_other_id_start.h: Likewise.
4043         * lib/unictype/pr_other_lowercase.h: Likewise.
4044         * lib/unictype/pr_other_math.h: Likewise.
4045         * lib/unictype/pr_other_uppercase.h: Likewise.
4046         * lib/unictype/pr_paired_punctuation.h: Likewise.
4047         * lib/unictype/pr_paragraph_separator.h: Likewise.
4048         * lib/unictype/pr_pattern_syntax.h: Likewise.
4049         * lib/unictype/pr_pattern_white_space.h: Likewise.
4050         * lib/unictype/pr_private_use.h: Likewise.
4051         * lib/unictype/pr_punctuation.h: Likewise.
4052         * lib/unictype/pr_quotation_mark.h: Likewise.
4053         * lib/unictype/pr_radical.h: Likewise.
4054         * lib/unictype/pr_sentence_terminal.h: Likewise.
4055         * lib/unictype/pr_soft_dotted.h: Likewise.
4056         * lib/unictype/pr_space.h: Likewise.
4057         * lib/unictype/pr_terminal_punctuation.h: Likewise.
4058         * lib/unictype/pr_titlecase.h: Likewise.
4059         * lib/unictype/pr_unassigned_code_value.h: Likewise.
4060         * lib/unictype/pr_unified_ideograph.h: Likewise.
4061         * lib/unictype/pr_uppercase.h: Likewise.
4062         * lib/unictype/pr_variation_selector.h: Likewise.
4063         * lib/unictype/pr_white_space.h: Likewise.
4064         * lib/unictype/pr_xid_continue.h: Likewise.
4065         * lib/unictype/pr_xid_start.h: Likewise.
4066         * lib/unictype/pr_zero_width.h: Likewise.
4067         * lib/unictype/scripts.h: Likewise.
4068         * lib/unictype/scripts_byname.gperf: Likewise.
4069         * lib/unictype/sy_c_ident.h: Likewise.
4070         * lib/unictype/sy_c_whitespace.h: Likewise.
4071         * lib/unictype/sy_java_ident.h: Likewise.
4072         * lib/unictype/sy_java_whitespace.h: Likewise.
4073
4074         * lib/unictype/Makefile: New file.
4075         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
4076         glibc.
4077         * lib/unictype/3level.h: New file, copied from glibc.
4078         * lib/unictype/3levelbit.h: New file.
4079
4080 2007-11-11  Bruno Haible  <bruno@clisp.org>
4081
4082         * modules/gperf: New file.
4083         * modules/iconv_open (Depends-on): Add it.
4084         (Makefile.am): Remove the GPERF definition.
4085
4086 2007-11-11  Bruno Haible  <bruno@clisp.org>
4087
4088         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
4089         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
4090
4091 2007-11-11  Bruno Haible  <bruno@clisp.org>
4092
4093         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
4094         (usage): Remove function.
4095
4096 2007-11-11  Bruno Haible  <bruno@clisp.org>
4097
4098         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
4099         gl_FUNC_CEILF_LIBS.
4100         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
4101         gl_FUNC_CEIL_LIBS.
4102         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
4103         gl_FUNC_CEILL_LIBS.
4104         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
4105         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
4106         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
4107
4108 2007-11-11  Bruno Haible  <bruno@clisp.org>
4109
4110         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
4111         roundf were declared but do not exist on functions.
4112         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
4113         roundl were declared but do not exist on functions.
4114         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
4115         HAVE_FLOORL_AND_CEILL, respectively.
4116         Needed for Sun C on Solaris 10.
4117
4118 2007-11-11  Bruno Haible  <bruno@clisp.org>
4119
4120         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
4121         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
4122         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
4123         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
4124         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
4125         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
4126         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
4127         HAVE_DECL_ROUNDF.
4128         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
4129         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
4130         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
4131         of HAVE_DECL_ROUND*.
4132         * modules/math (Makefile.am): Update.
4133
4134 2007-11-10  Bruno Haible  <bruno@clisp.org>
4135
4136         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
4137         ptrdiff_t as m4/intl.m4.
4138
4139 2007-11-10  Jim Meyering  <meyering@redhat.com>
4140
4141         Avoid link failure for the argmatch test.
4142         * tests/test-argmatch.c (usage): Define function to avoid a link
4143         failure: argmatch_die requires a usage function.
4144
4145 2007-11-09  Bruno Haible  <bruno@clisp.org>
4146
4147         * doc/functions/snprintf.texi: Mention BeOS deficiency.
4148         * doc/functions/vsnprintf.texi: Likewise.
4149         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
4150         with a size argument < 2.
4151
4152 2007-11-09  Bruno Haible  <bruno@clisp.org>
4153
4154         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
4155         buffer. Fixes an inefficiency introduced on 2007-11-03.
4156
4157 2007-11-09  Bruno Haible  <bruno@clisp.org>
4158
4159         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
4160         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
4161
4162 2007-11-08  Jim Meyering  <meyering@redhat.com>
4163
4164         Change cache variable name prefix "jm_" to "gl_" everywhere.
4165         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
4166         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
4167         * m4/uptime.m4: s/gl_/jm_/
4168
4169 2007-11-07  Bruno Haible  <bruno@clisp.org>
4170
4171         Update to GNU gettext 0.17.
4172         * m4/intl.m4: Update to GNU gettext 0.17.
4173         * m4/po.m4: Likewise.
4174         * modules/gettext (Files): Remove m4/ulonglong.m4.
4175         (configure.ac): Require gettext infrastructure from version 0.17.
4176
4177 2007-11-06  Bruno Haible  <bruno@clisp.org>
4178
4179         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
4180         symbolic values are not defined in a public header.
4181         * lib/freadable.c (freadable) [QNX]: Likewise.
4182         * lib/freadahead.c (freadahead) [QNX]: Likewise.
4183         * lib/freading.c (freading) [QNX]: Likewise.
4184         * lib/fseterr.c (fseterr) [QNX]: Likewise.
4185         * lib/fwritable.c (fwritable) [QNX]: Likewise.
4186         * lib/fwriting.c (fwriting) [QNX]: Likewise.
4187         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
4188         Reported by Alain Magloire.
4189
4190         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
4191
4192 2007-11-05  Bruno Haible  <bruno@clisp.org>
4193
4194         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
4195         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
4196         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
4197         Reported by Eric Blake.
4198
4199 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4200             Bruno Haible  <bruno@clisp.org>
4201
4202         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
4203         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
4204         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
4205         (malloc): Undefine also before including <stdlib.h>.
4206         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
4207         Needed on OSF/1 4.0.
4208
4209 2007-11-05  Jim Meyering  <meyering@redhat.com>
4210
4211         git-version-gen: sync from coreutils.
4212         * build-aux/git-version-gen: Add comments.
4213         Change the first '-' to '.' in the snapshot version string,
4214         e.g., 6.9-377-08144 -> 6.9.377-08144
4215         Remove first parameter.
4216         Don't declare a version "-dirty" merely because a time
4217         stamp has changed.
4218
4219 2007-11-04  Bruno Haible  <bruno@clisp.org>
4220
4221         * lib/lock.h: Protect all macro definitions containing an 'if'
4222         statement through a "do { ... } while (0)".
4223         * lib/tls.h: Likewise.
4224
4225 2007-11-04  Bruno Haible  <bruno@clisp.org>
4226
4227         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
4228
4229 2007-11-04  Bruno Haible  <bruno@clisp.org>
4230
4231         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
4232         * modules/fprintf-posix (Depends-on): Add nocrash.
4233         * modules/snprintf-posix (Depends-on): Likewise.
4234         * modules/sprintf-posix (Depends-on): Likewise.
4235         * modules/vasnprintf-posix (Depends-on): Likewise.
4236         * modules/vasprintf-posix (Depends-on): Likewise.
4237         * modules/vfprintf-posix (Depends-on): Likewise.
4238         * modules/vsnprintf-posix (Depends-on): Likewise.
4239         * modules/vsprintf-posix (Depends-on): Likewise.
4240         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
4241         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
4242         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
4243         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
4244         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
4245         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
4246         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
4247
4248 2007-11-04  Bruno Haible  <bruno@clisp.org>
4249
4250         * modules/nocrash: New file.
4251         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
4252         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
4253
4254 2007-11-04  Bruno Haible  <bruno@clisp.org>
4255
4256         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
4257         precision handling.
4258         * tests/test-vasprintf-posix.c (test_function): Likewise.
4259         * tests/test-snprintf-posix.h (test_function): Likewise.
4260         * tests/test-sprintf-posix.h (test_function): Likewise.
4261
4262         Fix *printf behaviour for large precisions on mingw and BeOS.
4263         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
4264         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
4265         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
4266         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
4267         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
4268         gl_PRINTF_PRECISION and test its result. Invoke
4269         gl_PREREQ_VASNPRINTF_PRECISION.
4270         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
4271         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
4272         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
4273         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
4274         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
4275         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
4276         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
4277         * doc/functions/fprintf.texi: Update.
4278         * doc/functions/printf.texi: Update.
4279         * doc/functions/snprintf.texi: Update.
4280         * doc/functions/sprintf.texi: Update.
4281         * doc/functions/vfprintf.texi: Update.
4282         * doc/functions/vprintf.texi: Update.
4283         * doc/functions/vsnprintf.texi: Update.
4284         * doc/functions/vsprintf.texi: Update.
4285
4286 2007-11-04  Bruno Haible  <bruno@clisp.org>
4287
4288         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
4289
4290 2007-11-04  Bruno Haible  <bruno@clisp.org>
4291
4292         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
4293         Reported by Sylvain Beucler <beuc@gnu.org>.
4294
4295 2007-11-03  Bruno Haible  <bruno@clisp.org>
4296
4297         * tests/test-fprintf-posix2.sh: New file.
4298         * tests/test-fprintf-posix2.c: New file.
4299         * modules/fprintf-posix-tests (Files): Add them.
4300         (TESTS): Add test-fprintf-posix2.sh.
4301         (configure.ac): Check for getrlimit and setrlimit.
4302         (check_PROGRAMS): Add test-fprintf-posix2.
4303
4304         * tests/test-printf-posix2.sh: New file.
4305         * tests/test-printf-posix2.c: New file.
4306         * modules/printf-posix-tests (Files): Add them.
4307         (TESTS): Add test-printf-posix2.sh.
4308         (configure.ac): Check for getrlimit and setrlimit.
4309         (check_PROGRAMS): Add test-printf-posix2.
4310
4311         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
4312         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
4313         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
4314         (decode_double): New function, copied from decode_long_double.
4315         (scale10_round_decimal_decoded): New function, extracted from
4316         scale10_round_decimal_long_double.
4317         (scale10_round_decimal_long_double): Use it.
4318         (scale10_round_decimal_double): New function.
4319         (floorlog10): New function.
4320         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
4321         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
4322         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
4323         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
4324         gl_PRINTF_ENOMEM and test its result. Invoke
4325         gl_PREREQ_VASNPRINTF_ENOMEM.
4326         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
4327         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
4328         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
4329         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
4330         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
4331         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
4332         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
4333         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
4334         * modules/snprintf-posix (Depends-on): Likewise.
4335         * modules/sprintf-posix (Depends-on): Likewise.
4336         * modules/vasnprintf-posix (Depends-on): Likewise.
4337         * modules/vasprintf-posix (Depends-on): Likewise.
4338         * modules/vfprintf-posix (Depends-on): Likewise.
4339         * modules/vsnprintf-posix (Depends-on): Likewise.
4340         * modules/vsprintf-posix (Depends-on): Likewise.
4341         * doc/functions/fprintf.texi: Update.
4342         * doc/functions/printf.texi: Update.
4343         * doc/functions/snprintf.texi: Update.
4344         * doc/functions/sprintf.texi: Update.
4345         * doc/functions/vfprintf.texi: Update.
4346         * doc/functions/vprintf.texi: Update.
4347         * doc/functions/vsnprintf.texi: Update.
4348         * doc/functions/vsprintf.texi: Update.
4349
4350 2007-11-03  Bruno Haible  <bruno@clisp.org>
4351
4352         * modules/frexp-nolibm-tests: New file.
4353
4354         * modules/frexp-nolibm: New file.
4355         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
4356
4357 2007-11-03  Bruno Haible  <bruno@clisp.org>
4358
4359         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
4360         value is C99 compliant.
4361         Needed for OSF/1 5.1.
4362
4363 2007-11-03  Bruno Haible  <bruno@clisp.org>
4364
4365         Fix out-of-memory handling of vasnprintf.
4366         * lib/printf-parse.c: Include <errno.h>.
4367         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
4368         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
4369         is already set.
4370
4371 2007-11-02  Eric Blake  <ebb9@byu.net>
4372
4373         Fix tests on cygwin.
4374         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
4375
4376 2007-11-01  Bruno Haible  <bruno@clisp.org>
4377
4378         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
4379         warning.
4380         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
4381         needed for POSIX compatibility.
4382
4383 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
4384
4385         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
4386         for compatibility with GNU.
4387
4388 2007-11-01  Bruno Haible  <bruno@clisp.org>
4389
4390         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
4391         (putenv): Renamed from rpl_putenv. Change argument type from
4392         'const char *' to 'char *'.
4393         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
4394         of defining putenv in config.h, just set REPLACE_PUTENV.
4395         * modules/putenv (Depends-on): Add stdlib.
4396         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
4397         (Include): Use <stdlib.h>.
4398         * lib/stdlib.in.h (putenv): New declaration.
4399         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
4400         REPLACE_PUTENV.
4401         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
4402         REPLACE_PUTENV.
4403         Needed for MacOS X 10.5.0.
4404         Reported by Peter O'Gorman <peter@pogma.com>.
4405
4406 2007-11-01  Jim Meyering  <meyering@redhat.com>
4407
4408         Treat an empty date string exactly like "0".
4409         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
4410         if the remaining date string (to be parsed) is empty, use "0".
4411         Reported by Mischa Molhoek and discussed in this thread:
4412         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
4413
4414 2007-10-31  Bruno Haible  <bruno@clisp.org>
4415
4416         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
4417         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
4418         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
4419         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
4420         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
4421         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
4422
4423 2007-10-31  Bruno Haible  <bruno@clisp.org>
4424
4425         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
4426         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
4427         (AC_TYPE_LONG_LONG_INT): Use it.
4428         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
4429         it as well.
4430         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
4431         to m4/longlong.m4.
4432         * modules/stdint (Files): Remove m4/ulonglong.m4.
4433         * modules/strtoull (Files): Use m4/longlong.m4 instead of
4434         m4/ulonglong.m4.
4435         * modules/strtoumax (Files): Likewise.
4436
4437 2007-10-30  Bruno Haible  <bruno@clisp.org>
4438
4439         * modules/xvasprintf-posix: New file.
4440         Suggested by Eric Blake.
4441
4442 2007-10-30  Bruno Haible  <bruno@clisp.org>
4443
4444         * modules/xprintf-posix-tests: New file.
4445         * tests/test-xprintf-posix.sh: New file.
4446         * tests/test-xprintf-posix.c: New file.
4447         * tests/test-xfprintf-posix.c: New file.
4448
4449         * modules/xprintf-posix: New file.
4450
4451 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4452
4453         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
4454         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
4455         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
4456
4457 2007-10-29  Bruno Haible  <bruno@clisp.org>
4458
4459         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
4460         contain the special marker '_cv_'.
4461         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
4462         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
4463         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
4464         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
4465         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
4466         Reported by Ralf Wildenhues.
4467
4468 2007-10-29  Bruno Haible  <bruno@clisp.org>
4469
4470         * gnulib-tool (func_import): When --lgpl is not specified, set
4471         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
4472         GPLv3.
4473         Reported by Simon Josefsson.
4474
4475 2007-10-28  Bruno Haible  <bruno@clisp.org>
4476
4477         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
4478         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
4479         HAVE_DECL_ISFINITE.
4480         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
4481         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
4482         HAVE_DECL_ISFINITE.
4483
4484 2007-10-28  Bruno Haible  <bruno@clisp.org>
4485
4486         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
4487         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
4488
4489 2007-10-28  Bruno Haible  <bruno@clisp.org>
4490
4491         Fix link errors with Sun C 5.0 on Solaris 10.
4492         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
4493         function is declared but not present in the compiler's libm.
4494         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
4495         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
4496         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
4497         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
4498         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
4499         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
4500         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
4501         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
4502         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
4503         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
4504         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
4505         HAVE_DECL_FLOORL.
4506
4507 2007-10-28  Bruno Haible  <bruno@clisp.org>
4508
4509         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
4510         gl_FUNC_FLOORL. Cache the result.
4511         (gl_FUNC_FLOORL): Use it.
4512         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
4513         gl_FUNC_CEILL. Cache the result.
4514         (gl_FUNC_CEILL): Use it.
4515
4516         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
4517         gl_FUNC_FLOOR. Cache the result.
4518         (gl_FUNC_FLOOR): Use it.
4519         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
4520         gl_FUNC_CEIL. Cache the result.
4521         (gl_FUNC_CEIL): Use it.
4522
4523         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
4524         gl_FUNC_FLOORF. Cache the result.
4525         (gl_FUNC_FLOORF): Use it.
4526         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
4527         gl_FUNC_CEILF. Cache the result.
4528         (gl_FUNC_CEILF): Use it.
4529
4530 2007-10-28  Bruno Haible  <bruno@clisp.org>
4531
4532         * gnulib-tool: Allow specifying the LGPL version number through
4533         --lgpl=2 or --lgpl=3.
4534         (func_usage): Document --lgpl with argument.
4535         Handle --lgpl=... arguments.
4536         (func_import): Recognize also gl_LGPL calls with an argument. When
4537         --lgpl=2 is used and the module's license is just LGPL, report an
4538         error. Set sed_transform_lib_file according to the lgpl variable. In
4539         the generated files, use --lgpl or gl_LGPL invocations with argument,
4540         if necessary.
4541         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
4542         an LGPv2+ license.
4543         * doc/gnulib-tool.texi (Modified imports): Update explanation of
4544         gl_LGPL macro.
4545
4546 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4547             Bruno Haible  <bruno@clisp.org>
4548
4549         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
4550         (u16_uctomb_aux): Likewise.
4551         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
4552         !HAVE_INLINE.
4553         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
4554
4555 2007-10-28  Bruno Haible  <bruno@clisp.org>
4556
4557         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
4558         Invoke AM_GETTEXT_OPTION if it exists.
4559         * modules/vasprintf: Likewise.
4560         * modules/verror: Likewise.
4561         * modules/xprintf: Likewise.
4562         * modules/xvasprintf: Likewise.
4563
4564 2007-10-27  Ben Pfaff  <blp@gnu.org>
4565
4566         * lib/math.in.h: Define isfinite macro and prototypes for
4567         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
4568         implementations.
4569         * m4/math_h.m4: New substitutions for isfinite module.
4570         * lib/isfinite.c: New file.
4571         * m4/isfinite.m4: New file.
4572         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
4573         * modules/isfinite: New file.
4574         * modules/isfinite-tests: New file.
4575         * tests/tests-isfinite.c: New file.
4576         * doc/functions/isfinite.texi: Mention isfinite module.
4577         * MODULES.html.sh: Mention new module.
4578
4579 2007-10-27  Ben Pfaff  <blp@gnu.org>
4580
4581         Ralf Wildenhues reported that Tru64 4.0D declares the round
4582         functions but does not have definitions.
4583         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
4584         cannot be found in any library, set the output variable to
4585         "missing" instead of "".
4586         * m4/round.m4: Also use our substitute if we cannot find round in
4587         any library, even if it is declared.
4588         * m4/roundf.m4: Likewise for roundf.
4589         * m4/roundl.m4: Likewise for roundl.
4590         * lib/math.in.h: Undefine roundf, round, roundl before defining
4591         their replacements, to allow for hypothetical systems where these
4592         may be defined as macros but not available in libraries.
4593
4594 2007-10-27  Bruno Haible  <bruno@clisp.org>
4595
4596         * doc/gnulib.texi: Invoke @firstparagraphindent.
4597         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
4598         changes in gnulib.
4599         (Source changes): New section.
4600
4601 2007-10-26  Bruno Haible  <bruno@clisp.org>
4602
4603         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
4604         borrowed from autoconf.
4605
4606 2007-10-26  Bruno Haible  <bruno@clisp.org>
4607
4608         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
4609         strerror returned the empty string. Needed on HP-UX 11.00.
4610
4611 2007-10-24  Micah Cowan  <micah@cowan.name>
4612
4613         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
4614         * build-aux/bootstrap: Remove support for now-unnecessary option,
4615         --cvs-user, and envvars CVS_USER, CVS_RSH.
4616
4617 2007-10-24  Jim Meyering  <meyering@redhat.com>
4618
4619         Avoid diagnostics from sha1sum when there is no cached checksum.
4620         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
4621         if the po.s1 file hasn't been created yet.
4622
4623         * build-aux/bootstrap: Sync from coreutils:
4624         2007-10-24  Jim Meyering  <meyering@redhat.com>
4625         Get gnulib from the git repository, not from an obsolete cvs one.
4626         * build-aux/bootstrap: Suggestion from Micah Cowan.
4627         2007-10-04  Jim Meyering  <jim@meyering.net>
4628         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
4629         (update_po_files): Work also when there are no .po files in po/.
4630
4631 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
4632
4633         * README: Append ".git" to git and cg examples.
4634         Problem reported by Benoit Sigoure.
4635
4636 2007-10-23  Micah Cowan  <micah@cowan.name>
4637
4638         * users.txt: Add wget.
4639
4640 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4641
4642         Fix linking of some unistdio tests on FreeBSD.
4643         * modules/unistdio/u16-vsnprintf-tests
4644         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
4645         * modules/unistdio/u16-vsprintf-tests
4646         (test_u16_vsnprintf1_LDADD): Likewise.
4647         * modules/unistdio/u32-vsnprintf-tests
4648         (test_u32_vsnprintf1_LDADD): Likewise.
4649         * modules/unistdio/u32-vsprintf-tests
4650         (test_u32_vsprintf1_LDADD): Likewise.
4651         * modules/unistdio/u8-vsnprintf-tests
4652         (test_u8_vsnprintf1_LDADD): Likewise.
4653         * modules/unistdio/u8-vsprintf-tests
4654         (test_u8_vsprintf1_LDADD): Likewise.
4655         * modules/unistdio/ulc-vsnprintf-tests
4656         (test_ulc_vsnprintf1_LDADD): Likewise.
4657         * modules/unistdio/ulc-vsprintf-tests
4658         (test_ulc_vsprintf1_LDADD): Likewise.
4659
4660         Fix linking of some uniconv tests on FreeBSD.
4661         * modules/uniconv/u16-conv-from-enc-tests
4662         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
4663         * modules/uniconv/u16-conv-to-enc-tests
4664         (test_u16_conv_to_enc_LDADD): Likewise.
4665         * modules/uniconv/u16-strconv-from-enc-tests
4666         (test_u16_strconv_from_enc_LDADD): Likewise.
4667         * modules/uniconv/u16-strconv-to-enc-tests
4668         (test_u16_strconv_to_enc_LDADD): Likewise.
4669         * modules/uniconv/u32-conv-from-enc-tests
4670         (test_u32_conv_from_enc_LDADD): Likewise.
4671         * modules/uniconv/u32-conv-to-enc-tests
4672         (test_u32_conv_to_enc_LDADD): Likewise.
4673         * modules/uniconv/u32-strconv-from-enc-tests
4674         (test_u32_strconv_from_enc_LDADD): Likewise.
4675         * modules/uniconv/u32-strconv-to-enc-tests
4676         (test_u32_strconv_to_enc_LDADD): Likewise.
4677         * modules/uniconv/u8-conv-from-enc-tests
4678         (test_u8_conv_from_enc_LDADD): Likewise.
4679         * modules/uniconv/u8-conv-to-enc-tests
4680         (test_u8_conv_to_enc_LDADD): Likewise.
4681         * modules/uniconv/u8-strconv-from-enc-tests
4682         (test_u8_strconv_from_enc_LDADD): Likewise.
4683         * modules/uniconv/u8-strconv-to-enc-tests
4684         (test_u8_strconv_to_enc_LDADD): Likewise.
4685
4686 2007-10-22  Bruno Haible  <bruno@clisp.org>
4687
4688         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
4689         size.
4690
4691 2007-10-22  Eric Blake  <ebb9@byu.net>
4692
4693         Tweak x*printf documentation.
4694         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
4695         variable name and comments.
4696         Suggested by Bruno Haible.
4697
4698 2007-10-22  Bruno Haible  <bruno@clisp.org>
4699
4700         * lib/acl.c (copy_acl): Fix file name in comment.
4701
4702 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
4703
4704         Fix Tru64 problem with stdbool.h.
4705         * lib/stdbool.in.h (false, true):
4706         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
4707         Don't declare as an enum in this situation; it runs afoul of Tru64.
4708         Problem reported by Steven M. Schweda in
4709         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
4710
4711 2007-10-22  Eric Blake  <ebb9@byu.net>
4712
4713         Also wrap vf?printf.
4714         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
4715         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
4716         (xvprintf, xvfprintf): New functions.
4717
4718 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4719
4720         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
4721         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
4722
4723         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
4724         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
4725
4726 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
4727
4728         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
4729         by Bruno Haible.
4730
4731 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4732
4733         * lib/getloadavg.c
4734         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
4735         Undef `sys' after including sys/table.h, for Tru64 4.0D.
4736
4737         * tests/test-i-ring.c: Work for C89.
4738
4739 2007-10-22  Bruno Haible  <bruno@clisp.org>
4740
4741         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
4742         -1u, in preprocessor expression, so that we don't test for the bug
4743         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
4744         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
4745
4746 2007-10-22  Eric Blake  <ebb9@byu.net>
4747
4748         * tests/test-yesno.sh: Silence stderr during test.
4749
4750 2007-10-22  Simon Josefsson  <simon@josefsson.org>
4751
4752         * modules/crypto/gc-camellia: New file.
4753
4754         * m4/gc-camellia.m4: New file.
4755
4756         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
4757
4758         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
4759
4760 2007-10-22  Simon Josefsson  <simon@josefsson.org>
4761
4762         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
4763         --help to stdout.  Reported by sms@antinode.org (Steven
4764         M. Schweda).
4765
4766 2007-10-22  Simon Josefsson  <simon@josefsson.org>
4767
4768         * users.txt: Fix link to libksba.
4769
4770 2007-10-21  Ben Pfaff  <blp@gnu.org>
4771
4772         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
4773         round.c roundf implementation that depends on floorf and ceilf to
4774         be tested unconditionally.
4775
4776 2007-10-21  Ben Pfaff  <blp@gnu.org>
4777
4778         * m4/check-libm-func.m4: Removed.
4779         * m4/check-math-lib.m4: New file.
4780         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
4781         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
4782         definition and lack of AC_LIBOBJ([roundf]).
4783         * m4/roundl.m4: Ditto, and similarly for roundl.
4784         * modules/round: Reference new m4 file.
4785         * modules/roundf: Ditto.
4786         * modules/roundl: Ditto.
4787         * tests/test-round2.c (main): Use ROUND instead of round.
4788         Bug report from Bruno Haible.
4789
4790 2007-10-21  Bruno Haible  <bruno@clisp.org>
4791
4792         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
4793         context.
4794
4795 2007-10-21  Bruno Haible  <bruno@clisp.org>
4796
4797         * tests/test-wcwidth.c (main): Allow negative result for some control
4798         characters.
4799
4800         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
4801         Needed on OSF/1 5.1.
4802
4803 2007-10-21  Bruno Haible  <bruno@clisp.org>
4804
4805         * tests/test-floorf1.c: Include isnanf.h.
4806         (main): Use isnanf() instead of isnan().
4807         * tests/test-ceilf1.c: Include isnanf.h.
4808         (main): Use isnanf() instead of isnan().
4809         * tests/test-truncf1.c: Include isnanf.h.
4810         (main): Use isnanf() instead of isnan().
4811         * tests/test-roundf1.c: Include isnanf.h.
4812         (main): Use isnanf() instead of isnan().
4813
4814 2007-10-21  Eric Blake  <ebb9@byu.net>
4815
4816         * users.txt: Update URL for m4.
4817
4818 2007-10-21  Bruno Haible  <bruno@clisp.org>
4819
4820         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
4821
4822 2007-10-21  Bruno Haible  <bruno@clisp.org>
4823
4824         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
4825         Git's management files if the CVS files are not present.
4826
4827 2007-10-20  Bruno Haible  <bruno@clisp.org>
4828
4829         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
4830         gcc-3.4.x.
4831
4832 2007-10-20  Ben Pfaff  <blp@gnu.org>
4833
4834         * lib/math.in.h: Declare round, roundf, roundl if we are providing
4835         implementations.
4836         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
4837         * lib/round.c: New file.
4838         * lib/roundf.c: New file.
4839         * lib/roundl.c: New file.
4840         * m4/round.m4: New file.
4841         * m4/roundf.m4: New file.
4842         * m4/roundl.m4: New file.
4843         * m4/check-libm-func-m4: New file.
4844         * modules/math: Replace round, roundf, roundl related @VARS@ in
4845         math.in.h.
4846         * modules/round: New file.
4847         * modules/round-tests: New file.
4848         * modules/roundf: New file.
4849         * modules/roundf-tests: New file.
4850         * modules/roundl: New file.
4851         * modules/roundl-tests: New file.
4852         * tests/test-round1.c: New file.
4853         * tests/test-round2.c: New file.
4854         * tests/test-roundf1.c: New file.
4855         * tests/test-roundf2.c: New file.
4856         * tests/test-roundl.c: New file.
4857         * doc/functions/round.texi: Mention round module.
4858         * doc/functions/roundf.texi: Mention roundf module.
4859         * doc/functions/roundl.texi: Mention roundl module.
4860         * MODULES.html.sh: Mention new modules.
4861         Thanks to Bruno Haible for suggestions.
4862
4863 2007-10-20  Jim Meyering  <meyering@redhat.com>
4864
4865         * lib/xprintf.c: Include <config.h> unconditionally.
4866
4867         Change xprintf's license to GPL.
4868         * modules/xprintf (License): s/LGPL/GPL/, since this module
4869         depends on modules (exit and exitfail) which are GPL.
4870         Suggestion from Bruno Haible.
4871
4872         xprintf fixes.
4873         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
4874         Use a clearer diagnostic.
4875         Patch from Bruno Haible.
4876
4877 2007-10-20  Bruno Haible  <bruno@clisp.org>
4878
4879         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
4880         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
4881         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4882
4883 2007-10-20  Bruno Haible  <bruno@clisp.org>
4884
4885         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
4886         precision in the comparison result > x - 1 or similar.
4887         * tests/test-ceilf2.c (correct_result_p): Likewise.
4888         * tests/test-truncf2.c (correct_result_p): Likewise.
4889         * tests/test-trunc2.c (correct_result_p): Likewise.
4890         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
4891
4892 2007-10-20  Bruno Haible  <bruno@clisp.org>
4893
4894         * modules/ceil: New file.
4895         * m4/ceil.m4: New file.
4896         * doc/functions/ceil.texi: Mention the 'ceil' module.
4897
4898 2007-10-20  Bruno Haible  <bruno@clisp.org>
4899
4900         * modules/floor: New file.
4901         * m4/floor.m4: New file.
4902         * doc/functions/floor.texi: Mention the 'floor' module.
4903
4904 2007-10-20  Bruno Haible  <bruno@clisp.org>
4905
4906         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
4907         of %a.
4908         * modules/floorf-tests (Depends-on): Likewise.
4909         * modules/truncf-tests (Depends-on): Likewise.
4910         * modules/trunc-tests (Depends-on): Likewise.
4911         Reported by Ben Pfaff.
4912
4913 2007-10-19  Jim Meyering  <meyering@redhat.com>
4914
4915         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
4916         Don't bother testing specific errno values.  Just test ferror.
4917
4918         New module: xprintf
4919         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
4920
4921 2007-10-19  Bruno Haible  <bruno@clisp.org>
4922
4923         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
4924         syntax.
4925         * modules/javaexec (Makefile.am): Likewise.
4926         * modules/relocatable-prog (Makefile.am): Likewise.
4927         Suggested by Jim Meyering.
4928
4929 2007-10-18  Bruno Haible  <bruno@clisp.org>
4930
4931         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
4932         Reported by Jim Meyering.
4933
4934 2007-10-18  Eric Blake  <ebb9@byu.net>
4935
4936         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
4937
4938 2007-10-18  Bruno Haible  <bruno@clisp.org>
4939
4940         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
4941         the format string into writable memory. Needed in Fortify conditions.
4942
4943 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
4944             Bruno Haible  <bruno@clisp.org>
4945
4946         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
4947         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
4948         * modules/trim (Depends-on): Add mbchar.
4949         (configure.ac): Add gl_FUNC_MBRTOWC.
4950         (Makefile.am): Augment lib_SOURCES.
4951
4952 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
4953
4954         Modify glob.c to use fstatat and dirfd, to simplify it.
4955         Suggested by Eric Blake.
4956         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
4957         Don't include <stdbool.h>; not used.
4958         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
4959         (link_exists_p): Simplify implementation, since we can now assume
4960         dirfd and fstatat.
4961         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
4962
4963 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4964
4965         * gnulib-tool (func_get_dependencies): Fix sed script to
4966         match only tests.
4967
4968 2007-10-17  Bruno Haible  <bruno@clisp.org>
4969
4970         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
4971         allow locale names without encoding suffix.
4972         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
4973         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
4974
4975 2007-10-16  Bruno Haible  <bruno@clisp.org>
4976
4977         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
4978         * lib/getgroups.c (getgroups): Likewise.
4979         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
4980
4981 2007-10-16  Bruno Haible  <bruno@clisp.org>
4982
4983         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
4984         * modules/malloc-posix (License): Likewise.
4985         * modules/realloc-posix (License): Likewise.
4986         * modules/calloc-posix (License): Likewise.
4987         * modules/intprops (License): Change from GPL to LGPL, with
4988         Paul Eggert's approval.
4989
4990 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
4991
4992         Merge glibc changes into lib/glob.c.
4993
4994         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
4995         2007-10-15 04:59:03 UTC.  Here are the changes:
4996
4997         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
4998
4999         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
5000
5001         * lib/glob.c: Add some branch prediction throughout.
5002
5003         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
5004
5005         [BZ #5103]
5006         * lib/glob.c (glob): Recognize patterns starting \/.
5007
5008         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
5009
5010         [BZ #3996]
5011         * lib/glob.c (attribute_hidden): Define if not defined.
5012         (glob): Unescape dirname, filename or username when needed and not
5013         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
5014         is NULL.  Handle unescaped [ in pattern without closing ].
5015         Don't pass GLOB_CHECK down to recursive glob for directories.
5016         (__glob_pattern_type): New function.
5017         (__glob_pattern_p): Implement using __glob_pattern_type.
5018         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
5019         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
5020         Remove unreachable code.
5021
5022         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
5023
5024         * lib/glob.c (glob_in_dir): Add some comments and asserts to
5025         explain why there are no leaks.
5026
5027         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
5028
5029         [BZ #3253]
5030         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
5031         time, rather allocate increasingly bigger arrays of pointers, if
5032         possible with alloca, if too large with malloc.
5033
5034 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
5035
5036         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
5037         Problem reported by H.Merijn Brand in
5038         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
5039         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
5040         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
5041
5042 2007-10-15  Bruno Haible  <bruno@clisp.org>
5043
5044         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
5045         with explicit rpl_ prefix.
5046         * lib/fopen.c (fopen): Likewise.
5047         * lib/freopen.c (freopen): Likewise.
5048         * lib/iconv.c (iconv): Likewise.
5049         * lib/iconv_close.c (iconv_close): Likewise.
5050
5051 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5052
5053         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
5054
5055 2007-10-15  Bruno Haible  <bruno@clisp.org>
5056
5057         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
5058         <stddef.h> instead of <stdlib.h> since we only need NULL.
5059         Reported by Ben Pfaff <blp@cs.stanford.edu>.
5060
5061 2007-10-15  Bruno Haible  <bruno@clisp.org>
5062
5063         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
5064         Replace paragraph talking about LIBOBJS.
5065         Reported by Colin Watson <cjwatson@debian.org>.
5066
5067 2007-10-15  Bruno Haible  <bruno@clisp.org>
5068
5069         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
5070         <stdlib.h> before using NULL.
5071
5072 2007-10-15  Simon Josefsson  <simon@josefsson.org>
5073
5074         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
5075         Reported by Albert Chin <china@thewrittenword.com>.
5076
5077 2007-10-14  Bruno Haible  <bruno@clisp.org>
5078
5079         * modules/iconv_open-utf-tests: New file.
5080         * tests/test-iconv-utf.c: New file.
5081
5082         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
5083         * modules/iconv_open-utf: New file.
5084         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
5085         (iconv, iconv_close): New declarations.
5086         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
5087         be defined.
5088         (iconv_open): Add special handling of conversion between UTF-8 and
5089         UTF-{16,32}{BE,LE}.
5090         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
5091         * lib/iconv_close.c: New file.
5092         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
5093         gl_FUNC_ICONV_OPEN.
5094         (gl_FUNC_ICONV_OPEN): Use it.
5095         (gl_FUNC_ICONV_OPEN_UTF): New macro.
5096         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
5097         and REPLACE_ICONV_UTF.
5098         * modules/iconv_open (Depends-on): Add c-strcase.
5099         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
5100         ICONV_CONST.
5101         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
5102
5103 2007-10-13  Albert Chin  <china@thewrittenword.com>
5104             Bruno Haible  <bruno@clisp.org>
5105
5106         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
5107         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
5108
5109 2007-10-13  Bruno Haible  <bruno@clisp.org>
5110
5111         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
5112         defined, use the ISO C99 inline semantics.
5113         * lib/argp.h (ARGP_EI): Likewise.
5114
5115 2007-10-13  Bruno Haible  <bruno@clisp.org>
5116
5117         Handle 'inline' change in gcc 4.3.0.
5118         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
5119         argp_fmtstream_write, argp_fmtstream_set_lmargin,
5120         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
5121         argp_fmtstream_point): Disable 'extern' declaration if the function
5122         definition is going to be provided inline.
5123         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
5124         semantics, not the ISO C99 inline semantics.
5125         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
5126         'extern' declaration if the function definition is going to be provided
5127         inline.
5128         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
5129         the GNU C inline semantics, not the ISO C99 inline semantics. With
5130         GCC 4.2, avoid a warning.
5131
5132 2007-10-13  Bruno Haible  <bruno@clisp.org>
5133
5134         * lib/freading.h (freading): Enable the use of __freading for
5135         glibc >= 2.7.
5136         * lib/freading.c (freading): Likewise.
5137
5138 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
5139
5140         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
5141         "warning: C99 inline functions are not supported; using GNU89".
5142
5143 2007-10-12  Bruno Haible  <bruno@clisp.org>
5144
5145         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
5146         of 2.
5147         * tests/test-ceilf2.c: New file.
5148         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
5149
5150         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
5151         * modules/ceilf-tests: Update.
5152
5153 2007-10-12  Bruno Haible  <bruno@clisp.org>
5154
5155         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
5156         of 2.
5157         * tests/test-floorf2.c: New file.
5158         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
5159
5160         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
5161         * modules/floorf-tests: Update.
5162
5163 2007-10-12  Bruno Haible  <bruno@clisp.org>
5164
5165         * tests/test-trunc2.c: New file.
5166         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
5167
5168         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
5169         * modules/trunc-tests: Update.
5170
5171 2007-10-12  Bruno Haible  <bruno@clisp.org>
5172
5173         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
5174         of 2.
5175         * tests/test-truncf2.c: New file.
5176         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
5177
5178         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
5179         * modules/truncf-tests: Update.
5180
5181 2007-10-11  Eric Blake  <ebb9@byu.net>
5182
5183         Don't claim strerror is broken on Interix.
5184         * doc/functions/strerror.texi (strerror): Known broken systems are
5185         now Solaris 8, and not Interix.
5186         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
5187         Interix on cross-compile.
5188         Reported by Martin Koeppe in
5189         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
5190
5191 2007-10-11  Bruno Haible  <bruno@clisp.org>
5192
5193         * modules/i-ring-tests: New file.
5194         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
5195         instead of assert.
5196
5197 2007-10-11  Bruno Haible  <bruno@clisp.org>
5198
5199         * modules/filenamecat-tests: New file.
5200         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
5201         * lib/filenamecat.c: Remove test code.
5202
5203 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
5204
5205         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
5206
5207         * lib/strerror.c: Include <string.h> always, to test interface,
5208         and to remove the need for the dummy.
5209         Include intprops.h to compute width instead of doing it ourselves
5210         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
5211         (strerror): Define it to return NULL if there's no system strerror.
5212         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
5213         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
5214         ancient pre-strerror Unix systems well any more.  Saying "unknown
5215         system error" is enough.
5216         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
5217         simpler strerror.c implementation.
5218         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
5219         Simplify the tests to reflect the simpler strerror implementation.
5220         * modules/strerror (Depends-on): Add intprops.
5221
5222 2007-10-09  Eric Blake  <ebb9@byu.net>
5223
5224         Silence test-fpending.
5225         * modules/fpending-tests (Files): Add wrapper script.
5226         * tests/test-fpending.sh: New file.
5227
5228 2007-10-09  Bruno Haible  <bruno@clisp.org>
5229
5230         * MODULES.html.sh (func_module): Don't create a hyperlink for
5231         function names like 'printf_frexp'.
5232         (Misc): Add crc, memxor.
5233         (Characteristics of floating types): New section.
5234         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
5235         isnanf-nolibm, signbit, trunc, truncf, truncl.
5236         (Enhancements for ISO C 99 functions): New subsection Input/output.
5237         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
5238         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
5239         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
5240         (Compatibility checks for POSIX:2001 functions): Add clock-time.
5241         (Enhancements for POSIX:2001 functions): Add chdir-long.
5242         (File system functions): Add areadlink, chdir-safer, read-file.
5243         Remove cycle-check.
5244         (File system as inode set): New section.
5245         (Date and time): Add gethrxtime.
5246         (Multithreading): Add openmp.
5247         (Internationalization functions): Add localename.
5248         (Unicode string functions): Add unistr/u*-mbsnlen.
5249         (Support for maintaining and releasing projects): Add git-version-gen.
5250         (Lone files): Remove directories.
5251
5252 2007-10-08  Ben Pfaff  <blp@gnu.org>
5253
5254         * lib/xmalloca.h: Fix typo in comment.
5255
5256 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
5257
5258         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
5259         when avoiding problems with integer overflow.  Use a portable test
5260         instead.
5261
5262 2007-10-08  Simon Josefsson  <simon@josefsson.org>
5263
5264         * modules/dummy (License): Change to LGPLv2+.
5265         * modules/float (License): Likewise
5266         * modules/realloc (License): Likewise
5267         * modules/stdlib (License): Likewise
5268
5269 2007-10-07  Bruno Haible  <bruno@clisp.org>
5270
5271         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
5272         * floor.c (TWO_MANT_DIG): Likewise.
5273         * ceil.c (TWO_MANT_DIG): Likewise.
5274         Reported by Ben Pfaff.
5275
5276 2007-10-07  Bruno Haible  <bruno@clisp.org>
5277
5278         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
5279         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
5280         * lib/frexp.c (FUNC): Likewise.
5281         * lib/printf-frexp.h (printf_frexp): Likewise.
5282         * lib/printf-frexpl.h (printf_frexpl): Likewise.
5283         * lib/printf-frexp.c (FUNC): Likewise.
5284         Suggested by Jim Meyering.
5285
5286 2007-10-07  Jim Meyering  <meyering@redhat.com>
5287
5288         Make xnanosleep's integer overflow test more robust.
5289         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
5290         so that gcc-4.3.0 doesn't optimize away this test for overflow.
5291
5292 2007-10-07  Bruno Haible  <bruno@clisp.org>
5293
5294         * NEWS: Mention the license change.
5295
5296         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
5297         abbreviations in the modules files.
5298
5299         Change copyright notice from GPLv2+ to GPLv3+.
5300         * README: Change copyright notice.
5301         * MODULES.html.sh: Likewise.
5302         * build-aux/bootstrap.conf: Likewise.
5303         * build-aux/config.libpath: Likewise.
5304         * build-aux/csharpcomp.sh.in: Likewise.
5305         * build-aux/csharpexec.sh.in: Likewise.
5306         * build-aux/install-reloc: Likewise.
5307         * build-aux/javacomp.sh.in: Likewise.
5308         * build-aux/javaexec.sh.in: Likewise.
5309         * build-aux/ldd.sh.in: Likewise.
5310         * build-aux/reloc-ldflags: Likewise.
5311         * build-aux/relocatable.sh.in: Likewise.
5312         * build-aux/x-to-1.in: Likewise.
5313         * check-module: Likewise.
5314         * config/srclistvars.sh: Likewise.
5315         * gnulib-tool: Likewise.
5316         * lib/acl-internal.h: Likewise.
5317         * lib/acl.c: Likewise.
5318         * lib/acl.h: Likewise.
5319         * lib/acl_entries.c: Likewise.
5320         * lib/areadlink-with-size.c: Likewise.
5321         * lib/areadlink.c: Likewise.
5322         * lib/areadlink.h: Likewise.
5323         * lib/argmatch.c: Likewise.
5324         * lib/argmatch.h: Likewise.
5325         * lib/argp-ba.c: Likewise.
5326         * lib/argp-eexst.c: Likewise.
5327         * lib/argp-fmtstream.c: Likewise.
5328         * lib/argp-fmtstream.h: Likewise.
5329         * lib/argp-fs-xinl.c: Likewise.
5330         * lib/argp-help.c: Likewise.
5331         * lib/argp-namefrob.h: Likewise.
5332         * lib/argp-parse.c: Likewise.
5333         * lib/argp-pin.c: Likewise.
5334         * lib/argp-pv.c: Likewise.
5335         * lib/argp-pvh.c: Likewise.
5336         * lib/argp-xinl.c: Likewise.
5337         * lib/argp.h: Likewise.
5338         * lib/at-func.c: Likewise.
5339         * lib/atanl.c: Likewise.
5340         * lib/backupfile.c: Likewise.
5341         * lib/backupfile.h: Likewise.
5342         * lib/basename.c: Likewise.
5343         * lib/binary-io.h: Likewise.
5344         * lib/byteswap.in.h: Likewise.
5345         * lib/c-stack.c: Likewise.
5346         * lib/c-stack.h: Likewise.
5347         * lib/c-strcasestr.c: Likewise.
5348         * lib/c-strcasestr.h: Likewise.
5349         * lib/c-strstr.c: Likewise.
5350         * lib/c-strstr.h: Likewise.
5351         * lib/c-strtod.c: Likewise.
5352         * lib/calloc.c: Likewise.
5353         * lib/canon-host.c: Likewise.
5354         * lib/canon-host.h: Likewise.
5355         * lib/canonicalize-lgpl.c: Likewise.
5356         * lib/canonicalize.c: Likewise.
5357         * lib/canonicalize.h: Likewise.
5358         * lib/ceil.c: Likewise.
5359         * lib/ceilf.c: Likewise.
5360         * lib/ceill.c: Likewise.
5361         * lib/chdir-long.c: Likewise.
5362         * lib/chdir-long.h: Likewise.
5363         * lib/chdir-safer.c: Likewise.
5364         * lib/chdir-safer.h: Likewise.
5365         * lib/chown.c: Likewise.
5366         * lib/classpath.c: Likewise.
5367         * lib/classpath.h: Likewise.
5368         * lib/clean-temp.c: Likewise.
5369         * lib/clean-temp.h: Likewise.
5370         * lib/cloexec.c: Likewise.
5371         * lib/close-stream.c: Likewise.
5372         * lib/closein.c: Likewise.
5373         * lib/closein.h: Likewise.
5374         * lib/closeout.c: Likewise.
5375         * lib/closeout.h: Likewise.
5376         * lib/concat-filename.c: Likewise.
5377         * lib/copy-file.c: Likewise.
5378         * lib/copy-file.h: Likewise.
5379         * lib/count-one-bits.h: Likewise.
5380         * lib/crc.c: Likewise.
5381         * lib/crc.h: Likewise.
5382         * lib/creat-safer.c: Likewise.
5383         * lib/csharpcomp.c: Likewise.
5384         * lib/csharpcomp.h: Likewise.
5385         * lib/csharpexec.c: Likewise.
5386         * lib/csharpexec.h: Likewise.
5387         * lib/cycle-check.c: Likewise.
5388         * lib/cycle-check.h: Likewise.
5389         * lib/diacrit.c: Likewise.
5390         * lib/diacrit.h: Likewise.
5391         * lib/diffseq.h: Likewise.
5392         * lib/dirchownmod.c: Likewise.
5393         * lib/dirent.in.h: Likewise.
5394         * lib/dirfd.c: Likewise.
5395         * lib/dirfd.h: Likewise.
5396         * lib/dirname.c: Likewise.
5397         * lib/dirname.h: Likewise.
5398         * lib/dummy.c: Likewise.
5399         * lib/dup-safer.c: Likewise.
5400         * lib/dup2.c: Likewise.
5401         * lib/eealloc.h: Likewise.
5402         * lib/error.c: Likewise.
5403         * lib/error.h: Likewise.
5404         * lib/euidaccess.c: Likewise.
5405         * lib/exclude.c: Likewise.
5406         * lib/exclude.h: Likewise.
5407         * lib/execute.c: Likewise.
5408         * lib/execute.h: Likewise.
5409         * lib/exitfail.c: Likewise.
5410         * lib/exitfail.h: Likewise.
5411         * lib/expl.c: Likewise.
5412         * lib/fatal-signal.c: Likewise.
5413         * lib/fatal-signal.h: Likewise.
5414         * lib/fbufmode.c: Likewise.
5415         * lib/fbufmode.h: Likewise.
5416         * lib/fchdir.c: Likewise.
5417         * lib/fchmodat.c: Likewise.
5418         * lib/fchownat.c: Likewise.
5419         * lib/fcntl--.h: Likewise.
5420         * lib/fcntl-safer.h: Likewise.
5421         * lib/fcntl.in.h: Likewise.
5422         * lib/fd-safer.c: Likewise.
5423         * lib/fflush.c: Likewise.
5424         * lib/file-has-acl.c: Likewise.
5425         * lib/file-set.c: Likewise.
5426         * lib/file-type.c: Likewise.
5427         * lib/file-type.h: Likewise.
5428         * lib/fileblocks.c: Likewise.
5429         * lib/filemode.c: Likewise.
5430         * lib/filemode.h: Likewise.
5431         * lib/filename.h: Likewise.
5432         * lib/filenamecat.c: Likewise.
5433         * lib/filenamecat.h: Likewise.
5434         * lib/findprog.c: Likewise.
5435         * lib/findprog.h: Likewise.
5436         * lib/float.in.h: Likewise.
5437         * lib/floor.c: Likewise.
5438         * lib/floorf.c: Likewise.
5439         * lib/floorl.c: Likewise.
5440         * lib/fopen-safer.c: Likewise.
5441         * lib/fopen.c: Likewise.
5442         * lib/fpending.c: Likewise.
5443         * lib/fpending.h: Likewise.
5444         * lib/fprintf.c: Likewise.
5445         * lib/fprintftime.h: Likewise.
5446         * lib/fpucw.h: Likewise.
5447         * lib/fpurge.c: Likewise.
5448         * lib/fpurge.h: Likewise.
5449         * lib/freadable.c: Likewise.
5450         * lib/freadable.h: Likewise.
5451         * lib/freadahead.c: Likewise.
5452         * lib/freadahead.h: Likewise.
5453         * lib/freading.c: Likewise.
5454         * lib/freading.h: Likewise.
5455         * lib/free.c: Likewise.
5456         * lib/freopen.c: Likewise.
5457         * lib/frexp.c: Likewise.
5458         * lib/frexpl.c: Likewise.
5459         * lib/fseek.c: Likewise.
5460         * lib/fseterr.c: Likewise.
5461         * lib/fseterr.h: Likewise.
5462         * lib/fstatat.c: Likewise.
5463         * lib/fstrcmp.c: Likewise.
5464         * lib/fstrcmp.h: Likewise.
5465         * lib/fsusage.c: Likewise.
5466         * lib/fsusage.h: Likewise.
5467         * lib/ftell.c: Likewise.
5468         * lib/ftello.c: Likewise.
5469         * lib/fts-cycle.c: Likewise.
5470         * lib/fts.c: Likewise.
5471         * lib/fts_.h: Likewise.
5472         * lib/full-read.c: Likewise.
5473         * lib/full-read.h: Likewise.
5474         * lib/full-write.c: Likewise.
5475         * lib/full-write.h: Likewise.
5476         * lib/fwritable.c: Likewise.
5477         * lib/fwritable.h: Likewise.
5478         * lib/fwriteerror.c: Likewise.
5479         * lib/fwriteerror.h: Likewise.
5480         * lib/fwriting.c: Likewise.
5481         * lib/fwriting.h: Likewise.
5482         * lib/gcd.c: Likewise.
5483         * lib/gcd.h: Likewise.
5484         * lib/getcwd.c: Likewise.
5485         * lib/getdate.h: Likewise.
5486         * lib/getdate.y: Likewise.
5487         * lib/getdomainname.c: Likewise.
5488         * lib/getdomainname.h: Likewise.
5489         * lib/getgroups.c: Likewise.
5490         * lib/gethostname.c: Likewise.
5491         * lib/gethrxtime.c: Likewise.
5492         * lib/gethrxtime.h: Likewise.
5493         * lib/getloadavg.c: Likewise.
5494         * lib/getndelim2.c: Likewise.
5495         * lib/getndelim2.h: Likewise.
5496         * lib/getnline.c: Likewise.
5497         * lib/getnline.h: Likewise.
5498         * lib/getopt.c: Likewise.
5499         * lib/getopt.in.h: Likewise.
5500         * lib/getopt1.c: Likewise.
5501         * lib/getopt_int.h: Likewise.
5502         * lib/getpagesize.h: Likewise.
5503         * lib/getsubopt.c: Likewise.
5504         * lib/gettime.c: Likewise.
5505         * lib/getugroups.c: Likewise.
5506         * lib/getugroups.h: Likewise.
5507         * lib/getusershell.c: Likewise.
5508         * lib/gl_anyavltree_list1.h: Likewise.
5509         * lib/gl_anyavltree_list2.h: Likewise.
5510         * lib/gl_anyhash_list1.h: Likewise.
5511         * lib/gl_anyhash_list2.h: Likewise.
5512         * lib/gl_anylinked_list1.h: Likewise.
5513         * lib/gl_anylinked_list2.h: Likewise.
5514         * lib/gl_anyrbtree_list1.h: Likewise.
5515         * lib/gl_anyrbtree_list2.h: Likewise.
5516         * lib/gl_anytree_list1.h: Likewise.
5517         * lib/gl_anytree_list2.h: Likewise.
5518         * lib/gl_anytree_oset.h: Likewise.
5519         * lib/gl_anytreehash_list1.h: Likewise.
5520         * lib/gl_anytreehash_list2.h: Likewise.
5521         * lib/gl_array_list.c: Likewise.
5522         * lib/gl_array_list.h: Likewise.
5523         * lib/gl_array_oset.c: Likewise.
5524         * lib/gl_array_oset.h: Likewise.
5525         * lib/gl_avltree_list.c: Likewise.
5526         * lib/gl_avltree_list.h: Likewise.
5527         * lib/gl_avltree_oset.c: Likewise.
5528         * lib/gl_avltree_oset.h: Likewise.
5529         * lib/gl_avltreehash_list.c: Likewise.
5530         * lib/gl_avltreehash_list.h: Likewise.
5531         * lib/gl_carray_list.c: Likewise.
5532         * lib/gl_carray_list.h: Likewise.
5533         * lib/gl_linked_list.c: Likewise.
5534         * lib/gl_linked_list.h: Likewise.
5535         * lib/gl_linkedhash_list.c: Likewise.
5536         * lib/gl_linkedhash_list.h: Likewise.
5537         * lib/gl_list.c: Likewise.
5538         * lib/gl_list.h: Likewise.
5539         * lib/gl_oset.c: Likewise.
5540         * lib/gl_oset.h: Likewise.
5541         * lib/gl_rbtree_list.c: Likewise.
5542         * lib/gl_rbtree_list.h: Likewise.
5543         * lib/gl_rbtree_oset.c: Likewise.
5544         * lib/gl_rbtree_oset.h: Likewise.
5545         * lib/gl_rbtreehash_list.c: Likewise.
5546         * lib/gl_rbtreehash_list.h: Likewise.
5547         * lib/gl_sublist.c: Likewise.
5548         * lib/gl_sublist.h: Likewise.
5549         * lib/group-member.c: Likewise.
5550         * lib/group-member.h: Likewise.
5551         * lib/hard-locale.c: Likewise.
5552         * lib/hard-locale.h: Likewise.
5553         * lib/hash-pjw.c: Likewise.
5554         * lib/hash-pjw.h: Likewise.
5555         * lib/hash-triple.c: Likewise.
5556         * lib/hash.c: Likewise.
5557         * lib/hash.h: Likewise.
5558         * lib/human.c: Likewise.
5559         * lib/human.h: Likewise.
5560         * lib/i-ring.c: Likewise.
5561         * lib/i-ring.h: Likewise.
5562         * lib/idcache.c: Likewise.
5563         * lib/imaxabs.c: Likewise.
5564         * lib/imaxdiv.c: Likewise.
5565         * lib/inet_pton.c: Likewise.
5566         * lib/inet_pton.h: Likewise.
5567         * lib/intprops.h: Likewise.
5568         * lib/inttostr.c: Likewise.
5569         * lib/inttostr.h: Likewise.
5570         * lib/inttypes.in.h: Likewise.
5571         * lib/isapipe.c: Likewise.
5572         * lib/isdir.c: Likewise.
5573         * lib/isnan.c: Likewise.
5574         * lib/isnan.h: Likewise.
5575         * lib/isnanf.c: Likewise.
5576         * lib/isnanf.h: Likewise.
5577         * lib/isnanl-nolibm.h: Likewise.
5578         * lib/isnanl.c: Likewise.
5579         * lib/isnanl.h: Likewise.
5580         * lib/javacomp.c: Likewise.
5581         * lib/javacomp.h: Likewise.
5582         * lib/javaexec.c: Likewise.
5583         * lib/javaexec.h: Likewise.
5584         * lib/javaversion.c: Likewise.
5585         * lib/javaversion.h: Likewise.
5586         * lib/javaversion.java: Likewise.
5587         * lib/lbrkprop.h: Likewise.
5588         * lib/lchmod.h: Likewise.
5589         * lib/lchown.c: Likewise.
5590         * lib/ldexpl.c: Likewise.
5591         * lib/linebreak.c: Likewise.
5592         * lib/linebreak.h: Likewise.
5593         * lib/linebuffer.c: Likewise.
5594         * lib/linebuffer.h: Likewise.
5595         * lib/locale.in.h: Likewise.
5596         * lib/logl.c: Likewise.
5597         * lib/long-options.c: Likewise.
5598         * lib/long-options.h: Likewise.
5599         * lib/lstat.c: Likewise.
5600         * lib/lstat.h: Likewise.
5601         * lib/math.in.h: Likewise.
5602         * lib/mbchar.c: Likewise.
5603         * lib/mbchar.h: Likewise.
5604         * lib/mbfile.h: Likewise.
5605         * lib/mbiter.h: Likewise.
5606         * lib/mbscasecmp.c: Likewise.
5607         * lib/mbscasestr.c: Likewise.
5608         * lib/mbschr.c: Likewise.
5609         * lib/mbscspn.c: Likewise.
5610         * lib/mbslen.c: Likewise.
5611         * lib/mbsncasecmp.c: Likewise.
5612         * lib/mbsnlen.c: Likewise.
5613         * lib/mbspbrk.c: Likewise.
5614         * lib/mbspcasecmp.c: Likewise.
5615         * lib/mbsrchr.c: Likewise.
5616         * lib/mbssep.c: Likewise.
5617         * lib/mbsspn.c: Likewise.
5618         * lib/mbsstr.c: Likewise.
5619         * lib/mbstok_r.c: Likewise.
5620         * lib/mbswidth.c: Likewise.
5621         * lib/mbswidth.h: Likewise.
5622         * lib/mbuiter.h: Likewise.
5623         * lib/memcasecmp.c: Likewise.
5624         * lib/memcasecmp.h: Likewise.
5625         * lib/memchr.c: Likewise.
5626         * lib/memcmp.c: Likewise.
5627         * lib/memcoll.c: Likewise.
5628         * lib/memcoll.h: Likewise.
5629         * lib/memcpy.c: Likewise.
5630         * lib/memrchr.c: Likewise.
5631         * lib/mkancesdirs.c: Likewise.
5632         * lib/mkdir-p.c: Likewise.
5633         * lib/mkdir-p.h: Likewise.
5634         * lib/mkdir.c: Likewise.
5635         * lib/mkdirat.c: Likewise.
5636         * lib/mkdtemp.c: Likewise.
5637         * lib/mkstemp-safer.c: Likewise.
5638         * lib/mkstemp.c: Likewise.
5639         * lib/modechange.c: Likewise.
5640         * lib/modechange.h: Likewise.
5641         * lib/mountlist.c: Likewise.
5642         * lib/mountlist.h: Likewise.
5643         * lib/mpsort.c: Likewise.
5644         * lib/nanosleep.c: Likewise.
5645         * lib/obstack.c: Likewise.
5646         * lib/obstack.h: Likewise.
5647         * lib/open-safer.c: Likewise.
5648         * lib/open.c: Likewise.
5649         * lib/openat-die.c: Likewise.
5650         * lib/openat-priv.h: Likewise.
5651         * lib/openat-proc.c: Likewise.
5652         * lib/openat.c: Likewise.
5653         * lib/openat.h: Likewise.
5654         * lib/pagealign_alloc.c: Likewise.
5655         * lib/pagealign_alloc.h: Likewise.
5656         * lib/physmem.c: Likewise.
5657         * lib/physmem.h: Likewise.
5658         * lib/pipe-safer.c: Likewise.
5659         * lib/pipe.c: Likewise.
5660         * lib/pipe.h: Likewise.
5661         * lib/posixtm.c: Likewise.
5662         * lib/posixtm.h: Likewise.
5663         * lib/posixver.c: Likewise.
5664         * lib/printf-frexp.c: Likewise.
5665         * lib/printf-frexp.h: Likewise.
5666         * lib/printf-frexpl.c: Likewise.
5667         * lib/printf-frexpl.h: Likewise.
5668         * lib/printf.c: Likewise.
5669         * lib/progname.c: Likewise.
5670         * lib/progname.h: Likewise.
5671         * lib/progreloc.c: Likewise.
5672         * lib/putenv.c: Likewise.
5673         * lib/quote.c: Likewise.
5674         * lib/quote.h: Likewise.
5675         * lib/quotearg.c: Likewise.
5676         * lib/quotearg.h: Likewise.
5677         * lib/raise.c: Likewise.
5678         * lib/readline.c: Likewise.
5679         * lib/readline.h: Likewise.
5680         * lib/readlink.c: Likewise.
5681         * lib/readtokens.c: Likewise.
5682         * lib/readtokens.h: Likewise.
5683         * lib/readtokens0.c: Likewise.
5684         * lib/readtokens0.h: Likewise.
5685         * lib/readutmp.c: Likewise.
5686         * lib/readutmp.h: Likewise.
5687         * lib/realloc.c: Likewise.
5688         * lib/relocwrapper.c: Likewise.
5689         * lib/rename-dest-slash.c: Likewise.
5690         * lib/rename.c: Likewise.
5691         * lib/rmdir.c: Likewise.
5692         * lib/rpmatch.c: Likewise.
5693         * lib/safe-read.c: Likewise.
5694         * lib/safe-read.h: Likewise.
5695         * lib/safe-write.c: Likewise.
5696         * lib/safe-write.h: Likewise.
5697         * lib/same-inode.h: Likewise.
5698         * lib/same.c: Likewise.
5699         * lib/same.h: Likewise.
5700         * lib/save-cwd.c: Likewise.
5701         * lib/save-cwd.h: Likewise.
5702         * lib/savedir.c: Likewise.
5703         * lib/savedir.h: Likewise.
5704         * lib/savewd.c: Likewise.
5705         * lib/savewd.h: Likewise.
5706         * lib/search.in.h: Likewise.
5707         * lib/setenv.c: Likewise.
5708         * lib/setenv.h: Likewise.
5709         * lib/settime.c: Likewise.
5710         * lib/sh-quote.c: Likewise.
5711         * lib/sh-quote.h: Likewise.
5712         * lib/sig2str.c: Likewise.
5713         * lib/sig2str.h: Likewise.
5714         * lib/signal.in.h: Likewise.
5715         * lib/signbitd.c: Likewise.
5716         * lib/signbitf.c: Likewise.
5717         * lib/signbitl.c: Likewise.
5718         * lib/sigprocmask.c: Likewise.
5719         * lib/sincosl.c: Likewise.
5720         * lib/sleep.c: Likewise.
5721         * lib/sprintf.c: Likewise.
5722         * lib/sqrtl.c: Likewise.
5723         * lib/stat-time.h: Likewise.
5724         * lib/stdio--.h: Likewise.
5725         * lib/stdio-safer.h: Likewise.
5726         * lib/stdlib--.h: Likewise.
5727         * lib/stdlib-safer.h: Likewise.
5728         * lib/stdlib.in.h: Likewise.
5729         * lib/stpcpy.c: Likewise.
5730         * lib/stpncpy.c: Likewise.
5731         * lib/strchrnul.c: Likewise.
5732         * lib/strcspn.c: Likewise.
5733         * lib/strerror.c: Likewise.
5734         * lib/strftime.c: Likewise.
5735         * lib/strftime.h: Likewise.
5736         * lib/striconveh.c: Likewise.
5737         * lib/striconveh.h: Likewise.
5738         * lib/striconveha.c: Likewise.
5739         * lib/striconveha.h: Likewise.
5740         * lib/stripslash.c: Likewise.
5741         * lib/strnlen1.c: Likewise.
5742         * lib/strnlen1.h: Likewise.
5743         * lib/strtod.c: Likewise.
5744         * lib/strtoimax.c: Likewise.
5745         * lib/strtok_r.c: Likewise.
5746         * lib/strtol.c: Likewise.
5747         * lib/strtoll.c: Likewise.
5748         * lib/strtoul.c: Likewise.
5749         * lib/strtoull.c: Likewise.
5750         * lib/sysexits.in.h: Likewise.
5751         * lib/tempname.c: Likewise.
5752         * lib/tempname.h: Likewise.
5753         * lib/timespec.h: Likewise.
5754         * lib/tls.c: Likewise.
5755         * lib/tls.h: Likewise.
5756         * lib/tmpdir.c: Likewise.
5757         * lib/tmpdir.h: Likewise.
5758         * lib/tmpfile-safer.c: Likewise.
5759         * lib/tmpfile.c: Likewise.
5760         * lib/trigl.c: Likewise.
5761         * lib/trigl.h: Likewise.
5762         * lib/trim.c: Likewise.
5763         * lib/trim.h: Likewise.
5764         * lib/trunc.c: Likewise.
5765         * lib/truncf.c: Likewise.
5766         * lib/truncl.c: Likewise.
5767         * lib/tsearch.c: Likewise.
5768         * lib/unicodeio.c: Likewise.
5769         * lib/unicodeio.h: Likewise.
5770         * lib/unistd--.h: Likewise.
5771         * lib/unistd-safer.h: Likewise.
5772         * lib/unistdio/ulc-fprintf.c: Likewise.
5773         * lib/unistdio/ulc-vfprintf.c: Likewise.
5774         * lib/unlinkdir.c: Likewise.
5775         * lib/unlinkdir.h: Likewise.
5776         * lib/unlocked-io.h: Likewise.
5777         * lib/unsetenv.c: Likewise.
5778         * lib/userspec.c: Likewise.
5779         * lib/utime.c: Likewise.
5780         * lib/utimecmp.c: Likewise.
5781         * lib/utimecmp.h: Likewise.
5782         * lib/utimens.c: Likewise.
5783         * lib/verify.h: Likewise.
5784         * lib/verror.c: Likewise.
5785         * lib/verror.h: Likewise.
5786         * lib/version-etc-fsf.c: Likewise.
5787         * lib/version-etc.c: Likewise.
5788         * lib/version-etc.h: Likewise.
5789         * lib/vfprintf.c: Likewise.
5790         * lib/vprintf.c: Likewise.
5791         * lib/vsprintf.c: Likewise.
5792         * lib/w32spawn.h: Likewise.
5793         * lib/wait-process.c: Likewise.
5794         * lib/wait-process.h: Likewise.
5795         * lib/wcwidth.c: Likewise.
5796         * lib/write-any-file.c: Likewise.
5797         * lib/xalloc-die.c: Likewise.
5798         * lib/xalloc.h: Likewise.
5799         * lib/xasprintf.c: Likewise.
5800         * lib/xgetcwd.c: Likewise.
5801         * lib/xgetcwd.h: Likewise.
5802         * lib/xgetdomainname.c: Likewise.
5803         * lib/xgetdomainname.h: Likewise.
5804         * lib/xgethostname.c: Likewise.
5805         * lib/xmalloc.c: Likewise.
5806         * lib/xmalloca.c: Likewise.
5807         * lib/xmalloca.h: Likewise.
5808         * lib/xmemcoll.c: Likewise.
5809         * lib/xnanosleep.c: Likewise.
5810         * lib/xreadlink.c: Likewise.
5811         * lib/xreadlink.h: Likewise.
5812         * lib/xsetenv.c: Likewise.
5813         * lib/xsetenv.h: Likewise.
5814         * lib/xstriconv.c: Likewise.
5815         * lib/xstriconv.h: Likewise.
5816         * lib/xstrndup.c: Likewise.
5817         * lib/xstrndup.h: Likewise.
5818         * lib/xstrtod.c: Likewise.
5819         * lib/xstrtod.h: Likewise.
5820         * lib/xstrtol-error.c: Likewise.
5821         * lib/xstrtol.c: Likewise.
5822         * lib/xstrtol.h: Likewise.
5823         * lib/xtime.h: Likewise.
5824         * lib/xvasprintf.c: Likewise.
5825         * lib/xvasprintf.h: Likewise.
5826         * lib/yesno.c: Likewise.
5827         * lib/yesno.h: Likewise.
5828         * posix-modules: Likewise.
5829         * tests/test-alloca-opt.c: Likewise.
5830         * tests/test-arcfour.c: Likewise.
5831         * tests/test-arctwo.c: Likewise.
5832         * tests/test-argmatch.c: Likewise.
5833         * tests/test-argp-2.sh: Likewise.
5834         * tests/test-argp.c: Likewise.
5835         * tests/test-arpa_inet.c: Likewise.
5836         * tests/test-array_list.c: Likewise.
5837         * tests/test-array_oset.c: Likewise.
5838         * tests/test-atexit.c: Likewise.
5839         * tests/test-avltree_list.c: Likewise.
5840         * tests/test-avltree_oset.c: Likewise.
5841         * tests/test-avltreehash_list.c: Likewise.
5842         * tests/test-base64.c: Likewise.
5843         * tests/test-binary-io.c: Likewise.
5844         * tests/test-byteswap.c: Likewise.
5845         * tests/test-c-ctype.c: Likewise.
5846         * tests/test-c-strcasecmp.c: Likewise.
5847         * tests/test-c-strcasestr.c: Likewise.
5848         * tests/test-c-strncasecmp.c: Likewise.
5849         * tests/test-c-strstr.c: Likewise.
5850         * tests/test-canonicalize-lgpl.c: Likewise.
5851         * tests/test-canonicalize.c: Likewise.
5852         * tests/test-carray_list.c: Likewise.
5853         * tests/test-ceilf.c: Likewise.
5854         * tests/test-ceill.c: Likewise.
5855         * tests/test-count-one-bits.c: Likewise.
5856         * tests/test-crc.c: Likewise.
5857         * tests/test-dirname.c: Likewise.
5858         * tests/test-fbufmode.c: Likewise.
5859         * tests/test-fcntl.c: Likewise.
5860         * tests/test-fflush.c: Likewise.
5861         * tests/test-floorf.c: Likewise.
5862         * tests/test-floorl.c: Likewise.
5863         * tests/test-fopen.c: Likewise.
5864         * tests/test-fprintf-posix.c: Likewise.
5865         * tests/test-fprintf-posix.h: Likewise.
5866         * tests/test-fpurge.c: Likewise.
5867         * tests/test-freadable.c: Likewise.
5868         * tests/test-freadahead.c: Likewise.
5869         * tests/test-freading.c: Likewise.
5870         * tests/test-freopen.c: Likewise.
5871         * tests/test-frexp.c: Likewise.
5872         * tests/test-frexpl.c: Likewise.
5873         * tests/test-fseek.c: Likewise.
5874         * tests/test-fseeko.c: Likewise.
5875         * tests/test-fseterr.c: Likewise.
5876         * tests/test-fstrcmp.c: Likewise.
5877         * tests/test-ftell.c: Likewise.
5878         * tests/test-ftello.c: Likewise.
5879         * tests/test-fwritable.c: Likewise.
5880         * tests/test-fwriting.c: Likewise.
5881         * tests/test-getaddrinfo.c: Likewise.
5882         * tests/test-getpass.c: Likewise.
5883         * tests/test-gettimeofday.c: Likewise.
5884         * tests/test-hmac-md5.c: Likewise.
5885         * tests/test-hmac-sha1.c: Likewise.
5886         * tests/test-iconv.c: Likewise.
5887         * tests/test-iconvme.c: Likewise.
5888         * tests/test-inttypes.c: Likewise.
5889         * tests/test-isnan.c: Likewise.
5890         * tests/test-isnanf.c: Likewise.
5891         * tests/test-isnanl-nolibm.c: Likewise.
5892         * tests/test-isnanl.c: Likewise.
5893         * tests/test-isnanl.h: Likewise.
5894         * tests/test-ldexpl.c: Likewise.
5895         * tests/test-linked_list.c: Likewise.
5896         * tests/test-linkedhash_list.c: Likewise.
5897         * tests/test-locale.c: Likewise.
5898         * tests/test-localename.c: Likewise.
5899         * tests/test-lock.c: Likewise.
5900         * tests/test-lseek.c: Likewise.
5901         * tests/test-malloca.c: Likewise.
5902         * tests/test-math.c: Likewise.
5903         * tests/test-mbscasecmp.c: Likewise.
5904         * tests/test-mbscasestr1.c: Likewise.
5905         * tests/test-mbscasestr2.c: Likewise.
5906         * tests/test-mbscasestr3.c: Likewise.
5907         * tests/test-mbscasestr4.c: Likewise.
5908         * tests/test-mbschr.c: Likewise.
5909         * tests/test-mbscspn.c: Likewise.
5910         * tests/test-mbsncasecmp.c: Likewise.
5911         * tests/test-mbspbrk.c: Likewise.
5912         * tests/test-mbspcasecmp.c: Likewise.
5913         * tests/test-mbsrchr.c: Likewise.
5914         * tests/test-mbsspn.c: Likewise.
5915         * tests/test-mbsstr1.c: Likewise.
5916         * tests/test-mbsstr2.c: Likewise.
5917         * tests/test-mbsstr3.c: Likewise.
5918         * tests/test-md5.c: Likewise.
5919         * tests/test-memmem.c: Likewise.
5920         * tests/test-netinet_in.c: Likewise.
5921         * tests/test-open.c: Likewise.
5922         * tests/test-printf-frexp.c: Likewise.
5923         * tests/test-printf-frexpl.c: Likewise.
5924         * tests/test-printf-posix.c: Likewise.
5925         * tests/test-printf-posix.h: Likewise.
5926         * tests/test-rbtree_list.c: Likewise.
5927         * tests/test-rbtree_oset.c: Likewise.
5928         * tests/test-rbtreehash_list.c: Likewise.
5929         * tests/test-read-file.c: Likewise.
5930         * tests/test-rijndael.c: Likewise.
5931         * tests/test-search.c: Likewise.
5932         * tests/test-signbit.c: Likewise.
5933         * tests/test-sleep.c: Likewise.
5934         * tests/test-snprintf-posix.c: Likewise.
5935         * tests/test-snprintf-posix.h: Likewise.
5936         * tests/test-snprintf.c: Likewise.
5937         * tests/test-sprintf-posix.c: Likewise.
5938         * tests/test-sprintf-posix.h: Likewise.
5939         * tests/test-stat-time.c: Likewise.
5940         * tests/test-stdbool.c: Likewise.
5941         * tests/test-stdint.c: Likewise.
5942         * tests/test-stdio.c: Likewise.
5943         * tests/test-stdlib.c: Likewise.
5944         * tests/test-stpncpy.c: Likewise.
5945         * tests/test-strcasestr.c: Likewise.
5946         * tests/test-striconv.c: Likewise.
5947         * tests/test-striconveh.c: Likewise.
5948         * tests/test-striconveha.c: Likewise.
5949         * tests/test-string.c: Likewise.
5950         * tests/test-sys_select.c: Likewise.
5951         * tests/test-sys_socket.c: Likewise.
5952         * tests/test-sys_stat.c: Likewise.
5953         * tests/test-sys_time.c: Likewise.
5954         * tests/test-sysexits.c: Likewise.
5955         * tests/test-time.c: Likewise.
5956         * tests/test-tls.c: Likewise.
5957         * tests/test-trunc.c: Likewise.
5958         * tests/test-truncf.c: Likewise.
5959         * tests/test-truncl.c: Likewise.
5960         * tests/test-unistd.c: Likewise.
5961         * tests/test-vasnprintf-posix.c: Likewise.
5962         * tests/test-vasnprintf-posix2.c: Likewise.
5963         * tests/test-vasnprintf.c: Likewise.
5964         * tests/test-vasprintf-posix.c: Likewise.
5965         * tests/test-vasprintf.c: Likewise.
5966         * tests/test-verify.c: Likewise.
5967         * tests/test-vfprintf-posix.c: Likewise.
5968         * tests/test-vprintf-posix.c: Likewise.
5969         * tests/test-vsnprintf-posix.c: Likewise.
5970         * tests/test-vsnprintf.c: Likewise.
5971         * tests/test-vsprintf-posix.c: Likewise.
5972         * tests/test-wchar.c: Likewise.
5973         * tests/test-wctype.c: Likewise.
5974         * tests/test-wcwidth.c: Likewise.
5975         * tests/test-xstrtol.c: Likewise.
5976         * tests/test-xvasprintf.c: Likewise.
5977         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
5978         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
5979         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
5980         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
5981         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
5982         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
5983         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
5984         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
5985         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
5986         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
5987         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
5988         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
5989         * tests/uniname/test-uninames.c: Likewise.
5990         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
5991         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
5992         * tests/unistdio/test-u16-printf1.h: Likewise.
5993         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
5994         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
5995         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
5996         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
5997         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
5998         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
5999         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
6000         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
6001         * tests/unistdio/test-u32-printf1.h: Likewise.
6002         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
6003         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
6004         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
6005         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
6006         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
6007         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
6008         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
6009         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
6010         * tests/unistdio/test-u8-printf1.h: Likewise.
6011         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
6012         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
6013         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
6014         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
6015         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
6016         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
6017         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
6018         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
6019         * tests/unistdio/test-ulc-printf1.h: Likewise.
6020         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
6021         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
6022         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
6023         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
6024         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
6025         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
6026         * tests/uniwidth/test-u16-strwidth.c: Likewise.
6027         * tests/uniwidth/test-u16-width.c: Likewise.
6028         * tests/uniwidth/test-u32-strwidth.c: Likewise.
6029         * tests/uniwidth/test-u32-width.c: Likewise.
6030         * tests/uniwidth/test-u8-strwidth.c: Likewise.
6031         * tests/uniwidth/test-u8-width.c: Likewise.
6032         * tests/uniwidth/test-uc_width.c: Likewise.
6033         * config/srclist-update: Likewise.
6034         (fixlicense): Update to GPLv3+.
6035
6036         Change copyright notice from LGPLv2.1+ to LGPLv3+.
6037         * tests/test-tsearch.c: Change copyright notice.
6038
6039         Change copyright notice from LGPLv2.0+ to LGPLv3+.
6040         * lib/c-strcaseeq.h: Change copyright notice.
6041         * lib/streq.h: Likewise.
6042         * lib/uniconv.h: Likewise.
6043         * lib/uniconv/u-conv-from-enc.h: Likewise.
6044         * lib/uniconv/u-conv-to-enc.h: Likewise.
6045         * lib/uniconv/u-strconv-from-enc.h: Likewise.
6046         * lib/uniconv/u-strconv-to-enc.h: Likewise.
6047         * lib/uniconv/u16-conv-from-enc.c: Likewise.
6048         * lib/uniconv/u16-conv-to-enc.c: Likewise.
6049         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
6050         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
6051         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
6052         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
6053         * lib/uniconv/u32-conv-from-enc.c: Likewise.
6054         * lib/uniconv/u32-conv-to-enc.c: Likewise.
6055         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
6056         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
6057         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
6058         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
6059         * lib/uniconv/u8-conv-from-enc.c: Likewise.
6060         * lib/uniconv/u8-conv-to-enc.c: Likewise.
6061         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
6062         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
6063         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
6064         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
6065         * lib/uniname.h: Likewise.
6066         * lib/uniname/uniname.c: Likewise.
6067         * lib/unistdio.h: Likewise.
6068         * lib/unistdio/u-asnprintf.h: Likewise.
6069         * lib/unistdio/u-asprintf.h: Likewise.
6070         * lib/unistdio/u-printf-args.c: Likewise.
6071         * lib/unistdio/u-printf-args.h: Likewise.
6072         * lib/unistdio/u-printf-parse.h: Likewise.
6073         * lib/unistdio/u-snprintf.h: Likewise.
6074         * lib/unistdio/u-sprintf.h: Likewise.
6075         * lib/unistdio/u-vasprintf.h: Likewise.
6076         * lib/unistdio/u-vsnprintf.h: Likewise.
6077         * lib/unistdio/u-vsprintf.h: Likewise.
6078         * lib/unistdio/u16-asnprintf.c: Likewise.
6079         * lib/unistdio/u16-asprintf.c: Likewise.
6080         * lib/unistdio/u16-printf-parse.c: Likewise.
6081         * lib/unistdio/u16-snprintf.c: Likewise.
6082         * lib/unistdio/u16-sprintf.c: Likewise.
6083         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
6084         * lib/unistdio/u16-u16-asprintf.c: Likewise.
6085         * lib/unistdio/u16-u16-snprintf.c: Likewise.
6086         * lib/unistdio/u16-u16-sprintf.c: Likewise.
6087         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
6088         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
6089         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
6090         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
6091         * lib/unistdio/u16-vasnprintf.c: Likewise.
6092         * lib/unistdio/u16-vasprintf.c: Likewise.
6093         * lib/unistdio/u16-vsnprintf.c: Likewise.
6094         * lib/unistdio/u16-vsprintf.c: Likewise.
6095         * lib/unistdio/u32-asnprintf.c: Likewise.
6096         * lib/unistdio/u32-asprintf.c: Likewise.
6097         * lib/unistdio/u32-printf-parse.c: Likewise.
6098         * lib/unistdio/u32-snprintf.c: Likewise.
6099         * lib/unistdio/u32-sprintf.c: Likewise.
6100         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
6101         * lib/unistdio/u32-u32-asprintf.c: Likewise.
6102         * lib/unistdio/u32-u32-snprintf.c: Likewise.
6103         * lib/unistdio/u32-u32-sprintf.c: Likewise.
6104         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
6105         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
6106         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
6107         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
6108         * lib/unistdio/u32-vasnprintf.c: Likewise.
6109         * lib/unistdio/u32-vasprintf.c: Likewise.
6110         * lib/unistdio/u32-vsnprintf.c: Likewise.
6111         * lib/unistdio/u32-vsprintf.c: Likewise.
6112         * lib/unistdio/u8-asnprintf.c: Likewise.
6113         * lib/unistdio/u8-asprintf.c: Likewise.
6114         * lib/unistdio/u8-printf-parse.c: Likewise.
6115         * lib/unistdio/u8-snprintf.c: Likewise.
6116         * lib/unistdio/u8-sprintf.c: Likewise.
6117         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
6118         * lib/unistdio/u8-u8-asprintf.c: Likewise.
6119         * lib/unistdio/u8-u8-snprintf.c: Likewise.
6120         * lib/unistdio/u8-u8-sprintf.c: Likewise.
6121         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
6122         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
6123         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
6124         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
6125         * lib/unistdio/u8-vasnprintf.c: Likewise.
6126         * lib/unistdio/u8-vasprintf.c: Likewise.
6127         * lib/unistdio/u8-vsnprintf.c: Likewise.
6128         * lib/unistdio/u8-vsprintf.c: Likewise.
6129         * lib/unistdio/ulc-asnprintf.c: Likewise.
6130         * lib/unistdio/ulc-asprintf.c: Likewise.
6131         * lib/unistdio/ulc-printf-parse.c: Likewise.
6132         * lib/unistdio/ulc-snprintf.c: Likewise.
6133         * lib/unistdio/ulc-sprintf.c: Likewise.
6134         * lib/unistdio/ulc-vasnprintf.c: Likewise.
6135         * lib/unistdio/ulc-vasprintf.c: Likewise.
6136         * lib/unistdio/ulc-vsnprintf.c: Likewise.
6137         * lib/unistdio/ulc-vsprintf.c: Likewise.
6138         * lib/unistr.h: Likewise.
6139         * lib/unistr/u-cpy-alloc.h: Likewise.
6140         * lib/unistr/u-cpy.h: Likewise.
6141         * lib/unistr/u-endswith.h: Likewise.
6142         * lib/unistr/u-move.h: Likewise.
6143         * lib/unistr/u-set.h: Likewise.
6144         * lib/unistr/u-startswith.h: Likewise.
6145         * lib/unistr/u-stpcpy.h: Likewise.
6146         * lib/unistr/u-stpncpy.h: Likewise.
6147         * lib/unistr/u-strcat.h: Likewise.
6148         * lib/unistr/u-strcpy.h: Likewise.
6149         * lib/unistr/u-strcspn.h: Likewise.
6150         * lib/unistr/u-strdup.h: Likewise.
6151         * lib/unistr/u-strlen.h: Likewise.
6152         * lib/unistr/u-strncat.h: Likewise.
6153         * lib/unistr/u-strncpy.h: Likewise.
6154         * lib/unistr/u-strnlen.h: Likewise.
6155         * lib/unistr/u-strpbrk.h: Likewise.
6156         * lib/unistr/u-strspn.h: Likewise.
6157         * lib/unistr/u-strstr.h: Likewise.
6158         * lib/unistr/u-strtok.h: Likewise.
6159         * lib/unistr/u16-check.c: Likewise.
6160         * lib/unistr/u16-chr.c: Likewise.
6161         * lib/unistr/u16-cmp.c: Likewise.
6162         * lib/unistr/u16-cpy-alloc.c: Likewise.
6163         * lib/unistr/u16-cpy.c: Likewise.
6164         * lib/unistr/u16-endswith.c: Likewise.
6165         * lib/unistr/u16-mblen.c: Likewise.
6166         * lib/unistr/u16-mbsnlen.c: Likewise.
6167         * lib/unistr/u16-mbtouc-aux.c: Likewise.
6168         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
6169         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
6170         * lib/unistr/u16-mbtouc.c: Likewise.
6171         * lib/unistr/u16-mbtoucr.c: Likewise.
6172         * lib/unistr/u16-move.c: Likewise.
6173         * lib/unistr/u16-next.c: Likewise.
6174         * lib/unistr/u16-prev.c: Likewise.
6175         * lib/unistr/u16-set.c: Likewise.
6176         * lib/unistr/u16-startswith.c: Likewise.
6177         * lib/unistr/u16-stpcpy.c: Likewise.
6178         * lib/unistr/u16-stpncpy.c: Likewise.
6179         * lib/unistr/u16-strcat.c: Likewise.
6180         * lib/unistr/u16-strchr.c: Likewise.
6181         * lib/unistr/u16-strcmp.c: Likewise.
6182         * lib/unistr/u16-strcpy.c: Likewise.
6183         * lib/unistr/u16-strcspn.c: Likewise.
6184         * lib/unistr/u16-strdup.c: Likewise.
6185         * lib/unistr/u16-strlen.c: Likewise.
6186         * lib/unistr/u16-strmblen.c: Likewise.
6187         * lib/unistr/u16-strmbtouc.c: Likewise.
6188         * lib/unistr/u16-strncat.c: Likewise.
6189         * lib/unistr/u16-strncmp.c: Likewise.
6190         * lib/unistr/u16-strncpy.c: Likewise.
6191         * lib/unistr/u16-strnlen.c: Likewise.
6192         * lib/unistr/u16-strpbrk.c: Likewise.
6193         * lib/unistr/u16-strrchr.c: Likewise.
6194         * lib/unistr/u16-strspn.c: Likewise.
6195         * lib/unistr/u16-strstr.c: Likewise.
6196         * lib/unistr/u16-strtok.c: Likewise.
6197         * lib/unistr/u16-to-u32.c: Likewise.
6198         * lib/unistr/u16-to-u8.c: Likewise.
6199         * lib/unistr/u16-uctomb-aux.c: Likewise.
6200         * lib/unistr/u16-uctomb.c: Likewise.
6201         * lib/unistr/u32-check.c: Likewise.
6202         * lib/unistr/u32-chr.c: Likewise.
6203         * lib/unistr/u32-cmp.c: Likewise.
6204         * lib/unistr/u32-cpy-alloc.c: Likewise.
6205         * lib/unistr/u32-cpy.c: Likewise.
6206         * lib/unistr/u32-endswith.c: Likewise.
6207         * lib/unistr/u32-mblen.c: Likewise.
6208         * lib/unistr/u32-mbsnlen.c: Likewise.
6209         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
6210         * lib/unistr/u32-mbtouc.c: Likewise.
6211         * lib/unistr/u32-mbtoucr.c: Likewise.
6212         * lib/unistr/u32-move.c: Likewise.
6213         * lib/unistr/u32-next.c: Likewise.
6214         * lib/unistr/u32-prev.c: Likewise.
6215         * lib/unistr/u32-set.c: Likewise.
6216         * lib/unistr/u32-startswith.c: Likewise.
6217         * lib/unistr/u32-stpcpy.c: Likewise.
6218         * lib/unistr/u32-stpncpy.c: Likewise.
6219         * lib/unistr/u32-strcat.c: Likewise.
6220         * lib/unistr/u32-strchr.c: Likewise.
6221         * lib/unistr/u32-strcmp.c: Likewise.
6222         * lib/unistr/u32-strcpy.c: Likewise.
6223         * lib/unistr/u32-strcspn.c: Likewise.
6224         * lib/unistr/u32-strdup.c: Likewise.
6225         * lib/unistr/u32-strlen.c: Likewise.
6226         * lib/unistr/u32-strmblen.c: Likewise.
6227         * lib/unistr/u32-strmbtouc.c: Likewise.
6228         * lib/unistr/u32-strncat.c: Likewise.
6229         * lib/unistr/u32-strncmp.c: Likewise.
6230         * lib/unistr/u32-strncpy.c: Likewise.
6231         * lib/unistr/u32-strnlen.c: Likewise.
6232         * lib/unistr/u32-strpbrk.c: Likewise.
6233         * lib/unistr/u32-strrchr.c: Likewise.
6234         * lib/unistr/u32-strspn.c: Likewise.
6235         * lib/unistr/u32-strstr.c: Likewise.
6236         * lib/unistr/u32-strtok.c: Likewise.
6237         * lib/unistr/u32-to-u16.c: Likewise.
6238         * lib/unistr/u32-to-u8.c: Likewise.
6239         * lib/unistr/u32-uctomb.c: Likewise.
6240         * lib/unistr/u8-check.c: Likewise.
6241         * lib/unistr/u8-chr.c: Likewise.
6242         * lib/unistr/u8-cmp.c: Likewise.
6243         * lib/unistr/u8-cpy-alloc.c: Likewise.
6244         * lib/unistr/u8-cpy.c: Likewise.
6245         * lib/unistr/u8-endswith.c: Likewise.
6246         * lib/unistr/u8-mblen.c: Likewise.
6247         * lib/unistr/u8-mbsnlen.c: Likewise.
6248         * lib/unistr/u8-mbtouc-aux.c: Likewise.
6249         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
6250         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
6251         * lib/unistr/u8-mbtouc.c: Likewise.
6252         * lib/unistr/u8-mbtoucr.c: Likewise.
6253         * lib/unistr/u8-move.c: Likewise.
6254         * lib/unistr/u8-next.c: Likewise.
6255         * lib/unistr/u8-prev.c: Likewise.
6256         * lib/unistr/u8-set.c: Likewise.
6257         * lib/unistr/u8-startswith.c: Likewise.
6258         * lib/unistr/u8-stpcpy.c: Likewise.
6259         * lib/unistr/u8-stpncpy.c: Likewise.
6260         * lib/unistr/u8-strcat.c: Likewise.
6261         * lib/unistr/u8-strchr.c: Likewise.
6262         * lib/unistr/u8-strcmp.c: Likewise.
6263         * lib/unistr/u8-strcpy.c: Likewise.
6264         * lib/unistr/u8-strcspn.c: Likewise.
6265         * lib/unistr/u8-strdup.c: Likewise.
6266         * lib/unistr/u8-strlen.c: Likewise.
6267         * lib/unistr/u8-strmblen.c: Likewise.
6268         * lib/unistr/u8-strmbtouc.c: Likewise.
6269         * lib/unistr/u8-strncat.c: Likewise.
6270         * lib/unistr/u8-strncmp.c: Likewise.
6271         * lib/unistr/u8-strncpy.c: Likewise.
6272         * lib/unistr/u8-strnlen.c: Likewise.
6273         * lib/unistr/u8-strpbrk.c: Likewise.
6274         * lib/unistr/u8-strrchr.c: Likewise.
6275         * lib/unistr/u8-strspn.c: Likewise.
6276         * lib/unistr/u8-strstr.c: Likewise.
6277         * lib/unistr/u8-strtok.c: Likewise.
6278         * lib/unistr/u8-to-u16.c: Likewise.
6279         * lib/unistr/u8-to-u32.c: Likewise.
6280         * lib/unistr/u8-uctomb-aux.c: Likewise.
6281         * lib/unistr/u8-uctomb.c: Likewise.
6282         * lib/unitypes.h: Likewise.
6283         * lib/uniwidth.h: Likewise.
6284         * lib/uniwidth/cjk.h: Likewise.
6285         * lib/uniwidth/u16-strwidth.c: Likewise.
6286         * lib/uniwidth/u16-width.c: Likewise.
6287         * lib/uniwidth/u32-strwidth.c: Likewise.
6288         * lib/uniwidth/u32-width.c: Likewise.
6289         * lib/uniwidth/u8-strwidth.c: Likewise.
6290         * lib/uniwidth/u8-width.c: Likewise.
6291         * lib/uniwidth/width.c: Likewise.
6292
6293 2007-10-07  Bruno Haible  <bruno@clisp.org>
6294
6295         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
6296         The file is still under LGPL (see modules/inttypes).
6297
6298 2007-10-06  Bruno Haible  <bruno@clisp.org>
6299
6300         * modules/trunc (Dependencies): Add 'extensions'.
6301         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
6302         Reported by Ben Pfaff <blp@gnu.org>.
6303
6304 2007-10-06  Bruno Haible  <bruno@clisp.org>
6305
6306         * modules/freopen-tests: New file.
6307         * tests/test-freopen.c: New file.
6308
6309         * modules/fopen-tests: New file.
6310         * tests/test-fopen.c: New file.
6311
6312         * modules/fopen: New file.
6313         * lib/fopen.c: New file.
6314         * m4/fopen.m4: New file.
6315         * modules/freopen: New file.
6316         * lib/freopen.c: New file.
6317         * m4/freopen.m4: New file.
6318         * lib/stdio.in.h (fopen, freopen): New declarations.
6319         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
6320         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
6321         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
6322         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
6323         * doc/functions/fopen.texi: Mention the 'fopen' module.
6324         * doc/functions/freopen.texi: Mention the 'freopen' module.
6325
6326 2007-10-06  Bruno Haible  <bruno@clisp.org>
6327
6328         * modules/open-tests: New file.
6329         * tests/test-open.c: New file.
6330
6331         * modules/open: New file.
6332         * lib/open.c: New file.
6333         * m4/open.m4: New file.
6334         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
6335         lib/open.c does.
6336         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
6337         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
6338         macros.
6339         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
6340         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
6341         REPLACE_OPEN.
6342         * doc/functions/open.texi: Mention the 'open' module.
6343
6344 2007-10-04  Bruno Haible  <bruno@clisp.org>
6345
6346         * modules/ceill-tests: New file.
6347         * tests/test-ceill.c: New file.
6348
6349         * modules/ceill: New file.
6350         * lib/ceill.c: Replace entire file.
6351         * m4/ceill.m4: New file.
6352         * lib/math.in.h (ceill): Replace declaration.
6353         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
6354         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
6355         * doc/functions/ceill.texi: Mention the 'ceill' module.
6356         * modules/mathl (Files): Remove lib/ceill.c.
6357         (Depends-on): Add ceill.
6358
6359 2007-10-04  Bruno Haible  <bruno@clisp.org>
6360
6361         * modules/ceilf-tests: New file.
6362         * tests/test-ceilf.c: New file.
6363
6364         * modules/ceilf: New file.
6365         * lib/ceil.c: New file.
6366         * lib/ceilf.c: New file.
6367         * m4/ceilf.m4: New file.
6368         * lib/math.in.h (ceilf): New declaration.
6369         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
6370         HAVE_DECL_CEILF.
6371         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
6372         HAVE_DECL_CEILF.
6373         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
6374
6375 2007-10-04  Bruno Haible  <bruno@clisp.org>
6376
6377         * modules/floorl-tests: New file.
6378         * tests/test-floorl.c: New file.
6379
6380         * modules/floorl: New file.
6381         * lib/floorl.c: Replace entire file.
6382         * m4/floorl.m4: New file.
6383         * lib/math.in.h (floorl): Replace declaration.
6384         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
6385         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
6386         * doc/functions/floorl.texi: Mention the 'floorl' module.
6387         * modules/mathl (Files): Remove lib/floorl.c.
6388         (Depends-on): Add floorl.
6389
6390 2007-10-04  Bruno Haible  <bruno@clisp.org>
6391
6392         * modules/floorf-tests: New file.
6393         * tests/test-floorf.c: New file.
6394
6395         * modules/floorf: New file.
6396         * lib/floor.c: New file.
6397         * lib/floorf.c: New file.
6398         * m4/floorf.m4: New file.
6399         * lib/math.in.h (floorf): New declaration.
6400         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
6401         HAVE_DECL_FLOORF.
6402         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
6403         HAVE_DECL_FLOORF.
6404         * doc/functions/floorf.texi: Mention the 'floorf' module.
6405
6406 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
6407             Bruno Haible  <bruno@clisp.org>
6408
6409         Advertise for the Git server instead of the CVS server.
6410         * doc/gnulib-intro.texi (Steady Development): Mention the Git
6411         repository instead of the CVS one.
6412         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
6413         about all VCS systems generically.
6414         * doc/gnulib.texi (Introduction): Capitalize `Git'.
6415
6416 2007-10-04  Bruno Haible  <bruno@clisp.org>
6417
6418         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
6419         means.
6420         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
6421
6422 2007-10-04  Bruno Haible  <bruno@clisp.org>
6423
6424         * modules/truncl-tests: New file.
6425         * tests/test-truncl.c: New file.
6426
6427         * modules/truncl: New file.
6428         * lib/truncl.c: New file.
6429         * m4/truncl.m4: New file.
6430         * lib/math.in.h (truncl): New declaration.
6431         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
6432         HAVE_DECL_TRUNCL.
6433         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
6434         HAVE_DECL_TRUNCL.
6435         * doc/functions/truncl.texi: Mention the 'truncl' module.
6436
6437 2007-10-04  Bruno Haible  <bruno@clisp.org>
6438
6439         * modules/truncf-tests: New file.
6440         * tests/test-truncf.c: New file.
6441
6442         * modules/truncf: New file.
6443         * lib/trunc.c: Make paramerizable through USE_* macros.
6444         * lib/truncf.c: New file.
6445         * m4/truncf.m4: New file.
6446         * lib/math.in.h (truncf): New declaration.
6447         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
6448         HAVE_DECL_TRUNCF.
6449         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
6450         HAVE_DECL_TRUNCF.
6451         * doc/functions/truncf.texi: Mention the 'truncf' module.
6452
6453 2007-10-03  Bruno Haible  <bruno@clisp.org>
6454
6455         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
6456         augmentation also for tests modules.
6457         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
6458         * modules/atexit-tests (Makefile.am): Likewise.
6459         * modules/binary-io-tests (Makefile.am): Likewise.
6460         * modules/c-strcase-tests (Makefile.am): Likewise.
6461         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
6462         * modules/canonicalize-tests (Makefile.am): Likewise.
6463         * modules/closein-tests (Makefile.am): Likewise.
6464         * modules/fprintf-posix-tests (Makefile.am): Likewise.
6465         * modules/freadahead-tests (Makefile.am): Likewise.
6466         * modules/fseek-tests (Makefile.am): Likewise.
6467         * modules/fseeko-tests (Makefile.am): Likewise.
6468         * modules/ftell-tests (Makefile.am): Likewise.
6469         * modules/ftello-tests (Makefile.am): Likewise.
6470         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
6471         * modules/isnanl-tests (Makefile.am): Likewise.
6472         * modules/lseek-tests (Makefile.am): Likewise.
6473         * modules/mbscasecmp-tests (Makefile.am): Likewise.
6474         * modules/mbscasestr-tests (Makefile.am): Likewise.
6475         * modules/mbschr-tests (Makefile.am): Likewise.
6476         * modules/mbscspn-tests (Makefile.am): Likewise.
6477         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
6478         * modules/mbspbrk-tests (Makefile.am): Likewise.
6479         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
6480         * modules/mbsrchr-tests (Makefile.am): Likewise.
6481         * modules/mbsspn-tests (Makefile.am): Likewise.
6482         * modules/mbsstr-tests (Makefile.am): Likewise.
6483         * modules/printf-posix-tests (Makefile.am): Likewise.
6484         * modules/snprintf-posix-tests (Makefile.am): Likewise.
6485         * modules/sprintf-posix-tests (Makefile.am): Likewise.
6486         * modules/tsearch-tests (Makefile.am): Likewise.
6487         * modules/uniname/uniname-tests (Makefile.am): Likewise.
6488         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
6489         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
6490         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
6491         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
6492         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
6493         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
6494         * modules/vprintf-posix-tests (Makefile.am): Likewise.
6495         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
6496         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
6497         * modules/xstrtoimax-tests (Makefile.am): Likewise.
6498         * modules/xstrtol-tests (Makefile.am): Likewise.
6499         * modules/xstrtoumax-tests (Makefile.am): Likewise.
6500         * modules/yesno-tests (Makefile.am): Likewise.
6501
6502 2007-10-03  Bruno Haible  <bruno@clisp.org>
6503
6504         * modules/trunc-tests: New file.
6505         * tests/test-trunc.c: New file.
6506
6507         * modules/trunc: New file.
6508         * lib/trunc.c: New file.
6509         * m4/trunc.m4: New file.
6510         * lib/math.in.h (trunc): New declaration.
6511         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
6512         HAVE_DECL_TRUNC.
6513         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
6514         HAVE_DECL_TRUNC.
6515         * doc/functions/trunc.texi: Mention the 'trunc' module.
6516
6517 2007-10-03  Bruno Haible  <bruno@clisp.org>
6518
6519         * tests/test-fpending.c: New file, mostly copied
6520         from coreutils/lib/t-fpending.c.
6521         * modules/fpending-tests: New file.
6522
6523 2007-10-03  Bruno Haible  <bruno@clisp.org>
6524
6525         Port the stdio extensions to QNX (untested).
6526         * lib/fseterr.c (fseterr): Add support for QNX.
6527         * lib/fbufmode.c (fbufmode): Likewise.
6528         * lib/freadable.c (freadable): Likewise.
6529         * lib/fwritable.c (fwritable): Likewise.
6530         * lib/freading.c (freading): Likewise.
6531         * lib/fwriting.c (fwriting): Likewise.
6532         * lib/freadahead.c (freadahed): Likewise.
6533         * lib/fpurge.c (fpurge): Likewise.
6534         * lib/fseeko.c (rpl_fseeko): Likewise.
6535
6536 2007-10-03  Bruno Haible  <bruno@clisp.org>
6537             Jim Meyering  <jim@meyering.net>
6538             Eric Blake  <ebb9@byu.net>
6539
6540         * doc/relocatable.texi: Use @command instead of @program.
6541
6542 2007-10-02  Jim Meyering  <jim@meyering.net>
6543
6544         Perform one more "_.h" -> ".in.h" substitution.
6545         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
6546         instead of unistd_.h here, too.
6547
6548 2007-10-01  Bruno Haible  <bruno@clisp.org>
6549
6550         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
6551         Needed for the alloca-opt module.
6552
6553 2007-09-30  Bruno Haible  <bruno@clisp.org>
6554
6555         * lib/alloca.in.h: Renamed from lib/alloca_.h.
6556         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
6557         alloca_.h.
6558         * lib/argz.in.h: Renamed from lib/argz_.h.
6559         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
6560         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
6561         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
6562         byteswap_.h.
6563         * lib/dirent.in.h: Renamed from lib/dirent_.h.
6564         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
6565         dirent_.h.
6566         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
6567         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
6568         fcntl_.h.
6569         * lib/float.in.h: Renamed from lib/float_.h.
6570         * modules/float (Files, Makefile.am): Use float.in.h instead of
6571         float_.h.
6572         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
6573         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
6574         fnmatch_.h.
6575         * lib/getopt.in.h: Renamed from lib/getopt_.h.
6576         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
6577         getopt_.h.
6578         * lib/glob.in.h: Renamed from lib/glob_.h.
6579         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
6580         * lib/iconv.in.h: Renamed from lib/iconv_.h.
6581         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
6582         iconv_.h.
6583         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
6584         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
6585         inttypes_.h.
6586         * lib/locale.in.h: Renamed from lib/locale_.h.
6587         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
6588         locale_.h.
6589         * lib/math.in.h: Renamed from lib/math_.h.
6590         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
6591         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
6592         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
6593         of netinet_in_.h. Add dependency.
6594         * lib/poll.in.h: Renamed from lib/poll_.h.
6595         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
6596         * lib/search.in.h: Renamed from lib/search_.h.
6597         * modules/search (Files, Makefile.am): Use search.in.h instead of
6598         search_.h.
6599         * lib/signal.in.h: Renamed from lib/signal_.h.
6600         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
6601         _signal.h.
6602         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
6603         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
6604         stdbool_.h.
6605         * lib/stdint.in.h: Renamed from lib/stdint_.h.
6606         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
6607         stdint_.h.
6608         * lib/stdio.in.h: Renamed from lib/stdio_.h.
6609         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
6610         stdio_.h.
6611         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
6612         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
6613         stdlib_.h.
6614         * lib/string.in.h: Renamed from lib/string_.h.
6615         * modules/string (Files, Makefile.am): Use string.in.h instead of
6616         string_.h.
6617         * doc/gnulib-tool.texi (Initial import): Update.
6618         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
6619         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
6620         of sys_select_.h. Add dependency.
6621         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
6622         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
6623         of sys_socket_.h.
6624         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
6625         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
6626         sys_stat_.h.
6627         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
6628         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
6629         sys_time_.h.
6630         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
6631         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
6632         sysexits_.h.
6633         * lib/time.in.h: Renamed from lib/time_.h.
6634         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
6635         * lib/unistd.in.h: Renamed from lib/unistd_.h.
6636         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
6637         unistd_.h.
6638         * lib/wchar.in.h: Renamed from lib/wchar_.h.
6639         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
6640         wchar_.h.
6641         * lib/wctype.in.h: Renamed from lib/wctype_.h.
6642         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
6643         wctype_.h.
6644         * build-aux/bootstrap (slurp): Update.
6645         * lib/.cppi-disable: Update.
6646
6647 2007-09-30  Bruno Haible  <bruno@clisp.org>
6648
6649         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
6650         Needed on BeOS.
6651
6652 2007-09-30  Bruno Haible  <bruno@clisp.org>
6653
6654         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
6655
6656 2007-09-29  Bruno Haible  <bruno@clisp.org>
6657
6658         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
6659
6660 2007-09-29  Bruno Haible  <bruno@clisp.org>
6661
6662         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
6663         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
6664         * build-aux/install-reloc: Compile also areadlink.c.
6665         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
6666
6667 2007-09-29  Bruno Haible  <bruno@clisp.org>
6668
6669         * gnulib-tool (func_emit_initmacro_done): Indentation.
6670
6671 2007-09-29  Bruno Haible  <bruno@clisp.org>
6672
6673         * README: Add CVS checkout update instructions.
6674         Info from Bob Proulx <bob@proulx.com>.
6675
6676 2007-09-28  Eric Blake  <ebb9@byu.net>
6677
6678         Provide move-if-change.
6679         * build-aux/move-if-change: New file, based on best practice
6680         rather than any canonical upstream location.
6681
6682 2007-09-28  Jim Meyering  <jim@meyering.net>
6683
6684         Fix canonicalize loop-detection corner case.
6685         Do not attempt to stat the symlink values stored via seen_triple.
6686         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
6687         on linux-2.6.18, (but not 2.6.22).
6688         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
6689         triple_compare.  The former compares dev,ino,filename, while the latter
6690         would actually stat dirname(filename) when dev and ino were equal.
6691         * lib/hash-triple.c: Install <string.h>.
6692         (STREQ): Define.
6693         (triple_compare_ino_str): New function.
6694         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
6695
6696 2007-09-28  Eric Blake  <ebb9@byu.net>
6697
6698         Enforce that AC_REPLACE_FUNCS files exist.
6699         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
6700         override check for typos.
6701
6702         Fix test-closein on Solaris 10.
6703         * tests/test-closein.c (main): Don't assume stdin can be inherited
6704         closed on all systems.
6705         * tests/test-closein.sh: Likewise.
6706         Reported by Piotr Tarnowski.
6707
6708 2007-09-28  Jim Meyering  <jim@meyering.net>
6709
6710         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
6711
6712 2007-09-27  Jim Meyering  <jim@meyering.net>
6713
6714         canonicalize: Avoid a false-positive cycle failure.
6715         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
6716         Sort.  Remove cycle-check.
6717         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
6718         not cycle-check.h.
6719         (seen_triple): New function.
6720         (canonicalize_filename_mode): Use it instead of cycle-check.
6721         * tests/test-canonicalize.c: Add a test for this bug.
6722         * tests/test-canonicalize.sh: Set up and run the test.
6723
6724         New module, file-set, from coreutils.
6725         * modules/file-set: Define it.
6726         * lib/file-set.c, lib/file-set.h: Implement.
6727
6728         New module, hash-triple, from coreutils.
6729         * modules/hash-triple: Define it.
6730         * lib/hash-triple.c, lib/hash-triple.h: Implement.
6731
6732 2007-09-25  Eric Blake  <ebb9@byu.net>
6733
6734         Fix strerror on Interix.
6735         * lib/string_.h (strerror): Declare replacement.
6736         * doc/functions/strerror.texi (strerror): Document the Interix
6737         shortcoming.
6738         * modules/string (Makefile.am): Support new hooks.
6739         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
6740         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
6741         gl_FUNC_STRERROR_SEPARATE.
6742         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
6743         * lib/strerror.c (rpl_strerror): Provide replacement.
6744         * modules/strerror (Depends-on): Add string.
6745         (configure.ac): Detect use of module.
6746         * tests/test-strerror.c: New file.
6747         * modules/strerror-tests: New test module.
6748         * modules/argp (Depends-on): Add strerror.
6749         * modules/error (Depends-on): Likewise.
6750         Reported by Martin Koeppe.
6751
6752 2007-09-24  Bruno Haible  <bruno@clisp.org>
6753
6754         * README: Update git instructions.
6755
6756 2007-09-24  Eric Blake  <ebb9@byu.net>
6757
6758         Revert fpending breakage from 2007-09-08.
6759         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
6760         __fpending.c.
6761
6762 2007-09-24  Jim Meyering  <jim@meyering.net>
6763
6764         filenamecat.c: Add a test.
6765         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
6766         showing how the function works when DIR is the empty string.
6767
6768 2007-09-21  Simon Josefsson  <simon@josefsson.org>
6769
6770         * tests/test-canonicalize.sh: Turn on executable bit.
6771
6772 2007-09-19  Eric Blake  <ebb9@byu.net>
6773
6774         * README: Update CVS instructions.
6775
6776 2007-09-18  Bruno Haible  <bruno@clisp.org>
6777
6778         * modules/areadlink: New file.
6779         * lib/areadlink.h (areadlink): New declaration.
6780         * lib/areadlink.c: New file, based on lib/xreadlink.c.
6781
6782 2007-09-17  Jim Meyering  <jim@meyering.net>
6783
6784         * lib/savewd.c (ESTALE) [!defined]: Define.
6785         Reported to be required on Interix by Martin Koeppe.
6786
6787 2007-09-17  Bruno Haible  <bruno@clisp.org>
6788
6789         * gnulib-tool (func_version): Use $version.
6790
6791 2007-09-16  Bruno Haible  <bruno@clisp.org>
6792
6793         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
6794         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
6795         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
6796         Reported by Greg Schafer <gschafer@zip.com.au>.
6797
6798 2007-09-15  Bruno Haible  <bruno@clisp.org>
6799
6800         * gnulib-tool (sed): Try a little harder to make bash understand the
6801         alias.
6802         Reported by Bruce Korb <bruce.korb@gmail.com>.
6803
6804 2007-09-13  Eric Blake  <ebb9@byu.net>
6805
6806         * ChangeLog: Remove conflict markers.
6807
6808 2007-09-13  Simon Josefsson  <simon@josefsson.org>
6809
6810         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
6811         Reported by Bruno Haible <bruno@clisp.org>.
6812
6813 2007-09-12  Bruno Haible  <bruno@clisp.org>
6814
6815         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
6816         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
6817         is not defined.
6818
6819 2007-09-12  Eric Blake  <ebb9@byu.net>
6820
6821         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
6822         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
6823         Autoconf definition.
6824         * modules/euidaccess (Depends-on): Add extensions, for
6825         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
6826         * modules/fnmatch (Depends-on): Likewise.
6827         * modules/getaddrinfo (Depends-on): Likewise.
6828         * modules/getdelim (Depends-on): Likewise.
6829         * modules/getline (Depends-on): Likewise.
6830         * modules/getsubopt (Depends-on): Likewise.
6831         * modules/gettext (Depends-on): Likewise.
6832         * modules/group-member (Depends-on): Likewise.
6833         * modules/mbchar (Depends-on): Likewise.
6834         * modules/memmem (Depends-on): Likewise.
6835         * modules/mempcpy (Depends-on): Likewise.
6836         * modules/memrchr (Depends-on): Likewise.
6837         * modules/pagealign_alloc (Depends-on): Likewise.
6838         * modules/readutmp (Depends-on): Likewise.
6839         * modules/stpcpy (Depends-on): Likewise.
6840         * modules/stpncpy (Depends-on): Likewise.
6841         * modules/strchrnul (Depends-on): Likewise.
6842         * modules/strndup (Depends-on): Likewise.
6843         * modules/strsep (Depends-on): Likewise.
6844         * modules/strverscmp (Depends-on): Likewise.
6845         * modules/vasprintf (Depends-on): Likewise.
6846         * modules/wcwidth (Depends-on): Likewise.
6847         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
6848         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
6849         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
6850         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
6851         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
6852         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
6853         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
6854         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
6855         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
6856         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
6857         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
6858         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
6859         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
6860         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
6861         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
6862         * m4/readutmp.m4 (gl_READUTMP): Likewise.
6863         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
6864         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
6865         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
6866         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
6867         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
6868         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
6869         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
6870         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
6871         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
6872         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
6873         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
6874         so that lock.m4 can be used in gettext without extensions module.
6875
6876 2007-09-11  Bruno Haible  <bruno@clisp.org>
6877
6878         * m4/isc-posix.m4: Remove file.
6879         Suggested by Eric Blake.
6880
6881 2007-09-11  Eric Blake  <ebb9@byu.net>
6882
6883         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
6884
6885 2007-09-10  Bruno Haible  <bruno@clisp.org>
6886
6887         * posix-modules: Fix typo in error message.
6888         Reported by Matt <mkraai@beckman.com>.
6889
6890 2007-09-09  Bruno Haible  <bruno@clisp.org>
6891
6892         * doc/functions/getdelim.texi: Update list of platforms lacking the
6893         function.
6894         * doc/functions/getline.texi: Likewise.
6895
6896 2007-09-09  Jim Meyering  <jim@meyering.net>
6897
6898         * lib/hash.c (hash_initialize): Detect calloc failure.
6899         Reported by Bruno Haible.
6900
6901 2007-09-09  Bruno Haible  <bruno@clisp.org>
6902
6903         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
6904         malloc or realloc fails.
6905
6906 2007-09-09  Bruno Haible  <bruno@clisp.org>
6907
6908         * modules/getcwd (Depends-on): Add malloc-posix.
6909         * modules/glob (Depends-on): Likewise.
6910         * modules/putenv (Depends-on): Likewise.
6911         * modules/strdup (Depends-on): Likewise.
6912         * modules/getdelim (Depends-on): Add realloc-posix.
6913         * modules/read-file (Depends-on): Likewise.
6914
6915 2007-09-09  Bruno Haible  <bruno@clisp.org>
6916
6917         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
6918         (gl_FUNC_MALLOC_POSIX): Require it.
6919         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
6920         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
6921         * modules/realloc (Files): Add m4/malloc.m4.
6922         * modules/calloc (Files): Likewise.
6923
6924 2007-09-09  Bruno Haible  <bruno@clisp.org>
6925
6926         * modules/malloc-posix: New file.
6927         * modules/malloc (Depends-on): Add malloc-posix.
6928         * lib/malloc.c: Include errno.h.
6929         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
6930         and a POSIX-compatible malloc into a single function. Set ENOMEM
6931         when returning NULL.
6932         * m4/malloc.m4: New file.
6933         * doc/functions/malloc.texi: Mention the malloc-posix module.
6934         * lib/stdlib_.h (malloc): New declaration.
6935         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
6936         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
6937         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
6938         and HAVE_MALLOC_POSIX.
6939
6940 2007-09-09  Bruno Haible  <bruno@clisp.org>
6941
6942         * modules/realloc-posix: New file.
6943         * modules/realloc (Depends-on): Add realloc-posix.
6944         * lib/realloc.c: Include errno.h.
6945         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
6946         and a POSIX-compatible realloc into a single function. Set ENOMEM
6947         when returning NULL.
6948         * m4/realloc.m4: New file.
6949         * doc/functions/realloc.texi: Mention the realloc-posix module.
6950         * lib/stdlib_.h (realloc): New declaration.
6951         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
6952         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
6953         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
6954         and HAVE_REALLOC_POSIX.
6955
6956 2007-09-09  Bruno Haible  <bruno@clisp.org>
6957
6958         * modules/calloc-posix: New file.
6959         * modules/calloc (Depends-on): Add calloc-posix.
6960         * lib/calloc.c: Include errno.h.
6961         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
6962         and a POSIX-compatible calloc into a single function. Set ENOMEM
6963         when returning NULL.
6964         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
6965         * doc/functions/calloc.texi: Mention the calloc-posix module.
6966         * lib/stdlib_.h (calloc): New declaration.
6967         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
6968         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
6969         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
6970         and HAVE_CALLOC_POSIX.
6971
6972 2007-09-09  Bruno Haible  <bruno@clisp.org>
6973
6974         Allow for modules to show an arbitrary notice.
6975         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
6976         * gnulib-tool: New option --extract-notice.
6977         (func_usage): Document it.
6978         (sed_extract_prog): Update.
6979         (func_get_notice): New function.
6980         (func_modules_notice): New function.
6981         (func_import, func_create_testdir): Invoke it.
6982         Suggested by Jim Meyering.
6983
6984 2007-09-09  Bruno Haible  <bruno@clisp.org>
6985
6986         * gnulib-tool: New options --verbose, --quiet.
6987         (func_usage): Document them.
6988         (verbose): New variable.
6989         (func_execute_command): New function.
6990         (func_import): Don't show the module list and the file list if
6991         $verbose < 0.
6992         (func_create_testdir): Likewise. Use func_execute_command.
6993         (func_create_megatestdir): Use func_execute_command.
6994
6995 2007-09-08  Bruno Haible  <bruno@clisp.org>
6996
6997         * gnulib-tool (func_import): Prefer rsync over wget when available,
6998         for fetching the PO files.
6999
7000 2007-09-08  Bruno Haible  <bruno@clisp.org>
7001
7002         * posix-modules: New file. Portions copied from gnulib-tool.
7003         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
7004
7005 2007-09-08  Jim Meyering  <jim@meyering.net>
7006
7007         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
7008         * lib/fpending.h: Rename from __fpending.h.
7009         * lib/fpending.c: Rename from __fpending.c.
7010         Include "fpending.h", not "__fpending.h".
7011         * lib/__fpending.h, lib/__fpending.c: Remove files.
7012         * modules/fpending (Files): Reflect new file names.
7013         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
7014
7015 2007-09-08  Bruno Haible  <bruno@clisp.org>
7016
7017         * m4/inttypes-h.m4: Remove stub file.
7018
7019 2007-09-07  Simon Josefsson  <simon@josefsson.org>
7020
7021         * doc/headers/stdint.texi: Discuss #include_next issue.
7022
7023 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
7024
7025         * build-aux/bootstrap: Remove obsolete comment about wget --help.
7026
7027 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
7028
7029         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
7030         in variable name.
7031
7032 2007-09-03  Jim Meyering  <jim@meyering.net>
7033
7034         New module: git-version-gen.
7035         * modules/git-version-gen: New file.
7036
7037         Import changes from coreutils for bootstrap script.
7038
7039         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
7040
7041         bootstrap: uses rsync to download the .po files
7042         * build-aux/bootstrap (po_download_command_format): New global.
7043         (download_po_files): Use rsync.
7044         (update_po_files): Don't remove .po files after download,
7045         so future rsync runs can take advantage of the copies.
7046
7047         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
7048
7049         Solve the unnecessary-.po-file-regeneration problem once and for all.
7050         * build-aux/bootstrap (download_po_files): New function, renamed from
7051         get_translations.  Now, downloads, but doesn't update LINGUAS.
7052         (update_po_files): New function.
7053
7054         bootstrap: Ignore more.
7055         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
7056         uniwidth to e.g., lib/.gitignore.
7057         (slurp): Handle the sys_stat_.h -> sys mapping, too.
7058
7059         * build-aux/bootstrap: New setting: vc_ignore.
7060         (insert_sorted_if_absent): Create $file if absent.
7061         Adapt to new, possibly empty, list: $vc_ignore.
7062
7063         bootstrap: generate more ignorable names
7064         * build-aux/bootstrap (slurp): When generating ignorable names,
7065         also map .sin to .sed, .gperf to .c, and .y to .c.
7066
7067 2007-09-03  Jim Meyering  <jim@meyering.net>
7068
7069         * build-aux/git-version-gen: New file, from coreutils.  For details, see
7070         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
7071
7072 2007-09-02  Bruno Haible  <bruno@clisp.org>
7073
7074         Fix mis-recognition of 'mcs' on QNX 6.
7075         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
7076         output contains the string "Mono".
7077         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
7078         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
7079
7080 2007-09-01  Bruno Haible  <bruno@clisp.org>
7081
7082         Fix collision between uniwidth/* and linebreak modules.
7083         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
7084         u32_width): Remove declarations.
7085         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
7086         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
7087         streq3, streq2, streq1, streq0): Remove functions.
7088         (STREQ): Remove macro.
7089         (is_cjk_encoding): Remove function.
7090         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
7091         (uc_width, u8_width, u16_width, u32_width): Remove functions.
7092         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
7093         * NEWS: Document the change.
7094
7095 2007-09-01  Bruno Haible  <bruno@clisp.org>
7096
7097         * lib/streq.h: Add double-inclusion guard.
7098
7099 2007-09-01  Karl Berry  <karl@gnu.org>
7100
7101         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
7102
7103 2007-08-28  Jim Meyering  <jim@meyering.net>
7104
7105         Rename mreadlink_with_size to areadlink_with_size.
7106         * NEWS: Document the change.
7107         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
7108         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
7109         * lib/mreadlink.h: Rename this to...
7110         * lib/areadlink.h: ...this.
7111         * modules/mreadlink-with-size: Rename this to...
7112         * modules/areadlink-with-size: ...this.
7113         * lib/canonicalize.c: Reflect the renaming.
7114         * modules/canonicalize: Likewise.
7115
7116 2007-08-26  Bruno Haible  <bruno@clisp.org>
7117
7118         * gnulib-tool (func_import): When deciding which files to remove,
7119         consider also dangling symbolic links.
7120         Reported by Eric Blake.
7121
7122 2007-08-26  Bruno Haible  <bruno@clisp.org>
7123
7124         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
7125
7126 2007-08-23  Simon Josefsson  <simon@josefsson.org>
7127
7128         * lib/readline.c: Don't include getline.h, the prototype is now
7129         found in stdio.h.
7130
7131 2007-08-23  Jim Meyering  <jim@meyering.net>
7132
7133         Getdelim touchup.
7134         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
7135         around the funlockfile call, since funlockfile never sets errno.
7136         Don't set errno upon failed realloc.
7137
7138 2007-08-22  Eric Blake  <ebb9@byu.net>
7139
7140         Getline touchups.
7141         * lib/getdelim.c (getdelim): Revert regression that required *n to
7142         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
7143         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
7144         getdelim, rather than whether implementation is missing.
7145         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
7146         * lib/stdio_.h (getline): Also declare if replacement is
7147         required.
7148         * doc/functions/getdelim.texi: New file.
7149         * doc/functions/getline.texi: Likewise.
7150         * doc/gnulib.texi (Function Substitutes): Add new files.
7151         Reported by Bruno Haible.
7152
7153 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
7154
7155         * users.txt: Add Guile.
7156
7157 2007-08-22  Eric Blake  <ebb9@byu.net>
7158
7159         * tests/test-getdelim.c (main): Use remove, not unlink.
7160         * tests/test-getline.c (main): Likewise.
7161
7162         Move getline and getdelim into stdio.h, per POSIX 200x.
7163         * modules/getline (Files): Remove getline.h.
7164         (Depends-on): Add stdio.
7165         (configure.ac): Add module indicator.
7166         * modules/getdelim (Files): Remove getdelim.h.
7167         (Depends-on): Add stdio.
7168         (configure.ac): Add module indicator.
7169         * modules/stdio (Makefile.am): Work with new indicators.
7170         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
7171         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
7172         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
7173         * lib/getdelim.h: Delete.
7174         * lib/getline.h: Delete.
7175         * lib/stdio_.h (getdelim, getline): Declare.
7176         * modules/getdelim-tests: New module.
7177         * modules/getline-tests: Likewise.
7178         * tests/test-getdelim.c: New file.
7179         * tests/test-getline.c: Likewise.
7180         * NEWS: Document the change.
7181         * lib/getline.c: Update choice of header.
7182         * lib/csharpcomp.c: Likewise.
7183         * lib/getpass.c: Likewise.
7184         * lib/javacomp.c: Likewise.
7185         * lib/javaversion.c: Likewise.
7186         * lib/yesno.c: Likewise.
7187         * lib/getdelim.c: Likewise.
7188         (getdelim): Set errno on failure, and avoid memory leak.
7189
7190 2007-08-19  Bruno Haible  <bruno@clisp.org>
7191
7192         * modules/closein (Depends-on): Add freadahead.
7193         * lib/closein.c: Include freadahead.h.
7194         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
7195         is zero.
7196
7197 2007-08-19  Bruno Haible  <bruno@clisp.org>
7198
7199         * modules/freadahead-tests: New file.
7200         * tests/test-freadahead.sh: New file.
7201         * tests/test-freadahead.c: New file.
7202
7203         * modules/freadahead: New file.
7204         * lib/freadahead.h: New file.
7205         * lib/freadahead.c: New file.
7206         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
7207         fbufmode, fpurge, freadable, fwritable.
7208
7209 2007-08-19  Eric Blake  <ebb9@byu.net>
7210
7211         Test yesno in combination with closein.
7212         * lib/yesno.c (yesno): Document use of stdin.
7213         * modules/yesno-tests (Files): New module.
7214         * tests/test-yesno.c (main): New file.
7215         * tests/test-yesno.sh: Likewise.
7216
7217 2007-08-19  Bruno Haible  <bruno@clisp.org>
7218
7219         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
7220         * lib/fseeko.c (rpl_fseeko): Likewise.
7221         * lib/fseterr.c (fseterr): Likewise.
7222
7223 2007-08-19  Bruno Haible  <bruno@clisp.org>
7224
7225         * tests/test-lseek.c (main): Disable a test for BeOS.
7226         * doc/functions/lseek.texi: Document the BeOS bug.
7227
7228 2007-08-19  Bruno Haible  <bruno@clisp.org>
7229             Eric Blake  <ebb9@byu.net>
7230
7231         * lib/lseek.c: Include <sys/stat.h>.
7232         (rpl_lseek): Add workaround code also for Unix platforms.
7233         Needed for BeOS.
7234         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
7235         * doc/functions/lseek.texi: Document BeOS definiency.
7236
7237 2007-08-18  Bruno Haible  <bruno@clisp.org>
7238
7239         * modules/fstrcmp-tests: New file.
7240         * tests/test-fstrcmp.c: New file.
7241
7242 2007-08-18  Bruno Haible  <bruno@clisp.org>
7243
7244         * modules/fstrcmp: New file, from GNU gettext with modifications.
7245         * lib/fstrcmp.h: New file, from GNU gettext.
7246         * lib/fstrcmp.c: New file, from GNU gettext.
7247         * MODULES.html.sh (String handling): Add fstrcmp.
7248
7249 2007-08-18  Bruno Haible  <bruno@clisp.org>
7250
7251         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
7252         'bool'.
7253         (diag, compareseq): Remove const from the ctxt argument.
7254         (USE_HEURISTIC): Undefine at the end.
7255
7256 2007-08-18  Jim Meyering  <jim@meyering.net>
7257
7258         New file: lib/idcache.h
7259         * NEWS: Mention the addition.
7260         * modules/idcache (Files): Add lib/idcache.h
7261         * lib/idcache.c: Include "idcache.h".
7262         Don't include <sys/types.h>.
7263         Add a FIXME comment.
7264         Move file-scoped "static" declarations to the top.
7265         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
7266
7267 2007-08-17  Bruno Haible  <bruno@clisp.org>
7268         and Paul Eggert  <eggert@cs.ucla.edu>
7269
7270         * MODULES.html.sh: Add diffseq.
7271         * modules/diffseq: New file.
7272         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
7273         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
7274
7275 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
7276
7277         Import changes from coreutils for bootstrap script.
7278
7279         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
7280
7281         * build-aux/bootstrap (slurp): Work even in environments where
7282         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
7283         current code does not slurp files whose names start with ".", and
7284         this looks like it might be a troublesome area.
7285
7286         2007-07-11  Jim Meyering  <jim@meyering.net>
7287
7288         If there's a GPL vN copyright comment, require that N == 3.
7289
7290         2007-07-08  Jim Meyering  <jim@meyering.net>
7291
7292         Run the coreutils-specific code only if tests/Makefile.am.in exists.
7293         * build-aux/bootstrap (mam_template): Move definition out of loop.
7294
7295         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
7296
7297         * build-aux/bootstrap (symlink_to_dir): Rename function from
7298         symlink_to_gnulib.  Add a directory parameter.  Update all
7299         callers.
7300         (cp_mark_as_generated): Also check for -- and link to -- files in
7301         gl/.
7302
7303         2007-07-08  Jim Meyering  <jim@meyering.net>
7304
7305         Adapt to deeper hierarchy in gnulib.
7306         * build-aux/bootstrap (symlink_to_dir): If the destination
7307         directory doesn't exist, create it. This is required at least for
7308         "lib/uniwidth/cjk.h".
7309
7310         2007-05-15  Jim Meyering  <jim@meyering.net>
7311
7312         * build-aux/bootstrap: Now that generated Makefile.am files
7313         are no longer under version control, they must be created at
7314         bootstrap time.
7315
7316 2007-08-14  Ben Pfaff  <blp@gnu.org>
7317
7318         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
7319
7320 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
7321
7322         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
7323         given the changes below.
7324         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
7325         even on hosts that have padding bits beyond the supported 64.
7326
7327 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
7328
7329         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
7330         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
7331         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
7332         depends on it.
7333         (xstrtol_error): Remove.
7334         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
7335         but with a different signature.
7336         (ATTRIBUTE_NORETURN, __attribute__): New macros.
7337         * lib/xstrtol-error.c: Include exitfail.h.
7338         (xstrtol_fatal): New function, with a different signature from the
7339         old xstrtol_error, so that the caller need not worry about passing
7340         in an exit status, or about storage management of the option argument.
7341         (xstrtol_error): Now a static function.  Redo signature to
7342         implement xstrtol_fatal.  Output the correct number of hyphens in
7343         front of the option so that the caller need not worry about
7344         storage management.
7345         (N_): New macro.
7346         (_): Remove; not used now.
7347         * modules/xstrtol: Depend on getopt.
7348         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
7349         of old STRTOL_FATAL_ERROR macro.
7350         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
7351         of test program.
7352         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
7353         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
7354
7355 2007-08-08  Eric Blake  <ebb9@byu.net>
7356
7357         * lib/xstrtol-error.c: Add missing include.
7358
7359         Move xstrtol messages into gnulib domain, when --pobase is used.
7360         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
7361         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
7362         * modules/xstrtol (Files): Distribute new file.
7363         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
7364         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
7365         * tests/test-xstrtol.c: ...into new file.
7366         * tests/test-xstrtoul.c: Also test xstrtoul.
7367         * tests/test-xstrtoimax.c: Also test xstrtoimax.
7368         * tests/test-xstrtoumax.c: Also test xstrtoumax.
7369         * tests/test-xstrtol.sh: Drive the tests.
7370         * tests/test-xstrtoimax.sh: Likewise.
7371         * tests/test-xstrtoumax.sh: Likewise.
7372         * modules/xstrtol-tests: New module.
7373         * modules/xstrtoimax-tests: Likewise.
7374         * modules/xstrtoumax-tests: Likewise.
7375
7376 2007-08-08  Jim Meyering  <jim@meyering.net>
7377
7378         New function: mfile_name_concat.
7379         * lib/filenamecat.c (mfile_name_concat): New function, just like
7380         file_name_concat, but return NULL upon failure rather than exiting
7381         with a diagnostic.
7382         * lib/filenamecat.h: Declare it.
7383
7384 2007-08-07  Bruno Haible  <bruno@clisp.org>
7385
7386         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
7387         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
7388         warning from gcc.
7389         Reported by Eric Blake.
7390
7391 2007-08-07  Simon Josefsson  <simon@josefsson.org>
7392
7393         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
7394         * modules/crypto/arcfour (License): Likewise.
7395         * modules/crypto/des-tests (License): Likewise.
7396         * modules/crypto/gc-arctwo-tests (License): Likewise.
7397         * modules/crypto/gc-des-tests (License): Likewise.
7398         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
7399         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
7400         * modules/crypto/gc-md2-tests (License): Likewise.
7401         * modules/crypto/gc-md4-tests (License): Likewise.
7402         * modules/crypto/gc-md5-tests (License): Likewise.
7403         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
7404         * modules/crypto/gc-rijndael-tests (License): Likewise.
7405         * modules/crypto/gc-sha1-tests (License): Likewise.
7406         * modules/crypto/gc-tests (License): Likewise.
7407         * modules/crypto/hmac-md5 (License): Likewise.
7408         * modules/crypto/hmac-sha1 (License): Likewise.
7409         * modules/crypto/md2-tests (License): Likewise.
7410         * modules/crypto/md4-tests (License): Likewise.
7411         * modules/crypto/md5 (License): Likewise.
7412         * modules/crypto/rijndael (License): Likewise.
7413         * modules/crypto/sha1 (License): Likewise.
7414         * modules/memxor (License): Likewise.
7415
7416 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
7417         and Bruno Haible  <bruno@clisp.org>
7418
7419         * NEWS: Describe interface changes to human, xstrtol.
7420         * lib/human.h: Include <xstrtol.h>.
7421         (human_options): Return enum strtol_error, not int.  Remove
7422         bool arg; take int * instead.
7423         * lib/human.c: Don't include "gettext.h".
7424         (_): Remove; no longer used.
7425         Don't include <xstrtol.h>, since human.h does it.
7426         (human_options): Adjust to abovementioned interface changes.
7427         Do not report error to stderr; that's now the caller's
7428         responsibility.
7429         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
7430         interface change.
7431         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
7432         Str, Argument_type_string.  All uses changed.  Put " argument"
7433         in diagnostics to make them clearer.  Change wording of suffix
7434         message for clarity.
7435         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
7436         Argument_type_string.
7437         (STRTOL_FATAL_WARN): Remove; no longer used.
7438         * modules/human (Depends-on): Remove gettext-h.
7439
7440 2007-08-06  Simon Josefsson  <simon@josefsson.org>
7441
7442         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
7443
7444 2007-07-31  Bruno Haible  <bruno@clisp.org>
7445
7446         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
7447         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
7448         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
7449
7450 2007-07-31  Bruno Haible  <bruno@clisp.org>
7451
7452         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
7453         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
7454
7455 2007-07-30  Bruno Haible  <bruno@clisp.org>
7456
7457         * modules/base64 (License): Use the synonymous term "LGPLv2+".
7458         * modules/c-ctype (License): Likewise.
7459         * modules/c-strcase (License): Likewise.
7460         * modules/check-version (License): Likewise.
7461         * modules/iconv (License): Likewise.
7462         * modules/iconv_open (License): Likewise.
7463         * modules/read-file (License): Likewise.
7464         * modules/striconv (License): Likewise.
7465         * modules/strverscmp (License): Likewise.
7466         * modules/vasprintf (License): Likewise.
7467         * modules/crypto/des (License): Likewise.
7468         * modules/crypto/gc (License): Likewise.
7469         * modules/crypto/gc-arcfour (License): Likewise.
7470         * modules/crypto/gc-arctwo (License): Likewise.
7471         * modules/crypto/gc-des (License): Likewise.
7472         * modules/crypto/gc-hmac-md5 (License): Likewise.
7473         * modules/crypto/gc-hmac-sha1 (License): Likewise.
7474         * modules/crypto/gc-md2 (License): Likewise.
7475         * modules/crypto/gc-md4 (License): Likewise.
7476         * modules/crypto/gc-md5 (License): Likewise.
7477         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
7478         * modules/crypto/gc-random (License): Likewise.
7479         * modules/crypto/gc-rijndael (License): Likewise.
7480         * modules/crypto/gc-sha1 (License): Likewise.
7481         * modules/crypto/md2 (License): Likewise.
7482         * modules/crypto/md4 (License): Likewise.
7483
7484 2007-07-30  Jim Meyering  <jim@meyering.net>
7485
7486         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
7487         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
7488         it has valid stat data.  This bug would cause du not to count the
7489         sizes of inaccessible directories.
7490         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
7491         in <http://bugzilla.redhat.com/250077>.
7492
7493 2007-07-25  Peter O'Gorman  <peter@pogma.com>
7494             Bruno Haible  <bruno@clisp.org>
7495
7496         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
7497         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
7498         #include_next, gives a diagnostic about it, but reports no error in
7499         the exit code.
7500         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
7501
7502 2007-07-24  Ben Pfaff  <blp@gnu.org>
7503
7504         Improve name: "count-one-bits" is better than "popcount".
7505         * MODULES.html.sh: Update name.
7506         * lib/popcount.h: Renamed lib/count-one-bits.h.
7507         (popcount): Renamed count_one_bits.
7508         (popcountl): Renamed count_one_bits_l.
7509         (popcountll): Renamed count_one_bits_ll.
7510         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
7511         * modules/popcount: Renamed module/count-one-bits.
7512         * modules/popcount-tests: Renamed module/count-one-bits-tests.
7513         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
7514
7515 2007-07-23  Ben Pfaff  <blp@gnu.org>
7516
7517         * lib/popcount.h (popcount32): Reduce size of constants, to allow
7518         better code generation, and add U to large constants to avoid
7519         warnings, in non-GCC case.
7520         Suggested by Bruno Haible.
7521
7522 2007-07-23  Ben Pfaff  <blp@gnu.org>
7523
7524         * lib/popcount.h: Use verify_true instead of if...abort.
7525         * modules/popcount: Depend on verify module.
7526         Suggested by Jim Meyering.
7527
7528 2007-07-23  Bruno Haible  <bruno@clisp.org>
7529
7530         * gnulib-tool (func_import): Create a .cvsignore file also when the
7531         directory is not yet in CVS but the toplevel directory is. When
7532         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
7533         Reported by Karl Berry.
7534
7535 2007-07-22  Ben Pfaff  <blp@gnu.org>
7536
7537         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
7538         case.
7539         Suggested by Eric Blake.
7540
7541 2007-07-22  Ben Pfaff  <blp@gnu.org>
7542
7543         New module: popcount.
7544         * MODULES.html.sh: Add popcount.
7545         * modules/popcount: New file.
7546         * modules/popcount-tests: New file.
7547         * tests/test-popcount.c: New file.
7548         * lib/popcount.h: New file.
7549         * m4/popcount.m4: New file.
7550
7551 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
7552
7553         * build-aux/announce-gen: Update to GPLv3.
7554
7555         * build-aux/config.guess: Update from config.
7556
7557 2007-07-21  Bruno Haible  <bruno@clisp.org>
7558
7559         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
7560         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
7561
7562 2007-07-20  Jim Meyering  <jim@meyering.net>
7563
7564         * check-module: Diagnose a self-dependency.
7565
7566 2007-07-19  Bruno Haible  <bruno@clisp.org>
7567
7568         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
7569         empty.
7570         Reported by Eric Blake.
7571
7572 2007-07-18  Bruno Haible  <bruno@clisp.org>
7573
7574         * gnulib-tool: New options --po-base, --po-domain.
7575         (func_usage): Document them.
7576         (pobase, po_domain): New variables.
7577         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
7578         DEFAULT_TEXT_DOMAIN.
7579         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
7580         (func_import): Consider pobase and po_domain. Create a po/ directory.
7581         (func_create_testdir): Set pobase and po_domain to empty.
7582         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
7583         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
7584
7585 2007-07-18  Bruno Haible  <bruno@clisp.org>
7586
7587         * gnulib-tool (func_get_automake_snippet): Synthesize also an
7588         EXTRA_DIST augmentation for files in build-aux/.
7589
7590 2007-07-16  Bruno Haible  <bruno@clisp.org>
7591
7592         * modules/lseek (License): Use the synonymous term "LGPLv2+".
7593         * modules/getdelim (License): Likewise.
7594
7595 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
7596
7597         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
7598         * modules/d-type (License): Likewise.
7599         * modules/extensions (License): Likewise.
7600         * modules/fnmatch (License): Likewise.
7601         * modules/fseeko (License): Likewise.
7602         * modules/getaddrinfo (License): Likewise.
7603         * modules/getline (License): Likewise.
7604         * modules/getlogin_r (License): Likewise.
7605         * modules/getpass (License): Likewise.
7606         * modules/gettimeofday (License): Likewise.
7607         * modules/glob (License): Likewise.
7608         * modules/inet_ntop (License): Likewise.
7609         * modules/malloc (License): Likewise.
7610         * modules/malloca (License): Likewise.
7611         * modules/memmem (License): Likewise.
7612         * modules/mempcpy (License): Likewise.
7613         * modules/memset (License): Likewise.
7614         * modules/minmax (License): Likewise.
7615         * modules/mktime (License): Likewise.
7616         * modules/netinet_in (License): Likewise.
7617         * modules/pathmax (License): Likewise.
7618         * modules/poll (License): Likewise.
7619         * modules/regex (License): Likewise.
7620         * modules/snprintf (License): Likewise.
7621         * modules/stdbool (License): Likewise.
7622         * modules/stdint (License): Likewise.
7623         * modules/stdio (License): Likewise.
7624         * modules/strcase (License): Likewise.
7625         * modules/strcasestr (License): Likewise.
7626         * modules/strdup (License): Likewise.
7627         * modules/string (License): Likewise.
7628         * modules/strndup (License): Likewise.
7629         * modules/strnlen (License): Likewise.
7630         * modules/strpbrk (License): Likewise.
7631         * modules/strptime (License): Likewise.
7632         * modules/strsep (License): Likewise.
7633         * modules/sys_select (License): Likewise.
7634         * modules/sys_socket (License): Likewise.
7635         * modules/sys_stat (License): Likewise.
7636         * modules/sys_time (License): Likewise.
7637         * modules/time (License): Likewise.
7638         * modules/time_r (License): Likewise.
7639         * modules/timegm (License): Likewise.
7640         * modules/unistd (License): Likewise.
7641         * modules/vsnprintf (License): Likewise.
7642         * modules/wctype (License): Likewise.
7643
7644 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7645
7646         * modules/argz (License): LGPLv2+.
7647
7648 2007-07-15  Karl Berry  <karl@gnu.org>
7649
7650         * doc/gnulib.texi: revise node structure per new fdl.texi.
7651
7652 2007-07-14  Bruno Haible  <bruno@clisp.org>
7653
7654         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
7655         the output file.
7656         * lib/uniname/uninames.h: Regenerated.
7657
7658 2007-07-14  Karl Berry  <karl@gnu.org>
7659
7660         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
7661         omitting sectioning and index commands.
7662
7663 2007-07-13  Bruno Haible  <bruno@clisp.org>
7664
7665         New gnulib-tool option --more-symlinks.
7666         * gnulib-tool (func_usage): Document --more-symlinks.
7667         (do_copyrights): New variable.
7668         Recognize option --more-symlinks.
7669         (func_import): Don't add a copyright notice transform to
7670         sed_transform_lib_file if do_copyrights is empty.
7671
7672 2007-07-13  Bruno Haible  <bruno@clisp.org>
7673
7674         * lib/vasnprintf.c (decimal_point_char): Define also if
7675         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
7676         && !NEED_PRINTF_DIRECTIVE_A.
7677         Reported by Clemens Koller <clemens.koller@anagramm.de> via
7678         Gary V. Vaughan <gary@gnu.org>.
7679
7680 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
7681
7682         * lib/inttypes_.h: Undo previous change, since it was fixed
7683         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
7684
7685 2007-07-13  Bruno Haible  <bruno@clisp.org>
7686
7687         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
7688         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
7689
7690 2007-07-13  Jim Meyering  <jim@meyering.net>
7691
7692         df: Don't fail for Tru64's "file-on-file mount".
7693         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
7694         so we fall through and use statfs instead.  Details here:
7695         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
7696         Reported by Albert Chin.
7697
7698 2007-07-13  Bruno Haible  <bruno@clisp.org>
7699
7700         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
7701         * modules/configmake (License): Likewise.
7702         * modules/gettext (License): Likewise.
7703         * modules/gettext-h (License): Likewise.
7704         * modules/include_next (License): Likewise.
7705         * modules/link-warning (License): Likewise.
7706         * modules/localcharset (License): Likewise.
7707         * modules/localename (License): Likewise.
7708         * modules/lock (License): Likewise.
7709         * modules/relocatable-lib-lgpl (License): Likewise.
7710         * modules/size_max (License): Likewise.
7711         * modules/vasnprintf (License): Likewise.
7712         * modules/wchar (License): Likewise.
7713         * modules/xsize (License): Likewise.
7714
7715 2007-07-13  Bruno Haible  <bruno@clisp.org>
7716
7717         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
7718         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
7719
7720 2007-07-12  Bruno Haible  <bruno@clisp.org>
7721
7722         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
7723         in the modules files.
7724
7725 2007-07-11  Karl Berry  <karl@gnu.org>
7726
7727         * MODULES.html.sh (func_module): use
7728          sed -e '\|^'"${includefile}"'$|d'
7729          instead of /.../d, to avoid errors on $includefile's containing /.
7730
7731 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
7732
7733         * gnulib-tool (func_import): Avoid duplication of --avoid
7734         statements
7735         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
7736         names to `_' in variable names.
7737
7738 2007-07-10  Eric Blake  <ebb9@byu.net>
7739
7740         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
7741         * NEWS: Document this change.
7742
7743 2007-07-08  Bruno Haible  <bruno@clisp.org>
7744
7745         Update to Unicode 5.0.
7746         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
7747         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
7748         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
7749         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
7750         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
7751         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
7752         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
7753         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
7754         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
7755         U+10A3F, U+1D242..U+1D244.
7756         (nonspacing_table_ind): Update.
7757         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
7758         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
7759
7760 2007-07-08  Bruno Haible  <bruno@clisp.org>
7761
7762         Update to Unicode 5.0.
7763         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
7764         code transform. Extend the name index field of unicode_name_to_code and
7765         unicode_code_to_name from 16 to 24 bits.
7766         * lib/uniname/uniname.c (unicode_character_name,
7767         unicode_name_character): Add the range 0x12xxx to the code transform.
7768         * lib/uniname/uninames.h: Regenerated.
7769         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
7770
7771 2007-07-07  Bruno Haible  <bruno@clisp.org>
7772
7773         * modules/wcwidth-tests: New file.
7774         * tests/test-wcwidth.c: New file.
7775
7776         Work around MacOS X wcwidth() bug.
7777         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
7778         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
7779         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
7780         original wcwidth in non-UTF-8 locales.
7781         * modules/wcwidth (Depends-on): Add localcharset, streq,
7782         uniwidth/width.
7783         * doc/functions/wcwidth.texi: Update.
7784
7785 2007-07-07  Bruno Haible  <bruno@clisp.org>
7786
7787         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
7788         (wcwidth): New declaration.
7789         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
7790         macros.
7791         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
7792         here. Prepare for creating <wchar.h> unconditionally.
7793         * modules/wchar (Depends-on): Add link-warning.
7794         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
7795         REPLACE_WCWIDTH, and GL_LINK_WARNING.
7796         * lib/wcwidth.h: Remove file.
7797         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
7798         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
7799         * modules/wcwidth (Files): Remove lib/wcwidth.h.
7800         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
7801         (Include): Replace wcwidth.h with <wchar.h>.
7802         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
7803         * lib/mbchar.h: Don't include wcwidth.h.
7804         * lib/mbswidth.c: Likewise.
7805         * NEWS: Mention the change.
7806
7807 2007-07-07  Bruno Haible  <bruno@clisp.org>
7808
7809         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
7810         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
7811         definition with an external declaration.
7812         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
7813         defined as a function. Remove AC_C_INLINE requirement.
7814         * modules/wcwidth (Files): Add lib/wcwidth.c.
7815         (Makefile.am): Remove redundant statement.
7816
7817 2007-07-07  Bruno Haible  <bruno@clisp.org>
7818
7819         * MODULES.html.sh (Unicode string functions): Add the new modules.
7820
7821         * tests/uniwidth/test-u32-strwidth.c: New file.
7822         * modules/uniwidth/u32-strwidth-tests: New file.
7823
7824         * lib/uniwidth/u32-strwidth.c: New file.
7825         * modules/uniwidth/u32-strwidth: New file.
7826
7827         * tests/uniwidth/test-u16-strwidth.c: New file.
7828         * modules/uniwidth/u16-strwidth-tests: New file.
7829
7830         * lib/uniwidth/u16-strwidth.c: New file.
7831         * modules/uniwidth/u16-strwidth: New file.
7832
7833         * tests/uniwidth/test-u8-strwidth.c: New file.
7834         * modules/uniwidth/u8-strwidth-tests: New file.
7835
7836         * lib/uniwidth/u8-strwidth.c: New file.
7837         * modules/uniwidth/u8-strwidth: New file.
7838
7839         * tests/uniwidth/test-u32-width.c: New file.
7840         * modules/uniwidth/u32-width-tests: New file.
7841
7842         * lib/uniwidth/u32-width.c: New file.
7843         * modules/uniwidth/u32-width: New file.
7844
7845         * tests/uniwidth/test-u16-width.c: New file.
7846         * modules/uniwidth/u16-width-tests: New file.
7847
7848         * lib/uniwidth/u16-width.c: New file.
7849         * modules/uniwidth/u16-width: New file.
7850
7851         * tests/uniwidth/test-u8-width.c: New file.
7852         * modules/uniwidth/u8-width-tests: New file.
7853
7854         * lib/uniwidth/u8-width.c: New file.
7855         * modules/uniwidth/u8-width: New file.
7856
7857         * tests/uniwidth/test-uc_width.c: New file.
7858         * modules/uniwidth/width-tests: New file.
7859
7860         * lib/uniwidth/width.c: New file, from GNU libiconv.
7861         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
7862         * modules/uniwidth/width: New file.
7863
7864         * lib/uniwidth.h: New file, from GNU libiconv.
7865         * modules/uniwidth/base: New file.
7866
7867 2007-07-07  Bruno Haible  <bruno@clisp.org>
7868
7869         * lib/uniname.h: New file, from GNU gettext.
7870         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
7871         * lib/uniname/uninames.h: New file, from GNU gettext.
7872         * lib/uniname/uniname.c: New file, from GNU gettext.
7873         * tests/uniname/test-uninames.sh: New file.
7874         * tests/uniname/test-uninames.c: New file, from GNU gettext.
7875         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
7876         * modules/uniname/base: New file.
7877         * modules/uniname/uniname: New file.
7878         * modules/uniname/uniname-tests: New file.
7879         * MODULES.html.sh (Unicode string functions): Add the new modules.
7880
7881 2007-07-06  Bruno Haible  <bruno@clisp.org>
7882
7883         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
7884
7885 2007-07-06  Bruno Haible  <bruno@clisp.org>
7886
7887         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
7888         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
7889         includes <cygwin/sys_time.h> which includes <sys/select.h> which
7890         include <sys/time.h>.
7891         Reported by Eric Blake.
7892
7893 2007-07-06  Eric Blake  <ebb9@byu.net>
7894
7895         Fix testing canonicalize on cygwin.
7896         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
7897         Revert patch from 2007-06-19.
7898         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
7899         canonicalize module is also in use.
7900         * tests/test-canonicalize.c: New file.
7901         * tests/test-canonicalize.sh: Likewise.
7902         * modules/canonicalize-tests: Likewise.
7903
7904 2007-07-06  Jim Meyering  <jim@meyering.net>
7905
7906         * lib/getugroups.c (getugroups): Detect getgrent failure.
7907         Adjust comment to reflect reality: this function may return -1.
7908
7909 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
7910
7911         * build-aux/bootstrap (TP_URL,get_translations): Update to use
7912         the new TP address.
7913         (usage): Fix typo
7914         (gnulib_mk): New variable.
7915
7916 2007-07-05  Jim Meyering  <jim@meyering.net>
7917
7918         Don't let endgrent clobber errno, no matter how improbable.
7919         * lib/getugroups.c (getugroups): Save and restore errno around
7920         endgrent call.
7921
7922         Close the group DB even when failing with 2^31 or more members.
7923         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
7924
7925 2007-07-04  Jim Meyering  <jim@meyering.net>
7926
7927         * lib/getugroups.h: New file.
7928         * lib/getugroups.c: Include "getugroups.h".
7929         Remove uses of "register" keyword.
7930         Move local variable, "cp", down into scope where used.
7931         Give "username" parameter the "const" attribute.
7932         * modules/getugroups (Files): Add lib/getugroups.h
7933
7934 2007-07-04  Karl Berry  <karl@gnu.org>
7935
7936         * MODULES.html.sh (func_all_modules): Complete rename of
7937         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
7938
7939 2007-07-02  Bruno Haible  <bruno@clisp.org>
7940
7941         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
7942         mode, when inttypes.h comes from gnulib.
7943         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
7944
7945 2007-07-02  Simon Josefsson  <simon@josefsson.org>
7946
7947         * NEWS: Mention lgpl module name change.
7948
7949         * modules/lgpl-2.1: Renamed from lgpl.
7950
7951         * NEWS: Mention gpl module name change.
7952
7953         * modules/gpl-3.0: New file, based on gpl-2.0.
7954
7955         * modules/gpl-2.0: Renamed from gpl.
7956
7957         * modules/gpl: Fix filename, doc/gpl.texi is now found at
7958         doc/gpl-2.0.texi.
7959
7960 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
7961
7962         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
7963         #define __STDC_LIMIT_MACROS temporarily while including
7964         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
7965         Problem reported by Joel E. Denny in
7966         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
7967
7968 2007-07-01  Bruno Haible  <bruno@clisp.org>
7969
7970         * lib/unistdio.h: New file.
7971         * lib/unistdio/u-asnprintf.h: New file.
7972         * lib/unistdio/u-asprintf.h: New file.
7973         * lib/unistdio/u-printf-args.c: New file.
7974         * lib/unistdio/u-printf-args.h: New file.
7975         * lib/unistdio/u-printf-parse.h: New file.
7976         * lib/unistdio/u-snprintf.h: New file.
7977         * lib/unistdio/u-sprintf.h: New file.
7978         * lib/unistdio/u-vasprintf.h: New file.
7979         * lib/unistdio/u-vsnprintf.h: New file.
7980         * lib/unistdio/u-vsprintf.h: New file.
7981         * lib/unistdio/ulc-asnprintf.c: New file.
7982         * lib/unistdio/ulc-asprintf.c: New file.
7983         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
7984         * lib/unistdio/ulc-printf-parse.c: New file.
7985         * lib/unistdio/ulc-snprintf.c: New file.
7986         * lib/unistdio/ulc-sprintf.c: New file.
7987         * lib/unistdio/ulc-vasnprintf.c: New file.
7988         * lib/unistdio/ulc-vasprintf.c: New file.
7989         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
7990         * lib/unistdio/ulc-vsnprintf.c: New file.
7991         * lib/unistdio/ulc-vsprintf.c: New file.
7992         * lib/unistdio/u8-asnprintf.c: New file.
7993         * lib/unistdio/u8-asprintf.c: New file.
7994         * lib/unistdio/u8-printf-parse.c: New file.
7995         * lib/unistdio/u8-snprintf.c: New file.
7996         * lib/unistdio/u8-sprintf.c: New file.
7997         * lib/unistdio/u8-vasnprintf.c: New file.
7998         * lib/unistdio/u8-vasprintf.c: New file.
7999         * lib/unistdio/u8-vsnprintf.c: New file.
8000         * lib/unistdio/u8-vsprintf.c: New file.
8001         * lib/unistdio/u8-u8-asnprintf.c: New file.
8002         * lib/unistdio/u8-u8-asprintf.c: New file.
8003         * lib/unistdio/u8-u8-snprintf.c: New file.
8004         * lib/unistdio/u8-u8-sprintf.c: New file.
8005         * lib/unistdio/u8-u8-vasnprintf.c: New file.
8006         * lib/unistdio/u8-u8-vasprintf.c: New file.
8007         * lib/unistdio/u8-u8-vsnprintf.c: New file.
8008         * lib/unistdio/u8-u8-vsprintf.c: New file.
8009         * lib/unistdio/u16-asnprintf.c: New file.
8010         * lib/unistdio/u16-asprintf.c: New file.
8011         * lib/unistdio/u16-printf-parse.c: New file.
8012         * lib/unistdio/u16-snprintf.c: New file.
8013         * lib/unistdio/u16-sprintf.c: New file.
8014         * lib/unistdio/u16-vasnprintf.c: New file.
8015         * lib/unistdio/u16-vasprintf.c: New file.
8016         * lib/unistdio/u16-vsnprintf.c: New file.
8017         * lib/unistdio/u16-vsprintf.c: New file.
8018         * lib/unistdio/u16-u16-asnprintf.c: New file.
8019         * lib/unistdio/u16-u16-asprintf.c: New file.
8020         * lib/unistdio/u16-u16-snprintf.c: New file.
8021         * lib/unistdio/u16-u16-sprintf.c: New file.
8022         * lib/unistdio/u16-u16-vasnprintf.c: New file.
8023         * lib/unistdio/u16-u16-vasprintf.c: New file.
8024         * lib/unistdio/u16-u16-vsnprintf.c: New file.
8025         * lib/unistdio/u16-u16-vsprintf.c: New file.
8026         * lib/unistdio/u32-asnprintf.c: New file.
8027         * lib/unistdio/u32-asprintf.c: New file.
8028         * lib/unistdio/u32-printf-parse.c: New file.
8029         * lib/unistdio/u32-snprintf.c: New file.
8030         * lib/unistdio/u32-sprintf.c: New file.
8031         * lib/unistdio/u32-vasnprintf.c: New file.
8032         * lib/unistdio/u32-vasprintf.c: New file.
8033         * lib/unistdio/u32-vsnprintf.c: New file.
8034         * lib/unistdio/u32-vsprintf.c: New file.
8035         * lib/unistdio/u32-u32-asnprintf.c: New file.
8036         * lib/unistdio/u32-u32-asprintf.c: New file.
8037         * lib/unistdio/u32-u32-snprintf.c: New file.
8038         * lib/unistdio/u32-u32-sprintf.c: New file.
8039         * lib/unistdio/u32-u32-vasnprintf.c: New file.
8040         * lib/unistdio/u32-u32-vasprintf.c: New file.
8041         * lib/unistdio/u32-u32-vsnprintf.c: New file.
8042         * lib/unistdio/u32-u32-vsprintf.c: New file.
8043         * tests/unistdio/test-ulc-asnprintf1.c: New file.
8044         * tests/unistdio/test-ulc-asnprintf1.h: New file.
8045         * tests/unistdio/test-ulc-printf1.h: New file.
8046         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
8047         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
8048         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
8049         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
8050         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
8051         * tests/unistdio/test-ulc-vasprintf1.c: New file.
8052         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
8053         * tests/unistdio/test-ulc-vsprintf1.c: New file.
8054         * tests/unistdio/test-u8-asnprintf1.c: New file.
8055         * tests/unistdio/test-u8-asnprintf1.h: New file.
8056         * tests/unistdio/test-u8-printf1.h: New file.
8057         * tests/unistdio/test-u8-vasnprintf1.c: New file.
8058         * tests/unistdio/test-u8-vasnprintf2.c: New file.
8059         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
8060         * tests/unistdio/test-u8-vasnprintf3.c: New file.
8061         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
8062         * tests/unistdio/test-u8-vasprintf1.c: New file.
8063         * tests/unistdio/test-u8-vsnprintf1.c: New file.
8064         * tests/unistdio/test-u8-vsprintf1.c: New file.
8065         * tests/unistdio/test-u16-asnprintf1.c: New file.
8066         * tests/unistdio/test-u16-asnprintf1.h: New file.
8067         * tests/unistdio/test-u16-printf1.h: New file.
8068         * tests/unistdio/test-u16-vasnprintf1.c: New file.
8069         * tests/unistdio/test-u16-vasnprintf2.c: New file.
8070         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
8071         * tests/unistdio/test-u16-vasnprintf3.c: New file.
8072         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
8073         * tests/unistdio/test-u16-vasprintf1.c: New file.
8074         * tests/unistdio/test-u16-vsnprintf1.c: New file.
8075         * tests/unistdio/test-u16-vsprintf1.c: New file.
8076         * tests/unistdio/test-u32-asnprintf1.c: New file.
8077         * tests/unistdio/test-u32-asnprintf1.h: New file.
8078         * tests/unistdio/test-u32-printf1.h: New file.
8079         * tests/unistdio/test-u32-vasnprintf1.c: New file.
8080         * tests/unistdio/test-u32-vasnprintf2.c: New file.
8081         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
8082         * tests/unistdio/test-u32-vasnprintf3.c: New file.
8083         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
8084         * tests/unistdio/test-u32-vasprintf1.c: New file.
8085         * tests/unistdio/test-u32-vsnprintf1.c: New file.
8086         * tests/unistdio/test-u32-vsprintf1.c: New file.
8087         * modules/unistdio/base: New file.
8088         * modules/unistdio/u-printf-args: New file.
8089         * modules/unistdio/ulc-asnprintf: New file.
8090         * modules/unistdio/ulc-asprintf: New file.
8091         * modules/unistdio/ulc-fprintf: New file.
8092         * modules/unistdio/ulc-printf-parse: New file.
8093         * modules/unistdio/ulc-snprintf: New file.
8094         * modules/unistdio/ulc-sprintf: New file.
8095         * modules/unistdio/ulc-vasnprintf: New file.
8096         * modules/unistdio/ulc-vasprintf: New file.
8097         * modules/unistdio/ulc-vfprintf: New file.
8098         * modules/unistdio/ulc-vsnprintf: New file.
8099         * modules/unistdio/ulc-vsprintf: New file.
8100         * modules/unistdio/u8-asnprintf: New file.
8101         * modules/unistdio/u8-asprintf: New file.
8102         * modules/unistdio/u8-printf-parse: New file.
8103         * modules/unistdio/u8-snprintf: New file.
8104         * modules/unistdio/u8-sprintf: New file.
8105         * modules/unistdio/u8-vasnprintf: New file.
8106         * modules/unistdio/u8-vasprintf: New file.
8107         * modules/unistdio/u8-vsnprintf: New file.
8108         * modules/unistdio/u8-vsprintf: New file.
8109         * modules/unistdio/u8-u8-asnprintf: New file.
8110         * modules/unistdio/u8-u8-asprintf: New file.
8111         * modules/unistdio/u8-u8-snprintf: New file.
8112         * modules/unistdio/u8-u8-sprintf: New file.
8113         * modules/unistdio/u8-u8-vasnprintf: New file.
8114         * modules/unistdio/u8-u8-vasprintf: New file.
8115         * modules/unistdio/u8-u8-vsnprintf: New file.
8116         * modules/unistdio/u8-u8-vsprintf: New file.
8117         * modules/unistdio/u16-asnprintf: New file.
8118         * modules/unistdio/u16-asprintf: New file.
8119         * modules/unistdio/u16-printf-parse: New file.
8120         * modules/unistdio/u16-snprintf: New file.
8121         * modules/unistdio/u16-sprintf: New file.
8122         * modules/unistdio/u16-vasnprintf: New file.
8123         * modules/unistdio/u16-vasprintf: New file.
8124         * modules/unistdio/u16-vsnprintf: New file.
8125         * modules/unistdio/u16-vsprintf: New file.
8126         * modules/unistdio/u16-u16-asnprintf: New file.
8127         * modules/unistdio/u16-u16-asprintf: New file.
8128         * modules/unistdio/u16-u16-snprintf: New file.
8129         * modules/unistdio/u16-u16-sprintf: New file.
8130         * modules/unistdio/u16-u16-vasnprintf: New file.
8131         * modules/unistdio/u16-u16-vasprintf: New file.
8132         * modules/unistdio/u16-u16-vsnprintf: New file.
8133         * modules/unistdio/u16-u16-vsprintf: New file.
8134         * modules/unistdio/u32-asnprintf: New file.
8135         * modules/unistdio/u32-asprintf: New file.
8136         * modules/unistdio/u32-printf-parse: New file.
8137         * modules/unistdio/u32-snprintf: New file.
8138         * modules/unistdio/u32-sprintf: New file.
8139         * modules/unistdio/u32-vasnprintf: New file.
8140         * modules/unistdio/u32-vasprintf: New file.
8141         * modules/unistdio/u32-vsnprintf: New file.
8142         * modules/unistdio/u32-vsprintf: New file.
8143         * modules/unistdio/u32-u32-asnprintf: New file.
8144         * modules/unistdio/u32-u32-asprintf: New file.
8145         * modules/unistdio/u32-u32-snprintf: New file.
8146         * modules/unistdio/u32-u32-sprintf: New file.
8147         * modules/unistdio/u32-u32-vasnprintf: New file.
8148         * modules/unistdio/u32-u32-vasprintf: New file.
8149         * modules/unistdio/u32-u32-vsnprintf: New file.
8150         * modules/unistdio/u32-u32-vsprintf: New file.
8151         * modules/unistdio/ulc-asnprintf-tests: New file.
8152         * modules/unistdio/ulc-vasnprintf-tests: New file.
8153         * modules/unistdio/ulc-vasprintf-tests: New file.
8154         * modules/unistdio/ulc-vsnprintf-tests: New file.
8155         * modules/unistdio/ulc-vsprintf-tests: New file.
8156         * modules/unistdio/u8-asnprintf-tests: New file.
8157         * modules/unistdio/u8-vasnprintf-tests: New file.
8158         * modules/unistdio/u8-vasprintf-tests: New file.
8159         * modules/unistdio/u8-vsnprintf-tests: New file.
8160         * modules/unistdio/u8-vsprintf-tests: New file.
8161         * modules/unistdio/u16-asnprintf-tests: New file.
8162         * modules/unistdio/u16-vasnprintf-tests: New file.
8163         * modules/unistdio/u16-vasprintf-tests: New file.
8164         * modules/unistdio/u16-vsnprintf-tests: New file.
8165         * modules/unistdio/u16-vsprintf-tests: New file.
8166         * modules/unistdio/u32-asnprintf-tests: New file.
8167         * modules/unistdio/u32-vasnprintf-tests: New file.
8168         * modules/unistdio/u32-vasprintf-tests: New file.
8169         * modules/unistdio/u32-vsnprintf-tests: New file.
8170         * modules/unistdio/u32-vsprintf-tests: New file.
8171         * MODULES.html.sh (Unicode string functions): Add the new modules.
8172
8173 2007-07-01  Bruno Haible  <bruno@clisp.org>
8174
8175         * lib/sprintf.c (sprintf): Limit the available length estimation,
8176         to avoid address wraparound.
8177         * lib/vsprintf.c (vsprintf): Likewise.
8178         * modules/sprintf-posix (Dependencies): Add stdint.
8179         * modules/vsprintf-posix (Dependencies): Likewise.
8180
8181 2007-07-01  Bruno Haible  <bruno@clisp.org>
8182
8183         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
8184         Windows PATH as well. Conservative double-quoting. Comments.
8185
8186 2007-07-01  Bruno Haible  <bruno@clisp.org>
8187             Eric Blake  <ebb9@byu.net>
8188             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8189
8190         * gnulib-tool (self_abspathname): Fix algorithm to cope with
8191         empty components in $PATH, denoting '.'.
8192
8193 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8194
8195         * gnulib-tool: Fix indentation.
8196         (func_create_megatestdir): Likewise.
8197         Report by Bruno Haible.
8198
8199 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8200
8201         Sync from Automake.
8202         * build-aux/gnupload: Fix shell portability issues with for loops.
8203         Report by Karl Berry.
8204
8205 2007-06-29  Simon Josefsson  <simon@josefsson.org>
8206
8207         * build-aux/maint.mk (POURL): Use translationproject.org.
8208
8209 2007-06-27  Simon Josefsson  <simon@josefsson.org>
8210             Bruno Haible  <bruno@clisp.org>
8211
8212         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
8213         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
8214         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
8215         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
8216         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
8217
8218 2007-06-27  Bruno Haible  <bruno@clisp.org>
8219
8220         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
8221         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
8222
8223 2007-06-26  Karl Berry  <karl@gnu.org>
8224
8225         * MODULES.html.sh: remove xreadlink-with-size.
8226
8227 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
8228
8229         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
8230         method that I hope also handles the double-include problem noted
8231         by Bruno Haible in
8232         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
8233
8234 2007-06-23  Bruno Haible  <bruno@clisp.org>
8235
8236         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
8237         Don't let the 'mostlyclean' target fail if the last subdirectory could
8238         not be removed.
8239         Reported by Karl Berry.
8240
8241 2007-06-23  Bruno Haible  <bruno@clisp.org>
8242
8243         * gnulib-tool (echo): Add a speedier workaround for ksh.
8244         * tests/test-echo.sh: Likewise.
8245
8246 2007-06-23  Bruno Haible  <bruno@clisp.org>
8247
8248         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
8249         * tests/test-echo.sh: Likewise.
8250
8251 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8252
8253         * gnulib-tool (IFS): Initialize early, so we don't set it to
8254         empty later.
8255         (self_abspathname): Rewrite algorithm to set it, reindent.
8256         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
8257         (func_create_megatestdir): Merge some sed scripts.
8258
8259 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
8260
8261         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
8262         exposed by Sun Studio 11 cc on Solaris 8.
8263
8264 2007-06-22  Bruno Haible  <bruno@clisp.org>
8265
8266         * gnulib-tool (echo): Ensure the echo primitive does not interpret
8267         backslashes.
8268         * tests/test-echo.sh: New file.
8269
8270 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8271
8272         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
8273         simplify `sed_replace_build_aux' scripts, they are portable but
8274         echoing them with `echo' is not.
8275         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
8276
8277 2007-06-21  Karl Berry  <karl@gnu.org>
8278
8279         * config/srclist.txt: guess we can't handle the licenses via
8280         srclist at the moment.
8281
8282 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
8283
8284         * MODULES.html.sh: Add include_next.
8285         * modules/include_next: New file.
8286
8287 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
8288
8289         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
8290         INCLUDE_NEXT.
8291         (gl_CHECK_NEXT_HEADERS): New macro.
8292         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
8293         the obsolescent gl_ABSOLUTE_HEADER.
8294         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
8295         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
8296         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
8297         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
8298         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
8299         * m4/math_h.m4 (gl_MATH_H): Likewise.
8300         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
8301         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
8302         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
8303         * m4/stdint.m4 (gl_STDINT_H): Likewise.
8304         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
8305         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
8306         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
8307         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
8308         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
8309         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
8310         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
8311         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
8312         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
8313         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
8314         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
8315         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
8316         * m4/inttypes.m4 (gl_INTTYPES_H): Define
8317         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
8318         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
8319         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
8320         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
8321         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
8322         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
8323         * lib/float_.h: Likewise.
8324         * lib/inttypes_.h: Likewise.
8325         * lib/math_.h: Likewise.
8326         * lib/search_.h: Likewise.
8327         * lib/signal_.h: Likewise.
8328         * lib/stdint_.h: Likewise.
8329         * lib/stdio_.h: Likewise.
8330         * lib/stdlib_.h: Likewise.
8331         * lib/string_.h: Likewise.
8332         * lib/sys_stat_.h: Likewise.
8333         * lib/sys_time_.h: Likewise.
8334         * lib/time_.h: Likewise.
8335         * lib/unistd_.h: Likewise.
8336         * lib/wchar_.h: Likewise.
8337         * lib/wctype_.h: Likewise.
8338         * lib/dirent_.h: Likewise.
8339         * lib/iconv_.h: Likewise.
8340         * lib/locale_.h: Likewise.
8341         * lib/netinet_in_.h: Likewise.
8342         * lib/sys_select_.h: Likewise.
8343         * lib/sys_socket_.h: Likewise.
8344         * lib/sysexits_.h: Likewise.
8345         * modules/fcntl (Depends-on): Depend on include_next, not
8346         absolute_header.
8347         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
8348         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
8349         * modules/fchdir: Likewise.
8350         * modules/float: Likewise.
8351         * modules/iconv_open: Likewise.
8352         * modules/inttypes: Likewise.
8353         * modules/locale: Likewise.
8354         * modules/math: Likewise.
8355         * modules/netinet_in: Likewise.
8356         * modules/search: Likewise.
8357         * modules/signal: Likewise.
8358         * modules/stdint: Likewise.
8359         * modules/stdio: Likewise.
8360         * modules/stdlib: Likewise.
8361         * modules/string: Likewise.
8362         * modules/sys_select: Likewise.
8363         * modules/sys_socket: Likewise.
8364         * modules/sys_stat: Likewise.
8365         * modules/sys_time: Likewise.
8366         * modules/sysexits: Likewise.
8367         * modules/time: Likewise.
8368         * modules/unistd: Likewise.
8369         * modules/wchar: Likewise.
8370         * modules/wctype: Likewise.
8371         * modules/sys_stat: Change maintainer to "all".
8372         * modules/unistd: Likewise.
8373
8374 2007-06-20  Karl Berry  <karl@gnu.org>
8375
8376         * config/srclist.txt: track www changes in license files.
8377
8378 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
8379
8380         * build-aux/bootstrap: Remove stray dot.
8381         Make sure build_aux settings are honored when linking
8382         gnulib_extra_files.
8383
8384 2007-06-19  Eric Blake  <ebb9@byu.net>
8385
8386         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
8387         Allow compilation on cygwin.
8388
8389 2007-06-19  Jim Meyering  <jim@meyering.net>
8390
8391         xreadlink-with-size: Remove module.  No longer used.
8392         Ex-callers now use xreadlink or mreadlink-with-size.
8393         * modules/xreadlink-with-size: Remove module.
8394         * lib/xreadlink-with-size.c: Remove file.
8395         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
8396         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
8397         just before the function definition *is* accurate.
8398
8399         Eliminate one way canonicalize_filename_mode could exit.
8400         * lib/canonicalize.c (canonicalize_filename_mode):
8401         Use mreadlink_with_size, not xreadlink_with_size.
8402
8403 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
8404
8405         Detect porting problems to FreeBSD/arm, which has time_t wider than
8406         long int.  Original problem reported for GNU diff by Xin Li in
8407         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
8408         * modules/getdate (Depends-on): Add intprops, verify.
8409         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
8410         is an integer type no wider than long int.
8411
8412 2007-06-18  Jim Meyering  <jim@meyering.net>
8413
8414         New module: mreadlink-with-size.
8415         * MODULES.html.sh: Add mreadlink-with-size.
8416         * modules/mreadlink-with-size: New module
8417         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
8418         not xreadlink-with-size.
8419         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
8420
8421 2007-06-16  Bruno Haible  <bruno@clisp.org>
8422
8423         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
8424         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
8425         Reported by Gary V. Vaughan <gary@gnu.org>.
8426
8427 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
8428
8429         Revamp lchown so that it lives in unistd.h where it belongs.
8430         * lib/lchown.h: Remove.
8431         * lib/dirchownmod.c: Don't include lib/lchown.h.
8432         * lib/fchownat.c: Likewise.
8433         * lib/openat.c: Likewise.
8434         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
8435         does not follow symlinks.
8436         (EOPNOTSUPP): Define if not defined.
8437         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
8438         is defined to 0.
8439         (lchown): New decl.
8440         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
8441         Do not check for lchown decl.
8442         Set REPLACE_LCHOWN.
8443         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
8444         REPLACE_LCHOWN.
8445         * modules/chown: Make it clear it follows symlinks.
8446         * modules/lchown: Make it clear it doesn't follow symlinks.
8447         (Files): Remove lib/lchown.h
8448         (Depends-on): Add unistd.
8449         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
8450         (Include): Include <unistd.h>, not "lchown.h".
8451         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
8452         REPLACE_LCHOWN.
8453
8454 2007-06-15  Jim Meyering  <jim@meyering.net>
8455
8456         Change license (GPL to LGPL) of fsusage and dependents.
8457         * modules/fsusage (License): Change to LGPL.
8458         * modules/full-read (License): Likewise.
8459         * modules/full-write (License): Likewise.
8460         * modules/safe-read (License): Likewise.
8461         * modules/safe-write (License): Likewise.
8462
8463 2007-06-14  Ben Pfaff  <blp@gnu.org>
8464
8465         Missing part of allocsa -> malloca transition.
8466         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
8467         gl_MALLOCA.
8468
8469 2007-06-12  Bruno Haible  <bruno@clisp.org>
8470
8471         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
8472         to ia64, x86_64, i386.
8473         Reported by Eric Blake.
8474
8475 2007-06-12  Bruno Haible  <bruno@clisp.org>
8476
8477         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
8478         cross-compiling to x86_64.
8479
8480 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
8481
8482         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
8483         glitch reported by Ralf Wildenhues in
8484         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
8485
8486         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
8487         Vin Shelton.
8488
8489 2007-06-11  Bruno Haible  <bruno@clisp.org>
8490
8491         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
8492         replacement string.
8493         Reported by Eric Blake.
8494
8495 2007-06-10  Bruno Haible  <bruno@clisp.org>
8496
8497         Prepare vasnprintf code for use with Unicode strings.
8498         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
8499         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
8500         TYPE_U32_STRING.
8501         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
8502         a_u32_string variants.
8503         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
8504         * lib/printf-args.c: Don't include config.h and the specification
8505         header if PRINTF_FETCHARGS is already defined.
8506         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
8507         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
8508         TYPE_U16_STRING, TYPE_U32_STRING.
8509         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
8510         u16_directive, u16_directives, u32_directive, u32_directives): New
8511         types.
8512         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
8513         New declarations.
8514         * lib/printf-parse.c: Don't include config.h and the specification
8515         header if PRINTF_PARSE is already defined. Eliminate the set of
8516         parameters for WIDE_CHAR_VERSION; the user of this file must provide
8517         them now. Include c-ctype.h.
8518         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
8519         directive and CHAR_T_ONLY_ASCII.
8520         * lib/vasnprintf.c: Don't include config.h and the specification header
8521         if VASNPRINTF is already defined.
8522         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
8523         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
8524         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
8525         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
8526         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
8527         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
8528         code accordingly.
8529         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
8530         pad_ourselves also in this case, with the 'c' and 's' directives, and
8531         with a different notion of "width".
8532         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
8533
8534 2007-06-10  Bruno Haible  <bruno@clisp.org>
8535
8536         * modules/unistr/u32-mbsnlen: New file.
8537         * lib/unistr/u32-mbsnlen.c: New file.
8538
8539         * modules/unistr/u16-mbsnlen: New file.
8540         * lib/unistr/u16-mbsnlen.c: New file.
8541
8542         * modules/unistr/u8-mbsnlen: New file.
8543         * lib/unistr/u8-mbsnlen.c: New file.
8544
8545         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
8546         declarations.
8547
8548 2007-06-10  Bruno Haible  <bruno@clisp.org>
8549
8550         * lib/string_.h (mbsnlen): New declaration.
8551         * lib/mbsnlen.c: New file.
8552         * m4/mbsnlen.m4: New file.
8553         * modules/mbsnlen: New file.
8554         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
8555         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
8556         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
8557
8558 2007-06-10  Bruno Haible  <bruno@clisp.org>
8559
8560         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
8561
8562 2007-06-10  Bruno Haible  <bruno@clisp.org>
8563
8564         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
8565         * lib/mbuiter.h: Likewise.
8566
8567 2007-06-10  Bruno Haible  <bruno@clisp.org>
8568
8569         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
8570         declaration.
8571
8572 2007-06-10  Karl Berry  <karl@gnu.org>
8573
8574         * config/srclist.txt: remove gettext entries, Bruno prefers
8575         to update individually.
8576
8577 2007-06-10  Bruno Haible  <bruno@clisp.org>
8578
8579         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
8580         'maxlen'. Ensure only length + width bytes are allocated, not
8581         length + 1 + width.
8582
8583 2007-06-09  Bruno Haible  <bruno@clisp.org>
8584
8585         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
8586         (CHAR_T): Remove macro.
8587         (VASNPRINTF): Update.
8588
8589 2007-06-09  Bruno Haible  <bruno@clisp.org>
8590
8591         * MODULES.html.sh (Unicode string functions): Add the new modules.
8592
8593         * modules/uniconv/u32-conv-to-enc: New file.
8594         * lib/uniconv/u32-conv-to-enc.c: New file.
8595         * modules/uniconv/u32-conv-to-enc-tests: New file.
8596         * tests/uniconv/test-u32-conv-to-enc.c: New file.
8597
8598         * modules/uniconv/u16-conv-to-enc: New file.
8599         * lib/uniconv/u16-conv-to-enc.c: New file.
8600         * lib/uniconv/u-conv-to-enc.h: New file.
8601         * modules/uniconv/u16-conv-to-enc-tests: New file.
8602         * tests/uniconv/test-u16-conv-to-enc.c: New file.
8603
8604         * modules/uniconv/u8-conv-to-enc: New file.
8605         * lib/uniconv/u8-conv-to-enc.c: New file.
8606         * modules/uniconv/u8-conv-to-enc-tests: New file.
8607         * tests/uniconv/test-u8-conv-to-enc.c: New file.
8608
8609         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
8610         u32_conv_to_encoding): New declarations.
8611
8612 2007-06-09  Bruno Haible  <bruno@clisp.org>
8613
8614         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
8615
8616 2007-06-09  Bruno Haible  <bruno@clisp.org>
8617
8618         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
8619         * modules/malloca: Renamed from modules/allocsa, updated.
8620         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
8621         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
8622         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
8623         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
8624         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
8625         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
8626         * modules/xmalloca: Renamed from modules/xallocsa, updated.
8627         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
8628         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
8629         * modules/c-strcasestr (Depends-on): Update.
8630         * lib/c-strcasestr.c: Update.
8631         * modules/c-strstr (Depends-on): Update.
8632         * lib/c-strstr.c: Update.
8633         * modules/canonicalize-lgpl (Depends-on): Update.
8634         * lib/canonicalize-lgpl.c: Update.
8635         * modules/clean-temp (Depends-on): Update.
8636         * lib/clean-temp.c: Update.
8637         * modules/csharpcomp (Depends-on): Update.
8638         * lib/csharpcomp.c: Update.
8639         * modules/csharpexec (Depends-on): Update.
8640         * lib/csharpexec.c: Update.
8641         * modules/javacomp (Depends-on): Update.
8642         * lib/javacomp.c: Update.
8643         * modules/javaexec (Depends-on): Update.
8644         * lib/javaexec.c: Update.
8645         * modules/mbscasestr (Depends-on): Update.
8646         * lib/mbscasestr.c: Update.
8647         * modules/mbsstr (Depends-on): Update.
8648         * lib/mbsstr.c: Update.
8649         * modules/setenv (Depends-on): Update.
8650         * lib/setenv.c: Update.
8651         * modules/strcasestr (Depends-on): Update.
8652         * lib/strcasestr.c: Update.
8653         * modules/striconveha (Depends-on): Update.
8654         * lib/striconveha.c: Update.
8655         * modules/relocatable-prog-wrapper (Files): Update.
8656         * lib/relocwrapper.c: Update.
8657         * build-aux/install-reloc: Update.
8658         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
8659
8660 2007-06-08  Bruno Haible  <bruno@clisp.org>
8661
8662         Port to uClibc.
8663         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
8664         * lib/fpurge.c (fpurge): Likewise.
8665         * lib/freading.c (freading): Likewise.
8666         * lib/fseeko.c (rpl_fseeko): Likewise.
8667         * lib/fseterr.c (fseterr): Likewise.
8668         * lib/fwriting.c (fwriting): Likewise.
8669         * tests/test-fflush.c (main): Avoid a failure on uClibc.
8670
8671 2007-06-08  Bruno Haible  <bruno@clisp.org>
8672
8673         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
8674         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
8675         * modules/gettext (Files): Add m4/intlmacosx.m4.
8676
8677 2007-06-07  Bruno Haible  <bruno@clisp.org>
8678
8679         * modules/localename-tests: New file.
8680         * tests/test-localename.c: New file.
8681
8682         New module 'localename'.
8683         * lib/localename.h: New file.
8684         * lib/localename.c: New file, from GNU gettext.
8685         * m4/localename.m4: New file.
8686         * modules/localename: New file.
8687
8688 2007-06-07  Bruno Haible  <bruno@clisp.org>
8689
8690         Work around the lack of <wchar.h> on some builds of uClibc.
8691         * doc/headers/wchar.texi: Update.
8692         * lib/wchar_.h: Include <wchar.h> only if it exists.
8693         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
8694         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
8695         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
8696         doesn't exist.
8697         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
8698         * modules/mbfile (Depends-on): Add wchar.
8699         * modules/mbiter (Depends-on): Likewise.
8700         * modules/mbuiter (Depends-on): Likewise.
8701         Reported by Simon Josefsson.
8702
8703 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
8704
8705         Work around problem reported by Steven M. Schweda in
8706         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
8707         Tru64 5.1B with the Compaq compiler environment installed declares
8708         an 'isblank' function but does not define it in the C library.
8709         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
8710         * lib/regex_internal.h (isblank): Likewise.
8711         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
8712         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
8713
8714 2007-06-05  Bruno Haible  <bruno@clisp.org>
8715
8716         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
8717         ia64.
8718         * modules/printf-safe: New file.
8719         * modules/fprintf-posix (Depends-on): Add printf-safe.
8720         * modules/printf-posix (Depends-on): Likewise.
8721         * modules/snprintf-posix (Depends-on): Likewise.
8722         * modules/sprintf-posix (Depends-on): Likewise.
8723         * modules/vasnprintf-posix (Depends-on): Likewise.
8724         * modules/vasprintf-posix (Depends-on): Likewise.
8725         * modules/vfprintf-posix (Depends-on): Likewise.
8726         * modules/vprintf-posix (Depends-on): Likewise.
8727         * modules/vsnprintf-posix (Depends-on): Likewise.
8728         * modules/vsprintf-posix (Depends-on): Likewise.
8729         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
8730         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
8731         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
8732         "no" on i386, x86_64, ia64.
8733         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
8734         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
8735         on i386, x86_64, ia64.
8736         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
8737         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
8738         on i386, x86_64, ia64.
8739         * tests/test-vasnprintf-posix.c: Include float.h.
8740         (LDBL80_WORDS): New macro.
8741         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
8742         on i386, x86_64, ia64.
8743         * tests/test-vasprintf-posix.c: Include float.h.
8744         (LDBL80_WORDS): New macro.
8745         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
8746         on i386, x86_64, ia64.
8747         * tests/test-snprintf-posix.c: Include float.h.
8748         * tests/test-sprintf-posix.c: Likewise.
8749         * tests/test-vsnprintf-posix.c: Likewise.
8750         * tests/test-vsprintf-posix.c: Likewise.
8751
8752 2007-06-05  Bruno Haible  <bruno@clisp.org>
8753
8754         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
8755         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
8756         non-IEEE numbers on i386, x86_64, ia64.
8757         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
8758         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
8759         * tests/test-isnanl.h: Include float.h.
8760         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
8761
8762 2007-06-05  Bruno Haible  <bruno@clisp.org>
8763
8764         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
8765         also the %a / %A. Handle the %a / %A code before this extra handling.
8766
8767 2007-06-05  Bruno Haible  <bruno@clisp.org>
8768
8769         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
8770         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
8771
8772 2007-06-05  Bruno Haible  <bruno@clisp.org>
8773
8774         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
8775         typo in variable name.
8776
8777 2007-06-05  Eric Blake  <ebb9@byu.net>
8778
8779         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
8780         Reported by Simon Josefsson.
8781
8782 2007-06-04  Bruno Haible  <bruno@clisp.org>
8783
8784         Avoid test failures on some PowerPC platforms.
8785         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
8786         Define differently for PowerPC.
8787         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
8788         Reported by Gary V. Vaughan <gary@gnu.org>.
8789
8790 2007-06-02  Bruno Haible  <bruno@clisp.org>
8791
8792         Fix test-stdint failure on FreeBSD/ia64.
8793         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
8794         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
8795         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
8796         * doc/headers/stdint.texi: Update.
8797
8798 2007-06-01  Bruno Haible  <bruno@clisp.org>
8799
8800         * tests/test-binary-io.c (main): Pass a third argument to open().
8801         Reported by Gary V. Vaughan <gary@gnu.org>.
8802
8803 2007-06-01  Bruno Haible  <bruno@clisp.org>
8804
8805         * doc/functions/frexpl.texi: Update for mingw.
8806
8807 2007-06-01  Bruno Haible  <bruno@clisp.org>
8808
8809         * tests/test-lseek.c (main): Disable test of errno for invalid third
8810         argument.
8811         * doc/functions/lseek.texi: Update.
8812         Reported by Gary V. Vaughan <gary@gnu.org>.
8813
8814 2007-05-28  Bruno Haible  <bruno@clisp.org>
8815
8816         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
8817
8818 2007-05-31  Eric Blake  <ebb9@byu.net>
8819
8820         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
8821         cross compiling.
8822
8823 2007-05-30  Eric Blake  <ebb9@byu.net>
8824         and Bruno Haible  <bruno@clisp.org>
8825
8826         Work around mingw test failures exposed by m4-1.4.9b.
8827         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
8828         * tests/test-unistd.c: Disable uid_t and git_t tests for the
8829         moment.
8830
8831 2007-05-30  Bruno Haible  <bruno@clisp.org>
8832
8833         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
8834         assuming that they are closed. Needed on HP-UX 11.
8835
8836 2007-05-29  Bruno Haible  <bruno@clisp.org>
8837
8838         Fix a problem with #include_next.
8839         * lib/dirent_.h: Split the double-inclusion guard.
8840         * lib/fcntl_.h: Likewise.
8841         * lib/float_.h: Likewise.
8842         * lib/iconv_.h: Likewise.
8843         * lib/inttypes_.h: Likewise.
8844         * lib/locale_.h: Likewise.
8845         * lib/math_.h: Likewise.
8846         * lib/netinet_in_.h: Likewise.
8847         * lib/search_.h: Likewise.
8848         * lib/signal_.h: Likewise.
8849         * lib/stdint_.h: Likewise.
8850         * lib/stdio_.h: Likewise.
8851         * lib/stdlib_.h: Likewise.
8852         * lib/string_.h: Likewise.
8853         * lib/sys_select_.h: Likewise.
8854         * lib/sys_socket_.h: Likewise.
8855         * lib/sys_stat_.h: Likewise.
8856         * lib/sys_time_.h: Likewise.
8857         * lib/sysexits_.h: Likewise.
8858         * lib/time_.h: Likewise.
8859         * lib/unistd_.h: Likewise.
8860         * lib/wchar_.h: Likewise.
8861         * lib/wctype_.h: Likewise.
8862
8863 2007-05-29  Bruno Haible  <bruno@clisp.org>
8864
8865         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
8866         for the moment.
8867
8868 2007-05-29  Bruno Haible  <bruno@clisp.org>
8869
8870         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
8871         invocation.
8872         Reported by Eric Blake.
8873
8874 2007-05-29  Bruno Haible  <bruno@clisp.org>
8875
8876         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
8877         compiling case.
8878
8879 2007-05-29  Eric Blake  <ebb9@byu.net>
8880             Bruno Haible  <bruno@clisp.org>
8881
8882         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
8883         cross compiles.
8884
8885 2007-05-28  Eric Blake  <ebb9@byu.net>
8886
8887         * modules/closein-tests (test_closein_LDADD): Support test on
8888         cygwin with libtool.
8889
8890 2007-05-28  Bruno Haible  <bruno@clisp.org>
8891
8892         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
8893         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
8894         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
8895         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
8896         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
8897         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
8898         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
8899         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
8900         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
8901
8902 2007-05-28  Eric Blake  <ebb9@byu.net>
8903
8904         Unconditionally include <config.h> in unit tests.
8905         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
8906         * tests/test-allocsa.c, tests/test-arcfour.c,
8907         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
8908         tests/test-array_list.c, tests/test-array_oset.c,
8909         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
8910         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
8911         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
8912         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
8913         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
8914         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
8915         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
8916         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
8917         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
8918         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
8919         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
8920         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
8921         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
8922         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
8923         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
8924         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
8925         test-md5.c, test-memmem.c, test-printf-posix.c,
8926         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
8927         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
8928         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
8929         test-strcasestr.c, test-striconv.c, test-striconveh.c,
8930         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
8931         test-vasnprintf-posix2.c, test-vasnprintf.c,
8932         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
8933         test-vfprintf-posix.c, test-vprintf-posix.c,
8934         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
8935         test-xvasprintf.c: Likewise.
8936
8937 2007-05-28  Bruno Haible  <bruno@clisp.org>
8938
8939         * gnulib-tool (func_import): Remember the --with-tests command-line
8940         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
8941         Reported by Eric Blake.
8942
8943 2007-05-28  Bruno Haible  <bruno@clisp.org>
8944
8945         * modules/ftell-tests: New file.
8946         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
8947         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
8948
8949         * lib/ftell.c: New file.
8950         * modules/ftell: New file.
8951         * m4/ftell.m4: New file.
8952         * doc/functions/ftell.texi: Update.
8953         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
8954         REPLACE_FTELL.
8955         * lib/stdio_.h (rpl_ftell): New declaration.
8956         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
8957         REPLACE_FTELL.
8958
8959 2007-05-28  Eric Blake  <ebb9@byu.net>
8960
8961         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
8962
8963 2007-05-28  Bruno Haible  <bruno@clisp.org>
8964
8965         * modules/fseek-tests: New file.
8966         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
8967         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
8968
8969         * lib/fseek.c: New file.
8970         * modules/fseek: New file.
8971         * m4/fseek.m4: New file.
8972         * doc/functions/fseek.texi: Update.
8973         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
8974         REPLACE_FSEEK.
8975         * lib/stdio_.h (rpl_fseek): New declaration.
8976         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
8977         REPLACE_FSEEK.
8978
8979 2007-05-28  Bruno Haible  <bruno@clisp.org>
8980
8981         * lib/stdio_.h (fflush): More comments.
8982
8983 2007-05-28  Bruno Haible  <bruno@clisp.org>
8984
8985         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
8986         runtime test.
8987
8988 2007-05-28  Eric Blake  <ebb9@byu.net>
8989
8990         Improve lseek module.
8991         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
8992         * lib/unistd_.h (lseek): Scale back link warning message.
8993         * tests/test-lseek.c: Beef up test.
8994         * tests/test-lseek.sh: Exercise more facets of lseek.
8995         Reported by Bruno Haible.
8996
8997 2007-05-28  Bruno Haible  <bruno@clisp.org>
8998
8999         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
9000         to define.
9001
9002 2007-05-27  Bruno Haible  <bruno@clisp.org>
9003
9004         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
9005
9006 2007-05-27  Bruno Haible  <bruno@clisp.org>
9007
9008         * modules/openmp: New file.
9009         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
9010         Noah Misch.
9011
9012 2007-05-26  Bruno Haible  <bruno@clisp.org>
9013
9014         * modules/chdir-long (Depends-on): Add fchdir.
9015         * modules/chdir-safer (Depends-on): Likewise.
9016         * modules/fts (Depends-on): Likewise.
9017         * modules/fts-lgpl (Depends-on): Likewise.
9018         * modules/openat (Depends-on): Likewise.
9019         * modules/savewd (Depends-on): Likewise.
9020
9021 2007-05-24  Eric Blake  <ebb9@byu.net>
9022
9023         Fix lseek on mingw.
9024         * modules/lseek: New module.
9025         * m4/lseek.m4: New file.
9026         * lib/lseek.c: New file.
9027         * modules/lseek-tests: New file.
9028         * tests/test-lseek.c: New file.
9029         * tests/test-lseek.sh: New file.
9030         * MODULES.html.sh: Document lseek module.
9031         * modules/fflush (Depends-on): Add lseek, fseeko.
9032         * modules/fseeko (Depends-on): Likewise.
9033         * modules/ftello (Depends-on): Likewise.
9034         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
9035         broken.
9036         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
9037         broken.
9038         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
9039         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
9040         * lib/ftello.c (rpl_ftello): Likewise.
9041         * tests/test-fseeko.c (main): Test this.
9042         * tests/test-fseeko.sh: Likewise.
9043         * tests/test-ftello.c (main): Likewise.
9044         * tests/test-ftello.sh: Likewise.
9045         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
9046         implies replacing fseek.
9047         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
9048         HAVE_FTELLO.
9049         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
9050         * modules/unistd (Makefile.am): Likewise.
9051         * lib/unistd_.h (lseek): Declare a replacement.
9052         * doc/functions/lseek.texi (lseek): Document this fix.
9053         * doc/functions/fseek.texi (fseek): Likewise.
9054         * doc/functions/ftell.texi (ftell): Likewise.
9055
9056 2007-05-24  Bruno Haible  <bruno@clisp.org>
9057
9058         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
9059         in the printed representation of a NaN.
9060         * tests/test-vasprintf-posix.c (test_function): Likewise.
9061         * tests/test-snprintf-posix.h (test_function): Likewise.
9062         * tests/test-sprintf-posix.h (test_function): Likewise.
9063         Reported by Eric Blake.
9064
9065 2007-05-23  Eric Blake  <ebb9@byu.net>
9066
9067         Fix fseeko/ftello on cygwin 1.5.24.
9068         * doc/functions/fseeko.texi (fseeko): Document the fix.
9069         * doc/functions/ftello.texi (ftello): Document the fix.
9070         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
9071         * doc/functions/stdout.text (stdout): New file.
9072         * doc/functions/stderr.text (stderr): New file.
9073         * doc/gnulib.texi (Function Substitutes): Use new files.
9074         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
9075         prior to 1.7.0.
9076         * tests/test-ftello.c (main): Likewise for ftello.
9077         * tests/test-fseeko.sh: New file.
9078         * tests/test-ftello.sh: New file.
9079         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
9080         with seekable stdin.
9081         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
9082         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
9083         (gl_REPLACE_FSEEKO): New macro.
9084         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
9085         * modules/fseeko (Files): Distribute fseeko.c.
9086         * modules/ftello (Files): Distribute ftello.c.
9087         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
9088         mode.
9089         * lib/ftello.c (rpl_ftello): New file.
9090         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
9091         fseeko, ftello.
9092         (gl_STDIN_LARGE_OFFSET): New macro.
9093         * modules/stdio (Makefile.am): Perform the replacement.
9094         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
9095
9096 2007-05-23  Bruno Haible  <bruno@clisp.org>
9097
9098         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
9099         GNULIB_POSIXCHECK is defined.
9100
9101 2007-05-21  Bruno Haible  <bruno@clisp.org>
9102
9103         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
9104         Check also the output for NaN arguments. When cross-compiling, guess
9105         no on IRIX.
9106         * lib/vasnprintf.c: Update comments.
9107         * tests/test-vasnprintf-posix.c (strisnan): New function.
9108         (test_function): Use it.
9109         * tests/test-vasprintf-posix.c (strisnan): New function.
9110         (test_function): Use it.
9111         * tests/test-snprintf-posix.h (strisnan): New function.
9112         (test_function): Use it.
9113         * tests/test-sprintf-posix.h (strisnan): New function.
9114         (test_function): Use it.
9115         Reported by Eric Blake.
9116
9117 2007-05-20  Bruno Haible  <bruno@clisp.org>
9118
9119         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
9120         numbers that fails on BeOS.
9121         * doc/functions/frexpl.texi: Update.
9122
9123 2007-05-20  Jim Meyering  <jim@meyering.net>
9124
9125         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
9126         forced upon us by glibc-2.6.
9127
9128 2007-05-20  Bruno Haible  <bruno@clisp.org>
9129
9130         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
9131         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
9132         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
9133         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
9134         NEED_PRINTF_INFINITE.
9135         (is_infinitel): New function.
9136         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
9137         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
9138         gl_PREREQ_VASNPRINTF_INFINITE.
9139         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
9140         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
9141         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
9142         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
9143         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
9144         gl_PREREQ_VASNPRINTF_INFINITE.
9145         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
9146         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
9147         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
9148         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
9149         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
9150         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
9151         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
9152         * doc/functions/fprintf.texi: Update.
9153         * doc/functions/printf.texi: Update.
9154         * doc/functions/snprintf.texi: Update.
9155         * doc/functions/sprintf.texi: Update.
9156         * doc/functions/vfprintf.texi: Update.
9157         * doc/functions/vprintf.texi: Update.
9158         * doc/functions/vsnprintf.texi: Update.
9159         * doc/functions/vsprintf.texi: Update.
9160
9161 2007-05-20  Bruno Haible  <bruno@clisp.org>
9162
9163         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
9164         was not found in libc.
9165         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
9166
9167 2007-05-20  Bruno Haible  <bruno@clisp.org>
9168
9169         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
9170         printed as "-nan" instead of "nan".
9171         * tests/test-vasprintf-posix.c (test_function): Likewise.
9172         * tests/test-snprintf-posix.h (test_function): Likewise.
9173         * tests/test-sprintf-posix.h (test_function): Likewise.
9174         Needed for HP-UX 11.
9175
9176 2007-05-20  Jim Meyering  <jim@meyering.net>
9177
9178         Fix buggy test for the fchownat-deref bug.
9179         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
9180         symlink required for the run-test.  Without it, this test would
9181         always declare that fchownat doesn't work, and client code would
9182         unnecessarily use the replacement function with fixed libc.
9183         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
9184         Reported by Greg Schafer.
9185
9186 2007-05-19  Bruno Haible  <bruno@clisp.org>
9187
9188         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
9189         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
9190         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
9191         Needed for IRIX 6.5 and Solaris 2.5.1.
9192
9193 2007-05-19  Bruno Haible  <bruno@clisp.org>
9194
9195         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
9196         (test_function): Skip tests involving -0.0 on platforms where
9197         -0.0 = 0.0.
9198         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
9199         (test_function): Skip tests involving -0.0 on platforms where
9200         -0.0 = 0.0.
9201         * tests/test-snprintf-posix.h (have_minus_zero): New function.
9202         (test_function): Skip tests involving -0.0 on platforms where
9203         -0.0 = 0.0.
9204         * tests/test-sprintf-posix.h (have_minus_zero): New function.
9205         (test_function): Skip tests involving -0.0 on platforms where
9206         -0.0 = 0.0.
9207         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
9208         tests.
9209         * tests/test-printf-posix.h (test_function): Likewise.
9210         * tests/test-printf-posix.output: Remove all -0.0 related results.
9211         Needed for IRIX 6.5.
9212
9213 2007-05-19  Bruno Haible  <bruno@clisp.org>
9214
9215         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
9216         printed as "nan0x7fffffff" instead of "nan".
9217         * tests/test-vasprintf-posix.c (test_function): Likewise.
9218         * tests/test-snprintf-posix.h (test_function): Likewise.
9219         * tests/test-sprintf-posix.h (test_function): Likewise.
9220         * tests/test-fprintf-posix.h (NaN): Remove macro.
9221         (test_function): Remove all NaN related tests.
9222         * tests/test-printf-posix.h (NaN): Remove macro.
9223         (test_function): Remove all NaN related tests.
9224         * tests/test-printf-posix.output: Remove all NaN related results.
9225         Needed for IRIX 6.5.
9226
9227 2007-05-19  Bruno Haible  <bruno@clisp.org>
9228
9229         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
9230         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
9231
9232 2007-05-19  Bruno Haible  <bruno@clisp.org>
9233
9234         * lib/float_.h: New file.
9235         * m4/float_h.m4: New file.
9236         * modules/float: New file.
9237         * modules/isnanl (Dependencies): Add float.
9238         * modules/isnanl-nolibm (Dependencies): Likewise.
9239         * modules/mathl (Dependencies): Likewise.
9240         * modules/printf-frexpl (Dependencies): Likewise.
9241         * modules/signbit (Dependencies): Likewise.
9242         * modules/vasnprintf (Dependencies): Likewise.
9243         * doc/headers/float.texi: Update.
9244
9245 2007-05-19  Jim Meyering  <jim@meyering.net>
9246
9247         * lib/utimens.c (gl_futimens): Rename from futimens,
9248         now that glibc-2.6 declares futimens.
9249         * lib/utimens.h: Likewise.
9250
9251 2007-05-19  Bruno Haible  <bruno@clisp.org>
9252
9253         Avoid test failures on mingw.
9254         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
9255         * tests/test-printf-posix.sh: Likewise.
9256         * tests/test-vfprintf-posix.sh: Likewise.
9257         * tests/test-vprintf-posix.sh: Likewise.
9258
9259 2007-05-19  Bruno Haible  <bruno@clisp.org>
9260
9261         Fix *printf result for NaN, Inf, -0.0 on mingw.
9262         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
9263         * lib/vasnprintf.c: Include math.h and isnan.h.
9264         (is_infinite_or_zero): New function.
9265         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
9266         values in the %f, %F, %e, %E, %g, %G directives.
9267         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
9268         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
9269         gl_PRINTF_INFINITE and test its result. Invoke
9270         gl_PREREQ_VASNPRINTF_INFINITE.
9271         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
9272         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
9273         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
9274         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
9275         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
9276         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
9277         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
9278         * doc/functions/fprintf.texi: Update.
9279         * doc/functions/printf.texi: Update.
9280         * doc/functions/snprintf.texi: Update.
9281         * doc/functions/sprintf.texi: Update.
9282         * doc/functions/vfprintf.texi: Update.
9283         * doc/functions/vprintf.texi: Update.
9284         * doc/functions/vsnprintf.texi: Update.
9285         * doc/functions/vsprintf.texi: Update.
9286
9287 2007-05-19  Bruno Haible  <bruno@clisp.org>
9288
9289         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
9290         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
9291         Instead of multiplying with 10^k, set extra_zeroes to k.
9292         (scale10_round_long_double): Remove function.
9293
9294 2007-05-18  Bruno Haible  <bruno@clisp.org>
9295
9296         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
9297         introduced on 2007-05-06.
9298
9299 2007-05-18  Bruno Haible  <bruno@clisp.org>
9300
9301         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
9302         %g directives.
9303         * tests/test-vasprintf-posix.c (test_function): Likewise.
9304         * tests/test-snprintf-posix.h (test_function): Likewise.
9305         * tests/test-sprintf-posix.h (test_function): Likewise.
9306
9307 2007-05-18  Bruno Haible  <bruno@clisp.org>
9308
9309         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
9310         (strmatch): New function.
9311         (test_function): Test the %f directive on numbers of various exponents.
9312         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
9313         (strmatch): New function.
9314         (test_function): Test the %f directive on numbers of various exponents.
9315         * tests/test-snprintf-posix.h (strmatch): New function.
9316         (test_function): Test the %f directive on numbers of various exponents.
9317         * tests/test-sprintf-posix.h (strmatch): New function.
9318         (test_function): Test the %f directive on numbers of various exponents.
9319         * tests/test-snprintf-posix.c (SIZEOF): New macro.
9320         * tests/test-sprintf-posix.c (SIZEOF): New macro.
9321         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
9322         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
9323
9324 2007-05-18  Bruno Haible  <bruno@clisp.org>
9325
9326         Add support for 'long double' number output.
9327         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
9328         * lib/vasnprintf.c: Include math.h and float+.h.
9329         (mp_limb_t): New type.
9330         (GMP_LIMB_BITS): New macro.
9331         (mp_twolimb_t): New type.
9332         (GMP_TWOLIMB_BITS): New macro.
9333         (mpn_t): New type.
9334         (multiply, divide, convert_to_decimal, decode_long_double,
9335         scale10_round_long_double, scale10_round_decimal_long_double,
9336         floorlog10l): New functions.
9337         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
9338         for the %f, %F, %e, %E, %g, %G directives.
9339         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
9340         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
9341         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
9342         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
9343         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
9344         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
9345         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
9346         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
9347         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
9348         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
9349         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
9350         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
9351         * modules/snprintf-posix (Depends-on): Likewise.
9352         * modules/sprintf-posix (Depends-on): Likewise.
9353         * modules/vasnprintf-posix (Depends-on): Likewise.
9354         * modules/vasprintf-posix (Depends-on): Likewise.
9355         * modules/vfprintf-posix (Depends-on): Likewise.
9356         * modules/vsnprintf-posix (Depends-on): Likewise.
9357         * modules/vsprintf-posix (Depends-on): Likewise.
9358         * modules/vasnprintf (Files): Add lib/float+.h.
9359         * doc/functions/fprintf.texi: Update.
9360         * doc/functions/printf.texi: Update.
9361         * doc/functions/snprintf.texi: Update.
9362         * doc/functions/sprintf.texi: Update.
9363         * doc/functions/vfprintf.texi: Update.
9364         * doc/functions/vprintf.texi: Update.
9365         * doc/functions/vsnprintf.texi: Update.
9366         * doc/functions/vsprintf.texi: Update.
9367
9368 2007-05-18  Bruno Haible  <bruno@clisp.org>
9369
9370         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
9371
9372 2007-05-18  Bruno Haible  <bruno@clisp.org>
9373
9374         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
9375         for printing 64-bit integers. Needed for mingw.
9376
9377 2007-05-18  Bruno Haible  <bruno@clisp.org>
9378
9379         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
9380         gl_FUNC_FREXPL_WORKS.
9381         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
9382
9383 2007-05-18  Bruno Haible  <bruno@clisp.org>
9384
9385         * modules/frexpl-nolibm-tests: New file.
9386
9387         * modules/frexpl-nolibm: New file.
9388         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
9389
9390 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
9391
9392         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
9393         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
9394         GCC 4.2, which otherwise issues a lot of warnings.
9395         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
9396         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
9397         Likewise.
9398         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
9399         * modules/iconv_open (iconv.h): Likewise.
9400         * modules/locale (locale.h): Likewise.
9401         * modules/netinet_in (netinet/in.h): Likewise.
9402         * modules/sys_select (sys_select.h): Likewise.
9403         * modules/sys_socket (sys/socket.h): Likewise.
9404         * modules/sys_stat (sys/stat.h): Likewise.
9405         * modules/sysexits (sysexits.h): Likewise.
9406         * modules/unistd (unistd.h): Likewise.
9407
9408 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9409
9410         * modules/closein-tests (Makefile.am): Distribute
9411         `test-closein.sh'.
9412
9413 2007-05-17  Bruno Haible  <bruno@clisp.org>
9414
9415         * tests/test-printf-posix.output: Renamed from
9416         tests/test-fprintf-posix.out.
9417         * modules/fprintf-posix-tests: Update.
9418         * modules/printf-posix-tests: Update.
9419         * modules/vfprintf-posix-tests: Update.
9420         * modules/vprintf-posix-tests: Update.
9421         * tests/test-fprintf-posix.sh: Update.
9422         * tests/test-printf-posix.sh: Update.
9423         * tests/test-vfprintf-posix.sh: Update.
9424         * tests/test-vprintf-posix.sh: Update.
9425         Reported by Ralf Wildenhues.
9426
9427 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
9428
9429         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
9430         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
9431         GCC 4.2, which otherwise issues a lot of warnings.
9432         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
9433         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
9434         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
9435         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
9436         it should no longer be needed.
9437         * lib/string_.h: Likewise.
9438         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
9439         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
9440         * modules/inttypes (inttypes.h): Likewise.
9441         * modules/math (math.h): Likewise.
9442         * modules/search (search.h): Likewise.
9443         * modules/signal (signal.h): Likewise.
9444         * modules/stdint (stdint.h): Likewise.
9445         * modules/stdio (stdio.h): Likewise.
9446         * modules/stdlib (stdlib.h): Likewise.
9447         * modules/string (string.h): Likewise.
9448         * modules/sys_time (sys/time.h): Likewise.
9449         * modules/time (time.h): Likewise.
9450         * modules/wchar (wchar.h): Likewise.
9451         * modules/wctype (wtype.h): Likewise.
9452
9453 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
9454
9455         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
9456
9457 2007-05-13  Bruno Haible  <bruno@clisp.org>
9458
9459         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
9460         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
9461         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
9462         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
9463         (gl_PREREQ_STRTOK_R): Don't require it here.
9464
9465 2007-05-13  Bruno Haible  <bruno@clisp.org>
9466
9467         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
9468         when used in C++ mode.
9469
9470 2007-05-12  Bruno Haible  <bruno@clisp.org>
9471
9472         * lib/linebuffer.h: Tweak doc.
9473         * lib/linebuffer.c: Likewise.
9474
9475 2007-05-12  James Youngman  <jay@gnu.org>
9476
9477         * lib/linebuffer.c (readlinebuffer_delim): New function,
9478         like readlinebuffer, but use a caller-specified delimiter.
9479         (readlinebuffer): Just call readlinebuffer_delim with '\n'
9480         as the delimiter.
9481         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
9482
9483 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
9484
9485         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
9486         * modules/openat (Files): Remove openat-die.c.
9487         (Depends-on): Add openat-die.
9488         * modules/openat-die: New module.
9489
9490 2007-05-06  Bruno Haible  <bruno@clisp.org>
9491
9492         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
9493         Update with info about Cygwin.
9494         * doc/functions/fprintf.texi: Update.
9495         * doc/functions/printf.texi: Update.
9496         * doc/functions/snprintf.texi: Update.
9497         * doc/functions/sprintf.texi: Update.
9498         * doc/functions/vfprintf.texi: Update.
9499         * doc/functions/vprintf.texi: Update.
9500         * doc/functions/vsnprintf.texi: Update.
9501         * doc/functions/vsprintf.texi: Update.
9502         Reported by Eric Blake.
9503
9504 2007-05-06  Bruno Haible  <bruno@clisp.org>
9505
9506         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
9507         padding ourselves for the floating-point directives.
9508         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
9509         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
9510         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
9511         gl_PRINTF_FLAG_ZERO and test its result. Invoke
9512         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
9513         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
9514         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
9515         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
9516         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
9517         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
9518         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
9519         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
9520         * tests/test-snprintf-posix.h (test_function): Also check the width
9521         and some flags in the %f directive.
9522         * tests/test-sprintf-posix.h (test_function): Likewise.
9523         * tests/test-vasnprintf-posix.c (test_function): Likewise.
9524         * tests/test-vasprintf-posix.c (test_function): Likewise.
9525         * doc/functions/fprintf.texi: Update.
9526         * doc/functions/printf.texi: Update.
9527         * doc/functions/snprintf.texi: Update.
9528         * doc/functions/sprintf.texi: Update.
9529         * doc/functions/vfprintf.texi: Update.
9530         * doc/functions/vprintf.texi: Update.
9531         * doc/functions/vsnprintf.texi: Update.
9532         * doc/functions/vsprintf.texi: Update.
9533
9534 2007-05-06  Bruno Haible  <bruno@clisp.org>
9535
9536         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
9537         pass the ' flag character to sprintf or snprintf.
9538         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
9539         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
9540         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
9541         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
9542         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
9543         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
9544         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
9545         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
9546         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
9547         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
9548         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
9549         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
9550         * tests/test-snprintf-posix.h (test_function): Also check the grouping
9551         flag.
9552         * tests/test-sprintf-posix.h (test_function): Likewise.
9553         * tests/test-vasnprintf-posix.c (test_function): Likewise.
9554         * tests/test-vasprintf-posix.c (test_function): Likewise.
9555         * doc/functions/fprintf.texi: Update.
9556         * doc/functions/printf.texi: Update.
9557         * doc/functions/snprintf.texi: Update.
9558         * doc/functions/sprintf.texi: Update.
9559         * doc/functions/vfprintf.texi: Update.
9560         * doc/functions/vprintf.texi: Update.
9561         * doc/functions/vsnprintf.texi: Update.
9562         * doc/functions/vsprintf.texi: Update.
9563
9564 2007-05-01  Bruno Haible  <bruno@clisp.org>
9565
9566         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
9567
9568 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
9569
9570         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
9571         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
9572
9573 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
9574
9575         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
9576         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
9577         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
9578
9579 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
9580
9581         * lib/argp-help.c (struct hol_entry): New member `ord'.
9582         (HOL_ENTRY_PTRCMP): Use ord for comparison
9583         (hol_sort): Initialize ord.
9584
9585 2007-05-01  Bruno Haible  <bruno@clisp.org>
9586
9587         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
9588         Reported by Eric Blake.
9589         * doc/gnulib.texi (Function Substitutes): Update.
9590
9591 2007-05-01  Bruno Haible  <bruno@clisp.org>
9592
9593         * doc/functions.texi: Remove file, now redundant through
9594         doc/functions/*.texi.
9595
9596 2007-05-01  Bruno Haible  <bruno@clisp.org>
9597
9598         * modules/argp (Depends-on): Add sleep.
9599
9600 2007-05-01  Bruno Haible  <bruno@clisp.org>
9601
9602         * modules/sleep-tests: New file.
9603         * tests/test-sleep.c: New file.
9604
9605         * modules/sleep: New file.
9606         * lib/sleep.c: New file.
9607         * m4/sleep.m4: New file.
9608         * lib/unistd_.h (sleep): New declaration.
9609         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
9610         HAVE_SLEEP.
9611         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
9612         * doc/functions/sleep.texi: Document the sleep module.
9613
9614 2007-05-01  Bruno Haible  <bruno@clisp.org>
9615
9616         * lib/sigprocmask.h: Remove file.
9617         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
9618         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
9619         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
9620         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
9621         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
9622         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
9623         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
9624         HAVE_SIGSET_T as a shell variable.
9625         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
9626         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
9627         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
9628         (Depends-on): Add signal. Remove verify.
9629         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
9630         (Include): Mention <signal.h> instead of sigprocmask.h.
9631         * NEWS: Mention the change.
9632         * lib/fatal-signal.c: Don't include sigprocmask.h.
9633
9634 2007-05-01  Bruno Haible  <bruno@clisp.org>
9635
9636         * modules/signal: New file.
9637         * lib/signal_.h: New file.
9638         * m4/signal_h.m4: New file.
9639
9640 2007-05-01  Bruno Haible  <bruno@clisp.org>
9641
9642         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
9643         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
9644         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
9645         HAVE_WCTYPE_CTMP_BUG into wctype.h.
9646
9647 2007-05-01  Bruno Haible  <bruno@clisp.org>
9648
9649         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
9650         configure time.
9651         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
9652         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
9653         * modules/sys_stat (Makefile.am): Substitute their values into
9654         sys/stat.h.
9655
9656 2007-05-01  Bruno Haible  <bruno@clisp.org>
9657
9658         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
9659         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
9660         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
9661
9662 2007-05-01  Bruno Haible  <bruno@clisp.org>
9663
9664         * doc/header/assert.texi: Undo last change: don't mention the gnulib
9665         'assert' module here.
9666
9667 2007-05-01  Bruno Haible  <bruno@clisp.org>
9668
9669         * doc/functions/*.texi: New files.
9670         * doc/functions/google-ranking.txt: New file.
9671         * doc/gnulib.texi (Function Substitutes): New chapter.
9672         (ctime, inet_ntoa): Remove sections.
9673         * doc/ctime.texi: Remove file.
9674         * doc/inet_ntoa.texi: Remove file.
9675         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
9676         dependencies.
9677         (%.info): New rule, specifying a --reference-limit.
9678
9679 2007-05-01  Bruno Haible  <bruno@clisp.org>
9680
9681         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
9682
9683 2007-05-01  Bruno Haible  <bruno@clisp.org>
9684
9685         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
9686         the portability of 'mkdir' to mingw systems.
9687
9688 2007-05-01  Bruno Haible  <bruno@clisp.org>
9689
9690         * doc/headers/google-ranking.txt: New file.
9691
9692 2007-04-30  Eric Blake  <ebb9@byu.net>
9693
9694         Prefer fseeko to fseek.
9695         * modules/getpass (Depends-on): Add fseeko.
9696         * lib/getpass.c (getpass): Use fseeko, not fseek.
9697
9698 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
9699
9700         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
9701         assumes the sorting is stable, while most qsort implementations
9702         are not.  Use argument addresses to ensure they never compare as
9703         equal.
9704
9705         * tests/test-argp-2.sh (usage-indent test): Fix output
9706         (func_compare): Restore diff options
9707         * tests/test-argp.c: Restore #include "progname.h"
9708
9709 2007-04-29  Bruno Haible  <bruno@clisp.org>
9710
9711         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
9712         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
9713         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
9714         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
9715         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
9716         (configure.ac): Define CHECK_SNPRINTF_POSIX.
9717         (TESTS, check_PROGRAMS): Add test-snprintf.
9718         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
9719         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
9720         (TESTS, check_PROGRAMS): Add test-vsnprintf.
9721         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
9722         assertions that fail on HP-UX, OSF/1, or IRIX.
9723         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
9724
9725 2007-04-29  Bruno Haible  <bruno@clisp.org>
9726
9727         * MODULES.html.sh (posix_functions): Remove 'contents'.
9728
9729 2007-04-29  Karl Berry  <karl@gnu.org>
9730
9731         * config/srclist.txt (gendocs_template_min): new entry.
9732
9733 2007-04-29  Bruno Haible  <bruno@clisp.org>
9734
9735         Work around fpurge bug on BSD systems.
9736         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
9737         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
9738         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
9739         fpurge to rpl_fpurge if the system already has this function.
9740         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
9741         the case where the system already has this function. Correct invariants
9742         on BSD systems.
9743         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
9744         BSD systems.
9745
9746 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
9747
9748         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
9749         proposed by Sven Verdoolaege.
9750
9751         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
9752         options.
9753         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
9754         (usage and help tests): Update
9755
9756 2007-04-29  Bruno Haible  <bruno@clisp.org>
9757
9758         * tests/test-fflush.c (main): Use a file of size 17, not 10.
9759         Print more information in case of failure. Disable a test on BeOS.
9760
9761 2007-04-29  Bruno Haible  <bruno@clisp.org>
9762
9763         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
9764         This helps debugging on systems on which no gdb is available.
9765
9766 2007-04-29  Bruno Haible  <bruno@clisp.org>
9767
9768         * lib/freading.h: Improve comments.
9769         * lib/fwriting.h: Likewise.
9770         * tests/test-freading.c (main): Don't check freading immediately after
9771         repositioning. Needed for glibc.
9772
9773 2007-04-29  Bruno Haible  <bruno@clisp.org>
9774
9775         * lib/freading.c (freading): Trivial simplification.
9776
9777 2007-04-28  Bruno Haible  <bruno@clisp.org>
9778
9779         * tests/test-fwriting.c (main): Also test the interaction between
9780         fflush and fwriting.
9781         * modules/fwriting-tests (Depends-on): Add fflush.
9782
9783         * tests/test-freading.c (main): Also test the interaction between
9784         fflush and freading.
9785         * modules/freading-tests (Depends-on): Add fflush.
9786
9787 2007-04-28  Bruno Haible  <bruno@clisp.org>
9788
9789         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
9790         fseeko and ftello.
9791         Suggested by Eric Blake.
9792
9793 2007-04-28  Jim Meyering  <jim@meyering.net>
9794
9795         Avoid false-negative in gl_STDINT_H's C99 conformance test.
9796         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
9797         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
9798
9799 2007-04-27  Eric Blake  <ebb9@byu.net>
9800
9801         * doc/headers/assert.texi (assert.h): Document assert module use.
9802
9803 2007-04-27  Bruno Haible  <bruno@clisp.org>
9804
9805         * doc/headers/*.texi: New files.
9806         * doc/gnulib.texi (Header File Substitutes): New chapter.
9807         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
9808         dependencies.
9809         (standards.info ,standards.html, standards.dvi): Update dependencies.
9810         (mostlyclean, clean): New targets.
9811
9812 2007-04-27  Bruno Haible  <bruno@clisp.org>
9813
9814         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
9815         * modules/sysexits (Files, Makefile.am): Update.
9816
9817         * lib/sys_socket_.h: Renamed from lib/socket_.h.
9818         * modules/sys_socket (Files, Makefile.am): Update.
9819
9820         * lib/sys_stat_.h: Renamed from lib/stat_.h.
9821         * modules/sys_stat (Files, Makefile.am): Update.
9822
9823 2007-04-27  Eric Blake  <ebb9@byu.net>
9824
9825         * lib/freading.h: Improve comments.
9826         * lib/fwriting.h: Likewise.
9827         * lib/fflush.c: Likewise.
9828
9829         Fix closein for mingw.
9830         * modules/closein-tests: Add tests for closein.
9831         * tests/test-closein.c: New file.
9832         * tests/test-closein.sh: Likewise.
9833         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
9834         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
9835
9836 2007-04-27  Bruno Haible  <bruno@clisp.org>
9837
9838         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
9839         version is < 6.
9840         * lib/math_.h [__DECC]: Likewise.
9841         * lib/stdio_.h [__DECC]: Likewise.
9842         * lib/stdlib_.h [__DECC]: Likewise.
9843         * lib/string_.h [__DECC]: Likewise.
9844         * lib/time_.h [__DECC]: Likewise.
9845         * lib/wchar_.h [__DECC]: Likewise.
9846         * lib/wctype_.h [__DECC]: Likewise.
9847
9848 2007-04-27  Bruno Haible  <bruno@clisp.org>
9849
9850         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
9851
9852 2007-04-27  Bruno Haible  <bruno@clisp.org>
9853
9854         * lib/fflush.c: Add comments.
9855         * modules/fpurge-tests (Depends-on): Add fflush.
9856         * modules/freadable-tests (Depends-on): Likewise.
9857         * modules/fwritable-tests (Depends-on): Likewise.
9858
9859 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
9860
9861         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
9862         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
9863         Report by Bruno Haible <bruno@clisp.org>.
9864
9865 2007-04-26  Eric Blake  <ebb9@byu.net>
9866
9867         Fix fflush on mingw.
9868         * modules/fflush (Depends-on): Add freading.
9869         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
9870         but unread data.
9871
9872 2007-04-26  Eric Blake  <ebb9@byu.net>
9873         and Bruno Haible  <bruno@clisp.org>
9874
9875         Implement freading and fwriting.
9876         * lib/freading.c: New file.
9877         * lib/freading.h: Likewise.
9878         * m4/freading.m4: Likewise.
9879         * modules/freading: Likewise.
9880         * modules/freading-tests: Likewise.
9881         * tests/test-freading.c: Likewise.
9882         * lib/fwriting.c: New file.
9883         * lib/fwriting.h: Likewise.
9884         * m4/fwriting.m4: Likewise.
9885         * modules/fwriting: Likewise.
9886         * modules/fwriting-tests: Likewise.
9887         * tests/test-fwriting.c: Likewise.
9888         * MODULES.html.sh (File stream based Input/Output): Mention them.
9889
9890 2007-04-26  Bruno Haible  <bruno@clisp.org>
9891
9892         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
9893         'long' when we assume it.
9894         Suggested by Eric Blake.
9895
9896 2007-04-26  Bruno Haible  <bruno@clisp.org>
9897
9898         Ensure fseeko, ftello are declared on glibc systems.
9899         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
9900         * modules/fseeko (configure.ac-early): Likewise.
9901         * modules/ftello (configure.ac-early): Likewise.
9902         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
9903         AC_FUNC_FSEEKO for this.
9904         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
9905         (gl_CHECK_FSEEKO): Remove macro.
9906
9907 2007-04-26  Bruno Haible  <bruno@clisp.org>
9908
9909         * tests/test-fflush.c (main): Also check the ftell result after
9910         fflush and fseek/fseeko.
9911         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
9912         file descriptor position cache in the stream.
9913         * lib/fseeko.c (rpl_fseeko): Likewise.
9914
9915 2007-04-26  Bruno Haible  <bruno@clisp.org>
9916
9917         * modules/fflush-tests (Depends-on): Add fseeko.
9918
9919 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
9920             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9921
9922         * lib/argz_.h: ensure error_t definition is obtained in same
9923         mechanism system argz.h would have.
9924         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
9925         argz facilities are known bad.  Err on the side of caution if
9926         cross-compiling.
9927
9928 2007-04-25  Eric Blake  <ebb9@byu.net>
9929
9930         * lib/fpurge.c (includes): Use stdlib.h for free.
9931         * tests/test-fflush.c (main): Also test fflush-fseeko.
9932
9933 2007-04-25  Bruno Haible  <bruno@clisp.org>
9934
9935         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
9936         * lib/fseeko.c: New file.
9937         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
9938         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
9939         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
9940         gl_FUNC_FSEEKO.
9941         (gl_FUNC_FSEEKO): Invoke it.
9942         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
9943         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
9944         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
9945
9946 2007-04-25  Bruno Haible  <bruno@clisp.org>
9947
9948         * modules/fflush (Depends-on): Add ftello.
9949
9950 2007-04-25  Bruno Haible  <bruno@clisp.org>
9951
9952         * modules/ftello-tests: New file.
9953         * tests/test-ftello.c: New file.
9954
9955         * modules/ftello: New file.
9956         * m4/ftello.m4: New file.
9957         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
9958         HAVE_FTELLO.
9959         * lib/stdio_.h (ftello): New declaration.
9960         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
9961         HAVE_FTELLO.
9962
9963 2007-04-25  Bruno Haible  <bruno@clisp.org>
9964
9965         * modules/fseeko-tests: New file.
9966         * tests/test-fseeko.c: New file.
9967
9968         * modules/fseeko: New file.
9969         * m4/fseeko.m4: New file.
9970         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
9971         HAVE_FSEEKO.
9972         * lib/stdio_.h (fseeko): New declaration.
9973         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
9974         HAVE_FSEEKO.
9975
9976 2007-04-25  Bruno Haible  <bruno@clisp.org>
9977
9978         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
9979
9980 2007-04-25  Bruno Haible  <bruno@clisp.org>
9981
9982         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
9983         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
9984         * tests/test-unistd.c: Likewise.
9985         * tests/test-fcntl.c: Likewise.
9986
9987 2007-04-23  Eric Blake  <ebb9@byu.net>
9988
9989         * lib/fflush.c: Fix missing include.
9990         Reported by Bruno Haible.
9991
9992 2007-04-23  Bruno Haible  <bruno@clisp.org>
9993
9994         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
9995         Reported by Eric Blake.
9996
9997 2007-04-23  Bruno Haible  <bruno@clisp.org>
9998
9999         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
10000
10001 2007-04-23  Bruno Haible  <bruno@clisp.org>
10002
10003         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
10004
10005 2007-04-23  Bruno Haible  <bruno@clisp.org>
10006
10007         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
10008         Needed on HP-UX 11.
10009
10010 2007-04-16  Eric Blake  <ebb9@byu.net>
10011
10012         Make fflush rely on fpurge.
10013         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
10014         open coding all variants.
10015         * modules/fflush (Depends-on): Add fpurge and unistd.
10016         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
10017         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
10018
10019         Fix --with-tests compilation on cygwin.
10020         * modules/argmatch-tests (Makefile.am): List gnulib library first
10021         in LDADD.
10022         * modules/argp-tests (Makefile.am): Likewise.
10023         * modules/array-list-tests (Makefile.am): Likewise.
10024         * modules/array-oset-tests (Makefile.am): Likewise.
10025         * modules/avltree-list-tests (Makefile.am): Likewise.
10026         * modules/avltree-oset-tests (Makefile.am): Likewise.
10027         * modules/avltreehash-list-tests (Makefile.am): Likewise.
10028         * modules/carray-list-tests (Makefile.am): Likewise.
10029         * modules/dirname-tests (Makefile.am): Likewise.
10030         * modules/frexp-tests (Makefile.am): Likewise.
10031         * modules/isnanl-tests (Makefile.am): Likewise.
10032         * modules/linked-list-tests (Makefile.am): Likewise.
10033         * modules/linkedhash-list-tests (Makefile.am): Likewise.
10034         * modules/lock-tests (Makefile.am): Likewise.
10035         * modules/rbtree-list-tests (Makefile.am): Likewise.
10036         * modules/rbtree-oset-tests (Makefile.am): Likewise.
10037         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
10038         * modules/tls-tests (Makefile.am): Likewise.
10039         * modules/tsearch-tests (Makefile.am): Likewise.
10040         * modules/xvasprintf-tests (Makefile.am): Likewise.
10041
10042         Fix fpurge for cygwin.
10043         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
10044         value.
10045         * modules/fpurge-tests (Depends-on): Clean up trash.
10046
10047 2007-04-16  Simon Josefsson  <simon@josefsson.org>
10048
10049         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
10050
10051         * m4/autobuild.m4: Re-indent.
10052
10053 2007-04-13  Bruno Haible  <bruno@clisp.org>
10054
10055         * modules/fpurge-tests: New file.
10056         * tests/test-fpurge.c: New file.
10057
10058         * modules/fpurge: New file.
10059         * lib/fpurge.h: New file.
10060         * lib/fpurge.c: New file.
10061         * m4/fpurge.m4: New file.
10062
10063 2007-04-13  Bruno Haible  <bruno@clisp.org>
10064
10065         * modules/fbufmode-tests: New file.
10066         * tests/test-fbufmode.c: New file.
10067
10068         * modules/fbufmode: New file.
10069         * lib/fbufmode.h: New file.
10070         * lib/fbufmode.c: New file.
10071         * m4/fbufmode.m4: New file.
10072
10073 2007-04-13  Bruno Haible  <bruno@clisp.org>
10074
10075         * modules/fwritable-tests: New file.
10076         * tests/test-fwritable.c: New file.
10077
10078         * modules/fwritable: New file.
10079         * lib/fwritable.h: New file.
10080         * lib/fwritable.c: New file.
10081         * m4/fwritable.m4: New file.
10082
10083 2007-04-13  Bruno Haible  <bruno@clisp.org>
10084
10085         * modules/freadable-tests: New file.
10086         * tests/test-freadable.c: New file.
10087
10088         * modules/freadable: New file.
10089         * lib/freadable.h: New file.
10090         * lib/freadable.c: New file.
10091         * m4/freadable.m4: New file.
10092
10093 2007-04-13  Bruno Haible  <bruno@clisp.org>
10094
10095         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
10096         MOSTLYCLEANFILES.
10097
10098 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
10099
10100         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
10101         gzip bootstrap.conf to avoid dragging in i18n machinery.
10102         (gnulib_tool_option): Use it.
10103
10104 2007-04-13  Bruno Haible  <bruno@clisp.org>
10105
10106         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
10107         %F directives.
10108         * tests/test-vasprintf-posix.c (test_function): Likewise.
10109         * tests/test-snprintf-posix.h (test_function): Likewise.
10110         * tests/test-sprintf-posix.h (test_function): Likewise.
10111         * tests/test-fprintf-posix.h (test_function): Likewise.
10112         * tests/test-printf-posix.h (test_function): Likewise.
10113         * tests/test-fprintf-posix.out: Likewise.
10114
10115 2007-04-13  Bruno Haible  <bruno@clisp.org>
10116
10117         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
10118         * modules/tls-tests (configure.ac): Likewise.
10119         Reported by Arto C. Nirkko <anirkko@insel.ch>.
10120
10121 2007-04-13  Bruno Haible  <bruno@clisp.org>
10122
10123         * lib/tls.c (glthread_tls_get): Fix return type.
10124         Patch by Arto C. Nirkko <anirkko@insel.ch>.
10125
10126 2007-04-12  Eric Blake  <ebb9@byu.net>
10127
10128         * modules/gettime (Depends-on): Remove gettime.
10129         Reported by Dmitry V. Levin.
10130
10131 2007-04-12  Bruno Haible  <bruno@clisp.org>
10132
10133         * modules/fflush (Include): Mention <stdio.h>.
10134         * modules/strtoimax (Include): Mention <inttypes.h>.
10135         * modules/strtoumax (Include): Likewise.
10136
10137 2007-04-12  Eric Blake  <ebb9@byu.net>
10138
10139         * .cvsignore: New file.
10140         * .gitignore: Likewise.
10141
10142 2007-04-12  Bruno Haible  <bruno@clisp.org>
10143
10144         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
10145         not before, since $(LDADD) often contains libgnu.a.
10146         * modules/striconv-tests (test_striconv_LDADD): Likewise.
10147         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
10148         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
10149         Needed on Cygwin.
10150
10151 2007-04-12  Eric Blake  <ebb9@byu.net>
10152
10153         Work around glibc's failure to flush stdin on fclose.
10154         * lib/closein.c (close_stdin): Flush stdin before closing.
10155
10156         Work around glibc's failure to reset seekable stdin on exit.
10157         * modules/closein: New module.
10158         * lib/closein.c: New file.
10159         * lib/closein.h: Likewise.
10160         * m4/closein.m4: Likewise.
10161         * MODULES.html.sh (File stream based Input/Output): Document it.
10162
10163 2007-04-12  Simon Josefsson  <simon@josefsson.org>
10164
10165         * gnulib-tool: Rename generated 'autobuild' script to
10166         'do-autobuild' in --create-megatestdir output.
10167
10168         * doc/gnulib.texi (Build robot for gnulib): Fix.
10169
10170 2007-04-12  Simon Josefsson  <simon@josefsson.org>
10171
10172         * modules/sysexits (Depends-on): Add absolute-header.
10173
10174 2007-04-12  Eric Blake  <ebb9@byu.net>
10175
10176         No need to preserve errno on success.
10177         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
10178         Reported by Bruno Haible.
10179
10180 2007-04-12  Simon Josefsson  <simon@josefsson.org>
10181
10182         * MODULES.html.sh (Support for maintaining and releasing
10183         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
10184
10185 2007-04-12  Simon Josefsson  <simon@josefsson.org>
10186
10187         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
10188
10189 2007-04-12  Simon Josefsson  <simon@josefsson.org>
10190
10191         * modules/autobuild: New module.
10192
10193         * m4/autobuild.m4: New file.
10194
10195 2007-04-11  Bruno Haible  <bruno@clisp.org>
10196
10197         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
10198         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
10199         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
10200         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
10201         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
10202         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
10203         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
10204         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
10205         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
10206         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
10207         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
10208         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
10209         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
10210         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
10211         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
10212         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
10213         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
10214         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
10215         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
10216         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
10217         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
10218         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
10219         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
10220         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
10221         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
10222         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
10223         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
10224         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
10225         Reported by Eric Blake.
10226
10227 2007-04-11  Bruno Haible  <bruno@clisp.org>
10228
10229         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
10230
10231 2007-04-10  Bruno Haible  <bruno@clisp.org>
10232
10233         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
10234         for NaN and Infinity. Needed on FreeBSD 6.1.
10235         * tests/test-vasnprintf-posix.c (test_function): Undo last change
10236         regarding results for "%010a" of Infinity and NaN.
10237         * tests/test-vasprintf-posix.c (test_function): Likewise.
10238         * tests/test-snprintf-posix.h (test_function): Likewise.
10239         * tests/test-sprintf-posix.h (test_function): Likewise.
10240         * tests/test-fprintf-posix.h (test_function): Likewise.
10241         * tests/test-printf-posix.h (test_function): Likewise.
10242         * tests/test-fprintf-posix.out: Likewise.
10243
10244 2007-04-10  Bruno Haible  <bruno@clisp.org>
10245
10246         * modules/locale-tests: New file.
10247         * tests/test-locale.c: New file.
10248
10249         * modules/locale: New file.
10250         * lib/locale_.h: New file.
10251         * m4/locale_h.m4: New file.
10252
10253 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
10254             Bruno Haible  <bruno@clisp.org>
10255
10256         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
10257         be determined, test for availability of the copysignf, copysign,
10258         copysignl functions.
10259         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
10260         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
10261         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
10262
10263 2007-04-09  Eric Blake  <ebb9@byu.net>
10264
10265         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
10266         * modules/stdio (Makefile.am): Support fflush.
10267         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
10268         * modules/fflush: New file.
10269         * lib/fflush.c: Likewise.
10270         * m4/fflush.m4: Likewise.
10271         * modules/fflush-tests: New test.
10272         * tests/test-fflush.c: Likewise.
10273         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
10274
10275 2007-04-06  Bruno Haible  <bruno@clisp.org>
10276
10277         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
10278         (VASNPRINTF): Use signbit for faster determination whether to print a
10279         minus sign.
10280         * modules/vasnprintf (Files): Remove lib/float+.h.
10281         * modules/fprintf-posix (Depends-on): Add signbit.
10282         * modules/snprintf-posix (Depends-on): Likewise.
10283         * modules/sprintf-posix (Depends-on): Likewise.
10284         * modules/vasnprintf-posix (Depends-on): Likewise.
10285         * modules/vasprintf-posix (Depends-on): Likewise.
10286         * modules/vfprintf-posix (Depends-on): Likewise.
10287         * modules/vsnprintf-posix (Depends-on): Likewise.
10288         * modules/vsprintf-posix (Depends-on): Likewise.
10289
10290 2007-04-06  Bruno Haible  <bruno@clisp.org>
10291
10292         * tests/test-frexp.c (main): Test also the sign bit of zero results.
10293         * tests/test-frexpl.c (main): Likewise.
10294         * tests/test-ldexpl.c (main): Likewise.
10295         * modules/frexp-tests (Depends-on): Add signbit.
10296         * modules/frexpl-tests (Depdends-on): Likewise.
10297         * modules/ldexpl-tests (Depdends-on): Likewise.
10298
10299 2007-04-06  Bruno Haible  <bruno@clisp.org>
10300
10301         * modules/signbit-tests: New file.
10302         * tests/test-signbit.c: New file.
10303
10304         * modules/signbit: New file.
10305         * lib/signbitf.c: New file.
10306         * lib/signbitd.c: New file.
10307         * lib/signbitl.c: New file.
10308         * m4/signbit.m4: New file.
10309         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
10310         (signbit): New macro.
10311         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
10312         REPLACE_SIGNBIT.
10313         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
10314         REPLACE_FREXPL into math.h.
10315
10316 2007-04-06  Bruno Haible  <bruno@clisp.org>
10317
10318         * modules/isnanf-nolibm-tests: New file.
10319         * tests/test-isnanf.c: New file.
10320
10321         * modules/isnanf-nolibm: New file.
10322         * lib/isnanf.h: New file.
10323         * lib/isnanf.c: New file.
10324         * lib/isnan.c: Consider the USE_FLOAT macro.
10325         * m4/isnanf.m4: New file.
10326
10327 2007-04-06  Bruno Haible  <bruno@clisp.org>
10328
10329         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
10330         (Link): New section.
10331
10332         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
10333
10334 2007-04-06  Bruno Haible  <bruno@clisp.org>
10335
10336         Assume the 'long double' type.
10337         * m4/longdouble.m4: Remove file.
10338         * config/srclist.txt: Don't mention longdouble.m4.
10339         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
10340         * lib/float+.h: Likewise.
10341         * lib/frexp.c: Likewise.
10342         * lib/printf-args.h: Likewise.
10343         * lib/printf-args.c: Likewise.
10344         * lib/printf-frexp.c: Likewise.
10345         * lib/printf-parse.c: Likewise.
10346         * lib/vasnprintf.c: Likewise.
10347         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
10348         * m4/intl.m4: Likewise.
10349         * m4/isnanl.m4: Likewise.
10350         * m4/printf.m4: Likewise.
10351         * m4/printf-frexpl.m4: Likewise.
10352         * m4/vasnprintf.m4: Likewise.
10353         * modules/allocsa (Files): Remove m4/longdouble.m4.
10354         * modules/gettext (Files): Likewise.
10355         * modules/relocatable-prog-wrapper (Files): Likewise.
10356         * modules/vasnprintf (Files): Likewise.
10357         * modules/isnanl (Files): Likewise.
10358         (Include): Simplify.
10359         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
10360         (Include): Simplify.
10361         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
10362         (Include): Simplify.
10363         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
10364         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
10365         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
10366         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
10367         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
10368         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
10369         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
10370         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
10371         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
10372         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
10373         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
10374         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
10375         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
10376         * tests/test-isnanl.c: Likewise.
10377         * tests/test-snprintf-posix.h: Likewise.
10378         * tests/test-sprintf-posix.h: Likewise.
10379         * tests/test-vasnprintf-posix.c: Likewise.
10380         * tests/test-vasnprintf-posix2.c: Likewise.
10381         * tests/test-vasprintf-posix.c: Likewise.
10382
10383 2007-04-06  Bruno Haible  <bruno@clisp.org>
10384
10385         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
10386         * lib/math_.h [__DECC]: Include the overridden include file through
10387         #include_next, outside the double-inclusion guard.
10388         * lib/stdio_.h [__DECC]: Likewise.
10389         * lib/stdlib_.h [__DECC]: Likewise.
10390         * lib/string_.h [__DECC]: Likewise.
10391         * lib/time_.h [__DECC]: Likewise.
10392         * lib/wchar_.h [__DECC]: Likewise.
10393         * lib/wctype_.h [__DECC]: Likewise.
10394         * lib/inttypes_.h [__DECC]: Likewise.
10395         Reported by Albert Chin <china@thewrittenword.com> in
10396         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
10397
10398 2007-04-04  Eric Blake  <ebb9@byu.net>
10399
10400         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
10401         1.5.x.
10402
10403 2007-04-04  Bruno Haible  <bruno@clisp.org>
10404
10405         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
10406         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
10407
10408 2007-04-04  Bruno Haible  <bruno@clisp.org>
10409
10410         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
10411         results for "%010a" of Infinity and NaN.
10412         * tests/test-vasprintf-posix.c (test_function): Likewise.
10413         * tests/test-snprintf-posix.h (test_function): Likewise.
10414         * tests/test-sprintf-posix.h (test_function): Likewise.
10415         * tests/test-fprintf-posix.h (test_function): Remove these tests.
10416         * tests/test-printf-posix.h (test_function): Likewise.
10417         * tests/test-fprintf-posix.out: Update.
10418         Needed for FreeBSD 6.1.
10419
10420 2007-04-04  Bruno Haible  <bruno@clisp.org>
10421
10422         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
10423         directly used by the gnulib modules nor by gnulib-tool.
10424
10425 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
10426
10427         * DEPENDENCIES: Give overall description of version dependency
10428         desirability.  Use more-typical names for apps.
10429         Add shell, coreutils, diffutils, grep, tar, gzip.
10430
10431 2007-04-04  Simon Josefsson  <simon@josefsson.org>
10432
10433         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
10434
10435 2007-04-04  Karl Berry  <karl@gnu.org>
10436
10437         * MODULES.html.sh (func_module): missing '.
10438
10439 2007-04-03  Bruno Haible  <bruno@clisp.org>
10440
10441         * modules/argmatch-tests (Makefile.am): New variable
10442         test_argmatch_LDADD.
10443         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
10444         * modules/array-list-tests (Makefile.am): New variable
10445         test_array_list_LDADD.
10446         * modules/array-oset-tests (Makefile.am): New variable
10447         test_array_oset_LDADD.
10448         * modules/avltree-list-tests (Makefile.am): New variable
10449         test_avltree_list_LDADD.
10450         * modules/avltree-oset-tests (Makefile.am): New variable
10451         test_avltree_oset_LDADD.
10452         * modules/avltreehash-list-tests (Makefile.am): New variable
10453         test_avltreehash_list_LDADD.
10454         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
10455         test_canonicalize_lgpl_LDADD.
10456         * modules/carray-list-tests (Makefile.am): New variable
10457         test_carray_list_LDADD.
10458         * modules/dirname-tests (Makefile.am): New variable
10459         test_dirname_LDADD.
10460         * modules/linked-list-tests (Makefile.am): New variable
10461         test_linked_list_LDADD.
10462         * modules/linkedhash-list-tests (Makefile.am): New variable
10463         test_linkedhash_list_LDADD.
10464         * modules/rbtree-list-tests (Makefile.am): New variable
10465         test_rbtree_list_LDADD.
10466         * modules/rbtree-oset-tests (Makefile.am): New variable
10467         test_rbtree_oset_LDADD.
10468         * modules/rbtreehash-list-tests (Makefile.am): New variable
10469         test_rbtreehash_list_LDADD.
10470         * modules/xvasprintf-tests (Makefile.am): New variable
10471         test_xvasprintf_LDADD.
10472         Reported by Eric Blake.
10473
10474 2007-04-03  Eric Blake  <ebb9@byu.net>
10475
10476         * DEPENDENCIES: Weaken m4 requirements.
10477
10478 2007-04-03  Bruno Haible  <bruno@clisp.org>
10479
10480         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
10481         * modules/isnanl-tests (configure.ac): Likewise.
10482
10483 2007-04-03  Ben Pfaff  <blp@gnu.org>
10484
10485         * modules/iconv_open: Add $(srcdir)/ to source directory
10486         references in Makefile fragments that call gperf, to fix VPATH
10487         builds.
10488
10489 2007-04-03  Bruno Haible  <bruno@clisp.org>
10490
10491         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
10492         * lib/ldexpl.c: Undo last change.
10493
10494 2007-04-03  Bruno Haible  <bruno@clisp.org>
10495
10496         * modules/printf-frexpl (Depends-on): Undo last change.
10497         (Files): Add m4/ldexpl.m4.
10498
10499 2007-04-03  Bruno Haible  <bruno@clisp.org>
10500
10501         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
10502         * modules/isnanl (Link): New section.
10503
10504         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
10505         * modules/frexp (Link): New section.
10506
10507         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
10508         * modules/frexpl (Link): New section.
10509
10510         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
10511         * modules/ldexpl (Link): New section.
10512
10513 2007-04-03  Bruno Haible  <bruno@clisp.org>
10514
10515         * modules/TEMPLATE-EXTENDED: New file.
10516         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
10517
10518 2007-04-03  Bruno Haible  <bruno@clisp.org>
10519
10520         * DEPENDENCIES: New file.
10521         Suggested by Simon Josefsson.
10522
10523 2007-04-03  Bruno Haible  <bruno@clisp.org>
10524
10525         * doc/gnulib.texi: Escape @.
10526
10527 2007-04-03  James Youngman  <jay@gnu.org>
10528         and Paul Eggert  <eggert@cs.ucla.edu>
10529
10530         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
10531         birthtime on all systems that have birthtime, not just those which
10532         use st_birthtimensec rather than st_birthtim.  Putting zero in
10533         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
10534         that the birth time is not available for files on an NFS mount.
10535
10536 2007-04-03  Simon Josefsson  <simon@josefsson.org>
10537
10538         * modules/memxor: Move back from crypto/, suggested by Bruno.
10539         * modules/crypto/hmac-sha1: Fix memxor dependency.
10540
10541         * modules/crypto/gc: Moved from ../.
10542
10543 2007-04-02  Eric Blake  <ebb9@byu.net>
10544
10545         * lib/ldexpl.c (includes): Avoid libm.
10546
10547         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
10548
10549 2007-04-02  Bruno Haible  <bruno@clisp.org>
10550
10551         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
10552         on IRIX.
10553
10554 2007-04-02  Bruno Haible  <bruno@clisp.org>
10555
10556         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
10557         x86 or x86_64 platforms running MacOS X.
10558         Reported by Ryan Schmidt <@ryandesign.com>.
10559
10560 2007-04-02  Bruno Haible  <bruno@clisp.org>
10561
10562         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
10563         i386.
10564
10565 2007-04-01  Simon Josefsson  <simon@josefsson.org>
10566
10567         * modules/crypto/arcfour: Moved from ../.
10568         * modules/crypto/arcfour-tests: Moved from ../.
10569         * modules/crypto/arctwo: Moved from ../.
10570         * modules/crypto/arctwo-tests: Moved from ../.
10571         * modules/crypto/des: Moved from ../.
10572         * modules/crypto/des-tests: Moved from ../.
10573         * modules/crypto/gc-arcfour: Moved from ../.
10574         * modules/crypto/gc-arcfour-tests: Moved from ../.
10575         * modules/crypto/gc-arctwo: Moved from ../.
10576         * modules/crypto/gc-arctwo-tests: Moved from ../.
10577         * modules/crypto/gc-des: Moved from ../.
10578         * modules/crypto/gc-des-tests: Moved from ../.
10579         * modules/crypto/gc-hmac-md5: Moved from ../.
10580         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
10581         * modules/crypto/gc-hmac-sha1: Moved from ../.
10582         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
10583         * modules/crypto/gc-md2: Moved from ../.
10584         * modules/crypto/gc-md2-tests: Moved from ../.
10585         * modules/crypto/gc-md4: Moved from ../.
10586         * modules/crypto/gc-md4-tests: Moved from ../.
10587         * modules/crypto/gc-md5: Moved from ../.
10588         * modules/crypto/gc-md5-tests: Moved from ../.
10589         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
10590         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
10591         * modules/crypto/gc-random: Moved from ../.
10592         * modules/crypto/gc-rijndael: Moved from ../.
10593         * modules/crypto/gc-rijndael-tests: Moved from ../.
10594         * modules/crypto/gc-sha1: Moved from ../.
10595         * modules/crypto/gc-sha1-tests: Moved from ../.
10596         * modules/crypto/gc-tests: Moved from ../.
10597         * modules/crypto/hmac-md5: Moved from ../.
10598         * modules/crypto/hmac-md5-tests: Moved from ../.
10599         * modules/crypto/hmac-sha1: Moved from ../.
10600         * modules/crypto/hmac-sha1-tests: Moved from ../.
10601         * modules/crypto/md2: Moved from ../.
10602         * modules/crypto/md2-tests: Moved from ../.
10603         * modules/crypto/md4: Moved from ../.
10604         * modules/crypto/md4-tests: Moved from ../.
10605         * modules/crypto/md5: Moved from ../.
10606         * modules/crypto/md5-tests: Moved from ../.
10607         * modules/crypto/memxor: Moved from ../.
10608         * modules/crypto/rijndael: Moved from ../.
10609         * modules/crypto/rijndael-tests: Moved from ../.
10610         * modules/crypto/sha1: Moved from ../.
10611
10612 2007-03-30  James Youngman  <jay@gnu.org>
10613
10614         * tests/test-stat-time.c (prepare_test): use chmod() rather than
10615         rename() to change the ctime of a file (because ctime is unaffected
10616         by rename on jfs2 on AIX 5.1).
10617         (main): Start by doing cleanup, in case a previous run failed leaving
10618         test files behind.
10619
10620 2007-03-31  Bruno Haible  <bruno@clisp.org>
10621
10622         Support old proprietary implementations of iconv.
10623         * modules/iconv_open: New file.
10624         * lib/iconv_.h: New file.
10625         * m4/iconv_h.m4: New file.
10626         * lib/iconv_open.c: New file.
10627         * lib/iconv_open-aix.gperf: New file.
10628         * lib/iconv_open-hpux.gperf: New file.
10629         * lib/iconv_open-irix.gperf: New file.
10630         * lib/iconv_open-osf.gperf: New file.
10631         * m4/iconv_open.m4: New file.
10632         * modules/linebreak (Depends-on): Add iconv_open.
10633         * modules/striconv (Depends-on): Likewise.
10634         * modules/striconveh (Depends-on): Likewise.
10635         * modules/unicodeio (Depends-on): Likewise.
10636         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
10637         (iconv_t)(-1).
10638         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
10639         conversion if cd is (iconv_t)(-1).
10640         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
10641         is not possible.
10642
10643 2007-03-31  Bruno Haible  <bruno@clisp.org>
10644
10645         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
10646         work on Solaris either. Protect also second use of "autodetect_jp".
10647
10648 2007-03-31  Bruno Haible  <bruno@clisp.org>
10649
10650         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
10651         the function is not present.
10652
10653 2007-03-31  Bruno Haible  <bruno@clisp.org>
10654
10655         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
10656         the function is not present.
10657
10658 2007-03-31  Bruno Haible  <bruno@clisp.org>
10659
10660         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
10661         a bug in HP-UX iconv_open().
10662
10663 2007-03-31  Bruno Haible  <bruno@clisp.org>
10664
10665         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
10666         (Mathematics <math.h>): New section, add fpieee.
10667         (Input/output <stdio.h>): Add fseterr.
10668         (Mathematics <math.h>): New section, add printf-frexp.
10669         (Container data structures): Add sublist.
10670         (Core language properties): Add fpucw, inline.
10671         (Functions for greatest-width integer types <inttypes.h>): Add
10672         imaxabs, imaxdiv, inttypes.
10673         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
10674         isnanl-nolibm, ldexp.
10675         (Mathematics <math.h>): New section, add printf-frexpl.
10676         (Support for systems lacking POSIX:2001): Add fprintf-posix,
10677         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
10678         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
10679         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
10680         (Unicode string functions): Add unistr/u*-mbtoucr.
10681         (Java): Add javacomp-script, javaexec-script.
10682         (C#): Add csharpcomp-script, csharpexec-script.
10683         (Support for building libraries and executables): Add havelib,
10684         relocatable-*.
10685         (Support for maintaining and releasing projects): Renamed from
10686         'Support for maintaining and release projects'. Add announce-gen.
10687
10688 2007-03-31  Bruno Haible  <bruno@clisp.org>
10689
10690         * README: Talk primarily about git.
10691         (git and CVS): Renamed from CVS.
10692         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
10693         gnulib is available through git.
10694         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
10695
10696 2007-03-30  Bruno Haible  <bruno@clisp.org>
10697
10698         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
10699         * lib/poll_.h: Likewise.
10700         * lib/stat_.h: Likewise.
10701         * lib/sys_time_.h: Likewise.
10702         * lib/sysexit_.h: Likewise.
10703         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
10704         * lib/stdbool_.h: Likewise.
10705         * lib/byteswap_.h: Add double-inclusion guard.
10706
10707 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
10708
10709         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
10710
10711 2007-03-30  Karl Berry  <karl@gnu.org>
10712
10713         * config/srclist-update: double space after USA in the license
10714         substitution, since that's how it's usually (?) written.
10715
10716 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
10717
10718         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
10719         reported by Bruno Haible.
10720
10721 2007-03-29  Bruno Haible  <bruno@clisp.org>
10722
10723         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
10724         a bug in AIX iconv().
10725
10726 2007-03-29  Bruno Haible  <bruno@clisp.org>
10727
10728         * modules/ldexpl-tests: New file.
10729         * tests/test-ldexpl.c: New file.
10730
10731 2007-03-29  Bruno Haible  <bruno@clisp.org>
10732
10733         * lib/ldexpl.c: Include fpucw.h.
10734         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
10735         multiplication.
10736         * modules/ldexpl (Depends-on): Add fpucw.
10737
10738 2007-03-29  Bruno Haible  <bruno@clisp.org>
10739
10740         * modules/ldexpl: New file.
10741         * m4/ldexpl.m4: New file.
10742         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
10743         set.
10744         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
10745         REPLACE_LDEXPL.
10746         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
10747         REPLACE_LDEXPL.
10748         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
10749         gl_FUNC_LDEXPL_WORKS.
10750         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
10751         * modules/mathl (Files): Remove lib/ldexpl.c.
10752         (Depends-on): Add ldexpl.
10753
10754 2007-03-29  Bruno Haible  <bruno@clisp.org>
10755
10756         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
10757
10758 2007-03-29  Bruno Haible  <bruno@clisp.org>
10759
10760         * tests/test-striconveh.c (main): Don't assume that a direct conversion
10761         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
10762         and possibly also HP-UX.
10763         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
10764         work on AIX, IRIX, HP-UX, OSF/1.
10765         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
10766         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
10767         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
10768         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
10769         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
10770         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
10771
10772 2007-03-29  Bruno Haible  <bruno@clisp.org>
10773
10774         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
10775
10776 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
10777
10778         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
10779         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
10780
10781 2007-03-29  Eric Blake  <ebb9@byu.net>
10782
10783         * lib/acl-internal.h: Remove redundant include.
10784         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
10785         Cygwin when a file is locked.
10786
10787 2007-03-29  Bruno Haible  <bruno@clisp.org>
10788
10789         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
10790         file.
10791         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
10792
10793 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
10794
10795         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
10796         try to remove a parent directory if the child couldn't be removed
10797         (except for the first rmdir, which could fail because the child
10798         doesn't exist).  Problem reported by Jeff Blaine in
10799         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
10800
10801 2007-03-28  Bruno Haible  <bruno@clisp.org>
10802
10803         * lib/striconveh.c (utf8conv_carefully): New function.
10804         (mem_cd_iconveh_internal): Invoke it.
10805
10806 2007-03-28  Bruno Haible  <bruno@clisp.org>
10807
10808         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
10809         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
10810         input.
10811         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
10812         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
10813         unistr/u8-uctomb.
10814
10815 2007-03-28  Bruno Haible  <bruno@clisp.org>
10816
10817         * modules/unistr/u8-mbtoucr: New file.
10818         * lib/unistr/u8-mbtoucr.c: New file.
10819         * modules/unistr/u16-mbtoucr: New file.
10820         * lib/unistr/u16-mbtoucr.c: New file.
10821         * modules/unistr/u16-mbtoucr: New file.
10822         * lib/unistr/u16-mbtoucr.c: New file.
10823         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
10824
10825 2007-03-27  Simon Josefsson  <simon@josefsson.org>
10826             Bruno Haible  <bruno@clisp.org>
10827
10828         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
10829         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
10830         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
10831
10832         * m4/stdio_h.m4: Add stubs for vasprintf too.
10833
10834         * modules/stdio: Support vasprintf in sed command.
10835
10836         * modules/vasprintf: Depend on stdio for prototypes.  Remove
10837         vasprintf.h.  Add stdio module indicator.
10838
10839         * lib/stdio_.h: Declare asprintf and vasprintf, based on
10840         vasprintf.h.
10841
10842         * lib/vasprintf.h: File removed.
10843
10844         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
10845         * lib/vasprintf.c: Ditto.
10846         * lib/xvasprintf.c: Ditto.
10847         * tests/test-vasprintf-posix.c: Ditto.
10848         * tests/test-vasprintf.c: Ditto.
10849
10850 2007-03-27  Bruno Haible  <bruno@clisp.org>
10851
10852         Make vasnprintf multithread-safe.
10853         * lib/vasnprintf.c (decimal_point_char): New function.
10854         (VASNPRINTF): Use it.
10855         Suggested by Simon Josefsson.
10856
10857 2007-03-27  Eric Blake  <ebb9@byu.net>
10858
10859         Support sub-second birthtime on cygwin.
10860         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
10861         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
10862         (get_stat_birthtime): Also work with st_birthtim.
10863
10864 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
10865
10866         * lib/stat-time.h (USE_BIRTHTIME): Remove.
10867         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
10868         (get_stat_birthtime_ns): Do not try to use "spare" fields.
10869         (get_stat_birthtime_ns): Simplify compile-time tests.
10870         (get_stat_birthtime): Change the API to look like
10871         get_stat_mtime etc., except return a negative tv_nsec on error.
10872         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
10873         Don't check for "spare" fields.
10874         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
10875         or for struct stat.st_birthtime, as these tests aren't used.
10876         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
10877
10878 2007-03-27  Bruno Haible  <bruno@clisp.org>
10879
10880         * lib/stat-time.h: Include <sys/stat.h>.
10881
10882 2007-03-27  James Youngman  <jay@gnu.org>
10883
10884         * lib/stat-time.h (get_stat_birthtime): New function for
10885           retrieving st_birthtime as provided by UFS2 (hence *BSD).
10886         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
10887           and its variants.
10888         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
10889         * modules/stat-time-test: New file.
10890         * tests/test-stat-time.c: New test, devised by Bruno Haible.
10891
10892 2007-03-26  Bruno Haible  <bruno@clisp.org>
10893
10894         Better support of signalling NaNs.
10895         * lib/atanl.c: Include isnanl.h.
10896         (atanl): Perform test for NaN at the beginning of the function and
10897         through a call to isnanl.
10898         * lib/cosl.c: Include isnanl.h.
10899         (cosl): Perform test for NaN at the beginning of the function and
10900         through a call to isnanl.
10901         * lib/ldexpl.c: Include isnanl.h.
10902         (ldexpl): Perform test for NaN through a call to isnanl.
10903         * lib/logl.c: Include isnanl.h.
10904         (logl): Perform test for NaN at the beginning of the function and
10905         through a call to isnanl.
10906         * lib/sinl.c: Include isnanl.h.
10907         (sinl): Perform test for NaN at the beginning of the function and
10908         through a call to isnanl.
10909         * lib/sqrtl.c: Include isnanl.h.
10910         (sqrtl): Perform test for NaN at the beginning of the function and
10911         through a call to isnanl.
10912         * lib/tanl.c: Include isnanl.h.
10913         (tanl): Perform test for NaN at the beginning of the function and
10914         through a call to isnanl.
10915         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
10916         * modules/mathl (Depends-on): Add isnanl.
10917
10918 2007-03-26  Eric Blake  <ebb9@byu.net>
10919
10920         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
10921         regression in logic sense of previous patch.
10922
10923 2007-03-26  Bruno Haible  <bruno@clisp.org>
10924
10925         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
10926         unportable shell command "if ! ...".
10927         Reported by Ralf Wildenhues.
10928
10929 2007-03-25  Bruno Haible  <bruno@clisp.org>
10930
10931         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
10932         <sysexits.h> file, and only add EX_CONFIG.
10933         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
10934         absolute file name and whether it is sufficient. Substitute also
10935         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
10936         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
10937         ABSOLUTE_SYSEXITS_H into sysexits.h.
10938
10939 2007-03-25  Bruno Haible  <bruno@clisp.org>
10940
10941         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
10942         hints is NULL.
10943
10944 2007-03-25  Bruno Haible  <bruno@clisp.org>
10945
10946         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
10947         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
10948
10949 2007-03-25  Bruno Haible  <bruno@clisp.org>
10950
10951         * lib/vasnprintf.c: Include langinfo.h.
10952         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
10953         multithread-safe.
10954         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
10955         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
10956         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
10957         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
10958         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
10959         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
10960         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
10961         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
10962         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
10963         Reported by Simon Josefsson.
10964
10965 2007-03-25  Bruno Haible  <bruno@clisp.org>
10966
10967         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
10968         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
10969         * modules/vasnprintf (Depends-on): Add stdint.
10970
10971 2007-03-25  Bruno Haible  <bruno@clisp.org>
10972
10973         * modules/fpieee: New file.
10974         * m4/fpieee.m4: New file.
10975         * modules/isnan-nolibm (Depends-on): Add fpieee.
10976         * modules/isnanl-nolibm (Depends-on): Add fpieee.
10977         * modules/isnanl (Depends-on): Add fpieee.
10978
10979 2007-03-25  Bruno Haible  <bruno@clisp.org>
10980
10981         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
10982
10983 2007-03-25  Bruno Haible  <bruno@clisp.org>
10984
10985         Avoid test failures on IRIX 6.5.
10986         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
10987         (main): Use it.
10988         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
10989         macros.
10990         (main): Use them.
10991
10992 2007-03-25  Bruno Haible  <bruno@clisp.org>
10993
10994         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
10995         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
10996         exists but doesn't work.
10997         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
10998         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
10999         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
11000         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
11001
11002 2007-03-25  Bruno Haible  <bruno@clisp.org>
11003
11004         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
11005         returns inf. Needed on IRIX 6.5.
11006
11007 2007-03-25  Bruno Haible  <bruno@clisp.org>
11008
11009         * tests/test-frexpl.c: Include isnanl-nolibm.h.
11010         (main): Use isnanl instead of x != x idiom.
11011         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
11012
11013         * tests/test-frexp.c: Include isnan.h.
11014         (main): Use isnan instead of x != x idiom.
11015         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
11016
11017 2007-03-25  Bruno Haible  <bruno@clisp.org>
11018
11019         * tests/test-frexp.c (NaN): New function/macro.
11020         (main): Use it instead of 0.0 / 0.0.
11021         * tests/test-isnan.c (NaN): New function/macro.
11022         (main): Use it instead of 0.0 / 0.0.
11023         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
11024         (test_function): Use it instead of 0.0 / 0.0.
11025         * tests/test-vasprintf-posix.c (NaN): New function/macro.
11026         (test_function): Use it instead of 0.0 / 0.0.
11027         * tests/test-snprintf-posix.h (NaN): New function/macro.
11028         (test_function): Use it instead of 0.0 / 0.0.
11029         * tests/test-sprintf-posix.h (NaN): New function/macro.
11030         (test_function): Use it instead of 0.0 / 0.0.
11031         * tests/test-fprintf-posix.h (NaN): New function/macro.
11032         (test_function): Use it instead of 0.0 / 0.0.
11033         * tests/test-printf-posix.h (NaN): New function/macro.
11034         (test_function): Use it instead of 0.0 / 0.0.
11035
11036         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
11037
11038 2007-03-25  Bruno Haible  <bruno@clisp.org>
11039
11040         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
11041
11042 2007-03-25  Bruno Haible  <bruno@clisp.org>
11043
11044         * lib/regexec.c (merge_state_with_log): Make static.
11045
11046 2007-03-25  Bruno Haible  <bruno@clisp.org>
11047
11048         * lib/trigl.c (kernel_rem_pio2): Make static.
11049
11050 2007-03-25  Bruno Haible  <bruno@clisp.org>
11051
11052         * lib/sincosl.c (sincosl_table): Make static.
11053
11054 2007-03-25  Bruno Haible  <bruno@clisp.org>
11055
11056         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
11057         if the compiler does not support C99.
11058
11059 2007-03-25  Bruno Haible  <bruno@clisp.org>
11060
11061         * modules/time (Makefile.am): Ensure all rule action lines start with a
11062         tab.
11063
11064 2007-03-24  Bruno Haible  <bruno@clisp.org>
11065
11066         * modules/tsearch-tests: New file.
11067         * tests/test-tsearch.sh: New file.
11068         * tests/test-tsearch.c: New file, mostly copied from glibc.
11069
11070         * modules/search-tests: New file.
11071         * tests/test-search.c: New file.
11072
11073         * modules/search: New file.
11074         * lib/search_.h: New file, incorporating lib/tsearch.h.
11075         * m4/search_h.m4: New file.
11076         * lib/tsearch.h: Remove file.
11077         * lib/tsearch.c: Include search.h instead of tsearch.h.
11078         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
11079         HAVE_TSEARCH.
11080         * modules/tsearch (Files): Remove lib/tsearch.h.
11081         (Depends-on): Add search.
11082         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
11083         (Include): Change tsearch.h into search.h.
11084
11085 2007-03-24  Bruno Haible  <bruno@clisp.org>
11086
11087         * modules/fpucw: New file.
11088         * lib/fpucw.h: New file.
11089         * lib/frexp.c: Include fpucw.h.
11090         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
11091         (FUNC): Use them.
11092         * lib/printf-frexp.c: Include fpucw.h.
11093         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
11094         (FUNC): Use them.
11095         * lib/vasnprintf.c: Include fpucw.h.
11096         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
11097         'long double' calculations.
11098         * tests/test-frexpl.c: Include fpucw.h.
11099         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
11100         * tests/test-printf-frexpl.c: Include fpucw.h.
11101         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
11102         * modules/frexpl (Depends-on): Add fpucw.
11103         * modules/printf-frexpl (Depends-on): Likewise.
11104         * modules/fprintf-posix (Depends-on): Likewise.
11105         * modules/snprintf-posix (Depends-on): Likewise.
11106         * modules/sprintf-posix (Depends-on): Likewise.
11107         * modules/vasnprintf-posix (Depends-on): Likewise.
11108         * modules/vasprintf-posix (Depends-on): Likewise.
11109         * modules/vfprintf-posix (Depends-on): Likewise.
11110         * modules/vsnprintf-posix (Depends-on): Likewise.
11111         * modules/vsprintf-posix (Depends-on): Likewise.
11112         * modules/frexpl-tests (Depends-on): Likewise.
11113         * modules/printf-frexpl-tests (Depends-on): Likewise.
11114
11115 2007-03-24  Bruno Haible  <bruno@clisp.org>
11116
11117         * lib/float+.h: New file.
11118         * lib/isnan.c: Include float+.h.
11119         (SIZE): New macro.
11120         (FUNC): Compare only SIZE bytes of the value.
11121         * lib/vasnprintf.c: Include float+.h.
11122         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
11123         SIZEOF_LDBL or SIZEOF_DBL bytes.
11124         * modules/isnan-nolibm (Files): Add lib/float+.h.
11125         * modules/isnanl-nolibm (Files): Add lib/float+.h.
11126         * modules/isnanl (Files): Add lib/float+.h.
11127         * modules/vasnprintf (Files): Add lib/float+.h.
11128
11129 2007-03-24  Bruno Haible  <bruno@clisp.org>
11130
11131         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
11132         include isnanl-nolibm.h.
11133
11134 2007-03-24  Bruno Haible  <bruno@clisp.org>
11135
11136         * tests/test-read-file.c (main): Don't produce spurious output for
11137         expected situations. Make the test fail if it encountered unexpected
11138         results.
11139
11140 2007-03-24  Bruno Haible  <bruno@clisp.org>
11141
11142         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
11143         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
11144
11145 2007-03-24  Bruno Haible  <bruno@clisp.org>
11146
11147         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
11148
11149 2007-03-24  Bruno Haible  <bruno@clisp.org>
11150
11151         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
11152         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
11153
11154         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
11155         * modules/utf8-ucs4: Turn into a symbolic link to module
11156         unistr/u8-mbtouc.
11157
11158         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
11159         utf8-ucs4-unsafe.
11160         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
11161         unistr/u8-mbtouc-unsafe.
11162
11163         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
11164         * modules/utf16-ucs4: Turn into a symbolic link to module
11165         unistr/u16-mbtouc.
11166
11167         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
11168         utf16-ucs4-unsafe.
11169         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
11170         unistr/u16-mbtouc-unsafe.
11171
11172         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
11173         * modules/ucs4-utf8: Turn into a symbolic link to module
11174         unistr/u8-ubtomb.
11175
11176         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
11177         * modules/ucs4-utf16: Turn into a symbolic link to module
11178         unistr/u16-ubtomb.
11179
11180 2007-03-24  Bruno Haible  <bruno@clisp.org>
11181
11182         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
11183         Enable the function only if HAVE_INLINE.
11184         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
11185         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
11186         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
11187         Enable the function only if HAVE_INLINE.
11188         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
11189         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
11190         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
11191         Enable the function only if HAVE_INLINE.
11192         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
11193         Enable the function only if HAVE_INLINE.
11194         * modules/utf8-ucs4: Update.
11195         * modules/utf8-ucs4-unsafe: Update.
11196         * modules/utf16-ucs4: Update.
11197         * modules/utf16-ucs4-unsafe: Update.
11198         * modules/ucs4-utf8: Update.
11199         * modules/ucs4-utf16: Update.
11200
11201 2007-03-24  Bruno Haible  <bruno@clisp.org>
11202
11203         * lib/utf8-ucs4.h: Remove file.
11204         * lib/utf8-ucs4-unsafe.h: Remove file.
11205         * lib/utf16-ucs4.h: Remove file.
11206         * lib/utf16-ucs4-unsafe.h: Remove file.
11207         * lib/ucs4-utf8.h: Remove file.
11208         * lib/ucs4-utf16.h: Remove file.
11209         * lib/unistr.h: Include their previous contents.
11210         * m4/utf-ucs4.m4: Remove file.
11211         * m4/ucs4-utf.m4: Remove file.
11212         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
11213         (Depends-on): Add unistr/base.
11214         (configure.ac): Remove gl_UTF_UCS4.
11215         (Makefile.am): Update.
11216         (Include): Change to unistr.h.
11217         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
11218         (Depends-on): Add unistr/base.
11219         (configure.ac): Remove gl_UTF_UCS4.
11220         (Makefile.am): Update.
11221         (Include): Change to unistr.h.
11222         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
11223         (Depends-on): Add unistr/base.
11224         (configure.ac): Remove gl_UTF_UCS4.
11225         (Makefile.am): Update.
11226         (Include): Change to unistr.h.
11227         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
11228         (Depends-on): Add unistr/base.
11229         (configure.ac): Remove gl_UTF_UCS4.
11230         (Makefile.am): Update.
11231         (Include): Change to unistr.h.
11232         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
11233         (Depends-on): Add unistr/base.
11234         (configure.ac): Remove gl_UCS4_UTF.
11235         (Makefile.am): Update.
11236         (Include): Change to unistr.h.
11237         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
11238         (Depends-on): Add unistr/base.
11239         (configure.ac): Remove gl_UCS4_UTF.
11240         (Makefile.am): Update.
11241         (Include): Change to unistr.h.
11242         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
11243         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
11244         utf8-ucs4-unsafe.h.
11245         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
11246         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
11247         utf16-ucs4-unsafe.h.
11248         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
11249         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
11250         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
11251         * lib/unistr/u8-strchr.c: Likewise.
11252         * lib/unistr/u8-strrchr.c: Likewise.
11253         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
11254         * lib/unistr/u16-strchr.c: Likewise.
11255         * lib/unistr/u16-strrchr.c: Likewise.
11256         * lib/striconveh.c: Update.
11257         * lib/linebreak.c: Update.
11258
11259 2007-03-24  Bruno Haible  <bruno@clisp.org>
11260
11261         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
11262         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
11263
11264 2007-03-22  Bruno Haible  <bruno@clisp.org>
11265
11266         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
11267
11268 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
11269
11270         * MODULES.html.sh (File system functions): New module write-any-file.
11271         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
11272         * m4/write-any-file.m4: New files.
11273
11274 2007-03-23  Eric Blake  <ebb9@byu.net>
11275
11276         * gnulib-tool: Rearrange space-tab sequences, since some editors
11277         like to eat them.
11278
11279 2007-03-23  Eric Blake  <ebb9@byu.net>
11280
11281         * lib/version-etc.c (version_etc_va): Update license wording to
11282         be more concise.  Recommended by Richard Stallman.
11283
11284 2007-03-22  Bruno Haible  <bruno@clisp.org>
11285
11286         * lib/poll.c (MSG_PEEK): New fallback definition.
11287
11288 2007-03-22  Bruno Haible  <bruno@clisp.org>
11289
11290         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
11291         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
11292         (main): Update.
11293         Fixes a compilation error on BeOS.
11294
11295 2007-03-22  Bruno Haible  <bruno@clisp.org>
11296
11297         * modules/frexpl-tests: New file.
11298         * tests/test-frexpl.c: New file.
11299
11300         * modules/frexpl: New file.
11301         * m4/frexpl.m4: New file.
11302         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
11303         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
11304         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
11305         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
11306         (Depends-on): Add frexpl. Remove isnanl-nolibm.
11307         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
11308
11309 2007-03-22  Bruno Haible  <bruno@clisp.org>
11310
11311         * lib/frexpl.c: Share code with lib/frexp.c.
11312         * modules/mathl (Files): Add lib/frexp.c.
11313         (Depends-on): Add isnanl-nolibm.
11314
11315 2007-03-22  Bruno Haible  <bruno@clisp.org>
11316
11317         * modules/printf-frexp (Files): Add m4/frexp.m4.
11318         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
11319         only if the found frexp function actually works.
11320
11321 2007-03-22  Bruno Haible  <bruno@clisp.org>
11322
11323         * lib/frexp.c: Remove older implementation that uses divisions.
11324
11325 2007-03-21  Bruno Haible  <bruno@clisp.org>
11326
11327         * modules/frexp-tests: New file.
11328         * tests/test-frexp.c: New file.
11329
11330         * modules/frexp: New file.
11331         * lib/frexp.c: New file.
11332         * m4/frexp.m4: New file.
11333         * lib/math_.h (frexp): New declaration.
11334         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
11335         REPLACE_FREXP.
11336         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
11337
11338 2007-03-21  Bruno Haible  <bruno@clisp.org>
11339
11340         * modules/isnanl-tests: New file.
11341         * tests/test-isnanl.c: New file.
11342
11343         * modules/isnanl: New file.
11344         * lib/isnanl.h: New file.
11345         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
11346         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
11347         gl_FUNC_ISNANL_WORKS.
11348         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
11349         New macros.
11350
11351 2007-03-21  Bruno Haible  <bruno@clisp.org>
11352
11353         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
11354         lib/isnanl.h.
11355         (Include): Update.
11356         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
11357         * lib/vasnprintf.c: Update.
11358         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
11359         tests/test-isnanl.h, remove tests/test-isnanl.c.
11360         (Makefile.am): Update.
11361         * tests/test-isnanl-nolibm.c: New file.
11362         * tests/test-isnanl.h: New file.
11363         * tests/test-isnanl.c: Remove file.
11364
11365 2007-03-21  Jim Meyering  <jim@meyering.net>
11366
11367         When trying to open ".", treat ESTALE like EACCES.
11368         * lib/savewd.c (savewd_save): Resort to forking not just upon
11369         failure with EACCES, but also when errno is ESTALE.
11370
11371 2007-03-20  Bruno Haible  <bruno@clisp.org>
11372
11373         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
11374         Needed on AIX 5.1. Reported by Matthew Woehlke.
11375
11376 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
11377
11378         Suggestions by Bruno Haible:
11379         * lib/acl-internal.h: Include "gettext.h" rather than rolling
11380         our own.
11381         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
11382         * modules/acl (Depends-on): Add gettext.
11383
11384 2007-03-19  Bruno Haible  <bruno@clisp.org>
11385
11386         * modules/iconvme: Remove file.
11387         * lib/iconvme.h: Remove file.
11388         * lib/iconvme.c: Remove file.
11389         * m4/iconvme.m4: Remove file.
11390
11391 2007-03-19  Bruno Haible  <bruno@clisp.org>
11392
11393         * doc/relocatable-maint.texi: Break long shell script line.
11394         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
11395
11396 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
11397
11398         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
11399         handle file_has_acl.
11400         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
11401         * lib/acl.c: Move header inclusions and related macro defns into
11402         lib/acl-internal.h.
11403         (S_ISLNK): Remove defn, since that's now done for us.
11404         (file_has_acl): Move to lib/file-has-acl.c.
11405         Call acl_trivial if available.  This is the crucial part of the fix.
11406         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
11407         shared within the library.  Rewrite a bit, partly to make it compatible
11408         with the GNU coding style.
11409         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
11410         Remove unnecessary double-quotes.
11411         Don't test for acl_to_text; the build will catch that.
11412         Replace acl_entries if it doesn't exist and it is needed.
11413         Check for -lsec and acl_trivial (as used on Solaris 10).
11414         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
11415         lib/file-has-acl.c.
11416         (Depends-on): Add sys_stat, for S_ISLNK.
11417
11418 2007-03-19  Ben Pfaff  <blp@gnu.org>
11419
11420         * doc/gnulib.texi: Fix typos.
11421         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
11422
11423 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
11424
11425         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
11426         If size is zero here, buf must be zero.
11427
11428 2007-03-19  Simon Josefsson  <simon@josefsson.org>
11429
11430         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
11431         <bruno@clisp.org>.
11432
11433 2007-03-18  Bruno Haible  <bruno@clisp.org>
11434
11435         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
11436         Suggested by Eric Blake.
11437
11438 2007-03-18  Ben Pfaff  <blp@gnu.org>
11439
11440         * doc/relocatable.texi: Recommend using as prefix a directory
11441         that does not exist and will never be created.  Based on
11442         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
11443         and others.
11444
11445 2007-03-17  Bruno Haible  <bruno@clisp.org>
11446
11447         * lib/fchownat.c: Include lchown.h.
11448
11449 2007-03-17  Bruno Haible  <bruno@clisp.org>
11450
11451         Fix endless loop when the given allocated size was > INT_MAX.
11452         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
11453         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
11454         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
11455         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
11456         * lib/sprintf.c (sprintf): Likewise.
11457
11458 2007-03-17  Bruno Haible  <bruno@clisp.org>
11459
11460         * tests/test-argp-2.sh (func_compare): Output a context diff.
11461
11462 2007-03-17  Bruno Haible  <bruno@clisp.org>
11463
11464         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
11465         locale's decimal-point character.
11466
11467 2007-03-17  Bruno Haible  <bruno@clisp.org>
11468
11469         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
11470         before comparing it. Needed because on some platforms (e.g. x86) a
11471         'long double' occupies less bytes than sizeof (long double).
11472
11473 2007-03-17  Bruno Haible  <bruno@clisp.org>
11474
11475         * tests/test-crc.c (main): Make printf statements 64-bit clean.
11476         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
11477         * tests/test-getaddrinfo.c (simple): Likewise.
11478         * tests/test-read-file.c (main): Likewise.
11479
11480 2007-03-17  Bruno Haible  <bruno@clisp.org>
11481
11482         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
11483
11484 2007-03-17  Bruno Haible  <bruno@clisp.org>
11485
11486         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
11487         unused variable.
11488
11489 2007-03-17  Bruno Haible  <bruno@clisp.org>
11490
11491         * tests/test-c-strcasecmp.c: Include c-strcase.h.
11492         * tests/test-c-strncasecmp.c: Likewise.
11493
11494 2007-03-17  Bruno Haible  <bruno@clisp.org>
11495
11496         * modules/stdlib (Depends-on): Add unistd.
11497         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
11498         Needed for MacOS X 10.3.
11499
11500 2007-03-17  Bruno Haible  <bruno@clisp.org>
11501
11502         * lib/unistr/u-strdup.h: Include <stdlib.h>.
11503
11504 2007-03-17  Bruno Haible  <bruno@clisp.org>
11505
11506         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
11507
11508 2007-03-17  Bruno Haible  <bruno@clisp.org>
11509
11510         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
11511         to reflect files copied from gnulib (with or without modifications).
11512         Suggested by Jim Meyering.
11513
11514 2007-03-17  Eric Blake  <ebb9@byu.net>
11515
11516         * NEWS: Document stdlib change from 2007-02-18.
11517
11518 2007-03-17  Jim Meyering  <jim@meyering.net>
11519
11520         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
11521         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
11522         someone uses a name containing shell meta-characters.
11523         Reported by Alfred M. Szmidt.
11524
11525         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
11526
11527 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
11528
11529         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
11530         and copy gettext configuration files only if configure.ac contains
11531         a use of AM_GNU_GETTEXT_VERSION.
11532
11533 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
11534
11535         * build-aux/bootstrap (gnulib_name): New variable.
11536         (gnulib_tool_options): Use it.
11537
11538 2007-03-13  Simon Josefsson  <simon@josefsson.org>
11539
11540         * tests/test-des.c: Use new namespace.
11541
11542 2007-03-15  Bruno Haible  <bruno@clisp.org>
11543
11544         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
11545         Reported by James Youngman <jay@gnu.org>.
11546
11547 2007-03-15  Bruno Haible  <bruno@clisp.org>
11548
11549         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
11550         declared prototype. Needed with cc on OSF/1 5.1.
11551
11552 2007-03-15  Bruno Haible  <bruno@clisp.org>
11553
11554         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
11555         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
11556         (struct gl_list_implementation): Add dispose_fn argument to the
11557         'create_empty', 'create' methods.
11558         (struct gl_list_impl_base): Add field 'dispose_fn'.
11559         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
11560         argument.
11561         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
11562         dispose_fn argument.
11563         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
11564         dispose_fn on the dropped values.
11565         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
11566         dispose_fn argument.
11567         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
11568         dropped values.
11569         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
11570         (gl_tree_remove_node): Call dispose_fn on the dropped value.
11571         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
11572         (gl_tree_remove_node): Call dispose_fn on the dropped value.
11573         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
11574         argument.
11575         (gl_tree_list_free): Call dispose_fn on the dropped values.
11576         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
11577         the dropped values.
11578         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
11579         Add dispose_fn argument.
11580         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
11581         Call dispose_fn on the dropped values.
11582         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
11583         Add dispose_fn argument.
11584         (gl_sublist_create): Initialize the 'dispose_fn' field.
11585         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
11586         * tests/test-array_list.c (main): Update.
11587         * tests/test-carray_list.c (main): Update.
11588         * tests/test-avltree_list.c (main): Update.
11589         * tests/test-rbtree_list.c (main): Update.
11590         * tests/test-avltreehash_list.c (main): Update.
11591         * tests/test-rbtreehash_list.c (main): Update.
11592         * tests/test-linked_list.c (main): Update.
11593         * tests/test-linkedhash_list.c (main): Update.
11594         * tests/test-array_oset.c (main): Update.
11595
11596 2007-03-15  Bruno Haible  <bruno@clisp.org>
11597
11598         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
11599         (gl_oset_create_empty): Add dispose_fn argument.
11600         (struct gl_oset_implementation): Add dispose_fn argument to
11601         'create_empty' method.
11602         (struct gl_oset_impl_base): Add dispose_fn field.
11603         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
11604         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
11605         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
11606         values.
11607         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
11608         (gl_tree_oset_free): Call dispose_fn on the dropped values.
11609         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
11610         dropped value.
11611         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
11612         dropped value.
11613         * tests/test-array_oset.c (main): Update.
11614         * tests/test-avltree_oset.c (main): Update.
11615         * tests/test-rbtree_oset.c (main): Update.
11616         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
11617
11618 2007-03-13  Bruno Haible  <bruno@clisp.org>
11619
11620         * tests/test-stdbool.c (i): Update after last patch.
11621
11622 2007-03-12  Bruno Haible  <bruno@clisp.org>
11623
11624         * lib/quotearg.c: Include <wctype.h> early, before the definition of
11625         the iswprint macro. Needed on Solaris 2.5.1.
11626
11627 2007-03-12  Bruno Haible  <bruno@clisp.org>
11628
11629         * tests/test-printf-frexp.c (main): Declare x as volatile.
11630
11631 2007-03-12  Simon Josefsson  <simon@josefsson.org>
11632
11633         * doc/gnulib.texi (Build robot for gnulib): New section.
11634
11635 2007-03-12  Jim Meyering  <jim@meyering.net>
11636
11637         * build-aux/bootstrap: New file.
11638         * build-aux/bootstrap.conf: New file, from coreutils.
11639
11640 2007-03-11  Bruno Haible  <bruno@clisp.org>
11641
11642         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
11643
11644 2007-03-12  Simon Josefsson  <simon@josefsson.org>
11645
11646         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
11647         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
11648         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
11649
11650 2007-03-11  Bruno Haible  <bruno@clisp.org>
11651
11652         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
11653         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
11654
11655 2007-03-11  Bruno Haible  <bruno@clisp.org>
11656
11657         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
11658         formula. Needed for SunPRO C 5.0.
11659
11660 2007-03-11  Bruno Haible  <bruno@clisp.org>
11661
11662         * modules/long-options (Depends-on): Add getopt.
11663
11664 2007-03-11  Bruno Haible  <bruno@clisp.org>
11665
11666         * modules/modechange (Depends-on): Add stdbool.
11667
11668 2007-03-11  Bruno Haible  <bruno@clisp.org>
11669
11670         * modules/i-ring (Depends-on): Add stdbool.
11671
11672 2007-03-11  Bruno Haible  <bruno@clisp.org>
11673
11674         * modules/gc-des (Depends-on): Add stdbool.
11675
11676 2007-03-11  Bruno Haible  <bruno@clisp.org>
11677
11678         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
11679
11680 2007-03-11  Bruno Haible  <bruno@clisp.org>
11681
11682         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
11683
11684 2007-03-11  Bruno Haible  <bruno@clisp.org>
11685
11686         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
11687
11688 2007-03-11  Bruno Haible  <bruno@clisp.org>
11689
11690         * lib/vasnprintf.c (sprintf): Undefine.
11691
11692 2007-03-11  Bruno Haible  <bruno@clisp.org>
11693
11694         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
11695         initializers in SunPRO C and Compaq C compilers.
11696
11697 2007-03-11  Bruno Haible  <bruno@clisp.org>
11698
11699         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
11700         decrementing code ANSI C compliant.
11701
11702 2007-03-11  Bruno Haible  <bruno@clisp.org>
11703
11704         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
11705         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
11706
11707 2007-03-11  Bruno Haible  <bruno@clisp.org>
11708
11709         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
11710         <stdbool.h> substitute doesn't pass.
11711
11712 2007-03-11  Bruno Haible  <bruno@clisp.org>
11713
11714         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
11715
11716 2007-03-11  Bruno Haible  <bruno@clisp.org>
11717
11718         * gnulib-tool (func_create_megatestdir): Create also an autobuild
11719         script, for submission to autobuild.josefsson.org.
11720
11721 2007-03-10  Bruno Haible  <bruno@clisp.org>
11722
11723         * modules/canonicalize-lgpl-tests: New file.
11724         * tests/test-canonicalize-lgpl.sh: New file.
11725         * tests/test-canonicalize-lgpl.c: New file.
11726
11727         * modules/c-strcase-tests: New file.
11728         * tests/test-c-strcase.sh: New file.
11729         * tests/test-c-strcasecmp.c: New file.
11730         * tests/test-c-strncasecmp.c: New file.
11731
11732         * modules/atexit-tests: New file.
11733         * tests/test-atexit.sh: New file.
11734         * tests/test-atexit.c: New file.
11735
11736 2007-03-10  Bruno Haible  <bruno@clisp.org>
11737
11738         * tests/test-binary-io.sh: Use temporary filenames that are not so
11739         likely to clash with those of other tests (in a parallel make).
11740         * tests/test-binary-io.c: Likewise.
11741
11742 2007-03-10  Bruno Haible  <bruno@clisp.org>
11743
11744         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
11745         fallback; use #error instead.
11746         Suggested by Simon Josefsson.
11747
11748 2007-03-10  Bruno Haible  <bruno@clisp.org>
11749
11750         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
11751         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
11752         first and the last.
11753
11754 2007-03-10  Bruno Haible  <bruno@clisp.org>
11755
11756         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
11757
11758 2007-03-10  Bruno Haible  <bruno@clisp.org>
11759
11760         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
11761         "make distcheck".
11762         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
11763         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
11764         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
11765
11766 2007-03-10  Bruno Haible  <bruno@clisp.org>
11767
11768         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
11769         variable.
11770         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
11771         variable.
11772
11773 2007-03-09  Eric Blake  <ebb9@byu.net>
11774         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
11775
11776         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
11777         types are not being provided by gnulib.
11778         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
11779         types are supported.
11780
11781 2007-03-10  Bruno Haible  <bruno@clisp.org>
11782
11783         * lib/stdio_.h (__attribute__): New macro.
11784         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
11785         vsprintf): Specify __attribute__ __format__ for GCC.
11786         Suggested by Eric Blake.
11787
11788 2007-03-09  Bruno Haible  <bruno@clisp.org>
11789
11790         * modules/printf-posix-tests: New file.
11791         * tests/test-printf-posix.sh: New file.
11792         * tests/test-printf-posix.c: New file.
11793
11794         * modules/printf-posix: New file.
11795         * lib/printf.c: New file.
11796         * m4/printf-posix-rpl.m4: New file.
11797         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
11798         REPLACE_PRINTF.
11799         * lib/stdio_.h (printf): New declaration.
11800         (format, __format__, ____printf____, ____scanf____, ____strftime____,
11801         ____strfmon____): New macros.
11802         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
11803         REPLACE_PRINTF.
11804
11805 2007-03-09  Bruno Haible  <bruno@clisp.org>
11806
11807         * tests/test-vasnprintf-posix2.sh: New file.
11808         * tests/test-vasnprintf-posix2.c: New file.
11809         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
11810         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
11811         (Makefile.am): Activate test-vasnprintf-posix2.sh.
11812
11813         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
11814         a locale dependent decimal point, rather than always '.'.
11815
11816 2007-03-09  Eric Blake  <ebb9@byu.net>
11817
11818         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
11819         spite of platforms like Tandem/NSK that define it to -1.
11820
11821 2007-03-08  Bruno Haible  <bruno@clisp.org>
11822
11823         * modules/vprintf-posix-tests: New file.
11824         * tests/test-vprintf-posix.sh: New file.
11825         * tests/test-vprintf-posix.c: New file.
11826         * tests/test-printf-posix.h: New file.
11827
11828         * modules/vprintf-posix: New file.
11829         * lib/vprintf.c: New file.
11830         * m4/vprintf-posix.m4: New file.
11831         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
11832         REPLACE_VPRINTF.
11833         * lib/stdio_.h (vprintf): New declaration.
11834         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
11835         REPLACE_VPRINTF.
11836
11837 2007-03-08  Bruno Haible  <bruno@clisp.org>
11838
11839         * modules/fprintf-posix-tests: New file.
11840         * tests/test-fprintf-posix.sh: New file.
11841         * tests/test-fprintf-posix.c: New file.
11842
11843         * modules/fprintf-posix: New file.
11844         * lib/fprintf.c: New file.
11845         * m4/fprintf-posix.m4: New file.
11846         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
11847         REPLACE_FPRINTF.
11848         * lib/stdio_.h (fprintf): New declaration.
11849         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
11850         REPLACE_FPRINTF.
11851
11852 2007-03-08  Bruno Haible  <bruno@clisp.org>
11853
11854         * modules/vfprintf-posix-tests: New file.
11855         * tests/test-vfprintf-posix.sh: New file.
11856         * tests/test-vfprintf-posix.c: New file.
11857         * tests/test-fprintf-posix.h: New file.
11858         * tests/test-fprintf-posix.out: New file.
11859
11860         * modules/vfprintf-posix: New file.
11861         * lib/vfprintf.c: New file.
11862         * m4/vfprintf-posix.m4: New file.
11863         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
11864         REPLACE_VFPRINTF.
11865         * lib/stdio_.h (vfprintf): New declaration.
11866         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
11867         REPLACE_VFPRINTF.
11868
11869 2007-03-08  Bruno Haible  <bruno@clisp.org>
11870
11871         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
11872
11873 2007-03-08  Bruno Haible  <bruno@clisp.org>
11874
11875         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
11876         instead of 'expr' invocations.
11877         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
11878         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
11879         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
11880         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
11881         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
11882         Suggested by Paul Eggert.
11883
11884 2007-03-08  Bruno Haible  <bruno@clisp.org>
11885
11886         * modules/fseterr-tests: New file.
11887         * tests/test-fseterr.c: New file.
11888
11889         * modules/fseterr: New file.
11890         * lib/fseterr.h: New file.
11891         * lib/fseterr.c: New file.
11892
11893 2007-03-08  Bruno Haible  <bruno@clisp.org>
11894
11895         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
11896         * lib/getopt_.h: Likewise.
11897         * lib/mbswidth.h: Likewise.
11898         * lib/setenv.h: Likewise.
11899         * lib/vasnprintf.h: Likewise.
11900         * lib/vasprintf.h: Likewise.
11901         * lib/verror.h: Likewise.
11902         * lib/xsetenv.h: Likewise.
11903         * lib/xvasprintf.h: Likewise.
11904
11905 2007-03-08  Jim Meyering  <jim@meyering.net>
11906
11907         * users.txt: Add parted.
11908
11909         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
11910
11911 2007-03-07  Bruno Haible  <bruno@clisp.org>
11912
11913         * m4/printf.m4: Make the shell script snippets copy&pastable.
11914
11915 2007-03-02  Bruno Haible  <bruno@clisp.org>
11916
11917         * lib/netinet_in_.h: New file.
11918         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
11919         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
11920         * modules/netinet_in (Files): Add lib/netinet_in_.h.
11921         (Depends-on): Add absolute-header.
11922         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
11923         into netinet/in.h.
11924
11925 2007-03-03  Bruno Haible  <bruno@clisp.org>
11926
11927         * lib/sys_select_.h: New file.
11928         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
11929         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
11930         * modules/sys_select (Files): Add lib/sys_select_.h.
11931         (Depends-on): Add absolute-header.
11932         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
11933         into sys/select.h.
11934
11935 2007-03-02  Bruno Haible  <bruno@clisp.org>
11936
11937         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
11938         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
11939         values.
11940         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
11941         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
11942         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
11943         * modules/sys_socket (Depends-on): Add absolute-header.
11944         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
11945         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
11946         (Include): Remove requirement of inclusion of <sys/types.h>.
11947
11948 2007-03-02  Bruno Haible  <bruno@clisp.org>
11949
11950         * lib/byteswap_.h (bswap_32): Fix formula.
11951
11952 2007-03-06  Bruno Haible  <bruno@clisp.org>
11953
11954         * modules/sprintf-posix-tests: New file.
11955         * tests/test-sprintf-posix.c: New file.
11956
11957         * modules/sprintf-posix: New file.
11958         * lib/sprintf.c: New file.
11959         * m4/sprintf-posix.m4: New file.
11960         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
11961         REPLACE_SPRINTF.
11962         * lib/stdio_.h (sprintf): New declaration.
11963         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
11964         REPLACE_SPRINTF.
11965
11966 2007-03-06  Bruno Haible  <bruno@clisp.org>
11967
11968         * modules/vsprintf-posix-tests: New file.
11969         * tests/test-vsprintf-posix.c: New file.
11970         * tests/test-sprintf-posix.h: New file.
11971
11972         * modules/vsprintf-posix: New file.
11973         * lib/vsprintf.c: New file.
11974         * m4/vsprintf-posix.m4: New file.
11975         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
11976         REPLACE_VSPRINTF.
11977         * lib/stdio_.h (vsprintf): New declaration.
11978         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
11979         REPLACE_VSPRINTF.
11980
11981 2007-03-06  Bruno Haible  <bruno@clisp.org>
11982
11983         * modules/vsnprintf (Depend-on): Remove minmax.
11984
11985 2007-03-06  Bruno Haible  <bruno@clisp.org>
11986
11987         * modules/snprintf-posix-tests: New file.
11988         * tests/test-snprintf-posix.c: New file.
11989
11990         * modules/snprintf-posix: New file.
11991         * m4/snprintf-posix.m4: New file.
11992         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
11993         gl_FUNC_SNPRINTF.
11994         (gl_FUNC_SNPRINTF): Invoke it.
11995         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
11996         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
11997         is set.
11998         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
11999
12000 2007-03-06  Bruno Haible  <bruno@clisp.org>
12001
12002         * modules/vsnprintf-posix-tests: New file.
12003         * tests/test-vsnprintf-posix.c: New file.
12004         * tests/test-snprintf-posix.h: New file.
12005
12006         * modules/vsnprintf-posix: New file.
12007         * m4/vsnprintf-posix.m4: New file.
12008         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
12009         gl_FUNC_VSNPRINTF.
12010         (gl_FUNC_VSNPRINTF): Invoke it.
12011         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
12012         * lib/stdio_.h (vsnprintf): Define as a replacement if
12013         REPLACE_VSNPRINTF is set.
12014         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
12015
12016 2007-03-06  Bruno Haible  <bruno@clisp.org>
12017
12018         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
12019         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
12020
12021 2007-03-06  Bruno Haible  <bruno@clisp.org>
12022
12023         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
12024         (asinl): Declare also if HAVE_DECL_ASINL is set.
12025         (atanl): Declare also if HAVE_DECL_ATANL is set.
12026         (ceill): Declare also if HAVE_DECL_CEILL is set.
12027         (cosl): Declare also if HAVE_DECL_COSL is set.
12028         (expl): Declare also if HAVE_DECL_EXPL is set.
12029         (floorl): Declare also if HAVE_DECL_FLOORL is set.
12030         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
12031         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
12032         (logl): Declare also if HAVE_DECL_LOGL is set.
12033         (sinl): Declare also if HAVE_DECL_SINL is set.
12034         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
12035         (tanl): Declare also if HAVE_DECL_TANL is set.
12036         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
12037         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
12038         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
12039         declaration of frexpl, ldexpl.
12040         * modules/printf-frexpl (Depends-on): Add math.
12041         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
12042
12043 2007-03-05  Bruno Haible  <bruno@clisp.org>
12044
12045         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
12046         frexpl and ldexpl are declared.
12047         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
12048
12049 2007-03-05  Bruno Haible  <bruno@clisp.org>
12050
12051         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
12052         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
12053
12054 2007-03-05  Bruno Haible  <bruno@clisp.org>
12055
12056         * lib/stdio_.h: Include <stddef.h>.
12057
12058 2007-03-05  Bruno Haible  <bruno@clisp.org>
12059
12060         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
12061
12062 2007-03-05  Bruno Haible  <bruno@clisp.org>
12063
12064         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
12065         NetBSD 4, from Ralf Wildenhues.
12066
12067 2007-03-04  Bruno Haible  <bruno@clisp.org>
12068
12069         * lib/vasprintf.h: Update #if logic for the case when the functions
12070         exist but are overridden.
12071
12072 2007-03-04  Bruno Haible  <bruno@clisp.org>
12073
12074         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
12075         implementations: glibc-2.4 and MacOS X 10.3.
12076         * tests/test-vasnprintf-posix.c (test_function): Test also the case
12077         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
12078         * tests/test-vasprintf-posix.c (test_function): Likewise.
12079
12080 2007-03-04  Bruno Haible  <bruno@clisp.org>
12081
12082         * modules/vasprintf-posix-tests: New file.
12083         * tests/test-vasprintf-posix.c: New file.
12084
12085         * modules/vasprintf-posix: New file.
12086         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
12087         defined.
12088         * m4/vasprintf-posix.m4: New file.
12089         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
12090         gl_FUNC_VASPRINTF.
12091         (gl_FUNC_VASPRINTF): Invoke it.
12092         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
12093         here.
12094         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
12095
12096 2007-03-04  Bruno Haible  <bruno@clisp.org>
12097
12098         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
12099         REPLACE_GETTIMEOFDAY.
12100         * modules/sys_time (Makefile.am): Likewise.
12101         * m4/sys_time_h.m4: Likewise.
12102         * m4/gettimeofday.m4: Likewise.
12103
12104 2007-03-04  Bruno Haible  <bruno@clisp.org>
12105
12106         * modules/vasnprintf-posix-tests: New file.
12107         * tests/test-vasnprintf-posix.c: New file.
12108
12109         * modules/vasnprintf-posix: New file.
12110         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
12111         printf-frexpl.h.
12112         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
12113         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
12114         REPLACE_VASNPRINTF is defined.
12115         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
12116         gl_FUNC_VASNPRINTF.
12117         (gl_FUNC_VASNPRINTF): Invoke it.
12118         * m4/vasnprintf-posix.m4: New file.
12119         * m4/printf.m4: New file.
12120
12121 2007-03-04  Bruno Haible  <bruno@clisp.org>
12122
12123         Compile progreloc.c only if --enable-relocatable is specified.
12124         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
12125         if --enable-relocatable was specified.
12126         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
12127         lib_SOURCES.
12128
12129 2007-03-04  Jim Meyering  <jim@meyering.net>
12130
12131         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
12132         Use it consistently, rather than enumerating errno constants.
12133
12134 2007-03-04  Bruno Haible  <bruno@clisp.org>
12135
12136         * modules/xvasprintf-tests: New file.
12137         * tests/test-xvasprintf.c: New file.
12138
12139         * modules/vasprintf-tests: New file.
12140         * tests/test-vasprintf.c: New file.
12141
12142         * modules/vasnprintf-tests: New file.
12143         * tests/test-vasnprintf.c: New file.
12144
12145         * modules/vsnprintf-tests: New file.
12146         * tests/test-vsnprintf.c: New file.
12147
12148         * modules/snprintf-tests: New file.
12149         * tests/test-snprintf.c: New file.
12150
12151 2007-03-04  Bruno Haible  <bruno@clisp.org>
12152
12153         Compile relocatable.c only if --enable-relocatable is specified.
12154         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
12155         gl_RELOCATABLE_LIBRARY.
12156         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
12157         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
12158         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
12159         gl_RELOCATABLE_LIBRARY.
12160         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
12161         (Makefile.am): Remove lib_SOURCES.
12162         * modules/relocatable-lib-lgpl (configure.ac): Invoke
12163         gl_RELOCATABLE_LIBRARY.
12164         (Makefile.am): Remove lib_SOURCES.
12165         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
12166         always.
12167         * modules/relocatable-prog-wrapper (configure.ac): Invoke
12168         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
12169
12170 2007-03-04  Bruno Haible  <bruno@clisp.org>
12171
12172         * modules/argmatch-tests: New file.
12173         * tests/test-argmatch.c: New file.
12174
12175         * tests/test-allocsa.c (main): Halve the number of loop runs.
12176
12177         * modules/alloca-opt-tests: New file.
12178         * tests/test-alloca-opt.c: New file.
12179
12180 2007-03-04  Jim Meyering  <jim@meyering.net>
12181
12182         Work around difference between Linux ACLs and Solaris 10 ZFS.
12183         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
12184         for EINVAL.
12185
12186 2007-03-03  Bruno Haible  <bruno@clisp.org>
12187
12188         * modules/relocatable-prog (Depends-on): Add back progreloc's
12189         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
12190
12191 2007-03-03  Bruno Haible  <bruno@clisp.org>
12192
12193         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
12194         * modules/relocatable-lib: New file.
12195
12196 2007-03-03  Bruno Haible  <bruno@clisp.org>
12197
12198         * modules/relocatable-prog: Renamed from modules/relocatable.
12199         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
12200
12201 2007-03-03  Bruno Haible  <bruno@clisp.org>
12202
12203         * modules/relocatable-script (Files): Add doc/relocatable.texi,
12204         m4/relocatable-lib.m4.
12205         (Depends-on): Remove 'relocatable'.
12206         (configure.ac): Add gl_RELOCATABLE_NOP.
12207
12208 2007-03-03  Bruno Haible  <bruno@clisp.org>
12209
12210         * modules/relocatable-prog-wrapper: New file.
12211         * modules/relocatable (Depends-on): Add it. Remove all other
12212         dependencies except progname.
12213         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
12214
12215         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
12216         (gl_FUNC_STRERROR): Nop.
12217         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
12218
12219         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
12220         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
12221
12222         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
12223         (gl_FUNC_READLINK): Update.
12224
12225         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
12226
12227 2007-03-03  Bruno Haible  <bruno@clisp.org>
12228
12229         * lib/xreadlink.c: Include <unistd.h> unconditionally.
12230         * modules/xreadlink (Depends-on): Add unistd.
12231         * modules/xreadlink-with-size (Depends-on): Likewise.
12232
12233 2007-03-03  Bruno Haible  <bruno@clisp.org>
12234
12235         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
12236         extracted from gt_FUNC_SETENV.
12237         (gt_FUNC_SETENV): Remove macro.
12238         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
12239         remove gt_FUNC_SETENV.
12240
12241 2007-03-03  Bruno Haible  <bruno@clisp.org>
12242
12243         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
12244         ENABLE_RELOCATABLE here.
12245         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
12246
12247 2007-03-03  Bruno Haible  <bruno@clisp.org>
12248
12249         * modules/rbtreehash-list-tests (Depends-on): Add progname.
12250         * tests/test-rbtreehash_list.c: Include progname.h.
12251         (main): Call set_program_name.
12252
12253         * modules/rbtree-oset-tests (Depends-on): Add progname.
12254         * tests/test-rbtree_oset.c: Include progname.h.
12255         (main): Call set_program_name.
12256
12257         * modules/rbtree-list-tests (Depends-on): Add progname.
12258         * tests/test-rbtree_list.c: Include progname.h.
12259         (main): Call set_program_name.
12260
12261         * modules/linked-list-tests (Depends-on): Add progname.
12262         * tests/test-linked_list.c: Include progname.h.
12263         (main): Call set_program_name.
12264
12265 2007-03-03  Bruno Haible  <bruno@clisp.org>
12266
12267         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
12268         All uses of __restrict changed to _Restrict_.
12269         * lib/glob_.h (__restrict): Remove macro.
12270
12271 2007-03-02  Bruno Haible  <bruno@clisp.org>
12272
12273         * modules/gettext (configure.ac): Require gettext infrastructure
12274         from version 0.16.1.
12275
12276 2007-03-02  Bruno Haible  <bruno@clisp.org>
12277
12278         * modules/linkedhash-list-tests (Depends-on): Add progname.
12279         * tests/test-linkedhash_list.c: Include progname.h.
12280         (main): Call set_program_name.
12281
12282         * modules/carray-list-tests (Depends-on): Add progname.
12283         * tests/test-carray_list.c: Include progname.h.
12284         (main): Call set_program_name.
12285
12286         * modules/avltreehash-list-tests (Depends-on): Add progname.
12287         * tests/test-avltreehash_list.c: Include progname.h.
12288         (main): Call set_program_name.
12289
12290         * modules/avltree-oset-tests (Depends-on): Add progname.
12291         * tests/test-avltree_oset.c: Include progname.h.
12292         (main): Call set_program_name.
12293
12294         * modules/avltree-list-tests (Depends-on): Add progname.
12295         * tests/test-avltree_list.c: Include progname.h.
12296         (main): Call set_program_name.
12297
12298         * modules/array-oset-tests (Depends-on): Add progname.
12299         * tests/test-array_oset.c: Include progname.h.
12300         (main): Call set_program_name.
12301
12302         * modules/array-list-tests (Depends-on): Add progname.
12303         * tests/test-array_list.c: Include progname.h.
12304         (main): Call set_program_name.
12305
12306         * modules/argp-tests (Depends-on): Add progname.
12307         * tests/test-argp.c: Include argp.h first. Include progname.h.
12308         (main): Call set_program_name.
12309
12310 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
12311
12312         * doc/gnulib-tool.texi (Initial import): Reword description of
12313         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
12314         limited effect even if defined after the first system include.
12315
12316 2007-03-01  Bruno Haible  <bruno@clisp.org>
12317
12318         * build-aux/config.libpath: Update to libtool-1.5.22.
12319         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
12320
12321 2007-03-01  Bruno Haible  <bruno@clisp.org>
12322
12323         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
12324         foo_CFLAGS.
12325         Reported by Ralf Wildenhues.
12326
12327 2007-03-01  Bruno Haible  <bruno@clisp.org>
12328
12329         * build-aux/install-reloc: Remove object files left over by some
12330         compilers.
12331         Reported by Ralf Wildenhues.
12332
12333 2007-03-01  Bruno Haible  <bruno@clisp.org>
12334
12335         * build-aux/install-reloc: Break long lines.
12336
12337 2007-03-01  Bruno Haible  <bruno@clisp.org>
12338
12339         * doc/relocatable.texi: Document that it may not work on OpenBSD.
12340         Reported by Ralf Wildenhues.
12341
12342 2007-03-01  Bruno Haible  <bruno@clisp.org>
12343
12344         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
12345         include ordering constraints.
12346
12347 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
12348
12349         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
12350         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
12351         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
12352         as another example.
12353         * lib/time_.h: Fix misspelling.
12354         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
12355         Require gl_HEADER_TIME_H_DEFAULTS.
12356         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
12357         * m4/time_r.m4 (gl_TIME_R): Likewise.
12358         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
12359
12360 2007-03-01  Bruno Haible  <bruno@clisp.org>
12361
12362         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
12363         * m4/utimens.m4 (gl_UTIMENS): Likewise.
12364
12365 2007-03-01  Jim Meyering  <jim@meyering.net>
12366
12367         * modules/xreadlink (Maintainer): Add my name.
12368         * modules/xreadlink-with-size (Depends-on): Alphabetize.
12369
12370 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
12371             Bruno Haible  <bruno@clisp.org>
12372
12373         * build-aux/install-reloc: Compile also c-ctype.c.
12374         * build-aux/relocatable.sh.in: New file.
12375         * doc/relocatable.texi: New file.
12376         * doc/relocatable-maint.texi: New file.
12377         * doc/gnulib.texi: Include relocatable-maint.texi.
12378         * lib/progreloc.c: Include unistd.h unconditionally.
12379         * lib/relocwrapper.c: Include unistd.h unconditionally.
12380         Include c-ctype.h.
12381         (add_dotbin): Use c_tolower.
12382         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
12383         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
12384         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
12385         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
12386         to m4/relocatable-lib.m4.
12387         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
12388         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
12389         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
12390         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
12391         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
12392         * modules/relocatable: New file.
12393         * modules/relocatable-lib: New file.
12394         * modules/relocatable-script: New file.
12395
12396 2007-02-28  Bruno Haible  <bruno@clisp.org>
12397
12398         Import --enable-relocatable infrastructure.
12399         * build-aux/config.libpath: New file, from GNU gettext.
12400         * build-aux/install-reloc: New file, from GNU gettext.
12401         * build-aux/reloc-ldflags: New file, from GNU gettext.
12402         * lib/relocatable.h: New file, from GNU gettext.
12403         * lib/relocatable.c: New file, from GNU gettext.
12404         * lib/relocwrapper.c: New file, from GNU gettext.
12405         * m4/relocatable.m4: New file, from GNU gettext.
12406
12407 2007-02-28  Bruno Haible  <bruno@clisp.org>
12408
12409         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
12410
12411         * modules/xreadlink: New file, from GNU gettext with modifications.
12412         * lib/xreadlink.c: New file, from GNU gettext.
12413         * lib/xreadlink.h: Add comments.
12414         (xreadlink): New declaration.
12415
12416         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
12417         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
12418         lib/xreadlink-with-size.c.
12419         (configure.ac): Remove gl_XREADLINK invocation.
12420         (Makefile.am): Augment lib_SOURCES.
12421         * m4/xreadlink.m4: Remove file.
12422         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
12423         (xreadlink_with_size): Renamed from xreadink.
12424         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
12425         * modules/canonicalize (Depends-on): Replace xreadlink with
12426         xreadlink-with-size.
12427         * lib/canonicalize.c (canonicalize_filename_mode): Update.
12428
12429 2007-02-25  Jim Meyering  <jim@meyering.net>
12430
12431         * build-aux/announce-gen: When complaining about excess arguments,
12432         list them.
12433
12434 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
12435
12436         * README: Document signed integer overflow situation more
12437         accurately.
12438
12439 2007-02-25  Bruno Haible  <bruno@clisp.org>
12440
12441         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
12442         'a' or 'A' conversion.
12443
12444 2007-02-25  Bruno Haible  <bruno@clisp.org>
12445
12446         * modules/filename: Renamed from modules/pathname.
12447         (Files): Replace lib/pathname.h with lib/filename.h. Replace
12448         lib/concatpath.c with lib/concat-filename.c.
12449         (Makefile.am): Update.
12450         (Include): Replace pathname.h with filename.h.
12451         * lib/filename.h: Renamed from lib/pathname.h.
12452         (concatenated_filename): Renamed from concatenated_pathname.
12453         * lib/concat-filename.c: Renamed from lib/concatpath.c.
12454         (concatenated_filename): Renamed from concatenated_pathname.
12455         * lib/findprog.c: Include filename.h instead of pathname.h.
12456         (find_in_path): Update.
12457         * lib/javacomp.c: Include filename.h instead of pathname.h.
12458         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
12459         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
12460         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
12461         is_oldgcj_14_13_usable, is_javac_usable): Update.
12462         * lib/javaexec.c: Include filename.h instead of pathname.h.
12463         (execute_java_class): Update.
12464         * modules/findprog: Update.
12465         * modules/javacomp: Update.
12466         * modules/javaexec: Update.
12467         * MODULES.html.sh (File system functions): Add 'filename', remove
12468         'pathname'.
12469
12470 2007-02-25  Bruno Haible  <bruno@clisp.org>
12471
12472         * modules/printf-frexpl-tests: New file.
12473         * tests/test-printf-frexpl.c: New file.
12474
12475         * modules/printf-frexpl: New file.
12476         * lib/printf-frexpl.h: New file.
12477         * lib/printf-frexpl.c: New file.
12478         * m4/printf-frexpl.m4: New file.
12479
12480 2007-02-25  Bruno Haible  <bruno@clisp.org>
12481
12482         * modules/printf-frexp-tests: New file.
12483         * tests/test-printf-frexp.c: New file.
12484
12485         * modules/printf-frexp: New file.
12486         * lib/printf-frexp.h: New file.
12487         * lib/printf-frexp.c: New file.
12488         * m4/printf-frexp.m4: New file.
12489
12490 2007-02-25  Bruno Haible  <bruno@clisp.org>
12491
12492         Assume automake >= 1.10 for the tests.
12493         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
12494         * modules/arctwo-tests: Likewise.
12495         * modules/argp-tests: Likewise.
12496         * modules/avltree-list-tests: Likewise.
12497         * modules/avltree-oset-tests: Likewise.
12498         * modules/avltreehash-list-tests: Likewise.
12499         * modules/carray-list-tests: Likewise.
12500         * modules/crc-tests: Likewise.
12501         * modules/des-tests: Likewise.
12502         * modules/gc-arcfour-tests: Likewise.
12503         * modules/gc-arctwo-tests: Likewise.
12504         * modules/gc-des-tests: Likewise.
12505         * modules/gc-hmac-md5-tests: Likewise.
12506         * modules/gc-hmac-sha1-tests: Likewise.
12507         * modules/gc-md2-tests: Likewise.
12508         * modules/gc-md4-tests: Likewise.
12509         * modules/gc-md5-tests: Likewise.
12510         * modules/gc-pbkdf2-sha1-tests: Likewise.
12511         * modules/gc-rijndael-tests: Likewise.
12512         * modules/gc-sha1-tests: Likewise.
12513         * modules/gc-tests: Likewise.
12514         * modules/getaddrinfo-tests: Likewise.
12515         * modules/hmac-md5-tests: Likewise.
12516         * modules/hmac-sha1-tests: Likewise.
12517         * modules/linked-list-tests: Likewise.
12518         * modules/linkedhash-list-tests: Likewise.
12519         * modules/lock-tests: Likewise.
12520         * modules/md2-tests: Likewise.
12521         * modules/md4-tests: Likewise.
12522         * modules/md5-tests: Likewise.
12523         * modules/rbtree-list-tests: Likewise.
12524         * modules/rbtree-oset-tests: Likewise.
12525         * modules/rbtreehash-list-tests: Likewise.
12526         * modules/read-file-tests: Likewise.
12527         * modules/rijndael-tests: Likewise.
12528         * modules/stdint-tests: Likewise.
12529         * modules/tls-tests: Likewise.
12530
12531 2007-02-24  Bruno Haible  <bruno@clisp.org>
12532
12533         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
12534         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
12535         function; instead check whether isnan with a double argument links.
12536         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
12537         function; instead check whether isnan with a 'long double' argument
12538         links.
12539         Reported by Eric Blake <ebb9@byu.net>.
12540
12541 2007-02-24  Bruno Haible  <bruno@clisp.org>
12542
12543         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
12544         defined.
12545         * lib/isnanl.c: Remove all code. Just include isnan.c.
12546         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
12547
12548 2007-02-25  Jim Meyering  <jim@meyering.net>
12549
12550         Avoid conflicting types for 'unsetenv' on FreeBSD.
12551         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
12552         conflicting with FreeBSD's (5.0 and 6.1) function declaration
12553         in stdlib.h.
12554
12555 2007-02-24  Bruno Haible  <bruno@clisp.org>
12556
12557         * modules/isnanl-nolibm-tests: New file.
12558         * tests/test-isnanl.c: New file.
12559
12560         * modules/isnanl-nolibm: New file.
12561         * lib/isnanl.h: New file.
12562         * lib/isnanl.c: New file.
12563         * m4/isnanl.m4: New file.
12564
12565 2007-02-24  Bruno Haible  <bruno@clisp.org>
12566
12567         * modules/isnan-nolibm-tests: New file.
12568         * tests/test-isnan.c: New file.
12569
12570         * modules/isnan-nolibm: New file.
12571         * lib/isnan.h: New file.
12572         * lib/isnan.c: New file.
12573         * m4/isnan.m4: New file.
12574
12575 2007-02-24  Bruno Haible  <bruno@clisp.org>
12576
12577         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
12578         assume that an exponent fits in 20 bits.
12579
12580 2007-02-24  Jim Meyering  <jim@meyering.net>
12581
12582         * m4/regex.m4: Update the description of the configure-time option,
12583         --without-included-regex, to state accurately what the defaults are,
12584         and perhaps to give people an idea why using this option is risky.
12585
12586 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
12587
12588         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
12589         loops on small arguments.  This attempts to avoid the problem
12590         Bruno Haible reported for AIX 4.3.2 in
12591         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
12592
12593 2007-02-23  Bruno Haible  <bruno@clisp.org>
12594
12595         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
12596         Needed for help2man.
12597
12598 2007-02-23  Karl Berry  <karl@gnu.org>
12599
12600         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
12601         exists, foo.h should be cvs-ignored, not committed.
12602
12603 2007-02-23  Eric Blake  <ebb9@byu.net>
12604
12605         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
12606         * lib/stat-time.h (includes): Likewise.
12607         * lib/utimecmp.c (includes): Likewise.
12608         * lib/utimens.h (includes): Likewise.
12609         * lib/getdate.y (includes): Also include "timespec.h" for use
12610         internal to the module.
12611         * modules/utimens (Depends-on): Revert yesterday's patch.
12612         * modules/nanosleep (Depends-on): Add missing dependency.
12613
12614 2007-02-22  Bruno Haible  <bruno@clisp.org>
12615
12616         * lib/glob.c: Don't include getlogin_r.h.
12617
12618 2007-02-22  Jim Meyering  <jim@meyering.net>
12619
12620         * modules/utimens (Depends-on): Add timespec, required for
12621         utimens.h's inclusion of timespec.h.
12622
12623 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
12624
12625         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
12626         long unreadable paths in GNU/Linux.  Problem reported by Andreas
12627         Schwab in
12628         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
12629         I'll try to think of a better way to fix the Solaris problem.
12630
12631         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
12632         like glibc; on Solaris 10, it fails with errno == EINVAL.
12633         POSIX says the behavior is unspecified if the first argument is NULL,
12634         so play it safe and never pass NULL to the system getcwd.
12635
12636 2007-02-21  Jim Meyering  <jim@meyering.net>
12637
12638         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
12639         of gettimeofday.  It would conflict with the one now always
12640         provided via sys_time_.h.  Reported by Matthew Woehlke, as
12641         an IRIX 6.5 build failure.
12642
12643 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
12644
12645         Minor fixups to port to Solaris 10 with Sun C 5.8.
12646         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
12647         * modules/getcwd (Depends-on): Add dirfd.
12648         * lib/putenv.c (putenv): #undef it.
12649         (rpl_putenv): New decl.
12650         (malloc, free): Include <stdlib.h> rather than prototyping separately.
12651
12652 2007-02-20  Bruno Haible  <bruno@clisp.org>
12653
12654         * modules/stdio-tests: New file.
12655         * tests/test-stdio.c: New file.
12656
12657         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
12658         (Depends-on): Add stdio.
12659         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
12660         (Include): Use <stdio.h> instead of vsnprintf.h.
12661         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
12662         HAVE_DECL_VSNPRINTF.
12663         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
12664
12665         * modules/snprintf (Files): Remove lib/snprintf.h.
12666         (Depends-on): Add stdio.
12667         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
12668         (Include): Use <stdio.h> instead of snprintf.h.
12669         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
12670         HAVE_DECL_SNPRINTF.
12671         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
12672         * lib/getaddrinfo.c: Likewise.
12673
12674         * modules/stdio: New file.
12675         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
12676         * lib/snprintf.h: Remove file.
12677         * lib/vsnprintf.h: Remove file.
12678         * lib/.cppi-disable: Remove snprintf.h.
12679         * m4/stdio_h.m4: New file.
12680         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
12681
12682 2007-02-20  Jim Meyering  <jim@meyering.net>
12683
12684         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
12685         used by e.g., mingw.  From Bruno Haible.
12686
12687 2007-02-19  Bruno Haible  <bruno@clisp.org>
12688
12689         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
12690         warnings.
12691         Reported by Ben Pfaff <blp@cs.stanford.edu>.
12692
12693 2007-02-19  Bruno Haible  <bruno@clisp.org>
12694
12695         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
12696         from mingw users.
12697
12698 2007-02-19  Bruno Haible  <bruno@clisp.org>
12699
12700         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
12701         warnings.
12702         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
12703
12704 2007-02-19  Jim Meyering  <jim@meyering.net>
12705
12706         Don't use FD after a successful "fdopendir (fd)".
12707         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
12708         Reset it by calling dirfd on the just-obtained DIR*.
12709
12710         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
12711         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
12712
12713 2007-02-18  Bruno Haible  <bruno@clisp.org>
12714
12715         * lib/readlink.c: Include <unistd.h>.
12716         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
12717         HAVE_READLINK.
12718         * modules/readlink (Depends-on): Add unistd.
12719         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
12720         (Include): Add <unistd.h>.
12721
12722         * lib/getlogin_r.h: Remove file.
12723         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
12724         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
12725         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
12726         HAVE_DECL_GETLOGIN_R.
12727         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
12728         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
12729         (Include): Use <unistd.h> instead of getlogin_r.h.
12730
12731         * lib/getcwd.h: Remove file.
12732         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
12733         * lib/xgetcwd.c: Likewise.
12734         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
12735         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
12736         * modules/getcwd (Files): Remove lib/getcwd.h.
12737         (Depends-on): Add unistd.
12738         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
12739         (Include): Use <unistd.h> instad of getcwd.h.
12740
12741         * lib/ftruncate.c: Include <unistd.h> first.
12742         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
12743         Set HAVE_FTRUNCATE.
12744         * modules/ftruncate (Depends-on): Add unistd.
12745         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
12746
12747         * lib/fchdir.c: Include <unistd.h> first.
12748         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
12749         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
12750         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
12751         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
12752         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
12753
12754         * lib/dup2.c: Include <unistd.h> first.
12755         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
12756         HAVE_DUP2.
12757         * modules/dup2 (Depends-on): Add unistd.
12758         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
12759
12760         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
12761         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
12762         REPLACE_CHOWN. Don't define chown as a macro here.
12763         * modules/chown (Depends-on): Add unistd.
12764         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
12765
12766         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
12767         Add definition for GL_LINK_WARNING.
12768         (chown, dup2): New declarations.
12769         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
12770         link warning.
12771         (ftruncate): New declaration.
12772         (getcwd): New declaration, taken from old getcwd.h.
12773         (getlogin_r): New declaration, taken from old getlogin_r.h.
12774         (readlink): New declaration.
12775         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
12776         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
12777         (gl_PREREQ_UNISTD): Remove macro.
12778         (gl_UNISTD_MODULE_INDICATOR): New macro.
12779         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
12780         many new variables. Don't set UNISTD_H.
12781         * modules/unistd (Description): Change.
12782         (Depends-on): Add link-warning.
12783         (configure.ac): Update.
12784         (Makefile.am): Create unistd.h always. Substitute many new variables
12785         into it.
12786
12787 2007-02-18  Bruno Haible  <bruno@clisp.org>
12788
12789         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
12790         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
12791         HAVE_GETSUBOPT.
12792         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
12793         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
12794         * lib/getsubopt.h: Remove file.
12795         * modules/getsubopt (Files): Remove lib/getsubopt.h.
12796         (Depends-on): Add stdlib.
12797         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
12798         (Includes): Use <stdlib.h> instead of getsubopt.h.
12799         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
12800         Set HAVE_GETSUBOPT.
12801         * lib/getsubopt.c: Don't include getsubopt.h.
12802
12803 2007-02-18  Bruno Haible  <bruno@clisp.org>
12804
12805         * modules/fchdir (Depends-on): Add dup2.
12806
12807 2007-02-18  Bruno Haible  <bruno@clisp.org>
12808
12809         * lib/stdlib_.h: Handle glibc's special invocation convention
12810         specially.
12811
12812 2007-02-18  Bruno Haible  <bruno@clisp.org>
12813
12814         * modules/stdlib-tests: New file.
12815         * tests/test-stdlib.c: New file.
12816
12817         * modules/mkstemp (Files): Remove lib/mkstemp.h.
12818         (Depends-on): Add stdlib.
12819         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
12820         (Includes): Use <stdlib.h> instead of mkstemp.h.
12821         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
12822         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
12823         * lib/mkstemp.c: Don't include mkstemp.h.
12824         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
12825         * lib/stdlib--.h: Don't include mkstemp.h.
12826
12827         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
12828         (Depends-on): Add stdlib.
12829         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
12830         (Includes): Use <stdlib.h> instead of mkdtemp.h.
12831         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
12832         HAVE_MKDTEMP.
12833         * lib/mkdtemp.c: Don't include mkdtemp.h.
12834         * lib/clean-temp.c: Don't include mkdtemp.h.
12835
12836         * modules/exit (Files): Remove lib/exit.h.
12837         (Depends-on): Add stdlib.
12838         (Makefile.am): Remove lib_SOURCES.
12839         (Include): Use <stdlib.h> instead of exit.h.
12840         * lib/argmatch.c: Don't include exit.h.
12841         * lib/execute.c: Likewise.
12842         * lib/pagealign_alloc.c: Likewise.
12843         * lib/pipe.c: Likewise.
12844         * lib/wait-process.c: Likewise.
12845         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
12846         * lib/exitfail.c: Likewise.
12847         * lib/savewd.c: Likewise.
12848         * lib/xsetenv.c: Likewise.
12849
12850         * modules/stdlib: New file.
12851         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
12852         and extra comments about mkstemp().
12853         * lib/exit.h: Remove file.
12854         * lib/mkdtemp.h: Remove file.
12855         * lib/mkstemp.h: Remove file.
12856         * m4/stdlib_h.m4: New file.
12857         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
12858
12859 2007-02-18  Bruno Haible  <bruno@clisp.org>
12860
12861         * modules/math-tests: New file.
12862         * tests/test-math.c: New file.
12863
12864         * modules/math: New file.
12865         * modules/mathl (Files): Remove lib/mathl.h.
12866         (Depends-on): Add math.
12867         (Makefile.am): Don't mention mathl.h.
12868         (Include): Use <math.h> instead of mathl.h.
12869         * lib/math_.h: New file.
12870         * lib/mathl.h: Remove file.
12871         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
12872         mathl.h.
12873         * lib/asinl.c: Likewise.
12874         * lib/atanl.c: Likewise.
12875         * lib/ceill.c: Likewise.
12876         * lib/cosl.c: Likewise.
12877         * lib/expl.c: Likewise.
12878         * lib/floorl.c: Likewise.
12879         * lib/frexpl.c: Likewise.
12880         * lib/ldexpl.c: Likewise.
12881         * lib/logl.c: Likewise.
12882         * lib/sincosl.c: Likewise.
12883         * lib/sinl.c: Likewise.
12884         * lib/sqrtl.c: Likewise.
12885         * lib/tanl.c: Likewise.
12886         * lib/trigl.c: Likewise.
12887         * m4/math_h.m4: New file.
12888         * MODULES.html.sh (Mathematics): Add math.
12889
12890 2007-02-17  Bruno Haible  <bruno@clisp.org>
12891
12892         * modules/wctype-tests: New file.
12893         * tests/test-wctype.c: New file.
12894
12895         * modules/wchar-tests: New file.
12896         * tests/test-wchar.c: New file.
12897
12898         * modules/unistd-tests: New file.
12899         * tests/test-unistd.c: New file.
12900
12901         * modules/time-tests: New file.
12902         * tests/test-time.c: New file.
12903
12904         * modules/sysexits-tests: New file.
12905         * tests/test-sysexits.c: New file.
12906
12907         * modules/sys_time-tests: New file.
12908         * tests/test-sys_time.c: New file.
12909
12910         * modules/sys_stat-tests: New file.
12911         * tests/test-sys_stat.c: New file.
12912
12913         * modules/sys_socket-tests: New file.
12914         * tests/test-sys_socket.c: New file.
12915
12916         * modules/sys_select-tests: New file.
12917         * tests/test-sys_select.c: New file.
12918
12919         * modules/string-tests: New file.
12920         * tests/test-string.c: New file.
12921
12922         * modules/stdbool-tests: New file.
12923         * tests/test-stdbool.c: New file.
12924
12925         * modules/netinet_in-tests: New file.
12926         * tests/test-netinet_in.c: New file.
12927
12928         * modules/inttypes-tests: New file.
12929         * tests/test-inttypes.c: New file.
12930
12931         * modules/fcntl-tests: New file.
12932         * tests/test-fcntl.c: New file.
12933
12934         * modules/byteswap-tests: New file.
12935         * tests/test-byteswap.c: New file.
12936
12937         * modules/arpa_inet-tests: New file.
12938         * tests/test-arpa_inet.c: New file.
12939
12940 2007-02-17  Bruno Haible  <bruno@clisp.org>
12941
12942         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
12943         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
12944         if the corresponding module is not enabled. Emit link warnings if
12945         the function is used nevertheless.
12946         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
12947         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
12948         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
12949         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
12950         * modules/inttypes (Depends-on): Add link-warning.
12951         (Makefile.am): Copy the contents of build-aux/link-warning.h into
12952         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
12953         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
12954         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
12955         * modules/imaxdiv (configure.ac): Likewise.
12956         * modules/strtoimax (configure.ac): Likewise.
12957         * modules/strtoumax (configure.ac): Likewise.
12958
12959 2007-02-17  Bruno Haible  <bruno@clisp.org>
12960
12961         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
12962         gl_STRING_MODULE_INDICATOR_DEFAULTS.
12963         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
12964         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
12965
12966 2007-02-17  Bruno Haible  <bruno@clisp.org>
12967
12968         * modules/link-warning: New file.
12969         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
12970         * lib/string_.h (GL_LINK_WARNING): Remove definition.
12971         * modules/string (Depends-on): Add link-warning.
12972         (Makefile.am): Copy the contents of build-aux/link-warning.h into
12973         string.h.
12974         * MODULES.html.sh (Support for building libraries and executables): Add
12975         link-warning.
12976
12977 2007-02-17  Bruno Haible  <bruno@clisp.org>
12978
12979         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
12980         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
12981         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
12982         long lines.
12983
12984 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
12985             Bruno Haible  <bruno@clisp.org>
12986
12987         * modules/tmpfile: New file.
12988         * lib/tmpfile.c: New file.
12989         * m4/tmpfile.m4: New file.
12990         * MODULES.html.sh (func_all_modules): New section "Input/output".
12991
12992 2007-02-15  Bruno Haible  <bruno@clisp.org>
12993
12994         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
12995         (supports_delete_on_close): New function.
12996         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
12997
12998 2007-02-14  Bruno Haible  <bruno@clisp.org>
12999
13000         * modules/mbspcasecmp-tests: New file.
13001         * tests/test-mbspcasecmp.sh: New file.
13002         * tests/test-mbspcasecmp.c: New file.
13003
13004         New module mbspcasecmp.
13005         * modules/mbspcasecmp: New file.
13006         * lib/mbspcasecmp.c: New file.
13007         * lib/string_.h (strncasecmp): Change warning message.
13008         (mbspcasecmp): New declaration.
13009         * m4/mbspcasecmp.m4: New file.
13010         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
13011         GNULIB_MBSPCASECMP.
13012         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
13013         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
13014
13015 2007-02-14  Bruno Haible  <bruno@clisp.org>
13016
13017         * modules/mbsncasecmp-tests: New file.
13018         * tests/test-mbsncasecmp.sh: New file.
13019         * tests/test-mbsncasecmp.c: New file.
13020
13021         New module mbsncasecmp.
13022         * modules/mbsncasecmp: New file.
13023         * lib/mbsncasecmp.c: New file.
13024         * lib/string_.h (mbsncasecmp): New declaration.
13025         * m4/mbsncasecmp.m4: New file.
13026         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
13027         GNULIB_MBSNCASECMP.
13028         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
13029         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
13030
13031 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
13032
13033         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
13034         Verify that it doesn't overlap with our flags.
13035         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
13036         do not have the desired effect in multibyte locales; instead, use
13037         mbscasecmp.
13038         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
13039         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
13040         we don't require GNU fnmatch ourselves (if our users require it, they
13041         should do so explicitly).
13042
13043         Fix regex code so it doesn't rely on strcasecmp.
13044         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
13045         Otherwise, include gnulib's langinfo.h.
13046         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
13047         undesirable behavior in non-C locales.  Instead, rely on localecharset.
13048         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
13049         * modules/regex (FILES): Remove m4/codeset.m4.
13050         (Depends-on): Add localcharset.  Remove strcase.
13051
13052 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13053
13054         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
13055         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
13056
13057 2007-02-13  Bruno Haible  <bruno@clisp.org>
13058
13059         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
13060         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13061
13062 2007-02-12  Bruno Haible  <bruno@clisp.org>
13063
13064         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
13065         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
13066         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
13067         time warning rather than a link error.
13068
13069 2007-02-12  Bruno Haible  <bruno@clisp.org>
13070
13071         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
13072         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
13073         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13074
13075 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
13076
13077         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
13078         args, not 2.
13079
13080 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
13081
13082         New module 'time', so that apps can include <time.h> as per
13083         POSIX and GNU instead of separate include files like time_r.h
13084         and timegm.h.  This implementation tries out a simpler approach
13085         for replacing decls in standard include files (as compared to
13086         the string module), somewhat as an experiment.
13087
13088         * config/srclist.txt: Comment out mktime.c for now.
13089         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
13090         since it doesn't apply any more.  Use generic wording instead.
13091         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
13092         'time'.
13093         * lib/time_.h, m4/time_h.m4, modules/time: New files.
13094         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
13095         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
13096         Don't include <sys/types.h>; no longer needed since we assume C89.
13097         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
13098         * lib/strftime.c: Likewise.
13099         * lib/time_r.c: Likewise.
13100         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
13101         * lib/nanosleep.c: Include <time.h> first, to check interface.
13102         * lib/strptime.c: Likewise.
13103         * lib/time_r.c: Likewise.
13104         * lib/timegm.c: Likewise.
13105         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
13106         needed.
13107         * lib/timegm.c: Don't include timegm.h; no longer needed.
13108         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
13109         time.h now handles any problems in that area.
13110         (struct timespec, nanosleep): Remove; time.h now arranges for these.
13111         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
13112         that time.h defines struct timespec.
13113         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
13114         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
13115         handles that.
13116         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
13117         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
13118         needed.  Set REPLACE_LOCALTIME.
13119         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
13120         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
13121         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
13122         nanosleep; time_h.m4 now does that.  Don't require
13123         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
13124         module handles this now.
13125         * modules/getdate (Depends-on): Remove timespec.  Add time.
13126         * modules/nanosleep (Depends-on): Likewise.
13127         * modules/stat-time (Depends-on): Likewise.
13128         * modules/nanosleep (Include): Include time.h, not timespec.h.
13129         * modules/strptime (Files): Remove lib/strptime.h.
13130         (Depends-on): Add extensions, time.
13131         (Include): Include time.h, not strptime.h.
13132         * modules/time_r (Files): Remove lib/time_r.h.
13133         (Depends-on): Add time.
13134         (Include): Include time.h, not time_r.h.
13135         * modules/timegm: Likewise.
13136         * modules/timespec (Description): Now does timespec-related decls
13137         of our own, instead of struct timespec itself.
13138         (Depends-on): Add time; remove extensions.
13139         (Maintainer): Add self.
13140         * modules/utimecmp (Depends-on): Add time; remove timespec.
13141         * modules/utimens (Depends-on): Likewise.
13142         * modules/xnanosleep (Depends-on): Likewise.
13143
13144 2007-02-11  Bruno Haible  <bruno@clisp.org>
13145
13146         * lib/c-strstr.c: Include allocsa.h.
13147         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
13148         * lib/c-strcasestr.c: Include allocsa.h.
13149         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
13150         * lib/strcasestr.c: Include allocsa.h.
13151         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
13152         * lib/mbsstr.c: Include allocsa.h.
13153         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
13154         allocsa/freesa instead of malloc/free.
13155         * lib/mbscasestr.c: Include allocsa.h.
13156         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
13157         allocsa/freesa instead of malloc/free.
13158         * modules/c-strstr (Depends-on): Add allocsa.
13159         * modules/c-strcasestr (Depends-on): Likewise.
13160         * modules/strcasestr (Depends-on): Likewise.
13161         * modules/mbsstr (Depends-on): Likewise.
13162         * modules/mbscasestr (Depends-on): Likewise.
13163
13164 2007-02-11  Bruno Haible  <bruno@clisp.org>
13165
13166         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
13167
13168         * modules/mbsspn-tests: New file.
13169         * tests/test-mbsspn.sh: New file.
13170         * tests/test-mbsspn.c: New file.
13171
13172 2007-02-11  Bruno Haible  <bruno@clisp.org>
13173
13174         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
13175
13176         * modules/mbspbrk-tests: New file.
13177         * tests/test-mbspbrk.sh: New file.
13178         * tests/test-mbspbrk.c: New file.
13179
13180 2007-02-11  Bruno Haible  <bruno@clisp.org>
13181
13182         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
13183         unneeded cast.
13184
13185         * modules/mbscspn-tests: New file.
13186         * tests/test-mbscspn.sh: New file.
13187         * tests/test-mbscspn.c: New file.
13188
13189 2007-02-11  Bruno Haible  <bruno@clisp.org>
13190
13191         * modules/mbscasecmp-tests: New file.
13192         * tests/test-mbscasecmp.sh: New file.
13193         * tests/test-mbscasecmp.c: New file.
13194
13195 2007-02-11  Bruno Haible  <bruno@clisp.org>
13196
13197         Ensure O(n) worst-case complexity of mbscasestr.
13198         * lib/mbscasestr.c: Include stdbool.h.
13199         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
13200         functions.
13201         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
13202         the bookkeeping indicates that it's worth it.
13203         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
13204
13205         * modules/mbscasestr-tests: New file.
13206         * tests/test-mbscasestr1.c: New file.
13207         * tests/test-mbscasestr2.sh: New file.
13208         * tests/test-mbscasestr2.c: New file.
13209         * tests/test-mbscasestr3.sh: New file.
13210         * tests/test-mbscasestr3.c: New file.
13211         * tests/test-mbscasestr4.sh: New file.
13212         * tests/test-mbscasestr4.c: New file.
13213         * m4/locale-tr.m4: New file.
13214
13215 2007-02-11  Bruno Haible  <bruno@clisp.org>
13216
13217         Ensure O(n) worst-case complexity of mbsstr.
13218         * lib/mbsstr.c: Include stdbool.h.
13219         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
13220         functions.
13221         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
13222         bookkeeping indicates that it's worth it.
13223         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
13224
13225         * modules/mbsstr-tests: New file.
13226         * tests/test-mbsstr1.c: New file.
13227         * tests/test-mbsstr2.sh: New file.
13228         * tests/test-mbsstr2.c: New file.
13229         * tests/test-mbsstr3.sh: New file.
13230         * tests/test-mbsstr3.c: New file.
13231         * m4/locale-fr.m4: New file.
13232
13233 2007-02-11  Bruno Haible  <bruno@clisp.org>
13234
13235         * lib/mbsrchr.c (mbsrchr): Fix bug.
13236
13237         * modules/mbsrchr-tests: New file.
13238         * tests/test-mbsrchr.sh: New file.
13239         * tests/test-mbsrchr.c: New file.
13240
13241 2007-02-11  Bruno Haible  <bruno@clisp.org>
13242
13243         * lib/mbschr.c (mbschr): Fix bug.
13244
13245         * modules/mbschr-tests: New file.
13246         * tests/test-mbschr.sh: New file.
13247         * tests/test-mbschr.c: New file.
13248         * m4/locale-zh.m4: New file.
13249
13250 2007-02-11  Bruno Haible  <bruno@clisp.org>
13251
13252         Support for copying multibyte string iterators.
13253         * lib/mbiter.h: Include <string.h>.
13254         (mbiter_multi_copy): New function.
13255         (mbi_copy): New macro.
13256         * lib/mbuiter.h: Include <string.h>.
13257         (mbuiter_multi_copy): New function.
13258         (mbui_copy): New macro.
13259
13260 2007-02-11  Bruno Haible  <bruno@clisp.org>
13261
13262         New module mbslen.
13263         * modules/mbslen: New file.
13264         * lib/mbslen.c: New file.
13265         * lib/string_.h (mbslen): New declaration.
13266         * m4/mbslen.m4: New file.
13267         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
13268         GNULIB_MBSLEN.
13269         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
13270         * MODULES.html.sh (Internationalization functions): Add mbslen.
13271
13272 2007-02-11  Bruno Haible  <bruno@clisp.org>
13273
13274         Ensure O(n) worst-case complexity of strcasestr substitute.
13275         * lib/strcasestr.c: Include stdbool.h.
13276         (knuth_morris_pratt): New function.
13277         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
13278         bookkeeping indicates that it's worth it.
13279         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
13280
13281         * modules/strcasestr-tests: New file.
13282         * tests/test-strcasestr.c: New file.
13283
13284 2007-02-11  Bruno Haible  <bruno@clisp.org>
13285
13286         Ensure O(n) worst-case complexity of c_strcasestr.
13287         * lib/c-strcasestr.c: Include stdbool.h, string.h.
13288         (knuth_morris_pratt): New function.
13289         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
13290         the bookkeeping indicates that it's worth it.
13291         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
13292
13293         * modules/c-strcasestr-tests: New file.
13294         * tests/test-c-strcasestr.c: New file.
13295
13296 2007-02-11  Bruno Haible  <bruno@clisp.org>
13297
13298         Ensure O(n) worst-case complexity of c_strstr.
13299         * lib/c-strstr.c: Include stdbool.h, string.h.
13300         (knuth_morris_pratt): New function.
13301         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
13302         bookkeeping indicates that it's worth it.
13303         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
13304
13305         * lib/c-strstr.c: Complete rewrite for maintainability.
13306
13307         * modules/c-strstr-tests: New file.
13308         * tests/test-c-strstr.c: New file.
13309
13310 2007-02-11  Bruno Haible  <bruno@clisp.org>
13311
13312         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
13313         5.2.1 and earlier, whereby \055 was treated just like the range
13314         delimiter '-'.
13315         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
13316
13317 2007-02-08  Bruno Haible  <bruno@clisp.org>
13318
13319         * modules/regex (Depends-on): Add stdbool.
13320         Reported by Dalibor Topic <robilad@kaffe.org>.
13321
13322 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
13323
13324         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
13325         Prefer returning from main to exiting from it.
13326         Remove unnecessary parens after sizeof.
13327
13328 2007-02-05  Bruno Haible  <bruno@clisp.org>
13329
13330         New module mbssep.
13331         * modules/mbssep: New file.
13332         * lib/mbssep.c: New file.
13333         * lib/string_.h (strsep): Add a conditional link warning.
13334         (mbssep): New declaration.
13335         * m4/mbssep.m4: New file.
13336         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
13337         GNULIB_MBSSEP.
13338         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
13339         * MODULES.html.sh (Internationalization functions): Add mbssep.
13340
13341 2007-02-05  Bruno Haible  <bruno@clisp.org>
13342
13343         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
13344         Optimize search in case of 1 delimiter.
13345
13346 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
13347
13348         * lib/acl.h: Include sys/types.h before sys/acl.h.
13349
13350 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
13351
13352         Merge upstream fix for glibc bugzilla #3957:
13353
13354         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
13355
13356         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
13357         bit for RE_HAT_LISTS_NOT_NEWLINE.
13358         (build_charclass_op): Remove bogus comment.
13359
13360 2007-02-05  Simon Josefsson  <simon@josefsson.org>
13361
13362         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
13363
13364 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
13365
13366         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
13367         * lib/memmem.c [!defined _LIBC]: Include config.h.
13368
13369 2007-02-04  Bruno Haible  <bruno@clisp.org>
13370
13371         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
13372         warning message.
13373
13374 2007-02-04  Bruno Haible  <bruno@clisp.org>
13375
13376         New module mbstok_r.
13377         * modules/mbstok_r: New file.
13378         * lib/mbstok_r.c: New file.
13379         * lib/string_.h (strtok_r): Change argument names to match the
13380         comments. Add a conditional link warning.
13381         (mbstok_r): New declaration.
13382         * m4/mbstok_r.m4: New file.
13383         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
13384         GNULIB_MBSTOK_R.
13385         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
13386         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
13387
13388 2007-02-04  Bruno Haible  <bruno@clisp.org>
13389
13390         New module mbsspn.
13391         * modules/mbsspn: New file.
13392         * lib/mbsspn.c: New file.
13393         * lib/string_.h (strspn): Add a conditional link warning.
13394         (mbsspn): New declaration.
13395         * m4/mbsspn.m4: New file.
13396         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
13397         GNULIB_MBSSPN.
13398         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
13399         * MODULES.html.sh (Internationalization functions): Add mbsspn.
13400
13401 2007-02-04  Bruno Haible  <bruno@clisp.org>
13402
13403         New module mbspbrk.
13404         * modules/mbspbrk: New file.
13405         * lib/mbspbrk.c: New file.
13406         * lib/string_.h (strpbrk): Add a conditional link warning.
13407         (mbspbrk): New declaration.
13408         * m4/mbspbrk.m4: New file.
13409         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
13410         GNULIB_MBSPBRK.
13411         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
13412         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
13413
13414 2007-02-04  Bruno Haible  <bruno@clisp.org>
13415
13416         New module mbscspn.
13417         * modules/mbscspn: New file.
13418         * lib/mbscspn.c: New file.
13419         * lib/string_.h (strcspn): Add a conditional link warning.
13420         (mbscspn): New declaration.
13421         * m4/mbscspn.m4: New file.
13422         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
13423         GNULIB_MBSCSPN.
13424         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
13425         * MODULES.html.sh (Internationalization functions): Add mbscspn.
13426
13427 2007-02-04  Bruno Haible  <bruno@clisp.org>
13428
13429         New module mbscasestr, reduced goal of strcasestr.
13430         * modules/mbscasestr: New file.
13431         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
13432         (mbscasestr): Renamed from strcasestr.
13433         * lib/strcasestr.c: Don't include mbuiter.h.
13434         (strcasestr): Remove support for multibyte locales.
13435         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
13436         Change the conditional link warning.
13437         (mbscasestr): New declaration.
13438         * m4/mbscasestr.m4: New file.
13439         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
13440         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
13441         REPLACE_STRCASESTR.
13442         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
13443         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
13444         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
13445         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
13446         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
13447         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
13448         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
13449         (Depends-on): Remove mbuiter.
13450         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
13451
13452 2007-02-04  Bruno Haible  <bruno@clisp.org>
13453
13454         Simplify handling of strncasecmp.
13455         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
13456         the conditional link warning.
13457         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
13458         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
13459         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
13460         * modules/strcase (configure.ac): Don't invoke
13461         gl_STRING_MODULE_INDICATOR.
13462         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
13463
13464 2007-02-04  Bruno Haible  <bruno@clisp.org>
13465
13466         New module mbscasecmp, reduced goal of strcasecmp.
13467         * modules/mbscasecmp: New file.
13468         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
13469         (mbscasecmp): Renamed from strcasecmp.
13470         * lib/strcasecmp.c: Don't include mbuiter.h.
13471         (strcasecmp): Remove support for multibyte locales.
13472         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
13473         Change the conditional link warning.
13474         (mbscasecmp): New declaration.
13475         * m4/mbscasecmp.m4: New file.
13476         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
13477         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
13478         REPLACE_STRCASECMP.
13479         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
13480         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
13481         GNULIB_MBSCASECMP.
13482         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
13483         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
13484         * modules/strcase (Files): Remove m4/mbrtowc.m4.
13485         (Depends-on): Remove mbuiter.
13486         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
13487
13488 2007-02-04  Bruno Haible  <bruno@clisp.org>
13489
13490         New module mbsstr. Remove module strstr.
13491         * modules/mbsstr: New file.
13492         * modules/strstr: Remove file.
13493         * lib/mbsstr.c: Renamed from lib/strstr.c.
13494         (mbsstr): Renamed from strstr.
13495         * lib/string_.h (strstr): Remove declaration. Change the conditional
13496         link warning.
13497         (mbsstr): New declaration.
13498         * m4/mbsstr.m4: New file.
13499         * m4/strstr.m4: Remove file.
13500         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
13501         REPLACE_STRSTR.
13502         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
13503         Don't initialize GNULIB_STRSTR.
13504         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
13505         substitute GNULIB_STRSTR and REPLACE_STRSTR.
13506         * MODULES.html.sh (Internationalization functions): Add mbsstr.
13507         (Support for systems lacking ANSI C 89): Remove strstr.
13508
13509 2007-02-04  Bruno Haible  <bruno@clisp.org>
13510
13511         New module mbsrchr.
13512         * modules/mbsrchr: New file.
13513         * lib/mbsrchr.c: New file.
13514         * lib/string_.h (strrchr): Add a conditional link warning.
13515         (mbsrchr): New declaration.
13516         * m4/mbsrchr.m4: New file.
13517         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
13518         GNULIB_MBSRCHR.
13519         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
13520         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
13521
13522 2007-02-04  Bruno Haible  <bruno@clisp.org>
13523
13524         New module mbschr.
13525         * modules/mbschr: New file.
13526         * lib/mbschr.c: New file.
13527         * lib/string_.h (strchr): Add a conditional link warning.
13528         (mbschr): New declaration.
13529         * m4/mbschr.m4: New file.
13530         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
13531         GNULIB_MBSCHR.
13532         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
13533         * MODULES.html.sh (Internationalization functions): Add mbschr.
13534
13535 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
13536
13537         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
13538
13539         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
13540
13541 2007-02-04  Bruno Haible  <bruno@clisp.org>
13542
13543         New module description section 'configure.ac-early'.
13544         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
13545         (func_get_autoconf_early_snippet): New function.
13546         (func_import, func_create_testdir): Use it. Remove special cases for
13547         modules 'extensions' and 'lock'.
13548         * modules/extensions (configure.ac-early): Require
13549         gl_USE_SYSTEM_EXTENSIONS.
13550         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
13551
13552 2007-02-04  Bruno Haible  <bruno@clisp.org>
13553
13554         Make use of gcj-4.3's -fsource and -ftarget option.
13555         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
13556         and if so try the options -fsource and -ftarget.
13557         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
13558         source_version, ftarget_option, target_version arguments.
13559         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
13560         (is_envjavac_oldgcj_14_14_usable): Renamed from
13561         is_envjavac_gcj_14_14_usable.
13562         (is_envjavac_oldgcj_14_13_usable): Renamed from
13563         is_envjavac_gcj_14_13_usable.
13564         (is_gcj_present): Update.
13565         (is_gcj_43, is_gcj43_usable): New functions.
13566         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
13567         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
13568         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
13569         try the options -fsource and -ftarget.
13570
13571 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
13572
13573         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
13574         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
13575         larger value.
13576
13577 2007-02-03  Jim Meyering  <jim@meyering.net>
13578
13579         Give tools a better chance to allocate space for very large buffers.
13580         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
13581
13582         Make pwd and readlink work also when run with an unreadable parent dir
13583         on systems with openat support.
13584         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
13585         provided getcwd function, even when we have openat support.
13586         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
13587
13588 2007-02-02  Bruno Haible  <bruno@clisp.org>
13589
13590         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
13591         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
13592         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
13593         portability problems if one of these functions is only used on specific
13594         platforms.
13595         Reported by Paul Eggert.
13596
13597 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
13598
13599         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
13600         is causing more trouble than it's curing.
13601         * lib/regex_internal.h (__mempcpy): Remove.
13602         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
13603         (and make the code a tad smaller to boot).
13604         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
13605
13606 2007-02-02  Jim Meyering  <jim@meyering.net>
13607
13608         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
13609         section, not in the Makefile.am: one.
13610
13611 2007-02-02  Eric Blake  <ebb9@byu.net>
13612
13613         * lib/strchrnul.c: Always include config.h first.
13614
13615         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
13616         gnulib strstr is not necessary here.
13617
13618 2007-02-02  Simon Josefsson  <simon@josefsson.org>
13619
13620         * m4/socklen.m4: Fix typo.
13621
13622 2007-02-02  Eric Blake  <ebb9@byu.net>
13623
13624         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
13625         * modules/netinet_in (Makefile.am): Likewise.
13626
13627 2007-02-01  Bruno Haible  <bruno@clisp.org>
13628
13629         * lib/string_.h (GL_LINK_WARNING): New macro.
13630         (strcasecmp, strstr, strcasestr): If provided by the system,
13631         conditionally define as a macro that leads to a warning instead of to
13632         an error.
13633         (strncasecmp): Conditionally define as a macro that leads to a warning.
13634
13635 2007-02-01  Karl Berry  <karl@gnu.org>
13636
13637         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
13638
13639 2007-02-01  Bruno Haible  <bruno@clisp.org>
13640
13641         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
13642         renamings.
13643
13644 2007-02-01  Eric Blake  <ebb9@byu.net>
13645
13646         * modules/regex (Depends-on): Revert dependence on mempcpy.
13647         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
13648         module's definition of mempcpy.
13649         Reported by Paul Eggert.
13650
13651 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
13652
13653         * lib/string_.h: If the gnulib module XYZ is not present, undefine
13654         the symbol XYZ before redefining it.  This fixes a problem with
13655         programs that don't use XYZ, when compiled on systems that define
13656         XYZ to something else.
13657
13658 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
13659
13660         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
13661         occurs when "mkdir -m foo" creates a setgid directory that is (1)
13662         writeable to group or other and (2) is intended to have a special
13663         mode bit that is set or cleared.  In such a case, the directory
13664         should be neither group- nor other-writeable until the special
13665         mode bits are right.
13666
13667 2007-01-31  Eric Blake  <ebb9@byu.net>
13668
13669         * modules/mountlist (Depends-on): Add strstr.
13670
13671         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
13672         bug.
13673         * modules/string (Makefile.am): Remove redundant replacement.
13674         * modules/regex (Depends-on): Add mempcpy.
13675
13676 2007-01-31  Bruno Haible  <bruno@clisp.org>
13677
13678         New module description field 'Link'.
13679         * gnulib-tool (func_usage): Document --extract-link-directive.
13680         (sed_extract_prog): Recognize 'Link' directive.
13681         (func_get_link_directive): New function.
13682         (func_import): Show summary of link directives.
13683         Handle --extract-link-directive option.
13684         * modules/acl (Link): New section.
13685         * modules/clock-time (Link): New section.
13686         * modules/euidaccess (Link): New section.
13687         * modules/gettext (Link): New section.
13688         * modules/iconv (Link): New section.
13689         * modules/lock (Link): New section.
13690         * modules/nanosleep (Link): New section.
13691         * modules/readline (Link): New section.
13692
13693 2007-01-27  Bruno Haible  <bruno@clisp.org>
13694
13695         Enforce the use of gnulib modules for unportable <string.h> functions.
13696         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
13697         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
13698         (gl_HEADER_STRING_H_BODY): Require it.
13699         * lib/string_.h: If the gnulib module XYZ is not present, redefine
13700         the symbol XYZ to one that gives a link error.
13701         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
13702         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
13703         * modules/mempcpy (configure.ac): Likewise.
13704         * modules/memrchr (configure.ac): Likewise.
13705         * modules/stpcpy (configure.ac): Likewise.
13706         * modules/stpncpy (configure.ac): Likewise.
13707         * modules/strcase (configure.ac): Likewise.
13708         * modules/strcasestr (configure.ac): Likewise.
13709         * modules/strchrnul (configure.ac): Likewise.
13710         * modules/strdup (configure.ac): Likewise.
13711         * modules/strndup (configure.ac): Likewise.
13712         * modules/strnlen (configure.ac): Likewise.
13713         * modules/strpbrk (configure.ac): Likewise.
13714         * modules/strsep (configure.ac): Likewise.
13715         * modules/strstr (configure.ac): Likewise.
13716         * modules/strtok_r (configure.ac): Likewise.
13717
13718 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
13719
13720         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
13721
13722 2007-01-30  Jim Meyering  <jim@meyering.net>
13723
13724         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
13725
13726 2007-01-29  Bruno Haible  <bruno@clisp.org>
13727
13728         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
13729         * lib/execute.c: Likewise.
13730         * lib/pipe.c: Likewise.
13731         * lib/printf-args.h: Likewise.
13732         * lib/printf-args.c: Likewise.
13733         * lib/printf-parse.c: Likewise.
13734         * lib/vasnprintf.c: Likewise.
13735
13736 2007-01-29  Eric Blake  <ebb9@byu.net>
13737
13738         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
13739         declaration.
13740
13741 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
13742
13743         * lib/strptime.h (strptime): Use 'restrict' for args where
13744         POSIX requires this.
13745         * lib/strptime.c (strptime): Likewise.
13746         Change license notice from LGPL to GPL, since gnulib-tool will
13747         change this as needed.
13748         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
13749         defined.
13750         Include "strptime.h" first, to check interface.
13751         Do not #undef _LIBC and _NL_CURRENT.
13752         Do not include <stdlib.h>; no longer needed.
13753         Include "time_r.h" and declare ptime_locale_status
13754         only if _LIBC is not defined.
13755         (__P): Remove unused macro.
13756         (match_string): Bring back glibc version, but use it only if _LIBC
13757         is defined.
13758         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
13759         Remove unnecessary assertion and abort() call.
13760         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
13761         * m4/strptime.m4: Fix serial number comment.
13762         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
13763         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
13764         (Depends-on): Add time_r.
13765
13766 2007-01-29  Bruno Haible  <bruno@clisp.org>
13767
13768         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
13769         strptime.
13770         * modules/strptime (Depends-on): Add stdbool.
13771         * lib/strptime.h: Include <time.h> always. Add comments.
13772
13773 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
13774
13775         * modules/strptime: New file.
13776         * lib/strptime.h: New file.
13777         * lib/strptime.c: New file.
13778         * m4/strptime.m4: New file.
13779
13780 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
13781
13782         * MODULES.html.sh: New module mpsort.
13783         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
13784
13785         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
13786         a circularity problem with HP-UX ia64 reported by Bob Proulx in
13787         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
13788         All uses changed.
13789         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
13790         All uses changed.
13791         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
13792         to _Restrict_.
13793         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
13794         the parameter matches the prototype.
13795
13796 2007-01-28  Jim Meyering  <jim@meyering.net>
13797
13798         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
13799         sys/time.h here, reverting that part of the previous patch:
13800         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
13801
13802 2007-01-28  Bruno Haible  <bruno@clisp.org>
13803
13804         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
13805         value of $(SYS_TIME_H).
13806         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
13807         remove it conditionally, too. [added by Jim Meyering]
13808         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
13809         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
13810         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
13811         GETTIMEOFDAY_REPLACEMENT to 1.
13812
13813 2007-01-28  Bruno Haible  <bruno@clisp.org>
13814
13815         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
13816         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
13817         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
13818         Set UNISTD_H instead of UNISTD_H2.
13819         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
13820
13821 2007-01-28  Bruno Haible  <bruno@clisp.org>
13822
13823         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
13824         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
13825
13826 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13827
13828         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
13829         (func_create_testdir): Ensure C locale for `grep' and `tr'
13830         character ranges.
13831         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
13832         ACLOCAL_AMFLAGS parsing state machine.
13833
13834 2007-01-27  Bruno Haible  <bruno@clisp.org>
13835
13836         * modules/unistr/base: Update.
13837
13838 2007-01-27  Bruno Haible  <bruno@clisp.org>
13839
13840         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
13841         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
13842         * modules/unistr/u32-mbtouc-unsafe: Renamed from
13843         modules/unistr/u32-mbtouc.
13844         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
13845         * lib/unistr.h: Update.
13846         * lib/linebreak.c: Update.
13847         * modules/unistr/u32-mbtouc: Renamed from
13848         modules/unistr/u32-mbtouc-safe.
13849         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
13850         * lib/unistr.h: Update.
13851         * lib/unistr/u32-to-u8.c: Update.
13852         * lib/unistr/u32-to-u16.c: Update.
13853
13854 2007-01-27  Bruno Haible  <bruno@clisp.org>
13855
13856         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
13857         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
13858         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
13859         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
13860         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
13861         * modules/unistr/u16-mbtouc-unsafe: Renamed from
13862         modules/unistr/u16-mbtouc.
13863         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
13864         * lib/unistr.h: Update.
13865         * lib/linebreak.c: Update.
13866         * modules/linebreak: Update.
13867         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
13868         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
13869         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
13870         * modules/unistr/u16-mbtouc: Renamed from
13871         modules/unistr/u16-mbtouc-safe.
13872         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
13873         * lib/unistr.h: Update.
13874         * lib/unistr/u16-to-u8.c: Update.
13875         * modules/unistr/u16-to-u8: Update.
13876         * lib/unistr/u16-to-u32.c: Update.
13877         * modules/unistr/u16-to-u32: Update.
13878
13879 2007-01-27  Bruno Haible  <bruno@clisp.org>
13880
13881         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
13882         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
13883         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
13884         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
13885         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
13886         * modules/unistr/u8-mbtouc-unsafe: Renamed from
13887         modules/unistr/u8-mbtouc.
13888         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
13889         * lib/unistr.h: Update.
13890         * lib/striconveh.c: Update.
13891         * modules/striconveh: Update.
13892         * lib/linebreak.c: Update.
13893         * modules/linebreak: Update.
13894         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
13895         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
13896         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
13897         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
13898         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
13899         * lib/unistr.h: Update.
13900         * lib/striconveh.c: Update.
13901         * modules/striconveh: Update.
13902         * lib/unistr/u8-to-u16.c: Update.
13903         * modules/unistr/u8-to-u16: Update.
13904         * lib/unistr/u8-to-u32.c: Update.
13905         * modules/unistr/u8-to-u32: Update.
13906
13907 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13908
13909         Sync from Libtool.
13910         * lib/argz.c: Do not include strings.h nor memory.h, include
13911         string.h unconditionally.  Patch by Simon Josefsson.
13912
13913 2007-01-27  Bruno Haible  <bruno@clisp.org>
13914
13915         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
13916         from gl_HEADER_STRING_H_BODY.
13917         (gl_HEADER_STRING_H_BODY): Require it.
13918         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
13919         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
13920         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
13921         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
13922         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
13923         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
13924         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
13925         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
13926         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
13927         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
13928         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
13929         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
13930         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
13931         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
13932         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
13933
13934 2007-01-27  Bruno Haible  <bruno@clisp.org>
13935
13936         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
13937         check_PROGRAMS into noinst_PROGRAMS.
13938         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
13939         check_PROGRAMS in this case.
13940         (func_import): Set for_test to false.
13941         (func_create_testdir): Set for_test to true.
13942
13943 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
13944             Bruno Haible  <bruno@clisp.org>
13945
13946         * modules/strcasestr (Files): Remove lib/strcasestr.h.
13947         (Depends-on): Add string.
13948         (Includes): Use <string.h> instead of strcasestr.h.
13949         * modules/string (Makefile.am): Also substitute the value of
13950         REPLACE_STRCASESTR.
13951         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
13952         assume strcasestr is declared in <string.h> not <strings.h>. Also
13953         set REPLACE_STRCASESTR.
13954         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
13955         REPLACE_STRCASESTR.
13956         * lib/strcasestr.h: Remove file.
13957         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
13958         * lib/string_.h (strcasestr): New declaration.
13959
13960 2007-01-27  Bruno Haible  <bruno@clisp.org>
13961
13962         * lib/string_.h: Use 'extern'.
13963
13964 2007-01-27  Jim Meyering  <jim@meyering.net>
13965
13966         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
13967         of set-but-not-used local, "q".
13968
13969         * lib/mempcpy.c: Include <config.h> before <string.h>.
13970         This fixes a compilation error on HP-UX, due to the system's
13971         "restrict"-using mempcpy prototype.
13972
13973 2007-01-26  Bruno Haible  <bruno@clisp.org>
13974
13975         Small optimization.
13976         * lib/javacomp.c: Include c-strstr.h.
13977          (is_envjavac_gcj): Use c_strstr instead of strstr.
13978         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
13979
13980 2007-01-26  Bruno Haible  <bruno@clisp.org>
13981
13982         * MODULES.html.sh (Unicode string functions): Add the new modules.
13983
13984         * modules/uniconv/u32-strconv-to-locale: New file.
13985         * lib/uniconv/u32-strconv-to-locale.c: New file.
13986
13987         * modules/uniconv/u16-strconv-to-locale: New file.
13988         * lib/uniconv/u16-strconv-to-locale.c: New file.
13989
13990         * modules/uniconv/u8-strconv-to-locale: New file.
13991         * lib/uniconv/u8-strconv-to-locale.c: New file.
13992
13993         * modules/uniconv/u32-strconv-from-locale: New file.
13994         * lib/uniconv/u32-strconv-from-locale.c: New file.
13995
13996         * modules/uniconv/u16-strconv-from-locale: New file.
13997         * lib/uniconv/u16-strconv-from-locale.c: New file.
13998
13999         * modules/uniconv/u8-strconv-from-locale: New file.
14000         * lib/uniconv/u8-strconv-from-locale.c: New file.
14001
14002         * modules/uniconv/u32-strconv-to-enc: New file.
14003         * lib/uniconv/u32-strconv-to-enc.c: New file.
14004         * modules/uniconv/u32-strconv-to-enc-tests: New file.
14005         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
14006
14007         * modules/uniconv/u16-strconv-to-enc: New file.
14008         * lib/uniconv/u16-strconv-to-enc.c: New file.
14009         * lib/uniconv/u-strconv-to-enc.h: New file.
14010         * modules/uniconv/u16-strconv-to-enc-tests: New file.
14011         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
14012
14013         * modules/uniconv/u8-strconv-to-enc: New file.
14014         * lib/uniconv/u8-strconv-to-enc.c: New file.
14015         * modules/uniconv/u8-strconv-to-enc-tests: New file.
14016         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
14017
14018         * modules/uniconv/u32-strconv-from-enc: New file.
14019         * lib/uniconv/u32-strconv-from-enc.c: New file.
14020         * modules/uniconv/u32-strconv-from-enc-tests: New file.
14021         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
14022
14023         * modules/uniconv/u16-strconv-from-enc: New file.
14024         * lib/uniconv/u16-strconv-from-enc.c: New file.
14025         * modules/uniconv/u16-strconv-from-enc-tests: New file.
14026         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
14027
14028         * modules/uniconv/u8-strconv-from-enc: New file.
14029         * lib/uniconv/u8-strconv-from-enc.c: New file.
14030         * lib/uniconv/u-strconv-from-enc.h: New file.
14031         * modules/uniconv/u8-strconv-from-enc-tests: New file.
14032         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
14033
14034         * modules/uniconv/u32-conv-from-enc: New file.
14035         * lib/uniconv/u32-conv-from-enc.c: New file.
14036         * modules/uniconv/u32-conv-from-enc-tests: New file.
14037         * tests/uniconv/test-u32-conv-from-enc.c: New file.
14038
14039         * modules/uniconv/u16-conv-from-enc: New file.
14040         * lib/uniconv/u16-conv-from-enc.c: New file.
14041         * lib/uniconv/u-conv-from-enc.h: New file.
14042         * modules/uniconv/u16-conv-from-enc-tests: New file.
14043         * tests/uniconv/test-u16-conv-from-enc.c: New file.
14044
14045         * modules/uniconv/u8-conv-from-enc: New file.
14046         * lib/uniconv/u8-conv-from-enc.c: New file.
14047         * modules/uniconv/u8-conv-from-enc-tests: New file.
14048         * tests/uniconv/test-u8-conv-from-enc.c: New file.
14049
14050         * modules/uniconv/base: New file.
14051         * lib/uniconv.h: New file.
14052
14053 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
14054
14055         * doc/gnulib-tool.texi (Initial import): Update to match current
14056         behavior with strdup module.
14057         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
14058         * lib/memmem.h: Remove; all uses removed.  This is now done
14059         by <string.h>.
14060         * lib/mempcpy.h: Likewise.
14061         * lib/memrchr.h: Likewise.
14062         * lib/stpcpy.h: Likewise.
14063         * lib/stpncpy.h: Likewise.
14064         * lib/strcase.h: Likewise.
14065         * lib/strchrnul.h: Likewise.
14066         * lib/strdup.h: Likewise.
14067         * lib/strndup.h: Likewise.
14068         * lib/strnlen.h: Likewise.
14069         * lib/strpbrk.h: Likewise.
14070         * lib/strsep.h: Likewise.
14071         * lib/strstr.h: Likewise.
14072         * lib/strtok_r.h: Likewise.
14073         * lib/string_.h: New file.
14074         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
14075         Rely on <string.h> instead.
14076         * lib/canon-host.c: Likewise.
14077         * lib/chdir-long.c: Likewise.
14078         * lib/concatpath.c: Likewise.
14079         * lib/exclude.c: Likewise.
14080         * lib/fchdir.c: Likewise.
14081         * lib/getaddrinfo.c: Likewise.
14082         * lib/getcwd.c: Likewise.
14083         * lib/getsubopt.c: Likewise.
14084         * lib/glob.c: Likewise.
14085         * lib/hard-locale.c: Likewise.
14086         * lib/iconvme.c: Likewise.
14087         * lib/javacomp.c: Likewise.
14088         * lib/mempcpy.c: Likewise.
14089         * lib/memrchr.c: Likewise.
14090         * lib/regex_internal.h: Likewise.
14091         * lib/stpncpy.c: Likewise.
14092         * lib/strcasecmp.c: Likewise.
14093         * lib/strchrnul.c: Likewise.
14094         * lib/strdup.c: Likewise.
14095         * lib/striconv.c: Likewise.
14096         * lib/striconveh.c: Likewise.
14097         * lib/striconveha.c: Likewise.
14098         * lib/strncasecmp.c: Likewise.
14099         * lib/strndup.c: Likewise.
14100         * lib/strnlen.c: Likewise.
14101         * lib/strsep.c: Likewise.
14102         * lib/strstr.c: Likewise.
14103         * lib/strtok_r.c: Likewise.
14104         * lib/userspec.c: Likewise.
14105         * lib/w32spawn.h: Likewise.
14106         * lib/xstrndup.c: Likewise.
14107         * lib/mountlist.c (strstr): Remove decl.
14108         * m4/string_h.m4: New file.
14109         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
14110         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
14111         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
14112         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
14113         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
14114         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
14115         Set REPLACE_STRCASECMP if necessary.
14116         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
14117         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
14118         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
14119         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
14120         HAVE_DECL_STRDUP if necessary.
14121         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
14122         since gl_FUNC_STRNDUP does that now.
14123         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
14124         Check for decl here...
14125         (gl_PREREQ_STRNLEN): ... not here.
14126         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
14127         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
14128         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
14129         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
14130         necessary.
14131         * modules/string: New file.
14132         * modules/memmem (Files): Remove special-purpose include file.
14133         (Depends-on): Add string.
14134         (Include): Include <string.h>, not the removed file.
14135         * modules/mempcpy: Likewise.
14136         * modules/memrchr: Likewise.
14137         * modules/stpcpy: Likewise.
14138         * modules/stpncpy: Likewise.
14139         * modules/strcase: Likewise.
14140         * modules/strchrnul: Likewise.
14141         * modules/strdup: Likewise.
14142         * modules/strndup: Likewise.
14143         * modules/strnlen: Likewise.
14144         * modules/strpbrk: Likewise.
14145         * modules/strsep: Likewise.
14146         * modules/strstr: Likewise.
14147         * modules/strtok_r: Likewise.
14148         * tests/test-dirname.c: Don't include "strdup.h", since
14149         <string.h> now suffices.
14150         * tests/test-memmem.c: Don't include "memmem.h", since
14151         <string.h> now suffices.
14152
14153 2007-01-25  Bruno Haible  <bruno@clisp.org>
14154
14155         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
14156         *resultp is 0.
14157
14158         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
14159         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
14160         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
14161         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
14162
14163         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
14164         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
14165         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
14166         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
14167         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
14168         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
14169
14170 2007-01-24  Bruno Haible  <bruno@clisp.org>
14171
14172         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
14173         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
14174         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
14175         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
14176         gl_FUNC_FTS_CORE.
14177         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
14178         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
14179         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
14180         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
14181         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
14182         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
14183         gl_FUNC_FCHOWNAT.
14184         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
14185         gl_FUNC_STRFTIME.
14186         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
14187         Reported by Ralf Wildenhues.
14188
14189 2007-01-24  Bruno Haible  <bruno@clisp.org>
14190
14191         Drop AC_REQUIRE calls that are redundant with the module dependencies.
14192         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
14193         gl_GETADDRINFO.
14194         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
14195         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
14196         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
14197
14198 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
14199
14200         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
14201         Don't use 'exit'; just return from 'main'.
14202         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
14203
14204         * lib/fnmatch_.h: Readjust white space and comments to match
14205         glibc, to avoid spurious diffs.
14206
14207 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
14208
14209         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
14210         2004-12-01 change by Jakub Jelinek, since this code won't compile
14211         if !LIBC.  Problem reported by Bob Proulx.
14212
14213 2007-01-23  Bruno Haible  <bruno@clisp.org>
14214
14215         * lib/striconveh.c: Include c-strcaseeq.h.
14216         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
14217         * modules/striconveh (Depends-on): Add c-strcaseeq.
14218
14219 2007-01-23  Bruno Haible  <bruno@clisp.org>
14220
14221         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
14222
14223         * modules/c-strcaseeq: New file.
14224         * lib/c-strcaseeq.h: New file.
14225
14226         * modules/streq: New file.
14227         * lib/streq.h: New file.
14228
14229 2007-01-23  Bruno Haible  <bruno@clisp.org>
14230
14231         * modules/striconveha-tests: New file.
14232         * tests/test-striconveha.c: New file.
14233
14234         * lib/striconveha.h: Include <stdbool.h>.
14235         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
14236         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
14237         (mem_iconveha_notranslit): Renamed from mem_iconveha.
14238         (mem_iconveha): New function.
14239         (str_iconveha_notranslit): Renamed from str_iconveha.
14240         (str_iconveha): New function.
14241         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
14242         c-strcase.
14243
14244 2007-01-23  Bruno Haible  <bruno@clisp.org>
14245
14246         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
14247         encodings without forgiving before trying any encoding with handler.
14248         (str_iconveha): Try all encodings without forgiving before trying any
14249         encoding with handler.
14250
14251 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
14252
14253         Import the following changes from libc.
14254
14255         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
14256
14257         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
14258
14259         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
14260
14261         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
14262         normal_bracket label.
14263
14264         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
14265
14266         [BZ #361]
14267         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
14268         to normal_bracket after fetching the next character.
14269
14270 2007-01-22  Bruno Haible  <bruno@clisp.org>
14271
14272         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
14273         argument.
14274         * lib/striconveh.c (iconv_carefully_1): New function.
14275         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
14276         argument.
14277         (str_cd_iconveh): Update.
14278         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
14279         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
14280         * tests/test-striconveh.c (MAGIC): New macro.
14281         (new_offsets): New function.
14282         (main): Test call with and without offsets.
14283
14284 2007-01-22  Bruno Haible  <bruno@clisp.org>
14285
14286         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
14287         * modules/sys_select (Makefile.am): Likewise.
14288         * modules/sys_socket (Makefile.am): Likewise.
14289         * modules/sys_time (Makefile.am): Likewise.
14290
14291 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
14292
14293         * modules/gettimeofday (License): Change from GPL to LGPL, since
14294         gettimeofday is a library function.
14295
14296 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
14297
14298         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
14299
14300 2007-01-21  Bruno Haible  <bruno@clisp.org>
14301
14302         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
14303
14304 2007-01-21  Bruno Haible  <bruno@clisp.org>
14305
14306         * modules/striconveha: New file.
14307         * lib/striconveha.h: New file.
14308         * lib/striconveha.c: New file.
14309         * MODULES.html.sh (Internationalization functions): Add striconveha.
14310         * lib/striconv.c (str_iconv): Optimize the case of an empty input
14311         string.
14312         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
14313
14314 2007-01-21  Bruno Haible  <bruno@clisp.org>
14315
14316         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
14317         * lib/striconveh.c (str_iconveh): Likewise.
14318
14319 2007-01-21  Bruno Haible  <bruno@clisp.org>
14320
14321         * lib/striconveh.h (mem_iconveh): New declaration.
14322         * lib/striconveh.c (mem_iconveh): New function.
14323         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
14324
14325 2007-01-21  Bruno Haible  <bruno@clisp.org>
14326
14327         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
14328
14329         * lib/striconveh.h (mem_cd_iconveh): Change specification.
14330         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
14331         original result buffer.
14332         (str_cd_iconveh): Update.
14333         * tests/test-striconveh.c (main): Update.
14334
14335         * lib/striconv.h (mem_cd_iconv): Change specification.
14336         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
14337         result buffer.
14338         (str_cd_iconv): Update.
14339         * tests/test-striconv.c (main): Update.
14340
14341 2007-01-21  Bruno Haible  <bruno@clisp.org>
14342
14343         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
14344
14345 2007-01-20  Jim Meyering  <jim@meyering.net>
14346
14347         * lib/userspec.c (parse_with_separator): If a user or group string
14348         starts with "+", skip the corresponding name-to-ID look-up, since
14349         such a look-up must fail: user and group names may not include "+".
14350
14351 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
14352
14353         * lib/poll.c: Include sys/time.h and time.h unconditionally,
14354         since we now assume the sys_time module.
14355         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
14356         check for sys/time.h; no longer needed.
14357         * modules/poll (Depends-on): Depend on sys_time.
14358
14359 2007-01-18  Bruno Haible  <bruno@clisp.org>
14360
14361         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
14362         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
14363
14364         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
14365         gettimeofday.
14366
14367         * tests/test-gettimeofday.c: Include <time.h>.
14368         (dummy): Remove variable.
14369
14370         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
14371         gl_HEADER_SYS_TIME_H.
14372         (gl_HEADER_SYS_TIME_H): New macro.
14373
14374         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
14375         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
14376         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
14377         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
14378         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
14379         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
14380         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
14381         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
14382         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
14383         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
14384         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
14385
14386         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
14387         last change; it caused a compilation error when cross-compiling to
14388         Cygwin.
14389
14390 2007-01-18  Jim Meyering  <jim@meyering.net>
14391
14392         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
14393         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
14394         than the race-prone "test -d sys || mkdir sys".
14395         (configure.ac): Use AC_PROG_MKDIR_P.
14396         * modules/sys_select: Likewise.
14397         * modules/sys_socket: Likewise.
14398         * modules/sys_time: Likewise.
14399
14400 2007-01-18  Eric Blake  <ebb9@byu.net>
14401
14402         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
14403         replace gettimeofday.
14404         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
14405         name, to avoid infinite recursion.
14406
14407 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
14408
14409         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
14410         module sys_time.
14411         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
14412         assume timespec.h defines struct timeval.
14413         * lib/settime.c: Likewise.
14414         * lib/utimens.c: Likewise.
14415         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
14416         since we now assume the gettimeofday module.
14417         * lib/tempname.c (__gen_tempname): Likewise.
14418         * lib/gettimeofday.h: Remove.
14419         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
14420         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
14421         Include <time.h>, for 'time()'.
14422         (localtime_buffer_addr): Also use this workaround if
14423         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
14424         to simplify the uses.  All uses changed.
14425         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
14426         that #undef is inside {}, and 'const' follows type name consistently.
14427         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
14428         (gettimeofday): Do not use the maximum possible value for
14429         tv->tv_usec, since that might break usages other than ls.c.
14430         Instead, we'll leave ls.c alone.  This undoes today's patch
14431         by Bruno.  Add a compile-time warning for 1s-clock resolution;
14432         we've never observed the problem but might as well keep the
14433         canary.
14434         * lib/nanosleep.c: Include timespec.h first, for interface check.
14435         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
14436         now assume the sys_time module.
14437         * lib/tempname.c: Likewise.
14438         * lib/timespec.h: Likewise.
14439         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
14440         needed.
14441         * lib/strftime.c: Likewise.
14442         * lib/timespec.h: Likewise.
14443         * lib/posixtm.c: Include posixtm.h first, for interface check.
14444         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
14445         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
14446         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
14447         * lib/sys_time_.h: New file.
14448         * lib/timespec.h (struct timespec): Use long int, not long.
14449         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
14450         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
14451         Remove obsolescent call to AC_HEADER_TIME.
14452         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
14453         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
14454         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
14455         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
14456         Likewise.
14457         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
14458         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
14459         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
14460         into the sys_time module.  Check for gettimeofday just once.
14461         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
14462         for gettimeofday signature to just check the signature.  Merely
14463         compile it, since linking doesn't test signature.  Improve test for
14464         whether gettimeofday.o is actually needed.
14465         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
14466         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
14467         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
14468         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
14469         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
14470         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
14471         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
14472         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
14473         than worrying about sys/time.h.
14474         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
14475         Don't bother worrying about TIME_WITH_SYS_TIME.
14476         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
14477         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
14478         * m4/sys_time_h.m4: New file.
14479         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
14480         Don't include sys/time.h.  Return from main rather than exiting.
14481         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
14482         all uses changed.
14483         * modules/gethrxtime (Depends-on): Add sys_time.
14484         * modules/gettime (Depends-on): Likewise.
14485         * modules/gettimeofday (Depends-on): Likewise.
14486         * modules/nanosleep (Depends-on): Likewise.
14487         * modules/settime (Depends-on): Likewise.
14488         * modules/tempname (Depends-on): Likewise.
14489         * modules/utimens (Depends-on): Likewise.
14490         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
14491         (Include:) Change back to <sys/time.h>.
14492         (Maintainer:) Add self.
14493         * modules/sys_time: New file.
14494         * modules/tempname (Depends-on): Add gettimeofday.
14495         * tests/test-gettimeofday.c: Include <sys/time.h>
14496         rather than gettimeofday.h.
14497
14498 2007-01-17  Bruno Haible  <bruno@clisp.org>
14499
14500         * gnulib-tool (func_get_license): Revert last patch. Instead, let
14501         the license default to GPL.
14502         (func_create_testdir): Don't complain if a module is LGPL and its
14503         tests module depends on GPLed modules.
14504
14505 2007-01-17  Bruno Haible  <bruno@clisp.org>
14506
14507         * lib/gettimeofday.c (gettimeofday): Add code for the case
14508         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
14509         maximum possible value for tv->tv_usec, rather than the minimum one.
14510
14511 2005-10-08  Martin Lambers  <marlam@marlam.de>
14512 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
14513 2007-01-16  Bruno Haible  <bruno@clisp.org>
14514
14515         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
14516         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
14517         gl_FUNC_GETTIMEOFDAY.
14518         (Include): Add gettimeofday.h.
14519         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
14520         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
14521         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
14522         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
14523         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
14524         * lib/gettimeofday.h: New file.
14525         * lib/gettimeofday.c: Include <sys/timeb.h>.
14526         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
14527         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
14528         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
14529         fall back on time().
14530
14531         * tests/test-gettimeofday.c: New file.
14532         * modules/gettimeofday-tests: New file.
14533
14534 2007-01-16  Eric Blake  <ebb9@byu.net>
14535
14536         * modules/fnmatch (Depends-on): Depend on wchar.
14537         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
14538         * m4/fnmatch.m4: Likewise.
14539         * modules/mbchar (Makefile.am): Assume <wchar.h>.
14540         * m4/mbchar.m4: Likewise.
14541         * modules/mbswidth (Depends-on): Depend on wchar.
14542         * lib/mbswidth.c: Assume <wchar.h>.
14543         * m4/mbswidth.m4: Likewise.
14544         * modules/quotearg (Depends-on): Depend on wchar.
14545         * lib/quotearg.c: Assume <wchar.h>.
14546         * m4/quotearg.m4: Likewise.
14547         * modules/regex (Depends-on): Depend on wchar.
14548         * lib/regex_internal.h: Assume <wchar.h>.
14549         * m4/regex.m4: Likewise.
14550         * modules/stdint (Depends-on): Depend on wchar.
14551         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
14552         * m4/stdint.m4: Likewise.
14553         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
14554         * modules/strftime (Depends-on): Depend on wchar.
14555         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
14556         * modules/strtol (Depends-on): Depend on wchar.
14557         * lib/strtol.c: Assume <wchar.h>.
14558         * modules/wcwidth (Depends-on): Depend on wchar.
14559         * lib/wcwidth.h: Assume <wchar.h>.
14560         * m4/wcwidth.m4: Likewise.
14561
14562 2007-01-16  Bruno Haible  <bruno@clisp.org>
14563
14564         * modules/csharpexec-script: New, created from...
14565         * modules/csharpexec: ... this.
14566
14567 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
14568
14569         * modules/javaexec-script: New, created from...
14570         * modules/javaexec: ... this.
14571
14572 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
14573
14574         * modules/poll (Dependencies): Add sys_select.
14575
14576 2007-01-15  Jim Meyering  <jim@meyering.net>
14577
14578         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
14579         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
14580         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
14581         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
14582
14583 2007-01-15  Bruno Haible  <bruno@clisp.org>
14584
14585         * modules/striconveh: New file.
14586         * lib/striconveh.h: New file.
14587         * lib/striconveh.c: New file.
14588         * MODULES.html.sh (Internationalization functions): Add striconveh.
14589
14590         * modules/striconveh-tests: New file.
14591         * tests/test-striconveh.c: New file.
14592
14593 2007-01-15  Bruno Haible  <bruno@clisp.org>
14594
14595         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
14596         not from GNU libiconv or GNU libc.
14597
14598 2007-01-15  Bruno Haible  <bruno@clisp.org>
14599
14600         * doc/gnulib-intro.texi (Copyright): Explain the different license
14601         terms for module descriptions, autoconf macros, tests, documentation.
14602
14603 2007-01-14  Bruno Haible  <bruno@clisp.org>
14604
14605         * modules/striconv-tests: New file.
14606         * tests/test-striconv.c: New file.
14607
14608 2007-01-14  Bruno Haible  <bruno@clisp.org>
14609
14610         * modules/iconv-tests: New file.
14611         * tests/test-iconv.c: New file.
14612
14613 2007-01-14  Bruno Haible  <bruno@clisp.org>
14614
14615         * gnulib-tool (func_get_license): For test modules, use the license of
14616         the main module.
14617
14618 2007-01-14  Bruno Haible  <bruno@clisp.org>
14619
14620         * modules/iconv (Include): Clarify that <iconv.h> can only be included
14621         if iconv is found to exist.
14622
14623 2007-01-14  Bruno Haible  <bruno@clisp.org>
14624
14625         * modules/c-ctype-tests: New file.
14626         * tests/test-c-ctype.c: New file.
14627
14628 2007-01-14  Bruno Haible  <bruno@clisp.org>
14629
14630         * modules/binary-io-tests: New file.
14631         * tests/test-binary-io.sh: New file.
14632         * tests/test-binary-io.c: New file.
14633
14634 2007-01-14  Bruno Haible  <bruno@clisp.org>
14635
14636         * modules/array-oset-tests: New file.
14637         * tests/test-array_oset.c: New file.
14638
14639 2007-01-14  Bruno Haible  <bruno@clisp.org>
14640
14641         * modules/array-list-tests: New file.
14642         * tests/test-array_list.c: New file.
14643
14644 2007-01-14  Bruno Haible  <bruno@clisp.org>
14645
14646         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
14647         and make.
14648         Reported by Simon Josefsson in
14649         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
14650
14651 2007-01-14  Bruno Haible  <bruno@clisp.org>
14652
14653         * modules/allocsa-tests: New file.
14654         * tests/test-allocsa.c: New file.
14655
14656 2007-01-14  Bruno Haible  <bruno@clisp.org>
14657
14658         * modules/fchdir (Depends-on): Add absolute-header.
14659         * modules/unistd (Depends-on): Likewise.
14660
14661 2006-12-30  Bruno Haible  <bruno@clisp.org>
14662
14663         * modules/fchdir: New file.
14664         * modules/unistd (Files): Add lib/unistd_.h.
14665         (Makefile.am): Generate unistd.h from unistd_.h.
14666         * lib/fchdir.c: New file.
14667         * lib/dirent_.h: New file.
14668         * lib/unistd_.h: New file.
14669         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
14670         * m4/fchdir.m4: New file.
14671         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
14672         (gl_HEADER_UNISTD): Invoke it.
14673         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
14674         function.
14675         * lib/backupfile.c (opendir, closedir): Undefine.
14676         * lib/chown.c (open, close): Undefine.
14677         * lib/clean-temp.c (open, close): Undefine.
14678         * lib/copy-file.c (open, close): Undefine.
14679         * lib/execute.c (open, close): Undefine.
14680         * lib/fsusage.c (open, close): Undefine.
14681         * lib/gc-gnulib.c (open, close): Undefine.
14682         * lib/getcwd.c (opendir, closedir): Undefine.
14683         * lib/glob.c (opendir, closedir): Undefine.
14684         * lib/javacomp.c (open, close): Undefine.
14685         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
14686         * lib/openat-proc.c (open, close): Undefine.
14687         * lib/pagealign_alloc.c (open, close): Undefine.
14688         * lib/pipe.c (open, close): Undefine.
14689         * lib/progreloc.c (open, close): Undefine.
14690         * lib/savedir.c (opendir, closedir): Undefine.
14691         * lib/utime.c (open, close): Undefine.
14692         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
14693
14694 2007-01-10  Bruno Haible  <bruno@clisp.org>
14695
14696         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
14697
14698 2007-01-12  Eric Blake  <ebb9@byu.net>
14699
14700         Provide a robust <wchar.h>.  Further simplifications are now
14701         possible in other modules, but not included here.
14702         * modules/wchar: New module.
14703         * m4/wchar.m4: New file.
14704         * lib/wchar_.h: Likewise.
14705         * modules/mbchar (Depends-on): Depend on wchar, as the first use
14706         of the new module.
14707         * MODULES.html.sh (Extended multibyte and wide character utilities):
14708         New section.
14709
14710 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
14711
14712         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
14713         to a reasonable default for memory allocation.
14714         (xreadlink): Don't allocate a huge buffer, to work around a buggy
14715         file system that reports garbage st_size values for symlinks.
14716         Problem reported by Liyang Hu.
14717
14718 2007-01-11  Simon Josefsson  <simon@josefsson.org>
14719
14720         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
14721         Emacs .#* auto-save files).
14722
14723 2007-01-11  Bruno Haible  <bruno@clisp.org>
14724
14725         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
14726         directory.
14727
14728 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
14729
14730         Use @...@ consistently in lib/wctype_.h.
14731         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
14732         on it being set to 1 or 0.
14733         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
14734         go back to AC_SUBSTing it.
14735         * modules/wctype (Makefile.am): Undo previous change.
14736
14737 2007-01-10  Eric Blake  <ebb9@byu.net>
14738
14739         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
14740         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
14741         * modules/wctype (Makefile.am): Likewise.
14742         Reported by Chris McGuire.
14743
14744 2007-01-10  Jim Meyering  <jim@meyering.net>
14745
14746         fts.c: a small readability/maintainability improvement
14747         * lib/fts.c (fts_read): Make this code slightly more readable and
14748         maintainable by hoisting the "sp->fts_cur = p" assignments to
14749         immediately follow the statements that set P.  Derived from
14750         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
14751
14752 2007-01-10  Eric Blake  <ebb9@byu.net>
14753
14754         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
14755         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
14756         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
14757         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
14758         Reported by Chris McGuire.
14759
14760 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14761
14762         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
14763         in sed script.
14764
14765 2007-01-09  Bruno Haible  <bruno@clisp.org>
14766
14767         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
14768         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
14769         variables.
14770         (func_module): Use them.
14771
14772 2007-01-09  Bruno Haible  <bruno@clisp.org>
14773
14774         * modules/unistr/base: New file.
14775         * lib/unistr.h: New file.
14776
14777         * modules/unistr/u8-to-u16: New file.
14778         * lib/unistr/u8-to-u16.c: New file.
14779
14780         * modules/unistr/u8-to-u32: New file.
14781         * lib/unistr/u8-to-u32.c: New file.
14782
14783         * modules/unistr/u16-to-u8: New file.
14784         * lib/unistr/u16-to-u8.c: New file.
14785
14786         * modules/unistr/u16-to-u32: New file.
14787         * lib/unistr/u16-to-u32.c: New file.
14788
14789         * modules/unistr/u32-to-u8: New file.
14790         * lib/unistr/u32-to-u8.c: New file.
14791
14792         * modules/unistr/u32-to-u16: New file.
14793         * lib/unistr/u32-to-u16.c: New file.
14794
14795         * modules/unistr/u8-check: New file.
14796         * modules/unistr/u16-check: New file.
14797         * modules/unistr/u32-check: New file.
14798         * lib/unistr/u8-check.c: New file.
14799         * lib/unistr/u16-check.c: New file.
14800         * lib/unistr/u32-check.c: New file.
14801
14802         * modules/unistr/u8-chr: New file.
14803         * modules/unistr/u16-chr: New file.
14804         * modules/unistr/u32-chr: New file.
14805         * lib/unistr/u8-chr.c: New file.
14806         * lib/unistr/u16-chr.c: New file.
14807         * lib/unistr/u32-chr.c: New file.
14808
14809         * modules/unistr/u8-cmp: New file.
14810         * modules/unistr/u16-cmp: New file.
14811         * modules/unistr/u32-cmp: New file.
14812         * lib/unistr/u8-cmp.c: New file.
14813         * lib/unistr/u16-cmp.c: New file.
14814         * lib/unistr/u32-cmp.c: New file.
14815
14816         * modules/unistr/u8-cpy: New file.
14817         * modules/unistr/u16-cpy: New file.
14818         * modules/unistr/u32-cpy: New file.
14819         * lib/unistr/u8-cpy.c: New file.
14820         * lib/unistr/u16-cpy.c: New file.
14821         * lib/unistr/u32-cpy.c: New file.
14822         * lib/unistr/u-cpy.h: New file.
14823
14824         * modules/unistr/u8-cpy-alloc: New file.
14825         * modules/unistr/u16-cpy-alloc: New file.
14826         * modules/unistr/u32-cpy-alloc: New file.
14827         * lib/unistr/u8-cpy-alloc.c: New file.
14828         * lib/unistr/u16-cpy-alloc.c: New file.
14829         * lib/unistr/u32-cpy-alloc.c: New file.
14830         * lib/unistr/u-cpy-alloc.h: New file.
14831
14832         * modules/unistr/u8-endswith: New file.
14833         * modules/unistr/u16-endswith: New file.
14834         * modules/unistr/u32-endswith: New file.
14835         * lib/unistr/u8-endswith.c: New file.
14836         * lib/unistr/u16-endswith.c: New file.
14837         * lib/unistr/u32-endswith.c: New file.
14838         * lib/unistr/u-endswith.h: New file.
14839
14840         * modules/unistr/u8-mblen: New file.
14841         * modules/unistr/u16-mblen: New file.
14842         * modules/unistr/u32-mblen: New file.
14843         * lib/unistr/u8-mblen.c: New file.
14844         * lib/unistr/u16-mblen.c: New file.
14845         * lib/unistr/u32-mblen.c: New file.
14846
14847         * modules/unistr/u8-mbtouc: New file.
14848         * modules/unistr/u16-mbtouc: New file.
14849         * modules/unistr/u32-mbtouc: New file.
14850         * lib/unistr/u8-mbtouc.c: New file.
14851         * lib/unistr/u16-mbtouc.c: New file.
14852         * lib/unistr/u32-mbtouc.c: New file.
14853
14854         * modules/unistr/u8-mbtouc-safe: New file.
14855         * modules/unistr/u16-mbtouc-safe: New file.
14856         * modules/unistr/u32-mbtouc-safe: New file.
14857         * lib/unistr/u8-mbtouc-safe.c: New file.
14858         * lib/unistr/u16-mbtouc-safe.c: New file.
14859         * lib/unistr/u32-mbtouc-safe.c: New file.
14860
14861         * modules/unistr/u8-move: New file.
14862         * modules/unistr/u16-move: New file.
14863         * modules/unistr/u32-move: New file.
14864         * lib/unistr/u8-move.c: New file.
14865         * lib/unistr/u16-move.c: New file.
14866         * lib/unistr/u32-move.c: New file.
14867         * lib/unistr/u-move.h: New file.
14868
14869         * modules/unistr/u8-next: New file.
14870         * modules/unistr/u16-next: New file.
14871         * modules/unistr/u32-next: New file.
14872         * lib/unistr/u8-next.c: New file.
14873         * lib/unistr/u16-next.c: New file.
14874         * lib/unistr/u32-next.c: New file.
14875
14876         * modules/unistr/u8-prev: New file.
14877         * modules/unistr/u16-prev: New file.
14878         * modules/unistr/u32-prev: New file.
14879         * lib/unistr/u8-prev.c: New file.
14880         * lib/unistr/u16-prev.c: New file.
14881         * lib/unistr/u32-prev.c: New file.
14882
14883         * modules/unistr/u8-set: New file.
14884         * modules/unistr/u16-set: New file.
14885         * modules/unistr/u32-set: New file.
14886         * lib/unistr/u8-set.c: New file.
14887         * lib/unistr/u16-set.c: New file.
14888         * lib/unistr/u32-set.c: New file.
14889         * lib/unistr/u-set.h: New file.
14890
14891         * modules/unistr/u8-startswith: New file.
14892         * modules/unistr/u16-startswith: New file.
14893         * modules/unistr/u32-startswith: New file.
14894         * lib/unistr/u8-startswith.c: New file.
14895         * lib/unistr/u16-startswith.c: New file.
14896         * lib/unistr/u32-startswith.c: New file.
14897         * lib/unistr/u-startswith.h: New file.
14898
14899         * modules/unistr/u8-stpcpy: New file.
14900         * modules/unistr/u16-stpcpy: New file.
14901         * modules/unistr/u32-stpcpy: New file.
14902         * lib/unistr/u8-stpcpy.c: New file.
14903         * lib/unistr/u16-stpcpy.c: New file.
14904         * lib/unistr/u32-stpcpy.c: New file.
14905         * lib/unistr/u-stpcpy.h: New file.
14906
14907         * modules/unistr/u8-stpncpy: New file.
14908         * modules/unistr/u16-stpncpy: New file.
14909         * modules/unistr/u32-stpncpy: New file.
14910         * lib/unistr/u8-stpncpy.c: New file.
14911         * lib/unistr/u16-stpncpy.c: New file.
14912         * lib/unistr/u32-stpncpy.c: New file.
14913         * lib/unistr/u-stpncpy.h: New file.
14914
14915         * modules/unistr/u8-strcat: New file.
14916         * modules/unistr/u16-strcat: New file.
14917         * modules/unistr/u32-strcat: New file.
14918         * lib/unistr/u8-strcat.c: New file.
14919         * lib/unistr/u16-strcat.c: New file.
14920         * lib/unistr/u32-strcat.c: New file.
14921         * lib/unistr/u-strcat.h: New file.
14922
14923         * modules/unistr/u8-strchr: New file.
14924         * modules/unistr/u16-strchr: New file.
14925         * modules/unistr/u32-strchr: New file.
14926         * lib/unistr/u8-strchr.c: New file.
14927         * lib/unistr/u16-strchr.c: New file.
14928         * lib/unistr/u32-strchr.c: New file.
14929
14930         * modules/unistr/u8-strcmp: New file.
14931         * modules/unistr/u16-strcmp: New file.
14932         * modules/unistr/u32-strcmp: New file.
14933         * lib/unistr/u8-strcmp.c: New file.
14934         * lib/unistr/u16-strcmp.c: New file.
14935         * lib/unistr/u32-strcmp.c: New file.
14936
14937         * modules/unistr/u8-strcpy: New file.
14938         * modules/unistr/u16-strcpy: New file.
14939         * modules/unistr/u32-strcpy: New file.
14940         * lib/unistr/u8-strcpy.c: New file.
14941         * lib/unistr/u16-strcpy.c: New file.
14942         * lib/unistr/u32-strcpy.c: New file.
14943         * lib/unistr/u-strcpy.h: New file.
14944
14945         * modules/unistr/u8-strcspn: New file.
14946         * modules/unistr/u16-strcspn: New file.
14947         * modules/unistr/u32-strcspn: New file.
14948         * lib/unistr/u8-strcspn.c: New file.
14949         * lib/unistr/u16-strcspn.c: New file.
14950         * lib/unistr/u32-strcspn.c: New file.
14951         * lib/unistr/u-strcspn.h: New file.
14952
14953         * modules/unistr/u8-strdup: New file.
14954         * modules/unistr/u16-strdup: New file.
14955         * modules/unistr/u32-strdup: New file.
14956         * lib/unistr/u8-strdup.c: New file.
14957         * lib/unistr/u16-strdup.c: New file.
14958         * lib/unistr/u32-strdup.c: New file.
14959         * lib/unistr/u-strdup.h: New file.
14960
14961         * modules/unistr/u8-strlen: New file.
14962         * modules/unistr/u16-strlen: New file.
14963         * modules/unistr/u32-strlen: New file.
14964         * lib/unistr/u8-strlen.c: New file.
14965         * lib/unistr/u16-strlen.c: New file.
14966         * lib/unistr/u32-strlen.c: New file.
14967         * lib/unistr/u-strlen.h: New file.
14968
14969         * modules/unistr/u8-strmblen: New file.
14970         * modules/unistr/u16-strmblen: New file.
14971         * modules/unistr/u32-strmblen: New file.
14972         * lib/unistr/u8-strmblen.c: New file.
14973         * lib/unistr/u16-strmblen.c: New file.
14974         * lib/unistr/u32-strmblen.c: New file.
14975
14976         * modules/unistr/u8-strmbtouc: New file.
14977         * modules/unistr/u16-strmbtouc: New file.
14978         * modules/unistr/u32-strmbtouc: New file.
14979         * lib/unistr/u8-strmbtouc.c: New file.
14980         * lib/unistr/u16-strmbtouc.c: New file.
14981         * lib/unistr/u32-strmbtouc.c: New file.
14982
14983         * modules/unistr/u8-strncat: New file.
14984         * modules/unistr/u16-strncat: New file.
14985         * modules/unistr/u32-strncat: New file.
14986         * lib/unistr/u8-strncat.c: New file.
14987         * lib/unistr/u16-strncat.c: New file.
14988         * lib/unistr/u32-strncat.c: New file.
14989         * lib/unistr/u-strncat.h: New file.
14990
14991         * modules/unistr/u8-strncmp: New file.
14992         * modules/unistr/u16-strncmp: New file.
14993         * modules/unistr/u32-strncmp: New file.
14994         * lib/unistr/u8-strncmp.c: New file.
14995         * lib/unistr/u16-strncmp.c: New file.
14996         * lib/unistr/u32-strncmp.c: New file.
14997
14998         * modules/unistr/u8-strncpy: New file.
14999         * modules/unistr/u16-strncpy: New file.
15000         * modules/unistr/u32-strncpy: New file.
15001         * lib/unistr/u8-strncpy.c: New file.
15002         * lib/unistr/u16-strncpy.c: New file.
15003         * lib/unistr/u32-strncpy.c: New file.
15004         * lib/unistr/u-strncpy.h: New file.
15005
15006         * modules/unistr/u8-strnlen: New file.
15007         * modules/unistr/u16-strnlen: New file.
15008         * modules/unistr/u32-strnlen: New file.
15009         * lib/unistr/u8-strnlen.c: New file.
15010         * lib/unistr/u16-strnlen.c: New file.
15011         * lib/unistr/u32-strnlen.c: New file.
15012         * lib/unistr/u-strnlen.h: New file.
15013
15014         * modules/unistr/u8-strpbrk: New file.
15015         * modules/unistr/u16-strpbrk: New file.
15016         * modules/unistr/u32-strpbrk: New file.
15017         * lib/unistr/u8-strpbrk.c: New file.
15018         * lib/unistr/u16-strpbrk.c: New file.
15019         * lib/unistr/u32-strpbrk.c: New file.
15020         * lib/unistr/u-strpbrk.h: New file.
15021
15022         * modules/unistr/u8-strrchr: New file.
15023         * modules/unistr/u16-strrchr: New file.
15024         * modules/unistr/u32-strrchr: New file.
15025         * lib/unistr/u8-strrchr.c: New file.
15026         * lib/unistr/u16-strrchr.c: New file.
15027         * lib/unistr/u32-strrchr.c: New file.
15028
15029         * modules/unistr/u8-strspn: New file.
15030         * modules/unistr/u16-strspn: New file.
15031         * modules/unistr/u32-strspn: New file.
15032         * lib/unistr/u8-strspn.c: New file.
15033         * lib/unistr/u16-strspn.c: New file.
15034         * lib/unistr/u32-strspn.c: New file.
15035         * lib/unistr/u-strspn.h: New file.
15036
15037         * modules/unistr/u8-strstr: New file.
15038         * modules/unistr/u16-strstr: New file.
15039         * modules/unistr/u32-strstr: New file.
15040         * lib/unistr/u8-strstr.c: New file.
15041         * lib/unistr/u16-strstr.c: New file.
15042         * lib/unistr/u32-strstr.c: New file.
15043         * lib/unistr/u-strstr.h: New file.
15044
15045         * modules/unistr/u8-strtok: New file.
15046         * modules/unistr/u16-strtok: New file.
15047         * modules/unistr/u32-strtok: New file.
15048         * lib/unistr/u8-strtok.c: New file.
15049         * lib/unistr/u16-strtok.c: New file.
15050         * lib/unistr/u32-strtok.c: New file.
15051         * lib/unistr/u-strtok.h: New file.
15052
15053         * modules/unistr/u8-uctomb: New file.
15054         * modules/unistr/u16-uctomb: New file.
15055         * modules/unistr/u32-uctomb: New file.
15056         * lib/unistr/u8-uctomb.c: New file.
15057         * lib/unistr/u16-uctomb.c: New file.
15058         * lib/unistr/u32-uctomb.c: New file.
15059
15060         * MODULES.html.sh (Unicode string functions): Add the new modules.
15061
15062 2007-01-08  Bruno Haible  <bruno@clisp.org>
15063
15064         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
15065         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
15066         subdirectories.
15067
15068 2007-01-08  Karl Berry  <karl@gnu.org>
15069
15070         * doc/error.texi: mention that main() fns must set program_name
15071         when progname is used.
15072
15073 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
15074
15075         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
15076         WCTYPE_H is empty, for the benefit of builds from non-distclean
15077         directories.  Problem reported by Eric Blake in
15078         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
15079
15080 2007-01-08  Bruno Haible  <bruno@clisp.org>
15081
15082         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
15083         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
15084         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
15085         PROVIDE_CANONICALIZE_FILENAME_MODE.
15086         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
15087
15088 2007-01-08  Bruno Haible  <bruno@clisp.org>
15089
15090         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
15091         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
15092         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
15093         * lib/fts.c: Likewise.
15094         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
15095
15096 2006-12-25  Bruno Haible  <bruno@clisp.org>
15097
15098         * modules/utf8-ucs4-safe: New file.
15099         * lib/utf8-ucs4-safe.h: New file.
15100         * lib/unistr/utf8-ucs4-safe.c: New file.
15101
15102         * modules/utf16-ucs4-safe: New file.
15103         * lib/utf16-ucs4-safe.h: New file.
15104         * lib/unistr/utf16-ucs4-safe.c: New file.
15105
15106         * MODULES.html.sh (Unicode string functions): Add the new modules.
15107
15108 2007-01-08  Bruno Haible  <bruno@clisp.org>
15109
15110         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
15111         (Depends-on): Add unitypes.
15112         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
15113         (u8_mbtouc_aux): Move out to separate file.
15114         (u8_mbtouc): Use ucs4_t, uint8_t types.
15115         * lib/unistr/utf8-ucs4.c: New file.
15116
15117         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
15118         (Depends-on): Add unitypes.
15119         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
15120         (u16_mbtouc_aux): Move out to separate file.
15121         (u16_mbtouc): Use ucs4_t, uint16_t types.
15122         * lib/unistr/utf16-ucs4.c: New file.
15123
15124         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
15125         (Depends-on): Add unitypes.
15126         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
15127         (u8_uctomb_aux): Move out to separate file.
15128         (u8_uctomb): Use ucs4_t, uint8_t types.
15129         * lib/unistr/ucs4-utf8.c: New file.
15130
15131         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
15132         (Depends-on): Add unitypes.
15133         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
15134         (u16_uctomb_aux): Move out to separate file.
15135         (u16_uctomb): Use ucs4_t, uint16_t types.
15136         * lib/unistr/ucs4-utf16.c: New file.
15137
15138 2006-12-25  Bruno Haible  <bruno@clisp.org>
15139
15140         * modules/unitypes: New file.
15141         * lib/unitypes.h: New file.
15142         * MODULES.html.sh (func_all_modules): New section "Unicode string
15143         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
15144         this section. Add unitypes.
15145
15146 2007-01-08  Bruno Haible  <bruno@clisp.org>
15147
15148         Avoid variable names that conflict with those from libtool.
15149         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
15150         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
15151         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
15152         library_names_spec to acl_library_names_spec, hardcode_* to
15153         acl_hardcode_*.
15154         Reported by Ralf Wildenhues.
15155
15156 2007-01-08  Bruno Haible  <bruno@clisp.org>
15157
15158         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
15159         definition.
15160         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
15161         definition.
15162         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
15163         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
15164         definition.
15165         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
15166         definition.
15167         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
15168         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
15169         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
15170         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
15171         definition.
15172         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
15173         definition.
15174         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
15175         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
15176         GC_USE_<algorithm>.
15177         * lib/gc-libgcrypt.c: Likewise.
15178         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
15179         * modules/gc-arctwo (configure.ac): Likewise.
15180         * modules/gc-des (configure.ac): Likewise.
15181         * modules/gc-hmac-md5 (configure.ac): Likewise.
15182         * modules/gc-hmac-sha1 (configure.ac): Likewise.
15183         * modules/gc-md2 (configure.ac): Likewise.
15184         * modules/gc-md4 (configure.ac): Likewise.
15185         * modules/gc-md5 (configure.ac): Likewise.
15186         * modules/gc-random (configure.ac): Likewise.
15187         * modules/gc-rijndael (configure.ac): Likewise.
15188         * modules/gc-sha1 (configure.ac): Likewise.
15189
15190 2007-01-08  Bruno Haible  <bruno@clisp.org>
15191
15192         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
15193         macro definition.
15194         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
15195         definition.
15196         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
15197         definition.
15198         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
15199         * modules/fcntl-safer (configure.ac): Likewise.
15200         * modules/fopen-safer (configure.ac): Likewise.
15201         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
15202         GNULIB_FWRITEERROR macro definition.
15203
15204 2007-01-08  Bruno Haible  <bruno@clisp.org>
15205
15206         * m4/gnulib-common.m4: New file.
15207         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
15208         (func_get_filelist): Add m4/gnulib-common.m4.
15209
15210 2007-01-08  Bruno Haible  <bruno@clisp.org>
15211
15212         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
15213         command.
15214
15215 2007-01-08  Jim Meyering  <jim@meyering.net>
15216
15217         Use a more robust test for a "can't happen" condition.
15218         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
15219         narrowed the st_size value.  Presuming the "can't happen" condition
15220         is true, that narrowing could conceivably convert an invalid st_size
15221         value into a valid one.  Instead, use a change based on Matthew
15222         Woehlke's original patch.
15223
15224         Slight readability improvement: use an assert-like macro
15225         in place of literal "abort ()" uses.
15226         * lib/fts.c (fts_assert): Define.
15227         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
15228         Use this macro instead of a bare 'abort'.
15229
15230 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
15231
15232         Don't worry about using IRIX 5.3's wctype.h broken definitions;
15233         simply work around them.
15234         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
15235         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
15236         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
15237         declaring.
15238         Don't bother to define as macros, since the standard doesn't require it.
15239         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
15240         longer worry about IRIX 5.3.
15241         (HAVE_WCTYPE_CTMP_BUG): Remove.
15242
15243 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
15244
15245         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
15246         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
15247         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
15248         Problems reported by Georg Schwarz for IRIX 5.3.
15249
15250         * gnulib-tool (autoconf_minversion): Take the maximum version number
15251         found, not the minimum.  Problem reported by James Youngman.
15252
15253 2007-01-03  Karl Berry  <karl@gnu.org>
15254
15255         * doc/error.texi: new file, explaining interaction with progname.
15256         * doc/gnulib.texi: include it.  Update copyright.
15257
15258 2007-01-03  Simon Josefsson  <simon@josefsson.org>
15259
15260         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
15261         AC_CANONICAL_HOST, to improve autobuild outputs.
15262
15263 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
15264             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
15265
15266         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
15267         sockets, server sockets, and other file descriptors.  Count errors
15268         to compute the return value.  Reorder the code a bit to be easier
15269         to follow.  Don't set event bits that were not requested (except
15270         POLLERR and POLLHUP).
15271
15272 2007-01-01  Bruno Haible  <bruno@clisp.org>
15273
15274         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
15275
15276 2007-01-03  Jim Meyering  <jim@meyering.net>
15277
15278         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
15279
15280 2007-01-02  Bruno Haible  <bruno@clisp.org>
15281
15282         * modules/settime (Include): Require timespec.h.
15283         * modules/nanosleep (Include): Likewise.
15284
15285 2007-01-01  Bruno Haible  <bruno@clisp.org>
15286
15287         * gnulib-tool (func_emit_copyright_notice): Bump year.
15288         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
15289
15290 2007-01-01  Bruno Haible  <bruno@clisp.org>
15291
15292         Improve support for OpenBSD.
15293         * build-aux/config.rpath (libname_spec): Export.
15294         (library_names_spec): New variable. Export.
15295         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
15296         library_names_spec from the config.rpath output. Locate shared library
15297         through the name pattern in library_names_spec.
15298
15299 2007-01-01  Eric Blake  <ebb9@byu.net>
15300
15301         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
15302
15303 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
15304
15305         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
15306         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
15307         assume the C locale, and avoid an "eval" that could cause trouble.
15308         Problem with SORT reported by Bob Proulx.
15309
15310         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
15311         Define.  Trivial patch from Henning Nielsen Lund, originally
15312         sent to bug-grep@gnu.org today.
15313
15314 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
15315
15316         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
15317         struct stat.  Problem reported by Henning Nielsen Lund.
15318         * lib/acl.c: Include acl.h first, to check interface.  Don't
15319         bother to include sys/types.h and sys/stat.h again.
15320
15321 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
15322
15323         Import the following change from libc; problem reported by
15324         Sven Verdoolaege.
15325
15326         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
15327
15328         [BZ #1373]
15329         * lib/argp.h: Remove __NTH for __argp_usage inline function.
15330
15331 2006-12-28  Jim Meyering  <jim@meyering.net>
15332
15333         * build-aux/announce-gen: Do not assume that the package
15334         builds any of tar.gz, tar.bz2, and .xdelta files.
15335         Suggestion from Simon Josefsson.
15336
15337 2006-12-28  Simon Josefsson  <simon@josefsson.org>
15338
15339         * modules/announce-gen: New file.
15340
15341 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
15342
15343         * lib/mbchar.h: Just include <wctype.h>; the wctype module
15344         handles its gotchas now.
15345         * lib/mbswidth.c: Likewise.
15346         * lib/wcwidth.h: Likewise.
15347         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
15348         and iswcntrl; the wctype module does this stuff now.
15349         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
15350         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
15351         * modules/mbchar (Depends-on): Add wctype.
15352         * modules/mbswidth (Depends-on): Likewise.
15353         * modules/wcwidth (Depends-on): Likewise.
15354
15355 2006-12-27  Eric Blake  <ebb9@byu.net>
15356
15357         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
15358         module uses more than what <wctype.h> is required to provide.
15359
15360 2006-12-26  Eric Blake  <ebb9@byu.net>
15361
15362         * gnulib-tool (sed_extract_prog): Avoid space-tab.
15363
15364 2006-12-26  Eric Blake  <ebb9@byu.net>
15365
15366         * modules/absolute-header: New module.
15367         * modules/fcntl (Depends-on): Depend on it.
15368         * modules/inttypes (Depends-on): Likewise.
15369         * modules/stdint (Depends-on): Likewise.
15370         * modules/sys_stat (Depends-on): Likewise.
15371         * modules/wctype (Depends-on): Likewise.
15372         * MODULES.html.sh (Support for building libraries and
15373         executables): Document it.
15374
15375 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
15376
15377         * gnulib-tool (SED): Remove, undoing previous change.
15378         The problem was that it broke coreutils on Solaris, because
15379         "sed --posix" leaked into a makefile.
15380         (sed): New alias, if 'alias' and GNU sed.
15381
15382 2006-12-24  Jim Meyering  <jim@meyering.net>
15383
15384         Work around an fchownat bug in glibc-2.4:
15385         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
15386         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
15387         in spite of the -P option.
15388         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
15389         New macros.
15390         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
15391         * modules/openat (Files): Add lib/fchownat.c.
15392         * lib/openat.c (fchownat): Don't define here.  Move to...
15393         * lib/fchownat.c: ...this new file.
15394
15395 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
15396
15397         Fix bug reported by Bruno Haible in
15398         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
15399         where quotearg.c didn't compile on Mac OS X 10.2 because it
15400         lacks <wchar.h> and wint_t.
15401         * lib/wctype_.h (__wctype_wint_t): New type.
15402         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
15403         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
15404         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
15405         Arg is now of type __wctype_wint_t, not wint_t.
15406         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
15407         substitute HAVE_WINT_T.
15408         * modules/wctype (Files): Add m4/wint_t.m4.
15409         (wctype.h): Substitute HAVE_WINT_T.
15410
15411 2006-12-23  Bruno Haible  <bruno@clisp.org>
15412
15413         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
15414
15415 2006-12-23  Bruno Haible  <bruno@clisp.org>
15416
15417         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
15418         S_ISLNK.
15419         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
15420         mingw.
15421
15422 2006-12-22  Bruno Haible  <bruno@clisp.org>
15423
15424         * lib/copy-file.c: Include acl.h.
15425         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
15426         Close the file descriptors only after being done with copy_acl.
15427         * modules/copy-file (Depends-on): Add acl.
15428
15429 2006-12-22  Bruno Haible  <bruno@clisp.org>
15430
15431         * gnulib-tool (SED): New variable.
15432         Use $SED instead of sed everywhere.
15433
15434 2006-12-22  Bruno Haible  <bruno@clisp.org>
15435
15436         * modules/no-c++: New file.
15437         * m4/no-c++.m4: New file.
15438         * MODULES.html.sh (Support for building libraries and executables):
15439         Add no-c++.
15440
15441 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
15442
15443         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
15444         Include <limits.h>, and use its INT_MAX to rewrite the
15445         j loop so that it does not overflow 'int'.  Problem reported by
15446         Ralf Wildenhues in
15447         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
15448         Play it safe by shifting left by 1 rather than multiplying by 2,
15449         as GCC is less likely to optimize this away when the value
15450         is signed (when it assumes overflow leads to undefined behavior).
15451         Also, don't assume time_t uses two's complement.
15452
15453 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
15454
15455         * MODULES.html.sh: New module wctype.
15456         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
15457         * lib/fnmatch.c: Don't bother to include <wchar.h> before
15458         <wctype.h>, since the new wctype module should fix this.
15459         * lib/quotearg.c: Include <wctype.h> unconditionally, since
15460         the wctype module should arrange for it.
15461         * lib/regex_internal.h: Likewise.
15462         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
15463         since the wctype module should handle this now.
15464         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
15465         * modules/fnmatch (Depends-on): Add wctype.
15466         * modules/quotearg (Depends-on): Likewise.
15467         * modules/regex (Depends-on): Likewise.
15468
15469 2006-12-19  Bruno Haible  <bruno@clisp.org>
15470
15471         * lib/strdup.h [C++]: Wrap definitions in extern "C".
15472         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
15473
15474 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15475
15476         * modules/savewd (Depends-on): Fix dependency on fcntl.
15477
15478 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
15479
15480         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
15481         conforms to C99, rather than relying on the user's environment
15482         setting of STDINT_H.
15483
15484 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
15485         and Eric Blake  <ebb9@byu.net>
15486
15487         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
15488         This is more consistent with the other defines here.
15489         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
15490         Port to z/OS.  Problem reported by Paul Gilmartin.
15491         Change local vars to use gl_ prefix rather than ac_.
15492         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
15493         with other defines.
15494         * modules/double-slash-root: New module.
15495         * modules/dirname (Files): Remove m4/double-slash-root.m4.
15496         (Depends-on): Add double-slash-root.
15497         * MODULES.html.sh (File system functions): Mention new module.
15498
15499 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
15500
15501         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
15502         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
15503         This is for the benefit of gzip, which doesn't do i18n.
15504
15505 2006-12-12  Jim Meyering  <jim@meyering.net>
15506
15507         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
15508         Reported by Andreas Schwab <schwab@suse.de>.
15509
15510 2006-12-12  Bruno Haible  <bruno@clisp.org>
15511
15512         Merge these changes.
15513         2006-09-05  Bruno Haible  <bruno@clisp.org>
15514         * lib/iconvme.c (iconv_string): No need to save and restore errno when
15515         iconv_alloc succeeded.
15516         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
15517         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
15518         test for " && dest " at the end - dest is always != NULL there. Call
15519         iconv with 4xNULL arguments initially, to reset the state. Call iconv
15520         with 2xNULL arguments, also to flush the state storage. Handle the
15521         IRIX iconv behaviour. Realloc the final result, to throw away unused
15522         memory.
15523
15524 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
15525
15526         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
15527         and fchmodat unconditionally, since glibc 2.4 has them.
15528         Problem reported by Arkadiusz Miskiewicz.
15529
15530 2006-12-10  Bruno Haible  <bruno@clisp.org>
15531
15532         * gnulib-tool (func_import): Show the include files only for those
15533         modules that are copied and specified.
15534         Reported by Karl Berry.
15535
15536 2006-12-08  Jim Meyering  <jim@meyering.net>
15537
15538         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
15539         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
15540
15541         * build-aux/announce-gen: Add two new options, both optional:
15542         --bootstrap-tools=TOOL_LIST
15543               a comma-separated list of tools, e.g.,
15544               autoconf,automake,bison,gnulib
15545         --gnulib-snapshot-date=DATE
15546               if gnulib is in the bootstrap tool list,
15547               then report this as the snapshot date.
15548               If not specified, use the current date/time.
15549               If you specify a date here, be sure it's UTC.
15550
15551 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15552
15553         * tests/test-argp-2.sh: Fix test to match actual output.
15554         (func_compare): Fix sed script to be portable.
15555
15556 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
15557
15558         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
15559         workaround for this case.  It is not autoconfigured now; offhand
15560         it's hard to see how to autoconfigure it.
15561
15562 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
15563
15564         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
15565         a directory that is about to be chowned.  Such a directory's
15566         initial file permissions should permit the owner only and this
15567         should not be changed until after the chown, since the group and
15568         other bits would be incorrect if they granted permission before
15569         the chown.
15570
15571         Fix porting problem for iswctype reported by Georg Schwarz in:
15572         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
15573         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
15574         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
15575         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
15576         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
15577
15578 2006-12-03  Jim Meyering  <jim@meyering.net>
15579
15580         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
15581         p->fts_statp may not yet be defined.
15582         (fts_read): Instead, set it in the caller, once p->fts_statp is
15583         sure to be defined, and corresponds to a top-level directory.
15584         This bug made du -x fail.  Here's the coreutils test case:
15585         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
15586         Reported by Mike Frysinger.
15587
15588 2006-12-01  Jim Meyering  <jim@meyering.net>
15589
15590         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
15591         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
15592         Reported by Simon Josefsson.
15593
15594 2006-11-30  Jim Meyering  <jim@meyering.net>
15595
15596         * m4/warning.m4: Use the all-permissive copyright notice
15597         recommended by RMS (rather than LGPL).
15598         * m4/vararrays.m4: Likewise.
15599         * m4/flexmember.m4: Likewise.
15600
15601 2006-11-29  Bruno Haible  <bruno@clisp.org>
15602
15603         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
15604         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
15605         using +=.
15606         Reported by Simon Josefsson <simon@josefsson.org>.
15607
15608 2006-11-28  James Youngman <jay@gnu.org>
15609
15610         * README: Advise users that they might find the bug-gnulib@gnu.org
15611         and autotools-announce@gnu.org mailing lists useful.
15612
15613 2006-11-28  Bruno Haible  <bruno@clisp.org>
15614
15615         * m4/ptrdiff_max.m4: Remove file.
15616
15617 2006-11-21  Bruno Haible  <bruno@clisp.org>
15618
15619         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
15620         _AC_COMPUTE_INT.
15621         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
15622         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
15623         _AC_COMPUTE_INT.
15624         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
15625         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
15626         _AC_COMPUTE_INT.
15627         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
15628
15629 2006-11-28  Jim Meyering  <jim@meyering.net>
15630
15631         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
15632         warning from "gcc -Wshadow" about shadowing the builtin.
15633
15634 2006-11-27  Bruno Haible  <bruno@clisp.org>
15635
15636         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
15637         _AC_COMPUTE_INT.
15638         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
15639
15640 2006-11-27  Bruno Haible  <bruno@clisp.org>
15641             Paul Eggert  <eggert@cs.ucla.edu>
15642
15643         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
15644
15645 2006-11-26  Bruno Haible  <bruno@clisp.org>
15646
15647         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
15648         noinst_LTLIBRARIES.
15649
15650 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
15651             Bruno Haible  <bruno@clisp.org>
15652
15653         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
15654         if compiling with "gcc -ansi".
15655
15656 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
15657
15658         Fix some incompatibilities with gcc -ansi -pedantic.
15659         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
15660         if compiling pedantically with GCC, unless it's C99 or later.
15661         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
15662         it mishandles gcc -ansi -pedantic as well.
15663         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
15664         if gcc -pedantic.
15665         * lib/regexec.c (check_node_accept_bytes): Don't use auto
15666         initializers for struct if -pedantic, unless it's C99 or later.
15667
15668 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
15669
15670         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
15671         Don't close an fd more than once. Identical atimes indicate
15672         success, not failure.
15673
15674 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
15675
15676         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
15677
15678 2006-11-23  Jim Meyering  <jim@meyering.net>
15679
15680         * build-aux/announce-gen: New file.  From coreutils.
15681
15682 2006-11-22  Jim Meyering  <jim@meyering.net>
15683
15684         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
15685         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
15686         (fts_read): Use a temporary to narrow the overused st_size member
15687         before using it in a switch statement.  Reported by Matthew Woehlke.
15688
15689         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
15690         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
15691
15692 2006-11-20  Bruno Haible  <bruno@clisp.org>
15693
15694         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
15695         changequote instead of pairs of brackets.
15696         Reported by Andreas Schwab <schwab@suse.de>.
15697
15698 2006-11-21  Jim Meyering  <jim@meyering.net>
15699
15700         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
15701         so as to remain compatible with older compilers.
15702         Patch from Michael Deutschmann.
15703
15704 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
15705
15706         * MODULES.html.sh (File system functions): Add openat.
15707
15708         * lib/openat.h (rpl_fstatat): New macro, if
15709         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
15710         (fstatat): Define to rpl_fstatat under the same conditions,
15711         unless COMPILING_FSTATAT.
15712         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
15713         seems to have the bug.
15714         * lib/fstatat.c: New file.
15715         * modules/openat (Files): Add it.
15716
15717 2006-11-20  Bruno Haible  <bruno@clisp.org>
15718
15719         * Makefile: New file.
15720
15721 2006-11-20  Jim Meyering  <jim@meyering.net>
15722
15723         The beginnings of syntax-related checks for gnulib.
15724         * lib/Makefile: New file.
15725         * lib/t-idcache: New script.  Ensure that the two halves of
15726         idcache.c stay in sync.
15727
15728         * lib/idcache.c: Adjust comments in user- and group- portions to
15729         be more accurate, and to be consistent with one another.
15730
15731 2006-11-20  Jim Meyering  <jim@meyering.net>
15732
15733         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
15734         continue using the flexible array member (thus, this module performs
15735         half as many malloc calls), with the addition that...
15736         (getgroup, getuser): Consistently record a non-match via an empty
15737         "name" string, and map an empty string match to a NULL return value.
15738         * modules/idcache (Depends-on): Re-add flexmember.
15739
15740         * lib/idcache.c (getuser): Remove all uses of the register keyword.
15741         (getuidbyname, getgroup, getgidbyname): Likewise.
15742
15743         Use cleaner syntax: NULL rather than 0.
15744         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
15745
15746 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
15747
15748         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
15749         It mishandled the case where the group was missing.
15750         Problem reported by Greg Schafer.
15751         * modules/idcache: Likewise.
15752
15753 2006-11-18  Jim Meyering  <jim@meyering.net>
15754
15755         * check-module (%exempt_header): Add exception for some
15756         conditionally-included headers.
15757
15758         * modules/i-ring (Depends-on): Add verify.
15759         (License): Change to LGPL.
15760
15761 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
15762
15763         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
15764         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
15765         and inttostr.h.  Use snprintf rather than uinttostr, so that
15766         LGPLed code doesn't depend on GPLed.
15767
15768 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
15769
15770         * modules/inline (License): Change from GPL to LGPL.
15771
15772 2006-11-17  Jim Meyering  <jim@meyering.net>
15773
15774         * modules/d-type (License): Switch to LGPL.
15775
15776 2006-11-15  Bruno Haible  <bruno@clisp.org>
15777
15778         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
15779
15780 2006-11-15  Eric Blake  <ebb9@byu.net>
15781
15782         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
15783         the module dependency.
15784
15785 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
15786             Bruno Haible  <bruno@clisp.org>
15787
15788         * gnulib-tool (func_create_testdir): Add license consistency check.
15789
15790 2006-11-15  Eric Blake  <ebb9@byu.net>
15791
15792         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
15793         random "(cached)" in configure output.
15794
15795 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15796
15797         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
15798         test for conforming inttypes.h is both announced and cached.
15799
15800         * MODULES.html.sh (seen_modules, seen_files): New variables.
15801         (func_module): Rewrite to use a few less gnulib-tool and sed
15802         invocations.  Avoid a couple of quadratic algorithms for ...
15803         (missed_modules, missed_files): ... these, with ...
15804         (func_append, func_tmpdir): ... these new functions, from
15805         gnulib-tool.  Analogously, install traps for cleanup.
15806
15807         * tests/test-gc.c (main): Remove unused variables.
15808         * tests/test-read-file.c: Include stdlib.h, for 'free'.
15809
15810 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
15811
15812         * modules/inttostr (License): Change to LGPL.
15813
15814 2006-11-14  Eric Blake  <ebb9@byu.net>
15815
15816         * modules/tempname (License): Change to LGPL.
15817
15818 2006-11-14  Eric Blake  <ebb9@byu.net>
15819
15820         * doc/functions.texi (Function Portability): *printf functions on
15821         Cygwin now understand all POSIX size specifiers.
15822
15823 2006-11-14  Bruno Haible  <bruno@clisp.org>
15824
15825         * modules/c-ctype (License): Change to LGPL.
15826
15827 2006-11-12  Bruno Haible  <bruno@clisp.org>
15828
15829         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
15830         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
15831         for GNOME libraries, for which the include files are installed in
15832         subdirectories of $prefix/include.
15833
15834 2006-11-12  Bruno Haible  <bruno@clisp.org>
15835
15836         * m4/lib-link.m4: Require at least autoconf-2.54.
15837         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
15838         name to underscores for the --with option.
15839
15840 2006-11-13  Bruno Haible  <bruno@clisp.org>
15841
15842         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
15843         the tests directory.
15844         Reported by Ralf Wildenhues.
15845
15846 2006-11-13  Bruno Haible  <bruno@clisp.org>
15847
15848         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
15849         (func_emit_initmacro_end): Undo the override here.
15850         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
15851         Works around the famous automake error in coreutils.
15852
15853 2006-11-13  Eric Blake  <ebb9@byu.net>
15854
15855         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
15856         element, not its node.
15857
15858 2006-11-12  Bruno Haible  <bruno@clisp.org>
15859
15860         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
15861         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
15862
15863 2006-11-12  Bruno Haible  <bruno@clisp.org>
15864
15865         * gnulib-tool: New option --local-symlink.
15866         (func_usage): Document it.
15867         (lsymbolic): New variable.
15868         (func_import, func_create_testdir): If --symlink was not specified,
15869         test whether --local-symlink was specified and the file comes from
15870         the local_gnulib_dir.
15871
15872 2006-11-12  Bruno Haible  <bruno@clisp.org>
15873
15874         * gnulib-tool (func_ln): New function.
15875         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
15876
15877 2006-11-12  Bruno Haible  <bruno@clisp.org>
15878
15879         Finish support for source files in subdirectories.
15880         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
15881         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
15882         AUTOMAKE_OPTIONS.
15883         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
15884
15885 2006-11-12  Bruno Haible  <bruno@clisp.org>
15886
15887         * gnulib-tool (func_get_automake_snippet): Synthesize also an
15888         EXTRA_lib_SOURCES augmentation.
15889         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
15890
15891 2006-11-12  Jim Meyering  <jim@meyering.net>
15892
15893         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
15894         file descriptors.  This also averts a failure on systems with
15895         native openat support when a traversed directory lacks "x" access.
15896         * lib/fts_.h: Include "i-ring.h"
15897         (struct FTS) [fts_fd_ring]: New member.
15898         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
15899         (FCHDIR): Add parentheses.
15900         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
15901         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
15902         When descending, rather than simply closing the previous
15903         fts_cwd_fd value, push that file descriptor onto the ring.
15904         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
15905         (fts_open): Initialize the new fd_ring member.
15906         (fts_close): Clear the ring.
15907         (fts_safe_changedir): When possible, use our new fd_ring to skip
15908         the diropen and fstat and dev/ino comparison that would normally
15909         accompany a virtual `chdir ("..")'.
15910
15911         * modules/fts (Depends-on): Add i-ring.
15912         * modules/i-ring: New module.
15913         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
15914         * m4/i-ring.m4: New file.
15915
15916 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15917
15918         * gnulib-tool (func_create_testdir): Fix replacement of
15919         `build-aux' in configure.ac.  Run autotools in gltests
15920         subdirectory.
15921         (func_create_testdir, func_create_megatestdir, test): There is
15922         no need for '--force' in most autotool invocations in a new
15923         tree.  Actually fail the whole test if any of the tools, or the
15924         configure or make stages fail.
15925
15926         Sync from Automake.
15927         * build-aux/gnupload: Revert last change.  Add pointer to upload
15928         instructions of the GNU Maintenance Instructions.
15929         Suggestion by Karl Berry.
15930
15931 2006-11-10  Jim Meyering  <jim@meyering.net>
15932
15933         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
15934
15935 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
15936
15937         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
15938         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
15939         (bind_textdomain_codeset) [! ENABLE_NLS]:
15940         Evaluate all the arguments.  That way, callers get compatible behavior
15941         if the arguments have side effects.  Also, it avoids some GCC
15942         diagnostics in some cases; Joel E. Denny reported problems when Bison
15943         was configured with --enable-gcc-warnigs.
15944
15945 2006-11-10  Jim Meyering  <jim@meyering.net>
15946
15947         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
15948         relevant options in CFLAGS (like -O, -fno-inline) are taken into
15949         account.
15950
15951 2006-11-10  Jim Meyering  <jim@meyering.net>
15952
15953         * modules/inline: New file/module.
15954         * modules/xalloc (Files): Remove m4/inline.m4.
15955         (Depends-on): Add inline, instead.
15956         * modules/oset: Likewise.
15957         * modules/list: Likewise.
15958
15959 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
15960
15961         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
15962         Problem reported by Matthew Woehlke.
15963
15964 2006-11-09  Bruno Haible  <bruno@clisp.org>
15965
15966         * lib/tempname.c (gen_tempname): Remove variant that invokes
15967         __gen_tempname.
15968         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
15969         __gen_tempname.
15970
15971 2006-11-08  Bruno Haible  <bruno@clisp.org>
15972
15973         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
15974         to 'yes' instead of 'cross-compiling'.
15975
15976 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
15977
15978         * lib/quotearg.h (quotearg_free): New decl.
15979         * lib/quotearg.c (quotearg_free): New function.
15980         (slot0, nslots, slotvec0, slotvec):
15981         Now file-scope so that quotearg_free can get at them.
15982
15983 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15984
15985         Sync from Automake.
15986         * build-aux/gnupload: Add missing 'gnu' to example URL.
15987         Report by Karl Berry.
15988
15989 2006-11-08  Bruno Haible  <bruno@clisp.org>
15990
15991         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
15992         Suggested by Paul Eggert.
15993
15994 2006-11-08  Jim Meyering  <jim@meyering.net>
15995
15996         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
15997         It's already included if !_LIBC.
15998         (fts_safe_changedir): Add a comment.
15999
16000 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
16001
16002         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
16003         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
16004         Matthew Woehlke.
16005
16006         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
16007         definitions up, to avoid colliding with change below.
16008         (static_inline) [HAVE_INLINE]: New macro.
16009         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
16010         Provide extern decls when !HAVE_INLINE.  Do not define unless
16011         static_inline is defined, either by us or by xmalloc.c.  Use
16012         static_inline rather than static inline.
16013         (XCALLOC): Optimize sizeof(T) = 1 case.
16014         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
16015
16016 2006-11-07  Bruno Haible  <bruno@clisp.org>
16017
16018         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
16019         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
16020         AC_C_INLINE.
16021         * modules/xalloc (Files): Add m4/inline.m4.
16022
16023 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16024
16025         * README: Fix typo.
16026         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
16027         (Miscellanous Notes): ...from this.
16028
16029 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
16030
16031         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
16032         Mention that offsetof should be used instead of sizeof.
16033         From Bruno Haible.
16034
16035 2006-11-07  Bruno Haible  <bruno@clisp.org>
16036
16037         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
16038
16039 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
16040
16041         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
16042         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
16043         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
16044         (gl_tree_add_before, gl_tree_add_after):
16045         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
16046         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
16047         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
16048         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
16049         (gl_linked_add_after, gl_linked_add_at): Likewise.
16050         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
16051         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
16052         (gl_tree_add_before, gl_tree_add_after): Likewise.
16053         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
16054         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
16055         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
16056
16057 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16058
16059         * lib/gl_oset.h: Use C comment style, not C++ comment style.
16060
16061 2006-11-06  Bruno Haible  <bruno@clisp.org>
16062
16063         * m4/inline.m4: New file.
16064         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
16065         * modules/list (Files): Add m4/inline.m4.
16066         * modules/oset (Files): Likewise.
16067
16068 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
16069
16070         * lib/idcache.c: Include <stddef.h>, for offsetof.
16071         (struct userid.name): Change from char * to a flexible array member.
16072         All uses changed.
16073         * modules/idcache (Depends-on): Add flexmember.
16074
16075         * MODULES.html.sh (Core language properties): New module flexmember.
16076         * modules/flexmember, m4/flexmember.m4: New files.
16077
16078         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
16079         inline functions that are identical with the old xnmalloc_inline,
16080         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
16081         that we can avoid some unnecessary integer multiplications and
16082         divisions in the common case where the element size is known at
16083         compile time.
16084         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
16085         needed.
16086         (xnboundedmalloc): Remove.
16087         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
16088         arguments, for consistency with rest of this header.
16089         (xcharalloc): Rewrite using XNMALLOC.
16090         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
16091         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
16092         versions have been moved to lib/xalloc.h and renamed to be the
16093         non-*_inline versions.
16094         (xmalloc, xrealloc): Implement without reference to the xnmalloc
16095         and xnrealloc functions, since those functions are now inline and
16096         now call us.
16097         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
16098         renaming described above.
16099         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
16100         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
16101         captures the dependency in AC_C_INLINE.
16102
16103         New module canonicalize-lgpl, proposed by Charles Wilson in
16104         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
16105         with a few small changes afterwards.
16106         * MODULES.html.sh (File system functions): New module
16107         canonicalize-lgpl.
16108         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
16109         and canonicalize_file_name.
16110         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
16111         * modules/canonicalize-lgpl: New files.
16112
16113 2006-11-05  Bruno Haible  <bruno@clisp.org>
16114
16115         * gnulib-tool (func_import, func_create_testdir): Create directories
16116         also for files in subdirectories of lib/.
16117
16118 2006-11-05  Bruno Haible  <bruno@clisp.org>
16119
16120         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
16121         ANSI C compliant.
16122
16123 2006-11-03  Bruno Haible  <bruno@clisp.org>
16124
16125         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
16126         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
16127         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
16128         (xnboundedmalloc): New inline function.
16129         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
16130         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
16131         xmalloc.
16132         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
16133         xmalloc.
16134         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
16135         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
16136         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
16137         xmalloc.
16138         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
16139         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
16140         xmalloc.
16141         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
16142         gl_tree_add_after): Use XMALLOC instead of xmalloc.
16143         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
16144         xmalloc.
16145         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
16146         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
16147         gl_tree_add_after): Use XMALLOC instead of xmalloc.
16148         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
16149         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
16150         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
16151         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
16152
16153 2006-11-03  Bruno Haible  <bruno@clisp.org>
16154
16155         * lib/c-ctype.h [C++]: Define functions without name mangling.
16156         * lib/fwriteerror.h [C++]: Likewise.
16157         * lib/gcd.h [C++]: Likewise.
16158         * lib/linebreak.h [C++]: Likewise.
16159
16160 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
16161
16162         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
16163         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
16164         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
16165         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
16166         Check for functions and headers just once.
16167         Check for declaration of canonicalize_file_name.
16168         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
16169
16170 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
16171
16172         * gnulib-tool (func_import): Fix typo in actioncmd.
16173
16174 2006-11-02  Bruno Haible  <bruno@clisp.org>
16175
16176         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
16177         newline sequence in the Makefile.am snippet as a space, like "make"
16178         does.
16179         Reported by Roger Persson <perrog@gmail.com>.
16180
16181 2006-11-01  Bruno Haible  <bruno@clisp.org>
16182
16183         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
16184         already declared in <string.h>.
16185         * lib/strcase.h (strncasecmp): Don't declare it if yes.
16186
16187 2006-11-01  Bruno Haible  <bruno@clisp.org>
16188
16189         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
16190         * lib/strcase.h: Include <string.h>.
16191         (strcasecmp): Define to rpl_strcasecmp here.
16192
16193 2006-11-01  Bruno Haible  <bruno@clisp.org>
16194
16195         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
16196
16197 2006-11-01  Eric Blake  <ebb9@byu.net>
16198
16199         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
16200
16201         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
16202
16203 2006-10-29  Bruno Haible  <bruno@clisp.org>
16204
16205         Make it compile in C++ mode.
16206         * lib/full-write.c (full_rw): Add a cast.
16207
16208 2006-11-01  Bruno Haible  <bruno@clisp.org>
16209
16210         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
16211         be POSIX compliant.
16212         Reported by Roger Persson <perrog@gmail.com>.
16213
16214 2006-11-01  Eric Blake  <ebb9@byu.net>
16215
16216         * lib/getopt_.h: Fix comments.
16217
16218 2006-10-31  Eric Blake  <ebb9@byu.net>
16219
16220         * modules/tmpdir (Depends-on): Add sys_stat.
16221         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
16222         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
16223         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
16224         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
16225         tempname.
16226
16227 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
16228
16229         Avoid some C++ diagnostics reported by Bruno Haible.
16230         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
16231         xmalloc.
16232         (quotearg_alloc): Use xcharalloc rather than xmalloc.
16233         (struct slotvec): Move to top level.
16234         (quotearg_n_options): Rewrite to avoid xmalloc.
16235         * lib/xalloc.h (xcharalloc): New function.
16236         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
16237         [defined __cplusplus]: Add function template that provides result
16238         type propagation.  This part of the change is from Bruno Haible.
16239
16240 2006-10-29  Bruno Haible  <bruno@clisp.org>
16241
16242         Make it compile in C++ mode.
16243         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
16244         * lib/strnlen1.c (strnlen1): Cast memchr result.
16245         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
16246         * lib/clean-temp.c (string_equals, string_hash): Add casts.
16247         (create_temp_dir): Rename local variable 'template'.
16248         (compile_csharp_using_sscli): Add cast.
16249         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
16250         * lib/findprog.c (find_in_path): Likewise.
16251         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
16252         * lib/wait-process.c (register_slave_subprocess): Likewise.
16253
16254 2006-10-22  Bruno Haible  <bruno@clisp.org>
16255
16256         * modules/tsearch: New file.
16257         * lib/tsearch.h: New file.
16258         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
16259         * m4/tsearch.m4: New file.
16260         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
16261
16262 2006-10-29  Eric Blake  <ebb9@byu.net>
16263
16264         * lib/arcfour.c: Assume config.h.
16265         * lib/arctwo.c: Likewise.
16266         * lib/base64.c: Likewise.
16267         * lib/check-version.c: Likewise.
16268         * lib/crc.c: Likewise.
16269         * lib/des.c: Likewise.
16270         * lib/gc-gnulib.c: Likewise.
16271         * lib/gc-libgcrypt.c: Likewise.
16272         * lib/gc-pbkdf2-sha1.c: Likewise.
16273         * lib/getaddrinfo.c: Likewise.
16274         * lib/getdelim.c: Likewise.
16275         * lib/getline.c: Likewise.
16276         * lib/hmac-md5.c: Likewise.
16277         * lib/hmac-sha1.c: Likewise.
16278         * lib/iconvme.c: Likewise.
16279         * lib/md2.c: Likewise.
16280         * lib/md4.c: Likewise.
16281         * lib/memxor.c: Likewise.
16282         * lib/read-file.c: Likewise.
16283         * lib/readline.c: Likewise.
16284         * lib/rijndael-alg-fst.c: Likewise.
16285         * lib/rijndael-api-fst.c: Likewise.
16286         * lib/xgetdomainname.c: Likewise.
16287
16288 2006-10-28  Eric Blake  <ebb9@byu.net>
16289
16290         * lib/xstrndup.c: Assume config.h.
16291
16292 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
16293
16294         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
16295         stat-macros.h is now for our own macros, whereas stat_h is for
16296         macros in the <sys/stat.h> name space.
16297         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
16298         (STAT_MACROS_H): Remove.
16299         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
16300         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
16301         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
16302         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
16303         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
16304         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
16305         Move these macros to ...
16306         * lib/stat_.h: here.  Don't include stat-macros.h.
16307         * lib/canonicalize.c: Don't include stat-macros.h.
16308         * lib/chown.c: Likewise.
16309         * lib/euidaccess.c: Likewise.
16310         * lib/file-type.c: Likewise.
16311         * lib/filemode.c: Likewise.
16312         * lib/glob.c: Likewise.
16313         * lib/isapipe.c: Likewise.
16314         * lib/lchown.c: Likewise.
16315         * lib/lstat.c: Likewise.
16316         * lib/mkdir-p.c: Likewise.
16317         * lib/rmdir.c: Likewise.
16318         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
16319         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
16320         unless mkdir isn't declared, to speed up 'configure'.
16321         Always create sys/stat.h, since it's unlikely any real sys/stat.h
16322         would define all the S_* symbols.
16323         * modules/canonicalize (Depends-on):
16324         Depend on sys_stat, not stat-macros.
16325         * modules/chown: Likewise.
16326         * modules/euidaccess: Likewise.
16327         * modules/filemode: Likewise.
16328         * modules/file-type: Likewise.
16329         * modules/glob: Likewise.
16330         * modules/isapipe: Likewise.
16331         * modules/lchown: Likewise.
16332         * modules/lstat: Likewise.
16333         * modules/mkancesdirs: Likewise.
16334         * modules/rmdir: Likewise.
16335         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
16336         * modules/modechange: Likewise.
16337         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
16338         (configure.ac): Remove gl_STAT_MACROS.
16339         * modules/sys_stat (Depends-on): Remove stat-macros.
16340
16341 2006-10-27  Bruno Haible  <bruno@clisp.org>
16342
16343         * m4/signed.m4: Remove file.
16344         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
16345         invocation.
16346         * modules/vasnprintf (Files): Remove m4/signed.m4.
16347
16348 2006-10-27  Bruno Haible  <bruno@clisp.org>
16349
16350         Update to GNU gettext 0.16.
16351         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
16352         m4/inttypes-h.m4, m4/signed.m4.
16353         * m4/gettext.m4: Update to GNU gettext 0.16.
16354         * m4/intl.m4: New file, from GNU gettext.
16355         * m4/intldir.m4: New file, from GNU gettext.
16356         * config/srclist.txt: Update
16357
16358 2006-10-27  Eric Blake  <ebb9@byu.net>
16359
16360         * MODULES.html.sh: Document tempname.
16361         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
16362         dependencies.
16363         (Files): Move lib/tempname.c...
16364         * modules/tempname: ...to this new module.
16365         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
16366         (gl_PREREQ_TEMPNAME): Move...
16367         * m4/tempname.m4: ...to this new file.
16368         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
16369         * modules/sys_stat (Depends-on): Add stat-macros.
16370         * lib/stat_.h (includes): Pick up stat macros.
16371         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
16372         if stat macros are broken.
16373         * lib/tempname.c (includes): No need to include "stat-macros.h".
16374         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
16375         (direxists, __path_search) [!_LIBC]: Don't compile these in
16376         gnulib; the tmpdir module covers that.
16377         * lib/tempname.h: New file.
16378
16379 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
16380
16381         * COPYING: Explain how gnulib-tool converts licence headers.
16382         Almost all wording by Eric Blake.
16383
16384 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
16385
16386         * lib/mbchar.h (is_basic_table): Make read-only.
16387         * lib/mbchar.c (is_basic_table): Likewise.
16388         Reported by John Darrington.
16389
16390 2006-10-25  Bruno Haible  <bruno@clisp.org>
16391
16392         * lib/progname.h (set_program_name): Undefine before defining.
16393
16394 2006-10-25  Bruno Haible  <bruno@clisp.org>
16395
16396         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
16397         false for non-gcc C++ compilers.
16398         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
16399
16400 2006-10-24  Bruno Haible  <bruno@clisp.org>
16401
16402         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
16403         iconv implementations like Irix iconv.
16404
16405 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
16406
16407         * modules/vararrays: New file.
16408         * m4/vararrays.m4: New file, taken from diffutils.
16409         * MODULES.html.sh: New module vararrays.
16410
16411 2006-10-24  Karl Berry  <karl@gnu.org>
16412
16413         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
16414         Don't call GNU Unix.
16415
16416 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16417
16418         * users.txt: Add Libtool.
16419
16420         Sync from Libtool:
16421
16422         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
16423
16424         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
16425         to gnulib's policy of including config.h unconditionally.
16426
16427 2006-10-24  Bruno Haible  <bruno@clisp.org>
16428
16429         * modules/wcwidth (Files): Add m4/wint_t.m4.
16430         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
16431         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
16432
16433 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
16434
16435         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
16436         to pacify GCC with some -W flags enabled.  Problem reported by
16437         Bruno Haible.
16438
16439 2006-10-24  Jim Meyering  <jim@meyering.net>
16440
16441         * MODULES.html.sh: Remove uinttostr.  It's not a module.
16442         Reported by Karl Berry.
16443
16444 2006-10-23  Bruno Haible  <bruno@clisp.org>
16445
16446         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
16447
16448 2006-10-24  Bruno Haible  <bruno@clisp.org>
16449
16450         * lib/gl_list.h: Use C comment style, not C++ comment style.
16451
16452 2006-10-23  Eric Blake  <ebb9@byu.net>
16453
16454         * lib/getaddrinfo.c (includes): Add missing include.
16455
16456 2006-10-23  Bruno Haible  <bruno@clisp.org>
16457             Paul Eggert  <eggert@cs.ucla.edu>
16458
16459         Ability to rename obstack_free.
16460         * lib/obstack.h (__obstack_free): New macro. Declare instead of
16461         obstack_free.
16462         (obstack_free): Invoke the __obstack_free macro.
16463         * lib/obstack.c (obstack_free): Use __obstack_free macro.
16464
16465 2006-10-23  Bruno Haible  <bruno@clisp.org>
16466             Paul Eggert  <eggert@cs.ucla.edu>
16467
16468         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
16469         __argc, __argv from the declaration. (They are defined as macros on
16470         mingw.)
16471
16472 2006-10-22  Bruno Haible  <bruno@clisp.org>
16473
16474         * doc/gnulib-intro.texi: New file.
16475         * doc/gnulib.texi: Include it.
16476
16477 2006-10-21  Bruno Haible  <bruno@clisp.org>
16478
16479         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
16480         "Introduction", "Miscellanous Notes", "Particular Modules".
16481
16482 2006-10-21  Bruno Haible  <bruno@clisp.org>
16483
16484         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
16485         Change mostlyclean-local rule to avoid sh syntax error from bash
16486         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
16487
16488 2006-10-23  Jim Meyering  <jim@meyering.net>
16489
16490         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
16491         in place of snprintf.
16492
16493         * modules/inttostr (Files): Add lib/uinttostr.c.
16494         * lib/uinttostr.c (inttostr): New file/function.
16495         * lib/inttostr.h (uinttostr): Declare.
16496         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
16497         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
16498         Add uinttostr.
16499         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
16500
16501 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
16502
16503         * lib/canonicalize.c (ELOOP): Define if not already defined.
16504         Problem reported by Bruno Haible in
16505         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
16506
16507 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
16508
16509         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
16510         Problem reported by Perry Smith and Ville Laurikari.
16511
16512         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
16513         uses.
16514
16515 2006-10-19  Bruno Haible  <bruno@clisp.org>
16516
16517         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
16518         for mingw.
16519
16520 2006-10-19  Bruno Haible  <bruno@clisp.org>
16521
16522         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
16523         Needed for mingw.
16524
16525 2006-10-19  Bruno Haible  <bruno@clisp.org>
16526
16527         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
16528
16529 2006-10-19  Bruno Haible  <bruno@clisp.org>
16530
16531         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
16532         it.
16533
16534 2006-10-19  Bruno Haible  <bruno@clisp.org>
16535
16536         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
16537         invocation.
16538
16539 2006-10-19  Bruno Haible  <bruno@clisp.org>
16540
16541         * gnulib-tool (func_create_testdir): Don't include ftruncate and
16542         mountlist by default.
16543
16544 2006-10-16  Bruno Haible  <bruno@clisp.org>
16545
16546         * lib/c-strstr.c: Include c-strstr.h.
16547
16548 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
16549
16550         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
16551         in a slash.
16552
16553 2006-10-18  Bruno Haible  <bruno@clisp.org>
16554
16555         * lib/lock.h [C++]: Wrap definitions in extern "C".
16556
16557 2006-10-18  Bruno Haible  <bruno@clisp.org>
16558
16559         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
16560         gl_LIBOBJS list.
16561
16562 2006-10-18  Bruno Haible  <bruno@clisp.org>
16563
16564         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
16565
16566 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
16567
16568         * lib/xstrtol.h: Include gettext.h.
16569         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
16570         Problem reported by Eric Blake.
16571         * modules/xstrtol (Depends-on): Add gettext-h.
16572
16573 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
16574
16575         * lib/strftime.c (advance): New macro.
16576         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
16577         incomplete type, so you can't add 0 to it.  Problem and patch
16578         reported by Eelco Dolstra for dietlibc.
16579
16580 2006-10-18  Jim Meyering  <jim@meyering.net>
16581
16582         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
16583         type for a local, and rename it: s/up/user_proc/.
16584
16585 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
16586
16587         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
16588         READ_UTMP_USER_PROCESS.
16589         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
16590
16591 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
16592
16593         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
16594         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
16595
16596 2006-10-17  Eric Blake  <ebb9@byu.net>
16597
16598         * lib/sigprocmask.c (sigprocmask): Fix typo.
16599
16600         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
16601
16602         * modules/clean-temp (Makefile.am): Don't add to make output...
16603         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
16604         config.h.
16605
16606 2006-10-17  Bruno Haible  <bruno@clisp.org>
16607
16608         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
16609         differently if DEFAULT_TEXT_DOMAIN is set.
16610
16611 2006-10-16  Bruno Haible  <bruno@clisp.org>
16612
16613         * lib/clean-temp.c: Include fwriteerror.h.
16614
16615 2006-10-16  Bruno Haible  <bruno@clisp.org>
16616
16617         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
16618
16619 2006-10-16  Bruno Haible  <bruno@clisp.org>
16620
16621         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
16622         * lib/sigprocmask.h: Include <sys/types.h>.
16623         (sigset_t): Use the system's definition if present.
16624
16625 2006-10-17  Eric Blake  <ebb9@byu.net>
16626
16627         * lib/xvasprintf.c (includes): Assume config.h.
16628         * lib/xasprintf.c (includes): Likewise.
16629
16630 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
16631
16632         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
16633         at least as wide as intmax_t.
16634
16635 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
16636
16637         (Imported from Automake.)
16638         * build-aux/gnupload: Update to version 1.1 of directive file.
16639
16640 2006-10-16  Eric Blake  <ebb9@byu.net>
16641
16642         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
16643         match Automake 1.10a.
16644
16645 2006-10-14  Bruno Haible  <bruno@clisp.org>
16646
16647         * modules/sigprocmask: New file.
16648         * lib/sigprocmask.h: New file.
16649         * lib/sigprocmask.c: New file.
16650         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
16651         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
16652         request sigprocmask.o.
16653         (gl_PREREQ_SIGPROCMASK): New macro.
16654         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
16655         (Depends-on): Add sigprocmask.
16656         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
16657         gt_SIGNALBLOCKING. Test for 'raise' only once.
16658         * lib/fatal-signal.c: Include sigprocmask.h.
16659         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
16660         unblock_fatal_signals): Define always.
16661         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
16662         sigprocmask.
16663
16664 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
16665
16666         Sync from Automake.
16667         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
16668         which incorrectly sets the mode of an existing destination
16669         directory.  In some cases the unpatched install-sh could do the
16670         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
16671         system.  We hope this is rare in practice, but it's clearly worth
16672         fixing.  Problem reported by Alex Unleashed in
16673         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
16674         Also, don't bother to check for -m bugs unless we're using -m;
16675         suggested by Stepan Kasal.
16676
16677 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16678
16679         Sync from Automake.
16680         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
16681         `-c' flag, so they appear at the same position as in %FASTDEP%
16682         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
16683         which ignores unknown options only after the first non-option.
16684         Bug report against M4 by Nelson H. F. Beebe.
16685
16686 2006-10-13  Jim Meyering  <jim@meyering.net>
16687
16688         Fix a bug in yesterday's change.
16689         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
16690         p->fts_statp->st_dev would be used uninitialized.
16691         Ensures that we always call fts_stat on the very first entry.
16692         Miklos Szeredi reported that find -xdev stopped working.
16693
16694 2006-10-12  Bruno Haible  <bruno@clisp.org>
16695
16696         * gnulib-tool (func_get_automake_snippet): Append an automatically
16697         computed EXTRA_DIST augmentation.
16698         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
16699         * modules/alloca-opt (Makefile.am): Likewise.
16700         * modules/allocsa (Makefile.am): Likewise.
16701         * modules/arcfour (Makefile.am): Likewise.
16702         * modules/arctwo (Makefile.am): Likewise.
16703         * modules/argmatch (Makefile.am): Likewise.
16704         * modules/argz (Makefile.am): Likewise.
16705         * modules/atexit (Makefile.am): Likewise.
16706         * modules/backupfile (Makefile.am): Likewise.
16707         * modules/byteswap (Makefile.am): Likewise.
16708         * modules/c-strtod (Makefile.am): Likewise.
16709         * modules/c-strtold (Makefile.am): Likewise.
16710         * modules/calloc (Makefile.am): Likewise.
16711         * modules/canon-host (Makefile.am): Likewise.
16712         * modules/canonicalize (Makefile.am): Likewise.
16713         * modules/chdir-long (Makefile.am): Likewise.
16714         * modules/chdir-safer (Makefile.am): Likewise.
16715         * modules/check-version (Makefile.am): Likewise.
16716         * modules/chown (Makefile.am): Likewise.
16717         * modules/cloexec (Makefile.am): Likewise.
16718         * modules/close-stream (Makefile.am): Likewise.
16719         * modules/closeout (Makefile.am): Likewise.
16720         * modules/crc (Makefile.am): Likewise.
16721         * modules/csharpexec (Makefile.am): Likewise.
16722         * modules/cycle-check (Makefile.am): Likewise.
16723         * modules/des (Makefile.am): Likewise.
16724         * modules/dev-ino (Makefile.am): Likewise.
16725         * modules/dirfd (Makefile.am): Likewise.
16726         * modules/dirname (Makefile.am): Likewise.
16727         * modules/dup2 (Makefile.am): Likewise.
16728         * modules/eealloc (Makefile.am): Likewise.
16729         * modules/error (Makefile.am): Likewise.
16730         * modules/euidaccess (Makefile.am): Likewise.
16731         * modules/exclude (Makefile.am): Likewise.
16732         * modules/exitfail (Makefile.am): Likewise.
16733         * modules/fcntl-safer (Makefile.am): Likewise.
16734         * modules/fcntl (Makefile.am): Likewise.
16735         * modules/file-type (Makefile.am): Likewise.
16736         * modules/fileblocks (Makefile.am): Likewise.
16737         * modules/filemode (Makefile.am): Likewise.
16738         * modules/filenamecat (Makefile.am): Likewise.
16739         * modules/fnmatch (Makefile.am): Likewise.
16740         * modules/fopen-safer (Makefile.am): Likewise.
16741         * modules/fpending (Makefile.am): Likewise.
16742         * modules/fprintftime (Makefile.am): Likewise.
16743         * modules/free (Makefile.am): Likewise.
16744         * modules/fsusage (Makefile.am): Likewise.
16745         * modules/ftruncate (Makefile.am): Likewise.
16746         * modules/fts (Makefile.am): Likewise.
16747         * modules/gc-arcfour (Makefile.am): Likewise.
16748         * modules/gc-des (Makefile.am): Likewise.
16749         * modules/gc-hmac-md5 (Makefile.am): Likewise.
16750         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
16751         * modules/gc-md4 (Makefile.am): Likewise.
16752         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
16753         * modules/gc-sha1 (Makefile.am): Likewise.
16754         * modules/gc (Makefile.am): Likewise.
16755         * modules/getaddrinfo (Makefile.am): Likewise.
16756         * modules/getcwd (Makefile.am): Likewise.
16757         * modules/getdelim (Makefile.am): Likewise.
16758         * modules/getdomainname (Makefile.am): Likewise.
16759         * modules/getgroups (Makefile.am): Likewise.
16760         * modules/gethostname (Makefile.am): Likewise.
16761         * modules/gethrxtime (Makefile.am): Likewise.
16762         * modules/getline (Makefile.am): Likewise.
16763         * modules/getloadavg (Makefile.am): Likewise.
16764         * modules/getlogin_r (Makefile.am): Likewise.
16765         * modules/getndelim2 (Makefile.am): Likewise.
16766         * modules/getopt (Makefile.am): Likewise.
16767         * modules/getpagesize (Makefile.am): Likewise.
16768         * modules/getpass-gnu (Makefile.am): Likewise.
16769         * modules/getpass (Makefile.am): Likewise.
16770         * modules/getsubopt (Makefile.am): Likewise.
16771         * modules/gettime (Makefile.am): Likewise.
16772         * modules/gettimeofday (Makefile.am): Likewise.
16773         * modules/getugroups (Makefile.am): Likewise.
16774         * modules/getusershell (Makefile.am): Likewise.
16775         * modules/glob (Makefile.am): Likewise.
16776         * modules/group-member (Makefile.am): Likewise.
16777         * modules/hard-locale (Makefile.am): Likewise.
16778         * modules/hash (Makefile.am): Likewise.
16779         * modules/hmac-md5 (Makefile.am): Likewise.
16780         * modules/hmac-sha1 (Makefile.am): Likewise.
16781         * modules/human (Makefile.am): Likewise.
16782         * modules/idcache (Makefile.am): Likewise.
16783         * modules/imaxabs (Makefile.am): Likewise.
16784         * modules/imaxdiv (Makefile.am): Likewise.
16785         * modules/inet_ntop (Makefile.am): Likewise.
16786         * modules/inet_pton (Makefile.am): Likewise.
16787         * modules/intprops (Makefile.am): Likewise.
16788         * modules/inttostr (Makefile.am): Likewise.
16789         * modules/inttypes (Makefile.am): Likewise.
16790         * modules/isapipe (Makefile.am): Likewise.
16791         * modules/javaversion (Makefile.am): Likewise.
16792         * modules/lchmod (Makefile.am): Likewise.
16793         * modules/lchown (Makefile.am): Likewise.
16794         * modules/localcharset (Makefile.am): Likewise.
16795         * modules/long-options (Makefile.am): Likewise.
16796         * modules/lstat (Makefile.am): Likewise.
16797         * modules/malloc (Makefile.am): Likewise.
16798         * modules/mathl (Makefile.am): Likewise.
16799         * modules/mbchar (Makefile.am): Likewise.
16800         * modules/md2 (Makefile.am): Likewise.
16801         * modules/md4 (Makefile.am): Likewise.
16802         * modules/md5 (Makefile.am): Likewise.
16803         * modules/memcasecmp (Makefile.am): Likewise.
16804         * modules/memchr (Makefile.am): Likewise.
16805         * modules/memcmp (Makefile.am): Likewise.
16806         * modules/memcoll (Makefile.am): Likewise.
16807         * modules/memcpy (Makefile.am): Likewise.
16808         * modules/memmem (Makefile.am): Likewise.
16809         * modules/memmove (Makefile.am): Likewise.
16810         * modules/mempcpy (Makefile.am): Likewise.
16811         * modules/memrchr (Makefile.am): Likewise.
16812         * modules/memset (Makefile.am): Likewise.
16813         * modules/memxor (Makefile.am): Likewise.
16814         * modules/mkancesdirs (Makefile.am): Likewise.
16815         * modules/mkdir-p (Makefile.am): Likewise.
16816         * modules/mkdir (Makefile.am): Likewise.
16817         * modules/mkdtemp (Makefile.am): Likewise.
16818         * modules/mkstemp (Makefile.am): Likewise.
16819         * modules/mktime (Makefile.am): Likewise.
16820         * modules/modechange (Makefile.am): Likewise.
16821         * modules/mountlist (Makefile.am): Likewise.
16822         * modules/nanosleep (Makefile.am): Likewise.
16823         * modules/obstack (Makefile.am): Likewise.
16824         * modules/openat (Makefile.am): Likewise.
16825         * modules/pagealign_alloc (Makefile.am): Likewise.
16826         * modules/pathmax (Makefile.am): Likewise.
16827         * modules/physmem (Makefile.am): Likewise.
16828         * modules/poll (Makefile.am): Likewise.
16829         * modules/posixtm (Makefile.am): Likewise.
16830         * modules/posixver (Makefile.am): Likewise.
16831         * modules/putenv (Makefile.am): Likewise.
16832         * modules/quote (Makefile.am): Likewise.
16833         * modules/quotearg (Makefile.am): Likewise.
16834         * modules/raise (Makefile.am): Likewise.
16835         * modules/read-file (Makefile.am): Likewise.
16836         * modules/readline (Makefile.am): Likewise.
16837         * modules/readlink (Makefile.am): Likewise.
16838         * modules/readtokens (Makefile.am): Likewise.
16839         * modules/readutmp (Makefile.am): Likewise.
16840         * modules/realloc (Makefile.am): Likewise.
16841         * modules/regex (Makefile.am): Likewise.
16842         * modules/rename-dest-slash (Makefile.am): Likewise.
16843         * modules/rename (Makefile.am): Likewise.
16844         * modules/rijndael (Makefile.am): Likewise.
16845         * modules/rmdir (Makefile.am): Likewise.
16846         * modules/rpmatch (Makefile.am): Likewise.
16847         * modules/safe-read (Makefile.am): Likewise.
16848         * modules/safe-write (Makefile.am): Likewise.
16849         * modules/same-inode (Makefile.am): Likewise.
16850         * modules/same (Makefile.am): Likewise.
16851         * modules/save-cwd (Makefile.am): Likewise.
16852         * modules/savedir (Makefile.am): Likewise.
16853         * modules/setenv (Makefile.am): Likewise.
16854         * modules/settime (Makefile.am): Likewise.
16855         * modules/sha1 (Makefile.am): Likewise.
16856         * modules/sig2str (Makefile.am): Likewise.
16857         * modules/snprintf (Makefile.am): Likewise.
16858         * modules/stat-macros (Makefile.am): Likewise.
16859         * modules/stat-time (Makefile.am): Likewise.
16860         * modules/stdbool (Makefile.am): Likewise.
16861         * modules/stdint (Makefile.am): Likewise.
16862         * modules/stdlib-safer (Makefile.am): Likewise.
16863         * modules/stpcpy (Makefile.am): Likewise.
16864         * modules/stpncpy (Makefile.am): Likewise.
16865         * modules/strcase (Makefile.am): Likewise.
16866         * modules/strcasestr (Makefile.am): Likewise.
16867         * modules/strchrnul (Makefile.am): Likewise.
16868         * modules/strcspn (Makefile.am): Likewise.
16869         * modules/strdup (Makefile.am): Likewise.
16870         * modules/strerror (Makefile.am): Likewise.
16871         * modules/strftime (Makefile.am): Likewise.
16872         * modules/strndup (Makefile.am): Likewise.
16873         * modules/strnlen (Makefile.am): Likewise.
16874         * modules/strpbrk (Makefile.am): Likewise.
16875         * modules/strsep (Makefile.am): Likewise.
16876         * modules/strstr (Makefile.am): Likewise.
16877         * modules/strtod (Makefile.am): Likewise.
16878         * modules/strtoimax (Makefile.am): Likewise.
16879         * modules/strtok_r (Makefile.am): Likewise.
16880         * modules/strtol (Makefile.am): Likewise.
16881         * modules/strtoll (Makefile.am): Likewise.
16882         * modules/strtoul (Makefile.am): Likewise.
16883         * modules/strtoull (Makefile.am): Likewise.
16884         * modules/strtoumax (Makefile.am): Likewise.
16885         * modules/strverscmp (Makefile.am): Likewise.
16886         * modules/sys_socket (Makefile.am): Likewise.
16887         * modules/sys_stat (Makefile.am): Likewise.
16888         * modules/sysexits (Makefile.am): Likewise.
16889         * modules/time_r (Makefile.am): Likewise.
16890         * modules/timegm (Makefile.am): Likewise.
16891         * modules/timespec (Makefile.am): Likewise.
16892         * modules/tmpfile-safer (Makefile.am): Likewise.
16893         * modules/trim (Makefile.am): Likewise.
16894         * modules/unistd-safer (Makefile.am): Likewise.
16895         * modules/unlinkdir (Makefile.am): Likewise.
16896         * modules/unlocked-io (Makefile.am): Likewise.
16897         * modules/userspec (Makefile.am): Likewise.
16898         * modules/utime (Makefile.am): Likewise.
16899         * modules/utimecmp (Makefile.am): Likewise.
16900         * modules/utimens (Makefile.am): Likewise.
16901         * modules/vasnprintf (Makefile.am): Likewise.
16902         * modules/vasprintf (Makefile.am): Likewise.
16903         * modules/vsnprintf (Makefile.am): Likewise.
16904         * modules/xalloc (Makefile.am): Likewise.
16905         * modules/xgetcwd (Makefile.am): Likewise.
16906         * modules/xnanosleep (Makefile.am): Likewise.
16907         * modules/xreadlink (Makefile.am): Likewise.
16908         * modules/xstrtod (Makefile.am): Likewise.
16909         * modules/xstrtol (Makefile.am): Likewise.
16910         * modules/xstrtold (Makefile.am): Likewise.
16911         * modules/yesno (Makefile.am): Likewise.
16912         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
16913
16914 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
16915
16916         * modules/error (Makefile.am): Distribute files through
16917         EXTRA_DIST, not lib_SOURCES.
16918
16919 2006-10-12  Eric Blake  <ebb9@byu.net>
16920
16921         * modules/error (Makefile.am): Distribute files in /lib.
16922         * modules/obstack (Makefile.am): Likewise.
16923
16924 2006-10-12  Bruno Haible  <bruno@clisp.org>
16925
16926         * modules/acl (Makefile.am): Distribute all files in lib/ through
16927         EXTRA_DIST.
16928         * modules/arcfour (Makefile.am): Likewise.
16929         * modules/arctwo (Makefile.am): Likewise.
16930         * modules/argmatch (Makefile.am): Likewise.
16931         * modules/argz (Makefile.am): Likewise.
16932         * modules/atexit (Makefile.am): Likewise.
16933         * modules/backupfile (Makefile.am): Likewise.
16934         * modules/c-strtod (Makefile.am): Likewise.
16935         * modules/c-strtold (Makefile.am): Likewise.
16936         * modules/calloc (Makefile.am): Likewise.
16937         * modules/canon-host (Makefile.am): Likewise.
16938         * modules/canonicalize (Makefile.am): Likewise.
16939         * modules/chdir-long (Makefile.am): Likewise.
16940         * modules/chdir-safer (Makefile.am): Likewise.
16941         * modules/check-version (Makefile.am): Likewise.
16942         * modules/chown (Makefile.am): Likewise.
16943         * modules/cloexec (Makefile.am): Likewise.
16944         * modules/close-stream (Makefile.am): Likewise.
16945         * modules/closeout (Makefile.am): Likewise.
16946         * modules/crc (Makefile.am): Likewise.
16947         * modules/cycle-check (Makefile.am): Likewise.
16948         * modules/des (Makefile.am): Likewise.
16949         * modules/dirfd (Makefile.am): Likewise.
16950         * modules/dirname (Makefile.am): Likewise.
16951         * modules/dup2 (Makefile.am): Likewise.
16952         * modules/euidaccess (Makefile.am): Likewise.
16953         * modules/exclude (Makefile.am): Likewise.
16954         * modules/exitfail (Makefile.am): Likewise.
16955         * modules/fcntl-safer (Makefile.am): Likewise.
16956         * modules/file-type (Makefile.am): Likewise.
16957         * modules/fileblocks (Makefile.am): Likewise.
16958         * modules/filemode (Makefile.am): Likewise.
16959         * modules/filenamecat (Makefile.am): Likewise.
16960         * modules/fnmatch (Makefile.am): Likewise.
16961         * modules/fopen-safer (Makefile.am): Likewise.
16962         * modules/fpending (Makefile.am): Likewise.
16963         * modules/fprintftime (Makefile.am): Likewise.
16964         * modules/free (Makefile.am): Likewise.
16965         * modules/fsusage (Makefile.am): Likewise.
16966         * modules/ftruncate (Makefile.am): Likewise.
16967         * modules/fts (Makefile.am): Likewise.
16968         * modules/gc (Makefile.am): Likewise.
16969         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
16970         * modules/getaddrinfo (Makefile.am): Likewise.
16971         * modules/getcwd (Makefile.am): Likewise.
16972         * modules/getdelim (Makefile.am): Likewise.
16973         * modules/getdomainname (Makefile.am): Likewise.
16974         * modules/getgroups (Makefile.am): Likewise.
16975         * modules/gethostname (Makefile.am): Likewise.
16976         * modules/gethrxtime (Makefile.am): Likewise.
16977         * modules/getline (Makefile.am): Likewise.
16978         * modules/getloadavg (Makefile.am): Likewise.
16979         * modules/getlogin_r (Makefile.am): Likewise.
16980         * modules/getopt (Makefile.am): Likewise.
16981         * modules/getpass (Makefile.am): Likewise.
16982         * modules/getpass-gnu (Makefile.am): Likewise.
16983         * modules/getsubopt (Makefile.am): Likewise.
16984         * modules/gettime (Makefile.am): Likewise.
16985         * modules/gettimeofday (Makefile.am): Likewise.
16986         * modules/getugroups (Makefile.am): Likewise.
16987         * modules/getusershell (Makefile.am): Likewise.
16988         * modules/glob (Makefile.am): Likewise.
16989         * modules/group-member (Makefile.am): Likewise.
16990         * modules/hard-locale (Makefile.am): Likewise.
16991         * modules/hash (Makefile.am): Likewise.
16992         * modules/hmac-md5 (Makefile.am): Likewise.
16993         * modules/hmac-sha1 (Makefile.am): Likewise.
16994         * modules/human (Makefile.am): Likewise.
16995         * modules/idcache (Makefile.am): Likewise.
16996         * modules/imaxabs (Makefile.am): Likewise.
16997         * modules/imaxdiv (Makefile.am): Likewise.
16998         * modules/inet_ntop (Makefile.am): Likewise.
16999         * modules/inet_pton (Makefile.am): Likewise.
17000         * modules/inttostr (Makefile.am): Likewise.
17001         * modules/isapipe (Makefile.am): Likewise.
17002         * modules/lchown (Makefile.am): Likewise.
17003         * modules/long-options (Makefile.am): Likewise.
17004         * modules/lstat (Makefile.am): Likewise.
17005         * modules/malloc (Makefile.am): Likewise.
17006         * modules/mathl (Makefile.am): Likewise.
17007         * modules/mbchar (Makefile.am): Likewise.
17008         * modules/md2 (Makefile.am): Likewise.
17009         * modules/md4 (Makefile.am): Likewise.
17010         * modules/md5 (Makefile.am): Likewise.
17011         * modules/memcasecmp (Makefile.am): Likewise.
17012         * modules/memchr (Makefile.am): Likewise.
17013         * modules/memcmp (Makefile.am): Likewise.
17014         * modules/memcoll (Makefile.am): Likewise.
17015         * modules/memcpy (Makefile.am): Likewise.
17016         * modules/memmem (Makefile.am): Likewise.
17017         * modules/memmove (Makefile.am): Likewise.
17018         * modules/mempcpy (Makefile.am): Likewise.
17019         * modules/memrchr (Makefile.am): Likewise.
17020         * modules/memset (Makefile.am): Likewise.
17021         * modules/memxor (Makefile.am): Likewise.
17022         * modules/mkancesdirs (Makefile.am): Likewise.
17023         * modules/mkdir (Makefile.am): Likewise.
17024         * modules/mkdir-p (Makefile.am): Likewise.
17025         * modules/mkdtemp (Makefile.am): Likewise.
17026         * modules/mkstemp (Makefile.am): Likewise.
17027         * modules/mktime (Makefile.am): Likewise.
17028         * modules/modechange (Makefile.am): Likewise.
17029         * modules/mountlist (Makefile.am): Likewise.
17030         * modules/nanosleep (Makefile.am): Likewise.
17031         * modules/openat (Makefile.am): Likewise.
17032         * modules/pagealign_alloc (Makefile.am): Likewise.
17033         * modules/physmem (Makefile.am): Likewise.
17034         * modules/poll (Makefile.am): Likewise.
17035         * modules/posixtm (Makefile.am): Likewise.
17036         * modules/posixver (Makefile.am): Likewise.
17037         * modules/putenv (Makefile.am): Likewise.
17038         * modules/quote (Makefile.am): Likewise.
17039         * modules/quotearg (Makefile.am): Likewise.
17040         * modules/raise (Makefile.am): Likewise.
17041         * modules/read-file (Makefile.am): Likewise.
17042         * modules/readline (Makefile.am): Likewise.
17043         * modules/readlink (Makefile.am): Likewise.
17044         * modules/readtokens (Makefile.am): Likewise.
17045         * modules/readutmp (Makefile.am): Likewise.
17046         * modules/realloc (Makefile.am): Likewise.
17047         * modules/regex (Makefile.am): Likewise.
17048         * modules/rename (Makefile.am): Likewise.
17049         * modules/rename-dest-slash (Makefile.am): Likewise.
17050         * modules/rijndael (Makefile.am): Likewise.
17051         * modules/rmdir (Makefile.am): Likewise.
17052         * modules/rpmatch (Makefile.am): Likewise.
17053         * modules/safe-read (Makefile.am): Likewise.
17054         * modules/safe-write (Makefile.am): Likewise.
17055         * modules/same (Makefile.am): Likewise.
17056         * modules/save-cwd (Makefile.am): Likewise.
17057         * modules/savedir (Makefile.am): Likewise.
17058         * modules/setenv (Makefile.am): Likewise.
17059         * modules/settime (Makefile.am): Likewise.
17060         * modules/sha1 (Makefile.am): Likewise.
17061         * modules/sig2str (Makefile.am): Likewise.
17062         * modules/snprintf (Makefile.am): Likewise.
17063         * modules/stdlib-safer (Makefile.am): Likewise.
17064         * modules/stpcpy (Makefile.am): Likewise.
17065         * modules/stpncpy (Makefile.am): Likewise.
17066         * modules/strcase (Makefile.am): Likewise.
17067         * modules/strcasestr (Makefile.am): Likewise.
17068         * modules/strchrnul (Makefile.am): Likewise.
17069         * modules/strcspn (Makefile.am): Likewise.
17070         * modules/strdup (Makefile.am): Likewise.
17071         * modules/strerror (Makefile.am): Likewise.
17072         * modules/strftime (Makefile.am): Likewise.
17073         * modules/strndup (Makefile.am): Likewise.
17074         * modules/strnlen (Makefile.am): Likewise.
17075         * modules/strpbrk (Makefile.am): Likewise.
17076         * modules/strsep (Makefile.am): Likewise.
17077         * modules/strstr (Makefile.am): Likewise.
17078         * modules/strtod (Makefile.am): Likewise.
17079         * modules/strtoimax (Makefile.am): Likewise.
17080         * modules/strtok_r (Makefile.am): Likewise.
17081         * modules/strtol (Makefile.am): Likewise.
17082         * modules/strtoll (Makefile.am): Likewise.
17083         * modules/strtoul (Makefile.am): Likewise.
17084         * modules/strtoull (Makefile.am): Likewise.
17085         * modules/strtoumax (Makefile.am): Likewise.
17086         * modules/strverscmp (Makefile.am): Likewise.
17087         * modules/time_r (Makefile.am): Likewise.
17088         * modules/timegm (Makefile.am): Likewise.
17089         * modules/tmpfile-safer (Makefile.am): Likewise.
17090         * modules/unistd-safer (Makefile.am): Likewise.
17091         * modules/unlinkdir (Makefile.am): Likewise.
17092         * modules/userspec (Makefile.am): Likewise.
17093         * modules/utime (Makefile.am): Likewise.
17094         * modules/utimecmp (Makefile.am): Likewise.
17095         * modules/utimens (Makefile.am): Likewise.
17096         * modules/vasnprintf (Makefile.am): Likewise.
17097         * modules/vasprintf (Makefile.am): Likewise.
17098         * modules/vsnprintf (Makefile.am): Likewise.
17099         * modules/xalloc (Makefile.am): Likewise.
17100         * modules/xgetcwd (Makefile.am): Likewise.
17101         * modules/xnanosleep (Makefile.am): Likewise.
17102         * modules/xreadlink (Makefile.am): Likewise.
17103         * modules/xstrtod (Makefile.am): Likewise.
17104         * modules/xstrtol (Makefile.am): Likewise.
17105         * modules/xstrtold (Makefile.am): Likewise.
17106         * modules/yesno (Makefile.am): Likewise.
17107
17108 2006-10-12  Jim Meyering  <jim@meyering.net>
17109
17110         * m4/getloadavg.m4: Revert the change below.
17111
17112         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
17113         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
17114         fail with a symlink, which is what coreutils' ./bootstrap now
17115         creates by default.
17116
17117 2006-10-12  Bruno Haible  <bruno@clisp.org>
17118
17119         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
17120         mingw.
17121         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
17122         MSVC and mingw explicitly.
17123
17124 2006-10-11  Simon Josefsson  <jas@extundo.com>
17125             Bruno Haible  <bruno@clisp.org>
17126
17127         Add support for multiple gnulib-tool invocations in the scope of a
17128         single configure.ac file.
17129         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
17130         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
17131         with the same contents as the _LIBADD variable.
17132         (func_emit_initmacro_start, func_emit_initmacro_end,
17133         func_emit_initmacro_done): New functions.
17134         (func_import, func_create_testdir): Invoke them. Allow the identifiers
17135         gl_LIBOBJS and gl_LTLIBOBJS.
17136
17137 2006-10-11  Bruno Haible  <bruno@clisp.org>
17138
17139         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
17140         (func_create_testdir): Don't create po/Makefile.am, don't invoke
17141         autoreconf. Instead, invoke autopoint explicitly but move back the
17142         *.m4 files from gnulib.
17143
17144 2006-10-11  Bruno Haible  <bruno@clisp.org>
17145
17146         * gnulib-tool (func_usage): Make module names after --create-testdir
17147         optional.
17148         (func_create_testdir): If no module was specified, use nearly all
17149         modules.
17150
17151 2006-10-12  Jim Meyering  <jim@meyering.net>
17152
17153         Big performance improvement for fts-based tools that use FTS_NOSTAT.
17154         Avoid spurious inode-mismatch problems on non-POSIX file systems.
17155         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
17156         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
17157         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
17158         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
17159         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
17160         (fts_set_stat_required): New function.
17161         (fts_open): Defer the calls to fts_stat, if possible or requested.
17162         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
17163         into fts_stat itself.
17164         (fts_read): Perform any required (deferred) fts_stat call.
17165         (fts_build): Likewise, for the directory we're about to open and read.
17166         In the readdir loop, carefully decide whether each entry will require
17167         an eventual call to fts_stat, using dirent.d_type info if available.
17168         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
17169         a command line argument into this function.  Update all callers.
17170         Map a return value of FTS_DOT to FTS_D for a command line argument.
17171         * modules/fts (Depends-on): Add d-type.  Alphabetize.
17172         Thanks to Miklos Szeredi for his tenacity and for the initial
17173         bug report about "find" failing on a FUSE-based file system.
17174
17175         * lib/fts.c (fts_open): Use consistent indentation.
17176
17177 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
17178
17179         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
17180         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
17181         reported by Jim Meyering.  All uses of cache variables renamed
17182         to match Autoconf's.
17183         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
17184         the other one.
17185
17186         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
17187         Fix misspelling in diagnostic.
17188
17189 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
17190
17191         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
17192         defined.  Problem reported by Matthew Woehlke.
17193
17194         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
17195         Add support for Tandem NonStop R series.
17196         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
17197         Use new macro.
17198
17199         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
17200         (has_trailing_slash): Omit size arg; all callers changed.
17201         Omit 'inline', since it doesn't help performance and we'd
17202         need to configure it.
17203         Don't count //, ///, etc. as having a trailing slash.
17204         As a side effect, this removes a C99ism reported by Matthew Woehlke.
17205         (rpl_rename_dest_slash): On failure, use rename's errno rather
17206         than (in some cases) an incorrect or junk errno.
17207         Simplify code by removing need to compute length; this does
17208         cause it to make two passes instead of one over the file name,
17209         but it's worth it.
17210
17211         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
17212         change, since Autoconf's version may no longer be appropriate now
17213         that we are using CVS Autoconf's version.  Add support for Tandem.
17214
17215 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
17216             Bruno Haible  <bruno@clisp.org>
17217
17218         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
17219         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
17220         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
17221         gl_AC_TYPE_LONG_LONG.
17222
17223         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
17224         instead of HAVE_LONG_LONG.
17225         * lib/printf-args.c (printf_fetchargs): Likewise.
17226         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
17227         * lib/vasnprintf.c (VASNPRINTF): Likewise.
17228         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
17229         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
17230         gl_AC_TYPE_LONG_LONG.
17231
17232 2006-10-11  Bruno Haible  <bruno@clisp.org>
17233
17234         * m4/longlong.m4: Add comments.
17235         * m4/ulonglong.m4: Likewise.
17236
17237 2006-10-10  Bruno Haible  <bruno@clisp.org>
17238
17239         Make it possible to #define stpcpy, strdup to aliases.
17240         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
17241         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
17242
17243 2006-10-10  Bruno Haible  <bruno@clisp.org>
17244
17245         Make it possible to #define gcd to an alias.
17246         * lib/gcd.c: Include config.h.
17247
17248 2006-10-10  Bruno Haible  <bruno@clisp.org>
17249
17250         Make it possible to #define c_isascii to an alias.
17251         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
17252         defined. Undefine the macros before defining them, to avoid gcc
17253         warnings.
17254         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
17255         define NO_C_CTYPE_MACROS early.
17256
17257 2006-10-10  Bruno Haible  <bruno@clisp.org>
17258
17259         Make it possible to #define set_program_name to an alias.
17260         * lib/progname.c: Don't undefine set_program_name; instead, undefine
17261         ENABLE_RELOCATABLE early.
17262
17263 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
17264
17265         Port to Tandem NSK OSS, which has 64-bit signed int but at most
17266         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
17267         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
17268         More generally, don't assume that 64-bit signed int is available
17269         if unsigned int is, and vice versa.
17270         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
17271         unsigned symbols, not on their signed counterparts.
17272         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
17273         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
17274         (UINT64_C, UINTMAX_C):
17275         Likewise.
17276         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
17277         unsigned counterparts.
17278         (Have_long_long, Unsigned): New macros.
17279         (Int): Renamed from INT.
17280         (strtoimax): Use the new macros.
17281         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
17282         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
17283         * modules/inttypes (inttypes.h): Substitute
17284         HAVE_UNSIGNED_LONG_LONG_INT.
17285         * modules/stdint (stdint.h): Likewise.
17286         (Files): Add m4/ulonglong.m4.
17287
17288 2006-10-10  Bruno Haible  <bruno@clisp.org>
17289
17290         Fix a gcc -Wshadow warning.
17291         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
17292         to 'bucket'.
17293         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
17294         gl_linked_indexof_from_to): Likewise.
17295         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
17296         Likewise.
17297         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
17298         Likewise.
17299         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
17300         Reported by Eric Blake.
17301
17302 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
17303
17304         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
17305         for NetBSD.  Problem reported by Bruno Haible.
17306
17307 2006-10-09  Jim Meyering  <jim@meyering.net>
17308
17309         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
17310         Patch from Bruno Haible.
17311
17312 2006-10-09  Jim Meyering  <jim@meyering.net>
17313
17314         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
17315         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
17316         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
17317
17318 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
17319
17320         Don't include <config.h> twice; this doesn't work in some cases,
17321         e.g., when config.h has "#define intmax_t long long int" and
17322         we include <config.h>, <inttypes.h>, <config.h> in that order.
17323         Problem reported by Matthew Woehlke in:
17324         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
17325         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
17326         * lib/fts-cycle.c: Don't include config.h.
17327         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
17328         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
17329         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
17330         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
17331         inttypes.h.
17332         * lib/xstrtoumax.c: Likewise.
17333         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
17334         __strtol and the like, so that this module is more like its siblings.
17335         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
17336         Remove; no longer needed now that we assume gnulib inttypes.h.
17337
17338 2006-10-08  Bruno Haible  <bruno@clisp.org>
17339
17340         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
17341         option.
17342
17343 2006-10-07  Jim Meyering  <jim@meyering.net>
17344
17345         * modules/inttypes (inttypes.h): Revert what seems to have been
17346         an inadvertent part of today's change: use "|", not "/" in the
17347         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
17348
17349 2006-10-07  Bruno Haible  <bruno@clisp.org>
17350
17351         * modules/sublist: New file.
17352
17353 2006-10-07  Bruno Haible  <bruno@clisp.org>
17354
17355         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
17356         * modules/argz (argz.h): Likewise.
17357         * modules/arpa_inet (arpa/inet.h): Likewise.
17358         * modules/byteswap (byteswap.h): Likewise.
17359         * modules/configmake (configmake.h): Likewise.
17360         * modules/fcntl (fcntl.h): Likewise.
17361         * modules/fnmatch (fnmatch.h): Likewise.
17362         * modules/getopt (getopt.h): Likewise.
17363         * modules/glob (glob.h): Likewise.
17364         * modules/inttypes (inttypes.h): Likewise.
17365         * modules/netinet_in (netinet/in.h): Likewise.
17366         * modules/poll (poll.h): Likewise.
17367         * modules/stdbool (stdbool.h): Likewise.
17368         * modules/stdint (stdint.h): Likewise.
17369         * modules/sys_select (sys/select.h): Likewise.
17370         * modules/sys_socket (sys/socket.h): Likewise.
17371         * modules/sys_stat (sys/stat.h): Likewise.
17372         * modules/sysexits (sysexits.h): Likewise.
17373         * modules/unistd (unistd.h): Likewise.
17374         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
17375         Add a "DO NOT EDIT" comment to the generated file.
17376         (func_import): Likewise for gnulib-comp.m4.
17377
17378 2006-10-07  Bruno Haible  <bruno@clisp.org>
17379
17380         * lib/gl_sublist.h: New file.
17381         * lib/gl_sublist.c: New file.
17382
17383 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
17384
17385         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
17386         name (relative to the original working directory) and the file
17387         name component (relative to the temporary working directory).  All
17388         callers changed.
17389         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
17390         * lib/mkdir-p.c (make_dir_parents): Likewise.
17391         * lib/mkdir-p.h (make_dir_parents): Likewise.
17392
17393 2006-10-06  Eric Blake  <ebb9@byu.net>
17394
17395         Define several macros for use by the clean-temp module.
17396         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
17397         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
17398         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
17399
17400         * lib/clean-temp.h (close_stream_temp): New declaration.
17401         * lib/clean-temp.c (includes): Pull in headers according to what
17402         other modules are in use.
17403         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
17404
17405 2006-10-06  Bruno Haible  <bruno@clisp.org>
17406
17407         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
17408         instead of fopen, fwriteerror.
17409
17410 2006-10-06  Bruno Haible  <bruno@clisp.org>
17411
17412         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
17413         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
17414         int.
17415         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
17416         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
17417         Return an error indicator.
17418         Suggested by Eric Blake.
17419
17420 2006-10-06  Bruno Haible  <bruno@clisp.org>
17421
17422         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
17423         Reported by Eric Blake.
17424
17425 2006-10-06  Bruno Haible  <bruno@clisp.org>
17426
17427         * modules/closeout (Description): Mention stderr too.
17428
17429 2006-10-06  Bruno Haible  <bruno@clisp.org>
17430         and Paul Eggert  <eggert@cs.ucla.edu>
17431
17432         * lib/closeout.c (close_stdout): Also close stderr.
17433         * lib/closeout.h: Update comment.
17434
17435 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
17436
17437         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
17438         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
17439         * lib/dirchownmod.c: Include lchown.h.
17440         * lib/lchown.c: Don't include files that lchown.h now includes.
17441         Don't declare chown, since lchown.h now does that.
17442         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
17443         (lchown): Define to rpl_chown if lchown is declared but
17444         does not exist.  Declare using a prototype if lchown is not
17445         declared.  Add a copyright notice.
17446         * lib/mkstemp.h: Include <unistd.h>.
17447         * lib/openat.c: Include lchown.h.
17448
17449         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
17450         we now test for that separately.
17451         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
17452         rather than O_NOFOLLOW, when testing whether it's possible to
17453         avoid a race condition reliably.
17454         * lib/savewd.c (savewd_chdir): Likewise.
17455
17456         Remove macros that are no longer needed now that stdint.h is
17457         reliable.
17458         * lib/fsusage.c (UINTMAX_MAX): Remove.
17459         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
17460         * lib/utimecmp.c (SIZE_MAX): Remove.
17461
17462         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
17463
17464         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
17465         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
17466         O_NOATIME works.
17467
17468 2006-10-05  Bruno Haible  <bruno@clisp.org>
17469
17470         * lib/gl_list.h (gl_sortedlist_search_from_to,
17471         gl_sortedlist_indexof_from_to): New declarations.
17472         (gl_list_implementation): New fields sortedlist_search_from_to,
17473         sortedlist_indexof_from_to.
17474         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
17475         inline functions.
17476         * lib/gl_list.c (gl_sortedlist_search_from_to,
17477         gl_sortedlist_indexof_from_to): New functions.
17478         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
17479         function.
17480         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
17481         (gl_array_sortedlist_search_from_to): New function.
17482         (gl_array_list_implementation): Update.
17483         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
17484         function.
17485         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
17486         (gl_carray_sortedlist_search_from_to): New function.
17487         (gl_carray_list_implementation): Update.
17488         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
17489         gl_linked_sortedlist_indexof_from_to): New functions.
17490         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
17491         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
17492         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
17493         gl_tree_sortedlist_indexof_from_to): New functions.
17494         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
17495         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
17496         Update.
17497         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
17498         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
17499         Update.
17500
17501 2006-10-05  Bruno Haible  <bruno@clisp.org>
17502
17503         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
17504         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
17505         (struct gl_list_implementation): Add fields search_from_to,
17506         indexof_from_to. Remove fields search, indexof.
17507         (gl_list_search): Use the search_from_to method.
17508         (gl_list_search_from, gl_list_search_from_to): New functions.
17509         (gl_list_indexof): Use the indexof_from_to method.
17510         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
17511         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
17512         (gl_list_search_from, gl_list_search_from_to): New functions.
17513         (gl_list_indexof): Use the indexof_from_to method.
17514         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
17515         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
17516         gl_array_indexof. Add start_index, end_index arguments.
17517         (gl_array_search_from_to): Renamed from gl_array_search. Add
17518         start_index, end_index arguments.
17519         (gl_array_remove, gl_array_list_implementation): Update.
17520         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
17521         gl_carray_indexof. Add start_index, end_index arguments.
17522         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
17523         start_index, end_index arguments.
17524         (gl_carray_remove, gl_carray_list_implementation): Update.
17525         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
17526         gl_linked_search. Add start_index, end_index arguments.
17527         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
17528         start_index, end_index arguments.
17529         (gl_linked_remove): Update.
17530         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
17531         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
17532         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
17533         field to 'size_t'.
17534         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
17535         gl_tree_search. Add start_index, end_index arguments.
17536         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
17537         start_index, end_index arguments.
17538         (gl_tree_remove): Update.
17539         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
17540         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
17541         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
17542         function.
17543         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
17544         gl_tree_search. Add start_index, end_index arguments.
17545         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
17546         start_index, end_index arguments.
17547         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
17548         Update.
17549         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
17550
17551 2006-10-05  Bruno Haible  <bruno@clisp.org>
17552
17553         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
17554
17555         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
17556         fwriteerror_temp): New declarations.
17557         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
17558         (descriptors): New variable.
17559         (cleanup): First, close the descriptors.
17560         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
17561         fclose_temp, fwriteerror_temp): New functions.
17562
17563 2006-10-04  Jim Meyering  <jim@meyering.net>
17564
17565         * lib/fts.c (fts_open): Tiny comment change.
17566
17567 2006-10-04  Bruno Haible  <bruno@clisp.org>
17568
17569         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
17570         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
17571         gl_LOCK_BODY.
17572         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
17573         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
17574         gl_LOCK_EARLY_BODY.
17575         (gl_LOCK): Require gl_LOCK_BODY.
17576
17577 2006-10-04  Bruno Haible  <bruno@clisp.org>
17578
17579         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
17580         (gl_oset_search_atleast): New declaration.
17581         (struct gl_oset_implementation): Add field 'search_atleast'.
17582         (gl_oset_search_atleast): New inline function.
17583         * lib/gl_oset.c (gl_oset_search_atleast): New function.
17584         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
17585         (gl_array_oset_implementation): Update.
17586         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
17587         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
17588         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
17589
17590 2006-10-04  Bruno Haible  <bruno@clisp.org>
17591
17592         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
17593
17594 2006-10-03  Bruno Haible  <bruno@clisp.org>
17595
17596         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
17597         from gl_avltreehash_list_implementation.
17598
17599 2006-10-03  Bruno Haible  <bruno@clisp.org>
17600
17601         * lib/gl_oset.c (gl_oset_add): Fix return type.
17602
17603 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
17604
17605         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
17606
17607 2006-10-02  Eric Blake  <ebb9@byu.net>
17608
17609         * modules/strnlen (Depends-on): Add extensions.
17610
17611 2006-10-02  Eric Blake  <ebb9@byu.net>
17612
17613         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
17614         definition in 2.60+.
17615
17616 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
17617
17618         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
17619         checks.
17620
17621 2006-10-02  Bruno Haible  <bruno@clisp.org>
17622
17623         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
17624         to the AUTOMAKE_OPTIONS.
17625         Reported by Jim Meyering.
17626
17627 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
17628
17629         Work around bug in Solaris 10 /proc file system:
17630         /proc/self/fd/NNN/.. isn't the parent directory of
17631         the directory whose file descriptor is NNN.  This needs to
17632         be worked around at run time, not compile time, since a
17633         program might be built on Solaris 8, where things work, and
17634         run on Solaris 10.
17635         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
17636         to use the following interface instead:
17637         (OPENAT_BUFFER_SIZE): New macro.
17638         (openat_proc_name): New function.
17639         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
17640         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
17641         Likewise.
17642         * lib/openat-proc.c: New file.
17643         * modules/openat (Files): Add lib/openat-proc.c.
17644         (Depends-on): Add same-inode, stdbool.
17645         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
17646
17647 2006-09-29  Bruno Haible  <bruno@clisp.org>
17648
17649         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
17650         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
17651         argument. Set stdout_closed before testing for ferror, not after.
17652         (fwriteerror, fwriteerror_no_ebadf): New functions.
17653
17654 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17655
17656         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
17657
17658 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
17659
17660         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
17661         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
17662
17663 2006-09-28  Jim Meyering  <jim@meyering.net>
17664
17665         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
17666         Include <unistd.h>.
17667
17668 2006-09-28  Bruno Haible  <bruno@clisp.org>
17669
17670         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
17671         * modules/linkedhash-list (Depends-on): Likewise.
17672         * modules/rbtreehash-list (Depends-on): Likewise.
17673
17674 2006-09-28  Bruno Haible  <bruno@clisp.org>
17675
17676         * lib/strndup.h: Simplify the redefinition of strndup.
17677         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
17678         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
17679
17680 2006-09-28  Bruno Haible  <bruno@clisp.org>
17681
17682         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
17683         * lib/gl_linkedhash_list.c: Likewise.
17684         * lib/gl_rbtreehash_list.c: Likewise.
17685
17686 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
17687
17688         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
17689         getaddrinfo.
17690
17691         * lib/__fpending.h: Don't include <stdio_ext.h> unless
17692         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
17693         it causes <stdio_ext.h> to cause a compile-time error.
17694         Problem reported by Nelson H. F. Beebe.
17695         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
17696         of HAVE_DECL___PENDING.
17697
17698         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
17699         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
17700         declaration.
17701
17702 2006-09-27  Jim Meyering  <jim@meyering.net>
17703
17704         This file could end up with a definition for a function
17705         named __strndup, rather than rpl_strndup on a system with
17706         incomplete weak_alias support.
17707         * lib/strndup.c (strndup): Rename from __strndup.
17708         Remove #defines that used to map __strndup to strndup.
17709         Don't use K&R prototypes.
17710         Remove LIBC-related code, since this file is not sync'd with glibc.
17711         * lib/strndup.h: Revamp, accordingly.
17712         * m4/strndup.m4: Modernize.
17713
17714 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
17715
17716         * modules/savewd (Depends-on): Add 'raise'.
17717         * lib/savewd.c: Include <signal.h>, for 'raise'.
17718
17719 2006-09-26  Jim Meyering  <jim@meyering.net>
17720
17721         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
17722         when we detect Darwin 8.7.0's acl_get_file bug.
17723         Rearrange to perform the new (below) run-test while $LIBS
17724         contains any acl-related library.  Set USE_ACL at the end.
17725         (gl_ACL_GET_FILE): New function.
17726
17727 2006-09-26  Eric Blake  <ebb9@byu.net>
17728
17729         * lib/verror.c: Include <config.h> unconditionally.
17730
17731 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
17732
17733         * modules/clock-time (Maintainer): Add self.
17734         * modules/getlogin_r (Depends-on): Add extensions.
17735
17736 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17737
17738         * modules/clock-time: New module.
17739         * modules/nanosleep (Depends-on): Add clock-time.
17740         * modules/gethrxtime (Depends-on): Likewise.
17741         * modules/gettime (Depends-on): Likewise.
17742         * modules/settime (Depends-on): Likewise.
17743
17744         * modules/fts-lgpl: Depend on openat.
17745         * modules/mkancesdirs: Depend on savewd.
17746         * modules/mkdir-p: Likewise.
17747
17748 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17749
17750         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
17751
17752         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
17753         `gl_have_arbitrary_file_name_length_limit' to
17754         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
17755         actually works between configure runs.
17756
17757 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17758             Bruno Haible  <bruno@clisp.org>
17759
17760         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
17761
17762 2006-09-25  Jim Meyering  <jim@meyering.net>
17763
17764         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
17765         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
17766
17767 2006-09-25  Eric Blake  <ebb9@byu.net>
17768
17769         * gnulib-tool (func_import, func_create_testdir): Fix typos in
17770         exec's in 2006-09-18 patch when shuffling fds.
17771
17772 2006-09-25  Bruno Haible  <bruno@clisp.org>
17773
17774         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
17775         Reported by Jim Meyering.
17776
17777 2006-09-24  Jim Meyering  <jim@meyering.net>
17778
17779         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
17780         compare a pointer against a literal "0".  That caused failures with
17781         at least HP-UX's hpcc.
17782
17783 2006-09-22  Simon Josefsson  <jas@extundo.com>
17784
17785         * modules/gc-sha1:
17786         * modules/gc-md4:
17787         * modules/gc-hmac-sha1:
17788         * modules/gc-hmac-md5:
17789         * modules/gc-des:
17790         * modules/gc-arcfour: Distribute more files.
17791
17792 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17793
17794         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
17795         (gl_linked_iterator_from_to): Initialize struct completely.
17796         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
17797         (gl_tree_iterator_from_to): Likewise
17798         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
17799         * lib/gl_array_list.c [lint] (gl_array_iterator)
17800         (gl_array_iterator_from_to): Likewise.
17801         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
17802         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
17803         (gl_carray_iterator_from_to): Likewise.
17804
17805         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
17806         * lib/md4.c (md4_process_block): Remove unused variable.
17807         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
17808         parentheses for clarity.
17809
17810 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17811
17812         * modules/bison-i18n (Depends-on): Add gettext.
17813
17814 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17815
17816         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
17817         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
17818         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
17819         also add missing comma that caused broken test.
17820         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
17821         stdlib.h, for `abort'.
17822         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
17823         variables.
17824         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
17825         include unistd.h if present, for `rmdir'.
17826         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
17827         variables.
17828         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
17829         in the process include standard headers for prototypes.
17830         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
17831         gets declared on GNU/Linux.
17832         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
17833         unistd.h, for `rmdir'.
17834         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
17835
17836         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
17837         always true.
17838         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
17839
17840         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
17841
17842 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17843
17844         * gnulib-tool (func_version): Create output all at once.  This
17845         may help avoid triggering unnecessary SIGPIPEs, and at any
17846         rate it doesn't hurt.
17847
17848 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17849             Bruno Haible  <bruno@clisp.org>
17850
17851         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
17852         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
17853         * m4/signed.m4 (bh_C_SIGNED): Likewise.
17854
17855         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
17856         (gl_FUNC_VASPRINTF): Invoke it.
17857
17858 2006-09-22  Bruno Haible  <bruno@clisp.org>
17859
17860         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
17861         getloadavg.c as first argument.
17862
17863 2006-09-22  Bruno Haible  <bruno@clisp.org>
17864
17865         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
17866         at the beginning of the gl_INIT macro.
17867         * modules/getloadavg (configure.ac): Pass $gl_source_base to
17868         gl_GETLOADAVG.
17869
17870 2006-09-22  Bruno Haible  <bruno@clisp.org>
17871
17872         * gnulib-tool (func_create_megatestdir): Don't include the config-h
17873         module.
17874         Suggested by Ralf Wildenhues.
17875
17876 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
17877
17878         Import this patch from libc:
17879
17880         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
17881
17882         * lib/regex_internal.c (re_string_reconstruct): Handle
17883         offset < pstr->valid_raw_len && pstr->offsets_needed case.
17884         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
17885         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
17886         re_string_context_at.
17887
17888         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
17889         now requires it.
17890         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
17891         gl_REGEX now does it for us.
17892         (gl_REGEX): Add test taken from
17893         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
17894
17895         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
17896         Check that large offsets work.  Modernize Autoconf usages.
17897         Prefer "yes" to mean a good thing rather than a bad.
17898         Don't put "#define mkstemp" in config.h, as this might interfere
17899         with standard system headers that "#define mkstemp mkstemp64".
17900
17901         * modules/mkstemp (Depends-on): Add extensions, so that
17902         mkstemp is visible on some platforms.
17903         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
17904         (Include): Change to "mkstemp.h" from <stdlib.h>.
17905         (Files): Add mkstemp.h.
17906
17907         * lib/mkstemp.h: New file, since some standard headers
17908         #define mkstemp.
17909         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
17910         Include "mkstemp.h".
17911         Make the _LIBC code resemble glibc original more,
17912         e.g., use K&R style.
17913         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
17914         (mkstemp): Remove, since mkstemp.h does this for us.
17915         * lib/stdlib--.h: Include mkstemp.h.
17916
17917         Import this patch from libc:
17918
17919         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
17920
17921         * lib/tempname.c (__gen_tempname): Change attempts_min
17922         into a macro.  Use preprocessor to decide how to initialize
17923         attempts [Coverity CID 67].
17924
17925 2006-09-20  Bruno Haible  <bruno@clisp.org>
17926
17927         * lib/mkdtemp.c: Import from libc.
17928         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
17929                 * sysdeps/posix/tempname.c (__gen_tempname): Change
17930                 attempts_min into a macro.  Use preprocessor to decide how to
17931                 initialize attempts [Coverity CID 67].
17932         2001-11-27  Paul Eggert  <eggert@twinsun.com>
17933                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
17934                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
17935
17936 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17937
17938         * gnulib-tool (func_exit): New function, to allow to pass the
17939         exit status portably through the trap.  Use everywhere.
17940         (--help, --version): Signal a write error.
17941         (trap): catch SIGPIPE, for write errors.
17942         Exit at the end of the trap, with the correct exit status.
17943
17944 2006-09-19  Karl Berry  <karl@gnu.org>
17945
17946         * doc/gnulib.texi: note about the license texinfo files.
17947
17948 2006-09-19  Eric Blake  <ebb9@byu.net>
17949
17950         * gnulib-tool: Avoid space-tab.
17951
17952 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
17953
17954         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
17955         that prevented coreutils 6.1 from building.  Problem reported
17956         by Petter Reinholdtsen.
17957
17958 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
17959
17960         * gnulib-tool (avoidlist): Fix typo that broke options like
17961         --avoid=lock that are used by coreutils bootstrap.
17962
17963 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
17964
17965         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
17966         more systematically.
17967
17968 2006-09-18  Jim Meyering  <jim@meyering.net>
17969
17970         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
17971
17972 2006-09-18  Bruno Haible  <bruno@clisp.org>
17973
17974         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
17975
17976 2006-09-18  Bruno Haible  <bruno@clisp.org>
17977
17978         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
17979         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
17980         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
17981         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
17982         * m4/gettext.m4: Require autoconf >= 2.52.
17983         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
17984         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
17985         of gl_cv_header_inttypes_h.
17986
17987 2006-09-18  Bruno Haible  <bruno@clisp.org>
17988
17989         * lib/javaversion.c: Include configmake.h.
17990
17991 2006-09-18  Bruno Haible  <bruno@clisp.org>
17992
17993         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
17994         avoid that the while loops be executed in a subshell.
17995
17996 2006-09-18  Bruno Haible  <bruno@clisp.org>
17997
17998         * MODULES.html.sh (func_module): Break long lines.
17999         Suggested by Bruce Korb <bkorb@gnu.org>.
18000
18001 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18002
18003         Speed up by a factor of 1.12.
18004         * gnulib-tool (nl): New variable.
18005         (func_import): Rewrite include directive extraction to only read each
18006         directive once.
18007
18008 2006-09-17  Bruno Haible  <bruno@clisp.org>
18009
18010         * modules/javaversion (Makefile.am): Remove DEFS setting.
18011         (Depends-on): Add configmake, for PKGDATADIR definition.
18012
18013 2006-09-17  Bruno Haible  <bruno@clisp.org>
18014
18015         * gnulib-tool (func_create_testdir): Rewrite all files at once.
18016
18017 2006-09-17  Bruno Haible  <bruno@clisp.org>
18018
18019         * gnulib-tool (func_append): New function, stolen from libtool.m4.
18020         (func_modules_transitive_closure, func_modules_add_dummy,
18021         func_modules_to_filelist, func_import, func_create_testdir,
18022         func_create_megatestdir, ...): Use it wherever possible.
18023         Suggested by Ralf Wildenhues.
18024
18025 2006-09-16  Karl Berry  <karl@gnu.org>
18026
18027         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
18028         to avoid sectioning errors.
18029         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
18030         [ifinfo]: blank line after @center-ed titles.
18031         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
18032         Spell FSF address consistently with others.
18033         (These changes approved by rms.)
18034
18035 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18036
18037         Speed up by a factor of 1.61.
18038         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
18039         already checked module names again.
18040
18041 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18042
18043         Speed up by a factor of 1.13.
18044         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
18045         for new_files, and the input to func_add_or_update.
18046
18047 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18048
18049         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
18050         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
18051
18052 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
18053
18054         * modules/mkancesdirs (Depends-on): Add fcntl.
18055         * modules/savewd: New file.
18056         * MODULES.html.sh (File system functions): Add savewd.
18057
18058         * modules/configmake (Makefile.am): Add support for the
18059         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
18060
18061 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
18062
18063         * m4/savewd.m4: New file.
18064
18065 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
18066
18067         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
18068         (dirchownmod): New arg FD.  All callers changed.
18069         Use FD rather than opening the directory ourself, as opening is
18070         now the caller's responsibility.
18071         * lib/dirchownmod.h: Likewise.
18072         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
18073         hosts that require <sys/types.h> before <sys/stat.h>.  Include
18074         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
18075         (test_dir): Remove.
18076         (mkancesdirs): Return length of prefix of FILE that has already
18077         been made, or -2 if there is a child doing the work.  Redo
18078         algorithm so that it is O(N) rather than O(N**2).  Optimize away
18079         ".", and treat ".." specially since it might stray back into
18080         already-created areas.  Use a subprocess if necessary.  New arg
18081         WD; all users changed.  MAKE_DIR function should now return 1
18082         if it creates a directory that is not readable.  Return -2 if
18083         a child process is spun off.
18084         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
18085         Adjust signature to match code.
18086         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
18087         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
18088         all users changed.
18089         * lib/savewd.c, lib/savewd.h: New files.
18090
18091 2006-09-15  Jim Meyering  <jim@meyering.net>
18092
18093         * modules/rename-dest-slash: New module.
18094         * MODULES.html.sh (posix_compat): Add it here.
18095
18096         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
18097
18098 2006-09-15  Jim Meyering  <jim@meyering.net>
18099
18100         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
18101         file.
18102
18103         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
18104
18105 2006-09-15  Jim Meyering  <jim@meyering.net>
18106
18107         * lib/rename-dest-slash.c (has_trailing_slash): Use
18108         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
18109         (rpl_rename_dest_slash): Perform the cheaper trailing slash
18110         test before testing whether SRC is a directory.
18111         Suggestions from Bruno Haible.
18112
18113         Avoid a warning about an unused variable.
18114         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
18115         into the #ifdef block where it's used.
18116
18117         * lib/rename-dest-slash.c: New file.
18118
18119 2006-09-14  Bruno Haible  <bruno@clisp.org>
18120
18121         * lib/allocsa.c: Include <config.h> unconditionally.
18122         * lib/asnprintf.c: Likewise.
18123         * lib/asprintf.c: Likewise.
18124         * lib/c-strcasecmp.c: Likewise.
18125         * lib/c-strcasestr.c: Likewise.
18126         * lib/c-strncasecmp.c: Likewise.
18127         * lib/c-strstr.c: Likewise.
18128         * lib/classpath.c: Likewise.
18129         * lib/clean-temp.c: Likewise.
18130         * lib/concatpath.c: Likewise.
18131         * lib/copy-file.c: Likewise.
18132         * lib/csharpcomp.c: Likewise.
18133         * lib/csharpexec.c: Likewise.
18134         * lib/execute.c: Likewise.
18135         * lib/fatal-signal.c: Likewise.
18136         * lib/findprog.c: Likewise.
18137         * lib/fwriteerror.c: Likewise.
18138         * lib/gl_array_list.c: Likewise.
18139         * lib/gl_array_oset.c: Likewise.
18140         * lib/gl_avltree_list.c: Likewise.
18141         * lib/gl_avltree_oset.c: Likewise.
18142         * lib/gl_avltreehash_list.c: Likewise.
18143         * lib/gl_carray_list.c: Likewise.
18144         * lib/gl_linked_list.c: Likewise.
18145         * lib/gl_linkedhash_list.c: Likewise.
18146         * lib/gl_list.c: Likewise.
18147         * lib/gl_oset.c: Likewise.
18148         * lib/gl_rbtree_list.c: Likewise.
18149         * lib/gl_rbtree_oset.c: Likewise.
18150         * lib/gl_rbtreehash_list.c: Likewise.
18151         * lib/imaxabs.c: Likewise.
18152         * lib/imaxdiv.c: Likewise.
18153         * lib/javacomp.c: Likewise.
18154         * lib/javaexec.c: Likewise.
18155         * lib/javaversion.c: Likewise.
18156         * lib/linebreak.c: Likewise.
18157         * lib/localcharset.c: Likewise.
18158         * lib/lock.c: Likewise.
18159         * lib/mbchar.c: Likewise.
18160         * lib/mbswidth.c: Likewise.
18161         * lib/mkdtemp.c: Likewise.
18162         * lib/pipe.c: Likewise.
18163         * lib/printf-args.c: Likewise.
18164         * lib/printf-parse.c: Likewise.
18165         * lib/progname.c: Likewise.
18166         * lib/progreloc.c: Likewise.
18167         * lib/readlink.c: Likewise.
18168         * lib/sh-quote.c: Likewise.
18169         * lib/stpcpy.c: Likewise.
18170         * lib/stpncpy.c: Likewise.
18171         * lib/strcasecmp.c: Likewise.
18172         * lib/strcasestr.c: Likewise.
18173         * lib/strcspn.c: Likewise.
18174         * lib/striconv.c: Likewise.
18175         * lib/strncasecmp.c: Likewise.
18176         * lib/strnlen1.c: Likewise.
18177         * lib/strstr.c: Likewise.
18178         * lib/strtok_r.c: Likewise.
18179         * lib/tls.c: Likewise.
18180         * lib/tmpdir.c: Likewise.
18181         * lib/unicodeio.c: Likewise.
18182         * lib/unsetenv.c: Likewise.
18183         * lib/vasnprintf.c: Likewise.
18184         * lib/vasprintf.c: Likewise.
18185         * lib/wait-process.c: Likewise.
18186         * lib/xallocsa.c: Likewise.
18187         * lib/xsetenv.c: Likewise.
18188         * lib/xstriconv.c: Likewise.
18189
18190 2006-09-13  Simon Josefsson  <jas@extundo.com>
18191
18192         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
18193         that internally, suggested by Ralf Wildenhues
18194         <Ralf.Wildenhues@gmx.de>.
18195
18196 2006-09-13  Simon Josefsson  <jas@extundo.com>
18197
18198         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
18199         @LIBOBJS@.
18200         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18201
18202 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
18203
18204         * lib/_fpending.c: Include <config.h> unconditionally, since we no
18205         longer worry about uses that don't define HAVE_CONFIG_H.
18206         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
18207         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
18208         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
18209         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
18210         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
18211         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
18212         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
18213         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
18214         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
18215         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
18216         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
18217         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
18218         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
18219         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
18220         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
18221         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
18222         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
18223         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
18224         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
18225         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
18226         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
18227         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
18228         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
18229         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
18230         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
18231         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
18232         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
18233         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
18234         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
18235         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
18236         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
18237         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
18238         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
18239         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
18240         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
18241         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
18242         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
18243         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
18244         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
18245         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
18246         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
18247         Likewise.
18248
18249 2006-09-13  Eric Blake  <ebb9@byu.net>
18250
18251         * lib/getopt.c: Fix typo in last commit.
18252
18253 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
18254
18255         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
18256         dgettext.
18257
18258 2006-09-12  Jim Meyering  <jim@meyering.net>
18259
18260         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
18261         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
18262         Reported by Nelson H. F. Beebe.
18263
18264 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
18265
18266         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
18267         program_invocation_name and program_invocation_short_name are
18268         initialized.
18269         * lib/argp-namefrob.h: Move declarations of program_invocation_name
18270         and program_invocation_short_name to argp.h, so they are visible
18271         to user programs.
18272         * lib/argp.h: Likewise
18273
18274 2006-09-10  Bruno Haible  <bruno@clisp.org>
18275
18276         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
18277         m4/inttypes_h.m4, m4/uintmax_t.m4.
18278
18279 2006-09-10  Bruno Haible  <bruno@clisp.org>
18280
18281         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
18282         gl_AC_TYPE_UINTMAX_T.
18283
18284 2006-09-10  Bruno Haible  <bruno@clisp.org>
18285
18286         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
18287
18288 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
18289
18290         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
18291         convention.  Text proposed by Bruno Haible.
18292         (struct argp_option): Document the use of N_() wrappers.
18293
18294         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
18295         '\v', and translate the two parts separately, instead of feeding
18296         the whole string to gettext.  This allows to exclude
18297         '\v' from the strings visible to the translator by writing doc
18298         strings as N_("..") "\v" N_("..").
18299
18300 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
18301
18302         * config/srclist.txt: Undo latest change; the bug was fixed.
18303
18304 2006-09-09  Bruno Haible  <bruno@clisp.org>
18305
18306         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
18307         assignments if building a library without libtool.
18308         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
18309         in func_emit_lib_Makefile_am.
18310         (func_import): When building a static library libfoo.a, arrange to
18311         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
18312         (func_create_testdir): Likewise.
18313         * modules/gc (configure.ac, Makefile.am): If building statically,
18314         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
18315         * modules/iconvme (configure.ac, Makefile.am): Likewise.
18316         * modules/striconv (configure.ac, Makefile.am): Likewise.
18317         Based on a suggestion by Ralf Wildenhues.
18318
18319 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
18320
18321         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
18322         Check for unistd.h too, since Autoconf doesn't assume POSIX.
18323         Also:
18324
18325         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
18326         Add year_2050_test to catch glibc bug 2821
18327         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
18328
18329         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
18330         Prefer #ifdef to #if.
18331
18332         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
18333         Return from 'main' instead of calling 'exit'.
18334
18335 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
18336
18337         * lib/mktime.c (guess_time_tm): Fix bug where mktime
18338         returned the maximum time_t value rather than (time_t) -1.
18339         Problem originally reported by William Bardwell
18340         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
18341
18342         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
18343         Moved to here ...
18344         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
18345         ... from here.
18346
18347 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
18348
18349         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
18350         2821 is fixed.
18351
18352 2006-09-08  Jim Meyering  <jim@meyering.net>
18353
18354         Don't make generated files read-only.  That would bother too many
18355         people.  However, do retain the ability to work when targets are
18356         read-only: remove the destination and temporary files before writing
18357         them (when generated via sed or echo), or by using the -f option for
18358         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
18359         * modules/alloca-opt, modules/argz, modules/arpa_inet:
18360         * modules/byteswap, modules/configmake, modules/fcntl:
18361         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
18362         * modules/localcharset, modules/netinet_in, modules/poll:
18363         * modules/stdbool, modules/stdint, modules/sys_select:
18364         * modules/sys_socket, modules/sys_stat, modules/sysexits:
18365
18366 2006-09-08  Jim Meyering  <jim@meyering.net>
18367
18368         Avoid new build failure on FreeBSD 6.0.
18369         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
18370         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
18371         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
18372
18373 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18374
18375         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
18376
18377 2006-09-07  Jim Meyering  <jim@meyering.net>
18378
18379         Fix global typo in last change: use chmod u-w, not chmod u-x.
18380         Spotted by Paul Eggert and Bruce Korb.
18381         * modules/alloca-opt, modules/argz, modules/arpa_inet:
18382         * modules/byteswap, modules/configmake, modules/fcntl:
18383         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
18384         * modules/localcharset, modules/netinet_in, modules/poll:
18385         * modules/stdbool, modules/stdint, modules/sys_select:
18386         * modules/sys_socket, modules/sys_stat, modules/sysexits:
18387
18388 2006-09-06  Jim Meyering  <jim@meyering.net>
18389
18390         Make generated files be read-only.
18391         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
18392         Ensure that each generated file is now read-only.
18393         * modules/argz: Likewise.
18394         * modules/arpa_inet: Likewise.
18395         * modules/byteswap: Likewise.
18396         * modules/configmake: Likewise.
18397         * modules/fcntl: Likewise.
18398         * modules/fnmatch: Likewise.
18399         * modules/getopt: Likewise.
18400         * modules/glob: Likewise.
18401         * modules/inttypes: Likewise.
18402         * modules/netinet_in: Likewise.
18403         * modules/poll: Likewise.
18404         * modules/stdbool: Likewise.
18405         * modules/stdint: Likewise.
18406         * modules/sys_select: Likewise.
18407         * modules/sys_socket: Likewise.
18408         * modules/sys_stat: Likewise.
18409         * modules/sysexits: Likewise.
18410         * modules/localcharset: Same as above, but continue using temporary
18411         file named "t-$@" (why different?) rather than the "$@-t" used
18412         everywhere else.
18413
18414         * modules/sysexits (Makefile.am): Replace literal occurrences
18415         of "sysexit.h" more readable, and more consistent, "$@".
18416
18417 2006-09-06  Bruno Haible  <bruno@clisp.org>
18418
18419         * modules/striconv: New file.
18420         * modules/xstriconv: New file.
18421         * MODULES.html.sh (Internationalization functions): Add striconv,
18422         xstriconv.
18423
18424 2006-09-06  Bruno Haible  <bruno@clisp.org>
18425
18426         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
18427         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
18428         not using libtool correctly.
18429
18430 2006-09-06  Bruno Haible  <bruno@clisp.org>
18431
18432         * lib/striconv.h: New file.
18433         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
18434         iconvstring.c.
18435         * lib/xstriconv.h: New file.
18436         * lib/xstriconv.c: New file.
18437
18438 2006-09-06  Bruno Haible  <bruno@clisp.org>
18439
18440         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
18441         lib_..._LDFLAGS.
18442
18443 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18444
18445         * lib/argz_.h: Sync from Libtool.
18446
18447         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
18448                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18449
18450         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
18451
18452 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
18453
18454         * modules/trim: New file.
18455
18456 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
18457
18458         * lib/trim.h: New file.
18459         * lib/trim.c: New file.
18460
18461 2006-09-05  Bruno Haible  <bruno@clisp.org>
18462
18463         * MODULES.html.sh (String handling): Add trim.
18464
18465 2006-09-04  Karl Berry  <karl@gnu.org>
18466
18467         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
18468         until next release.
18469
18470 2006-09-03  Bruno Haible  <bruno@clisp.org>
18471
18472         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
18473         correctly.
18474
18475 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
18476
18477         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
18478         not gl_GETLOADAVG.  Omit unneeded semicolons.
18479         Problems reported by Ralf Wildenhues in
18480         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
18481         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
18482         at the end, which is the usual gnulib style.
18483
18484         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
18485         of doing all the work ourselves.
18486         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
18487         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
18488
18489 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
18490
18491         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
18492         Problem reported by Ralf Wildenhues in
18493         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
18494
18495         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
18496         HAVE_STRUCT_STATFS_F_FSTYPENAME.
18497
18498 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
18499
18500         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
18501         yesterday's patch by changing test -n to test -z.
18502
18503 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
18504
18505         * modules/getloadavg (Files): Add m4/getloadavg.m4.
18506         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
18507         the former is now obsolescent.
18508
18509         * modules/chdir-long (Depends-on): Add fcntl.
18510
18511 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
18512
18513         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
18514         obsolescent, and programs should use gnulib instead.
18515         * m4/getloadavg.m4: New file, with contents taken from Autoconf
18516         but with prefixes changed.
18517
18518 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
18519
18520         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
18521         or stdbool.h, because they might not exist while configuring.
18522
18523         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
18524         Don't include unistd.h or limits.h; not needed, since chdir-long.h
18525         does that for us.
18526         (O_DIRECTORY): Remove.
18527
18528 2006-08-31  Eric Blake  <ebb9@byu.net>
18529
18530         * gnulib-tool: Don't let emacs change spaces to TAB.
18531
18532 2006-08-31  Bruno Haible  <bruno@clisp.org>
18533
18534         * gnulib-tool: When calling func_import more than once, do it in a
18535         subshell.
18536         Reported by Eric Blake <ebb9@byu.net>.
18537
18538 2006-08-31  Bruno Haible  <bruno@clisp.org>
18539
18540         * gnulib-tool (nl): Remove variable.
18541         (sed_transform_lib_file): Use more robust test for config-h module.
18542         (func_import): Fix typo in 2006-08-25 patch.
18543
18544 2006-08-31  Bruno Haible  <bruno@clisp.org>
18545
18546         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
18547         specified, augment Makefile.am variables instead of assigning them.
18548
18549 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
18550
18551         Work around a bug in both the Linux and SunOS 64-bit kernels:
18552         nanosleep mishandles sleeps for longer than 2**31 seconds.
18553         Problem reported by Frank v Waveren in
18554         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
18555         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
18556         Check for nanosleep bug.
18557         (LIB_NANOSLEEP): Append clock_gettime library if needed.
18558
18559 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
18560
18561         Work around a bug in both the Linux and SunOS 64-bit kernels:
18562         nanosleep mishandles sleeps for longer than 2**31 seconds.
18563         Problem reported by Frank v Waveren in
18564         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
18565         * lib/nanosleep.c (BILLION): New constant.
18566         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
18567         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
18568         implementation.
18569
18570 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
18571
18572         * modules/nanosleep (Depends-on): Add gettime.
18573
18574 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
18575         and Simon Josefsson  <jas@extundo.com>
18576         and Oskar Liljeblad  <oskar@osk.mine.nu>
18577
18578         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
18579         * gnulib-tool (func_import): New license type 'unmodifiable license
18580         text'.
18581         * modules/fdl: Use it.  Longer description.
18582         * module/gpl, module/lgpl: New files.
18583
18584 2006-08-30  Jim Meyering  <jim@meyering.net>
18585
18586         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
18587         shadowing the parameter.
18588
18589 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18590
18591         Sync from Libtool:
18592
18593         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18594
18595         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
18596         sharing with gnulib.  Report by Eric Blake.
18597
18598 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
18599
18600         * modules/isapipe: New file.
18601         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
18602
18603 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
18604
18605         * modules/configmake (Makefile.am): Add a comment, and omit
18606         the CONFIGMAKE_ prefix from generated macro names.  Suggested
18607         by Bruno Haible.
18608
18609 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
18610
18611         * m4/isapipe.m4: New file.
18612
18613 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
18614
18615         * lib/isapipe.c, lib/isapipe.h: New files.
18616
18617 2006-08-29  Jim Meyering  <jim@meyering.net>
18618
18619         * modules/configmake (Makefile.am): Make configmake.h depend on
18620         Makefile.  Otherwise, a stale configmake.h could hang around.
18621
18622 2006-08-29  Eric Blake  <ebb9@byu.net>
18623
18624         * lib/error.c (error_at_line, print_errno_message): Match libc, after
18625         resolution of upstream bug 3044.
18626
18627 2006-08-29  Bruno Haible  <bruno@clisp.org>
18628
18629         * modules/localcharset (Depends-on): Add configmake.
18630         (Makefile.am): Remove setting of LIBDIR through DEFS.
18631
18632 2006-08-29  Bruno Haible  <bruno@clisp.org>
18633
18634         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
18635         defined.
18636
18637 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
18638
18639         * modules/fcntl: New file.
18640         * modules/chdir-safer (Depends-on): Add fcntl.
18641         * modules/fts: Likewise.
18642         * modules/mkdir-p: Likewise.
18643
18644         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
18645         This undoes the most recent change, since we're now addressing the
18646         problem in a different way.
18647
18648         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
18649         into output, since the output might be called Makefile.am even
18650         if $makefile_name is something different.
18651         (func_import): Use $makefile_am rather than
18652         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
18653         empty.
18654
18655         * modules/inttypes (Files): Add m4/inttypes-h.m4.
18656
18657 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
18658
18659         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
18660         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
18661         recent change to stdint.m4, since we're now addressing the problem in a
18662         different way.
18663
18664 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
18665
18666         * m4/fcntl_h.m4: New file.
18667
18668 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
18669
18670         * lib/fcntl_.h: New file.
18671         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
18672         the fcntl module.
18673         * lib/dirchownmod.c: Likewise.
18674         * lib/fts.c: Likewise.
18675
18676         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
18677         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
18678         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
18679         just before including <inttypes.h>, to avoid circular inclusion.
18680
18681 2006-08-28  Jim Meyering  <jim@meyering.net>
18682
18683         * doc/visibility.texi: Actually read and correct the grammar of the
18684         sentence affected by yesterday's change.
18685
18686 2006-08-28  Eric Blake  <ebb9@byu.net>
18687
18688         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
18689         needs wrapper.
18690
18691 2006-08-28  Eric Blake  <ebb9@byu.net>
18692
18693         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
18694
18695 2006-08-28  Eric Blake  <ebb9@byu.net>
18696
18697         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
18698
18699 2006-08-28  Bruno Haible  <bruno@clisp.org>
18700
18701         * modules/c-strstr: New file, from GNU gettext.
18702         * MODULES.html.sh (String handling): Add c-strstr.
18703
18704 2006-08-28  Bruno Haible  <bruno@clisp.org>
18705
18706         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
18707         macros.
18708         Reported by Eric Blake.
18709
18710 2006-08-28  Bruno Haible  <bruno@clisp.org>
18711
18712         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
18713         (VASNPRINTF): Return a string of length > INT_MAX without failing.
18714         * lib/vasprintf.c: Include errno.h, limits.h.
18715         (EOVERFLOW): New fallback definition.
18716         (vasprintf): Test here whether the string length is > INT_MAX.
18717         * lib/vsnprintf.c: Include errno.h, limits.h.
18718         (EOVERFLOW): New fallback definition.
18719         (vsnprintf): Fix bug when generated string was too long for the buffer.
18720         Test here whether the string length is > INT_MAX.
18721
18722 2006-08-28  Bruno Haible  <bruno@clisp.org>
18723
18724         * lib/inttypes_.h (SCNX*): Remove definitions.
18725         Reported by Eric Blake.
18726
18727 2006-08-28  Bruno Haible  <bruno@clisp.org>
18728
18729         * lib/c-strstr.h: New file, from GNU gettext.
18730         * lib/c-strstr.c: New file, from GNU gettext.
18731
18732 2006-08-28  Bruno Haible  <bruno@clisp.org>
18733
18734         * gnulib-tool: Reorder some statements.
18735
18736 2006-08-28  Bruno Haible  <bruno@clisp.org>
18737
18738         * gnulib-tool: New option --makefile-name.
18739         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
18740         $makefile_name.
18741         (func_import): Write $makefile_name to the cache file, and read it from
18742         there unless explicitly specified. Use $makefile_name as file name
18743         instead of Makefile.am. Adjust the recommendations accordingly.
18744
18745 2006-08-28  Bruno Haible  <bruno@clisp.org>
18746
18747         * gnulib-tool (func_verify_module): Check against misapplying patch.
18748
18749 2006-08-28  Bruno Haible  <bruno@clisp.org>
18750
18751         * gnulib-tool (func_relativize, func_relconcat): New functions.
18752         Give an error if --local-dir is given with --update.
18753         Remove trailing slashes from $local_gnulib_dir.
18754         (func_import): Store the relativized $local_gnulib_dir in
18755         gnulib-cache.m4, and read it from there if not specified explicitly.
18756
18757 2006-08-28  Bruno Haible  <bruno@clisp.org>
18758
18759         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
18760         is the current directory. Respect also $local_gnulib_dir.
18761
18762 2006-08-28  Bruno Haible  <bruno@clisp.org>
18763             Simon Josefsson  <jas@extundo.com>
18764
18765         BeOS portability.
18766         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
18767
18768 2006-08-27  Jim Meyering  <jim@meyering.net>
18769
18770         * doc/visibility.texi: Remove duplicate word: "pointer".
18771
18772 2006-08-26  Bruno Haible  <bruno@clisp.org>
18773
18774         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
18775         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
18776         (Makefile.am): Create inttypes.h from inttypes_.h.
18777         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
18778
18779         * modules/imaxabs: New file.
18780
18781         * modules/imaxdiv: New file.
18782
18783 2006-08-26  Bruno Haible  <bruno@clisp.org>
18784
18785         * m4/inttypes.m4: New file.
18786         * m4/_inttypes_h.m4: Remove file.
18787         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
18788         PRI_MACROS_BROKEN.
18789         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
18790
18791         * m4/imaxabs.m4: New file.
18792
18793         * m4/imaxdiv.m4: New file.
18794
18795 2006-08-26  Bruno Haible  <bruno@clisp.org>
18796
18797         * lib/inttypes_.h: New file.
18798         * lib/inttypes.h: Remove file.
18799         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
18800
18801         * lib/imaxabs.c: New file.
18802
18803         * lib/imaxdiv.c: New file.
18804
18805 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
18806
18807         New config-h module, so that "make" output needn't be cluttered
18808         by -DHAVE_CONFIG_H.
18809         * MODULES.html.sh (Support for building libraries and executables):
18810         Add config-h.
18811         * modules/config-h: New file.
18812         * gnulib-tool (nl, sed_transform_lib_file): New vars.
18813         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
18814         the config-h module is used.
18815
18816         New configmake module, so that "make" output needn't be cluttered
18817         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
18818         * MODULES.html.sh (Support for building libraries and executables):
18819         Add configmake.
18820         * modules/configmake: New file.
18821
18822 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
18823
18824         * m4/config-h.m4: New file.
18825
18826 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
18827
18828         * config/srclist.txt: Add elisp-comp.
18829
18830 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
18831
18832         * MODULES.html.sh (Support for building libraries and executables):
18833         Add elisp-comp.
18834         * build-aux/elisp-comp: New file.
18835         * modules/elisp-comp: New file.
18836
18837 2006-08-24  Bruno Haible  <bruno@clisp.org>
18838
18839         * gnulib-tool (func_create_testdir): Use non-default values of
18840         sourcebase and m4base.
18841
18842 2006-08-24  Bruno Haible  <bruno@clisp.org>
18843
18844         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
18845         HTML structure.
18846
18847 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
18848
18849         * modules/openat (Depends-on): Add lchown.
18850
18851 2006-08-23  Bruno Haible  <bruno@clisp.org>
18852
18853         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
18854         of gl_LOCK_EARLY instead of gl_LOCK.
18855
18856 2006-08-23  Bruno Haible  <bruno@clisp.org>
18857
18858         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
18859         on OSF/1 to no.
18860         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
18861
18862 2006-08-23  Bruno Haible  <bruno@clisp.org>
18863
18864         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
18865         as unusable.
18866
18867         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
18868         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
18869         (gl_LOCK): New macro.
18870
18871 2006-08-22  Simon Josefsson  <jas@extundo.com>
18872
18873         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
18874         to md5 module.
18875
18876 2006-08-22  Simon Josefsson  <jas@extundo.com>
18877
18878         * MODULES.html.sh: Add "Support for maintaining and release
18879         projects".
18880
18881         * build-aux/gnupload: New file, from coreutils.
18882
18883 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
18884
18885         Avoid the need for AC_LIBSOURCES in m4 macros.
18886         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
18887         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
18888         * modules/check-version (EXTRA_DIST): Add check-version.h.
18889         * modules/crc (EXTRA_DIST): Add crc.h.
18890         * modules/des (EXTRA_DIST): Add des.h.
18891         * modules/gc (EXTRA_DIST): Add gc.h.
18892         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
18893         * modules/getline (EXTRA_DIST): Add getline.h.
18894         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
18895         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
18896         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
18897         * modules/md2 (EXTRA_DIST): Add md2.h.
18898         * modules/md4 (EXTRA_DIST): Add md4.h.
18899         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
18900         * modules/read-file (EXTRA_DIST): Add read-file.h.
18901         * modules/readline (EXTRA_DIST): Add readline.h.
18902         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
18903         rijndael-api-fst.h.
18904
18905 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
18906
18907         * m4/rijndael.m4 (gl_ARCFOUR):
18908         * m4/arctwo.m4 (gl_ARCTWO):
18909         * m4/check-version.m4 (gl_CHECK_VERSION):
18910         * m4/crc.m4 (gl_CRC):
18911         * m4/des.m4 (gl_DES):
18912         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
18913         * m4/gc.m4 (gl_GC):
18914         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
18915         * m4/getline.m4 (gl_FUNC_GETLINE):
18916         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
18917         * m4/hmac-md5.m4 (gl_HMAC_MD5):
18918         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
18919         * m4/md2.m4 (gl_MD2):
18920         * m4/md4.m4 (gl_MD4):
18921         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
18922         * m4/read-file.m4 (gl_FUNC_READ_FILE):
18923         * m4/readline.m4 (gl_FUNC_READLINE):
18924         * m4/rijndael.m4 (gl_RIJNDAEL):
18925         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
18926         to get the necessary .h files and whatnot.
18927
18928 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
18929
18930         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
18931         gnulib rather than the other way around.
18932         * config/srclistvars.sh (COREUTILS): Remove.
18933
18934 2006-08-22  Jim Meyering  <jim@meyering.net>
18935
18936         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
18937
18938         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
18939
18940 2006-08-22  Eric Blake  <ebb9@byu.net>
18941
18942         * modules/regexprops-generic: New file.
18943         * MODULES.html.sh (Support for building documentation): List it.
18944
18945 2006-08-22  Eric Blake  <ebb9@byu.net>
18946
18947         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
18948         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
18949         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
18950         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
18951
18952 2006-08-22  Bruno Haible  <bruno@clisp.org>
18953
18954         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
18955         and lib_LTLIBRARIES like the other lib_* variables.
18956
18957 2006-08-22  Bruno Haible  <bruno@clisp.org>
18958
18959         * build-aux/x-to-1.in: New file, from GNU gettext.
18960
18961 2006-08-22  Bruno Haible  <bruno@clisp.org>
18962
18963         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
18964         <utmpx.h> exists.
18965
18966 2006-08-22  Bruno Haible  <bruno@clisp.org>
18967
18968         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
18969         <utmpx.h> exists.
18970
18971 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
18972
18973         BeOS portability.
18974         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
18975         exist.
18976         Problem reported by Bruno Haible.
18977
18978 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
18979
18980         Avoid the need for AC_LIBSOURCES in m4 macros.
18981         * modules/acl (EXTRA_DIST): Add acl.h.
18982         * modules/argmatch (Files): Add m4/argmatch.m4.
18983         (configure.ac): Add gl_ARGMATCH.
18984         (EXTRA_DIST): Renamed from lib_SOURCES, for
18985         consistency with the other modules.  Remove argmatch.c.
18986         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
18987         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
18988         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
18989         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
18990         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
18991         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
18992         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
18993         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
18994         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
18995         * modules/closeout (EXTRA_DIST): Add closeout.h.
18996         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
18997         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
18998         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
18999         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
19000         dirname.h; remove basename.c and stripslash.c.
19001         * modules/exclude (EXTRA_DIST): Add exclude.h.
19002         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
19003         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
19004         * modules/file-type (EXTRA_DIST): Add file-type.h.
19005         * modules/filemode (EXTRA_DIST): Add filemode.h.
19006         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
19007         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
19008         * modules/fpending (EXTRA_DIST): Add __fpending.h.
19009         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
19010         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
19011         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
19012         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
19013         * modules/getdate (EXTRA_DIST): Add getdate.c.
19014         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
19015         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
19016         * modules/getpass (EXTRA_DIST): Add getpass.h.
19017         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
19018         * modules/group-member (EXTRA_DIST): Add group-member.h.
19019         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
19020         * modules/hash (EXTRA_DIST): Add hash.h.
19021         * modules/human (EXTRA_DIST): Add human.h.
19022         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
19023         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
19024         * modules/lchown (EXTRA_DIST): Add lchown.h.
19025         * modules/long-options (EXTRA_DIST): Add long-options.h.
19026         * modules/lstat (EXTRA_DIST): Add lstat.h.
19027         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
19028         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
19029         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
19030         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
19031         * modules/memxor (EXTRA_DIST): Add memxor.h.
19032         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
19033         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
19034         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
19035         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
19036         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
19037         * modules/physmem (EXTRA_DIST): Add physmem.h.
19038         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
19039         * modules/posixver (EXTRA_DIST): Add posixver.h.
19040         * modules/quote (EXTRA_DIST): Add quote.h.
19041         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
19042         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
19043         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
19044         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
19045         regex_internal.h regexec.c.
19046         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
19047         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
19048         * modules/same (EXTRA_DIST): Add same.h.
19049         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
19050         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
19051         * modules/savedir (EXTRA_DIST): Add savedir.h.
19052         * modules/sha1 (EXTRA_DIST): Add sha1.h.
19053         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
19054         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
19055         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
19056         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
19057         * modules/strdup (EXTRA_DIST): Add strdup.h.
19058         * modules/strftime (EXTRA_DIST): Add strftime.h.
19059         * modules/strndup (EXTRA_DIST): Add strndup.h.
19060         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
19061         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
19062         * modules/time_r (EXTRA_DIST): Add time_r.h.
19063         * modules/timespec (EXTRA_DIST): Add timespec.h.
19064         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
19065         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
19066         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
19067         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
19068         * modules/userspec (EXTRA_DIST): Add userspec.h.
19069         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
19070         * modules/utimens (EXTRA_DIST): Add utimens.h.
19071         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
19072         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
19073         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
19074         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
19075         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
19076         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
19077         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
19078         * modules/yesno (EXTRA_DIST): Add yesno.h.
19079
19080 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
19081
19082         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
19083
19084         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
19085         * m4/dev-ino.m4, same-inode.m4: Remove.
19086
19087         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
19088         * m4/acl.m4 (AC_FUNC_ACL):
19089         * m4/backupfile.m4 (gl_BACKUPFILE):
19090         * m4/c-strtod.m4 (gl_C99_STRTOLD):
19091         * m4/canon-host.m4 (gl_CANON_HOST):
19092         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
19093         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
19094         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
19095         * m4/cloexec.m4 (gl_CLOEXEC):
19096         * m4/close-stream.m4 (gl_CLOSE_STREAM):
19097         * m4/closeout.m4 (gl_CLOSEOUT):
19098         * m4/dirfd.m4 (gl_FUNC_DIRFD):
19099         * m4/dirname.m4 (gl_DIRNAME):
19100         * m4/exclude.m4 (gl_EXCLUDE):
19101         * m4/exitfail.m4 (gl_EXITFAIL):
19102         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
19103         * m4/file-type.m4 (gl_FILE_TYPE):
19104         * m4/filemode.m4 (gl_FILEMODE):
19105         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
19106         * m4/fpending.m4 (gl_FUNC_FPENDING):
19107         * m4/fprintftime.m4 (gl_FPRINTFTIME):
19108         * m4/fts.m4 (gl_FUNC_FTS):
19109         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
19110         * m4/getdate.m4 (gl_GETDATE):
19111         * m4/gethrxtime.m4 (gl_GETHRXTIME):
19112         * m4/getpagesize.m4 (gl_GETPAGESIZE):
19113         * m4/getpass.m4 (gl_FUNC_GETPASS):
19114         * m4/gettime.m4 (gl_GETTIME):
19115         * m4/getugroups.m4 (gl_GETUGROUPS):
19116         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
19117         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
19118         * m4/hard-locale.m4 (gl_HARD_LOCALE):
19119         * m4/hash.m4 (gl_HASH):
19120         * m4/idcache.m4 (gl_IDCACHE):
19121         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
19122         * m4/lchown.m4 (gl_FUNC_LCHOWN):
19123         * m4/long-options.m4 (gl_LONG_OPTIONS):
19124         * m4/lstat.m4 (gl_FUNC_LSTAT):
19125         * m4/md5.m4 (gl_MD5):
19126         * m4/memcasecmp.m4 (gl_MEMCASECMP):
19127         * m4/memcoll.m4 (gl_MEMCOLL):
19128         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
19129         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
19130         * m4/memxor.m4 (gl_MEMXOR):
19131         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
19132         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
19133         * m4/modechange.m4 (gl_MODECHANGE):
19134         * m4/mountlist.m4 (gl_MOUNTLIST):
19135         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
19136         * m4/openat.m4 (gl_FUNC_OPENAT):
19137         * m4/pathmax.m4 (gl_PATHMAX):
19138         * m4/physmem.m4 (gl_PHYSMEM):
19139         * m4/posixtm.m4 (gl_POSIXTM):
19140         * m4/posixver.m4 (gl_POSIXVER):
19141         * m4/quote.m4 (gl_QUOTE):
19142         * m4/quotearg.m4 (gl_QUOTEARG):
19143         * m4/readtokens.m4 (gl_READTOKENS):
19144         * m4/readutmp.m4 (gl_READUTMP):
19145         * m4/regex.m4 (gl_REGEX):
19146         * m4/safe-read.m4 (gl_SAFE_READ):
19147         * m4/safe-write.m4 (gl_SAFE_WRITE):
19148         * m4/same.m4 (gl_SAME):
19149         * m4/save-cwd.m4 (gl_SAVE_CWD):
19150         * m4/savedir.m4 (gl_SAVEDIR):
19151         * m4/settime.m4 (gl_SETTIME):
19152         * m4/sha1.m4 (gl_SHA1):
19153         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
19154         * m4/stat-macros.m4 (gl_STAT_MACROS):
19155         * m4/stat-time.m4 (gl_STAT_TIME):
19156         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
19157         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
19158         * m4/strdup.m4 (gl_FUNC_STRDUP):
19159         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
19160         * m4/strndup.m4 (gl_FUNC_STRNDUP):
19161         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
19162         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
19163         * m4/time_r.m4 (gl_TIME_R):
19164         * m4/timespec.m4 (gl_TIMESPEC):
19165         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
19166         * m4/unlinkdir.m4 (gl_UNLINKDIR):
19167         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
19168         * m4/userspec.m4 (gl_USERSPEC):
19169         * m4/utimecmp.m4 (gl_UTIMECMP):
19170         * m4/utimens.m4 (gl_UTIMENS):
19171         * m4/xalloc.m4 (gl_XALLOC):
19172         * m4/xgetcwd.m4 (gl_XGETCWD):
19173         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
19174         * m4/xreadlink.m4 (gl_XREADLINK):
19175         * m4/xstrtod.m4 (gl_XSTRTOD):
19176         * m4/yesno.m4 (gl_YESNO):
19177         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
19178         to get the necessary .h files and whatnot.
19179
19180 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
19181             Bruno Haible  <bruno@clisp.org>
19182
19183         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
19184         /bin/sh understanding of '!' conditional negation.
19185
19186 2006-08-21  Jim Meyering  <jim@meyering.net>
19187
19188         * modules/openat (Depends-on): Really alphabetize.
19189
19190         * modules/acl (Depends-on): Add error and quote.
19191
19192         * check-module (find_included_lib_files): Add at-func.c to the
19193         ok-to-include-more-than-once white list.
19194
19195         * modules/openat (Depends-on): Add lstat.  Alphabetize.
19196
19197 2006-08-21  Bruno Haible  <bruno@clisp.org>
19198
19199         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
19200         Emit a pkgdata_DATA variable only if some snippets add contents to it.
19201         Reported by Martin Lambers <marlam@marlam.de>.
19202
19203 2006-08-21  Bruno Haible  <bruno@clisp.org>
19204
19205         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
19206         specify an installation location, don't emit a noinst_LIBRARIES or
19207         noinst_LTLIBRARIES assignment.
19208
19209 2006-08-21  Bruno Haible  <bruno@clisp.org>
19210
19211         BeOS portability.
19212         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
19213         BeOS has mbrtowc() but no <wctype.h>.
19214
19215 2006-08-21  Bruno Haible  <bruno@clisp.org>
19216
19217         BeOS portability.
19218         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
19219         exist.
19220
19221 2006-08-21  Bruno Haible  <bruno@clisp.org>
19222
19223         BeOS portability.
19224         * lib/mbchar.h: Include <wctype.h> only if it exists.
19225
19226 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
19227
19228         Remove files that are no longer needed by their respective modules.
19229         * m4/obstack.m4: Remove.
19230         * m4/strerror_r.m4: Remove.
19231         * m4/uint32_t.m4: Remove.
19232         * m4/uintptr_t.m4: Remove.
19233         * m4/ullong_max.m4: Remove.
19234         * m4/xstrtoimax.m4: Remove.
19235         * m4/xstrtoumax.m4: Remove.
19236
19237         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
19238         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
19239         dependencies now capture this.
19240
19241         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
19242         Do not use AC_LIBSOURCES, since gnulib modules now do this.
19243         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
19244         * m4/human.m4 (gl_HUMAN): Likewise.
19245         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
19246         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
19247
19248         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
19249
19250         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
19251         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
19252         stdint.
19253         * m4/human.m4 (gl_HUMAN): Likewise.
19254         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
19255         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
19256         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
19257         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
19258         * m4/xstrtol (gl_XSTRTOL): Likewise.
19259
19260         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
19261         AC_TYPE_LONG_LONG_INT.
19262         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
19263         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
19264         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
19265         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
19266
19267         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
19268         on stdbool.
19269
19270         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
19271         (gl_PREREQ_XSTRTOUL): Remove.
19272
19273         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
19274
19275         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
19276         mode.
19277
19278 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
19279
19280         Add and change modules to make it easier for coreutils to use
19281         gnulib-tool.
19282         * modules/backupfile (Files): Remove m4/d-ino.m4.
19283         (Depends-on): Add d-ino.
19284         * modules/cycle-check (Depends-on): Add stdint.
19285         (lib_SOURCES): Add cycle-check.h.
19286         * modules/d-ino: New module.
19287         * modules/d-type: New module.
19288         * modules/error (Files): Remove m4/strerror_r.m4.
19289         * modules/filemode (Files): Add m4/st_dm_mode.m4.
19290         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
19291         m4/inttypes_h.m4, m4/uintmax_t.m4.
19292         (Depends-on): Add stdint.
19293         (lib_SOURCES): Add fsusage.h.
19294         * modules/getcwd (Files): Remove d-ino.m4.
19295         (Depends-on): Add d-ino.
19296         * modules/getndelim2 (Depends-on): Add stdint.
19297         * modules/glob (Files): Remove m4/d-type.m4.
19298         (Depends-on): Add d-type.
19299         * modules/host-os: New module.
19300         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
19301         m4/inttypes_h.m4, m4/uintmax_t.m4.
19302         * Depends-on: Add stdint.
19303         (lib_SOURCES): Add human.h.
19304         * modules/inttostr (Files): Remove m4/intmax_t.m4,
19305         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
19306         m4/uintmax_t.m4, m4/ulonglong.m4.
19307         (Depends-on): Add stdint.
19308         (EXTRA_DIST): Add inttostr.h.
19309         * modules/lchmod: New module.
19310         * modules/link-follow: New module.
19311         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
19312         (Depends-on): Add lchmod.
19313         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
19314         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
19315         (Depends-on): Add stdint.
19316         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
19317         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
19318         (Depends-on): Add stdint.
19319         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
19320         * modules/perl: New module.
19321         * modules/regex (Depends-on): Add stdint.
19322         * modules/rmdir-errno: New module.
19323         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
19324         m4/intmax_t.m4.
19325         (Depends-on): Add stdint.
19326         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
19327         m4/uintmax_t.m4.
19328         (Depends-on): Add stdint.
19329         * modules/unlink-busy: New module.
19330         * modules/utimecmp (Depends-on): Add stdint.
19331         * modules/uptime: New module.
19332         * modules/winsz-ioctl: New module.
19333         * modules/winsz-termios: New module.
19334         * modules/xnanosleep (Depends-on): Add nanosleep.
19335         * modules/ullong_max: Remove.
19336         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
19337         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
19338         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
19339         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
19340         (Depends-on): Add inttypes.
19341         (lib_SOURCES): Add xstrtol.h.
19342         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
19343         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
19344         * MODULES.html.sh: Move 'assert' into the assert section.
19345         Move 'dummy' into the linking section.
19346         Remove ullong_max.
19347         Add section for compatibility checks for POSIX:2001 functions,
19348         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
19349         winsz-ioctl, and winsz-termios into it.
19350         Add lchmod.
19351         Add top-level Misc section and put host-os, perl, and uptime
19352         into it.
19353
19354 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
19355
19356         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
19357         now assume the stdint module.  Do not include inttypes.h.
19358         * lib/fsusage.h: Likewise.
19359         * lib/getndelim2.c: Likewise.
19360         * lib/human.h: Likewise.
19361         * lib/inttostr.h: Likewise.
19362         * lib/obstack.c: Likewise.
19363         * lib/regex_internal.h: Likewise.
19364         * lib/tempname.c: Likewise.
19365         * lib/utimecmp.c: Likewise.
19366         * lib/xstrtol.h: Likewise.
19367
19368         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
19369
19370         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
19371         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
19372         * lib/xtime.h: Likewise.
19373
19374 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
19375
19376         * modules/openat (Files): Add lib/fchmodat.c.
19377         Fixes problem reported by Jay Youngman.
19378
19379 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
19380
19381         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
19382         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
19383
19384 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
19385             Bruno Haible  <bruno@clisp.org>
19386
19387         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
19388         and is a script that invokes bison. Tighten the code. Add comments.
19389
19390 2006-08-18  Jim Meyering  <jim@meyering.net>
19391
19392         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
19393         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
19394         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
19395         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
19396
19397 2006-08-18  Bruno Haible  <bruno@clisp.org>
19398
19399         * modules/bison-i18n: New file.
19400         * MODULES.html.sh (Internationalization functions): Add it.
19401
19402 2006-08-18  Bruno Haible  <bruno@clisp.org>
19403
19404         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
19405         sys/statvfs.h. When getmntinfo was found, check its declaration and
19406         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
19407
19408 2006-08-18  Bruno Haible  <bruno@clisp.org>
19409
19410         * m4/bison-i18n.m4: New file, from bison.
19411
19412 2006-08-18  Bruno Haible  <bruno@clisp.org>
19413
19414         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
19415         (ME_DUMMY): Treat "kernfs" as a dummy.
19416         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
19417
19418 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
19419
19420         Update from coreutils.
19421
19422         2006-08-15  Jim Meyering  <jim@meyering.net>
19423
19424         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
19425
19426         2006-01-17  Jim Meyering  <jim@meyering.net>
19427
19428         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
19429
19430         2006-01-11  Jim Meyering  <jim@meyering.net>
19431
19432         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
19433         Check for the lchmod function.
19434
19435 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
19436
19437         Update from coreutils.
19438
19439         * lib/__fpending.h: Add copyright notice.
19440         * lib/fprintftime.h: Likewise.
19441         * lib/savedir.c: Use (C) in copyright notice.
19442         * lib/savedir.h: Likewise.
19443
19444         2006-08-15  Jim Meyering  <jim@meyering.net>
19445
19446         * lib/at-func.c: New file, with the logic of all emulated at-functions.
19447         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
19448         in support of the EXPECTED_ERRNO macro.
19449         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
19450         definitions.  Instead, define the appropriate symbols and include
19451         "at-func.c".
19452         * lib/mkdirat.c (mkdirat): Likewise.
19453         * lib/fchmodat.c (fchmodat): Likewise.
19454         (ENOSYS): Remove definition.
19455         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
19456         it.  Don't include "unistd--.h" -- it wasn't ever used.
19457
19458         2006-01-17  Jim Meyering  <jim@meyering.net>
19459
19460         Rewrite fts.c not to change the current working directory,
19461         by using openat, fstatat, fdopendir, etc..
19462
19463         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
19464         (HAVE_OPENAT_SUPPORT): Define.
19465         [_LIBC] (fchdir): Don't undef or define; no longer used.
19466         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
19467         Now, this `function' always succeeds, and consumes its file descriptor
19468         parameter -- so callers must not close such FDs.  Update callers.
19469         (diropen_fd, opendirat, cwd_advance_fd): New functions.
19470         (diropen): Add parameter, SP.  Adjust all callers.
19471         Implement using diropen_fd, rather than open.
19472         (fts_open): Initialize new member, fts_cwd_fd.
19473         Remove fts_rft-setting code.
19474         (fts_close): Close fts_cwd_fd, if necessary.
19475         (__opendir2): Define in terms of opendir or opendirat,
19476         depending on whether the FST_NOCHDIR flag is set.
19477         (fts_build): Since fts_safe_changedir consumes its FD, and since
19478         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
19479         and close the dup'd file descriptor upon failure.
19480         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
19481         (fts_safe_changedir): Tweak semantics to reflect that this function
19482         now calls cwd_advance_fd and hence consumes its FD argument.
19483         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
19484         [struct FTS] (fts_rft): Remove now-unused member.
19485         [struct FTS] (fts_cycle.state): Improve comment.
19486
19487         * lib/openat.c (openat_needs_fchdir): New function.
19488         * lib/openat.h (openat_needs_fchdir): Declare it.
19489
19490 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
19491
19492         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
19493         Problem and fix reported by Pádraig Brady in
19494         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
19495
19496 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
19497
19498         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
19499
19500 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
19501
19502         * lib/memcoll.c (memcoll): Optimize for the common case where the
19503         arguments are bytewise equal.
19504
19505 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
19506
19507         * doc/regexprops-generic.texi: Add a copyright notice.
19508
19509 2006-08-15  Bruno Haible  <bruno@clisp.org>
19510
19511         * modules/tmpdir (License): Change to LGPL.
19512
19513 2006-08-15  Bruno Haible  <bruno@clisp.org>
19514
19515         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
19516         module.
19517
19518 2006-08-14  Simon Josefsson  <jas@extundo.com>
19519
19520         * config/srclist.txt: Add gnupload.
19521
19522 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
19523
19524         Change copyright notice from LGPL 2 to GPL 2, since that's the
19525         standard form used in the gnulib repository.
19526         * tests/test-lock.c: Likewise.
19527         * tests/test-stdint.c: Likewise.
19528         * tests/test-tls.c: Likewise.
19529
19530         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
19531         prelude-manager.  User shorter URLs for GNU projects, without '?'.
19532         Add copyright notice.
19533
19534         * check-module: Add copyright notice.  Output a copyright
19535         notice if "--version" is specified.
19536         * modules/COPYING: New file.
19537         * tests/test-getaddrinfo.c: Add copyright notice.
19538         * tests/test-verify.c: Likewise.
19539
19540 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
19541
19542         Change copyright notice from LGPL 2 to GPL 2, since that's the
19543         standard form used in the gnulib repository.
19544         * lib/lock.c: LGPL -> GPL.
19545         * lib/lock.h: Likewise.
19546         * lib/strnlen1.c: Likewise.
19547         * lib/strnlen1.h: Likewise.
19548         * lib/tls.c: Likewise.
19549         * lib/tls.h: Likewise.
19550         * lib/tmpdir.c: Likewise.
19551
19552         * lib/TODO: Remove; this belongs only in coreutils.
19553
19554 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
19555
19556         Add copyright notices to long-enough files that lack them, since
19557         otherwise the files aren't clearly free.  Use the same notice that
19558         getdate.texi already uses.
19559         * doc/alloca-opt.texi: Add copyright notice.
19560         * doc/alloca.texi: Likewise.
19561         * doc/ctime.texi: Likewise.
19562         * doc/functions.texi: Likewise.
19563         * doc/gcd.texi: Likewise.
19564         * doc/gnulib-tool.texi: Likewise.
19565         * doc/inet_ntoa.texi: Likewise.
19566         * doc/visibility.texi: Likewise.
19567
19568         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
19569         * doc/quote.texi: Add copyright notice.
19570
19571         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
19572         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
19573         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
19574         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
19575         is now obsolete, and give a pointer to the Sun list.
19576         Add copyright notice.
19577
19578 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
19579
19580         * config/srclistvars.sh: Add copyright notice.
19581
19582 2006-08-14  Eric Blake  <ebb9@byu.net>
19583
19584         Import the following change from libc:
19585
19586         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
19587
19588         Upstream bug 2997.
19589         * lib/misc/error.c: Add space between program name and message if file
19590         name is missing.
19591
19592 2006-08-12  Karl Berry  <karl@gnu.org>
19593
19594         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
19595         remove, these originate in gnulib now.
19596
19597 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19598
19599         * doc/Makefile (standards.info standards.html standards.dvi):
19600         Also depend on make-stds.texi.
19601
19602 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
19603
19604         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
19605         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
19606
19607         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
19608         in wchar_t.  Problem reported by Eric Blake.
19609
19610         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
19611         LEN is smaller than SIZE.  Suggested by Bruno Haible.
19612         Also, help the compiler to keep LEN in a register.
19613
19614 2006-08-11  Eric Blake  <ebb9@byu.net>
19615
19616         * users.txt: Sort.  Add tar.
19617
19618 2006-08-11  Bruno Haible  <bruno@clisp.org>
19619
19620         * users.txt: New file.
19621
19622 2006-08-11  Bruno Haible  <bruno@clisp.org>
19623
19624         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
19625         before <wchar.h>. Needed for OSF/1 and BSD/OS.
19626
19627 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
19628
19629         * modules/snprintf (Depends-on): Remove minmax.
19630         (Maintainer): Add self and Bruno.
19631
19632 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
19633
19634         * lib/.cppi-disable: Add snprintf.h, socket_.h.
19635         * lib/snprintf.c: Include <errno.h> and <limits.h>.
19636         (EOVERFLOW): Define if the system does not.
19637         Do not include "minmax.h"; it wasn't used.
19638         (snprintf): Don't assume size_t promotes to an unsigned type.
19639         Fix bug when generated string was too long for the buffer: the
19640         buffer's contents are supposed to be the initial prefix of the
19641         output.  Don't assume vasnprintf returns EOVERFLOW if the size
19642         exceeds INT_MAX; do the check ourselves.
19643
19644         Import the following changes from libc:
19645
19646         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
19647
19648         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
19649         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
19650         set wc to the byte which couldn't be converted.
19651         (re_string_reconstruct): Don't clear valid_raw_len before calling
19652         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
19653         tip_context using re_string_context_at.
19654
19655         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
19656
19657         * lib/posix/regex.h: g++ still cannot handled [restrict].
19658
19659         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
19660
19661         * lib/posix/regex.h: Remove special handling for VMS.
19662
19663 2006-08-10  Jim Meyering  <jim@meyering.net>
19664
19665         * modules/same-inode: New module.
19666         * modules/dev-ino: New module.
19667         * modules/cycle-check: Depend on these modules, rather than simply
19668         including their .h files.
19669         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
19670         required via m4/cycle-check.m4.
19671         * modules/same: Depend on new same-inode module, rather than
19672         including same-inode.h.
19673         * modules/chdir-safer: New file.
19674
19675         * modules/chown (Depends-on): Add stat-macros.
19676
19677 2006-08-10  Jim Meyering  <jim@meyering.net>
19678
19679         * m4/cycle-check.m4: New file.
19680         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
19681         * m4/dev-ino.m4, m4/same-inode.m4: New files.
19682
19683 2006-08-10  Eric Blake  <ebb9@byu.net>
19684
19685         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
19686         in from original proposal.
19687
19688 2006-08-10  Eric Blake  <ebb9@byu.net>
19689         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19690
19691         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
19692         namespace.
19693
19694 2006-08-10  Bruno Haible  <bruno@clisp.org>
19695
19696         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
19697         as well.
19698
19699 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
19700
19701         Sync from coreutils.
19702
19703         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
19704
19705         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
19706         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
19707
19708 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
19709
19710         * modules/restrict: Remove; no longer needed now that we assume
19711         Autoconf 2.59 or later.
19712         * MODULES.html.sh: Remove 'restrict'.
19713         * modules/argp (Depends-on): Remove 'restrict'.
19714         * modules/base64 (Depends-on): Likewise.
19715         * modules/gc (Depends-on): Likewise.
19716         * modules/getaddrinfo (Depends-on): Likewise.
19717         * modules/glob (Depends-on): Likewise.
19718         * modules/inet_ntop (Depends-on): Likewise.
19719         * modules/inet_pton (Depends-on): Likewise.
19720         * modules/memxor (Depends-on): Likewise.
19721         * modules/regex (Depends-on): Likewise.
19722         * modules/strtok_r (Depends-on): Likewise.
19723         * modules/time_r (Depends-on): Likewise.
19724
19725 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
19726
19727         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
19728         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
19729         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
19730         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
19731         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
19732         * m4/memxor.m4 (gl_MEMXOR): Likewise.
19733         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
19734         gl_C_RESTRICT replaced by AC_C_RESTRICT.
19735
19736         Merge from coreutils.
19737         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
19738         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
19739         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
19740         * m4/time_r.m4 (gl_TIME_R): Likewise.
19741
19742 2006-08-09  Karl Berry  <karl@gnu.org>
19743
19744         * config/srclist.txt: no more gettext-tools, per Bruno.
19745
19746 2006-08-08  Eric Blake  <ebb9@byu.net>
19747
19748         * modules/verror: New module.
19749         * MODULES.html.sh: Document it.
19750
19751 2006-08-08  Eric Blake  <ebb9@byu.net>
19752
19753         * lib/verror.h, lib/verror.c: New files.
19754
19755 2006-08-08  Eric Blake  <ebb9@byu.net>
19756
19757         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
19758         verror_at_line output complies with GNU Coding Standards even when
19759         file is NULL.
19760
19761 2006-08-07  Bruno Haible  <bruno@clisp.org>
19762
19763         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
19764         versions of AIX.
19765         Reported by Ralf Wildenhues.
19766
19767 2006-08-07  Bruno Haible  <bruno@clisp.org>
19768
19769         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
19770         in an AC_DEFUN. Needed so that the autoconf snippets can use
19771         AC_REQUIRE.
19772
19773 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19774
19775         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
19776         Initialize pkgdata_DATA.
19777         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
19778         overriding it.
19779
19780 2006-08-06  Eric Blake  <ebb9@byu.net>
19781
19782         * lib/error.h: Fold in some upstream changes from glibc.
19783         * lib/error.c: Likewise.
19784
19785 2006-08-04  Bruno Haible  <bruno@clisp.org>
19786
19787         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
19788         Make the mostlyclean-local rule depend on mostlyclean-generic.
19789         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
19790
19791 2006-07-31  Bruno Haible  <bruno@clisp.org>
19792
19793         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
19794         <stdlib.h>, <string.h>.
19795
19796 2006-07-30  Bruno Haible  <bruno@clisp.org>
19797
19798         * modules/readlink (License): Change to LGPL.
19799
19800 2006-07-30  Bruno Haible  <bruno@clisp.org>
19801
19802         * modules/javaversion (Makefile.am): Distribute javaversion.java and
19803         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
19804         set PKGDATADIR to point to it.
19805
19806 2006-07-30  Bruno Haible  <bruno@clisp.org>
19807
19808         * modules/csharpexec (configure.ac): Comment out macro invocation.
19809         * modules/javaexec (configure.ac): Likewise.
19810         * modules/javacomp-script (configure.ac): Likewise.
19811
19812         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
19813
19814 2006-07-30  Bruno Haible  <bruno@clisp.org>
19815
19816         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
19817         linked-list.
19818
19819 2006-07-30  Bruno Haible  <bruno@clisp.org>
19820
19821         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
19822
19823 2006-07-30  Bruno Haible  <bruno@clisp.org>
19824
19825         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
19826         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
19827         get removed.
19828
19829 2006-07-29  Bruno Haible  <bruno@clisp.org>
19830
19831         Make it possible for gnulib-tool to work with locally modified or
19832         augmented gnulib repositories.
19833         * gnulib-tool (func_usage): Document --local-dir option.
19834         (local_gnulib_dir): New variable.
19835         Handle --local-dir option.
19836         (func_lookup_file): New function.
19837         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
19838         (func_get_description, func_get_filelist, func_get_description,
19839         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
19840         func_get_automake_snippet, func_get_include_directive,
19841         func_get_license, func_get_maintainer): Use func_lookup_file.
19842         (func_import, func_create_testdir): Use func_lookup_file.
19843
19844 2006-07-29  Bruno Haible  <bruno@clisp.org>
19845
19846         * modules/setenv (Depends-on): Add unistd.
19847
19848 2006-07-29  Bruno Haible  <bruno@clisp.org>
19849
19850         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
19851
19852 2006-07-29  Bruno Haible  <bruno@clisp.org>
19853
19854         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
19855
19856 2006-07-29  Bruno Haible  <bruno@clisp.org>
19857
19858         * gnulib-tool (import, update): If there is no Makefile.am, look at
19859         aclocal.m4, instead of bailing out.
19860
19861 2006-07-29  Bruno Haible  <bruno@clisp.org>
19862
19863         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
19864         Categorize the options by when they are useful.
19865
19866 2006-07-29  Bruno Haible  <bruno@clisp.org>
19867
19868         * gnulib-tool (func_usage): Document option --no-libtool.
19869         Handle option --no-libtool.
19870         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
19871         for changed semantics of $libtool variable.
19872         (func_import): Likewise. If libtool is not used, show this through
19873         an option --no-libtool.
19874         (func_create_testdir): Update.
19875
19876 2006-07-29  Bruno Haible  <bruno@clisp.org>
19877
19878         * gnulib-tool (func_import): Extend error message about missing
19879         --doc-base.
19880
19881 2006-07-29  Bruno Haible  <bruno@clisp.org>
19882
19883         * gnulib-tool (func_import): Don't create the $docbase directory if
19884         there is no file to store there.
19885
19886 2006-07-29  Bruno Haible  <bruno@clisp.org>
19887
19888         * gnulib-tool (autoconf_minversion): If a --dir option is given and
19889         relevant, look for configure.ac there, not in the current directory.
19890         Also use a simple search for AC_PREREQ, not "autoconf --trace".
19891
19892 2006-07-29  Bruno Haible  <bruno@clisp.org>
19893
19894         * gnulib-tool (SORT): New variable.
19895         (func_usage): Undocument --assume-autoconf option.
19896         Remove --assume-autoconf option handling.
19897         (autoconf_minversion): Determine from the contents of configure.ac.
19898         (func_import): Remove autoconf_minversion handling.
19899         Suggested by Eric Blake.
19900
19901 2006-07-29  Bruno Haible  <bruno@clisp.org>
19902
19903         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
19904
19905 2006-07-29  Bruno Haible  <bruno@clisp.org>
19906
19907         * config/srclist.txt (*setenv.[ch]): Remove rules.
19908
19909 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19910
19911         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
19912
19913 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19914
19915         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
19916         arpa/inet.h.
19917
19918 2006-07-28  Simon Josefsson  <jas@extundo.com>
19919
19920         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
19921         * modules/inet_pton (Depends-on): Likewise.
19922
19923 2006-07-28  Simon Josefsson  <jas@extundo.com>
19924
19925         * m4/netinet_in_h.m4: New file.
19926
19927 2006-07-28  Simon Josefsson  <jas@extundo.com>
19928
19929         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
19930         #include's.
19931
19932 2006-07-28  Simon Josefsson  <jas@extundo.com>
19933
19934         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
19935         #include's.
19936
19937 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
19938
19939         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
19940         setgid on directories only if they set these bits.
19941         * lib/modechange.h: Remove obsolete comment about masks.
19942
19943 2006-07-28  Eric Blake  <ebb9@byu.net>
19944
19945         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
19946         macro expansion.
19947
19948 2006-07-28  Bruno Haible  <bruno@clisp.org>
19949
19950         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
19951
19952 2006-07-28  Bruno Haible  <bruno@clisp.org>
19953
19954         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
19955
19956 2006-07-28  Bruno Haible  <bruno@clisp.org>
19957
19958         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
19959         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
19960         Define fallbacks.
19961         Avoids link error on FreeBSD 4.x.
19962         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
19963
19964         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
19965         encoding.
19966         * lib/mbswidth.c (iswcntrl): Likewise.
19967
19968 2006-07-27  Bruno Haible  <bruno@clisp.org>
19969
19970         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
19971         test.
19972
19973 2006-07-27  Bruno Haible  <bruno@clisp.org>
19974
19975         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
19976         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
19977         defined.
19978
19979 2006-07-26  Eric Blake  <ebb9@byu.net>
19980
19981         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
19982
19983 2006-07-26  Eric Blake  <ebb9@byu.net>
19984
19985         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
19986         like mingw that lack mkstemp.
19987         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
19988         avoid compilation warning on mingw.
19989
19990 2006-07-26  Bruno Haible  <bruno@clisp.org>
19991
19992         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
19993         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
19994         INT_FAST*_MIN, INTPTR_MIN.
19995
19996 2006-07-25  Bruno Haible  <bruno@clisp.org>
19997
19998         * modules/version-etc (Depends-on): Add stdarg.
19999
20000 2006-07-25  Bruno Haible  <bruno@clisp.org>
20001
20002         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
20003         complex commands.
20004
20005 2006-07-25  Bruno Haible  <bruno@clisp.org>
20006
20007         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
20008         defined in <stdarg.h> or config.h.
20009
20010 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
20011
20012         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
20013         (gl_STDIO_SAFER): Remove.
20014
20015 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
20016
20017         * MODULES.html.sh (File stream based Input/Output):
20018         Add fopen-safer, tmpfile-safer; remove stdio-safer.
20019         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
20020         * modules/fopen-safer, modules/tmpfile-safer: New files.
20021         * modules/stdio-safer: Remove.
20022
20023 2006-07-24  Bruno Haible  <bruno@clisp.org>
20024
20025         * modules/tmpdir: New file.
20026         * MODULES.html.sh (File system functions): Add it.
20027
20028 2006-07-24  Bruno Haible  <bruno@clisp.org>
20029
20030         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
20031         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
20032
20033 2006-07-24  Bruno Haible  <bruno@clisp.org>
20034
20035         * modules/clean-temp: New file.
20036
20037 2006-07-24  Bruno Haible  <bruno@clisp.org>
20038
20039         * m4/tmpdir.m4: New file, from GNU gettext.
20040
20041 2006-07-24  Bruno Haible  <bruno@clisp.org>
20042
20043         * lib/tmpdir.h: New file, from GNU gettext.
20044         * lib/tmpdir.c: New file, from GNU gettext.
20045
20046 2006-07-24  Bruno Haible  <bruno@clisp.org>
20047
20048         * lib/clean-temp.h: New file, from GNU gettext.
20049         * lib/clean-temp.c: New file, from GNU gettext.
20050
20051 2006-07-23  Eric Blake  <ebb9@byu.net>
20052
20053         * modules/stdio-safer (Files): Add tmpfile-safer.c.
20054         (Depends-on): Add binary-io.
20055
20056 2006-07-23  Eric Blake  <ebb9@byu.net>
20057
20058         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
20059
20060 2006-07-23  Eric Blake  <ebb9@byu.net>
20061
20062         * lib/tmpfile-safer.c: New file.
20063         * lib/stdio-safer.h (fopen_safer): Add prototype.
20064         * lib/stdio--.h (tmpfile): Make safer.
20065
20066 2006-07-23  Bruno Haible  <bruno@clisp.org>
20067
20068         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
20069         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
20070         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
20071         gl_linked_remove_at): Use it.
20072
20073 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20074         and Simon Josefsson <jas@extundo.com>
20075
20076         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
20077
20078         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
20079
20080 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
20081
20082         * modules/close-stream: New file.
20083         * modules/closeout (Description): Make it clear that it exits
20084         with a diagnostic on error.
20085         (Depends-on): Add close-stream.  Remove fpending, stdbool.
20086         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
20087
20088 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
20089
20090         * m4/close-stream.m4: New file.
20091
20092 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
20093
20094         * lib/close-stream.c, lib/close-stream.h: New files.
20095
20096 2006-07-22  Bruno Haible  <bruno@clisp.org>
20097
20098         Merge from GNU gettext 0.15.
20099
20100         2006-05-01  Bruno Haible  <bruno@clisp.org>
20101
20102                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
20103
20104         2006-07-22  Bruno Haible  <bruno@clisp.org>
20105
20106                 * modules/javaversion: New file.
20107                 * MODULES.html.sh (Java): Add javaversion.
20108
20109         2006-03-12  Bruno Haible  <bruno@clisp.org>
20110
20111                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
20112
20113         2005-12-04  Bruno Haible  <bruno@clisp.org>
20114
20115                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
20116                 (untested).
20117
20118         2006-06-21  Bruno Haible  <bruno@clisp.org>
20119
20120                 Avoid warnings from recent versions of mcs.
20121                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
20122                 -o, -L, -r any more. Use options documented since mcs-1.0
20123                 instead. Similarly for -g.
20124
20125         2005-12-04  Bruno Haible  <bruno@clisp.org>
20126
20127                 * build-aux/csharpcomp.sh.in: Suffix for resources is
20128                 .resources, not .resource.
20129
20130         2005-07-09  Bruno Haible  <bruno@clisp.org>
20131
20132                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
20133                 add a .dll suffix.
20134                 Reported by Mark Junker <mjscod@gmx.de>.
20135
20136         2006-07-22  Bruno Haible  <bruno@clisp.org>
20137
20138                 * modules/gettext: Upgrade to gettext-0.15.
20139                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
20140                 m4/visibility.m4.
20141                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
20142
20143 2006-07-22  Bruno Haible  <bruno@clisp.org>
20144
20145         Merge from GNU gettext 0.15.
20146
20147         2006-03-25  Bruno Haible  <bruno@clisp.org>
20148
20149                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
20150
20151         2006-07-21  Bruno Haible  <bruno@clisp.org>
20152
20153                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
20154                 "1.1".
20155
20156         2006-05-09  Bruno Haible  <bruno@clisp.org>
20157
20158                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
20159                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
20160                 for the conftestver execution.
20161
20162         2006-05-01  Bruno Haible  <bruno@clisp.org>
20163
20164                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
20165                 optional target-version argument. Verify that the compiler
20166                 groks source of the specified source-version, or add -source
20167                 option as necessary. Verify that the compiler produces
20168                 bytecode in the specified target-version, or add -target and
20169                 -source options as necessary. Make the result of the test
20170                 available as variable CONF_JAVAC. Also log error output in
20171                 config.log.
20172
20173         2006-03-11  Bruno Haible  <bruno@clisp.org>
20174
20175                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
20176
20177         2006-05-09  Bruno Haible  <bruno@clisp.org>
20178
20179                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
20180                 CLASSPATH_SEPARATOR to a semicolon.
20181
20182         2006-03-12  Bruno Haible  <bruno@clisp.org>
20183
20184                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
20185                 available as variable CONF_JAVA, for subsequent autoconf
20186                 tests. Also log error output in config.log.
20187
20188         2006-07-19  Bruno Haible  <bruno@clisp.org>
20189
20190                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
20191                 that getline works on glibc2 systems. Needed to avoid trouble
20192                 in relocatable.c.
20193                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
20194
20195         2005-12-04  Bruno Haible  <bruno@clisp.org>
20196
20197                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
20198                 launcher (untested).
20199
20200         2005-12-04  Bruno Haible  <bruno@clisp.org>
20201
20202                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
20203
20204         2006-07-22  Bruno Haible  <bruno@clisp.org>
20205
20206                 * gettext.m4: Update from GNU gettext-0.15.
20207                 * nls.m4: Likewise.
20208                 * po.m4: Likewise.
20209                 * inttypes-pri.m4: Likewise.
20210                 * inttypes-h.m4: Renamed from inttypes.m4.
20211                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
20212
20213 2006-07-22  Bruno Haible  <bruno@clisp.org>
20214
20215         Merge from GNU gettext 0.15.
20216
20217         2005-07-05  Bruno Haible  <bruno@clisp.org>
20218
20219                 * printf-args.c (printf_fetchargs): Work around broken
20220                 definition of wint_t on mingw.
20221
20222         2005-02-12  Bruno Haible  <bruno@clisp.org>
20223
20224                 * xallocsa.h: Add extern "C" for C++.
20225
20226         2006-05-17  Bruno Haible  <bruno@clisp.org>
20227
20228                 Cygwin portability.
20229                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
20230
20231         2006-04-30  Bruno Haible  <bruno@clisp.org>
20232
20233                 * progreloc.c: Include <mach-o/dyld.h> if available.
20234                 (find_executable): Use _NSGetExecutablePath when possible.
20235
20236         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
20237
20238                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
20239                 function.
20240
20241         2005-12-29  Bruno Haible  <bruno@clisp.org>
20242
20243                 * progreloc.c (set_program_name_and_installdir): Fix
20244                 compilation error.
20245
20246         2005-12-04  Bruno Haible  <bruno@clisp.org>
20247
20248                 Cygwin portability.
20249                 * progreloc.c: Include <windows.h> also on Cygwin.
20250                 (find_executable): Add support for Cygwin.
20251                 (set_program_name_and_installdir): Handle also platforms with
20252                 nonempty EXEEXT.
20253
20254         2006-07-11  Bruno Haible  <bruno@clisp.org>
20255
20256                 * javacomp.c: Fix a comment.
20257                 Reported by Jim Meyering.
20258
20259         2006-04-30  Bruno Haible  <bruno@clisp.org>
20260
20261                 * javacomp.h (compile_java_class): Add source_version,
20262                 target_version arguments.
20263                 * javacomp.c: Rewritten to choose only a compiler that
20264                 respects the specified source_version and target_version.
20265
20266         2006-06-27  Bruno Haible  <bruno@clisp.org>
20267
20268                 Assume correct S_ISDIR macro.
20269                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
20270
20271         2006-07-22  Bruno Haible  <bruno@clisp.org>
20272
20273                 * javaversion.h: New file, from GNU gettext.
20274                 * javaversion.c: New file, from GNU gettext.
20275                 * javaversion.java: New file, from GNU gettext.
20276                 * javaversion.class: New file, from GNU gettext.
20277
20278         2006-05-17  Bruno Haible  <bruno@clisp.org>
20279
20280                 Cygwin portability.
20281                 * javaexec.c (execute_java_class): Test for jview program
20282                 also on Cygwin.
20283
20284         2006-04-09  Bruno Haible  <bruno@clisp.org>
20285
20286                 * fatal-signal.c: Don't include string.h.
20287                 (at_fatal_signal): Use a copying loop instead of memcpy.
20288
20289         2005-12-04  Bruno Haible  <bruno@clisp.org>
20290
20291                 * csharpexec.c: Add support for 'clix' launcher (untested).
20292                 (execute_csharp_using_sscli): New function.
20293                 (execute_csharp_program): Call it.
20294
20295         2006-06-21  Bruno Haible  <bruno@clisp.org>
20296
20297                 Avoid warnings from recent versions of mcs.
20298                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
20299                 -o, -L, -r any more. Use options documented since mcs-1.0
20300                 instead. Similarly for -g.
20301
20302         2005-07-09  Bruno Haible  <bruno@clisp.org>
20303
20304                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
20305                 add a .dll suffix.
20306                 Reported by Mark Junker <mjscod@gmx.de>.
20307
20308         2006-06-17  Bruno Haible  <bruno@clisp.org>
20309
20310                 * config.charset: Update for NetBSD 3.0.
20311
20312         2006-05-17  Bruno Haible  <bruno@clisp.org>
20313
20314                 Cygwin portability.
20315                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
20316
20317         2006-05-16  Bruno Haible  <bruno@clisp.org>
20318
20319                 * localcharset.c [CYGWIN]: Include <windows.h>.
20320                 (get_charset_aliases): For Cygwin, return the same CPxxx
20321                 aliases list as under WIN32.
20322                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
20323                 the environment variables. Fall back to GetACP().
20324
20325         2006-04-05  Bruno Haible  <bruno@clisp.org>
20326
20327                 * config.charset: Update Juan Manuel Guerrero's address.
20328
20329         2005-02-12  Bruno Haible  <bruno@clisp.org>
20330
20331                 * allocsa.h: Add extern "C" for C++.
20332
20333         2005-02-10  Bruno Haible  <bruno@clisp.org>
20334
20335                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
20336                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
20337
20338         2006-07-22  Bruno Haible  <bruno@clisp.org>
20339
20340                 * gettext.h: Update to GNU gettext-0.15.
20341
20342 2006-07-22  Bruno Haible  <bruno@clisp.org>
20343
20344         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
20345         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
20346         lib-prefix.m4, longdouble.m4, ssize_t.m4.
20347
20348 2006-07-21  Eric Blake  <ebb9@byu.net>
20349
20350         * modules/stdlib-safer: New file.
20351         * MODULES.html.sh (File stream based Input/Output): Add
20352         stdlib-safer.
20353
20354 2006-07-21  Eric Blake  <ebb9@byu.net>
20355
20356         * lib/stdlib-safer.h: New file from coreutils, required by
20357         stdlib--.h.
20358
20359 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
20360
20361         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
20362
20363 2006-07-20  Bruno Haible  <bruno@clisp.org>
20364
20365         * gnulib-tool: Recognize new option --assume-autoconf.
20366         (autoconf_minversion): New variable.
20367         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
20368
20369 2006-07-20  Bruno Haible  <bruno@clisp.org>
20370
20371         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
20372
20373 2006-07-19  Derek R. Price  <derek@ximbiot.com>
20374
20375         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
20376         Reindent and repaginate.
20377
20378 2006-07-19  Derek Price  <derek@ximbiot.com>
20379
20380         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
20381         Correct grammar.
20382
20383 2006-07-17  Bruno Haible  <bruno@clisp.org>
20384
20385         * modules/list: New file.
20386         * modules/array-list: New file.
20387         * modules/carray-list, modules/carray-list-tests: New files.
20388         * modules/linked-list, modules/linked-list-tests: New files.
20389         * modules/avltree-list, modules/avltree-list-tests: New files.
20390         * modules/rbtree-list, modules/rbtree-list-tests: New files.
20391         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
20392         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
20393         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
20394         * modules/oset: New file.
20395         * modules/array-oset: New file.
20396         * modules/avltree-oset, modules/avltree-oset-tests: New files.
20397         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
20398         * tests/test-carray_list.c: New file.
20399         * tests/test-linked_list.c: New file.
20400         * tests/test-avltree_list.c: New file.
20401         * tests/test-rbtree_list.c: New file.
20402         * tests/test-linkedhash_list.c: New file.
20403         * tests/test-avltreehash_list.c: New file.
20404         * tests/test-rbtreehash_list.c: New file.
20405         * tests/test-avltree_oset.c: New file.
20406         * tests/test-rbtree_oset.c: New file.
20407         * MODULES.html.sh (Container data structures): New section.
20408
20409 2006-07-17  Bruno Haible  <bruno@clisp.org>
20410
20411         * m4/gl_list.m4: New file.
20412
20413 2006-07-17  Bruno Haible  <bruno@clisp.org>
20414
20415         * lib/gl_list.h: New file.
20416         * lib/gl_list.c: New file.
20417         * lib/gl_array_list.h: New file.
20418         * lib/gl_array_list.c: New file.
20419         * lib/gl_carray_list.h: New file.
20420         * lib/gl_carray_list.c: New file.
20421         * lib/gl_linked_list.h: New file.
20422         * lib/gl_linked_list.c: New file.
20423         * lib/gl_anylinked_list1.h: New file.
20424         * lib/gl_anylinked_list2.h: New file.
20425         * lib/gl_avltree_list.h: New file.
20426         * lib/gl_avltree_list.c: New file.
20427         * lib/gl_anyavltree_list1.h: New file.
20428         * lib/gl_anyavltree_list2.h: New file.
20429         * lib/gl_rbtree_list.h: New file.
20430         * lib/gl_rbtree_list.c: New file.
20431         * lib/gl_anyrbtree_list1.h: New file.
20432         * lib/gl_anyrbtree_list2.h: New file.
20433         * lib/gl_anytree_list1.h: New file.
20434         * lib/gl_anytree_list2.h: New file.
20435         * lib/gl_linkedhash_list.h: New file.
20436         * lib/gl_linkedhash_list.c: New file.
20437         * lib/gl_anyhash_list1.h: New file.
20438         * lib/gl_anyhash_list2.h: New file.
20439         * lib/gl_avltreehash_list.h: New file.
20440         * lib/gl_avltreehash_list.c: New file.
20441         * lib/gl_rbtreehash_list.h: New file.
20442         * lib/gl_rbtreehash_list.c: New file.
20443         * lib/gl_anytreehash_list1.h: New file.
20444         * lib/gl_anytreehash_list2.h: New file.
20445
20446         * lib/gl_oset.h: New file.
20447         * lib/gl_oset.c: New file.
20448         * lib/gl_array_oset.h: New file.
20449         * lib/gl_array_oset.c: New file.
20450         * lib/gl_avltree_oset.h: New file.
20451         * lib/gl_avltree_oset.c: New file.
20452         * lib/gl_rbtree_oset.h: New file.
20453         * lib/gl_rbtree_oset.c: New file.
20454         * lib/gl_anytree_oset.h: New file.
20455
20456 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
20457
20458         * m4/mkancesdirs.m4: New file.
20459         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
20460         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
20461         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
20462         it.
20463
20464 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
20465
20466         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
20467         * lib/mkancesdirs.h: New files.
20468         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
20469         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
20470         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
20471         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
20472         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
20473         callers changed.  Revamp internals significantly, by not
20474         attempting to create directories that are temporarily more
20475         permissive than the final results.  Do not attempt to use
20476         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
20477         This removes some race conditions, fixes some bugs, and simplifies
20478         things.  Use new dirchownmod function to do owner and mode changes.
20479         * lib/mkdir-p.h: Likewise.
20480         * lib/modechange.c (octal_to_mode): New function.
20481         (struct mode_change): New member mentioned.
20482         (make_node_op_equals): New arg mentioned.  All callers changed.
20483         (mode_compile): Keep track of which mode bits the user has explicitly
20484         mentioned.
20485         (mode_adjust): New arg DIR, so that we implement the X op correctly.
20486         New arg PMODE_BITS, to keep track of which mode bits the user
20487         mentioned; it treats S_ISUID and S_ISGID speciall.
20488         All callers changed.
20489         * lib/modechange.h: Likewise.
20490
20491 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
20492
20493         * MODULES.html.sh: Add mkancestors.
20494         * modules/mkancesdirs: New module.
20495         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
20496         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
20497         The chdir-safer and afs files are now orphans; I'll remove them
20498         unless someone speaks up.
20499         Add lib/dirchownmod.c, lib/dirchownmod.h.
20500         (Depends-on): Remove alloca, chown, save-cwd, dirname.
20501         Add lchown, mkancesdirs.
20502         (Maintainer): Add self.
20503
20504 2006-07-15  Karl Berry  <karl@gnu.org>
20505
20506         * gnulib-tool: help message wording/arrangement.
20507
20508 2006-07-14  Simon Josefsson  <jas@extundo.com>
20509
20510         * doc/gnulib.texi (Libtool and Windows): New section.
20511
20512 2006-07-12  Simon Josefsson  <jas@extundo.com>
20513
20514         * modules/gendocs (License): Fix license, approved by Karl.
20515
20516 2006-07-12  Eric Blake  <ebb9@byu.net>
20517
20518         * MODULES.html.sh: Add gendocs.
20519
20520 2006-07-11  Eric Blake  <ebb9@byu.net>
20521
20522         * modules/fdl: New module, to install doc/fdl.texi.
20523         * MODULES.html.sh: Add new section for documentation modules.
20524         * gnulib-tool: Avoid space-tab.
20525         (--doc-base): New option, to manage files from doc.
20526
20527 2006-07-11  Eric Blake  <ebb9@byu.net>
20528
20529         * m4/absolute-header.m4: Fix comments to match recent change.
20530
20531 2006-07-11  Eric Blake  <ebb9@byu.net>
20532
20533         * gnulib-tool: List --doc-base before --tests-base.
20534
20535 2006-07-11  Derek R. Price  <derek@ximbiot.com>
20536
20537         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
20538
20539 2006-07-11  Bruno Haible  <bruno@clisp.org>
20540
20541         * README: Mention where to put documentation.
20542
20543 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20544
20545         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
20546
20547 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
20548
20549         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
20550         to stdint.m4.
20551
20552 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
20553
20554         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
20555         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
20556         "no/such/file/stdint.h" when there is no such file, so that
20557         the resulting C code can be parsed by dodgy compilers.
20558         Problems reported by Bob Proulx.
20559
20560 2006-07-10  Derek R. Price  <derek@ximbiot.com>
20561
20562         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
20563         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
20564         macros into the GNU _D_EXACT_NAMLEN.
20565         * lib/savedir.c:  Likewise.
20566         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
20567
20568 2006-07-10  Derek R. Price  <derek@ximbiot.com>
20569         and Paul Eggert  <eggert@cs.ucla.edu>
20570
20571         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
20572         * m4/savedir.m4:
20573         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
20574         macros into the GNU _D_EXACT_NAMLEN.
20575
20576 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
20577
20578         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
20579         around the absolute name, to work around a problem with the HP-UX
20580         11.23 native C compiler, reported by Bob Proulx.
20581
20582 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
20583
20584         * doc/maintain.texi, make-stds.texi: Sync from
20585         <http://savannah.gnu.org/projects/gnustandards>.
20586
20587 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
20588
20589         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
20590
20591 2006-07-09  Jim Meyering  <jim@meyering.net>
20592
20593         * m4/glob.m4: Remove a doubled word in a comment.
20594
20595 2006-07-09  Jim Meyering  <jim@meyering.net>
20596
20597         * lib/argp-pv.c: Remove a doubled word in a comment.
20598         * lib/check-version.c (check_version): Likewise.
20599         * lib/javacomp.c (compile_java_class): Likewise.
20600
20601 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
20602
20603         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
20604         for the benefit of people using Autoconf 2.60.  If you want to
20605         support older Autoconf versions you can copy m4/onceonly_2_57.m4
20606         (or m4/onceonly.m4, if pre-2.57) manually.
20607
20608 2006-07-08  Jim Meyering  <jim@meyering.net>
20609
20610         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
20611         comment.
20612         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
20613         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
20614         comment.
20615
20616 2006-07-08  Jim Meyering  <jim@meyering.net>
20617
20618         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
20619
20620 2006-07-07  Simon Josefsson  <jas@extundo.com>
20621
20622         * tests/test-crc.c: Change expected crc value, the test vector
20623         were probably computed using the old broken crc.c?
20624
20625 2006-07-06  Simon Josefsson  <jas@extundo.com>
20626
20627         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
20628         now the canonical place for the M4 file).
20629
20630         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
20631         from the sys_socket dependency now.
20632
20633         * modules/inet_pton (Files): Ditto.
20634
20635         * modules/inet_ntop (Files): Ditto.
20636
20637 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
20638
20639         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
20640         not gl_PREREQ_GETUSERSHELL.
20641
20642 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20643
20644         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
20645         with only one argument, for Autoconf 2.60.
20646         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
20647         expand to nothing, so add a shell command to avoid syntax error.
20648         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
20649
20650 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20651
20652         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
20653
20654 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
20655
20656         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
20657         no longer needed.  Check for isblank decl.
20658         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
20659         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
20660         of existence.
20661
20662 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
20663
20664         * lib/getloadavg.c: Use __VMS, not VMS.
20665         * lib/getopt.c: Likewise.
20666         * lib/getpagesize.h: Likewise.
20667         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
20668         and probably does not work.
20669
20670 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
20671
20672         * lib/.cppi-disable: Add wcwidth.
20673         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
20674         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
20675         (ISGRAPH): Remove.  All uses changed to isgraph.
20676         (FOLD) [!defined _LIBC]: Remove special case.
20677         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
20678         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
20679         HAVE_ISBLANK.
20680         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
20681         case.
20682
20683 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
20684
20685         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
20686         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
20687         brackets.  Other minor changes to suppress some compiler
20688         warnings.
20689
20690 2006-07-06  Derek R. Price  <derek@ximbiot.com>
20691         and Paul Eggert  <eggert@cs.ucla.edu>
20692
20693         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
20694         of invoking obsolescent AC_HEADER_DIRENT macro.
20695         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
20696         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
20697         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
20698         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
20699         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
20700         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
20701         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
20702         * m4/readdir.m4: Remove; no longer needed.
20703
20704 2006-07-06  Derek R. Price  <derek@ximbiot.com>
20705         and Paul Eggert  <eggert@cs.ucla.edu>
20706
20707         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
20708         Don't worry about this obsolete case any more.
20709         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
20710         directories.
20711         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
20712         worry about this obsolete case any more.
20713         * lib/fts.c: Likewise.
20714         * lib/getcwd.c: Likewise.
20715         * lib/glob.h: Likewise.
20716         * lib/savedir.c: Likewise.
20717
20718 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
20719
20720         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
20721         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
20722         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
20723         needed.
20724         All uses removed.
20725         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
20726         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
20727         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
20728         needed.
20729         * m4/getdate.m4 (gl_GETDATE): Likewise.
20730         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
20731         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
20732         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
20733         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
20734         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
20735         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
20736         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
20737         needed.
20738
20739 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
20740
20741         * lib/memcasecmp.c: Include <limits.h>.
20742         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
20743         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
20744         Don't assume isdigit succeeds only on '0' through '9'.
20745
20746 2006-07-05  Eric Blake  <ebb9@byu.net>
20747
20748         * modules/getaddrinfo (Depends-on): Add snprintf.
20749
20750 2006-07-05  Eric Blake  <ebb9@byu.net>
20751
20752         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
20753         to avoid 'header present but could not be compiled' on cygwin.
20754
20755 2006-07-05  Eric Blake  <ebb9@byu.net>
20756
20757         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
20758         missing from netdb.h.
20759         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
20760
20761 2006-07-05  Derek R. Price  <derek@ximbiot.com>
20762
20763         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
20764         no longer needed.
20765         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
20766         * m4/getdate.m4 (gl_GETDATE): Likewise.
20767         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
20768         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
20769         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
20770         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
20771         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
20772
20773 2006-07-05  Derek R. Price  <derek@ximbiot.com>
20774
20775         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
20776         All uses of is_space replaced by isspace.
20777         * lib/exit.h: Don't talk about STDC_HEADERS.
20778         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
20779         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
20780         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
20781         replaced by isprint etc.
20782         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
20783         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
20784         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
20785         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
20786         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
20787         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
20788
20789 2006-07-05  Bruno Haible  <bruno@clisp.org>
20790
20791         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
20792         the function exists, before testing against AIX.
20793         Reported by Martin Lambers <marlam@marlam.de>.
20794
20795 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
20796
20797         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
20798         From Mark D. Baushke.
20799
20800 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
20801
20802         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
20803         to the absolute name, not just one, to bypass Sun C 5.8's
20804         "warning: #include of /usr/include/... may be non-portable".
20805
20806 2006-07-04  Eric Blake  <ebb9@byu.net>
20807
20808         * modules/dirname-tests: New test module.
20809         * tests/test-dirname.c: New file, replacing dirname.c
20810         TEST_DIRNAME section that was recently deleted.
20811
20812 2006-07-04  Bruno Haible  <bruno@clisp.org>
20813
20814         Assume ANSI C header files and <ctype.h> functions.
20815         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
20816         (mbsnwidth): Use isprint, iscntrl instead.
20817
20818 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
20819
20820         Merge from coreutils.
20821         * MODULES.html.sh: Add xstrtold.
20822         * modules/xstrtold: New file.
20823         * modules/cycle-check (Files): Add lib/same-inode.h.
20824         * modules/dirname (Files): Add m4/double-slash-root.m4.
20825         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
20826         * modules/mkdir-p (Files): Add lib/same-inode.h.
20827         * modules/same (Files): Add lib/same-inode.h.
20828
20829 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
20830
20831         * m4/absolute-header.m4: Renamed from full-header-path.m4.
20832         This is to keep the terminology clean; POSIX talks about
20833         "absolute pathnames", not "full pathnames", but the GNU
20834         Coding Standards say to use "path" for something else;
20835         so use "absolute" to keep both sides happy.
20836         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
20837         Set gl_absolute_header, not gl_full_header_path.
20838         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
20839         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
20840         All uses changed.
20841
20842         Merge from coreutils.
20843
20844         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
20845
20846         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
20847         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
20848         want to require the building of c-strtod.o.
20849         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
20850         needs -lm directly.
20851         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
20852
20853         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
20854
20855         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
20856         --as-needed option if available.  Problem reported by Albert Chin in
20857         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
20858         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
20859         cc merely issues a bunch of annoying warnings for --as-needed
20860         (this problem was reported by Bob Proulx).  Also, try linking with
20861         -lm to detect a bug in binutils 2.16 (this problem was reported
20862         by Ralf Wildenhues).
20863
20864         2006-06-18  Jim Meyering  <jim@meyering.net>
20865
20866         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
20867         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
20868         macro.
20869         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
20870         also check for glibc-2.4's abort-inducing bug.
20871
20872         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
20873         Low-probability clean-up should be to use rmdir to get rid of
20874         the just-created directory, not unlink.
20875
20876         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
20877         configure fail, and request a bug report to inform us about it.
20878         Add a comment that, barring reports to the contrary, in 2007 we'll
20879         assume ftruncate is universally available.
20880
20881         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
20882
20883         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
20884
20885         2006-03-12  Jim Meyering  <jim@meyering.net>
20886
20887         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
20888         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
20889         * m4/same.m4 (gl_SAME): Likewise.
20890         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
20891
20892         2006-03-11  Eric Blake  <ebb9@byu.net>
20893
20894         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
20895         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
20896         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
20897         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
20898
20899 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
20900
20901         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
20902         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
20903         reported by Mark D. Baushke, one in
20904         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
20905
20906         Merge from coreutils.
20907
20908         * lib/.cppi-disable: Add stdint_.h.
20909         * lib/.cvsignore: Add stdint.h.
20910
20911         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
20912
20913         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
20914         both double and long double versions.
20915         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
20916         * lib/xstrtold.c: New file.
20917         * lib/xstrtod.h (xstrtold): New decl.
20918
20919         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
20920
20921         * lib/filemode.c (setst): Remove.
20922         (strmode): Rewrite to avoid setst.  This makes the code shorter,
20923         (arguably) clearer, and the generated code is a bit smaller on my
20924         Debian GNU/Linux stable x86 host.
20925
20926         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
20927
20928         * lib/filemode.c: Include "filemode.h" first, to test the interface.
20929         Assume that filemode.h includes sys/types.h and sys/stat.h.
20930         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
20931         (ftypelet): Reorder to put common cases first, for efficiency.
20932         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
20933         to do 'M'.
20934         (strmode): Renamed from mode_string, and now stores 12 bytes instead
20935         of 10, for compatibility with FreeBSD.  All callers changed.
20936         (filemodestring): Now stores 12 bytes instead of 10, and sets file
20937         types that can't be deduced solely from st_mode.  First arg is now a
20938         const pointer.
20939         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
20940         (strmode): Renamed from mode_string.
20941         (filemodestring): New decl.
20942         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
20943         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
20944         needed.
20945         (S_ISPORT, S_ISWHT): New macros, if not already defined.
20946
20947         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
20948
20949         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
20950         fsusage.h now does that.  Include fsusage.h first, to test interface.
20951         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
20952         at most one method (the old code could have generated decls that
20953         didn't conform to C89, not that this was ever exercised).
20954         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
20955
20956         2006-03-19  Jim Meyering  <jim@meyering.net>
20957
20958         Work even in a chroot where d_ino values for entries in "/"
20959         don't match the stat.st_ino values for the same names.
20960         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
20961         number, iterate through all entries again, using lstat instead.
20962         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
20963         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
20964
20965         * lib/getcwd.c (__getcwd): Clarify a comment.
20966         Use memcpy in place of a call to strcpy.
20967
20968         2006-03-12  Jim Meyering  <jim@meyering.net>
20969
20970         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
20971         matches that of the current directory (which we're about to chdir ".."
20972         out of), then save the dev-ino of the parent, instead.
20973
20974         * lib/same-inode.h (SAME_INODE): New file/macro.
20975         * lib/chdir-safer.c (SAME_INODE): Remove definition.
20976         Include "same-inode.h", instead.
20977         * lib/same.c: Likewise.
20978         * lib/cycle-check.h: Include "same-inode.h".
20979         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
20980         * lib/cycle-check.c (SAME_INODE): Remove definition.
20981         * lib/root-dev-ino.h: Include "same-inode.h".
20982
20983         2006-03-11  Eric Blake  <ebb9@byu.net>
20984
20985         * lib/same.c (same_name): s/base_name/last_component/
20986         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
20987         * lib/filenamecat.c (file_name_concat): Likewise.
20988
20989         2006-03-11  Eric Blake  <ebb9@byu.net>,
20990                     Paul Eggert  <eggert@cs.ucla.edu>
20991
20992         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
20993         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
20994         drive prefix.
20995         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
20996         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
20997         (last_component): New method.
20998         * lib/dirname.c (dir_len): Determine when drive letters need a
20999         subsequent slash.  Preserve // when it is special.
21000         (dir_name): Don't append dot when drive letter is absolute.
21001         [TEST_DIRNAME]: Move into a full-blown gnulib test.
21002         * lib/basename.c (base_name): New semantics - malloc the result.
21003         Preserve // when it is special.  Preserve relative files that look
21004         like drive letters.
21005         (base_len): Preserve // when it is special.
21006         (last_component): New method, similar to old base_name semantics.
21007         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
21008         base_name.  Strip redundant slashes from ///.
21009
21010 2006-07-03  Jim Meyering  <jim@meyering.net>
21011
21012         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
21013         macro is used before the first cycle_check call.
21014
21015 2006-07-03  Eric Blake  <ebb9@byu.net>
21016
21017         * modules/dirname (Depends-on): Add xstrndup.
21018
21019 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
21020
21021         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
21022         test cases, so that config.log is a bit easier to follow.
21023
21024 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
21025
21026         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
21027         both are 64 bits, since this seems to be the tradition, and this
21028         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
21029         we ever run into a host that prefers long long to long in this
21030         case, we'll need another configure-time test.  Problem reported by
21031         Jim Meyering.
21032
21033 2006-07-02  Eric Blake  <ebb9@byu.net>
21034
21035         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
21036
21037 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
21038
21039         * modules/inttypes (Depends-on): No longer depends on stdint.
21040         * modules/stdint (Description): Say more about assumptions.
21041         Say that the fast types might differ.  Say macros are used.
21042         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
21043         (Makefile.am): Revise list of substituted symbols to match
21044         new stdint.m4.
21045         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
21046         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
21047         * tests/test-stdint.c (verify_same_types)
21048         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
21049         the code conforms to C99/C89.
21050         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
21051         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
21052
21053 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
21054
21055         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
21056         but fix a bug, by requiring at least 64 bits.
21057         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
21058         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
21059         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
21060         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
21061
21062         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
21063         changes.  Make 2.59 a prerequisite.  Check and substitute for
21064         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
21065         inttypes.h.  Do not use special include files; just use the
21066         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
21067         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
21068         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
21069         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
21070         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
21071         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
21072         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
21073         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
21074         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
21075         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
21076         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
21077         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
21078         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
21079         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
21080         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
21081         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
21082         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
21083         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
21084         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
21085         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
21086         WINT_MAX.  Check for C99 conformance more strictly, by detecting
21087         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
21088         not check for things that C99 does not require, e.g., int8_t.  If
21089         a test isn't needed unless <stdint.h> isn't working, and is
21090         unlikely to be needed for any other reason, then don't do it
21091         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
21092         size_t, since we assume C89 freestanding at least.  Do not check
21093         for sig_atomic_t, wchar_t, or wint_t, since the code now does
21094         the right thing even if the types are not defined.  Instead use:
21095         (gl_STDINT_TYPE_PROPERTIES): New macro.
21096         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
21097         testing whether <sys/types.h> clashes, as Autoconf does this for
21098         us now.  All uses removed.
21099         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
21100         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
21101         (gl_CHECK_TYPE_SAME):
21102         Remove; no longer needed.
21103         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
21104         exists, since we'll return 0 anyway in that case.
21105         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
21106
21107 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
21108
21109         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
21110         possible collision with system files.
21111         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
21112         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
21113         WCHAR_MIN and WCHAR_MAX in this case.
21114         (<stddef.h>): Do not include; no longer needed.
21115         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
21116         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
21117         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
21118         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
21119         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
21120         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
21121         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
21122         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
21123         !defined(__c99))]: Include in this case too, since it's harmless
21124         now.
21125         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
21126         dangerous to do so.
21127         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
21128         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
21129         (_STDINT_MIN, _STDINT_MAX): New macros.
21130         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
21131         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
21132         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
21133         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
21134         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
21135         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
21136         macros, not typedefs; this simplifies things quite a bit.
21137         Use long int for all types narrower than int64_t.
21138         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
21139         Define in terms of long long int or int64_t or long int,
21140         not int64_t or int32_t.  This saves some compile-time testing.
21141         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
21142         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
21143         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
21144         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
21145         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
21146         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
21147         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
21148         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
21149         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
21150         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
21151         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
21152         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
21153         undef any previous version and define our own version, for
21154         simplicity and consistency with the new macros for types.
21155         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
21156         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
21157         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
21158         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
21159         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
21160         @WINT_T_SUFFIX@ to keep things simple here.
21161         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
21162         Simplify by assuming typical 8/16/32/64 host, since we're
21163         already doing that elsewhere anyway.
21164         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
21165         and assume long long int is 64 bits if available.  This
21166         speeds up 'configure'.
21167
21168 2006-07-01  Eric Blake  <ebb9@byu.net>
21169
21170         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
21171         Reported by Andreas Buening.
21172
21173 2006-07-01  Eric Blake  <ebb9@byu.net>
21174
21175         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
21176
21177 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
21178
21179         * lib/getaddrinfo.c: fixed typo
21180
21181 2006-06-29  Jim Meyering  <jim@meyering.net>
21182
21183         * modules/strftime (Maintainer): Add my name, since with the
21184         FPRINTFTIME changes strftime.c has forked from glibc.
21185
21186 2006-06-29  Eric Blake  <ebb9@byu.net>
21187
21188         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
21189
21190 2006-06-29  Eric Blake  <ebb9@byu.net>
21191
21192         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
21193
21194 2006-06-29  Eric Blake  <ebb9@byu.net>
21195
21196         * lib/stat_.h: New file.
21197
21198 2006-06-29  Eric Blake  <ebb9@byu.net>
21199
21200         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
21201         unused static function.
21202
21203 2006-06-29  Eric Blake  <ebb9@byu.net>
21204
21205         * doc/functions.texi (Function Portability): Document missing lstat
21206         on mingw.
21207
21208 2006-06-29  Eric Blake  <ebb9@byu.net>
21209
21210         * MODULES.html.sh: Add sys_stat.
21211         * modules/sys_stat: New module.
21212         * modules/mkstemp (Depends-on): Add sys_stat.
21213
21214 2006-06-29  Derek R. Price  <derek@ximbiot.com>
21215
21216         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
21217
21218 2006-06-29  Derek R. Price  <derek@ximbiot.com>
21219
21220         * m4/c-bs-a.m4: Removed.
21221
21222 2006-06-29  Derek R. Price  <derek@ximbiot.com>
21223
21224         * lib/strftime.c: Assume strftime() exists.
21225
21226 2006-06-29  Derek Price  <derek@ximbiot.com>
21227
21228         * modules/c-bs-a: Removed - \a is C89.
21229         * MODULES.html.sh: Remove c-bs-a.
21230
21231 2006-06-29  Bruno Haible  <bruno@clisp.org>
21232
21233         * modules/wcwidth (License): Change to LGPL.
21234
21235 2006-06-28  Simon Josefsson  <jas@extundo.com>
21236
21237         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
21238         on _WIN32.
21239
21240         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
21241         getnameinfo.
21242
21243 2006-06-28  Simon Josefsson  <jas@extundo.com>
21244
21245         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
21246
21247 2006-06-28  Simon Josefsson  <jas@extundo.com>
21248
21249         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
21250         functions there.  It will succeed on Windows XP, but on Windows
21251         2000 and (presumably) earlier, it will fail, and use the internal
21252         re-implementation.
21253         (use_win32_p): New function.
21254         (getaddrinfo): Use strtoul on servname, to support numeric ports.
21255         Support AI_NUMERICSERV to disable getservbyname.
21256         (getnameinfo): New function, only supports
21257         NI_NUMERICHOST|NI_NUMERICSERV for now.
21258
21259         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
21260         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
21261         getnameinfo.
21262
21263 2006-06-28  Eric Blake  <ebb9@byu.net>
21264
21265         * modules/wcwidth: New file.
21266         * modules/mbchar (Depends-on): Add wcwidth.
21267         * modules/mbswidth (Depends-on): Add wcwidth.
21268         * MODULES.html.sh: Add wcwidth.
21269
21270 2006-06-28  Eric Blake  <ebb9@byu.net>
21271
21272         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
21273         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
21274
21275 2006-06-28  Eric Blake  <ebb9@byu.net>
21276
21277         * lib/xvasprintf.h: Fix comments.
21278
21279 2006-06-28  Eric Blake  <ebb9@byu.net>
21280
21281         * lib/mbchar.h (wcwidth): Include wcwidth.h.
21282         * lib/mbswidth.c (wcwidth): Move from here...
21283         * lib/wcwidth.h: ...to this new file.
21284
21285 2006-06-28  Derek R. Price  <derek@ximbiot.com>
21286
21287         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
21288
21289         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
21290         it's obsolete.
21291         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
21292
21293 2006-06-28  Derek R. Price  <derek@ximbiot.com>
21294
21295         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
21296         Autoconf 2.60 says this stuff was obsolete.
21297
21298 2006-06-28  Bruno Haible  <bruno@clisp.org>
21299
21300         * modules/wcwidth (Files): Add m4/wchar_t.m4.
21301
21302 2006-06-28  Bruno Haible  <bruno@clisp.org>
21303
21304         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
21305         gt_TYPE_WCHAR_T.
21306
21307 2006-06-28  Bruno Haible  <bruno@clisp.org>
21308
21309         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
21310         declaration for wcwidth.
21311         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
21312
21313 2006-06-28  Bruno Haible  <bruno@clisp.org>
21314
21315         * lib/mkdtemp.c [MINGW]: Include <io.h>.
21316         (mkdir): Define using _mkdir.
21317
21318 2006-06-28  Bruno Haible  <bruno@clisp.org>
21319
21320         * lib/getaddrinfo.h: Fix POSIX URL.
21321         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
21322         _WIN32.
21323         (use_win32_p): Make static.
21324         (getaddrinfo): Reject service name if it is empty or does not consist
21325         solely of decimal digits, or if its value is > 65535.
21326         (getnameinfo): Remove useless casts.
21327
21328 2006-06-27  Simon Josefsson  <jas@extundo.com>
21329
21330         * modules/sys_select: New file, suggested by Bruno Haible, Paul
21331         Eggert and Martin Lambers.
21332
21333 2006-06-27  Simon Josefsson  <jas@extundo.com>
21334
21335         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
21336         Eggert and Martin Lambers.
21337
21338 2006-06-27  Bruno Haible  <bruno@clisp.org>
21339
21340         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
21341         result to 0, not to empty.
21342         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
21343
21344 2006-06-27  Bruno Haible  <bruno@clisp.org>
21345
21346         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
21347
21348 2006-06-26  Simon Josefsson  <jas@extundo.com>
21349
21350         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
21351         present.
21352
21353 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
21354
21355         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
21356         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
21357         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
21358
21359 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
21360
21361         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
21362
21363 2006-06-26  Bruno Haible  <bruno@clisp.org>
21364
21365         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
21366
21367 2006-06-26  Bruno Haible  <bruno@clisp.org>
21368
21369         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
21370
21371 2006-06-26  Bruno Haible  <bruno@clisp.org>
21372
21373         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
21374         SGI C compiler in pre-C99 mode.
21375         Suggested by Mark D. Baushke and Larry Jones.
21376
21377 2006-06-26  Bruno Haible  <bruno@clisp.org>
21378
21379         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
21380         WCHAR_MAX.
21381         Reported by Mark D. Baushke and Larry Jones.
21382
21383 2006-06-26  Bruno Haible  <bruno@clisp.org>
21384
21385         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
21386         in pre-C99 mode.
21387         Suggested by Mark D. Baushke and Larry Jones.
21388
21389 2006-06-23  Simon Josefsson  <jas@extundo.com>
21390             Bruno Haible  <bruno@clisp.org>
21391
21392         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
21393         Emit mostlyclean-local rule.
21394         (func_emit_tests_Makefile_am): Likewise.
21395         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
21396
21397 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
21398
21399         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
21400
21401 2006-06-23  Bruno Haible  <bruno@clisp.org>
21402
21403         * tests/test-stdint.c: Update to match ISO C 99 Technical
21404         Corrigendum 1.
21405
21406 2006-06-23  Bruno Haible  <bruno@clisp.org>
21407
21408         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
21409
21410 2006-06-23  Bruno Haible  <bruno@clisp.org>
21411
21412         * lib/stdint_.h: Treat IRIX like OpenBSD.
21413
21414 2006-06-23  Bruno Haible  <bruno@clisp.org>
21415
21416         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
21417         ISO C 99 Technical Corrigendum 1.
21418
21419 2006-06-22  Simon Josefsson  <jas@extundo.com>
21420
21421         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
21422         MinGW.
21423
21424 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
21425
21426         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
21427         needed.  Some compiler complained about some of them.  Problem reported
21428         by Larry Jones in
21429         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
21430
21431 2006-06-21  Simon Josefsson  <jas@extundo.com>
21432
21433         * tests/test-getaddrinfo.c: New file.
21434
21435         * modules/getaddrinfo-tests: New file.
21436
21437         * MODULES.html.sh: Add inet_pton.
21438
21439         * modules/inet_pton: New file.
21440
21441 2006-06-21  Simon Josefsson  <jas@extundo.com>
21442
21443         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
21444         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
21445         of using the (limited) gnulib implementation on Windows XP.
21446
21447         * m4/inet_pton.m4: New file.
21448
21449 2006-06-21  Simon Josefsson  <jas@extundo.com>
21450
21451         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
21452         variable.
21453
21454         * lib/socket_.h: Don't define WINVER.
21455
21456         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
21457         slightly modified to work in gnulib.
21458
21459 2006-06-21  Simon Josefsson  <jas@extundo.com>
21460
21461         * doc/gnulib.texi (Windows sockets): Add.
21462
21463 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
21464
21465         * lib/read-file.c (fread_file): Start with buffer allocation of
21466         0 bytes rather than 1 byte; this simplifies the code.
21467         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
21468         code to free buffer and save/restore errno.
21469         (internal_read_file): Remove unused local.
21470
21471 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
21472
21473         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
21474         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
21475         Problem reported by Denis Excoffier in
21476         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
21477
21478 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21479
21480         * modules/sys_socket, modules/socklen: Include sys/types since
21481         FreeBSD 4.x's sys/socket.h needs it.
21482
21483 2006-06-19  Simon Josefsson  <jas@extundo.com>
21484
21485         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
21486
21487 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
21488
21489         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
21490
21491 2006-06-19  Bruno Haible  <bruno@clisp.org>
21492
21493         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
21494         and FULL_PATH_INTTYPES_H in angle brackets.
21495         Reported by Mark D. Baushke <mdb@gnu.org>.
21496
21497 2006-06-17  Eric Blake  <ebb9@byu.net>
21498
21499         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
21500         errno.
21501
21502 2006-06-17  Bruno Haible  <bruno@clisp.org>
21503
21504         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
21505         <sys/inttypes.h>.
21506
21507 2006-06-17  Bruno Haible  <bruno@clisp.org>
21508
21509         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
21510         whether errno is declared. Assume <errno.h> declares errno.
21511
21512 2006-06-17  Bruno Haible  <bruno@clisp.org>
21513
21514         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
21515
21516 2006-06-17  Bruno Haible  <bruno@clisp.org>
21517
21518         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
21519         problem on Solaris 2.5.1.
21520
21521 2006-06-16  Eric Blake  <ebb9@byu.net>
21522
21523         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
21524         * lib/unicodeio.c [!defined errno]: Likewise.
21525         * lib/strtol.c [!defined errno]: Likewise.
21526         * lib/strtod.c [!defined errno]: Likewise.
21527
21528 2006-06-15  Eric Blake  <ebb9@byu.net>
21529
21530         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
21531
21532 2006-06-15  Eric Blake  <ebb9@byu.net>
21533
21534         * config/srclist.txt (ssize_t.m4): Lose sync.
21535
21536 2006-06-15  Bruno Haible  <bruno@clisp.org>
21537
21538         * modules/stdint (Files): Include m4/full-header-path.m4,
21539         m4/size_max.m4, m4/wchar_t.m4.
21540         (Makefile.am): Many more substitutions.
21541         * modules/stdint-tests: New file.
21542         * tests/test-stdint.c: New file.
21543
21544 2006-06-15  Bruno Haible  <bruno@clisp.org>
21545
21546         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
21547         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
21548         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
21549         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
21550         gl_CHECK_TYPE_SAME): New macros.
21551
21552 2006-06-15  Bruno Haible  <bruno@clisp.org>
21553
21554         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
21555
21556 2006-06-15  Bruno Haible  <bruno@clisp.org>
21557
21558         * lib/stdint_.h: Rewritten to be fully auto-configured.
21559         Fixes bug on HP-UX/IA64.
21560
21561 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
21562
21563         * lib/getdate.y (__attribute__): Don't define if already defined.
21564         Problem reported by Larry Jones.
21565         * lib/utimens.c (__attribute__): Likewise.
21566
21567 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
21568
21569         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
21570         reported by Andreas Schwab.
21571
21572 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21573             Bruno Haible  <bruno@clisp.org>
21574
21575         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
21576         check for the declaration of strnlen and a run test that exposes the
21577         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
21578         rpl_strndup.
21579
21580 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21581             Bruno Haible  <bruno@clisp.org>
21582
21583         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
21584
21585 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21586
21587         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
21588         compile test, for Tru64 4.0D.
21589
21590 2006-05-28  Karl Berry  <karl@gnu.org>
21591
21592         * config/srclist.txt (printf-args.c): lose sync.
21593
21594 2006-05-26  Martin Lambers  <marlam@marlam.de>
21595
21596         * lib/getpass.c: Updates the test for the native W32 API, and adds
21597         missing includes, thus fixing compilation warnings.
21598
21599 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
21600
21601         * lib/exclude.c (exclude_fnmatch): New function.
21602         (excluded_file_name): Call exclude_fnmatch.
21603         * lib/exclude.h (excluded_file_name): New prototype
21604
21605 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
21606
21607         * lib/tempname.c (small_open, large_open): New macros.
21608         (__open, __open64) [!_LIBC]: Remove.
21609         (__gen_tempname): Use small_open and large_open instead of __open
21610         and __open64.  This fixes a portability bug on HP-UX 11.11i
21611         reported by Simon Wing-Tang in
21612         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
21613
21614 2006-05-24  Bruno Haible  <bruno@clisp.org>
21615
21616         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
21617         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
21618         Reported by Thorsten Maerz <torte@netztorte.de> via
21619         Aaron Stone <aaron@serendipity.cx>.
21620
21621 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
21622
21623         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
21624         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
21625         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
21626         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
21627         not really conditional on the cache.
21628         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
21629
21630 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
21631
21632         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
21633         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
21634         (my_usleep): Don't mishandle maximum value.
21635
21636 2006-05-19  Jim Meyering  <jim@meyering.net>
21637
21638         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
21639
21640 2006-05-17  Bruno Haible  <bruno@clisp.org>
21641
21642         Cygwin portability.
21643         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
21644
21645 2006-05-17  Bruno Haible  <bruno@clisp.org>
21646
21647         * lib/stdint_.h: Fix recognition of Cygwin.
21648
21649 2006-05-15  Bruno Haible  <bruno@clisp.org>
21650
21651         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
21652         on libtool patch by Ralf Wildenhues.
21653
21654 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
21655
21656         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
21657         test for C99 conformance; (bool) 0.5 is an integer constant
21658         expression, but (bool) -0.5 is not.  Problem reported by Fedor
21659         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
21660
21661 2006-05-11  Simon Josefsson  <jas@extundo.com>
21662
21663         * m4/xvasprintf.m4: Fix obvious typo.
21664
21665 2006-05-11  Jim Meyering  <jim@meyering.net>
21666
21667         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
21668         James Lemley.
21669
21670 2006-05-10  Simon Josefsson  <jas@extundo.com>
21671
21672         * lib/md4.c: Typo fix, update copyright years.
21673         (K1, K2): Don't use L because it turn computations into 64-bit on
21674         64-bit platforms.
21675
21676 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
21677
21678         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
21679         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
21680         unwanted sign propagation, e.g., on hosts with 64-bit int.
21681         There still are some problems with reeelly weird theoretical hosts
21682         (e.g., 33-bit int) but it's not worth worrying about now.
21683         * lib/sha1.c (rol): Likewise.
21684         (K1, K2, K3, K4): Remove unnecessary L suffix.
21685
21686 2006-05-10  Bruno Haible  <bruno@clisp.org>
21687
21688         * lib/des.c: Cast to avoid warnings.
21689
21690 2006-05-09  Bruno Haible  <bruno@clisp.org>
21691
21692         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
21693         (Depends-on): Depend also on xsize, stdarg.
21694         (configure.ac): Add gl_XVASPRINTF.
21695
21696 2006-05-09  Bruno Haible  <bruno@clisp.org>
21697
21698         * m4/xvasprintf.m4: New file.
21699
21700 2006-05-09  Bruno Haible  <bruno@clisp.org>
21701
21702         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
21703         (EOVERFLOW): Define fallback value.
21704         (xstrcat): New function.
21705         (xvasprintf): Recognize the special case of a string concatenation.
21706
21707 2006-05-08  Eric Blake  <ebb9@byu.net>
21708
21709         * gnulib-tool (func_version): Base copyright year on CVS date.
21710         (func_emit_copyright_notice): New function.
21711         (func_emit_lib_Makefile_am): Use it.
21712         (func_emit_tests_Makefile_am): Likewise.
21713         (func_import): Likewise.
21714
21715 2006-05-08  Bruno Haible  <bruno@clisp.org>
21716
21717         * modules/stdarg: New file.
21718         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
21719
21720 2006-05-08  Bruno Haible  <bruno@clisp.org>
21721
21722         * m4/stdarg.m4: New file, from GNU gettext.
21723
21724 2006-05-08  Bruno Haible  <bruno@clisp.org>
21725
21726         * config/srclist.txt (build-aux/config.rpath): different from latest
21727         release.
21728
21729 2006-05-08  Bruno Haible  <bruno@clisp.org>
21730
21731         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
21732
21733 2006-05-05  Jim Meyering  <jim@meyering.net>
21734
21735         * m4/warning.m4: New file, derived from bison's file by the same name.
21736
21737 2006-05-03  Bruno Haible  <bruno@clisp.org>
21738
21739         * lib/stdint_.h: Shorter URL.
21740         * lib/inttypes.h: Likewise.
21741
21742 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
21743
21744         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
21745
21746 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
21747
21748         * lib/verify.h: Document the internals better.  Most of this change
21749         was written by Bruno Haible.
21750
21751 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
21752
21753         * doc/verify.texi: New file, partly based on a proposal by
21754         Bruno Haible.
21755
21756 2006-05-02  Bruno Haible  <bruno@clisp.org>
21757
21758         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
21759         test from here...
21760         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
21761
21762 2006-04-29  Bruno Haible  <bruno@clisp.org>
21763
21764         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
21765         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
21766
21767 2006-04-29  Bruno Haible  <bruno@clisp.org>
21768
21769         * gnulib-tool: Make --update option actually work.
21770
21771 2006-04-29  Bruno Haible  <bruno@clisp.org>
21772
21773         * doc/gcd.texi: New file.
21774         * doc/gnulib.texi: Include it.
21775
21776 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
21777
21778         * lib/getdate.y (get_date): When adding relative date, start with the
21779         initial time, not with the result of the first mktime call.
21780
21781 2006-04-25  Bruno Haible  <bruno@clisp.org>
21782
21783         * gnulib-tool (func_import): Output the include directives in three
21784         blocks, sorted separately.
21785         Reported by Ben Pfaff <blp@cs.stanford.edu>.
21786
21787 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
21788
21789         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
21790         to define main with arguments, for C++.  Reported by Eric Blake.
21791         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
21792         Prefer 'int main ()' to 'int main (void)', for C++.
21793         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
21794         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
21795         for 'main', for C99 and C++.
21796
21797 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
21798
21799         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
21800         Don't assume that exit status -1 is valid.
21801         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
21802         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
21803         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
21804         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
21805         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
21806         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
21807         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
21808         functions can be used without declaring them, or that you can
21809         exit with status -1.
21810         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
21811
21812 2006-04-24  Karl Berry  <karl@gnu.org>
21813
21814         * config/srclist.txt (longdouble.m4): sync lost.
21815
21816 2006-04-24  Eric Blake  <ebb9@byu.net>
21817
21818         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
21819
21820 2006-04-24  Bruno Haible  <bruno@clisp.org>
21821
21822         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
21823         poll() implementation in AIX.
21824         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21825
21826 2006-04-24  Bruno Haible  <bruno@clisp.org>
21827
21828         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
21829         assigned exactly once.
21830
21831 2006-04-23  Claudio Fontana  <claudio@gnu.org>
21832             Bruno Haible  <bruno@clisp.org>
21833
21834         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
21835         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
21836         for AM_CPPFLAGS.
21837
21838 2006-04-23  Bruno Haible  <bruno@clisp.org>
21839
21840         * modules/copy-file: Depend on unistd.
21841         * modules/execute: Likewise.
21842         * modules/fatal-signal: Likewise.
21843         * modules/findprog: Likewise.
21844         * modules/mkdtemp : Likewise.
21845         * modules/pipe: Likewise.
21846         * modules/wait-process: Likewise.
21847
21848 2006-04-23  Bruno Haible  <bruno@clisp.org>
21849
21850         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
21851         condition was already detected.
21852         Reported by Ben Pfaff <blp@cs.stanford.edu>.
21853
21854 2006-04-23  Bruno Haible  <bruno@clisp.org>
21855
21856         * lib/copy-file.c: Include <unistd.h> unconditionally.
21857         * lib/execute.c: Likewise.
21858         * lib/fatal-signal.c: Likewise.
21859         * lib/findprog.c: Likewise.
21860         * lib/mkdtemp.c: Likewise.
21861         * lib/pipe.h: Likewise.
21862         * lib/pipe.c: Likewise.
21863         * lib/wait-process.h: Likewise.
21864
21865 2006-04-23  Bruno Haible  <bruno@clisp.org>
21866
21867         * gnulib-tool (func_usage): Fix --import description. Document
21868         --update.
21869         (func_import): Create temporary file in a temporary directory, if
21870         --dry-run is specified. Silence errors from 'grep' when there are no
21871         m4 files in $m4dir.
21872         (func_create_testdir): Silence errors from 'grep' when there are no
21873         m4 files in $m4dir.
21874         Reported by Karl Berry <karl@freefriends.org>.
21875
21876 2006-04-20  Bruno Haible  <bruno@clisp.org>
21877
21878         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
21879         one argument, so that the code will be portable to Autoconf 2.60.
21880         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
21881         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
21882         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
21883
21884 2006-04-19  Derek Price  <derek@ximbiot.com>
21885             Eric Blake  <ebb9@byu.net>
21886
21887         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
21888         rather than "/full/path.h".  Update comment to match.  Shorten &
21889         generalize m4_translit call via AS_TR_CPP.
21890
21891 2006-04-19  Derek Price  <derek@ximbiot.com>
21892             Eric Blake  <ebb9@byu.net>
21893
21894         * lib/inttypes.h: Correct grammar in comment.
21895
21896 2006-04-18  Derek Price  <derek@ximbiot.com>
21897             Paul Eggert  <eggert@cs.ucla.edu>
21898
21899         * modules/inttypes: New file.
21900         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
21901
21902 2006-04-18  Derek Price  <derek@ximbiot.com>
21903             Paul Eggert  <eggert@cs.ucla.edu>
21904
21905         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
21906         New files.
21907
21908 2006-04-18  Derek Price  <derek@ximbiot.com>
21909             Paul Eggert  <eggert@cs.ucla.edu>
21910
21911         * lib/inttypes.h: New file.
21912         * lib/strtoimax.c: Assume <inttypes.h>.
21913
21914 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
21915
21916         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
21917         isn't mounted.  Problem reported by Kir Kolyshkin.
21918
21919 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
21920
21921         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
21922         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
21923         Derek R. Price.
21924         * lib/regex.h (RE_DUP_MAX): Update comment to match current
21925         implementation.
21926
21927 2006-04-12  Eric Blake  <ebb9@byu.net>
21928
21929         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
21930         is now done automatically by the corresponding Autoconf macro.
21931
21932 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
21933
21934         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
21935         time_r.h.
21936
21937 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
21938
21939         Merge regex changes from libc, removing some of our
21940         POSIX-conformance changes that were rejected and redoing them in a
21941         less-intrusive way.
21942
21943         * lib/regcomp.c (re_compile_internal, init_dfa):
21944         Length arg is now size_t, not Idx.  All uses changed.
21945         (peek_token): Forward decl now says internal_function.
21946         (__re_error_msgid, __re_error_msgid_idx):
21947         Now static rather than extern with attribute_hidden.
21948         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
21949         For some reason libc prefers K&R style defns for external functions.
21950         (regerror) [!defined _LIBC]: Likewise.
21951         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
21952         (seek_collating_symbol_entry, lookup_collation_sequence_value):
21953         (build_range_exp, build_collating_symbol):
21954         Use K&R-style defn.
21955         (re_compile_fastmap): Use '\0' to memset, not 0.
21956         (utf8_sb_map): Make the calculations more obvious.
21957         (init_dfa, parse_bracket_exp, build_charclass_op):
21958         Call calloc and cast result, as glibc does.
21959         (init_word_char, fetch_token, peek_token, peek_token_bracket):
21960         (build_range_exp, build_collating_symbol):
21961         Now internal functions.
21962
21963         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
21964
21965         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
21966         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
21967         Don't depend on VMS; depend on __VMS instead, for POSIX
21968         namespace cleanness.
21969         (regoff_t): Define to ssize_t, not long int.
21970
21971         Remove the REG_ macros named below.  Instead, make the old names
21972         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
21973         __USE_GNU_REGEX.
21974         (REG_BACKSLASH_ESCAPE_IN_LISTS):
21975         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
21976         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
21977         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
21978         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
21979         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
21980         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
21981         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
21982         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
21983         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
21984         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
21985         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
21986         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
21987         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
21988         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
21989         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
21990         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
21991         (REG_NREGS):
21992         Remove.  All uses replaced by the old RE_* names.
21993         (RE_BACKSLASH_ESCAPE_IN_LISTS):
21994         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
21995         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
21996         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
21997         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
21998         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
21999         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
22000         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
22001         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
22002         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
22003         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
22004         Don't bother having these macros be independent of each others'
22005         values, since they no longer exist in the POSIX name space.
22006
22007         Rename the following member names back to their old names,
22008         unless !__USE_GNU_REGEX.  All uses changed back.
22009         (buffer): Renamed from re_buffer.
22010         (allocated): Renamed from re_allocated.
22011         (used): Renamed from re_used.
22012         (syntax): Renamed from re_syntax.
22013         (fastmap): Renamed from re_fastmap.
22014         (translate): Renamed from re_translate.
22015         (can_be_null): Renamed from re_can_be_null.
22016         (regs_allocated): Renamed from re_regs_allocated.
22017         (fastmap_accurate): Renamed from re_fastmap_accurate.
22018         (no_sub): Renamed from re_no_sub.
22019         (not_bol): Renamed from re_not_bol.
22020         (not_eol): Renamed from re_not_eol.
22021         (newline_anchor): Renamed from re_newline_anchor.
22022         (num_regs): Renamed from rm_num_regs.
22023         (start): Renamed from rm_start.
22024         (end): Renamed from rm_end.
22025
22026         (free_state): Move up a bit.
22027
22028         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
22029         #define to be empty.
22030         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
22031         when that is what is intended.
22032         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
22033         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
22034         (MAX): New macro.
22035         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
22036         All uses changed back to re_malloc, etc.  It's now the caller's
22037         responsibility to check for overflow; all callers changed.
22038         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
22039         (re_x2nrealloc): Remove.
22040         (free_state): Remove decl.
22041
22042         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
22043         (re_set_registers, re_exec):
22044         Use K&R-style defn.
22045
22046         2006-01-31  Roland McGrath  <roland@redhat.com>
22047
22048         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
22049         Reported by Mike Frysinger <vapier@gentoo.org>.
22050
22051         2006-01-15  Andreas Jaeger  <aj@suse.de>
22052
22053         [BZ #1950]
22054         * lib/regex_internal.c (re_string_reconstruct): Adjust for
22055         build_wcs_upper_buffer change.
22056         (build_wcs_upper_buffer): Change return type.
22057
22058         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
22059
22060         * lib/regex_internal.h: Include <stdint.h> if available.
22061
22062         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
22063
22064         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
22065
22066         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
22067
22068         * lib/regcomp.c: Adjust for changed secondary hash function.
22069
22070         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
22071
22072         * lib/regex.h: Pretty printing.
22073         Clean up namespace a bit.
22074
22075         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
22076
22077         * lib/regexec.c (update_cur_sifted_state, check_arrival,
22078         check_arrival_add_next_nodes): Avoid using uninitialized variable.
22079
22080         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
22081                     Ulrich Drepper  <drepper@redhat.com>
22082
22083         [BZ #1302]
22084         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
22085         changed.
22086         (bitset_word_t): Renamed from bitset_word.  All uses changed.
22087
22088         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
22089
22090         [BZ #281]
22091         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
22092         * lib/regcomp.c: Remove unnecessary uses of
22093         unsigned RE_TRANSLATE_TYPE.
22094         * lib/regex_internal.h: Likewise.
22095         * lib/regex_internal.c: Likewise.
22096         * lib/regexec.c: Likewise.
22097         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
22098
22099         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
22100
22101         * lib/regexec.c (find_recover_state): Remove unnecessary
22102         initialization.
22103         (transit_state_bkref): Make DFA a const pointer.
22104         (get_subexp): Likewise.
22105         (check_arrival): Likewise.
22106         (update_cur_sifted_state): Likewise.
22107         (re_search_internal): Likewise.
22108         (prune_impossible_nodes): Likewise.
22109         (acquire_init_state_context): Likewise.
22110         (proceed_next_node): Likewise.
22111         (set_regs): Likewise.
22112         (free_fail_stack_return): Likewise.
22113         (check_arrival_expand_ecl): Mark DFA parameter as const.
22114         (check_arrival_expand_ecl_sub): Likewise.
22115         (check_subexp_limits): Likewise.
22116         (sub_epsilon_src_nodes):  Likewise.
22117         (add_epsilon_src_nodes):  Likewise.
22118         (merge_state_array): Likewise.
22119         (update_regs): Likewise.
22120         (build_trtable): Likewise.
22121         (sift_states_backward): Mark MCTX parameter as const.
22122         (build_sifted_states): Likewise.
22123         (update_cur_sifted_state): Likewise.
22124         (sift_states_mkref): Likewise.
22125         (check_arrival_expand_ecl): Mark eclosure as const.
22126         (check_dst_limits_calc_pos_1): Likewise.
22127         * lib/regex_internal.h (re_match_context_t): Make dfa a const
22128         pointer.
22129
22130         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
22131
22132         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
22133         (transit_state_sb): Likewise.
22134         (transit_state_mb): Likewise.
22135         (sift_states_iter_mb): Likewise.
22136         (check_arrival_add_next_nodes): Likewise.
22137         (check_node_accept_bytes): Change first parameter to pointer-to-const.
22138         [_LIBC] (re_search_2_stub): Use mempcpy.
22139
22140         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
22141         mbrtowc for very simple UTF-8 case.
22142
22143         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
22144         a pointer-to-const.
22145         (re_acquire_state_context): Likewise.
22146         * lib/regex_internal.h: Adjust prototypes.
22147
22148         * lib/regex.c: Prevent using C++ compilers.
22149
22150         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
22151         (re_acquire_state_context): Likewise.
22152
22153 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
22154
22155         * modules/regex (Depends-on): Add ssize_t.
22156
22157 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
22158
22159         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
22160         translation table.
22161
22162 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
22163
22164         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
22165
22166 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
22167             Bruno Haible  <bruno@clisp.org>
22168
22169         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
22170         <sys/types.h> and <inttypes.h>.
22171
22172 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22173
22174         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
22175         `__error_t_defined', so argp.h will not typedef the former.
22176
22177 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
22178
22179         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
22180         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
22181         glibc names.  Even if glibc is changed to conform to POSIX, the
22182         traditional names will be available anyway, since regex depends on
22183         the extensions module.  Also, fix a longstanding typo in the
22184         implementation of Spencer ERE test #75 from grep 2.3.  Problems
22185         reported by Emanuele Giaquinta.  Also, change sense of cached
22186         variable, so that the message makes sense.
22187
22188 2006-03-24  Simon Josefsson  <jas@extundo.com>
22189
22190         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
22191         including some doc fixes.
22192         (base64_encode_alloc): Fix +1 bug on allocation failures.
22193
22194 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22195
22196         * lib/base64.c (base64_encode): Do not read past end of array with
22197         unsanitized input on systems with CHAR_BIT > 8.
22198
22199 2006-03-24  Eric Blake  <ebb9@byu.net>
22200
22201         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
22202
22203 2006-03-22  Karl Berry  <karl@gnu.org>
22204
22205         * config/srclist.txt (*setenv.[ch]): get from coreutils.
22206         * config/srclistvars.sh (COREUTILS): new var.
22207
22208 2006-03-17  Jim Meyering  <jim@meyering.net>
22209
22210         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
22211         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
22212
22213 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
22214
22215         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
22216         no longer needs it.  Instead, check that regoff_t is as least
22217         as wide as ptrdiff_t.
22218
22219         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
22220         so that our regex.h stays compatible with the installed regex.
22221         This is helpful for installers who configure --without-included-regex.
22222         Problem reported by Emanuele Giaquinta.
22223
22224 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
22225
22226         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
22227         Typedef to long int, not to off_, as POSIX will likely change
22228         in that direction.
22229
22230 2006-03-15  Eric Blake  <ebb9@byu.net>
22231
22232         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
22233
22234 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
22235
22236         * lib/argp-help.c (validate_uparams): Fix typo
22237         * lib/argp-parse.c (argp_default_options): Consistently begin help
22238         messages with a lowercase letter.
22239
22240 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
22241
22242         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
22243         overrun buffers and shouldn't be used (much as gets shouldn't be
22244         used).
22245         * lib/time_r.c (asctime_r, ctime_r): Likewise.
22246
22247 2006-03-08  Simon Josefsson  <jas@extundo.com>
22248
22249         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
22250         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22251
22252 2006-03-08  Simon Josefsson  <jas@extundo.com>
22253
22254         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
22255         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22256
22257 2006-03-08  Simon Josefsson  <jas@extundo.com>
22258
22259         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
22260         signal that configure disabled the device.
22261
22262 2006-03-08  Simon Josefsson  <jas@extundo.com>
22263
22264         * build-aux/maint.mk: Fix refresh-po, to handle no translated
22265         languages.
22266
22267 2006-03-07  Simon Josefsson  <jas@extundo.com>
22268
22269         * modules/getopt (Depends-on): Add unistd.
22270
22271         * modules/unistd: New file.
22272
22273 2006-03-07  Simon Josefsson  <jas@extundo.com>
22274
22275         * modules/gc-random: New file.
22276
22277 2006-03-07  Simon Josefsson  <jas@extundo.com>
22278
22279         * m4/unistd_h.m4: New file.
22280
22281 2006-03-07  Simon Josefsson  <jas@extundo.com>
22282
22283         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
22284         test to be side-effect free by storing the result in the cache
22285         variable gl_cv_lib_readline, and moving the assignment of
22286         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
22287         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22288
22289 2006-03-07  Simon Josefsson  <jas@extundo.com>
22290
22291         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
22292         error on missing devices (the functions will return an error).
22293
22294         * m4/gc.m4: Move random stuff to gc-random.m4
22295
22296 2006-03-07  Simon Josefsson  <jas@extundo.com>
22297
22298         * lib/unistd_.h: New file.
22299
22300 2006-03-07  Simon Josefsson  <jas@extundo.com>
22301
22302         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
22303
22304 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
22305
22306         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
22307         Problem reported by Juan Manuel Guerrero.
22308
22309 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
22310
22311         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
22312         the unistd module.
22313         * lib/getlogin_r.c: Likewise.
22314         * lib/getlogin_r.h: Likewise.
22315         * lib/glob.c: Likewise.
22316         * lib/pagealign_alloc.c: Likewise.
22317         * lib/unistd_.h: Remove; no longer needed.
22318
22319 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
22320
22321         * MODULES.html.sh (Support for systems lacking POSIX:2001):
22322         Add unistd.
22323         * modules/c-stack (Depends-on): Add unistd.
22324         * modules/getlogin_r: Likewise.
22325         * modules/glob: Likewise.
22326         * modules/pagealign_alloc: Likewise.
22327         * modules/unistd (Files): Remove lib/unistd_.h.
22328         (EXTRA_DIST): Remove.
22329         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
22330         need unistd_.h.
22331         (MOSTLYCLEANFILES): Remove unistd.h-t.
22332
22333 2006-03-03  Simon Josefsson  <jas@extundo.com>
22334
22335         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
22336
22337 2006-03-03  Simon Josefsson  <jas@extundo.com>
22338
22339         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
22340         libidn and bison.
22341
22342 2006-03-03  Simon Josefsson  <jas@extundo.com>
22343
22344         * build-aux/maint.mk: Add indent target.
22345
22346 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
22347
22348         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
22349         our replacement poll.h in any case, to avoid a differing
22350         declaration from a system header.  Seen on AIX.
22351
22352 2006-03-01  Simon Josefsson  <jas@extundo.com>
22353
22354         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
22355         <kasal@ucw.cz>.
22356
22357 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
22358
22359         * modules/gettime (Depends-on): Add extensions module.
22360         * modules/nanosleep (Depends-on): Likewise.
22361         * modules/settime (Depends-on): Likewise.
22362
22363 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
22364
22365         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
22366         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
22367         pedantically.
22368         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
22369         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
22370
22371         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
22372         not "==".  Reported by Ralf Wildenhues.
22373
22374 2006-03-01  Karl Berry  <karl@gnu.org>
22375
22376         * doc/Copyright/request-*: new files, synced from gnuorg.
22377
22378 2006-03-01  Karl Berry  <karl@gnu.org>
22379
22380         * config/srclist.txt (Copyright/*): new entries.
22381
22382 2006-02-28  Simon Josefsson  <jas@extundo.com>
22383
22384         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
22385
22386 2006-02-27  Simon Josefsson  <jas@extundo.com>
22387
22388         * lib/base64.h: Indent #define's.  From Jim Meyering
22389         <jim@meyering.net>.
22390
22391 2006-02-27  Jim Meyering  <jim@meyering.net>
22392
22393         Revert the change of 2006-02-24, so these files can continue
22394         to be sync'd from gettext.
22395         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
22396         of `config.h'.
22397
22398 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
22399
22400         * modules/intprops: New file.
22401         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
22402         Add intprops.
22403         * modules/getloadavg (Files): Remove lib/intprops.h.
22404         (Depends-on): Add intprops.
22405         * modules/human: Likewise.
22406         * modules/inttostr: Likewise.
22407         * modules/openat: Likewise.
22408         * modules/sig2str: Likewise.
22409         * modules/userspec: Likewise.
22410         * modules/utimecmp: Likewise.
22411         * modules/xnanosleep: Likewise.
22412         * modules/xstrtol: Likewise.
22413
22414 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
22415
22416         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
22417         * modules/lock-tests (TESTS): Use $(EXEEXT).
22418         * modules/tls-tests: Likewise.
22419         * modules/argp-tests: Likewise.
22420         (check_PROGRAMS): New var, replacing...
22421         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
22422
22423 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22424
22425         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
22426         `config.h'.
22427
22428 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
22429
22430         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
22431
22432 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22433
22434         Sync from coreutils.
22435         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
22436         gl_CHDIR_SAFER.
22437
22438 2006-02-22  Jim Meyering  <jim@meyering.net>
22439
22440         Sync from coreutils.
22441         * m4/chdir-safer.m4: New file.
22442
22443 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
22444
22445         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
22446         AT_FDCWD exceeds INT_MAX.
22447         * lib/openat.h (AT_FDCWD): Likewise.
22448
22449 2006-02-17  Eric Blake  <address@hidden>
22450
22451         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
22452
22453 2006-02-16  Simon Josefsson  <jas@extundo.com>
22454
22455         * modules/getaddrinfo (Depends-on): Add sys_socket.
22456
22457 2006-02-15  Simon Josefsson  <jas@extundo.com>
22458
22459         * build-aux/maint.mk: Add dsyntax-check rule.
22460
22461 2006-02-15  Eric Blake  <ebb9@byu.net>
22462
22463         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
22464         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
22465         'present but cannot compile' warnings on cygwin.
22466         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
22467         use ws2tcpip.h if sys/socket.h works.
22468         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
22469         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
22470
22471 2006-02-14  Simon Josefsson  <jas@extundo.com>
22472
22473         * modules/maintainer-makefile (Files): Rename.
22474
22475         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
22476         and (the local) Makefile.cfg to maint-cfg.mk.
22477
22478         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
22479         to the latter.
22480
22481         * modules/maintainer-makefile: New module.
22482
22483         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
22484         severaly stripped to make it possible to build it up from scratch
22485         with reliable tests.
22486
22487         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
22488         fixes to permit overriding the default actions when configure and
22489         makefile are not available.
22490
22491 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
22492
22493         Sync from coreutils.
22494         * modules/lstat (Depends-on): Don't depend on xalloc.
22495         (License): Change from GPL to LGPL, since this is now simply a
22496         replacement for a libc function.
22497
22498 2006-02-14  Jim Meyering  <jim@meyering.net>
22499
22500         Sync from coreutils.
22501
22502         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
22503         failure on deficient systems, and simplify gnulib lgpl dependencies.
22504         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
22505         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
22506
22507         * lib/xalloc-die.c: Remove unused definition of N_.
22508
22509 2006-02-14  Jim Meyering  <jim@meyering.net>
22510
22511         Sync from coreutils.
22512         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
22513         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
22514         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
22515         double-quote uses of that variable, to accommodate the rare case in
22516         which getmntent is available in none of the libraries checked.  This
22517         happens at least on FreeBSD 5.0.
22518
22519 2006-02-13  Simon Josefsson  <jas@extundo.com>
22520
22521         * gnulib-tool (Usage): Fix --import, from
22522         karl@freefriends.org (Karl Berry).
22523
22524 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
22525
22526         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
22527
22528 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
22529
22530         * lib/argp-namefrob.h: Restore changes accidentally lost during the
22531         "autoupdate" on 2005-12-12.
22532
22533 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
22534
22535         * modules/closeout (Depends-on): Remove atexit.
22536
22537 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
22538
22539         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
22540         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
22541
22542 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
22543
22544         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
22545         __EXTENSIONS__ if this causes compilation to fail.  Problem
22546         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
22547         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
22548
22549 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
22550
22551         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
22552         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
22553         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
22554         All uses changed.
22555
22556 2006-01-26  Simon Josefsson  <jas@extundo.com>
22557
22558         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
22559         prototype is visible on mingw32.
22560
22561         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
22562         for mingw32.
22563
22564         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
22565         mingw32).
22566
22567 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
22568
22569         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
22570         attempt to open for write; this always fails, at least on POSIX
22571         hosts.  This reinstates the 2006-01-09 change, which was
22572         inadvertently removed.
22573
22574 2006-01-26  Bruno Haible  <bruno@clisp.org>
22575
22576         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
22577         Reported by Paul Eggert.
22578
22579 2006-01-26  Bruno Haible  <bruno@clisp.org>
22580             Paul Eggert  <eggert@cs.ucla.edu>
22581
22582         * lib/stdbool_.h (_Bool)
22583         [(! (defined __cplusplus || defined __BEOS__)
22584           && !defined __GNUC__
22585           && !(defined __HP_cc || defined __xlc__
22586                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
22587                || defined __sgi))]:
22588         #define to signed char in these cases too; this simplifies
22589         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
22590         etc., separately) and makes it more conservative.
22591
22592 2006-01-25  Simon Josefsson  <jas@extundo.com>
22593
22594         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
22595         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
22596         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
22597
22598 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
22599
22600         * lib/argp-namefrob.h: Bugfix. Remove stray #
22601
22602 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
22603
22604         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
22605         so that we test the test.
22606         Check for yet another HP-UX cc bug involving *bool |= bool.
22607
22608 2006-01-25  Karl Berry  <karl@gnu.org>
22609
22610         * config/srclist.txt (vasnprintf.c): sync lost.
22611
22612 2006-01-25  Jim Meyering  <jim@meyering.net>
22613
22614         Sync from the stable (b5) branch of coreutils:
22615
22616         * lib/fts.c (fts_children): Don't let close() clobber errno from
22617         failed fchdir().
22618
22619         * lib/fts.c (fts_stat): When following a symlink-to-directory,
22620         don't necessarily interpret stat-fails+lstat-succeeds as indicating
22621         a dangling symlink.  That can also happen at least for ELOOP.
22622         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
22623         FYI, this bug predates the inclusion of fts.c in coreutils.
22624
22625         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
22626         in their own block, so pre-c99 compilers don't object.
22627
22628         Avoid the double-free (first in fts_read, second in fts_close) that
22629         would occur when an `active' directory is made inaccessible (e.g.,
22630         via chmod a-x) during a traversal.
22631         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
22632         before returning.  Reproduce this failure by
22633         mkdir -p a/b; cd a; chmod a-x . b
22634         Reported by Stavros Passas.
22635
22636 2006-01-25  Jim Meyering  <jim@meyering.net>
22637
22638         * lib/fileblocks.c: Remove more useless parentheses.
22639         * lib/readutmp.h: Likewise.
22640
22641 2006-01-25  Bruno Haible  <bruno@clisp.org>
22642
22643         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
22644         warnings.
22645         Reported by Paul Eggert.
22646
22647 2006-01-25  Bruno Haible  <bruno@clisp.org>
22648
22649         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
22650         rid of a trap command. For Solaris sh.
22651         Reported by Mark D. Baushke <mdb@gnu.org>.
22652
22653 2006-01-24  Simon Josefsson  <jas@extundo.com>
22654
22655         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
22656         Bruno.
22657
22658 2006-01-24  Karl Berry  <karl@gnu.org>
22659
22660         * config/srclist.txt (argp-namefrob.h): sync lost.
22661
22662 2006-01-24  Jim Meyering  <jim@meyering.net>
22663
22664         * modules/openat (Files): Add lib/intprops.h.
22665         From Mark D. Baushke.
22666
22667 2006-01-24  Jim Meyering  <jim@meyering.net>
22668
22669         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
22670         Reported by Mark D. Baushke.
22671
22672 2006-01-24  Jim Meyering  <jim@meyering.net>
22673
22674         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
22675
22676 2006-01-24  Bruno Haible  <bruno@clisp.org>
22677
22678         * modules/strnlen (Maintainer): Change from glibc to all.
22679
22680 2006-01-24  Bruno Haible  <bruno@clisp.org>
22681
22682         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
22683         Patch by Paul Eggert.
22684
22685 2006-01-24  Bruno Haible  <bruno@clisp.org>
22686
22687         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
22688         already has it.
22689         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
22690         2005-11-26.
22691
22692         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
22693         'signed char' to avoid problems with the built-in _Bool type.
22694         Reported by Paul Eggert on 2005-11-26.
22695
22696 2006-01-24  Bruno Haible  <bruno@clisp.org>
22697
22698         * gnulib-tool (func_import): Avoid constructing complicated sed
22699         expressions inside backquote.
22700         Report and solution by Mark D. Baushke <mdb@gnu.org>.
22701
22702 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
22703
22704         These changes imported from libc.
22705         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
22706         test and two separate function calls.
22707         * lib/strndup.c (__strndup): Add libc_hidden_def.
22708
22709 2006-01-23  Simon Josefsson  <jas@extundo.com>
22710
22711         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
22712         Remove the test_*_SOURCES variable: automake infers it by default.
22713         * modules/tls-tests: Likewise.
22714
22715 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
22716
22717         Work around porting bugs reported by Dieter in
22718         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
22719         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
22720         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
22721         Include "getopt.h" first, to check interface.
22722         (getenv): Declare only if defined HAVE_DECL_GETENV &&
22723         !HAVE_DECL_GETENV.
22724         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
22725         (__strndup): Revert to K&R-style function dfns, the glibc style.
22726         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
22727         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
22728         Include strnlen.h first, to get prototype properly.
22729         (strnlen): Renamed from __strnlen.
22730         Remove weak alias.
22731
22732 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
22733
22734         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
22735
22736 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
22737
22738         * config/srclist.txt: Adjust to reflect glibc reorganization.
22739         This affects only comments.
22740
22741 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
22742
22743          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
22744          Reported by Bruce Korb <bkorb@gnu.org>.
22745
22746 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
22747
22748         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
22749         to pacify gcc -Wswitch-default.
22750
22751 2006-01-22  Bruno Haible  <bruno@clisp.org>
22752
22753         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
22754         temporary buffer for sprintf, take into account the precision also
22755         for 'd', 'i', 'u', 'o', 'x', 'X'.
22756
22757 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
22758
22759         * modules/argp-tests: New module
22760         * tests/test-argp.c: New file
22761         * tests/test-argp-2.sh: New file
22762
22763 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
22764
22765         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
22766         (__argp_base_name): Removed
22767         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
22768         typo.
22769         (__argp_base_name): Provide macro definition or extern declaration
22770         depending on the configuration
22771
22772 2006-01-20  Simon Josefsson  <jas@extundo.com>
22773
22774         * modules/inet_ntop (Depends-on): Depend on sys_socket.
22775
22776 2006-01-20  Simon Josefsson  <jas@extundo.com>
22777
22778         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
22779
22780 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
22781
22782         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
22783         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
22784         Suggested by Bruno Haible.
22785
22786 2006-01-20  Karl Berry  <karl@gnu.org>
22787
22788         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
22789         until changes propagate, I guess.
22790
22791 2006-01-19  Simon Josefsson  <jas@extundo.com>
22792
22793         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
22794
22795 2006-01-19  Simon Josefsson  <jas@extundo.com>
22796
22797         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
22798
22799 2006-01-19  Simon Josefsson  <jas@extundo.com>
22800
22801         * gnulib-tool: Set check_PROGRAMS.
22802
22803         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
22804         modules/des-tests, modules/gc-arcfour-tests,
22805         modules/gc-arctwo-tests, modules/gc-des-tests,
22806         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
22807         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
22808         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
22809         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
22810         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
22811         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
22812         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
22813         test_*_SOURCES.
22814
22815 2006-01-18  Simon Josefsson  <jas@extundo.com>
22816
22817         * modules/socklen (Depends-on): Depend on sys_socket.
22818
22819 2006-01-18  Simon Josefsson  <jas@extundo.com>
22820
22821         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
22822         modules/des-tests, modules/gc-arcfour-tests,
22823         modules/gc-arctwo-tests, modules/gc-des-tests,
22824         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
22825         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
22826         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
22827         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
22828         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
22829         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
22830         $(EXEEXT) to automake TESTS variable, for mingw32.
22831
22832 2006-01-17  Simon Josefsson  <jas@extundo.com>
22833
22834         * modules/socklen (Include): Need sys/socket.h.
22835
22836 2006-01-17  Bruno Haible  <bruno@clisp.org>
22837
22838         * modules/ssize_t (Include): Add <sys/types.h>.
22839
22840 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
22841
22842         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
22843         it's not portable and it doesn't work with cross-compiles.
22844         Problem reported by Bruno Haible.  Fix missing-$ typo in
22845         'test "gl_cv_ignore_unused_libraries" ...' that prevented
22846         -zignore from being used with Sun's C compiler.
22847
22848 2006-01-12  Simon Josefsson  <jas@extundo.com>
22849
22850         * lib/base64.c: Fix warning, reported by Bruno Haible
22851         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
22852
22853 2006-01-12  Bruno Haible  <bruno@clisp.org>
22854
22855         * modules/ldd: New file.
22856         * build-aux/ldd.sh.in: New file.
22857         * MODULES.html.sh (Support for building libraries and executables): Add
22858         ldd.
22859
22860 2006-01-12  Bruno Haible  <bruno@clisp.org>
22861
22862         * m4/ldd.m4: New file.
22863
22864 2006-01-12  Bruno Haible  <bruno@clisp.org>
22865
22866         * gnulib-tool (func_import, func_create_testdir): Don't go into an
22867         endless loop while replacing $auxdir with build-aux.
22868
22869 2006-01-11  Simon Josefsson  <jas@extundo.com>
22870
22871         * lib/stdint_.h (SIZE_MAX): Add missing (.
22872
22873 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
22874
22875         Sync from coreutils.
22876         * lib/md5.c: Fix commentary typos.
22877         (alignof, UNALIGNED_P): No need for a GCC-specific version.
22878         * lib/md5.h (__attribute__): Remove; unused.
22879         * lib/sha1.c: Fix commentary to match md5 better.
22880         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
22881         so that we don't need to worry about alignment.  All uses changed.
22882         This merges the 2005-10-28 md5 change into sha1.
22883
22884 2006-01-11  Jim Meyering  <jim@meyering.net>
22885
22886         Sync from coreutils.
22887         * lib/md5.c (OP): Fix spacing.
22888
22889 2006-01-11  Bruno Haible  <bruno@clisp.org>
22890
22891         Ensure automatic ordering between gl_LOCK and gl_ARGP.
22892         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
22893         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
22894
22895 2006-01-11  Bruno Haible  <bruno@clisp.org>
22896
22897         Ensure automatic ordering between gl_LOCK and gl_ARGP.
22898         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
22899         the "early" section as well.
22900
22901 2006-01-11  Bruno Haible  <bruno@clisp.org>
22902
22903         Avoid "ar: no archive members specified" error on MacOS X.
22904         * gnulib-tool (func_modules_add_dummy): New function.
22905         (func_import, func_create_testdir): Invoke it.
22906
22907 2006-01-11  Bruno Haible  <bruno@clisp.org>
22908
22909         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
22910         with $auxdir in AC_CONFIG_FILES statements.
22911
22912 2006-01-11  Bruno Haible  <bruno@clisp.org>
22913
22914         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
22915         Initialize also noinst_HEADERS to empty.
22916
22917 2006-01-11  Bruno Haible  <bruno@clisp.org>
22918
22919         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
22920         variables.
22921         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
22922         autoreconf.
22923
22924 2006-01-11  Bruno Haible  <bruno@clisp.org>
22925
22926         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
22927         overridable by the user.
22928         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22929
22930 2006-01-10  Simon Josefsson  <jas@extundo.com>
22931
22932         * modules/sys_socket: New file.
22933
22934 2006-01-10  Simon Josefsson  <jas@extundo.com>
22935
22936         * m4/sys_socket_h.m4: New file.
22937
22938 2006-01-10  Simon Josefsson  <jas@extundo.com>
22939
22940         * lib/socket_.h: New file.
22941
22942 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
22943
22944         * modules/readutmp (Maintainer): Add myself.
22945
22946 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
22947
22948         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
22949         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
22950         People who are still concerned with buggy memcmp implementations
22951         can invoke gl_FUNC_MEMCMP themselves.
22952
22953 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
22954
22955         * lib/regex_internal.h (BITSET_WORD_BITS):
22956         Work around a bug in 64-bit PGC (before version 6.1-2), where the
22957         preprocessor mishandles large unsigned values as if they were signed.
22958         Problem reported by Claudio Fontana in
22959         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
22960
22961 2006-01-10  Jim Meyering  <jim@meyering.net>
22962
22963         Avoid the double-free (first in fts_read, second in fts_close) that
22964         would occur when an `active' directory is made inaccessible (e.g.,
22965         via chmod a-x) during a traversal.
22966         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
22967         before returning.  Reproduce this failure by
22968         mkdir -p a/b; cd a; chmod a-x . b
22969         Reported by Stavros Passas.
22970
22971         Sync from coreutils.
22972         * lib/sha1.c: Tweak grammar in a comment.
22973
22974 2006-01-10  Jim Meyering  <jim@meyering.net>
22975
22976         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
22977         Patch by Joerg Sonnenberger.
22978
22979 2006-01-10  Bruno Haible  <bruno@clisp.org>
22980
22981         * modules/readutmp: Depend on module free.
22982         * modules/strtok_r: Depend on module restrict.
22983
22984 2006-01-10  Bruno Haible  <bruno@clisp.org>
22985
22986         * modules/gettext (configure.ac): Add an invocation of
22987         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
22988
22989 2006-01-10  Bruno Haible  <bruno@clisp.org>
22990
22991         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
22992         Reported by Werner Lemberg <wl@gnu.org>.
22993
22994 2006-01-10  Bruno Haible  <bruno@clisp.org>
22995
22996         * lib/localcharset.c: Update from GNU gettext.
22997
22998 2006-01-10  Bruno Haible  <bruno@clisp.org>
22999
23000         * lib/argp.h (__const): Remove macro. Use const instead.
23001         * lib/argp-fmtstream.h (__const): Likewise.
23002         * lib/glob_.h (__const): Remove macro.
23003         * lib/glob-libc.h: Use const instead of __const.
23004
23005 2006-01-10  Bruno Haible  <bruno@clisp.org>
23006
23007         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
23008         variable.
23009         Needed to avoid an automake error regarding the 'gettext' module.
23010
23011 2006-01-09  Simon Josefsson  <jas@extundo.com>
23012
23013         * modules/inet_ntop (Depends-on): Add restrict.
23014
23015 2006-01-09  Simon Josefsson  <jas@extundo.com>
23016
23017         * modules/gc-rijndael-tests (License): Put under LGPL.
23018
23019         * modules/gc-des-tests (License): Likewise.
23020
23021         * modules/gc-arcfour-tests (License): Likewise.
23022
23023         * modules/gc-arctwo-tests (License): Likewise.
23024
23025         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
23026
23027         * modules/gc-hmac-sha1-tests (Files): Likewise.
23028
23029         * modules/gc-hmac-md5-tests (License): Likewise.
23030
23031         * modules/gc-sha1-tests (License): Likewise.
23032
23033         * modules/gc-md5-tests (License): Likewise.
23034
23035         * modules/gc-md4-tests (License): Likewise.
23036
23037         * modules/gc-md2-tests (License): Likewise.
23038
23039         * modules/gc-tests (License): Likewise.
23040
23041         * modules/des-tests (License): Likewise.
23042
23043         * modules/md4-tests (License): Likewise.
23044
23045         * modules/md2-tests (License): Likewise.
23046
23047 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
23048
23049         Sync from coreutils:
23050
23051         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
23052         * modules/lib-ignore: New file.
23053         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
23054         chdir-safer.m4, lchmod.m4.
23055         * modules/openat: Add mkdirat.c, openat-priv.h.
23056
23057 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
23058
23059         Sync from coreutils.
23060         * m4/lib-ignore.m4: New file.
23061         * m4/lchmod.m4: New file.
23062
23063 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
23064
23065         Sync from coreutils.
23066         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
23067         for write access: POSIX says that must fail.
23068         * lib/fts.c (diropen): Likewise.
23069         * lib/save-cwd.c (save_cwd): Likewise.
23070         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
23071         well, for minor improvements on hosts that lack O_DIRECTORY.
23072         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
23073         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
23074         Fall back on chown if open failed with EACCES.
23075
23076         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
23077         Report an error at compile-time if only a 1-second nominal clock
23078         resolution is found.
23079
23080         * lib/lchmod.h: New file.
23081         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
23082         (make_dir_parents): Use lchown rather than chown, and
23083         lchmod rather than chmod.
23084
23085         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
23086         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
23087         "proc" reported by n0dalus.
23088
23089         * lib/mountlist.c: Include <limits.h>.
23090         (dev_from_mount_options)
23091         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
23092         New function.  It no longer assumes "dev=" has the System V meaning
23093         on Linux (since it doesn't).  It also parses "dev=" more carefully.
23094         (read_file_system_list)
23095         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
23096         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
23097         dev= in that case.
23098
23099         * lib/posixtm.h (PDS_PRE_2000): New macro.
23100         * lib/posixtm.c (year): Arg is now syntax_bits rather than
23101         allow_century.  All usages changed.  Reject dates outside the range
23102         1969-1999 if PDS_PRE_2000 is used.
23103
23104 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
23105
23106         Sync from coreutils.
23107         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
23108         (Time of day items): Mention the possibility of leap seconds.
23109         Problem reported by Dr. David Alan Gilbert.
23110
23111 2006-01-09  Jim Meyering  <jim@meyering.net>
23112
23113         Sync from coreutils.
23114
23115         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
23116
23117         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
23118
23119         * lib/modechange.c (mode_compile): Reject an invalid mode string
23120         that starts with an octal digit.  From Andreas Gruenbacher.
23121
23122         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
23123         and dup to open_safer and dup_safer, respectively.
23124         (openat_permissive): Fix typo in comment.
23125
23126         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
23127         "gettext.h"; either no longer needed or are guaranteed by openat.h.
23128         (_): Remove; no longer needed.
23129         (openat): Renamed from rpl_openat; no need for rpl_openat
23130         since openat.h renames openat for us.
23131         Replace most of the body with a call to openat_permissive,
23132         to avoid duplicate code.
23133         Port to (probably hypothetical) environments were mode_t is
23134         wider than int.
23135         (openat_permissive): Require mode arg, so that we can check
23136         types better.  Put it just after flags.  Change cwd failure
23137         indicator from pointer-to-bool to pointer-to-errno-value.
23138         All callers changed.
23139         Invoke openat_save_fail and/or openat_restore_fail if
23140         cwd_errno is null, so that openat can call us.
23141         (openat_permissive, fdopendir, fstatat, unlinkat):
23142         Simplify errno handling to avoid some duplicate code,
23143         as it's OK to set errno on success.
23144         * lib/openat.h: Revamp code so that function macros depend on
23145         __OPENAT_PREFIX only, not also on AT_FDCWD.
23146         (openat_ro): Remove.  Caller changed to use openat_permissive.
23147         (openat_permissive): Now a macro, if not a function.
23148         (openat_restore_fail, openat_save_fail): Now always functions,
23149         since mkdirat needs them even if __OPENAT_PREFIX is defined.
23150
23151         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
23152         and openat.c.
23153         * lib/mkdirat.c: Include openat-priv.h.
23154         Remove definitions of macros defined therein.
23155         * lib/openat.c: Likewise.
23156
23157         * lib/mkdirat.c (mkdirat): New file and function.
23158         * lib/openat.h (mkdirat): Declare.
23159
23160         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
23161
23162         * lib/openat.h (openat_permissive): Declare.
23163         (openat_ro): Define.
23164
23165         * lib/openat.c (EXPECTED_ERRNO): New macro.
23166         (openat_permissive): New function -- used in remove.c rewrite.
23167         (all functions): Set errno just before returning, only if there
23168         was an actual failure.
23169         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
23170
23171         Emulate openat-family functions using Linux's procfs, if possible.
23172         Idea and some code based on Ulrich Drepper's glibc changes.
23173
23174         * lib/openat.c: (BUILD_PROC_NAME): New macro.
23175         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
23176         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
23177         before falling back on save_cwd and restore_cwd.
23178         (fdopendir, fstatat, unlinkat): Likewise.
23179
23180         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
23181         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
23182
23183         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
23184         as second argument to va_arg.  Otherwise, some versions of gcc
23185         warn that `if this code is reached, the program will abort'.
23186
23187 2006-01-09  Jim Meyering  <jim@meyering.net>
23188
23189         Sync from coreutils.
23190         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
23191         Require openat-priv.h.
23192
23193 2006-01-09  Bruno Haible  <bruno@clisp.org>
23194
23195         * modules/strnlen (Include): Use strnlen.h.
23196
23197 2006-01-09  Bruno Haible  <bruno@clisp.org>
23198
23199         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
23200
23201 2006-01-09  Bruno Haible  <bruno@clisp.org>
23202
23203         * lib/sysexit_.h (EX_OK): New macro.
23204         Suggested by Martin Lambers <marlam@marlam.de>.
23205
23206 2006-01-09  Bruno Haible  <bruno@clisp.org>
23207
23208         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
23209         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
23210
23211 2006-01-09  Bruno Haible  <bruno@clisp.org>
23212
23213         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
23214         numbers.
23215
23216 2006-01-09  Bruno Haible  <bruno@clisp.org>
23217
23218         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
23219         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
23220         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
23221         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
23222
23223 2006-01-09  Bruno Haible  <bruno@clisp.org>
23224
23225         * build-aux/javacomp.sh.in: New file, moved from lib/.
23226         * modules/javacomp-script (Files): Update.
23227         (configure.ac): Add AC_CONFIG_FILES invocation.
23228         (EXTRA_DIST): Remove variable.
23229
23230         * build-aux/javaexec.sh.in: New file, moved from lib/.
23231         * modules/javaexec (Files): Update.
23232         (configure.ac): Add AC_CONFIG_FILES invocation.
23233         (EXTRA_DIST): Remove javaexec.sh.in.
23234
23235         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
23236         * modules/csharpcomp-script (Files): Update.
23237         (configure.ac): Add AC_CONFIG_FILES invocation.
23238         (EXTRA_DIST): Remove variable.
23239
23240         * build-aux/csharpexec.sh.in: New file, moved from lib/.
23241         * modules/csharpexec (Files): Update.
23242         (configure.ac): Add AC_CONFIG_FILES invocation.
23243         (EXTRA_DIST): Remove csharpexec.sh.in.
23244
23245 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
23246
23247         Sync from coreutils.
23248
23249         Add POSIX ACL support
23250         * lib/acl.h (copy_acl, set_acl): Add declarations.
23251         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
23252         systems other than Linux.
23253         (chmod_or_fchmod): New function: use fchmod when possible,
23254         and chmod otherwise.
23255         (file_has_acl): Add a POSIX ACL implementation, with a
23256         Linux-specific subcase.
23257         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
23258         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
23259         acls are unsupported.
23260         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
23261         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
23262         are unsupported.
23263
23264 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
23265
23266         Sync from coreutils.
23267         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
23268
23269 2006-01-07  Bruno Haible  <bruno@clisp.org>
23270
23271         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
23272         gl_EARLY.
23273
23274 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
23275
23276         * lib/strftime.c (tzname): Don't declare if it is already #defined.
23277         Problem reported for Mingw by Mark Junker.
23278
23279 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
23280
23281         * README: Gnulib normally doesn't generate a tarball.
23282
23283 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
23284
23285         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
23286         long int, not int, for nanosecond counts, so that people who are
23287         used to POSIX struct timespec won't be surprised.  Reported by Jim
23288         Meyering.
23289
23290 2005-12-28  Bruno Haible  <bruno@clisp.org>
23291
23292         * build-aux/config.rpath: Update from GNU gettext.
23293
23294 2005-12-16  Jim Meyering  <jim@meyering.net>
23295
23296         * modules/fprintftime: New module.
23297         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
23298
23299 2005-12-16  Jim Meyering  <jim@meyering.net>
23300
23301         * m4/fprintftime.m4: New file.
23302
23303 2005-12-16  Jim Meyering  <jim@meyering.net>
23304
23305         * lib/fprintftime.c, lib/fprintftime.h: New files.
23306
23307 2005-12-15  Simon Josefsson  <jas@extundo.com>
23308
23309         * modules/socklen (configure.ac): Fix M4 macro name, to align with
23310         new m4/socklen.m4.
23311
23312 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
23313
23314         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
23315         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
23316
23317 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
23318
23319         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
23320         * lib/argp-help.c (fill_in_uparams): Check if the constructed
23321         struct uparams is valid. Fall back to the default values if it is
23322         not.
23323
23324 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
23325
23326         * modules/argp (Files): Add argp-pin.c
23327         (Depends-on): dirname
23328         (lib_SOURCES): Add argp-pin.c
23329
23330 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
23331
23332         * m4/argp.m4:  Check if program_invocation_name and
23333         program_invocation_short_name are declared and define appropriate
23334         macros if they are not.
23335
23336 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
23337
23338         * lib/argp-help.c (__argp_base_name): New function
23339         (__argp_short_program_name): Rewrite using __argp_base_name
23340         * lib/argp-namefrob.h: Define program_invocation_name and
23341         program_invocation_short_name if requested
23342         (__argp_base_name): Add prototype
23343         * lib/argp-parse.c (argp_def): Use gettext wrappers
23344         (argp_default_parser): Use __argp_base_name
23345         * lib/argp-pin.c: New file. Defines program_invocation_name and
23346         program_invocation_short_name on systems that lack them.
23347
23348 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
23349
23350         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
23351         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
23352         porting problem reported by Georg Schwarz in
23353         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
23354
23355 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
23356
23357         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
23358         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
23359         porting problem reported by Georg Schwarz in
23360         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
23361
23362 2005-12-05  Bruno Haible  <bruno@clisp.org>
23363
23364         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
23365         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
23366         Reported by Mark Junker <mjscod@gmx.de>.
23367
23368 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
23369
23370         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
23371         Use implementation from Albert Chin, with some
23372         comments/corrections by Stepan Kasal and myself.
23373
23374 2005-12-02  Bruno Haible  <bruno@clisp.org>
23375
23376         * gnulib-tool (func_import): Accept GPLed build tool modules when
23377         --lgpl is given.
23378         * modules/csharpcomp-script: New file.
23379         * modules/csharpcomp: Depend on it.
23380         * modules/javacomp-script: New file.
23381         * modules/javacomp: Depend on it.
23382         Suggested by Simon Josefsson.
23383
23384 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
23385
23386         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
23387         statement, to work around an HP-UX 10.20 compiler bug reported by
23388         Peter O'Gorman.
23389
23390 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
23391
23392         * modules/savedir (Depends-on): Add openat.
23393
23394 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
23395
23396         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
23397         (uintmax_t) [defined uintmax_t]: Do not declare.
23398         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
23399         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
23400         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
23401         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
23402         sake of portability to weird hosts that C allows (though we don't
23403         know of any practical examples).
23404
23405         * lib/savedir.h (fdsavedir): New decl.
23406         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
23407         contains most of the former guts of savedir.
23408         (savedir): Use savedirstream.
23409         Include "openat.h".
23410
23411 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
23412
23413         * modules/obstack (Files): Add m4/ulonglong.m4.
23414         Problem reported by Davide Angelocola.
23415
23416 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
23417
23418         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
23419         coreutils no longer futzes with rounding modes.
23420
23421 2005-11-14  Jim Meyering  <jim@meyering.net>
23422
23423         * lib/mkstemp-safer.c: Include <config.h>, required for possible
23424         replacement of mkstemp.
23425
23426 2005-11-10  Simon Josefsson  <jas@extundo.com>
23427
23428         * lib/readline.c: Remove EOL.
23429
23430 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
23431
23432         * modules/gethrxtime (Depends-on): Add gettime.
23433
23434 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
23435
23436         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
23437         or gettimeofday; no longer needed.
23438
23439 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
23440
23441         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
23442         time business.
23443         (gethrxtime) [! (HAVE_NANOUPTIME
23444         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
23445         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
23446         our own approximation.
23447
23448 2005-11-08  Eric Blake  <ebb9@byu.net>
23449
23450         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
23451
23452 2005-11-08  Eric Blake  <ebb9@byu.net>
23453
23454         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
23455
23456 2005-11-04  Bruno Haible  <bruno@clisp.org>
23457
23458         * gnulib-tool: Implement --update mode.
23459
23460 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
23461
23462         Fix porting problem reported by Theodoros V. Kalamatianos.
23463         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
23464         Don't assume that futimes failing means we must fail.
23465
23466 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
23467
23468         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
23469         variables to suggest the intended function of the PATH_MAX check.
23470
23471 2005-10-30  Kean Johnston  <jkj@sco.com>
23472
23473         Trivial changes to support SCO systems.
23474         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
23475         as PATH_MAX.
23476         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
23477         where __ptr is null when no I/O is pending.
23478
23479 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
23480
23481         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
23482         leave errno alone.  Problem reported by Dmitry V. Levin.
23483
23484 2005-10-28  Simon Josefsson  <jas@extundo.com>
23485
23486         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
23487         Test more.
23488
23489         * tests/test-gc-md2.c, tests/test-md2.c: New files.
23490
23491         * modules/md2, modules/md2-tests: New files.
23492
23493 2005-10-28  Simon Josefsson  <jas@extundo.com>
23494
23495         * m4/inet_ntop.m4: More tests.
23496
23497         * m4/gc-md2.m4, md2.m4: New file.
23498
23499 2005-10-28  Simon Josefsson  <jas@extundo.com>
23500
23501         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
23502         "restrict" keywords, as per POSIX.  Protect the function
23503         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
23504         Don't use K&R prototypes.  Check the sprintf return values.
23505         Re-define EAFNOSUPPORT if not present.  Indent.
23506
23507         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
23508         suggested by Bruno Haible <bruno@clisp.org>.
23509
23510         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
23511
23512         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
23513
23514         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
23515         libgcrypt).
23516
23517         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
23518
23519         * lib/md2.h, lib/md2.c: New files.
23520
23521 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
23522
23523         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
23524         errno alone.  Problem reported by Frederic Jolliton.
23525
23526 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
23527
23528         * modules/verify (License): Change from GPL to LGPL.  This is a
23529         tiny module and there are apparently near-equivalents that are
23530         under the BSD license.
23531
23532 2005-10-24  Simon Josefsson  <jas@extundo.com>
23533
23534         * modules/sha1: Relicense to LGPL.
23535
23536 2005-10-24  Simon Josefsson  <jas@extundo.com>
23537
23538         * lib/md4.h: Shrink buffer size, now that we changed the type.
23539
23540 2005-10-23  Simon Josefsson  <jas@extundo.com>
23541
23542         * gnulib-tool (func_import): Fix --tests-base.
23543
23544 2005-10-22  Simon Josefsson  <jas@extundo.com>
23545
23546         * modules/arcfour (Depends-on): Need stdint.
23547
23548 2005-10-22  Simon Josefsson  <jas@extundo.com>
23549
23550         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
23551         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
23552
23553 2005-10-22  Simon Josefsson  <jas@extundo.com>
23554
23555         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
23556         suggested by Bruno Haible <bruno@clisp.org>.
23557
23558 2005-10-22  Simon Josefsson  <jas@extundo.com>
23559
23560         * lib/crc.h: Include stddef.h, for size_t.
23561
23562 2005-10-22  Simon Josefsson  <jas@extundo.com>
23563
23564         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
23565         arcfour_context struct (simplify test vector testing in GNU
23566         Shishi).
23567
23568 2005-10-21  Simon Josefsson  <jas@extundo.com>
23569
23570         * modules/des, modules/des-tests: New files.
23571
23572         * modules/gc-des, modules/gc-des-tests: New files.
23573
23574         * tests/test-des.c, tests/test-gc-des.c: New file.
23575
23576 2005-10-21  Simon Josefsson  <jas@extundo.com>
23577
23578         * modules/arctwo, modules/arctwo-tests: New files.
23579
23580         * tests/test-arctwo.c: New file.
23581
23582         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
23583
23584         * tests/test-gc-arctwo.c: New file.
23585
23586 2005-10-21  Simon Josefsson  <jas@extundo.com>
23587
23588         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
23589         Bruno Haible <bruno@clisp.org>.
23590
23591         * m4/gc-des.m4: New file.
23592
23593 2005-10-21  Simon Josefsson  <jas@extundo.com>
23594
23595         * m4/arctwo.m4: New file.
23596
23597         * m4/gc-arctwo.m4: New file.
23598
23599 2005-10-21  Simon Josefsson  <jas@extundo.com>
23600
23601         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
23602         block.
23603
23604 2005-10-21  Simon Josefsson  <jas@extundo.com>
23605
23606         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
23607         <bruno@clisp.org>.
23608
23609         * lib/hmac-sha1.c (hmac_sha1): Likewise.
23610
23611         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
23612         Bruno Haible <bruno@clisp.org>.
23613
23614         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
23615         <bruno@clisp.org>.
23616
23617 2005-10-21  Simon Josefsson  <jas@extundo.com>
23618
23619         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
23620
23621 2005-10-21  Simon Josefsson  <jas@extundo.com>
23622
23623         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
23624
23625 2005-10-21  Simon Josefsson  <jas@extundo.com>
23626
23627         * lib/des.h, lib/des.c: New files.
23628
23629         * lib/gc-gnulib.c: Support DES.c
23630
23631 2005-10-21  Simon Josefsson  <jas@extundo.com>
23632
23633         * lib/arctwo.h, lib/arctwo.c: New files.
23634
23635         * lib/gc-gnulib.c: Support ARCTWO.
23636
23637 2005-10-21  Simon Josefsson  <jas@extundo.com>
23638
23639         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
23640         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23641
23642 2005-10-21  Simon Josefsson  <jas@extundo.com>
23643
23644         * gnulib-tool (func_import, func_create_testdir): Define automake
23645         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
23646         Makefile.am snippet),
23647         suggested by Bruno Haible <bruno@clisp.org>.
23648
23649         * modules/gc (Makefile.am): Use it.
23650
23651 2005-10-21  Bruno Haible  <bruno@clisp.org>
23652
23653         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
23654         patch.
23655
23656 2005-10-19  Simon Josefsson  <jas@extundo.com>
23657
23658         * tests/test-gc-rijndael.c: New file.
23659
23660         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
23661
23662 2005-10-19  Simon Josefsson  <jas@extundo.com>
23663
23664         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
23665         interface too.
23666
23667 2005-10-19  Simon Josefsson  <jas@extundo.com>
23668
23669         * tests/test-gc-arcfour.c: New file.
23670
23671         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
23672
23673 2005-10-19  Simon Josefsson  <jas@extundo.com>
23674
23675         * modules/gc-md4, modules/gc-md4-tests: New file.
23676
23677         * tests/test-gc-md4.c: New file.
23678
23679 2005-10-19  Simon Josefsson  <jas@extundo.com>
23680
23681         * m4/gc-md4.m4: New file.
23682
23683 2005-10-19  Simon Josefsson  <jas@extundo.com>
23684
23685         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
23686         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
23687         <kasal@ucw.cz>.
23688
23689 2005-10-19  Simon Josefsson  <jas@extundo.com>
23690
23691         * m4/gc-arcfour.m4: New file.
23692
23693         * m4/gc-rijndael.m4: New file.
23694
23695 2005-10-19  Simon Josefsson  <jas@extundo.com>
23696
23697         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
23698
23699 2005-10-19  Simon Josefsson  <jas@extundo.com>
23700
23701         * lib/gc-gnulib.c: Support ARCFOUR.
23702
23703 2005-10-19  Simon Josefsson  <jas@extundo.com>
23704
23705         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
23706         support.
23707
23708         * lib/gc.h: Add ECB enum type.
23709
23710         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
23711
23712 2005-10-18  Simon Josefsson  <jas@extundo.com>
23713
23714         * tests/test-md5.c: New file.
23715
23716         * modules/md5-tests: New file.
23717
23718 2005-10-18  Simon Josefsson  <jas@extundo.com>
23719
23720         * tests/test-md4.c: New file.
23721
23722         * modules/md4, modules/md4-tests: New files.
23723
23724 2005-10-18  Simon Josefsson  <jas@extundo.com>
23725
23726         * m4/md4.m4: New file.
23727
23728 2005-10-18  Simon Josefsson  <jas@extundo.com>
23729
23730         * lib/md4.h, lib/md4.c: New files, based on md5.?.
23731
23732 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
23733
23734         * gnulib-tool (func_create_testdir): Omit the second check whether
23735         BUILT_SOURCES in nonempty.
23736
23737 2005-10-17  Simon Josefsson  <jas@extundo.com>
23738
23739         * tests/test-rijndael.c: New file.
23740
23741 2005-10-17  Simon Josefsson  <jas@extundo.com>
23742
23743         * modules/sha1: Depend on stdint instead of md5.
23744
23745         * modules/md5: Depend on stdint, remove uint32_t.
23746
23747 2005-10-17  Simon Josefsson  <jas@extundo.com>
23748
23749         * modules/gc-sha1-tests: New file.
23750
23751         * tests/test-gc-sha1.c: New file.
23752
23753 2005-10-17  Simon Josefsson  <jas@extundo.com>
23754
23755         * m4/md5.m4: Remove call to uint32_t.m4.
23756
23757 2005-10-17  Simon Josefsson  <jas@extundo.com>
23758
23759         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
23760
23761         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
23762         md5.h.
23763
23764         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
23765
23766         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
23767
23768 2005-10-17  Simon Josefsson  <jas@extundo.com>
23769
23770         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
23771
23772 2005-10-17  Simon Josefsson  <jas@extundo.com>
23773
23774         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
23775
23776 2005-10-17  Simon Josefsson  <jas@extundo.com>
23777
23778         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
23779
23780         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
23781
23782 2005-10-17  Bruno Haible  <bruno@clisp.org>
23783
23784         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
23785         that it can also be used in a test.
23786
23787 2005-10-16  Bruno Haible  <bruno@clisp.org>
23788
23789         * gnulib-tool (func_emit_tests_Makefile_am): Also define
23790         TESTS_ENVIRONMENT, so that individual tests can augment it.
23791
23792         * gnulib-tool (func_create_testdir): Use an intermediate target for
23793         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
23794         macros, like $(ALLOCA_H), which cannot be passed through the command
23795         line.
23796
23797 2005-10-15  Simon Josefsson  <jas@extundo.com>
23798
23799         * modules/rijndael-tests: New file.
23800
23801         * modules/rijndael: New file.
23802
23803 2005-10-15  Simon Josefsson  <jas@extundo.com>
23804
23805         * m4/rijndael.m4: New file.
23806
23807 2005-10-15  Simon Josefsson  <jas@extundo.com>
23808
23809         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
23810
23811         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
23812
23813 2005-10-14  Simon Josefsson  <jas@extundo.com>
23814
23815         * tests/test-arcfour.c: New file.
23816
23817         * modules/arcfour, modules/arcfour-tests: New files.
23818
23819 2005-10-14  Simon Josefsson  <jas@extundo.com>
23820
23821         * m4/arcfour.m4: New file.
23822
23823 2005-10-14  Simon Josefsson  <jas@extundo.com>
23824
23825         * lib/arcfour.h, lib/arcfour.c: New files.
23826
23827 2005-10-14  Roland McGrath  <roland@redhat.com>
23828
23829         Import from libc.  [BZ #1331]
23830         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
23831         macro argument.
23832         Reported by Matej Vela <vela@debian.org>.
23833
23834 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
23835
23836         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
23837         include <wchar.h>; no longer needed.
23838
23839 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
23840
23841         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
23842
23843 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
23844         and  Ulrich Drepper  <drepper@redhat.com>
23845
23846         Import from libc.
23847         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
23848         instead of inline stream orientation test and two separate
23849         function calls.  Pay no attention to USE_IN_LIBIO.
23850
23851 2005-10-13  Simon Josefsson  <jas@extundo.com>
23852
23853         * modules/gc-hmac-md5-tests: New file.
23854
23855         * tests/test-gc-hmac-sha1.c: New file.
23856
23857         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
23858
23859         * modules/gc-hmac-md5-tests: New file.
23860
23861         * tests/test-gc-md5.c: New file.
23862
23863         * modules/gc-md5-tests: New file.
23864
23865 2005-10-13  Simon Josefsson  <jas@extundo.com>
23866
23867         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
23868         Move memory allocation outside of loop.
23869
23870 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
23871
23872         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
23873         intermediate directory is in a read-only file system.  Problem
23874         reported by Eric Blake.
23875
23876 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
23877
23878         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
23879
23880 2005-10-12  Simon Josefsson  <jas@extundo.com>
23881
23882         * tests/test-hmac-sha1.c: New file.
23883
23884         * modules/hmac-sha1-tests: New file.
23885
23886         * modules/hmac-sha1: New file.
23887
23888 2005-10-12  Simon Josefsson  <jas@extundo.com>
23889
23890         * modules/gc-sha1: New file.
23891
23892 2005-10-12  Simon Josefsson  <jas@extundo.com>
23893
23894         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
23895
23896         * tests/test-gc-pbkdf2-sha1.c: New file.
23897
23898 2005-10-12  Simon Josefsson  <jas@extundo.com>
23899
23900         * modules/gc-md5, modules/gc-hmac-md5: New files.
23901
23902         * modules/gc (Files): Remove md5, memxor and hmac files.
23903
23904 2005-10-12  Simon Josefsson  <jas@extundo.com>
23905
23906         * m4/gc-pbkdf2-sha1.m4: New file.
23907
23908         * m4/gc-hmac-sha1.m4: New file.
23909
23910         * m4/gc-sha1: New file.
23911
23912         * m4/hmac-sha1.m4: New file.
23913
23914 2005-10-12  Simon Josefsson  <jas@extundo.com>
23915
23916         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
23917
23918         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
23919
23920 2005-10-12  Simon Josefsson  <jas@extundo.com>
23921
23922         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
23923         suggested by Bruno Haible <bruno@clisp.org>.
23924
23925 2005-10-12  Simon Josefsson  <jas@extundo.com>
23926
23927         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
23928
23929 2005-10-12  Simon Josefsson  <jas@extundo.com>
23930
23931         * lib/gc-pbkdf2-sha1.c: New file.
23932
23933         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
23934
23935 2005-10-12  Simon Josefsson  <jas@extundo.com>
23936
23937         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
23938
23939         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
23940
23941 2005-10-12  Simon Josefsson  <jas@extundo.com>
23942
23943         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
23944         GC_USE_HMAC_MD5, respectively.
23945
23946         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
23947         (gc_md5): Fix typo.
23948
23949         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
23950
23951         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
23952
23953         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
23954
23955 2005-10-12  Bruno Haible  <bruno@clisp.org>
23956
23957         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
23958         Reported by Stepan Kasal <kasal@ucw.cz>.
23959
23960 2005-10-11  Simon Josefsson  <jas@extundo.com>
23961
23962         * tests/test-crc.c: New file.
23963
23964         * modules/crc, modules/crc-tests: New files.
23965
23966 2005-10-11  Simon Josefsson  <jas@extundo.com>
23967
23968         * m4/crc.m4: New file.
23969
23970 2005-10-11  Simon Josefsson  <jas@extundo.com>
23971
23972         * lib/gc.h: Add gc_hash and gc_hash_buffer.
23973
23974         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
23975
23976         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
23977
23978 2005-10-11  Simon Josefsson  <jas@extundo.com>
23979
23980         * lib/crc.h, lib/crc.c: New files.
23981
23982         * lib/gc.h (gc_hash_buffer): Add doc.
23983
23984 2005-10-11  Bruno Haible  <bruno@clisp.org>
23985
23986         * modules/c-strcasestr: New file.
23987         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
23988
23989 2005-10-11  Bruno Haible  <bruno@clisp.org>
23990
23991         * modules/c-strcase: New file.
23992         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
23993
23994 2005-10-11  Bruno Haible  <bruno@clisp.org>
23995
23996         * lib/strcasecmp.c: Include limits.h.
23997         (strcasecmp): Avoid integer overflow on exotic platforms.
23998         * lib/strncasecmp.c: Include limits.h.
23999         (strncasecmp): Avoid integer overflow on exotic platforms.
24000         Reported by Paul Eggert.
24001
24002 2005-10-11  Bruno Haible  <bruno@clisp.org>
24003
24004         * lib/c-strcasestr.h: New file, from GNU gettext.
24005         * lib/c-strcasestr.c: New file, from GNU gettext.
24006
24007 2005-10-11  Bruno Haible  <bruno@clisp.org>
24008
24009         * lib/c-strcase.h: New file, from GNU gettext.
24010         * lib/c-strcasecmp.c: New file, from GNU gettext.
24011         * lib/c-strncasecmp.c: New file, from GNU gettext.
24012
24013 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
24014
24015         * modules/mempcpy (License): GPL -> LGPL.
24016         * modules/strchrnul (License): Likewise.
24017         * modules/sysexits (License): Likewise.
24018
24019 2005-10-08  Simon Josefsson  <jas@extundo.com>
24020
24021         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
24022
24023 2005-10-07  Simon Josefsson  <jas@extundo.com>
24024
24025         * m4/memxor.m4: Remove gl_C_RESTRICT call.
24026
24027 2005-10-06  Simon Josefsson  <jas@extundo.com>
24028
24029         * tests/test-hmac-md5.c: New file.
24030
24031         * modules/hmac-md5-tests: New file.
24032
24033         * modules/hmac-md5: New file.
24034
24035 2005-10-06  Simon Josefsson  <jas@extundo.com>
24036
24037         * m4/hmac-md5.m4: New file.
24038
24039         * m4/memxor.m4: Require gl_C_RESTRICT.
24040
24041 2005-10-06  Simon Josefsson  <jas@extundo.com>
24042
24043         * lib/memxor.c (memxor): Avoid casts and warnings.
24044
24045 2005-10-06  Simon Josefsson  <jas@extundo.com>
24046
24047         * lib/hmac-md5.c: New file.
24048
24049         * lib/hmac.h: New file.
24050
24051 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
24052
24053         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
24054         promotes to int, not unsigned int, to catch the AIX 5.3
24055         compiler bug.
24056
24057 2005-10-05  Simon Josefsson  <jas@extundo.com>
24058
24059         * modules/memxor: New file.
24060
24061         * modules/iconv (Files): Move config.rpath to havelib, it is used
24062         there.
24063
24064         * modules/havelib (Files): Add config.rpath.
24065
24066 2005-10-05  Simon Josefsson  <jas@extundo.com>
24067
24068         * m4/memxor.m4: New file.
24069
24070 2005-10-05  Simon Josefsson  <jas@extundo.com>
24071
24072         * lib/memxor.c (memxor): Fix compiler error.
24073
24074         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
24075         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
24076
24077         * lib/memxor.h, lib/memxor.c: New files.
24078
24079         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
24080         we assume all systems have it, suggested by Jim Meyering
24081         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
24082         any systems lack sys/socket.h; mingw32 is known to lack it, but we
24083         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
24084         same reasons.
24085
24086 2005-10-05  Simon Josefsson  <jas@extundo.com>
24087
24088         * config/srclist.txt: Add glibc bug 1423 for md5.h.
24089
24090 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
24091
24092         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
24093         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
24094         needed, since the source code now assumes these .h files.
24095
24096 2005-10-05  Derek Price  <derek@ximbiot.com>
24097
24098         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
24099
24100 2005-10-05  Bruno Haible  <bruno@clisp.org>
24101
24102         * modules/stdint (License): Change to LGPL.
24103
24104 2005-10-04  Simon Josefsson  <jas@extundo.com>
24105
24106         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
24107         D. Baushke" <mdb@gnu.org>.
24108
24109 2005-10-04  Bruno Haible  <bruno@clisp.org>
24110
24111         * lib/verify.h (verify_true): Provide alternative definition for C++.
24112
24113 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
24114
24115         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
24116         (SSIZE_MAX): New macro, if not already defined.
24117         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
24118         than 2 GiB.
24119
24120 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
24121
24122         Sync from coreutils.
24123         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
24124         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
24125         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
24126         ULLONG_MAX doesn't work with 2.7.2.1.
24127
24128 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
24129
24130         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
24131         From Ben Pfaff.
24132
24133         * modules/exclude (Depends-on): Depend on verify.
24134         * modules/strtoimax (Depends-on): Likewise.
24135         * modules/utimecmp (Depends-on): Likewise.
24136
24137 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
24138
24139         * lib/exclude.c: Include verify.h.
24140         (verify): Remove.  All callers changed to use verify.h's version.
24141         * lib/strtoimax.c: Likewise.
24142         * lib/utimecmp.c: Likewis.e
24143
24144         Sync from coreutils.
24145         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
24146         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
24147         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
24148         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
24149         bother returning ENOSYS if settimeofday or stime fails; just let
24150         them return whatever errno they want to return.
24151         * lib/utimens.c: Include unistd.h, for dup2.
24152         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
24153         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
24154
24155 2005-10-02  Jim Meyering  <jim@meyering.net>
24156
24157         Sync from coreutils.
24158         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
24159         from glibc-2.2.5 that fails for read-only files.
24160
24161 2005-10-02  Jim Meyering  <jim@meyering.net>
24162
24163         Sync from coreutils.
24164         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
24165         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
24166         `#if HAVE_CONFIG_H'.
24167         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
24168         Remove AT_FDCWD test.
24169         Do not consume the fd unless successful.
24170         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
24171         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
24172         block, so that we don't even try to compile it if settimeofday is
24173         available.  This works around a compilation failure on OSF1 V5.1,
24174         due to stime requiring a `long int*' while tv_sec is `int'.
24175
24176 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
24177
24178         Sync from coreutils.
24179         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
24180         against `yes', rather than just testing for nonempty.
24181
24182 2005-10-01  Simon Josefsson  <jas@extundo.com>
24183
24184         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
24185         and Darwin.
24186
24187         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
24188         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
24189         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
24190         freeaddrinfo and gai_strerror are declared by the POSIX headers.
24191         Check if struct addrinfo is declared.
24192
24193 2005-10-01  Simon Josefsson  <jas@extundo.com>
24194
24195         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
24196         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
24197         AI_* and EAI_* definitions.  Protect function declarations.
24198
24199 2005-10-01  Jim Meyering  <jim@meyering.net>
24200
24201         Sync from coreutils.
24202
24203         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
24204         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
24205         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
24206         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
24207         in the inet and nsl libraries.  Required on Solaris 5.7.
24208
24209 2005-10-01  Jim Meyering  <jim@meyering.net>
24210
24211         Sync from coreutils.
24212         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
24213         in the inet and nsl libraries.  Required on Solaris 5.7.
24214
24215 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
24216
24217         * lib/getdelim.c (getdelim): Remove unused variables.
24218
24219 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
24220
24221         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
24222         so that the code works even with ancient cpp.  Portability problem
24223         with GCC 2.7.2.1 reported by Thomas M.Ott.
24224
24225 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
24226
24227         * modules/regex (Depends-on): Add strcase.
24228
24229         * modules/gethostname (Licence): Change from GPL to LGPL, since
24230         gethostname.c is a trivial implementation of a standard library
24231         function.
24232         * modules/poll (License): Change from GPL to LGPL, since it's
24233         derived from LGPL code.
24234
24235 2005-09-27  Jim Meyering  <jim@meyering.net>
24236
24237         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
24238         HAVE_CONFIG_H.
24239
24240         * lib/intprops.h (signed_type_or_expr__): Define.
24241         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
24242         for unsigned types.
24243
24244 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
24245
24246         * lib/verify.h (verify_expr): Remove, replacing with:
24247         (verify_true): New macro that returns true instead of void.
24248         (verify_type__): Remove.
24249         (verify): Use verify_true rather than verify_type__.
24250
24251 2005-09-26  Bruno Haible  <bruno@clisp.org>
24252
24253         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
24254         is necessary.
24255         (lib_SOURCES): Remove mbchar.c.
24256         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
24257         (Files): Add m4/mbrtowc.m4.
24258         * modules/mbiter: Likewise.
24259         * modules/mbuiter: Likewise.
24260
24261 2005-09-26  Bruno Haible  <bruno@clisp.org>
24262
24263         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
24264         compile mbchar.c if they are not both present.
24265         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
24266         * m4/mbiter.m4 (gl_MBITER): Likewise.
24267         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
24268         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
24269         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
24270
24271 2005-09-25  Jim Meyering  <jim@meyering.net>
24272
24273         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
24274         also uses socklen_t.
24275
24276 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
24277
24278         * lib/utimens.c (ENOSYS): Define if not already defined.
24279         (futimens): Support having a null PATH if the file descriptor
24280         is nonnegative.
24281
24282         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
24283         Remove.
24284         (__attribute): Define to empty unless GCC 3.1 or later.
24285         This works around a core dump on OpenBSD 3.4, which has GCC
24286         2.95.3, which dumps core when given __attribute__(()).  It also
24287         simplifies other tests, since we really don't want to bother with
24288         worrying about which ancient version of GCC supported what.
24289         Original problem reported by Yoann Vandoorselaere, with part of
24290         the fix suggested by Derek Price.
24291
24292 2005-09-24  Jim Meyering  <jim@meyering.net>
24293
24294         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
24295         so we can once again use a positive bitfield width of 1 -- now we
24296         don't have to explain why we were using a bitfield width of 2.
24297
24298 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
24299
24300         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
24301         and similarly for the other external symbols.  Problem reported
24302         by James Gallager.
24303
24304         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
24305         bug reported by Jim Meyering.
24306
24307         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
24308         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
24309         not needed, since socklen is a prerequisite module.
24310
24311 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
24312
24313         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
24314         Problem reported by Eric Blake.
24315         (getaddrinfo): Initialize se so that it's not garbage.
24316         Redo internal storage allocation so that it doesn't make unportable
24317         assumptions about alignment.
24318         Fix a memory leak.
24319
24320         * lib/utimens.c (futimens): Use futimesat if available.
24321         Prefer it to futimes since it doesn't have the futimes bug.
24322
24323         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
24324         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
24325         Instead, declare a function that returns a pointer to an array,
24326         and use verify_type__ to declare the size of the array.
24327         Problem and germ of a solution reported by Bruno Haible.
24328         (verify_type__): Use 2, not 1, for bitfield size, to avoid
24329         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
24330
24331 2005-09-23  Jim Meyering  <jim@meyering.net>
24332
24333         Sync from coreutils.
24334         Correct build failure (socklen_t not defined) on at least
24335         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
24336         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
24337
24338 2005-09-23  Jim Meyering  <jim@meyering.net>
24339
24340         * modules/getaddrinfo (Depends-on): Add socklen.
24341
24342 2005-09-23  Bruno Haible  <bruno@clisp.org>
24343
24344         * tests/test-verify.c: New file.
24345
24346 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
24347
24348         Sync from coreutils.
24349
24350         * modules/argmatch (Depends-on): Add verify.
24351         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
24352         unistd-safer.
24353         * modules/save-cwd (Depends-on): Likewise.
24354
24355         * modules/openat (Files): Add lib/openat-die.c.
24356         (Depends-on): Remove error, exitfail.
24357         Add dirname.
24358
24359         * modules/verify: New file.
24360         * MODULES.html.sh (Diagnostics <assert.h>): New section,
24361         with "verify" module.
24362
24363 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
24364
24365         Sync from coreutils.
24366
24367         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
24368         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
24369         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
24370         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
24371         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
24372         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
24373         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
24374         Don't bother checking for string.h, stdlib.h, unistd.h.
24375         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
24376         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
24377         module's job.
24378         * m4/jm-macros.m4 (gl_MACROS): Likewise.
24379         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
24380
24381         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
24382         (gl_GETDATE): Use it.
24383
24384         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
24385
24386 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
24387
24388         Sync from coreutils.
24389
24390         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
24391         stat-time.h.
24392         * lib/argmatch.h: Include verify.h
24393         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
24394         (ARGMATCH_ASSERT): Remove; unused.
24395         * lib/canonicalize.c: Assume STDC_HEADERS.
24396         * lib/exclude.c: Include "strcase.h".
24397         * lib/regex_internal.h [!defined _LIBC]: Likewise.
24398         * lib/getusershell.c: Include stdio--.h rather than stdio.h
24399         and stdio-safer.h.
24400         (getusershell): Call fopen, not fopen_safer.
24401         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
24402         Do not include unistd-safer.h.
24403         (save_cwd): Don't call fd_safer; no longer needed
24404         now that we include fcntl--.h.
24405
24406         * lib/getdate.y (relative_time): New type.
24407         (RELATIVE_TIME_0): New constant.
24408         (parser_control): Use relative_time instead of doing it ourselves.
24409         (%union): Add new relative_time rel member.
24410         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
24411         Now typeless.
24412         (relunit, relunit_snumber): Now of type rel.
24413         (zone, rel, relunit, get_date): Adjust to above changes.
24414
24415         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
24416         Do not include unistd-safer.h.
24417         (getloadavg): Don't call fd_safer; no longer needed
24418         now that we include fcntl--.h.
24419
24420         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
24421         (make_dir_parents): Treat ENOSYS like EEXIST.
24422
24423         Improve quality of diagnostics on restore_cwd failure.
24424         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
24425         (make_dir_parents): Last arg is now int * (for errno), not bool *.
24426         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
24427         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
24428         each time through the loop.  Do not diagnose restore_cwd failure;
24429         that is the caller's job (and perhaps the caller does not care).
24430
24431         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
24432         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
24433         If the file already exists but is not a directory, don't bother
24434         to try to make its parents.
24435         Close potential file descriptor leak if we can't chdir("/") (!).
24436         Don't always return true if chdir($PWD) fails; return true only
24437         if the requested action was done successfully (except for the
24438         chdir($PWD)).
24439         Don't log final directory unless we actually made it.
24440         Refactor to avoid duplicate code to fix up permissions.
24441         Don't attempt to fix up parent permissions if chdir($PWD) fails.
24442
24443         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
24444         to make it a bit faster and (I hope) clearer.
24445         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
24446         Fix bug in formats like %2N.
24447
24448         * lib/verify.h: New file.
24449
24450 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
24451
24452         Sync from coreutils.
24453         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
24454
24455 2005-09-22  Jim Meyering  <jim@meyering.net>
24456
24457         Sync from coreutils.
24458
24459         * m4/lstat.m4 (gl_FUNC_LSTAT):
24460         Use AC_LIBSOURCES to require lstat.c and lstat.h.
24461         Remove obsolete comment.
24462         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
24463         * m4/xstrtod.m4: Likewise.
24464
24465         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
24466
24467 2005-09-22  Jim Meyering  <jim@meyering.net>
24468
24469         Sync from coreutils.
24470
24471         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
24472
24473         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
24474         the .tm_year member, since otherwise gcc-4.0 would now warn about
24475         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
24476
24477         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
24478         order to avoid an unsuppressible warning from gcc on 64-bit systems.
24479
24480         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
24481         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
24482         when run in a time zone for which daylight savings time is in effect
24483         for the starting date.
24484
24485         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
24486         stop us from restricting permissions of just-created absolute-named
24487         directories.
24488         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
24489         to restore initial working directory.
24490         * lib/mkdir-p.c (make_dir_parents): New parameter:
24491         different_working_dir, to tell caller if/when we change the working
24492         directory and are unable to return to the initial one.
24493         * lib/mkdir-p.h (make_dir_parents): Update prototype.
24494         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
24495         `return false'.  This fixes a bug introduced on 2004-07-30.
24496
24497         * lib/openat.c (fdopendir): Be sure to close the supplied
24498         file descriptor before returning.  This makes our replacement
24499         implementation a little closer to Solaris's, where fdopendir
24500         ties the file descriptor to the returned DIR* pointer.
24501         * lib/openat.c (unlinkat): New function.
24502         * lib/openat.h (unlinkat): Add prototype.
24503         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
24504         (openat_restore_fail): Rename from openat_restore_die.
24505         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
24506
24507         Provide an alternative to exiting immediately upon save_cwd or
24508         restore_cwd failure.  Now, an application can arrange e.g.,
24509         to perform a longjump in that case.
24510         * lib/openat.c: Include dirname.h.
24511         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
24512         (rpl_openat, fdopendir, fstatat): Call openat_save_die
24513         and openat_restore_die rather than calling error directly.
24514         Don't include "error.h" or "exitfail.h"; they're no longer needed.
24515
24516         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
24517         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
24518         define.
24519
24520         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
24521         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
24522                             int utc, int nanoseconds);
24523         Background:
24524         date should not have to allocate a megabyte of virtual memory to
24525         handle a format argument like +%1048575T.  When implemented with
24526         strftime, it must allocate such a buffer, use strftime to fill it
24527         in, print it, then free it.
24528         With fprintftime, it simply prints everything and exits.
24529         With no need for memory allocation, that's one fewer way to fail.
24530         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
24531         optional field width, not before, so we accept %9:z, not %:9z.
24532         (my_strftime): Be sure to use L_('x') for literals.
24533
24534         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
24535         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
24536         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
24537         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
24538         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
24539         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
24540         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
24541         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
24542         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
24543         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
24544         * lib/xgethostname.c, lib/xreadlink.c:
24545         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
24546
24547         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
24548         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
24549         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
24550         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
24551         and don't include <sys/file.h>).
24552
24553 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
24554
24555         Sync from coreutils.
24556
24557         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
24558         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
24559         [!LDAV_DONE]: Avoid unused variable warning.
24560
24561 2005-09-21  Bruno Haible  <bruno@clisp.org>
24562
24563         * lib/unicodeio.h (unicode_to_mb): New declaration.
24564
24565 2005-09-20  Derek Price  <derek@ximbiot.com>
24566
24567         * lib/getaddrinfo.c: Don't include <netdb.h> included from
24568         getaddrinfo.h.
24569
24570 2005-09-20  Bruno Haible  <bruno@clisp.org>
24571
24572         * gnulib-tool: Remove trailing slashes from the values specified for
24573         --source-base, --m4-base, --tests-base, --aux-dir.
24574         Suggested by Simon Josefsson <jas@extundo.com>.
24575
24576 2005-09-20  Bruno Haible  <bruno@clisp.org>
24577
24578         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
24579         func_modules_to_filelist, func_import, func_create_testdir): Make all
24580         sorting results locale-independent, so that gnulib-cache.m4 doesn't
24581         change when gnulib-tool is invoked in a different locale.
24582
24583 2005-09-19  Simon Josefsson  <jas@extundo.com>
24584
24585         * m4/socklen.m4: Fix typo.
24586
24587 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24588
24589         Use a consistent style for including <config.h>.
24590         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
24591         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
24592         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
24593         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
24594         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
24595         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
24596         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
24597         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
24598         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
24599         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
24600         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
24601         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
24602         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
24603         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
24604         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
24605         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
24606         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
24607         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
24608         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
24609         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
24610         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
24611         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
24612         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
24613         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
24614         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
24615         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
24616         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
24617         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
24618         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
24619         lib/xstrtoumax.c, lib/yesno.c:
24620         Standardize inclusion of config.h.
24621         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
24622         lib/inttostr.h:  Removed inclusion of config.h from header files.
24623         * lib/inttostr.c:  Adjusted in-tree users.
24624         * lib/timespec.h: Remove superfluous warning to include config.h.
24625         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
24626         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
24627         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
24628         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
24629         config.h with HAVE_CONFIG_H.
24630
24631 2005-09-19  Jim Meyering  <jim@meyering.net>
24632
24633         * modules/pathmax (License): Change to LGPL.
24634
24635 2005-09-19  Derek Price  <derek@ximbiot.com>
24636
24637         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
24638
24639 2005-09-19  Bruno Haible  <bruno@clisp.org>
24640
24641         * gnulib-tool (import): Provide default for --tests-base.
24642
24643 2005-09-19  Bruno Haible  <bruno@clisp.org>
24644
24645         * doc/quote.texi: New file, extracted from gnulib.texi.
24646         * doc/ctime.texi: New file, extracted from gnulib.texi.
24647         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
24648         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
24649         * doc/gnulib.texi: Include them.
24650
24651 2005-09-18  Bruno Haible  <bruno@clisp.org>
24652
24653         Portability fix.
24654         * gnulib-tool (func_readlink): New function.
24655         (func_ln_if_changed): Use it.
24656
24657 2005-09-18  Bruno Haible  <bruno@clisp.org>
24658
24659         * gnulib-tool: Support --with-tests also with --import.
24660         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
24661         (func_import): Use variables $testsbase and $inctests. Emit a
24662         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
24663         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
24664         SUBDIRS += $testsdir.
24665         (func_create_testdir): Update.
24666
24667 2005-09-18  Bruno Haible  <bruno@clisp.org>
24668
24669         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
24670         instead of $dry_run.
24671         (func_cp_if_changed, func_mv_if_changed): Remove functions.
24672         (func_ln_if_changed): Don't handle dry-run here.
24673         (func_import): In dry-run mode, detect more precisely which actions
24674         would be performed, and don't use "...ing" verbs.
24675
24676 2005-09-18  Bruno Haible  <bruno@clisp.org>
24677
24678         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
24679         (func_import): Use join on two temporary files instead of three nested
24680         loops, in order to determine which files are new or old.
24681
24682 2005-09-18  Bruno Haible  <bruno@clisp.org>
24683
24684         * gnulib-tool (func_import): Comment out code that spits out the
24685         new files with --dry-run.
24686
24687 2005-09-18  Bruno Haible  <bruno@clisp.org>
24688
24689         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
24690
24691 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
24692
24693         * lib/stat-time.h: New file.
24694         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
24695         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
24696         in a different way.
24697         (timespec_cmp): New function.
24698         * lib/utimecmp.c: Include stat-time.h.
24699         (SYSCALL_RESOLUTION): Depend on whether various struct stat
24700         members exist, not on the obsolescent ST_MTIM_NSEC.
24701         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
24702
24703 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
24704
24705         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
24706
24707 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
24708
24709         * MODULES.html.sh (File system functions): Add stat-time.
24710         * modules/stat-time: New file.
24711         * modules/timespec (Files): Remove m4/st_mtim.m4; this
24712         is now done in a different way, by the stat-time module.
24713         * modules/utimecmp (Depends-on): Add stat-time.
24714
24715 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
24716
24717         * m4/st_mtim.m4: Remove.  Superseded by...
24718         * m4/stat-time.m4: New file.
24719         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
24720         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
24721
24722 2005-09-15  Derek Price  <derek@ximbiot.com>
24723
24724         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
24725
24726 2005-09-15  Derek Price  <derek@ximbiot.com>
24727
24728         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
24729         * lib/regex_internal.c: Ditto, using this...
24730         (__GNUC_PREREQ): ...new macro.
24731         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
24732         using...
24733         (__GNUC_PREREQ): ...this new macro.
24734
24735         * lib/strstr.h: Include string.h. Define strstr as a macro here.
24736
24737 2005-09-15  Derek Price  <derek@ximbiot.com>
24738             Paul Eggert  <eggert@cs.ucla.edu>
24739
24740         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
24741         changes, consolidating in...
24742         * lib/regex_internal.h: ...this file.
24743
24744 2005-09-13  Jim Meyering  <jim@meyering.net>
24745
24746         * lib/canon-host.c: Filter through gnu indent and reword comments
24747         slightly.
24748         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
24749
24750 2005-09-13  Derek Price  <derek@ximbiot.com>
24751
24752         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
24753         failure.
24754         Reported by Jim Meyering  <jim@meyering.net>.
24755
24756 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
24757
24758         * lib/base64.c: Typo.
24759         (base64_encode): Put b64str in initialized data section.
24760
24761 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
24762
24763         Merge glibc and coreutils changes into gnulib, plus a few
24764         extra fixes.
24765         * lib/md5.c: Use #error rather than a string.
24766         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
24767         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
24768         (__attribute__): Define to empty for non recent-GCC.
24769         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
24770         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
24771         Renamed from their non-__ counterparts, with new macros replacing
24772         them if not _LIBC.  Add __THROW attribute.
24773         (rol): Remove.
24774         (struct md5_ctx): Align buffer if using GCC.
24775         * lib/sha1.h (struct sha1_ctx): Likewise.
24776         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
24777         The old name was backwards.
24778         (NOTSWAP): Remove; not used.
24779         (rol): New macro, moved here from md5.h.
24780         (sha1_process_block): Remove a FIXME that doesn't make sense.
24781
24782 2005-09-12  Derek Price  <derek@ximbiot.com>
24783
24784         Return usable errors from canon-host.
24785         * lib/canon-host.h: New file.
24786         * lib/canon-host.c (canon_host): Wrap...
24787         (canon_host_r): ...this new function, which now relies exclusively on
24788         getaddrinfo.
24789         (ch_strerror): New function.
24790         (last_cherror): New global.
24791         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
24792         interface.
24793         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
24794         void *.
24795         (freeaddrinfo): Free ai->ai_canonname when set.
24796
24797 2005-09-12  Derek Price  <derek@ximbiot.com>
24798
24799         Make canon-host require getaddrinfo.
24800         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
24801         AC_LIBSOURCE canon-host.h.  Call...
24802         (gl_PREREQ_CANON_HOST): ...this new function, which requires
24803         gl_GETADDRINFO.
24804         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
24805
24806 2005-09-12  Derek Price  <derek@ximbiot.com>
24807
24808         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
24809         LGPL.
24810         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
24811
24812 2005-09-12  Derek Price  <derek@ximbiot.com>
24813
24814         * lib/gai_strerror.c: Include config.h when available.  Include
24815         getaddrinfo.h before other headers to test interface.
24816         Reported by Larry Jones <lawrence.jones@ugs.com>.
24817
24818 2005-09-12  Derek Price  <derek@ximbiot.com>
24819             Paul Eggert  <eggert@cs.ucla.edu>
24820
24821         * modules/glob (Files): Add glob-libc.h.
24822
24823 2005-09-12  Derek Price  <derek@ximbiot.com>
24824             Paul Eggert  <eggert@cs.ucla.edu>
24825
24826         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
24827         glob_.h, glob-libc.h.
24828         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
24829
24830 2005-09-12  Derek Price  <derek@ximbiot.com>
24831             Paul Eggert  <eggert@cs.ucla.edu>
24832
24833         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
24834         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
24835         protecting things that should be done only in gnulib contexts.
24836         * lib/glob_.h: New file, containing only the glob things needed for
24837         gnulib.
24838         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
24839         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
24840         (glob, globfree, glob_pattern_p): Now defined simply in terms of
24841         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
24842         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
24843         and to respect the namespace rules better.
24844
24845 2005-09-08  Simon Josefsson  <jas@extundo.com>
24846
24847         * modules/socklen: New file.
24848
24849 2005-09-08  Simon Josefsson  <jas@extundo.com>
24850
24851         * m4/socklen.m4: New file.
24852
24853 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
24854
24855         * modules/utimens (Files): Add m4/utimbuf.m4, since
24856         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
24857         Reported by Sergey Poznyakoff.
24858
24859 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
24860
24861         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
24862         definitions, since that's the preferred style in glibc.
24863         Fix a minor spacing issue, and update copyright notice to match
24864         glibc's.
24865
24866 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
24867
24868         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
24869
24870 2005-09-06  Simon Josefsson  <jas@extundo.com>
24871
24872         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
24873         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
24874
24875 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
24876
24877         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
24878         warning.
24879
24880 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
24881
24882         * config/srclist.txt: Add glibc bug 1302.
24883
24884 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
24885
24886         Change bitset word type from unsigned int to unsigned long int,
24887         as this has better performance on typical 64-bit hosts.
24888         Port bitset code to hosts with unusual word sizes.
24889         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
24890         (build_collating_symbol):
24891         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
24892         argument is a bitset.  This is merely a style issue, but it makes
24893         it clearer that an entire array is expected.
24894         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
24895         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
24896         Port to the case where bitset_word is not the same as unsigned int.
24897         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
24898         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
24899         Likewise.
24900         * lib/regexec.c (check_dst_limits_calc_pos_1,
24901         check_subexp_matching_top):
24902         (build_trtable, group_nodes_into_DFAstates):
24903         Likewise.
24904         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
24905         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
24906         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
24907         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
24908         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
24909         * lib/regcomp.c (optimize_subexps, lower_subexp):
24910         Work even if bitset_word has holes in its bitwise representation.
24911         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
24912         * lib/regexec.c (check_dst_limits_calc_pos_1,
24913         check_subexp_matching_top):
24914         Likewise.
24915         * lib/regex_internal.c (re_string_reconstruct):
24916         Don't assume UCHAR_MAX == 255.
24917         * lib/regex_internal.h (bitset_set_all): Likewise.
24918         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
24919         All uses changed.
24920         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
24921         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
24922         All uses changed.
24923         (BITSET_WORD_MAX): New macro.
24924         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
24925         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
24926         (bitset_empty, bitset_copy):
24927         Prefer sizeof (bitset) to multiplying it out ourselves.
24928         (bitset_not_merge): Remove; unused.
24929         (bitset_contain): Return bool, not unsigned int with one bit on.
24930         All callers changed.
24931         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
24932         alignment than re_node_set; do this by defining a new internal
24933         type struct dests_alloc and using it to allocate memory.
24934
24935 2005-09-05  Bruno Haible  <bruno@clisp.org>
24936
24937         * gnulib-tool (func_import): Fix comparison in handling of symbolic
24938         links.
24939
24940 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
24941
24942         * modules/size_max (Makefile.am): Add size_max.h
24943
24944 2005-09-04  Derek Price  <derek@ximbiot.com>
24945
24946         * gnulib-tool (func_import): Fix reversed $symbolic logic.
24947
24948 2005-09-03  Simon Josefsson  <jas@extundo.com>
24949
24950         * gnulib-tool: Fix typo.
24951
24952 2005-09-03  Simon Josefsson  <jas@extundo.com>
24953
24954         * config/srclist.txt: Add glibc bug 1293.
24955
24956 2005-09-03  Derek Price  <derek@ximbiot.com>
24957
24958         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
24959         From Larry Jones <lawrence.jones@ugs.com>.
24960
24961 2005-09-02  Simon Josefsson  <jas@extundo.com>
24962
24963         * modules/socklen: New file.
24964
24965 2005-09-02  Simon Josefsson  <jas@extundo.com>
24966
24967         * modules/havelib: New module.
24968
24969         * modules/gettext, modules/iconv, modules/lock, modules/readline:
24970         Use havelib.
24971
24972 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
24973
24974         Check for arithmetic overflow when calculating sizes, to prevent
24975         some buffer-overflow issues.  These patches are conservative, in the
24976         sense that when I couldn't determine whether an overflow was possible,
24977         I inserted a run-time check.
24978         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
24979         macros.
24980         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
24981         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
24982         (re_xnrealloc, re_x2nrealloc): New inline functions.
24983         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
24984         parse_bracket_exp):
24985         (build_equiv_class, build_charclass): Check for arithmetic overflow
24986         in size expression calculations.
24987         * lib/regex_internal.c (re_string_realloc_buffers):
24988         (build_wcs_upper_buffer, re_node_set_add_intersect):
24989         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
24990         (re_dfa_add_node, register_state): Likewise.
24991         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
24992         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
24993         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
24994         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
24995
24996 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
24997
24998         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
24999         m4/ulonglong.m4.  Problem reported by Martin Lambers.
25000
25001 2005-09-02  Bruno Haible  <bruno@clisp.org>
25002
25003         Support for lib vs. lib64 distinction on biarch platforms.
25004         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
25005         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
25006         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
25007
25008 2005-09-02  Bruno Haible  <bruno@clisp.org>
25009
25010         * gnulib-tool (import): In the other first-use case, provide defaults
25011         as well.
25012
25013 2005-09-02  Bruno Haible  <bruno@clisp.org>
25014
25015         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
25016         patches not yet found in the latest gettext release.
25017
25018 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
25019
25020         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
25021         to avoid a collision with bits/local_lim.h in glibc.
25022         All uses changed.  Problem reported by Dmitry V. Levin in
25023         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
25024
25025         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
25026         bugs in int versus size_t comparisons.
25027         (re_string_context_at): Fix bug where the code assumed that
25028         Idx is signed.
25029
25030         Use bool where appropriate.
25031         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
25032         All callers changed.
25033         (calc_eclosure_iter): Likewise, for ROOT arg.
25034         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
25035         (build_charclass_op): Likewise, for NON_MATCH arg.
25036         * lib/regex_internal.c (re_string_allocate, re_string_construct):
25037         (re_string_construct_common): Likewise, for ICASE arg.
25038         * lib/regexec.c (re_search_2_stub, re_search_stub):
25039         Likewise, for RET_LEN arg.
25040         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
25041         (set_regs): Likewise, for FL_BACKTRACK arg.
25042         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
25043         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
25044         (calc_eclosure_iter, parse_bracket_exp):
25045         Use bool for internal variables that are booleans.
25046         * lib/regexec.c (re_search_internal, check_matching,
25047         proceed_next_node):
25048         (set_regs, build_sifted_states, sift_states_bkref):
25049         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
25050         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
25051         (find_collation_sequence_value):
25052         Likewise.
25053         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
25054         (re_node_set_compare):
25055         Return bool, not int. All callers changed.
25056         * lib/regexec.c (check_halt_node_context, check_dst_limits):
25057         (build_trtable, check_node_accept): Likewise.
25058         * lib/regex_internal.h: Include stdbool.h.
25059
25060         Fix bugs uncovered when converting to bool.
25061         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
25062         failure instead of charging ahead blindly.
25063         * lib/regex_internal.c (register_state): Likewise.
25064         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
25065         for freeing internal storage.
25066         (group_nodes_into_DFA_states): Use unsigned int, not int, for
25067         bitset pieces used as boolean, to avoid undefined behavior
25068         on hosts that do int overflow checking.
25069
25070 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
25071
25072         * config/srclist.txt: Add glibc bugs 1285-1287.
25073
25074 2005-09-01  Jim Meyering  <jim@meyering.net>
25075
25076         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
25077         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
25078         Require gl_STAT_MACROS, too.
25079
25080 2005-09-01  Bruno Haible  <bruno@clisp.org>
25081
25082         * gnulib-tool (import): In the first-use case, provide defaults.
25083
25084 2005-09-01  Bruno Haible  <bruno@clisp.org>
25085
25086         * gnulib-tool (func_import): Remove the .tmp files.
25087
25088 2005-09-01  Bruno Haible  <bruno@clisp.org>
25089
25090         * gnulib-tool (func_import): Fix handling of symbolic links.
25091
25092 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
25093
25094         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
25095         old glibc regex code mishandles strings longer than 2**31 bytes.
25096         This patch fixes this when the regex code is used in gnulib
25097         (i.e., outside glibc).
25098
25099         This patch should not affect the use of the regex code inside
25100         glibc.  No doubt this problem also needs to be handled for glibc
25101         as well, but the result will be an incompatible change to the
25102         glibc ABI, and the old ABI will have to be supported too.  That
25103         can be the the subject for another patch.
25104
25105         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
25106         governing whether the rest of this patch is active.  By default,
25107         the macro is disabled and the patch has no effect.
25108         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
25109         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
25110         (struct re_pattern_buffer, re_search, re_search_2, re_match):
25111         (re_match_2, re_set_registers): Use the new types.
25112         * lib/regex_internal.h (Idx, re_hashval_t): New types.
25113         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
25114         New macros.
25115         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
25116         (re_string_context_at, bin_tree_t, re_dfastate_t):
25117         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
25118         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
25119         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
25120         (re_string_char_size_at, re_string_wchar_at):
25121         (re_string_elem_size_at):
25122         Use the new types and macros to port to 64-bit hosts.
25123         Use unsigned types for internal values, so that the code
25124         mostly works even for arrays larger than SSIZE_MAX.
25125         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
25126         (search_duplicated_node, calc_eclosure_iter, fetch_number):
25127         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
25128         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
25129         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
25130         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
25131         (calc_inveclosure, parse_dup_op, build_range_exp):
25132         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
25133         (fetch_number, create_token_tree, mark_opt_subexp):
25134         Likewise.
25135         * lib/regex_internal.c (re_string_construct_common,
25136         create_ci_newstate):
25137         (create_cd_newstate, re_string_allocate, re_string_construct):
25138         (re_string_realloc_buffers, build_wcs_upper_buffer):
25139         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
25140         (re_string_reconstruct, re_string_peek_byte_case):
25141         (re_string_fetch_byte_case, re_string_context_at):
25142         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
25143         (re_node_set_init_copy, re_node_set_add_intersect):
25144         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
25145         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
25146         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
25147         (re_acquire_state, re_acquire_state_context, register_state):
25148         Likewise.
25149         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
25150         search_cur_bkref_entry):
25151         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
25152         (re_search_internal, re_search_2_stub, re_search_stub)
25153         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
25154         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
25155         (update_cur_sifted_state, check_dst_limits):
25156         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
25157         (check_subexp_limits, sift_states_bkref, merge_state_array):
25158         (check_subexp_matching_top, get_subexp, get_subexp_sub):
25159         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
25160         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
25161         (expand_bkref_cache, check_node_accept_bytes):
25162         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
25163         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
25164         (acquire_init_state_context, check_halt_node_context):
25165         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
25166         (sift_states_backward, clean_state_log_if_needed):
25167         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
25168         (find_recover_state, transit_state_sb, transit_state_mb):
25169         (transit_state_bkref, build_trtable, match_ctx_clean):
25170         Likewise.
25171         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
25172         to work around an assumption that REG_MISSING is negative.
25173
25174         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
25175         (seek_collating_symbol_entry) [defined _LIBC]:
25176         (lookup_collation_sequence_value) [defined _LIBC]:
25177         (build_range_exp, build_collating_symbol) [defined _LIBC]:
25178         Use prototypes rather than old-style function definitions.
25179         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
25180         (transit_state_sb) [0]:
25181         (find_collation_sequence_value) [defined _LIBC]: Likewise.
25182
25183         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
25184         rm_eo.
25185
25186         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
25187         (optimize_subexps, lower_subexp):
25188         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
25189         since the signed shift might overflow.  Use 1u<<31 instead.
25190         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
25191         Likewise.
25192         * lib/regexec.c (check_dst_limits_calc_pos_1,
25193         check_subexp_matching_top): Likewise.
25194
25195         * lib/regcomp.c (optimize_subexps, lower_subexp):
25196         Use CHAR_BIT rather than 8, for clarity.
25197         * lib/regexec.c (check_dst_limits_calc_pos_1):
25198         (check_subexp_matching_top): Likewise.
25199         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
25200         have to worry about portability issues when shifting it left.
25201         Remove no-longer-needed test for table_size > 0.
25202         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
25203         in a word, as the resulting behavior is undefined.
25204         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
25205         in one case, a <= should have been an <, and in another case the
25206         whole test was missing.
25207         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
25208         the standard name CHAR_BIT.
25209         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
25210         this is not true on one's complement and signed-magnitude hosts.
25211
25212         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
25213         next_last_offset.
25214         (struct re_dfa_t): Remove unused member states_alloc.
25215         * lib/regcomp.c (init_dfa): Don't initialize unused members.
25216
25217 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
25218
25219         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
25220         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
25221         and large-file glibc and in 32-bit large-file Solaris.
25222
25223 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
25224
25225         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
25226         lengths fit in regoff_t; this isn't true if regoff_t is the same
25227         width as size_t.
25228         * lib/regex.c (re_search_internal): 5th arg is LAST_START
25229         (= START + RANGE) instead of RANGE.  This avoids overflow
25230         problems when regoff_t is the same width as size_t.
25231         All callers changed.
25232         (re_search_2_stub): Check for overflow when adding the
25233         sizes of the two strings.
25234         (re_search_stub): Check for overflow when adding START
25235         to RANGE; if it occurs, substitute the extreme value.
25236
25237 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
25238
25239         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
25240
25241 2005-08-31  Jim Meyering  <jim@meyering.net>
25242
25243         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
25244         a pointer-to-const.
25245         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
25246         (register_state): Likewise.
25247         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
25248         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
25249         (group_nodes_into_DFAstates): Likewise.
25250
25251 2005-08-31  Jim Meyering  <jim@meyering.net>
25252
25253         * check-module: Add a FIXME comment.
25254
25255 2005-08-31  Eric Blake  <ebb9@byu.net>
25256
25257         * modules/unistd-safer (Files): Add unistd--.h.
25258         * modules/stdio-safer (Files): Add stdio--.h.
25259
25260 2005-08-31  Derek Price  <derek@ximbiot.com>
25261
25262         * lib/getdelim.c (getdelim): Return EOF on EOF.
25263         Reported by Larry Jones <lawrence.jones@ugs.com>.
25264
25265 2005-08-31  Bruno Haible  <bruno@clisp.org>
25266
25267         Avoid unnecessary diffs in the generated lib/Makefile.am.
25268         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
25269         the generated files.
25270         (func_import): Don't set cmd.
25271
25272 2005-08-31  Bruno Haible  <bruno@clisp.org>
25273
25274         * lib/strstr.c: Include <stddef.h>, for NULL.
25275         * lib/strcasestr.c: Likewise.
25276         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
25277
25278 2005-08-31  Bruno Haible  <bruno@clisp.org>
25279
25280         * gnulib-tool: New option --macro-prefix.
25281         (func_import): Use macro_prefix.
25282         (import): Handle option --macro-prefix.
25283
25284 2005-08-31  Bruno Haible  <bruno@clisp.org>
25285
25286         * gnulib-tool (import): Rename most ac_* variables to cached_*.
25287         Also use new variables cached_lgpl, cached_libtool.
25288
25289 2005-08-31  Bruno Haible  <bruno@clisp.org>
25290
25291         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
25292         always instantiating them.
25293
25294 2005-08-31  Bruno Haible  <bruno@clisp.org>
25295
25296         * gnulib-tool (func_import): Read the previous cached settings
25297         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
25298         earlier added by gnulib but are now dropped. Warn when a gnulib file
25299         overwrites a non-gnulib file.
25300
25301 2005-08-31  Bruno Haible  <bruno@clisp.org>
25302
25303         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
25304         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
25305         projects that don't keep autogenerated files in CVS. Put into
25306         actioncmd only the specified modules, not the transitive closure.
25307
25308 2005-08-31  Bruno Haible  <bruno@clisp.org>
25309
25310         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
25311         Create directories that shall be filled.
25312         (import): Don't look for gl_* macros in configure.ac. Recurse across
25313         all directories containing a gnulib-cache.m4 files, if meaningful.
25314
25315 2005-08-31  Bruno Haible  <bruno@clisp.org>
25316
25317         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
25318         (import): Set seen_libtool when we see gl_LIBTOOL.
25319
25320 2005-08-31  Bruno Haible  <bruno@clisp.org>
25321
25322         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
25323         declaration macro definitions from generated gnulib.m4.
25324
25325 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
25326
25327         * lib/iconvme.h: Add prototype for iconv_alloc.
25328
25329 2005-08-29  Simon Josefsson  <jas@extundo.com>
25330
25331         * lib/iconvme.c: Fix errno.
25332
25333 2005-08-29  Bruno Haible  <bruno@clisp.org>
25334
25335         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
25336         that it works when the directory contains spaces.
25337
25338 2005-08-29  Bruno Haible  <bruno@clisp.org>
25339
25340         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
25341
25342 2005-08-29  Bruno Haible  <bruno@clisp.org>
25343
25344         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
25345         Emit more advice.
25346
25347 2005-08-29  Bruno Haible  <bruno@clisp.org>
25348         and Stepan Kasal  <kasal@ucw.cz>
25349
25350         * check-module: If more parameters are given, check each of them
25351         separately; add more exceptions, as noted by Jim Meyering.
25352         (check_module): New procedure.
25353         (%exempt_header): Now contains all exceptions.
25354
25355 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
25356
25357         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
25358
25359 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
25360
25361         * lib/iconvme.c: Split iconv_string into iconv_alloc.
25362
25363 2005-08-28  Bruno Haible  <bruno@clisp.org>
25364
25365         * m4/gnulib-tool.m4: New file.
25366
25367 2005-08-27  Jim Meyering  <jim@meyering.net>
25368
25369         * modules/unistd-safer (Files): Add pipe-safer.c.
25370         * modules/fcntl-safer (Files): Add creat-safer.c.
25371
25372 2005-08-27  Jim Meyering  <jim@meyering.net>
25373
25374         * m4/stdlib-safer.m4: New file.  From coreutils.
25375         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
25376         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
25377         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
25378         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
25379         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
25380
25381 2005-08-27  Jim Meyering  <jim@meyering.net>
25382
25383         * lib/fopen-safer.c: Merge minor changes from coreutils.
25384         * lib/dup-safer.c: Likewise.
25385         * lib/fd-safer.c: Likewise.
25386
25387         Merge from coreutils.
25388         * lib/stdio--.h: New file.
25389         * lib/stdlib--.h: New file.
25390         * lib/mkstemp-safer.c: New file.
25391
25392         GNU tar needs these.
25393         * lib/pipe-safer.c: New file.
25394         * lib/creat-safer.c: New file.
25395         * lib/fcntl--.h (creat): Define to creat_safer.
25396         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
25397         * lib/unistd--.h (pipe): Define to pipe_safer.
25398         * lib/unistd-safer.h: Declare pipe_safer.
25399
25400 2005-08-26  Simon Josefsson  <jas@extundo.com>
25401
25402         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
25403         Haible <bruno@clisp.org>.
25404
25405 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
25406
25407         * lib/regex_internal.h: Remove all references to
25408         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
25409         or better.
25410         (bitset_not, bitset_merge, bitset_not_merge):
25411         (bitset_mask, re_string_allocate, re_string_construct):
25412         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
25413         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
25414         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
25415         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
25416         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
25417         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
25418         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
25419         (re_acquire_state_context):
25420         Remove unnecessary forward decls.
25421         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
25422         Put __attribute at function definition,
25423         now that the function decl has been removed.
25424         * lib/regex_internal.c (re_string_peek_byte_case):
25425         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
25426         Likewise.
25427
25428 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
25429
25430         * m4/regex.m4: Add AC_PREREQ(2.50).
25431         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
25432
25433 2005-08-25  Simon Josefsson  <jas@extundo.com>
25434
25435         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
25436         __fsetlocking.
25437
25438 2005-08-25  Simon Josefsson  <jas@extundo.com>
25439
25440         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
25441         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
25442         GLIBC specific code.
25443
25444 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
25445
25446         Make regex safe for g++.  This fixes one real bug (an "err"
25447         that should have been "*err").  g++ problem reported by
25448         Sam Steingold.
25449         * lib/regex_internal.h (re_calloc): New macro, consistent with
25450         re_malloc etc.  All callers of calloc changed to use re_calloc.
25451         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
25452         not int.  All callers changed.
25453         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
25454         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
25455         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
25456         (find_recover_state): Change "err" to "*err"; this fixes what
25457         appears to be a real bug.
25458         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
25459         versus int.
25460
25461 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
25462
25463         * modules/regex (Depends-on): Add malloc, since the code
25464         assumes that !malloc(0) means failure.
25465
25466 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
25467
25468         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
25469
25470         alloca modernization/simplification for regex.
25471         * lib/regex.c: Remove portability cruft for alloca.  This no longer
25472         needs to be at the start of the file, and can be moved into
25473         regex_internal.h and simplified.
25474         * lib/regex_internal.h: Include <alloca.h>.
25475         (__libc_use_alloca) [!defined _LIBC]: New macro.
25476         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
25477         now works outside glibc.
25478
25479 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
25480
25481         * config/srclist.txt: Add glibc bugs 1241, 1245.
25482
25483 2005-08-25  Jim Meyering  <jim@meyering.net>
25484
25485         * lib/open-safer.c: Include <config.h>.
25486         Otherwise, we'd lose LARGEFILE support in any file using
25487         e.g. "fcntl--.h"
25488
25489 2005-08-25  Bruno Haible  <bruno@clisp.org>
25490
25491         * m4/minmax.m4: Require autoconf 2.52.
25492         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
25493         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
25494         alternatives of translit over the alphabet.
25495         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
25496
25497 2005-08-24  Simon Josefsson  <jas@extundo.com>
25498
25499         * tests/test-getpass.c: New file.
25500
25501 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
25502
25503         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
25504         for GNU regex features.
25505
25506 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
25507
25508         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
25509         * lib/regex.h (regerror): Likewise.
25510
25511         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
25512         requires this.  (The code never needed it.)
25513
25514         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
25515         All uses of recently-renamed identifiers changed to use the new,
25516         POSIX-compliant names.  The code will build and run just fine
25517         without these changes, but it's better to eat our own dog food
25518         and use the standard-conforming names.
25519
25520         * lib/regex.h: Fix a multitude of POSIX name space violations.
25521         These changes have an effect only for programs that define
25522         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
25523         do not change anything for programs compiled in the normal way.
25524         Also, there is no effect on the ABI.
25525
25526         (_REGEX_SOURCE): New macro.
25527         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
25528         defined and _GNU_SOURCE is not; this fixes a name space violation.
25529
25530         Rename the following macros to obey POSIX requirements.
25531         The old names are still visible as macros if _REGEX_SOURCE is defined.
25532         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
25533         RE_BACKSLASH_ESCAPE_IN_LISTS.
25534         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
25535         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
25536         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
25537         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
25538         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
25539         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
25540         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
25541         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
25542         (REG_INTERVALS): renamed from RE_INTERVALS.
25543         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
25544         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
25545         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
25546         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
25547         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
25548         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
25549         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
25550         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
25551         RE_UNMATCHED_RIGHT_PAREN_ORD.
25552         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
25553         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
25554         (REG_DEBUG): renamed from RE_DEBUG.
25555         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
25556         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
25557         unusual, since we can't clash with the POSIX REG_ICASE.
25558         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
25559         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
25560         (REG_NO_SUB): renamed from RE_NO_SUB.
25561         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
25562         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
25563         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
25564         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
25565         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
25566         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
25567         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
25568         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
25569         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
25570         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
25571         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
25572         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
25573         RE_SYNTAX_POSIX_MINIMAL_BASIC.
25574         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
25575         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
25576         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
25577         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
25578         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
25579         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
25580         (REG_FIXED): Renamed from REGS_FIXED.
25581         (REG_NREGS): Renamed from RE_NREGS.
25582
25583         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
25584         of other REG_* macros, since POSIX says the user is allowed to
25585         #undef these macros selectively.
25586
25587         (reg_errcode_t): Update comment stating what other tables need
25588         to be consistent.
25589
25590         Rename the following enum values to obey POSIX requirements.
25591         The old names are still visible as macros.
25592         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
25593         is not defined, since GNU is supposed to be a superset of POSIX as
25594         much as possible, and since we want reg_errcode_t to be a signed
25595         type for implementation consistency.
25596         (_REG_NOERROR): Renamed from REG_NOERROR.
25597         (_REG_NOMATCH): Renamed from REG_NOMATCH.
25598         (_REG_BADPAT): Renamed from REG_BADPAT.
25599         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
25600         (_REG_ECTYPE): Renamed from REG_ECTYPE.
25601         (_REG_EESCAPE): Renamed from REG_EESCAPE.
25602         (_REG_ESUBREG): Renamed from REG_ESUBREG.
25603         (_REG_EBRACK): Renamed from REG_EBRACK.
25604         (_REG_EPAREN): Renamed from REG_EPAREN.
25605         (_REG_EBRACE): Renamed from REG_EBRACE.
25606         (_REG_BADBR): Renamed from REG_BADBR.
25607         (_REG_ERANGE): Renamed from REG_ERANGE.
25608         (_REG_ESPACE): Renamed from REG_ESPACE.
25609         (_REG_BADRPT): Renamed from REG_BADRPT.
25610         (_REG_EEND): Renamed from REG_EEND.
25611         (_REG_ESIZE): Renamed from REG_ESIZE.
25612         (_REG_ERPAREN): Renamed from REG_ERPAREN.
25613         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
25614         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
25615         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
25616         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
25617
25618         (_REG_RE_NAME, _REG_RM_NAME): New macros.
25619         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
25620         changed.  But support the old name if the new one is not defined
25621         and if _REGEX_SOURCE.
25622
25623         Change the following member names in struct re_pattern_buffer.
25624         The old names are still supported if !_REGEX_SOURCE.
25625         The new names are always supported, regardless of _REGEX_SOURCE.
25626         (re_buffer): Renamed from buffer.
25627         (re_allocated): Renamed from allocated.
25628         (re_used): Renamed from used.
25629         (re_syntax): Renamed from syntax.
25630         (re_fastmap): Renamed from fastmap.
25631         (re_translate): Renamed from translate.
25632         (re_can_be_null): Renamed from can_be_null.
25633         (re_regs_allocated): Renamed from regs_allocated.
25634         (re_fastmap_accurate): Renamed from fastmap_accurate.
25635         (re_no_sub): Renamed from no_sub.
25636         (re_not_bol): Renamed from not_bol.
25637         (re_not_eol): Renamed from not_eol.
25638         (re_newline_anchor): Renamed from newline_anchor.
25639
25640         Change the following member names in struct re_registers.
25641         The old names are still supported if !_REGEX_SOURCE.
25642         The new names are always supported, regardless of _REGEX_SOURCE.
25643         (rm_num_regs): Renamed from num_regs.
25644         (rm_start): Renamed from start.
25645         (rm_end): Renamed from end.
25646
25647         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
25648         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
25649         Prepend __ to parameter names.
25650
25651         Undo yesterday's changes.
25652
25653 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
25654
25655         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
25656         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
25657         lib/regex.c.
25658
25659 2005-08-24  Jim Meyering  <jim@meyering.net>
25660
25661         Sync from coreutils.
25662         * m4/fcntl-safer.m4: New file.
25663
25664         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
25665         and object files for this module.
25666
25667 2005-08-24  Jim Meyering  <jim@meyering.net>
25668
25669         Sync from coreutils.
25670         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
25671
25672 2005-08-24  Jim Meyering  <jim@meyering.net>
25673
25674         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
25675         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
25676
25677 2005-08-24  Jim Meyering  <jim@meyering.net>
25678
25679         * modules/fcntl-safer: New module.
25680         * modules/fts (Depends-on): Add fcntl-safer.
25681         * MODULES.html.sh (File descriptor based Input/Output):
25682         Add fcntl-safer.
25683
25684 2005-08-24  Bruno Haible  <bruno@clisp.org>
25685
25686         Support for unit test modules.
25687         * modules/README: Mention tests modules.
25688         * modules/TEMPLATE-TESTS: New file.
25689         * gnulib-tool: New options --extract-tests-module, --with-tests and
25690         --tests-base (unused for the moment).
25691         (testsbase, inctests): New variables.
25692         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
25693         (func_verify_module): Exclude TEMPLATE-TESTS.
25694         (func_verify_nontests_module, func_verify_tests_module): New functions.
25695         (func_get_dependencies): Add implicit dependency for tests modules.
25696         (func_get_tests_module): New function.
25697         (func_modules_transitive_closure): When --with-tests was specified,
25698         include the unit tests as well, unless explicitly avoided.
25699         (func_emit_lib_Makefile_am): Ignore the tests modules here.
25700         (func_emit_tests_Makefile_am): New function.
25701         (func_create_testdir): When --with-tests was specified, emit a
25702         tests/ directory.
25703         * MODULES.html.sh (Future developments): Update.
25704
25705 2005-08-24  Bruno Haible  <bruno@clisp.org>
25706
25707         * modules/tls-tests: New file.
25708         * tests/test-tls.c: New file, from GNU gettext.
25709
25710 2005-08-24  Bruno Haible  <bruno@clisp.org>
25711
25712         * modules/lock-tests: New file.
25713         * tests/test-lock.c: New file, from GNU gettext.
25714
25715 2005-08-24  Bruno Haible  <bruno@clisp.org>
25716
25717         * lib/lock.h: Add multiple inclusion guard.
25718         * lib/tls.h: Add multiple inclusion guard.
25719
25720 2005-08-24  Bruno Haible  <bruno@clisp.org>
25721
25722         * gnulib-tool: Add support for the --aux-dir option to
25723         --create-testdir, --create-megatestdir, --test, --megatest.
25724         (func_create_testdir, func_create_megatestdir): Optionally emit a
25725         AC_CONFIG_AUX_DIR directive.
25726         (create-testdir, create-megatestdir, test, megatest): Provide a
25727         default value for $auxdir.
25728
25729 2005-08-24  Bruno Haible  <bruno@clisp.org>
25730
25731         * gnulib-tool (import): Use compound statement instead of subshell
25732         where possible.
25733
25734 2005-08-24  Bruno Haible  <bruno@clisp.org>
25735
25736         * gnulib-tool (import): Change --aux-dir default to "build-aux".
25737
25738 2005-08-24  Bruno Haible  <bruno@clisp.org>
25739
25740         * gnulib-tool (func_version): Update.
25741
25742 2005-08-24  Bruno Haible  <bruno@clisp.org>
25743
25744         * gnulib-tool (func_import, func_create_testdir,
25745         func_create_megatestdir): Quote all autoconf macro arguments.
25746
25747 2005-08-24  Bruno Haible  <bruno@clisp.org>
25748
25749         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
25750         option --force, because --force causes the aclocal.m4 of each
25751         subdirectory to be newer than the corresponding config.h.in.
25752
25753 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
25754
25755         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
25756         All contents moved to gl_REGEX.
25757         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
25758         assume that it does.
25759
25760 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
25761
25762         * lib/regex.h (REG_NOSYS)
25763         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
25764         Define, since POSIX requires it as of 2001.
25765         (_REG_ENOSYS)
25766         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
25767         New private symbol, used to keep the enum signed in all cases.
25768         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
25769         Youngman in
25770         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
25771
25772         * lib/regex_internal.c (re_string_skip_chars, register_state):
25773         (calc_state_hash):
25774         Remove forward decls; no longer needed now that we use prototypes.
25775         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
25776         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
25777         (clean_state_log_if_needed): Likewise.
25778
25779 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
25780
25781         * config/srclist.txt: Add glibc bugs 1231-1233.
25782
25783 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
25784
25785         Fix problems reported by Sam Steingold in
25786         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
25787         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
25788         assumed that reg_errcode_t is a signed type, which is not
25789         necessarily true if _XOPEN_SOURCE is not defined.
25790         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
25791         since some compilers warn about it otherwise.
25792
25793 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
25794
25795         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
25796         (init_word_char, create_initial_state, duplicate_node_closure):
25797         (fetch_token, peek_token_bracket, build_range_exp):
25798         (build_collating_symbol): Remove forward decls; no longer needed
25799         now that we use prototypes.
25800
25801         * lib/regcomp.c:
25802         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
25803         (re_compile_fastmap_iter, regcomp, regerror, regfree):
25804         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
25805         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
25806         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
25807         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
25808         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
25809         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
25810         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
25811         (build_range_exp, build_collating_symbol, parse_bracket_exp):
25812         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
25813         (build_charclass, build_charclass_op, fetch_number, create_tree):
25814         (create_token_tree, mark_opt_subexp, duplicate_tree):
25815         Use prototypes rather than old-style definitions.
25816
25817         * lib/regex_internal.c:
25818         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
25819         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
25820         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
25821         (re_string_reconstruct, re_string_peek_byte_case):
25822         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
25823         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
25824         (re_node_set_init_copy, re_node_set_add_intersect):
25825         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
25826         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
25827         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
25828         (re_acquire_state, re_acquire_state_context, register_state):
25829         (create_ci_newstate, create_cd_newstate, free_state):
25830         Likewise.
25831         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
25832         re_search_2):
25833         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
25834         (re_search_internal, prune_impossible_nodes):
25835         (acquire_init_state_context, check_matching, static):
25836         (check_halt_node_context, check_halt_state_context, proceed_next_node):
25837         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
25838         (update_regs, sift_states_backward, build_sifted_states):
25839         (clean_state_log_if_needed, merge_state_array):
25840         (update_cur_sifted_state, add_epsilon_src_nodes):
25841         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
25842         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
25843         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
25844         (find_recover_state, check_subexp_matching_top, transit_state_mb):
25845         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
25846         (check_arrival, check_arrival_add_next_nodes):
25847         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
25848         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
25849         (check_node_accept_bytes, check_node_accept, extend_buffers):
25850         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
25851         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
25852         (sift_ctx_init):
25853         Likewise.
25854
25855         * lib/regex_internal.h:
25856         (re_string_allocate, re_string_construct, re_string_reconstruct):
25857         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
25858         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
25859         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
25860         (re_string_context_at, re_string_peek_byte_case):
25861         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
25862         is defined, since we now use prototypes always.
25863
25864         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
25865         C89 or better.  All uses removed.
25866
25867 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
25868
25869         * config/srclist.txt: Add glibc bugs 1220-1227.
25870
25871 2005-08-20  Jim Meyering  <jim@meyering.net>
25872
25873         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
25874         of unused local, dfa.
25875
25876 2005-08-20  Bruno Haible  <bruno@clisp.org>
25877
25878         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
25879
25880 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
25881
25882         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
25883         (re_node_set_insert_last, re_dfa_add_node):
25884         Rename local variables to avoid GCC shadowing warnings.
25885
25886 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
25887
25888         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
25889         [defined lint]: Suppress bogus uninitialized-variable warnings.
25890
25891         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
25892         and let the caller return REG_ESPACE if out of space.  This
25893         removes an uninitialied-variable warning with GCC 4.0.1, and also
25894         avoids taking the address of a local variable.  All callers
25895         changed.
25896
25897 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
25898
25899         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
25900         $LIBCSRC/posix/regexec.c.
25901         Add glibc bug 1217 for regcomp.c.
25902
25903 2005-08-19  Jim Meyering  <jim@meyering.net>
25904
25905         * lib/regexec.c (proceed_next_node): Redo local variables to
25906         avoid GCC shadowing warnings.
25907
25908 2005-08-18  Bruno Haible  <bruno@clisp.org>
25909
25910         * lib/strstr.c (strstr): Fix return value in multibyte case.
25911         * lib/strcasestr.c (strcasestr): Likewise.
25912
25913 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
25914
25915         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
25916
25917 2005-08-17  Jim Meyering  <jim@meyering.net>
25918
25919         Make the %s format (seconds since the epoch) work for a negative
25920         number and when used with a zero-padded field width, e.g. %015s.
25921
25922         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
25923         label so that it precedes the code to set `digits'.  Otherwise,
25924         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
25925         print `00-22'.  Now, it prints `-0022', as it should.
25926
25927 2005-08-17  Bruno Haible  <bruno@clisp.org>
25928
25929         * modules/strstr (Files): Add m4/mbrtowc.m4.
25930         (Depends-on): Add mbuiter.
25931
25932 2005-08-17  Bruno Haible  <bruno@clisp.org>
25933
25934         * modules/strcasestr: New file.
25935         * MODULES.html.sh (String handling, based on ANSI C 89): Add
25936         strcasestr.
25937
25938 2005-08-17  Bruno Haible  <bruno@clisp.org>
25939
25940         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
25941
25942 2005-08-17  Bruno Haible  <bruno@clisp.org>
25943
25944         * modules/mbuiter: New file.
25945         * MODULES.html.sh (Extended multibyte and wide character utilities):
25946         Add mbuiter.
25947
25948 2005-08-17  Bruno Haible  <bruno@clisp.org>
25949
25950         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
25951         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
25952
25953 2005-08-17  Bruno Haible  <bruno@clisp.org>
25954
25955         * m4/strcasestr.m4: New file.
25956
25957 2005-08-17  Bruno Haible  <bruno@clisp.org>
25958
25959         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
25960         * lib/strstr.c: Completely rewritten, with multibyte locale support.
25961
25962 2005-08-17  Bruno Haible  <bruno@clisp.org>
25963
25964         * lib/strcasestr.h: New file.
25965         * lib/strcasestr.c: New file.
25966
25967 2005-08-17  Bruno Haible  <bruno@clisp.org>
25968
25969         * lib/strcasecmp.c: Use mbuiter.h.
25970
25971 2005-08-17  Bruno Haible  <bruno@clisp.org>
25972
25973         * lib/mbuiter.h: New file.
25974
25975 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
25976
25977         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
25978         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
25979         and gl_GETOPT are both invoked via different paths (as happens
25980         with GNU tar CVS because it uses both argp and getopt), the former
25981         wins.
25982
25983 2005-08-16  Bruno Haible  <bruno@clisp.org>
25984
25985         * modules/tls: New file.
25986         * MODULES.html.sh (Multithreading): Add tls.
25987
25988 2005-08-16  Bruno Haible  <bruno@clisp.org>
25989
25990         * modules/strnlen1: New file.
25991         * MODULES.html.sh (String handling): Add strnlen1.
25992
25993 2005-08-16  Bruno Haible  <bruno@clisp.org>
25994
25995         * modules/strcase (Files): Add m4/mbrtowc.m4.
25996         (Depends-on): Add strnlen1, mbchar.
25997
25998 2005-08-16  Bruno Haible  <bruno@clisp.org>
25999
26000         * modules/mbiter: New file.
26001         * MODULES.html.sh (Extended multibyte and wide character utilities):
26002         Add mbiter.
26003
26004 2005-08-16  Bruno Haible  <bruno@clisp.org>
26005
26006         * modules/mbfile: New file.
26007         * MODULES.html.sh (Extended multibyte and wide character utilities):
26008         Add mbfile.
26009
26010 2005-08-16  Bruno Haible  <bruno@clisp.org>
26011
26012         * modules/mbchar: New file.
26013         * MODULES.html.sh (Extended multibyte and wide character utilities):
26014         New section.
26015
26016 2005-08-16  Bruno Haible  <bruno@clisp.org>
26017
26018         * m4/tls.m4: New file, from GNU gettext.
26019
26020 2005-08-16  Bruno Haible  <bruno@clisp.org>
26021
26022         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
26023         always.
26024         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
26025
26026 2005-08-16  Bruno Haible  <bruno@clisp.org>
26027
26028         * m4/mbiter.m4: New file.
26029
26030 2005-08-16  Bruno Haible  <bruno@clisp.org>
26031
26032         * m4/mbfile.m4: New file.
26033
26034 2005-08-16  Bruno Haible  <bruno@clisp.org>
26035
26036         * m4/mbchar.m4: New file.
26037
26038 2005-08-16  Bruno Haible  <bruno@clisp.org>
26039
26040         * lib/tls.h: New file, from GNU gettext.
26041         * lib/tls.c: New file, from GNU gettext.
26042
26043 2005-08-16  Bruno Haible  <bruno@clisp.org>
26044
26045         * lib/strnlen1.h: New file.
26046         * lib/strnlen1.c: New file.
26047
26048 2005-08-16  Bruno Haible  <bruno@clisp.org>
26049
26050         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
26051         (mbi_init): Update.
26052         (mbi_avail, mbi_advance): Let the iteration end before the terminating
26053         NUL byte, not after it.
26054
26055 2005-08-16  Bruno Haible  <bruno@clisp.org>
26056
26057         * lib/strcase.h (strcasecmp): Add note in comments.
26058         * lib/strncasecmp.c: Use code from strcasecmp.c.
26059         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
26060         (strcasecmp): Work correctly in multibyte locales.
26061
26062 2005-08-16  Bruno Haible  <bruno@clisp.org>
26063
26064         * lib/mbiter.h: New file.
26065
26066 2005-08-16  Bruno Haible  <bruno@clisp.org>
26067
26068         * lib/mbfile.h: New file.
26069
26070 2005-08-16  Bruno Haible  <bruno@clisp.org>
26071
26072         * lib/mbchar.h: New file.
26073         * lib/mbchar.c: New file.
26074
26075 2005-08-16  Bruno Haible  <bruno@clisp.org>
26076
26077         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
26078         the valid ones. Makes the comparison operations transitive:
26079         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
26080         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
26081
26082 2005-08-15  Simon Josefsson  <jas@extundo.com>
26083
26084         * modules/ssize_t (License): Change to 'unlimited'.
26085
26086         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
26087
26088 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
26089
26090         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
26091         Add comments for each pending glibc patch.
26092
26093 2005-08-15  Bruno Haible  <bruno@clisp.org>
26094
26095         * lib/regex.h (__restrict_arr): Don't define to __restrict if
26096         __cplusplus is defined.
26097
26098 2005-08-14  Jim Meyering  <jim@meyering.net>
26099
26100         Sync from coreutils.
26101
26102         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
26103         Use the hash-table-based cycle-detection code not just when
26104         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
26105         Reported by James Youngman in
26106         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
26107         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
26108         FTS_TIGHT_CYCLE_CHECK.
26109         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
26110         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
26111         once again.
26112         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
26113         * lib/fts.c (fd_safer): Remove decl.
26114         Include fcntl--.h rather than unistd-safer.h
26115         (fts_safe_changedir): Don't call fd_safer; no longer needed
26116         now that we include fcntl--.h.
26117
26118 2005-08-12  Simon Josefsson  <jas@extundo.com>
26119
26120         * modules/getndelim2: Use ssize_t module.
26121         * modules/getnline: Likewise.
26122         * modules/safe-read: Likewise.
26123         * modules/xreadlink: Likewise.
26124
26125         * modules/ssize_t: New file.
26126
26127 2005-08-12  Simon Josefsson  <jas@extundo.com>
26128
26129         * m4/readline.m4: Look for termcap, curses or ncurses if required.
26130
26131 2005-08-12  Simon Josefsson  <jas@extundo.com>
26132
26133         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
26134         ssize_t.
26135
26136 2005-08-12  Simon Josefsson  <jas@extundo.com>
26137
26138         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
26139         readline, getdelim and check_version.
26140         (Support for systems lacking ISO C 99: Sizes of integer types):
26141         Add size_max.
26142
26143 2005-08-12  Bruno Haible  <bruno@clisp.org>
26144
26145         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
26146
26147 2005-08-11  Simon Josefsson  <jas@extundo.com>
26148
26149         * modules/readline: New file.
26150
26151         * modules/strnlen (Files): Add strnlen.h.
26152
26153 2005-08-11  Simon Josefsson  <jas@extundo.com>
26154
26155         * m4/readline.m4: New file.
26156
26157 2005-08-11  Simon Josefsson  <jas@extundo.com>
26158
26159         * lib/readline.h, readline.c: New file.
26160
26161 2005-08-11  Simon Josefsson  <jas@extundo.com>
26162
26163         * doc/gnulib.texi (Initial import, Finishing touches): Mention
26164         gl_AVOID.
26165
26166 2005-08-11  Bruno Haible  <bruno@clisp.org>
26167
26168         * lib/strnlen.h (strnlen): Change parameter name to match comment.
26169
26170 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
26171
26172         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
26173
26174 2005-08-10  Simon Josefsson  <jas@extundo.com>
26175
26176         * tests/test-iconvme.c: New file.
26177
26178 2005-08-10  Simon Josefsson  <jas@extundo.com>
26179
26180         * m4/strnlen.m4: New file.
26181
26182         * m4/strndup.m4: Don't check for strnlen declaration, done in
26183         strnlen.m4.
26184
26185 2005-08-10  Simon Josefsson  <jas@extundo.com>
26186
26187         * lib/strndup.c: Use strnlen.h.
26188
26189         * lib/strnlen.h: New file.
26190
26191 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
26192
26193         * README: Typos.
26194
26195 2005-08-02  Simon Josefsson  <jas@extundo.com>
26196
26197         * modules/readline: New file.
26198
26199 2005-08-02  Simon Josefsson  <jas@extundo.com>
26200
26201         * modules/getdelim: New file.
26202
26203         * modules/getline: Rewrite, don't use getndelim2.
26204
26205 2005-08-02  Simon Josefsson  <jas@extundo.com>
26206
26207         * m4/getline.m4: Separate out getdelim stuff into separate module.
26208
26209         * m4/getdelim.m4: New file.
26210
26211 2005-08-02  Simon Josefsson  <jas@extundo.com>
26212
26213         * lib/getline.h, getline.c: Rewrite.
26214
26215         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
26216
26217 2005-07-31  Bruno Haible  <bruno@clisp.org>
26218
26219         * lib/lock.h (gl_lock_initializer): New macro.
26220         (gl_lock_define_initialized): Use it.
26221         (gl_rwlock_initializer): New macro.
26222         (gl_rwlock_define_initialized): Use it.
26223         (gl_recursive_lock_initializer): New macro.
26224         (gl_recursive_lock_define_initialized): Use it.
26225
26226 2005-07-30  Karl Berry  <karl@gnu.org>
26227
26228         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
26229         Report from Ben Pfaff, regarding getopt.
26230
26231 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
26232
26233         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
26234         normal way.
26235         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
26236         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
26237         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
26238         (gl_GETOPT): Use the new macros.  Most of the implementation
26239         is moved to the new macros.  This is for programs like Emacs
26240         that don't want all the functionality of gl_GETOPT.
26241
26242 2005-07-26  Bruno Haible  <bruno@clisp.org>
26243
26244         * m4/lock.m4: Update from GNU gettext.
26245
26246 2005-07-26  Bruno Haible  <bruno@clisp.org>
26247
26248         * lib/lock.h: Update from GNU gettext.
26249         * lib/lock.c: Update from GNU gettext.
26250
26251 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
26252
26253         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
26254         obsolescent AC_TRY_RUN.  Include the default includes files, for
26255         'exit'.
26256
26257 2005-07-24  Bruno Haible  <bruno@clisp.org>
26258
26259         * modules/visibility: New file.
26260         * MODULES.html.sh (Misc): Add visibility.
26261
26262 2005-07-24  Bruno Haible  <bruno@clisp.org>
26263
26264         * m4/visibility.m4: New file.
26265
26266 2005-07-24  Bruno Haible  <bruno@clisp.org>
26267
26268         * doc/visibility.texi: New file.
26269
26270 2005-07-22  Bruno Haible  <bruno@clisp.org>
26271
26272         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
26273         $(ALLOCA_H), redundant through BUILT_SOURCES.
26274         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
26275         redundant through BUILT_SOURCES.
26276         * modules/byteswap (Makefile.am): Remove explicit dependency on
26277         $(BYTESWAP_H), redundant through BUILT_SOURCES.
26278         * modules/fnmatch (Makefile.am): Remove explicit dependency on
26279         $(FNMATCH_H), redundant through BUILT_SOURCES.
26280         * modules/getopt (Makefile.am): Remove explicit dependency on
26281         $(GETOPT_H), redundant through BUILT_SOURCES.
26282         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
26283         redundant through BUILT_SOURCES.
26284         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
26285         redundant through BUILT_SOURCES.
26286         * modules/stdbool (Makefile.am): Remove explicit dependency on
26287         $(STDBOOL_H), redundant through BUILT_SOURCES.
26288         * modules/stdint (Makefile.am): Remove explicit dependency on
26289         $(STDINT_H), redundant through BUILT_SOURCES.
26290         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
26291         Remove explicit dependency on $(SYSEXITS_H).
26292         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
26293
26294 2005-07-18  Simon Josefsson  <jas@extundo.com>
26295
26296         * lib/check-version.c (check_version): Accept identical versions too.
26297
26298 2005-07-18  Bruno Haible  <bruno@clisp.org>
26299
26300         * modules/lock: New file.
26301         * MODULES.html.sh (Multithreading): New section.
26302
26303 2005-07-18  Bruno Haible  <bruno@clisp.org>
26304
26305         * m4/lock.m4: New file, from GNU gettext.
26306
26307 2005-07-18  Bruno Haible  <bruno@clisp.org>
26308
26309         * lib/lock.h: New file, from GNU gettext.
26310         * lib/lock.c: New file, from GNU gettext.
26311
26312 2005-07-18  Bruno Haible  <bruno@clisp.org>
26313
26314         * lib/lock.h (gl_once_t): New type.
26315         (gl_once_define, gl_once): New macros.
26316         * lib/lock.c (fresh_once): New variable.
26317         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
26318         functions.
26319
26320 2005-07-16  Simon Josefsson  <jas@extundo.com>
26321
26322         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
26323         workaround, suggested by Bruno.
26324
26325 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
26326
26327         * modules/xalloc (Depends-on): Add xalloc-die.
26328         * modules/xvasprintf (Depends-on): Add xalloc-die.
26329
26330 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
26331
26332         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
26333         with a minor change.
26334
26335 2005-07-15  Bruno Haible  <bruno@clisp.org>
26336
26337         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
26338         When using lib/poll.c, define poll as rpl_poll.
26339
26340 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
26341
26342         * modules/argp (Depends-on): Remove unlocked-io.
26343
26344 2005-07-14  Derek Price  <derek@ximbiot.com>
26345
26346         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
26347         for glob symlink bug.
26348
26349 2005-07-14  Bruno Haible  <bruno@clisp.org>
26350
26351         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
26352         Instead, test for *_unlocked function declarations directly.
26353
26354 2005-07-11  Simon Josefsson  <jas@extundo.com>
26355
26356         * modules/size_max: New file.
26357
26358         * modules/xsize: Depend on size_max module for size_max.m4.
26359
26360 2005-07-11  Simon Josefsson  <jas@extundo.com>
26361
26362         * lib/size_max.h: New file.
26363
26364 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
26365
26366         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
26367         copyright symbol and the year.
26368         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
26369         (version_etc_va): Use parameterized copyright notice.
26370         Reword to conform to the current GNU coding standards.
26371
26372 2005-07-11  Karl Berry  <karl@gnu.org>
26373
26374         * doc/gnulib.texi (Quoting): new node.
26375         (Initial import): more info, from Patrice.
26376
26377 2005-07-11  Bruno Haible  <bruno@clisp.org>
26378
26379         * gnulib-tool (func_usage): Document option --avoid.
26380         (Command line options): Handle --avoid.
26381         (func_acceptable): New function.
26382         (func_modules_transitive_closure): Use it.
26383
26384 2005-07-11  Bruno Haible  <bruno@clisp.org>
26385
26386         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
26387         Reported by Jim Meyering.
26388
26389 2005-07-10  Bruno Haible  <bruno@clisp.org>
26390
26391         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
26392         Needed when size_t is smaller than 'unsigned int'.
26393         Reported by Paul Eggert.
26394
26395 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
26396
26397         * modules/argp (Depends-on): Add unlocked-io
26398
26399 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
26400
26401         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
26402         block of defines.
26403
26404 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
26405
26406         * config/srclist.txt: Comment out regcomp.c, since we have a porting
26407         fix now.
26408
26409 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
26410         and Paul Eggert  <eggert@cs.ucla.edu>
26411
26412         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
26413         in wint_t, not wchar_t.  Remove now-unnecessary cast.
26414
26415 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
26416
26417         * modules/regex (Files): Add lib/regex_internal.c,
26418         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
26419         (Depends-on): Add extensions.
26420         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
26421
26422 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
26423
26424         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
26425         pathconf.
26426         * m4/same.m4 (gl_SAME): Likewise.
26427         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
26428
26429         * m4/regex.m4: Adjust to new libc regex implementation.
26430         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
26431         all the .c and .h parts of (the new) regex.
26432         Quote the m4 stuff better.
26433         Check for RE_ICASE bug of old gnulib.
26434         Check for REG_STARTEND of recent libc.
26435         Rename local variables from jm_* to gl_*.
26436         Quote operand of "test -f".
26437         Say "recent enough" version of libc, not "version 2".
26438         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
26439         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
26440         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
26441         Remove check for btowc, isascii.
26442         Require AM_LANGINFO_CODESET.
26443
26444 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
26445
26446         * lib/regex.c, regex.h: Sync from libc.
26447         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
26448         * lib/regexec.c:
26449         New files, synced from libc, except that regex_internal.h
26450         currently has a small porting fix.
26451
26452 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
26453
26454         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
26455         regex_internal.c, regexec.c.
26456         Add regex_internal.h too, but as a comment, since the libc version
26457         is currently broken in gnulib mode.
26458
26459 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
26460
26461         Support programs like Emacs that use gnulib but not gettext.
26462         * MODULES.html.sh (Internationalization functions): Add gettext-h.
26463         * modules/gettext-h: New file.
26464         * modules/gettext (Files): Remove lib/gettext.h.
26465         (Depends-on): Add gettext-h.
26466         (Makefile.am): Remove lib_SOURCES.
26467         * modules/argmatch, modules/c-stack, modules/closeout:
26468         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
26469         * modules/execute, modules/file-type, modules/getaddrinfo:
26470         * modules/getopt, modules/human, modules/javacomp:
26471         * modules/javaexec, modules/mkdir-p, modules/obstack:
26472         * modules/openat, modules/pagealign_alloc, modules/pipe:
26473         * modules/quotearg, modules/regex, modules/rpmatch:
26474         * modules/unicodeio, modules/userspec, modules/version-etc:
26475         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
26476         * modules/xsetenv:
26477         Depend on gettext-h, not gettext.
26478
26479 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
26480
26481         * gnulib-tool (func_import): Add support for 'public domain' license.
26482         * modules/alloca, modules/atexit, modules/memmove:
26483         Now public domain, not GPL.
26484         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
26485         * modules/realloc, modules/strerror, modules/strtod:
26486         Now LGPL, not GPL.
26487
26488 2005-07-05  Bruno Haible  <bruno@clisp.org>
26489
26490         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
26491         autoconf CVS. Needed for mingw.
26492
26493 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
26494
26495         Remove the dependency of the strftime module on the tzset module.
26496         * modules/strftime (Depends-on): Remove dependency on tzset.
26497
26498 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
26499
26500         Remove the dependency of the strftime module on the tzset module.
26501         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
26502         gl_FUNC_TZSET_CLOBBER.
26503
26504 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
26505
26506         Remove the dependency of the strftime module on the tzset module.
26507         * lib/strftime.c (my_strftime)
26508         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
26509         Copy the input structure, to work around some of the bug with
26510         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
26511         Solaris releases, you should also use the tzset module, but we won't
26512         require it as a dependency any more since we don't want LGPLed code
26513         to depend on GPLed code.
26514
26515 2005-07-02  Jim Meyering  <jim@meyering.net>
26516
26517         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
26518         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
26519         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
26520         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
26521
26522 2005-07-02  Jim Meyering  <jim@meyering.net>
26523
26524         * lib/backupfile.c (backup_args): Change a `0' to NULL.
26525
26526 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
26527
26528         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
26529         declares only 'struct timespec;' (!).
26530
26531 2005-07-01  Jim Meyering  <jim@meyering.net>
26532
26533         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
26534         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
26535         * lib/save-cwd.c, tempname.c:
26536         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
26537         and don't include <sys/file.h>).
26538
26539 2005-06-29  Jim Meyering  <jim@meyering.net>
26540
26541         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
26542         type name.  Use the variable name instead.
26543         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
26544         Likewise.
26545
26546 2005-06-28  Simon Josefsson  <jas@extundo.com>
26547
26548         * modules/check-version (Files): Add check-version.m4.
26549
26550 2005-06-28  Simon Josefsson  <jas@extundo.com>
26551
26552         * m4/check-version.m4: New file, suggested by Jim Meyering
26553         <jim@meyering.net>.
26554
26555 2005-06-28  Simon Josefsson  <jas@extundo.com>
26556
26557         * lib/check-version.h, lib/check-version.c: New files.
26558
26559 2005-06-28  Simon Josefsson  <jas@extundo.com>
26560
26561         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
26562         collision with global variable.  Better indentation.  Don't
26563         increment buffer pointer beyond buffer end.  Based on comments
26564         from Paul Eggert <eggert@cs.ucla.edu>.
26565
26566         * lib/base64.h: Indent.
26567
26568 2005-06-28  Simon Josefsson  <jas@extundo.com>
26569
26570         * doc/gnulib.texi (Library version handling): New section.
26571
26572 2005-06-28  Jim Meyering  <jim@meyering.net>
26573
26574         * check-module (find_included_lib_files): Hard-code another
26575         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
26576         but modules/fts-lgpl (correctly) does not list those files.
26577
26578         * modules/canonicalize (Files): Add lib/pathmax.h.
26579
26580 2005-06-25  Simon Josefsson  <jas@extundo.com>
26581
26582         * modules/check-version: New file.
26583
26584 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
26585
26586         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
26587         initializer of struct addrinfo, as an indication that we don't
26588         care how many members the structure has.
26589
26590 2005-06-24  Derek Price  <derek@ximbiot.com>
26591         and Bruno Haible  <bruno@clisp.org>
26592
26593         Remove stat module & update lstat.
26594         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
26595         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
26596         * m4/stat.m4: Remove this file.
26597
26598 2005-06-24  Derek Price  <derek@ximbiot.com>
26599         and Bruno Haible  <bruno@clisp.org>
26600
26601         Remove stat module & update lstat.
26602         * lib/stat.c: Remove this file...
26603         (slash_aware_lstat): ...moving this content and its support...
26604         * lib/lstat.c (rpl_lstat): ...into here.
26605         * lib/lstat.h: New file.
26606
26607 2005-06-24  Derek Price  <derek@ximbiot.com>
26608         and Bruno Haible  <bruno@clisp.org>
26609
26610         Remove stat module & update lstat.
26611         * config/srclist.txt (libc sources): Remove stat.
26612
26613 2005-06-24  Derek Price  <derek@ximbiot.com>
26614         and Bruno Haible  <bruno@clisp.org>
26615
26616         Remove stat module & update lstat.
26617         * MODULES.html.sh (stat): Remove.
26618         * MODULES.html: Regenerated.
26619         * modules/lstat (Description): Correct function name.
26620         (Files): Add "lstat.h".
26621         (Depends-on): Remove stat, add xalloc, stat-macros.
26622         * modules/stat: Remove this file.
26623         (Include): Add "lstat.h", remove <sys/stat.h>.
26624
26625 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
26626
26627         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
26628         (ranged_convert): Don't save conversion in a temporary struct.
26629         This causes a warning with GCC 4.0.0, and anyway in the typical
26630         case it's not worth the extra 100 bytes or so of code.
26631         (ranged_convert, __mktime_internal): When calling a function via a
26632         pointer P, use P () rather than (*P) (), as we now assume C89 or
26633         better.
26634
26635 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
26636
26637         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
26638         "who -r" failed to give output.  Problem reported by Tim Waugh.
26639
26640         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
26641         (xcalloc): Use it to avoid needless tests.
26642         Problem reported by Jim Meyering.
26643
26644 2005-06-20  Derek Price  <derek@ximbiot.com>
26645
26646         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
26647         unnecessary for Autoconfs > 2.59c.
26648
26649 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
26650
26651         * lib/argp.h (__option_is_short): Check upper limit of
26652         __key. Isprint() requires its argument to have the value
26653         of an unsigned char or EOF.
26654
26655 2005-06-16  Jim Meyering  <jim@meyering.net>
26656
26657         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
26658         when either N or S is zero.
26659
26660 2005-06-16  Derek Price  <derek@ximbiot.com>
26661
26662         * m4/bison.m4: Declare YACC & YFLAGS precious.
26663
26664 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
26665
26666         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
26667         multibyte string or pattern, fall back on unibyte matching.
26668         Problem reported by James Youngman.
26669
26670 2005-06-08  Bruno Haible  <bruno@clisp.org>
26671
26672         * modules/csharpcomp: New file.
26673         * MODULES.html.sh (C#): Add csharpcomp.
26674
26675 2005-06-08  Bruno Haible  <bruno@clisp.org>
26676
26677         * m4/csharpcomp.m4: New file, from GNU gettext.
26678
26679 2005-06-08  Bruno Haible  <bruno@clisp.org>
26680
26681         * lib/csharpcomp.h: New file, from GNU gettext.
26682         * lib/csharpcomp.c: New file, from GNU gettext.
26683         * lib/csharpcomp.sh.in: New file, from GNU gettext.
26684
26685 2005-06-08  Bruno Haible  <bruno@clisp.org>
26686
26687         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
26688         warning on mingw.
26689
26690 2005-06-07  Derek Price  <derek@ximbiot.com>
26691
26692         Sync from CVS.
26693         * lib/glob_.h: Indent nested #ifdef.
26694
26695 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
26696
26697         Sync from coreutils.
26698         Use "file name" when talking about file names, instead of "filename"
26699         or "path", as per the GNU coding standards.
26700         * lib/mkdir-p.c: Renamed from makepath.c.
26701         (make_dir_parents): Renamed from make_path.  All callers changed.
26702         * lib/mkdir-p.h: Likewise.  All includers changed.
26703         * lib/filenamecat.c: Renamed from path-concat.c.
26704         (file_name_concat): Renamed from path_concat.  All callers changed.
26705         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
26706         * lib/filenamecat.h: Likewise.  All includers changed.
26707         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
26708         in comments or local variable names.
26709         * lib/basename.c: Likewise.
26710         * lib/canonicalize.c, canonicalize.h: Likewise.
26711         * lib/dirname.c, dirname.h: Likewise.
26712         * lib/euidaccess.c: Likewise.
26713         * lib/exclude.c: Likewise
26714         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
26715         * lib/fsusage.c, fsuage.h: Likewise.
26716         * lib/fts.c, fts_.h: Likewise.
26717         * lib/getcwd.c: Likewise.
26718         * lib/getloadavg.c: Likewise.
26719         * lib/mkstemp.c: Likewise.
26720         * lib/mountlist.c, mountlist.h: Likewise.
26721         * lib/openat.c, openat.h: Likewise.
26722         * lib/readlink-stub.c: Likewise.
26723         * lib/readutmp.c, readutmp.h: Likewise.
26724         * lib/rename.c: Likewise.
26725         * lib/rmdir.c: Likewise.
26726         * lib/same.c: Likewise.
26727         * lib/savedir.c: Likewise.
26728         * lib/stripslash.c: Likewise.
26729         * lib/tempname.c: Likewise.
26730         * lib/xreadlink.c: Likewise.
26731         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
26732         All uses changed.
26733         * lib/exclude.h: Likewise.
26734
26735         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
26736         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
26737         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
26738         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
26739         * lib/pathmax.h: Include <limits.h> unconditionally, since other
26740         files have been getting away with it for years (MORE/BSD 4.3
26741         is extinct now).
26742         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
26743         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
26744
26745         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
26746         Define to 256, not 255, as per modern POSIX.
26747
26748 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
26749
26750         Sync from coreutils.
26751         Use "file name" when talking about file names, instead of "filename"
26752         or "path", as per the GNU coding standards.
26753         * MODULES.html.sh: mkdir-p renamed from makepath.
26754         filenamecat renamed from path-concat.
26755         * modules/filenamecat: Renamed from modules/path-concat.
26756         (Files): filenamecat.h and filenamecat.c renamed from
26757         path-concat.h and path-concat.c.
26758         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
26759         (Include): filenamecat.h, not path-concat.h.
26760         * modules/mkdir-p: Renamed from modules/makepath.
26761         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
26762         makepath.c.
26763         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
26764         (Include): mkdir-p.h, not makepath.h.
26765
26766 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
26767
26768         Sync from coreutils.
26769         * m4/mkdir-p.m4: Renamed from makepath.m4.
26770         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
26771         Rename files from makepath.c to mkdir-p.c, and from
26772         makepath.h to mkdir-p.h.
26773         * m4/filenamecat.m4: Renamed from path-concat.m4.
26774         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
26775         Rename files from path-concat.c to filenamecat.c,
26776         and from path-concat.h to filenamecat.h.
26777         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
26778         "file name" in local variables or comments.
26779         * m4/rename.m4: Likewise.
26780
26781 2005-06-01  Bruno Haible  <bruno@clisp.org>
26782
26783         * modules/csharpexec: New file.
26784         * MODULES.html.sh (C#): New section.
26785
26786 2005-06-01  Bruno Haible  <bruno@clisp.org>
26787
26788         * m4/csharp.m4: New file, from GNU gettext.
26789         * m4/csharpexec.m4: New file, from GNU gettext.
26790
26791 2005-06-01  Bruno Haible  <bruno@clisp.org>
26792
26793         * lib/csharpexec.h: New file, from GNU gettext.
26794         * lib/csharpexec.c: New file, from GNU gettext.
26795         * lib/csharpexec.sh.in: New file, from GNU gettext.
26796
26797 2005-05-31  Derek Price  <derek@ximbiot.com>
26798             Paul Eggert  <eggert@cs.ucla.edu>
26799
26800         Sync from cvs.
26801         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
26802
26803 2005-05-31  Derek Price  <derek@ximbiot.com>
26804             Paul Eggert  <eggert@cs.ucla.edu>
26805
26806         Sync from cvs.
26807         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
26808
26809 2005-05-29  Derek Price  <derek@ximbiot.com>
26810
26811         * config/srclist.txt (glob_.h, glob.c): Add these files.
26812
26813 2005-05-29  Derek Price  <derek@ximbiot.com>
26814
26815         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
26816         * modules/glob: New file.
26817         * modules/getlogin_r: Add link to POSIX spec in description.
26818
26819 2005-05-29  Derek Price  <derek@ximbiot.com>
26820             Paul Eggert  <eggert@cs.ucla.edu>
26821
26822         * m4/glob.m4: New file.
26823
26824 2005-05-29  Derek Price  <derek@ximbiot.com>
26825             Paul Eggert  <eggert@cs.ucla.edu>
26826
26827         * lib/glob_.h, lib/glob.c: New files.
26828
26829 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
26830
26831         * modules/fts (Files): Remove m4/inttypes-pri.m4.
26832         * modules/fts-lgpl (Depends-on): Remove gettext.
26833
26834 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
26835
26836         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
26837         and don't require gt_INTTYPES_PRI.
26838
26839 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
26840
26841         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
26842
26843         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
26844         the configuration hassle isn't worth it.
26845         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
26846         (LONGEST_MODIFIER, PRIuMAX): Remove.
26847
26848 2005-05-27  Bruno Haible  <bruno@clisp.org>
26849
26850         * lib/getlogin_r.h: Remove second include of <stddef.h>.
26851
26852 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
26853
26854         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
26855         _POSIX_PTHREAD_SEMANTICS for Solaris.
26856
26857 2005-05-25  Derek Price  <derek@ximbiot.com>
26858
26859         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
26860
26861 2005-05-25  Derek Price  <derek@ximbiot.com>
26862             Paul Eggert  <eggert@cs.ucla.edu>
26863
26864         * modules/getlogin_r, m4/getlogin_r.m4: New files.
26865         * lib/getlogin_r.c, getlogin_r.h: New files.
26866
26867 2005-05-25  Bruno Haible  <bruno@clisp.org>
26868             Derek Price  <derek@ximbiot.com>
26869
26870         * lib/getlogin_r.h: Simplify API documentation.
26871
26872 2005-05-23  Derek Price  <derek@ximbiot.com>
26873
26874         * modules/minmax (Files): Add m4/minmax.m4.
26875         (configure.ac): Add gl_MINMAX.
26876
26877 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
26878
26879         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
26880         so that unistd-safer.h (GPL'ed code) need not be included.
26881
26882 2005-05-22  Bruno Haible  <bruno@clisp.org>
26883
26884         * m4/minmax.m4: New file.
26885         Based on a patch by Derek Price <derek@ximbiot.com>.
26886
26887 2005-05-22  Bruno Haible  <bruno@clisp.org>
26888
26889         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
26890         (INT64_MIN): Fix definition.
26891         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
26892
26893         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
26894         NEED_SIGNED_INT_TYPES.
26895
26896         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
26897         HAVE_SYSTEM_INTTYPES.
26898
26899 2005-05-22  Bruno Haible  <bruno@clisp.org>
26900
26901         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
26902         Also include <sys/param.h> if it defines MIN, MAX.
26903         Based on a patch by Derek Price <derek@ximbiot.com>.
26904
26905 2005-05-21  Jim Meyering  <jim@meyering.net>
26906
26907         * modules/fts (Files): Add m4/inttypes-pri.m4.
26908         (Depends-on): Add lstat and remove gettext.  Alphabetize.
26909
26910 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
26911
26912         New fts module.
26913         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
26914         (setup_dir, free_dir): New functions.
26915         (enter_dir, leave_dir): Define trivial
26916         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
26917         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
26918         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
26919         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
26920         Move to fts-cycle.c.
26921         (fts_open): Use setup_dir.
26922         (fts_close): Use free_dir.
26923         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
26924         This adds a label and some gotos, but the alternatives were messier.
26925         Check for memory allocation failure when entering a dir.
26926         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
26927         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
26928         (FTS): New member fts_cycle, that is a union that contains the
26929         old active_dir_ht and cycle_state.  All uses changed to mention
26930         fts_cycle.ht and fts_cycle.state.
26931         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
26932         fts.c, with the following changes:
26933         (setup_dir, free_dir): New functions.
26934         (enter_dir): Now returns bool.  Return true if successful, false
26935         if memory exhausted.  All callers changed.
26936         Do not bother partly cleaning up on
26937         memory allocation failure; that is free_dir's job.
26938         However, free ad if hash_insert fails, to avoid memory leak.
26939         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
26940         fts->fts_options to see which union member to use.
26941
26942 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
26943
26944         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
26945         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
26946
26947 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
26948
26949         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
26950
26951 2005-05-20  Jim Meyering  <jim@meyering.net>
26952
26953         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
26954         Now a macro, to pacify GCC.
26955
26956 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
26957
26958         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
26959         of -1.
26960
26961 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
26962
26963         * lib/chown.c (rpl_chown): Return -1 on failure.
26964
26965 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
26966
26967         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
26968         Don't check for stddef.h.
26969         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
26970         don't use its results.
26971         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
26972         since we include them unconditionally.  Don't require
26973         AM_STDBOOL_H, since stdbool is a prerequisite.
26974         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
26975         since we assume C89 or better.
26976         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
26977         as we don't use their results.
26978         Don't check for fchdir, memmove, memset, strrchr, as we use
26979         them unconditionally.
26980         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
26981         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
26982
26983 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
26984
26985         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
26986         Include <stddef.h> unconditionally, since we assume C89 now.
26987         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
26988         * lib/fts.c: Include fts_.h first, to check interface.
26989         Do not include intprops.h; no longer needed.
26990         Include cycle-check.h and hash.h, since fts_.h no longer does.
26991         Remove unnecessary casts of closedir to void.
26992         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
26993         decide whether to decrement nlinks.
26994         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
26995         (FTS): Use struct hash_table * instead of Hash_table, so that
26996         we no longer need to include hash.h here.
26997
26998 2005-05-18  Jim Meyering  <jim@meyering.net>
26999
27000         * modules/dirfd (License): Change to LGPL.  Most of the code
27001         is already in the public domain.
27002
27003 2005-05-18  Jim Meyering  <jim@meyering.net>
27004
27005         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
27006         Reported by Yoann Vandoorselaere.
27007
27008 2005-05-17  Jim Meyering  <jim@meyering.net>
27009
27010         * m4/fts.m4: New file, from coreutils.
27011
27012 2005-05-17  Jim Meyering  <jim@meyering.net>
27013
27014         * lib/fts.c, lib/fts_.h: New files, from coreutils.
27015
27016 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
27017
27018         Sync from coreutils.
27019         * m4/unlinkdir.m4: New file.
27020
27021 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
27022
27023         Sync from coreutils.
27024         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
27025         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
27026         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
27027         White space changes only.
27028         * lib/makepath.c (make_path): Port to hosts where leading "//" is
27029         special.
27030         * lib/yesno.c: Include getline.h, not ctype.h.
27031         (yesno): Don't remove leading white space; POSIX doesn't allow it.
27032         Use getline to remove arbitrary restriction on response length.
27033
27034 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
27035
27036         * config/srclist-update: Spell out "Street" in FSF postal
27037         mail address; this is the style the FSF seems to prefer.
27038
27039         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
27040         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
27041         this updates FSF postal mail address.
27042
27043         Sync from coreutils.
27044         * modules/unlinkdir: New file.
27045         * modules/yesno (Depends-on): Add getline.
27046         * MODULES.html.sh (File system functions): Add unlinkdir.
27047
27048 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
27049
27050         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
27051         lib/strsep.h:
27052         Change the initial comment to refer to GPL, not LGPL.
27053         gnulib-tool will change it to LGPL as needed.
27054
27055         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
27056         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
27057         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
27058         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
27059         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
27060         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
27061         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
27062         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
27063         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
27064         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
27065         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
27066         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
27067         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
27068         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
27069         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
27070         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
27071         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
27072         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
27073         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
27074         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
27075         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
27076         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
27077         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
27078         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
27079         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
27080         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
27081         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
27082         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
27083         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
27084         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
27085         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
27086         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
27087         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
27088         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
27089         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
27090         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
27091         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
27092         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
27093         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
27094         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
27095         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
27096         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
27097         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
27098         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
27099         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
27100         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
27101         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
27102         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
27103         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
27104         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
27105         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
27106         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
27107         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
27108         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
27109         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
27110         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
27111         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
27112         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
27113         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
27114         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
27115         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
27116         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
27117         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
27118         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
27119         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
27120         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
27121         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
27122         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
27123         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
27124         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
27125         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
27126         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
27127         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
27128         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
27129         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
27130         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
27131         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
27132         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
27133         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
27134         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
27135         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
27136         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
27137         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
27138         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
27139         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
27140         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
27141         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
27142         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
27143         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
27144         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
27145         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
27146         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
27147         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
27148         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
27149         lib/yesno.c, lib/yesno.h:
27150         Update FSF postal mail address.
27151
27152 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
27153
27154         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
27155         tests/test-memmem.c, tests/test-stpncpy.c:
27156         Update FSF postal mail address.
27157
27158 2005-05-13  Bruno Haible  <bruno@clisp.org>
27159
27160         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
27161         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
27162         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
27163         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
27164         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
27165         Add support for 64-bit integers in the MSVC compiler.
27166
27167 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
27168
27169         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
27170
27171 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
27172
27173         * gnulib-tool (func_import): Sort and uniquify recommended includes.
27174
27175 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
27176
27177         * doc/getdate.texi (General date syntax): Don't say that date
27178         date --iso-8601=ns generates acceptable dates; it doesn't yet.
27179         Problem reported by Nic Ferrier.
27180
27181 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27182
27183         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
27184         specified in ai_socktype. Fix invalid ai_protocol
27185         check. ai_protocol is usually set to 0 or depending on
27186         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
27187         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
27188         ai_socktype / ai_protocol in the returned addrinfo structure.
27189
27190 2005-05-10  Simon Josefsson  <jas@extundo.com>
27191
27192         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
27193         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
27194
27195 2005-05-10  Karl Berry  <karl@gnu.org>
27196
27197         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
27198         (from http://www.gnu.org/licenses).
27199         * doc/COPYING.LIB: also rename to COPYING.LESSER.
27200         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
27201         fdl.texi suffices.
27202
27203 2005-05-10  Karl Berry  <karl@gnu.org>
27204
27205         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
27206         (COPYING.DOC): remove.
27207
27208         * config/srclist-update: new FSF address.
27209
27210 2005-05-10  Derek Price  <derek@ximbiot.com>
27211
27212         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
27213         possible.
27214
27215 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27216             Bruno Haible  <bruno@clisp.org>
27217
27218         * modules/inet_ntop: New file.
27219         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
27220         inet_ntop.
27221
27222 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27223             Bruno Haible  <bruno@clisp.org>
27224
27225         * m4/inet_ntop.m4: New file.
27226
27227 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27228             Bruno Haible  <bruno@clisp.org>
27229
27230         * lib/inet_ntop.h: New file.
27231         * lib/inet_ntop.c: New file, from glibc with modifications.
27232
27233 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
27234
27235         * modules/time_r (License): Change to LGPL.
27236         * modules/extensions (License): Change to LGPL.  Actually,
27237         the license is more permissive than that, but currently gnulib-tool
27238         doesn't know how to handle more-permissive licenses.
27239
27240         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
27241         Problem reported by Dave Love.
27242
27243 2005-05-08  Jim Meyering  <jim@meyering.net>
27244
27245         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
27246         blank.
27247
27248 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
27249
27250         * modules/argmatch (Depends-on): Add stdbool.
27251         * modules/backupfile (Depends-on): Likewise.
27252         * modules/chdir-long (Depends-on): Likewise.
27253         * modules/closeout (Depends-on): Likewise.
27254         * modules/cycle-check (Depends-on): Likewise.
27255         * modules/dirname (Depends-on): Likewise.
27256         * modules/fnmatch (Depends-on): Likewise.
27257         * modules/fsusage (Depends-on): Likewise.
27258         * modules/fwriteerror (Depends-on): Likewise.
27259         * modules/getcwd (Depends-on): Likewise.
27260         * modules/getloadavg (Depends-on): Likewise.
27261         * modules/hard-locale (Depends-on): Likewise.
27262         * modules/makepath (Depends-on): Likewise.
27263         * modules/mountlist (Depends-on): Likewise.
27264         * modules/nanosleep (Depends-on): Likewise.
27265         * modules/posixtm (Depends-on): Likewise.
27266         * modules/quotearg (Depends-on): Likewise.
27267         * modules/readtokens (Depends-on): Likewise.
27268         * modules/readtokens0 (Depends-on): Likewise.
27269         * modules/readutmp (Depends-on): Likewise.
27270         * modules/save-cwd (Depends-on): Likewise.
27271         * modules/strftime (Depends-on): Likewise.
27272         * modules/userspec (Depends-on): Likewise.
27273         * modules/utimecmp (Depends-on): Likewise.
27274         * modules/xgetcwd (Depends-on): Likewise.
27275         * modules/xnanosleep (Depends-on): Likewise.
27276         * modules/xstrtod (Depends-on): Likewise.
27277         * modules/yesno (Depends-on): Likewise.
27278
27279 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
27280
27281         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
27282         needless checks.
27283
27284 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
27285
27286         Merge from coreutils.  Among other things,
27287         add bulletproofing for cases where stdin, stdout, or stderr are closed.
27288         * lib/fd-safer.c: New file.
27289         * lib/fcntl-safer.h, open-safer.c: Remove.
27290         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
27291         * lib/dup-safer.c: Include unistd-safer.h first.
27292         Don't include errno.h.
27293         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
27294         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
27295         * lib/file-type.c: Rely on file-type.h change.
27296         * lib/getloadavg.c: Include unistd-safer.h.
27297         (getloadavg): Use safer open.
27298         * lib/getusershell.c: Include "stdio-safer.h".
27299         (getusershell): Use safer fopen.
27300         * lib/long-options.c (long_options): Use NULL rather than 0.
27301         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
27302         'free'.
27303         * lib/modechange.c: Likewise.
27304         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
27305         (MODE_DONE): New constant.
27306         (struct mode_change): Remove 'next' member.
27307         (make_node_op_equals): New function; like the old one of the
27308         same name, except it allocates an array.
27309         (mode_compile, mode_create_from_ref): Use it.
27310         (mode_compile): Allocate result as an array, not a linked list.
27311         Parse octal string ourself, so that we catch mistakes like "+0".
27312         (mode_adjust): Arg is an array, not a linked list.
27313         * lib/modechange.c: Include stat-macros.h, xalloc.h.
27314         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
27315         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
27316         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
27317         Remove.  This is now stat-macros.h's job.
27318         (talloc): Remove.  All callers replaced by xalloc, so that
27319         our invokers don't have to worry about reporting memory failures.
27320         (make_node_op_equals): Remove.
27321         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
27322         New constants.
27323         (struct mode_change): Moved here from modechange.h.
27324         (mode_append_entry): Remove.
27325         (mode_compile): Remove MASKED_OPS arg, since it encouraged
27326         apps to have incorrect behavior.  Use simpler algorithm for head
27327         and tail.  Don't futz with umask; that's now the job of mode_adjust.
27328         Detect more invalid usages rather than having somewhat-random behavior.
27329         Don't insert an "a=" action, as that leads to incorrect behavior.
27330         (mode_compile, mode_create_from_ref): Return NULL on error instead
27331         of an enum, since now there's only one way to have an error.  All
27332         callers changed.
27333         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
27334         at the correct time.  Simplify calculation of "+u" and its ilk.
27335         Don't mishandle "+X".
27336         (mode_free): Remove "register" and localize decls.
27337         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
27338         (struct mode_change): Move to modechange.c; callers don't
27339         need to see this stuff.
27340         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
27341         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
27342         (mode_change, mode_adjust): Reflect the new signatures noted above.
27343         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
27344         that might redefine system include files.
27345         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
27346         (my_usleep): Use NULL rather than (void *) 0.
27347         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
27348         Use siginterrupt to specify that system calls should be interrupted.
27349         (rpl_nanosleep): Move initialization of suspended closer to call of
27350         my_usleep.
27351         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
27352         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
27353         (desirable_utmp_entry): New function.
27354         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
27355         using x2nrealloc, to simplify logic.
27356         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
27357         size calculation.  Do not assume utmp file is a regular file.
27358         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
27359         (READ_UTMP_CHECK_PIDS): New constant.
27360         * lib/save-cwd.c: Include unistd-safer.h.
27361         (save_cwd): Use fd_safer.
27362         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
27363         [!_LIBC] Include "stat-macros.h" instead.
27364         * lib/unistd-safer.h (fd_safer): New decl.
27365
27366 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
27367
27368         * modules/getloadavg (Depends-on): Add unistd-safer.
27369         * modules/getusershell (Depends-on): Add stdio-safer.
27370         * modules/lstat (Depends-on): Remove xalloc.
27371         * modules/mkstemp (Depends-on): Add stat-macros.
27372         * modules/modechange (Depends-on): Remove xstrtol.
27373         Add stat-macros, xalloc.
27374         * modules/save-cwd (Depends-on): Add unistd-safer.
27375         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
27376         * modules/unistd-safer (Files): Add lib/fd-safer.c
27377         (Makefile.am): Remove lib_SOURCES.
27378
27379         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
27380         Remove fcntl-safer; unistd-safer supersedes it.
27381
27382 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
27383
27384         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
27385         AC_HEADER_STAT.
27386         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
27387         (gl_PREREQ_CHOWN): Remove.
27388         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
27389         it.  Don't require AC_HEADER_STAT.
27390         (gl_PREREQ_LSTAT): Remove.
27391         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
27392         Don't require AC_HEADER_STAT.
27393         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
27394         (gl_PREREQ_RMDIR): Remove.
27395         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
27396         mention stat-macros.h or AC_HEADER_STAT, since we'll make
27397         the stat-macros module a prerequisite.
27398         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
27399         * m4/filemode.m4 (gl_FILEMODE): Likewise.
27400         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
27401         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
27402         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
27403         variable names.
27404         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
27405         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
27406         variable prefixes.
27407         * m4/fcntl-safer.m4: Remove.
27408         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
27409         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
27410         Invoke gl_PREREQ_FD_SAFER.
27411         (gl_PREREQ_FD_SAFER): New macro.
27412         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
27413         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
27414         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
27415         Remove duplicate call to AC_LIBOBJ(readutmp).
27416         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
27417
27418         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
27419         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
27420
27421 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
27422
27423         * MODULES.html.sh (Misc): Add byteswap.
27424
27425 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
27426
27427         * modules/getcwd (Depends-on): Add extensions.
27428         * modules/openat (Depends-on): Likewise.
27429
27430 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
27431
27432         * modules/byteswap: New file.
27433
27434 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
27435
27436         * m4/byteswap.m4: New file.
27437
27438 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
27439
27440         * lib/byteswap_.h: New file.
27441
27442 2005-04-25  Karl Berry  <karl@gnu.org>
27443
27444         * m4/gettext.m4: Update from GNU gettext 0.14.4.
27445
27446 2005-04-25  Albert Chin  <china@thewrittenword.com>
27447
27448         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
27449         Toolkit C bug.
27450
27451 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
27452
27453         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
27454         (func_ln_if_changed) Remove forcibly for no error message
27455         in case file does not exist.
27456
27457 2005-04-19  Simon Josefsson  <jas@extundo.com>
27458
27459         * gnulib-tool (Options): Make --symlink mean --symbolic.
27460
27461 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
27462
27463         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
27464
27465 2005-04-16  Simon Josefsson  <jas@extundo.com>
27466
27467         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
27468
27469 2005-04-15  Simon Josefsson  <jas@extundo.com>
27470
27471         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
27472
27473 2005-04-15  Simon Josefsson  <jas@extundo.com>
27474
27475         * gnulib-tool: Rename --symlink to --symbolic.
27476
27477 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
27478
27479         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
27480         symbolic links to files instead of copying/moving.  Add --aux-dir,
27481         specifying directory relative --dir where auxiliary build tools
27482         are placed.
27483
27484 2005-04-14  Bruno Haible  <bruno@clisp.org>
27485
27486         * modules/allocsa (License): Change to LGPL.
27487         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
27488
27489 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
27490
27491         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
27492         that "UTC +1 second" continues to work.  Problem reported
27493         by Dmitry V. Levin.
27494         (relunit_snumber): New rule.
27495         (relunit): Use it.
27496
27497 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
27498
27499         * lib/getdate.y (universal_time_zone_table): New constant.
27500         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
27501         universal_time_zone_table.
27502         (lookup_zone): Prefer universal_time_zone_table to
27503         local_time_zone_table, so that "GMT" time stamps are allowed in
27504         London during the summer.  Problem reported by Ian Abbott.
27505
27506 2005-04-12  Jim Meyering  <jim@meyering.net>
27507
27508         * lib/human.c (humblock): Set *options even when returning due to
27509         xstrtoumax conversion failure.  Thanks to a used-uninitialized
27510         warning from gcc-4.
27511
27512 2005-04-09  Jim Meyering  <jim@meyering.net>
27513
27514         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
27515         -Wuninitialized: initialize tm0.tm_year.
27516
27517 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
27518
27519         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
27520         count, since there's no maximum.  All uses changed.
27521         Add member dsts_seen.
27522         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
27523         not being INT_MAX.
27524         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
27525         Use pc_rels_seen to decide whther a date is absolute.
27526
27527         * lib/getdate.y (number): Don't overwrite year.
27528         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
27529         check.
27530
27531 2005-04-02  Simon Josefsson  <jas@extundo.com>
27532
27533         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
27534         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
27535
27536 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
27537
27538         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
27539         where no absolute path name can be longer than PATH_MAX.
27540
27541 2005-03-27  Jim Meyering  <jim@meyering.net>
27542
27543         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
27544
27545 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
27546
27547         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
27548         "one's complement" -> "ones' complement" in comment, as per Knuth.
27549         "value of type" -> "type or expression" in comment.
27550         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
27551
27552 2005-03-26  Jim Meyering  <jim@meyering.net>
27553
27554         Comment nits.
27555         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
27556         Correct typos: s/or/of/.
27557
27558 2005-03-26  Jim Meyering  <jim@meyering.net>
27559
27560         * modules/check-include-files: Move to ../ and rename to...
27561         * check-module: ...this.
27562
27563 2005-03-25  Jim Meyering  <jim@meyering.net>
27564
27565         * modules/xvasprintf (Files): Add xalloc.h.
27566
27567 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
27568
27569         * modules/gettext (Files): config/config.rpath ->
27570         build-aux/config.rpath
27571         * modules/iconv (Files): Likewise.
27572         Problem reported by Oskar Liljeblad.
27573
27574 2005-03-23  Jim Meyering  <jim@meyering.net>
27575
27576         * modules/check-include-files: New script to check for
27577         missing dependencies, multiple includes, etc.
27578
27579         * modules/c-strtold (Depends-on): Add xalloc.
27580         * modules/c-strtod (Depends-on): Add xalloc.
27581         * modules/hash (Depends-on): Add xalloc.
27582         (Files): Remove lib/xalloc.h.
27583
27584         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
27585         * modules/userspec (Files): Add lib/inttostr.h.
27586
27587 2005-03-23  Jim Meyering  <jim@meyering.net>
27588
27589         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
27590
27591 2005-03-22  Jim Meyering  <jim@meyering.net>
27592
27593         * modules/stat-macros: New module.
27594         * modules/canonicalize, modules/euidaccess, modules/file-type,
27595         * modules/filemode, modules/lchown, modules/makepath,
27596         * modules/rmdir, modules/stat: Depend on new stat-macros module
27597         rather than listing lib/stat-macros.h manually.
27598         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
27599
27600 2005-03-22  Jim Meyering  <jim@meyering.net>
27601
27602         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
27603
27604 2005-03-22  Bruno Haible  <bruno@clisp.org>
27605
27606         * config/srclist.txt: Replace target directory 'config' with
27607         'build-aux'.
27608         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
27609         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
27610         ../build-aux/.
27611
27612 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
27613
27614         * modules/chdir-long (Depends-on): Add mempcpy.
27615
27616         * modules/acl, modules/backupfile, modules/c-strtod,
27617         modules/c-strtold, modules/canon-host, modules/canonicalize,
27618         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
27619         modules/exclude, modules/exitfail, modules/file-type,
27620         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
27621         modules/getdate, modules/getline, modules/getpagesize,
27622         modules/getpass, modules/getugroups, modules/group-member,
27623         modules/hard-locale, modules/hash, modules/human, modules/idcache,
27624         modules/inttostr, modules/long-options, modules/makepath,
27625         modules/md5, modules/memcasecmp, modules/memcoll,
27626         modules/modechange, modules/mountlist, modules/path-concat,
27627         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
27628         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
27629         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
27630         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
27631         modules/strftime, modules/strndup, modules/strverscmp,
27632         modules/timespec, modules/unlocked-io, modules/userspec,
27633         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
27634         modules/yesno:
27635         Remove lib_SOURCES line from Makefile.am section, as this is now
27636         done automatically by the corresponding Autoconf macro.
27637
27638 2005-03-21  Jim Meyering  <jim@meyering.net>
27639
27640         Changes imported from coreutils.
27641
27642         * lib/cycle-check.c: Don't include xalloc.h.
27643
27644         * lib/path-concat.c: Don't include assert.h.
27645         (path_concat): Remove assertion that would have triggered
27646         for ABASE starting with more than one slash.
27647         Reported by Andreas Schwab.
27648
27649         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
27650         properly when ABASE is an absolute file name.
27651         Correct the description of this function.
27652         Include <assert.h>.
27653         Add an assertion and a test driver.
27654         This fixes a bug introduced on 2004-07-02.
27655         Andreas Schwab reported the resulting failure of cp --parents:
27656         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
27657
27658 2005-03-21  Jim Meyering  <jim@meyering.net>
27659
27660         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
27661         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
27662
27663 2005-03-21  Jim Meyering  <jim@meyering.net>
27664         and  Paul Eggert  <eggert@cs.ucla.edu>
27665
27666         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
27667         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
27668         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
27669         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
27670         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
27671         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
27672         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
27673         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
27674         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
27675         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
27676         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
27677         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
27678         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
27679         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
27680         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
27681         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
27682         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
27683         for these modules.
27684
27685 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
27686
27687         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
27688         (which shouldn't happen), generate nothing instead of returning 0
27689         immediately, so that nstrftime (NULL, ...) doesn't return 0.
27690
27691 2005-03-16  Bruno Haible  <bruno@clisp.org>
27692
27693         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
27694         HAVE_LONGLONG_64BIT.
27695
27696 2005-03-16  Bruno Haible  <bruno@clisp.org>
27697
27698         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
27699         HAVE_LONGLONG_64BIT.
27700
27701 2005-03-16  Bruno Haible  <bruno@clisp.org>
27702
27703         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
27704         HAVE_LONGLONG_64BIT.
27705
27706 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
27707
27708         * lib/strftime.c (my_strftime): Prepend space to format so that we can
27709         reliably distinguish strftime failure from empty output on POSIX
27710         hosts.
27711
27712 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
27713
27714         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
27715         (iconv_string): Don't guess a size-zero buffer, as that might cause
27716         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
27717         result would be 'too large', where 'too large' is (heuristically)
27718         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
27719         overflow concerns.  This will prevent some unwanted malloc failures
27720         when the inputs are very large.
27721
27722 2005-03-15  Karl Berry  <karl@gnu.org>
27723
27724         * config/srclist.txt (config.rpath): from gettext.
27725         * config/config.rpath: update.
27726
27727 2005-03-15  Bruno Haible  <bruno@clisp.org>
27728
27729         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
27730         to 'negate'.
27731
27732         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
27733         variable.
27734
27735         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
27736         results.
27737
27738 2005-03-14  Simon Josefsson  <jas@extundo.com>
27739
27740         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
27741         <fx@gnu.org>.
27742
27743 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
27744
27745         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
27746         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
27747         intprops.h.
27748         * lib/strtol.c: Likewise.
27749
27750 2005-03-14  Jim Meyering  <jim@meyering.net>
27751
27752         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
27753         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
27754         to be nonzero so that we (and caller) can detect the difference
27755         between a valid zero-length expansion and an error return, even
27756         when the underlying strftime fails before writing anything into
27757         that location.
27758
27759 2005-03-14  Bruno Haible  <bruno@clisp.org>
27760
27761         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
27762         Update from GNU gettext 0.14.3.
27763
27764 2005-03-10  Jim Meyering  <jim@meyering.net>
27765
27766         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
27767
27768 2005-03-10  Jim Meyering  <jim@meyering.net>
27769
27770         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
27771         so that this module works on systems without fchdir.
27772
27773 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
27774
27775         Factor int-properties macros into a single file, except for
27776         glibc-related files.
27777         * lib/intprops.h: New file.
27778         * lib/getloadavg.c: Include it instead of limits.h.
27779         (INT_STRLEN_BOUND): Remove.
27780         * lib/human.c: Include intprops.h.
27781         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
27782         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
27783         302/1000.
27784         * lib/inttostr.h: Include intprops.h instead of limits.h.
27785         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
27786         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
27787         for consistency with intprops.h.
27788         (time_t_is_integer, twos_complement_arithmetic): Use them.
27789         * lib/sig2str.h: Include <signal.h>, intprops.h.
27790         (INT_STRLEN_BOUND): Remove.
27791         * lib/strftime.c (TYPE_SIGNED): Remove.
27792         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
27793         * lib/strtol.c: Adjust comments to match intprops.h.
27794         * lib/userspec.c: Include intprops.h.
27795         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
27796         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
27797         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
27798         instead of rolling our own expressions.
27799         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
27800
27801         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
27802         instead of int.
27803         (my_strftime): Do not mishandle years close to INT_MAX, by doing
27804         the right thing even if adding 1900 would overflow.  Similarly
27805         for tm_mon + 1 and tm_yday + 1.
27806         Make %Y always equivalent to %C%y, and similarly for %G and %g.
27807         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
27808         (DO_SIGNED_NUMBER): New macro.
27809         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
27810
27811 2005-03-07  Bruno Haible  <bruno@clisp.org>
27812
27813         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
27814
27815 2005-03-07  Bruno Haible  <bruno@clisp.org>
27816
27817         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
27818
27819 2005-03-04  Derek R. Price  <derek@ximbiot.com>
27820
27821         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
27822         (func_import): Only replace files via --import when they have actually
27823         changed.
27824
27825 2005-03-03  Derek R. Price  <derek@ximbiot.com>
27826
27827         * m4/mmap-anon.m4: New file.
27828         * m4/pagealign_alloc.m4: New file.
27829
27830 2005-03-03  Derek R. Price  <derek@ximbiot.com>
27831             Bruno Haible  <bruno@clisp.org>
27832
27833         * modules/pagealign_alloc: New file.
27834         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
27835
27836 2005-03-03  Derek R. Price  <derek@ximbiot.com>
27837             Bruno Haible  <bruno@clisp.org>
27838
27839         * lib/pagealign_alloc.h: New file.
27840         * lib/pagealign_alloc.c: New file.
27841
27842 2005-03-03  Bruno Haible  <bruno@clisp.org>
27843
27844         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
27845         Use an all-permissive copyright notice, recommended by RMS.
27846
27847 2005-03-02  Bruno Haible  <bruno@clisp.org>
27848
27849         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
27850         of AIX, the replacement has to be done only after <string.h> is
27851         included, therefore not in config.h. stpncpy.h does the replacement,
27852         and stpncpy.c uses it.
27853
27854 2005-03-02  Bruno Haible  <bruno@clisp.org>
27855
27856         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
27857         stpncpy.c uses it.
27858
27859 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
27860
27861         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
27862         The workaround isn't strictly needed for POSIX conformance, and
27863         it's too much of a pain to configure and maintain.  We'll ask
27864         people to fix their kernels instead.
27865         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
27866         (NANOSLEEP_BUG_WORKAROUND): Remove.
27867         (xnanosleep): Remove the workaround.
27868
27869 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
27870
27871         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
27872         Reported by Derek Price.
27873         (Include): Add "timespec.h".
27874
27875         * modules/xnanosleep (Depends-on): Remove gethrxtime.
27876
27877 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
27878
27879         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
27880         to detect nanosleep bug.
27881
27882 2005-03-01  Bruno Haible  <bruno@clisp.org>
27883
27884         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
27885
27886 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
27887
27888         * modules/gethrxtime: New file.
27889         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
27890         (Depends-on): Add gethrxtime.
27891         (configure.ac): Add gl_XNANOSLEEP.
27892         (Makefile.am): Remove lib_SOURCES line.
27893
27894 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
27895
27896         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
27897         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
27898
27899 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
27900
27901         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
27902         * lib/timespec.h (gettime): Return void, since it always
27903         succeeds now.  All uses changed.
27904         * lib/gettime.c (gettime) Likewise.
27905         [HAVE_NANOTIME]: Prefer nanotime.
27906         Assume gettimeofday succeeds, as POSIX requires.
27907         Assime time () succeeds, since other code already does.
27908         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
27909         (timespec_subtract): Remove.
27910         (NANOSLEEP_BUG_WORKAROUND): New constant.
27911         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
27912         things considerably.  Use it only on GNU/Linux hosts, since the
27913         workaround shouldn't be needed elsewhere.
27914
27915 2005-02-24  Bruno Haible  <bruno@clisp.org>
27916
27917         * modules/gettext (Files): Add m4/glibc2.m4.
27918
27919 2005-02-24  Bruno Haible  <bruno@clisp.org>
27920
27921         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
27922         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
27923         * m4/progtest.m4:
27924         Update from GNU gettext 0.14.2.
27925         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
27926
27927 2005-02-24  Bruno Haible  <bruno@clisp.org>
27928
27929         * lib/localcharset.c: Update from GNU gettext 0.14.2.
27930         * lib/config.charset: Update from GNU gettext 0.14.2.
27931
27932 2005-02-24  Bruno Haible  <bruno@clisp.org>
27933
27934         * lib/gettext.h: Update from GNU gettext 0.14.2.
27935
27936 2005-02-23  Simon Josefsson  <jas@extundo.com>
27937
27938         * m4/iconvme.m4: New file.
27939
27940 2005-02-23  Jim Meyering  <jim@meyering.net>
27941
27942         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
27943         change.
27944         Thanks to Bruno Haible for catching it.
27945
27946 2005-02-22  Simon Josefsson  <jas@extundo.com>
27947
27948         * modules/iconvme: New file.
27949
27950         * MODULES.html.sh: Add iconvme.
27951
27952 2005-02-22  Simon Josefsson  <jas@extundo.com>
27953
27954         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
27955
27956 2005-02-22  Simon Josefsson  <jas@extundo.com>
27957
27958         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
27959
27960 2005-02-22  Jim Meyering  <jim@meyering.net>
27961
27962         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
27963         s/ifndef/ifdef/.
27964
27965 2005-02-20  Neil Conway  <neilc@samurai.com>
27966
27967         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
27968         returned by OSX/Darwin if the specified buffer is not large
27969         enough for the hostname.
27970
27971 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
27972
27973         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
27974         pass it to _help, otherwise the latter coredumps trying to
27975         dereference state.root_argp.
27976
27977 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
27978
27979         * modules/chdir-long (Depends-on): Add memrchr.
27980         * modules/memrchr (Files): Add lib/memrchr.h.
27981         (Include): "memrchr.h".
27982
27983 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
27984
27985         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
27986
27987 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
27988
27989         * lib/memrchr.h: New file.
27990         * lib/chdir-long.c: Include it.
27991         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
27992         Don't bother including stddef.h.
27993
27994 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
27995
27996         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
27997         inclusion.
27998         Include <sys/types.h>, for dev_t.
27999         (ME_DUMMY, ME_REMOTE): Move from here....
28000         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
28001         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
28002         Dmitry V. Levin.
28003         Include mountlist.h first, to test the interface.
28004
28005 2005-01-29  Bruno Haible  <bruno@clisp.org>
28006
28007         * lib/progname.c (program_name): Initialize.
28008         Needed when linking statically on MacOS X.
28009
28010 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
28011
28012         Sync from coreutils.
28013         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
28014         (Depends-on): Add c-strtod.
28015         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
28016
28017 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
28018
28019         Sync from coreutils.
28020         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
28021
28022         Remove files that are specific to coreutils.
28023         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
28024
28025 2005-01-28  Bruno Haible  <bruno@clisp.org>
28026
28027         * modules/javacomp: New file.
28028         * MODULES.html.sh (Java): Add javacomp.
28029
28030 2005-01-28  Bruno Haible  <bruno@clisp.org>
28031
28032         * m4/javacomp.m4: New file, from GNU gettext.
28033
28034 2005-01-28  Bruno Haible  <bruno@clisp.org>
28035
28036         * lib/javacomp.sh.in: New file, from GNU gettext.
28037         * lib/javacomp.h: New file, from GNU gettext.
28038         * lib/javacomp.c: New file, from GNU gettext.
28039
28040 2005-01-26  Simon Josefsson  <jas@extundo.com>
28041
28042         * lib/gai_strerror.c: Use GPL in header.
28043
28044 2005-01-26  Bruno Haible  <bruno@clisp.org>
28045
28046         * modules/javaexec: New file.
28047         * MODULES.html.sh (Java): Add javaexec.
28048
28049 2005-01-26  Bruno Haible  <bruno@clisp.org>
28050
28051         * m4/javaexec.m4: New file, from GNU gettext.
28052
28053 2005-01-26  Bruno Haible  <bruno@clisp.org>
28054
28055         * lib/javaexec.sh.in: New file, from GNU gettext.
28056         * lib/javaexec.h: New file, from GNU gettext.
28057         * lib/javaexec.c: New file, from GNU gettext.
28058
28059 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
28060
28061         * modules/lchown (Depends-on): Remove lchown.h
28062
28063 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
28064
28065         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
28066         must be defined if the header file was not found, in order
28067         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
28068
28069 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
28070
28071         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
28072         initializers for struct pentry_state.
28073         (__argp_error): Check return value of __asprintf
28074         (__argp_failure): Translate error message
28075
28076         * lib/argp-parse.c: Removed braces around the expansion of N_()
28077
28078 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
28079
28080         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
28081         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
28082         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
28083         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
28084         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
28085         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
28086         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
28087         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
28088         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
28089         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
28090         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
28091         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
28092         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
28093         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
28094         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
28095         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
28096         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
28097         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
28098         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
28099         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
28100         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
28101         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
28102         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
28103         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
28104         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
28105         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
28106         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
28107         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
28108         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
28109         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
28110         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
28111         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
28112         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
28113         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
28114         xstrtol.m4, xstrtoumax.m4, yesno.m4:
28115         Use an all-permissive copyright notice, recommended by RMS.
28116
28117 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
28118
28119         * modules/chdir-long (Depends-on): Remove mempcpy.
28120
28121 2005-01-21  Jim Meyering  <jim@meyering.net>
28122
28123         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
28124         same value as for Solaris 9.
28125
28126         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
28127         component length.  This included changing the parameter to be
28128         of type `char *' rather than `char const *'.
28129         * lib/chdir-long.h (chdir_long): Update prototype.
28130
28131         * lib/openat.c (fdopendir, fstatat): New functions.
28132         * lib/openat.h: Include headers required for use of DIR and struct
28133         stat.
28134         [AT_SYMLINK_NOFOLLOW]: Define.
28135         (fdopendir, fstatat): Add prototypes.
28136
28137 2005-01-21  Bruno Haible  <bruno@clisp.org>
28138
28139         * modules/classpath: New file.
28140         * MODULES.html.sh (Java): Add classpath.
28141
28142 2005-01-21  Bruno Haible  <bruno@clisp.org>
28143
28144         * lib/classpath.h: New file, from GNU gettext.
28145         * lib/classpath.c: New file, from GNU gettext.
28146
28147 2005-01-20  Simon Josefsson  <jas@extundo.com>
28148
28149         * modules/version-etc-fsf: New file.
28150
28151 2005-01-20  Simon Josefsson  <jas@extundo.com>
28152
28153         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
28154         * lib/version-etc.c: Remove version_etc_copyright.
28155         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
28156         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
28157
28158 2005-01-20  Simon Josefsson  <jas@extundo.com>
28159
28160         * lib/base64.h (isbase64): Add.
28161
28162         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
28163         using a unsigned prototype, don't inline.
28164         (base64_decode): Use it.
28165
28166 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
28167
28168         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
28169         it.
28170
28171 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
28172
28173         * lib/save-cwd.c (save_cwd): Remove code to support the case
28174         where fchdir is missing or flaky.
28175
28176 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
28177
28178         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
28179
28180 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
28181
28182         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
28183         AC_LIBSOURCES now does this.
28184         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
28185         with new ullong_max module.
28186
28187 2005-01-19  Bruno Haible  <bruno@clisp.org>
28188
28189         * modules/sh-quote: New file.
28190         * MODULES.html.sh (Executing programs): Add sh-quote.
28191
28192 2005-01-19  Bruno Haible  <bruno@clisp.org>
28193
28194         * lib/sh-quote.h: New file, from GNU gettext.
28195         * lib/sh-quote.c: New file, from GNU gettext.
28196
28197 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
28198
28199         Merge from coreutils.
28200         * m4/ullong_max.m4: New file.
28201         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
28202         (gl_MACROS): Assume localeconv exists.
28203
28204 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
28205
28206         Merge changes from coreutils, as described below in several
28207         changelogs dated today.
28208
28209         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
28210         (O_DIRECTORY): Remove; not needed here, since "." must be
28211         a directory.  All uses removed.
28212         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
28213         universal on Suns, and we also need to test for IRIX.
28214         Revamp code to use 'if' rather than '#if'.
28215         Avoid unnecessary comparison of cwd->desc to 0.
28216
28217         * lib/utimens.c (futimens): Robustify the previous patch, by checking
28218         for known valid error numbers rather than observed invalid ones.
28219
28220 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
28221
28222         * modules/ullong_max: New file.
28223
28224         * modules/chdir-long, modules/openat: New files.
28225         * modules/save-cwd (Depends-on): Depend on chdir-long.
28226         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
28227
28228 2005-01-18  Jim Meyering  <jim@meyering.net>
28229
28230         Merge from coreutils.
28231         * m4/chdir-long.m4, m4/openat.m4: New files.
28232         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
28233         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
28234         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
28235         is sane and DOES follow symlinks.  Besides, testing 20 different
28236         systems found no broken chown implementations.
28237         Prompted by a change in rsync's copy of this macro.
28238         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
28239
28240         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
28241
28242         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
28243         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
28244         NULL-means-set-to-current-time semantics.
28245         Remove temporary file immediately, rather than waiting
28246         for configure's at-exit trap code to do it.
28247
28248 2005-01-18  Jim Meyering  <jim@meyering.net>
28249
28250         * lib/version-etc.c (version_etc_copyright): Update copyright date.
28251
28252         * lib/utimens.c (futimens): Account for the fact that futimes
28253         can also fail with errno == ENOSYS or errno == ENOENT.
28254         Patch from Dmitry V. Levin.
28255
28256         Change the name of the robust chdir function from chdir to chdir_long.
28257         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
28258         (restore_cwd): Use chdir_long, not chdir.
28259         * lib/chdir-long.c: Renamed from chdir.c.
28260         * lib/chdir-long.h: Renamed from chdir.h.
28261         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
28262         Hurd.
28263
28264 2005-01-18  Bruno Haible  <bruno@clisp.org>
28265
28266         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
28267         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
28268         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
28269         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
28270         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
28271         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
28272         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
28273         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
28274         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
28275         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
28276         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
28277         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
28278         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
28279         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
28280         Use an all-permissive copyright notice, recommended by RMS.
28281
28282 2005-01-18  Bob Proulx  <bob@proulx.com>
28283
28284         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
28285         simplify offsetof() macro construct to avoid compile failure with
28286         native HP-UX 11.0 ANSI C compiler.
28287
28288 2005-01-17  Bruno Haible  <bruno@clisp.org>
28289
28290         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
28291         redundant because stpncpy.m4 takes care of it.
28292
28293 2005-01-17  Bruno Haible  <bruno@clisp.org>
28294
28295         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
28296
28297 2005-01-17  Bruno Haible  <bruno@clisp.org>
28298
28299         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
28300         used.
28301
28302 2005-01-17  Bruno Haible  <bruno@clisp.org>
28303
28304         * lib/fwriteerror.h (fwriteerror): Change specification to include
28305         fclose.
28306         * lib/fwriteerror.c: Include <stdbool.h>.
28307         (fwriteerror): At the end, close the file stream. Record whether
28308         stdout was already closed.
28309
28310 2005-01-17  Bruno Haible  <bruno@clisp.org>
28311
28312         * lib/execute.c (environ): Declare if needed.
28313         * lib/pipe.c (environ): Likewise.
28314         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
28315
28316 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
28317
28318         * modules/argp: Depend on vsnprintf
28319
28320 2005-01-10  Jim Meyering  <jim@meyering.net>
28321
28322         * modules/closeout (Depends-on): Add atexit.
28323
28324 2005-01-06  Bruno Haible  <bruno@clisp.org>
28325
28326         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
28327
28328 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
28329
28330         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
28331         definitions to be after all include files, to avoid collisions.
28332         Problem reported by Bob Proulx.
28333
28334 2005-01-04  Jim Meyering  <jim@meyering.net>
28335
28336         Changes imported from coreutils.
28337         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
28338         as the mkstemp template, use a temporary directory and an
28339         8.3-friendly template to avoid trouble on systems like DJGPP.
28340         Reported by Juan M. Guerrero via Stepan Kasal.
28341         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
28342         close. Remove the temporary directory right away, rather than waiting
28343         for configure's at-exit trap code to do it.
28344         Suggestion from Stepan Kasal.
28345
28346 2005-01-01  Simon Josefsson  <jas@extundo.com>
28347
28348         * gnulib-tool: Print #include directives when --import'ing.
28349
28350 2004-12-28  Simon Josefsson  <jas@extundo.com>
28351
28352         * tests/test-base64.c: Include required header files.  Remove
28353         unused variables.
28354
28355 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
28356
28357         * modules/error (Depends-on): Remove gettext.
28358
28359 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
28360
28361         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
28362         not needed.  This removes a dependency on the gettext module.
28363         [defined _LIBC]: Do not include <libintl.h>; not needed.
28364
28365 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
28366
28367         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
28368         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
28369
28370 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
28371
28372         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
28373         HAVE_DECL_STRTOLD.
28374
28375 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
28376
28377         * modules/getdate (Depends-on): Remove alloca-opt.
28378
28379 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
28380
28381         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
28382
28383 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
28384
28385         * lib/argp-parse.c: Include <stddef.h>.
28386         (alignof, alignto): New macros.
28387         (parser_init): Don't assume that void * is aligned sufficiently
28388         for struct option.
28389
28390         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
28391         need to extend the stack.
28392         (YYINITDEPTH): New macro, so that the initial stack isn't overly
28393         large.
28394
28395 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
28396
28397         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
28398
28399 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
28400
28401         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
28402         (2004-10-24) change.  Apparently this was a false alarm.
28403
28404         * modules/getdate: Depend on alloca-opt, not alloca.
28405
28406 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
28407
28408         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
28409         Remove now-obsolete comment about AIX.
28410         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
28411         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
28412         (YYMAXDEPTH): New macro.
28413
28414 2004-12-18  Simon Josefsson  <jas@extundo.com>
28415
28416         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
28417
28418 2004-12-18  Bruno Haible  <bruno@clisp.org>
28419
28420         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
28421
28422 2004-12-18  Bruno Haible  <bruno@clisp.org>
28423
28424         * lib/fatal-signal.c (fatal_signals): Make non-const.
28425         (init_fatal_signals): New function.
28426         (uninstall_handlers, install_handlers): Ignore signals that were set to
28427         SIG_IGN.
28428         (at_fatal_signal): Call init_fatal_signals.
28429         (init_fatal_signal_set): Likewise. Ignore signals that were set to
28430         SIG_IGN.
28431         Reported by Paul Eggert.
28432
28433 2004-12-18  Bruno Haible  <bruno@clisp.org>
28434
28435         * doc/alloca.texi: New file.
28436         * doc/alloca-opt.texi: New file.
28437
28438 2004-12-17  Jim Meyering  <jim@meyering.net>
28439
28440         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
28441         Otherwise, install-sh could exit with improper exit status when
28442         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
28443
28444 2004-12-16  Simon Josefsson  <jas@extundo.com>
28445
28446         * tests/test-base64.c: Add license.
28447
28448 2004-12-15  Stepan Kasal  <address@hidden>
28449
28450         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
28451
28452 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
28453
28454         * modules/getcwd (Files): Add m4/d-ino.m4.
28455         Suggested by Mark D. Baushke.
28456
28457 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
28458
28459         * lib/getdate.y (textint): New member "negative".
28460         (time_zone_hhmm): New function.
28461         Expect 14 shift-reduce conflicts, not 13.
28462         (o_colon_minutes): New rule.
28463         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
28464         (yylex): Set the "negative" member of signed numbers.
28465
28466 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
28467
28468         * doc/getdate.texi (Time of day items, Time zone items):
28469         Describe new formats +00:00, UTC+00:00.
28470
28471 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
28472
28473         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
28474         spurious "-l"s.  Problem reported by Stepan Kasal.
28475
28476 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
28477
28478         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
28479         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
28480
28481 2004-12-04  Simon Josefsson  <jas@extundo.com>
28482
28483         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
28484         Vandoorselaere <yoann@prelude-ids.org>.
28485
28486 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
28487
28488         Changes imported from coreutils.
28489         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
28490         exist.
28491         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
28492
28493 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
28494
28495         Changes imported from coreutils.
28496         * lib/hard-locale.c: Assume <locale.h> exists.
28497         Include "strdup.h".
28498         (GLIBC_VERSION): New macro.
28499         (hard_locale): Assume setlocale exists.
28500         Rewrite to avoid #ifdef.
28501         Use strdup rather than malloc + strcpy.
28502         * lib/human.c: Assume <locale.h> exists.
28503         (human_readable): Assume localeconv exists.
28504
28505 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
28506
28507         * modules/hard-locale (Depends-on): Add strdup.
28508
28509 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
28510
28511         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
28512         convert T2, not T.  (Imported from libc.)
28513
28514 2004-11-30  Simon Josefsson  <jas@extundo.com>
28515
28516         * modules/restrict (License): Change to LGPL.
28517
28518 2004-11-30  Simon Josefsson  <jas@extundo.com>
28519
28520         * m4/restrict.m4: Add copyright and copying conditions.
28521
28522 2004-11-30  Simon Josefsson  <jas@extundo.com>
28523
28524         * m4/base64.m4: New file.
28525
28526 2004-11-30  Simon Josefsson  <jas@extundo.com>
28527
28528         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
28529         base64.
28530
28531         * tests/test-base64.c: New file.
28532
28533         * modules/base64: New file.
28534
28535 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
28536
28537         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
28538         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
28539
28540         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
28541
28542 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
28543
28544         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
28545         (__getcwd.c): Don't restore errno; glibc doesn't.
28546         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
28547         first, falling back to our code only if its results look suspicious.
28548         Ensure that the resulting buffer is only as large as necessary.
28549
28550         * lib/readutmp.c: Include readutmp.h first.
28551         Include <errno.h>, since readutmp.h no longer does that.
28552         * lib/readutmp.h: Don't include <errno.h>,
28553         <sys/param.h>, <time.h>; not needed to establish interface.
28554         (errno): Remove decl.
28555         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
28556         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
28557         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
28558
28559 2004-11-28  Simon Josefsson  <jas@extundo.com>
28560
28561         * lib/base64.h, base64.c: New file.
28562
28563 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
28564
28565         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
28566
28567 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
28568
28569         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
28570         (Depends-on): Remove pathmax, same.  Add mempcpy.
28571         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
28572         (Makefile.am): Append getcwd.h to lib_SOURCES.
28573         (Include): Add getcwd.h.
28574         (Maintainer): Change from Jim Meyering to "all, glibc",
28575         since getdate now uses intended-for-glibc code.
28576         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
28577         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
28578
28579 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
28580
28581         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
28582         HP's ANSI C compiler.
28583         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
28584         Declaring int functions causes warnings on some modern systems and
28585         shouldn't be needed to compile on ancient ones.
28586         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
28587         defined.
28588
28589         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
28590         with the following changes.
28591         (__set_errno): Parenthesize properly.
28592         Include <stdbool.h>.
28593         (MIN, MAX, MATCHING_INO): New macros.
28594         (__getcwd): Define with prototype, not K&R form.
28595         Use heuristics to allocate default buffer on stack if possible.
28596         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
28597         behavior, and to avoid the PATH_MAX limit when computing
28598         ../../../../...
28599         Use MATCHING_INO to compare inode number to file.
28600         Check for arithmetic overflow in size calculations.
28601         Fix bug in reallocation of dot array that caused getcwd to fail
28602         on directories nested deeper than 75.
28603         Be more careful about saving errno on error.
28604         Do not use realloc; use only free+malloc, as this is a bit
28605         more flexible and avoids a needless copy operation.
28606         Do not inspect st_dev and st_ino for symbolic links; POSIX
28607         doesn't specify the latter.
28608         Check for closedir errors.
28609         Avoid needless casts.
28610         Use "#ifdef weak_alias" around weak_alias, to be like other
28611         glibc code.
28612         The following changes to getcwd.c have effect only when used in
28613         gnulib; they have no effect inside glibc proper.
28614         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
28615         as alloca isn't used.
28616         (alloca, __alloca): Likewise.
28617         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
28618         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
28619         unconditionally, as gnulib assumes C89 or better.
28620         Do not include <sys/param.h>.
28621         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
28622         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
28623         better.
28624         (NULL) [!defined NULL]: Remove; we assume C89 or better.
28625         Include <dirent.h> in a way that is compatible with modern Autoconf.
28626         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
28627         New macros, if not already defined.
28628         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
28629         Use "_LIBC", not "defined _LIBC", for consistency.
28630         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
28631         a mempcpy module.
28632         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
28633         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
28634         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
28635         credit only to Jim Meyering and adjust the copyright dates.
28636         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
28637         <stdlib.h>, <unistd.h>, "pathmax.h".
28638         Instead, include "xgetcwd.h" (first) and "getcwd.h".
28639         (INITIAL_BUFFER_SIZE): Remove.
28640         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
28641
28642 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
28643
28644         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
28645         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
28646         Use the _ONCE methods, for efficiency.
28647         Check for fcntl.h.  In test program, include <errno.h>
28648         and <fcntl.h> if available.  Remove old K&R cruft from
28649         test program.  Check for common errors in GNU/Linux,
28650         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
28651         don't do AC_LIBOBJ, as that's getcwd.m4's job.
28652         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
28653         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
28654         name accordingly.
28655         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
28656         accommodate new getcwd.c.
28657         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
28658         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
28659         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
28660         that's all we need now.
28661
28662 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
28663
28664         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
28665         argp-parse.c depends on getopt internals, that means we should
28666         always use our getopt, to be on the safe side.
28667         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
28668         order not to spoil the result of an eventual previous invocation
28669         of gl_GETOPT_SUBSTITUTE.
28670
28671 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
28672
28673         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
28674         redefinition warnings. To avoid them, include the defines
28675         in `#if !defined __need_getopt ... #endif'. The only place
28676         where __getopt_argv_const is used is in definitions
28677         of getopt_long and getopt_long_only below, which are as well
28678         protected by `#ifndef __need_getopt'.
28679         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
28680         __need_getopt after including <stdio.h> and <unistd.h> These
28681         headers might have defined it.
28682
28683 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
28684
28685         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
28686
28687 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
28688
28689         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
28690         (futimens): New function, which uses futimes if available.
28691         (futimens, utimens): Support timespec==NULL, with same semantics
28692         as utime and utimens.
28693         * lib/utimens.h (futimens): New decl.
28694
28695 2004-11-23  Jim Meyering  <jim@meyering.net>
28696
28697         * lib/getopt_.h: Remove trailing blanks.
28698
28699 2004-11-23  Jim Meyering  <jim@meyering.net>
28700
28701         * lib/__fpending.c: Add comment.
28702
28703 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
28704
28705         * modules/canonicalize (Depends-on): Add xreadlink.
28706         Problem reported by James Youngman.
28707
28708 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
28709
28710         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
28711         New macros.
28712         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
28713         optopt): Use them instead of invoking ## directly; otherwise, the
28714         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
28715
28716 2004-11-19  Bruno Haible  <bruno@clisp.org>
28717
28718         * lib/strtok_r.c: Move comments from here...
28719         * lib/strtok_r.h: ... to here.
28720
28721 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
28722
28723         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
28724         implementations that mishandle size_t overflow.
28725
28726 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
28727
28728         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
28729         might fail.  Problem reported by Yoann Vandoorselaere.
28730         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
28731         implementations that mishandle size_t overflow.
28732
28733 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
28734
28735         * modules/canon-host (Depends-on): Add strdup.
28736
28737 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
28738
28739         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
28740
28741 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
28742
28743         * lib/canon-host.c: Include "strdup.h".
28744         (canon_host): Use getaddrinfo if available, so that IPv6 works.
28745         Use strdup instead of malloc/strcpy to duplicate strings.
28746
28747         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
28748         (human_space_before_unit): New constant.
28749         * lib/human.c (human_readable): Support it.
28750
28751         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
28752         (xgetcwd): Set errno correctly when failing.
28753         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
28754         the failure is actually due to a PATH_MAX problem.
28755
28756         Further getopt changes to make it more likely that glibc will
28757         buy the changes back.
28758         * lib/getopt.c (POSIXLY_CORRECT): New constant.
28759         (getopt): Use it, so to preserve glibc semantic
28760         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
28761         when compiling for libc.
28762         * lib/getopt_.h (__getopt_argv_const): Bring it back.
28763         (getopt_long, getopt_long_only): Use it.
28764
28765         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
28766         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
28767         (getopt): Argv is now char * const *, as per standard.
28768         (_getopt_internal_r, _getopt_internal): Argv is now char **,
28769         not char *__getopt_argv_const *.
28770         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
28771         _getopt_long_only_r): Likewise.
28772         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
28773         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
28774         _getopt_long_r, _getopt_long_only_r): Likewise.
28775         * lib/getopt_.h (__getopt_argv_const): Remove.
28776         (getopt): Argv is now char * const *, as per standard.
28777
28778         * lib/getdate.y (tORDINAL): New token.
28779         (day, relunit): Allow it for relative times.
28780         (relative_time_table): Use tORDINAL for ordinals.
28781
28782 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
28783
28784         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
28785         Document that "second" isn't allowed as an ordinal number.
28786
28787 2004-11-16  Jim Meyering  <jim@meyering.net>
28788
28789         * modules/closeout (Depends-on): Add fpending.
28790
28791 2004-11-15  Jim Meyering  <jim@meyering.net>
28792
28793         * lib/closeout.c: Include "__fpending.h" once again.
28794         Include <stdbool.h>.
28795         (close_stdout): Don't fail just because stdout was closed initially,
28796         since some programs don't write to stdout in the normal course of
28797         operation (other than --version and --help), and we don't want this
28798         function to make e.g. `touch file >&-' fail.
28799         But do fail if it was closed and someone has tried to write to it.
28800         E.g., `printf foo >&-' must fail.
28801
28802 2004-11-13  Jim Meyering  <jim@meyering.net>
28803
28804         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
28805
28806 2004-11-12  Simon Josefsson  <jas@extundo.com>
28807
28808         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
28809         small doc fix is still pending.
28810
28811 2004-11-11  Simon Josefsson  <jas@extundo.com>
28812
28813         * modules/strtok_r: New file.
28814
28815         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
28816         strtok_r.
28817
28818 2004-11-11  Simon Josefsson  <jas@extundo.com>
28819
28820         * m4/strtok_r.m4: New file.
28821
28822         * m4/getopt.m4: Replace opterr.
28823
28824 2004-11-11  Simon Josefsson  <jas@extundo.com>
28825
28826         * lib/strtok_r.h, strtok_r.c: New file.
28827
28828 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
28829
28830         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
28831         of replacing opterr, getopt, etc.  This should handle the
28832         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
28833
28834 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
28835
28836         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
28837         we can stop lying to compilers about the constness of argv when we
28838         are compiled outside glibc.
28839         (getopt, getopt_long, getopt_long_only): Use it.
28840         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
28841         _getopt_internal, getopt): Likewise.
28842         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
28843         _getopt_long_only_r): Likewise.
28844         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
28845         _getopt_long_r, _getopt_long_only_r): Likewise.
28846
28847         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
28848         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
28849         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
28850         the other external symbols.
28851         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
28852         declaration, since the above renaming now works around collisions.
28853
28854 2004-11-11  Jim Meyering  <jim@meyering.net>
28855
28856         * lib/linebreak.c: Remove trailing blanks.
28857         * lib/alloca_.h: Likewise.
28858         * lib/acosl.c: Likewise.
28859         * lib/euidaccess.c: Likewise.
28860         * lib/allocsa.h: Likewise.
28861
28862 2004-11-10  Simon Josefsson  <jas@extundo.com>
28863
28864         * m4/getaddrinfo.m4: New file.
28865
28866 2004-11-10  Simon Josefsson  <jas@extundo.com>
28867
28868         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
28869
28870 2004-11-10  Simon Josefsson  <jas@extundo.com>
28871
28872         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
28873         getaddrinfo.
28874
28875         * modules/getaddrinfo: New file.
28876
28877 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
28878
28879         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
28880
28881 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
28882
28883         * lib/mktime.c (SHR): New macro, which is a portable
28884         substitute for >> that should work even on Crays.
28885         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
28886         Problem reported by Mark D. Baushke in
28887         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
28888         * lib/getdate.y (SHR): Likewise.
28889         (tm_diff): Use it.
28890         * lib/strftime.c (SHR): Likewise.
28891         (tm_diff): Use it.
28892         * lib/quotearg.c (struct quoting_options): Use unsigned int for
28893         quote_these_too, so that right shifts are well defined.  All uses
28894         changed.
28895
28896 2004-11-10  Jim Meyering  <jim@meyering.net>
28897
28898         Ensure that no close failure goes unreported.
28899         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
28900         return early when it seems there's nothing to flush.
28901         Don't include __fpending.h.
28902
28903 2004-11-10  Jim Meyering  <jim@meyering.net>
28904
28905         * modules/closeout (Depends-on): Remove fpending.
28906
28907 2004-11-10  Jim Meyering  <jim@meyering.net>
28908
28909         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
28910
28911 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
28912
28913         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
28914         gl_FUNC_STRFTIME.
28915         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
28916         and AC_REQUIRE when possible, to avoid duplicate checks.
28917         Check for <wchar.h>.
28918
28919 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
28920
28921         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
28922
28923 2004-11-09  Bruno Haible  <bruno@clisp.org>
28924
28925         * m4/sockpfaf.m4: New file.
28926
28927 2004-11-05  Bruno Haible  <bruno@clisp.org>
28928
28929         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
28930         Reported by Mark D. Baushke <mdb@cvshome.org>.
28931
28932 2004-11-04  Bruno Haible  <bruno@clisp.org>
28933
28934         2004-09-11  Bruno Haible  <bruno@clisp.org>
28935                 * allocsa.valgrind: New file.
28936         2004-02-06  Bruno Haible  <bruno@clisp.org>
28937                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
28938                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
28939                 Reported by Christopher Seip <chris.seip@hp.com>.
28940
28941 2004-11-04  Bruno Haible  <bruno@clisp.org>
28942
28943         * modules/allocsa (Files): Add lib/allocsa.valgrind.
28944         (Makefile.am): Distribute it.
28945
28946 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
28947
28948         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
28949         with errno == ERANGE if the buffer is too small.
28950         Problem reported by Mark D. Baushke.
28951
28952 2004-11-03  Albert Chin  <china@thewrittenword.com>
28953             Paul Eggert  <eggert@cs.ucla.edu>
28954
28955         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
28956         equivalent, substitute $ac_type for equivalent type rather than
28957         blindly using uint32_t *always* which won't work if uint32_t is not
28958         available.  Define _UINT32_T to work around typedef of uint32_t if
28959         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
28960         2.5.1.
28961
28962 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
28963
28964         * m4/jm-macros.m4: Sync from coreutils.
28965         (gl_MACROS): Check for mbrlen, for pathchk.
28966         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
28967
28968 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
28969
28970         * lib/xreadlink.c (MAXSIZE): New macro.
28971         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
28972         size does not exceed MAXSIZE.  Avoid cast.
28973         As suggested by Mark D. Baushke in
28974         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
28975         if readlink fails with buffer size just under MAXSIZE, try again
28976         with MAXSIZE.
28977
28978 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
28979
28980         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
28981
28982 2004-11-02  Derek R. Price  <derek@ximbiot.com>
28983         and  Paul Eggert  <eggert@cs.ucla.edu>
28984
28985         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
28986         (get_date): Overparenthesize to avoid GCC warning.
28987
28988 2004-11-02  Bruno Haible  <bruno@clisp.org>
28989
28990         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
28991         returns void.
28992
28993 2004-11-02  Bruno Haible  <bruno@clisp.org>
28994
28995         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
28996         function returns void.
28997
28998 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
28999
29000         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
29001         fflush_unlocked, flockfile, funlockfile, funlockfile,
29002         fputs_unlocked, putc_unlocked.
29003
29004 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
29005
29006         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
29007         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
29008         already declared.
29009
29010 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
29011
29012         * modules/getdate (Files): Add doc/getdate.texi.
29013         (Depends-on): Add setenv, xalloc.
29014
29015 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
29016
29017         * lib/getdate.y: Add support for TZ="foo" within a date string.
29018         Fix some bugs near time_t boundaries.  Reject dates with
29019         out-of-range components, e.g., "Sept 31".
29020         Include <stdlib.h>, "setenv.h", "xalloc.h".
29021         (ISDIGIT_LOCALE): Remove; unused.
29022         Note that the TZ and time functions used here are not reentrant.
29023         (mktime_ok, get_tz): New functions.
29024         (TZBUFSIZE): New constant.
29025         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
29026         This requires that we sometimes generate our own TZ="XXX..." setting.
29027
29028 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
29029
29030         * doc/getdate.texi: New file, from coreutils with modifications for
29031         the new TZ parsing.
29032
29033 2004-10-27  Derek R. Price  <derek@ximbiot.com>
29034
29035         * lib/mktime.c (not_equal_tm): Remove redundant check.
29036
29037 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
29038
29039         * modules/regex (lib_SOURCES): Add regex.c.
29040         Reported by James Youngman in
29041         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
29042
29043 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
29044
29045         * lib/getdate.y: Use Bison 1.875 features, and some minor
29046         code cleanups.  This change does not affect semantics.
29047         Don't include <stdlib.h>; no longer needed.
29048         Don't include unlocked-io.h; only the "#if TEST" code uses
29049         stdio, and performance isn't crucial there.
29050         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
29051         Bison 1.875 features as described below.
29052         All uses of "PC." replaced by "pc->".
29053         (YYSTYPE): Add a forward declaration.
29054         (yylex, yyerror): Use full prototypes in forward decls.
29055         Use "%pure-parser" rather than obsolescent "%pure_parser".
29056         Use %parse-param and %lex-param instead of obsolescent
29057         YYPARSE_PARAM and YYLEX_PARAM.
29058         (meridian_table, month_and_day_table, time_units_table,
29059         relative_time_table, time_zone_table, military_table,
29060         lookup_zone, lookup_word, get_date):
29061         Use NULL instead of 0 where appropriate.
29062         (to_hour): Avoid abort (), to avoid a dependency on
29063         stdlib.h.
29064         (yyerror, yylex): Now accepts parser_control * arg.
29065         (main) [TEST]: Use '\0' rather than 0 for char.
29066
29067 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
29068
29069         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
29070
29071 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
29072
29073         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
29074         It's now the caller's responsibility to handle the case where
29075         !HAVE_GETPAGESIZE && !defined getpagesize.
29076
29077         * lib/mktime.c (leapyear): Arg is long int, not int.
29078
29079 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
29080
29081         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
29082
29083 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
29084
29085         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
29086         missing.  Problem reported by James Youngman.
29087
29088 2004-10-16  Simon Josefsson  <jas@extundo.com>
29089
29090         * gnulib-tool: Fix comments.  Fix parse problem.
29091         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
29092
29093 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
29094
29095         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
29096         implementation of getopt_long.  Problem reported by Alexander Taler in:
29097         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
29098
29099 2004-10-15  Bruno Haible  <bruno@clisp.org>
29100
29101         * gnulib-tool: Untabify. Initialize supplied_libname.
29102         (func_usage): More homogenous output.
29103         (func_modules_transitive_closure, func_modules_to_filelist,
29104         func_emit_lib_Makefile_am): New functions.
29105         (func_import): New function, extracted from big case statement. Use
29106         func_get_license, func_modules_transitive_closure,
29107         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
29108         opt_lgpl. Don't use test -a, as it's not portable.
29109         (func_create_testdir): Use func_modules_transitive_closure,
29110         func_modules_to_filelist, func_emit_lib_Makefile_am.
29111
29112 2004-10-15  Bruno Haible  <bruno@clisp.org>
29113
29114         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
29115
29116 2004-10-15  Bruno Haible  <bruno@clisp.org>
29117
29118         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
29119         the portions belonging to each module.
29120         Suggested by Derek Robert Price <derek@ximbiot.com>.
29121
29122 2004-10-12  Simon Josefsson  <jas@extundo.com>
29123
29124         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
29125         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
29126         to real functions.
29127
29128 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
29129
29130         * modules/vsnprintf: New file.
29131
29132 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
29133
29134         * m4/vsnprintf.m4: New file.
29135
29136 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
29137
29138         * lib/vsnprintf.h: New file.
29139         * lib/vsnprintf.c: New file.
29140
29141 2004-10-11  Bruno Haible  <bruno@clisp.org>
29142
29143         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
29144         vsnprintf.
29145
29146 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
29147
29148         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
29149
29150 2004-10-07  Bruno Haible  <bruno@clisp.org>
29151
29152         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
29153         fits into the provided buffer.
29154
29155 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
29156
29157         * lib/diacrit.c, diacrit.h: Add GPL notice.
29158
29159         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
29160         notice.
29161         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
29162         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
29163         This avoids a potential constant-folding bug.
29164
29165 2004-10-05  Bruno Haible  <bruno@clisp.org>
29166
29167         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
29168         for the declaration of strsep.
29169
29170 2004-10-05  Bruno Haible  <bruno@clisp.org>
29171
29172         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
29173
29174 2004-10-04  Simon Josefsson  <jas@extundo.com>
29175
29176         * modules/memmem: New file.
29177         * tests/test-memmem.c: New file.
29178         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
29179
29180 2004-10-04  Simon Josefsson  <jas@extundo.com>
29181
29182         * m4/memmem.m4: New file.
29183
29184 2004-10-04  Simon Josefsson  <jas@extundo.com>
29185
29186         * lib/memmem.h: New file.
29187         * lib/memmem.c: New file, taken from glibc.
29188
29189 2004-10-04  Simon Josefsson  <jas@extundo.com>
29190
29191         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
29192         '#ifdef USE_UNLOCKED_IO'.
29193
29194 2004-10-04  Simon Josefsson  <jas@extundo.com>
29195
29196         * config/srclist.txt: Add memmem from glibc.
29197
29198 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
29199
29200         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
29201
29202         * modules/argmatch, modules/argp, modules/closeout, modules/error,
29203         modules/exclude, modules/getdate, modules/getline,
29204         modules/getndelim2, modules/getpass, modules/getpass-gnu,
29205         modules/getusershell, modules/linebuffer, modules/md5,
29206         modules/mountlist, modules/posixtm, modules/readtokens,
29207         modules/readutmp, modules/regex, modules/sha1,
29208         modules/version-etc, modules/yesno:
29209         Remove dependency on unlocked-io.
29210
29211 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
29212
29213         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
29214
29215         * m4/unlocked-io.m4: Add copyright notice.
29216         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
29217
29218 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
29219
29220         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
29221         * lib/xmalloc.c (xmemdup): Likewise.
29222         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
29223         XFREE): Remove these long-obsolescent macros.
29224         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
29225         * lib/xstrdup.c: Remove.
29226
29227         * lib/regex.c (re_comp): Cast gettext return value to char *,
29228         Problem reported by Martin Neitzel via Mark D. Baushke.
29229
29230 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
29231
29232         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
29233         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
29234         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
29235         regex.c, sha1.c, version-etc.c, yesno.c:
29236         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
29237         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
29238         the includer's responsibility.
29239
29240         Sync from coreutils.
29241
29242         * lib/modechange.c (mode_compile): Don't decrement a pointer that
29243         points to the start of a string, as the C Standard says the
29244         resulting behavior is undefined.
29245
29246         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
29247         simple -> simple_backups, numbered_existing ->
29248         numbered_existing_backups, numbered -> numbered_backups
29249         to avoid shadowing problems.  All uses changed.
29250         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
29251         * lib/backupfile.c (check_extension, numbered_backup):
29252         Rename locals to avoid shadowing 'basename'.
29253         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
29254         once.
29255
29256         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
29257         * lib/.cvsignore: Add getopt.h.
29258
29259 2004-10-04  Bruno Haible  <bruno@clisp.org>
29260
29261         * modules/README: New file.
29262         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
29263         not a module.
29264
29265 2004-10-02  Jim Meyering  <jim@meyering.net>
29266
29267         * lib/dirfd.h, getpagesize.h: Add copyright notice.
29268
29269 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
29270
29271         * modules/strsep: New file.
29272
29273 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
29274
29275         * m4/strsep.m4: New file.
29276
29277 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
29278
29279         * lib/strsep.h: New file.
29280         * lib/strsep.c: New file.
29281
29282 2004-10-01  Simon Josefsson  <jas@extundo.com>
29283
29284         * lib/snprintf.c (snprintf): Handle size==0.
29285
29286 2004-10-01  Simon Josefsson  <jas@extundo.com>
29287             Bruno Haible  <bruno@clisp.org>
29288
29289         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
29290         (snprintf): Declare 'args'.
29291
29292 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
29293
29294         * lib/snprintf.c: Remove comments as to why each header is needed.
29295
29296 2004-10-01  Bruno Haible  <bruno@clisp.org>
29297
29298         * MODULES.html.sh: Add strsep.
29299
29300 2004-09-30  Simon Josefsson  <jas@extundo.com>
29301
29302         * modules/snprintf: New file.
29303
29304 2004-09-30  Simon Josefsson  <jas@extundo.com>
29305
29306         * m4/snprintf.m4: New file.
29307
29308 2004-09-30  Simon Josefsson  <jas@extundo.com>
29309
29310         * lib/snprintf.h, lib/snprintf.c: New files.
29311
29312 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
29313
29314         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
29315         (hol_entry_help): Never translate an empty string.
29316         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
29317         * lib/argp.h (OPTION_NO_TRANS): New option.
29318
29319 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
29320
29321         * modules/argp (Maintainer): Replace Simon Josefsson
29322         by Sergey Poznyakoff.
29323
29324 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
29325
29326         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
29327         changes merged back into glibc.
29328
29329 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
29330
29331         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
29332
29333 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
29334
29335         * lib/xvasprintf.c: Include xalloc.h.
29336         (xvasprintf): Use xalloc_die, not xmalloc_die.
29337
29338 2004-09-29  Bruno Haible  <bruno@clisp.org>
29339
29340         * modules/alloca-opt: New file, derived from modules/alloca.
29341         * modules/allocsa: Depend on alloca-opt instead of alloca.
29342         * modules/setenv: Likewise.
29343         * modules/vasnprintf: Likewise.
29344         * MODULES.html.sh: Add alloca-opt.
29345
29346 2004-09-28  Simon Josefsson  <jas@extundo.com>
29347
29348         * gnulib-tool: New parameter --lgpl, to asseert that modules are
29349         LGPL, and to replace license template from GPL to LGPL.
29350
29351 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
29352
29353         * modules/dummy: Change license to LGPL.
29354
29355 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
29356
29357         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
29358
29359 2004-09-24  Simon Josefsson  <jas@extundo.com>
29360
29361         * modules/minmax (License): Change from GPL to LGPL.
29362
29363 2004-09-23  Simon Josefsson  <jas@extundo.com>
29364
29365         * gnulib-tool (--import): Typo.
29366
29367 2004-09-23  Simon Josefsson  <jas@extundo.com>
29368
29369         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
29370
29371 2004-09-22  Bruno Haible  <bruno@clisp.org>
29372
29373         * modules/*: Add 'License' field.
29374         * gnulib-tool: Accept --extract-license option.
29375         (func_get_license): New function.
29376
29377 2004-09-21  Bruno Haible  <bruno@clisp.org>
29378
29379         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
29380         Reported by Simon Josefsson.
29381
29382 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
29383
29384         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
29385         gl_AC_TYPE_LONG_LONG.
29386
29387 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
29388
29389         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
29390
29391 2004-09-18  Simon Josefsson  <jas@extundo.com>
29392         and  Paul Eggert  <eggert@cs.ucla.edu>
29393
29394         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
29395         calls with autoreconf.  Define GL_LIB.
29396
29397 2004-09-14  Karl Berry  <karl@gnu.org>
29398
29399         * config/srclist.txt: unsync setenv.c, sigh.
29400
29401 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
29402
29403         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
29404         Problem reported by Bruno Haible in:
29405         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
29406
29407 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
29408
29409         * config/srclist.txt: Comment out argp-pvh.c.
29410
29411 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
29412
29413         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
29414         in case some system header has #define'd it.  Problem reported by
29415         Soeren D. Schulze in
29416         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
29417
29418 2004-09-09  Karl Berry  <karl@gnu.org>
29419
29420         * regex.[ch]: delete from the root.  These were supposed to be
29421                 synced with emacs cvs, but this has not happened for about
29422                 a year, and anyway nothing else uses emacs regex.[ch].
29423                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
29424                 lib/regex[.ch] is untouched.
29425
29426 2004-09-09  Bruno Haible  <bruno@clisp.org>
29427
29428         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
29429
29430 2004-09-09  Bruno Haible  <bruno@clisp.org>
29431
29432         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
29433         modifications.
29434         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
29435
29436 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
29437
29438         * modules/xvasprintf: New file.
29439         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
29440
29441 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
29442
29443         * lib/xvasprintf.h: New file.
29444         * lib/xvasprintf.c: New file.
29445         * lib/xasprintf.c: New file.
29446
29447 2004-09-08  Bruno Haible  <bruno@clisp.org>
29448
29449         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
29450
29451 2004-09-08  Bruno Haible  <bruno@clisp.org>
29452
29453         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
29454         length is > INT_MAX.
29455         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
29456         more.
29457
29458 2004-09-08  Bruno Haible  <bruno@clisp.org>
29459
29460         * lib/stdint_.h: New file, taken from GNU clisp.
29461
29462 2004-09-08  Bruno Haible  <bruno@clisp.org>
29463             Oskar Liljeblad  <oskar@osk.mine.nu>
29464
29465         * modules/stdint: New file.
29466         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
29467
29468 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
29469
29470         Import from coreutils.
29471         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
29472         strings on unbounded length.  alloca's performance benefits aren't
29473         that important here.
29474         (V_STRDUP): Remove.
29475         (parse_with_separator): New function, with most of the internals
29476         of the old parse_user_spec.  Allow user to omit both user and group,
29477         for compatibility with FreeBSD.
29478         Clone only the user name, not the entire spec.
29479         Do not set *uid, *gid unless entirely successful.
29480         Avoid memory leak in some failing cases.
29481         Fix regression for USER.GROUP reported by Dmitry V. Levin in
29482         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
29483         (parse_user_spec): Rewrite to use parse_with_separator.
29484
29485 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
29486
29487         * modules/userspec: Don't depend on alloca.
29488
29489 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
29490
29491         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
29492
29493 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
29494
29495         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
29496         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
29497         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
29498
29499 2004-08-16  Simon Josefsson  <jas@extundo.com>
29500
29501         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
29502         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
29503         Add --dry-run for --import.
29504         Let user provided command line parameters override configure.ac
29505         settings.
29506
29507 2004-08-12  Simon Josefsson  <jas@extundo.com>
29508
29509         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
29510         as discussed with Paul Eggert in threads rooted at
29511         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
29512         and
29513         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
29514         Before, the test was empty, and relied on ELIDE_CODE in source
29515         code.)
29516         (gl_PREREQ_GETOPT): New macro.
29517         (gl_GETOPT): Use them.
29518
29519 2004-08-12  Simon Josefsson  <jas@extundo.com>
29520
29521         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
29522         * lib/getopt_.h: Renamed from getopt.h.
29523
29524 2004-08-12  Simon Josefsson  <jas@extundo.com>
29525
29526         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
29527         Change default library name from libfoo to libgnu.
29528         Now, if you have a configure.ac that says:
29529                 gl_SOURCE_BASE(gl)
29530                 gl_M4_BASE(gl/m4)
29531                 gl_MODULES(error getopt etcetera)
29532                 gl_INIT
29533         you can import all you need by running:
29534                 ../gnulib/gnulib-tool --import
29535
29536         * modules/getopt (Files): Rename getopt.h to getopt_.h.
29537         (Makefile.am): Rewrite, use logic from argz.
29538         (Include): Use <getopt.h> instead of "getopt.h".
29539
29540 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
29541
29542         * modules/argp (Files): Add m4/unlocked-io.m4.
29543         (Depends-on): Add extensions.
29544
29545 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
29546
29547         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
29548         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
29549         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
29550         Check for program_invocation_name, program_invocation_short_name,
29551         flockfile, funlockfile, features.h, _getopt_long_only_r.
29552
29553 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
29554
29555         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
29556         its complicated substitute.
29557         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
29558         and program_invocation_name.
29559         (__argp_basename) [!_LIBC]: Remove; the only use was
29560         replaced by its body.
29561         (__argp_short_program_name): Change condition from
29562         !defined __argp_short_program_name to
29563         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
29564         to match argp-namefrob.h.
29565         (__argp_failure): Don't assume strerror_r returns char *.
29566         * lib/argp-parse.c (N_): Define unconditionally.
29567         (argp_default_options): Fill out initializers with 0 to avoid
29568         gcc warnings.
29569
29570 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
29571
29572         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
29573         getopt1.c.
29574
29575 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
29576
29577         Merge from coreutils.
29578
29579         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
29580
29581         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
29582         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
29583
29584 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
29585
29586         Merge from coreutils.
29587
29588         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
29589         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
29590         for Reliant Unix 5.43.
29591
29592         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
29593         (union fooround): Use uintmax_t, not long int.
29594         The rest is a merge from libc:
29595         [defined _LIBC]: Include <shlib-compat.h>.
29596         (_obstack) [defined _LIBC]: Remove after 2.3.4.
29597
29598         * lib/settime.c (settime): Recode to avoid warning with
29599         Sun Forte C 6U2.
29600
29601         * lib/strverscmp.c: Convert to UTF-8.
29602
29603 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
29604
29605         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
29606         m4/uintmax_t.m4.
29607
29608 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
29609
29610         * modules/xalloc-die: New file.
29611         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
29612
29613         * modules/md5 (Files): Add m4/uint32_t.m4.
29614         * modules/sha1: Renamed from modules/sha.
29615         (Files):
29616         Rename lib/sha.h to lib/sha1.h.
29617         Rename lib/sha.c to lib/sha1.c.
29618         Rename m4/sha.m4 to m4/sha1.m4.
29619         (lib_SOURCES): Likewise.
29620         (configure.ac): Rename gl_SHA to gl_SHA1.
29621         (Include): sha.h -> sha1.h.
29622
29623 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
29624
29625         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
29626         * m4/sha1.m4: Renamed from sha.m4.
29627         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
29628
29629 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
29630
29631         * lib/obstack.h (obstack_empty_p):
29632         Don't assume that chunk->contents is suitably aligned.
29633         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
29634         Likewise. Problem reported by Benno in
29635         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
29636
29637         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
29638         readable.  This could be improved further but it'd take some work.
29639
29640 2004-08-08  Simon Josefsson  <jas@extundo.com>
29641
29642         * modules/xgethostname (Depends-on): Remove exit and error (not
29643         used).
29644
29645         * modules/getpass-gnu: Add getpass.h.
29646         (Depends-on): Add stdbool.
29647         * modules/getpass: Add getpass.h.
29648
29649 2004-08-08  Simon Josefsson  <jas@extundo.com>
29650
29651         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
29652         Check getpass declaration.
29653
29654 2004-08-08  Simon Josefsson  <jas@extundo.com>
29655
29656         * lib/xgethostname.c: Don't include error.h (not used).
29657
29658         * lib/getpass.h: Add.
29659         * lib/getpass.c: Include getpass.h first.
29660
29661 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
29662
29663         * lib/xalloc-die.c: New file.
29664         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
29665         All uses removed.
29666         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
29667         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
29668         xalloc-die.c.
29669         (_, N_, xalloc_die): Move to xalloc-die.c.
29670         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
29671         so that we needn't mess with xalloc_msg_memory_exhausted.
29672
29673         * lib/sha1.h: Renamed from sha.h.
29674         (SHA1_H): Renamed from _SHA_H.
29675         (sha1_ctx): Renamed from sha_ctx.
29676         (sha1_init_ctx): Renamed from sha_init_ctx.
29677         (sha1_process_block): Renamed from sha_process_block.
29678         (sha1_process_bytes): Renamed from sha_process_bytes.
29679         (sha1_finish_ctx): Renamed from sha_finish_ctx.
29680         (sha1_read_ctx): Renamed from sha_read_ctx.
29681         (sha1_stream): Renamed from sha_stream.
29682         (sha1_buffer): Renamed from sha_buffer.
29683         * lib/sha1.c: Likewise; renamed from sha.c.
29684         Do not include <sys/types.h>.
29685         Include <stddef.h> rather than <stdlib.h>.
29686
29687 2004-08-08  Bruno Haible  <bruno@clisp.org>
29688
29689         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
29690         FILESYSTEM_PREFIX_LEN.
29691         * lib/progreloc.c: Likewise.
29692         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
29693
29694 2004-08-06  Simon Josefsson  <jas@extundo.com>
29695
29696         * modules/progname (Depends-on): Don't depend on stdbool.
29697
29698 2004-08-06  Simon Josefsson  <jas@extundo.com>
29699
29700         * modules/getsubopt: New file.
29701         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
29702         getsubopt.
29703
29704 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
29705
29706         More merge from coreutils.
29707
29708         * m4/utimens.m4, m4/utimecmp.m4: New files.
29709         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
29710         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
29711         prereq.m4, sha.m4: Import changes from coreutils.
29712
29713 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
29714
29715         More merge from coreutils.
29716         * modules/raise, modules/readtokens0, modules/utimens:
29717         * modules/utimecmp, module/xnanosleep: New files.
29718         * modules/strftime: Add lib/strftime.h.
29719         Change include from <time.h> to "strftime.h".
29720         * modules/yesno: Add lib/yesno.h.
29721         * modules/backupfile: Remove lib/addext.c.
29722         * modules/euidaccess: Add stat-macros.h.
29723         * modules/canonicalize, modules/euidaccess,
29724         modules/filemode, modules/lchown, modules/makepath,
29725         modules/rmdir, modules/stat: Likewise.
29726
29727 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
29728
29729         Merge from tar.
29730         * lib/argp-help.c (make_hol, hol_append): Don't assume that
29731         SIZE_MAX is a valid preprocessor constant.
29732         (__argp_basename): Change from "#ifndef _LIBC"
29733         to "#ifndef __argp_short_program_name", so that
29734         we don't compile these functions for tar.
29735
29736         More merges from coreutils.
29737         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
29738         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
29739         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
29740         * lib/addext.c: Remove; no longer needed.
29741         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
29742         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
29743         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
29744         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
29745         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
29746         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
29747         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
29748         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
29749         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
29750         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
29751         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
29752         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
29753         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
29754         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
29755         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
29756         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
29757         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
29758         Import changes from coreutils.
29759
29760 2004-08-05  Simon Josefsson  <jas@extundo.com>
29761
29762         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
29763
29764 2004-08-05  Simon Josefsson  <jas@extundo.com>
29765
29766         * m4/getsubopt.m4: New file.
29767
29768 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
29769
29770         Merge from coreutils.
29771
29772         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
29773         * m4/getcwd-path-max.m4: New files.
29774
29775         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
29776         FILESYSTEM_PREFIX_LEN ->
29777         FILE_SYSTEM_PREFIX_LEN.
29778         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
29779         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
29780         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
29781         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
29782
29783         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
29784         prerequisite modules now handle the DOS stuff.
29785         Don't check for unistd.h.
29786
29787 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
29788
29789         Merge from coreutils.
29790
29791         * lib/.gdb-history: Remove; this doesn't belong here.
29792
29793         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
29794         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
29795         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
29796         * lib/getcwd.c: New files.
29797
29798         * lib/dirname.h: Include <stdbool.h>.
29799         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
29800         for consistency with POSIX terminology.  All uses changed.
29801         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
29802         (strip_trailing_slashes): Use bool for booleans.
29803         * lib/stripslash.c (strip_trailing_slashes): Likewise.
29804
29805         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
29806         sometimes returns a positive errno value even when it succeeds.
29807         (print_errno_message) [!LIBC]: Fall back on strerror if
29808         __strerror_r fails.
29809
29810         * lib/path-concat.c (mempcpy): Don't define if a system header defines
29811         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
29812         (longest_relative_suffix): New function.
29813         (path_concat): Use it.  Assume first argument is not NULL.
29814         Port to DOS.  Omit redundant separators.
29815         Report an error instead of returning NULL.
29816         Use mempcpy instead of memcpy.
29817         (xpath_concat): Remove: not declared or used.
29818
29819         * lib/same.h: Include <stdbool.h>
29820         (same_name): Return bool, not int.
29821         * lib/same.c (same_name): Likewise.
29822         (errno): Don't declare; we assume C89 or better now.
29823
29824         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
29825         if not already defined.
29826
29827         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
29828         * lib/dup-safer.c (errno): Likewise.
29829
29830 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
29831
29832         Merge from coreutils.
29833         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
29834         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
29835         * modules/path-concat: Don't depend on strdup.
29836
29837 2004-08-03  Simon Josefsson  <jas@extundo.com>
29838
29839         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
29840         * lib/progname.h: Don't include stdbool.h.
29841
29842 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
29843
29844         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
29845         * MODULES.html.sh (func_all_modules): Remove fatal.
29846
29847 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
29848
29849         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
29850
29851 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
29852
29853         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
29854         working.
29855
29856 2004-08-02  Simon Josefsson  <jas@extundo.com>
29857
29858         * lib/getsubopt.h: New file, with comments from Bruno Haible.
29859         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
29860         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
29861
29862 2004-08-01  Simon Josefsson  <jas@extundo.com>
29863
29864         * lib/xgetdomainname.c: Include stdlib.h, for free().
29865
29866 2004-07-19  Bruno Haible  <bruno@clisp.org>
29867
29868         * MODULES.html.sh (func_all_modules): Add dummy.
29869
29870 2004-07-16  Simon Josefsson  <jas@extundo.com>
29871
29872         * modules/dummy: New file.
29873
29874 2004-07-16  Simon Josefsson  <jas@extundo.com>
29875
29876         * lib/dummy.c: New file.
29877
29878 2004-07-16  Bruno Haible  <bruno@clisp.org>
29879
29880         * lib/backupfile.h: Add extern "C" for C++.
29881         * lib/closeout.h: Likewise.
29882         * lib/copy-file.h: Likewise.
29883         * lib/findprog.h: Likewise.
29884         * lib/full-write.h: Likewise.
29885         * lib/pathname.h: Likewise.
29886         * lib/progname.h: Likewise.
29887         * lib/stpcpy.h: Likewise.
29888         * lib/stpncpy.h: Likewise.
29889         * lib/strcase.h: Likewise.
29890         * lib/strstr.h: Likewise.
29891         * lib/xalloc.h: Likewise.
29892
29893         * lib/mbswidth.h: Add extern "C" for C++.
29894         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
29895
29896 2004-07-13  Robert Millan  <robertmh@gnu.org>
29897
29898         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
29899
29900 2004-07-09  Simon Josefsson  <jas@extundo.com>
29901
29902         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
29903         failed without this.)
29904
29905 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
29906
29907         * modules/chown (Files): Add lib/fchown-stub.c, since
29908         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
29909
29910 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
29911
29912         * lib/fchown-stub.c: New file.
29913
29914 2004-06-24  Jim Meyering  <jim@meyering.net>
29915
29916         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
29917
29918 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
29919
29920         * modules/argz: Omit "#include".
29921
29922         * MODULES.html.sh (func_all_modules): Add calloc, to match
29923         2004-06-01 addition of calloc module.
29924
29925 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
29926
29927         * m4/argz.m4: New file, which is autoupdated from libtool.
29928
29929 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
29930
29931         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
29932         libtool.
29933
29934 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
29935
29936         * config/srclist-update: Don't insist on "USA." before the
29937         close-comment, as libtool omits the period and puts the */ on a
29938         separate line.
29939         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
29940         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
29941
29942 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
29943
29944         * modules/argz: New file.
29945         * MODULES.html.sh (func_all_modules): Add argz.
29946
29947 2004-06-12  Jim Meyering  <jim@meyering.net>
29948         and  Paul Eggert  <eggert@cs.ucla.edu>
29949
29950         * modules/hash (Files): Add lib/xalloc.h.
29951         * modules/pipe (Depends-on): Add wait-process.
29952         * modules/stat (Depends-on): Add xalloc.
29953         * modules/userspec (Files): Add lib/userspec.h.
29954         * modules/xstrto
29955
29956         Upgrade from gettext-0.13.
29957         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
29958         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
29959         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
29960
29961 2004-06-10  Jim Meyering  <jim@meyering.net>
29962
29963         * lib/calloc.c: New file.
29964
29965 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
29966
29967         * lib/getdate.y (yylex): Allow space between sign and number.
29968         Problem reported by Dan Jacobson.
29969
29970 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
29971
29972         Merge from coreutils CVS.
29973
29974         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
29975         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
29976         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
29977         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
29978         xstrtol.m4: Fix copyright date and/or serial number.
29979
29980         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
29981         See if we need an fchown replacement.
29982         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
29983         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
29984         and use the replacement function if we detect either defect.
29985
29986         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
29987         gl_UTIMECMP.
29988
29989 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
29990         and  Jim Meyering  <jim@meyering.net>
29991
29992         Merge from coreutils CVS.
29993
29994         * lib/stat-macros.h: New file, with contents from file-type.h
29995         and coreutils' system.h.
29996         * lib/file-type.c: Include "stat-macros.h".
29997         * lib/file-type.h (file_type): Move all macro definitions to new file,
29998         stat-macros.h.
29999
30000         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
30001         Wrap old code with this conditional.
30002         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
30003         function that does not dereference symlinks.
30004         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
30005
30006         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
30007         dependency problems.
30008         (xreadlink): Accept new arg SIZE, for efficiency.
30009         All decls and uses changed.
30010         * lib/xreadlink.h: Include <stddef.h>, for size_t.
30011
30012         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
30013         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
30014
30015         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
30016         sysexits.h.
30017
30018 2004-06-01  Jim Meyering  <jim@meyering.net>
30019
30020         * m4/calloc.m4: New file.
30021
30022 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
30023
30024         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
30025         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
30026         Also, fix a typo in a diagnostic.
30027
30028 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
30029
30030         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
30031         or AC_FUNC_REALLOC.
30032
30033 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
30034
30035         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
30036         macros to be defined.
30037         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
30038         the allocator returns NULL because the requested size is zero.
30039
30040 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
30041
30042         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
30043         var.  Add comment explaining why libc still defines it.  This
30044         merges the following patch from glibc:
30045         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
30046
30047 2004-05-20  Andreas Schwab  <schwab@suse.de>
30048
30049         * m4/free.m4: Replace free if it not known to work, not the other
30050         way round.
30051
30052 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
30053
30054         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
30055         present in glibc since revision 1.1 of this file.
30056         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
30057         obstack_alignment_mask, obstack_alloc, obstack_base,
30058         obstack_blank, obstack_blank_fast, obstack_chunk_size,
30059         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
30060         obstack_grow0, obstack_init, obstack_int_grow,
30061         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
30062         obstack_next_free, obstack_object_size, obstack_ptr_grow,
30063         obstack_ptr_grow_fast, obstack_room): Remove declarations of
30064         nonexistent functions.
30065
30066 2004-05-18  Karl Berry  <karl@gnu.org>
30067
30068         * config/srclist.txt: break link for vasnprintf.c.
30069
30070 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
30071
30072         Port obstack to the AS/400, where pointers are 16 bytes wide and
30073         you cannot cast an integer to a valid pointer.  This patch is
30074         currently waiting to be integrated into glibc; see
30075         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
30076
30077         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
30078         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
30079         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
30080         (struct obstack): temp member is now a union of a pointer and
30081         an integer, instead of an integer.  All integer uses changed.
30082         This does not affect the physical layout of struct obstack,
30083         except on hosts (like the AS/400) where the size or alignment of
30084         void * is greater than that of ptrdiff_t.
30085         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
30086         __STDC__)]: Store temporary in pointer member of union, not
30087         integer member.
30088         * lib/obstack.c: Include <stddef.h>, for offsetof.
30089         (struct fooalign): Remove; it doesn't need a name.
30090         (union fooround): Change double to long double, and add void *.
30091         (DEFAULT_ALIGNMENT): Use offsetof to compute.
30092         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
30093         not a macro.  Hence the values are always int; so remove all
30094         casts-to-int in uses.
30095
30096 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
30097
30098         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
30099         we can get this patch merged into glibc.
30100
30101 2004-05-17  Derek R. Price  <derek@ximbiot.com>
30102             Paul Eggert  <eggert@cs.ucla.edu>
30103
30104         * m4/argp: Depend on alloca.
30105
30106 2004-05-17  Derek R. Price  <derek@ximbiot.com>
30107             Paul Eggert  <eggert@cs.ucla.edu>
30108
30109         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
30110         freecoding.
30111
30112 2004-05-17  Bruno Haible  <bruno@clisp.org>
30113
30114         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
30115         precision that consists of a '.' followed by an empty digit string.
30116         Patch by Tor Lillqvist <tml@iki.fi>.
30117
30118 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
30119
30120         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
30121         for backward compatibility with older code.  We need our own
30122         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
30123         it under some other name, and our alloca.h will define it.
30124
30125 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
30126             Derek Price  <derek@ximbiot.com>
30127
30128         * lib/alloca.c: Include <alloca.h>, to get our interface.
30129         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
30130         include <alloca.h> first.  Use C89 prototype for alloca; this
30131         requires including <stddef.h> for size_t.  Use extern "C" if C++.
30132         Use #elif for simplicity, since we can assume C89 now.
30133         Don't try to source the system alloca.h since it will not be found
30134         and to prevent recursively including its replacement.
30135         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
30136         * lib/regex.c: Likewise.
30137
30138 2004-05-16  Derek Price  <derek@ximbiot.com>
30139             Paul Eggert  <eggert@cs.ucla.edu>
30140
30141         getline cleanup.  This changes the getndelim2 API: both order of
30142         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
30143         no delimiter).
30144
30145         * lib/getline.c: Don't include stddef.h or stdio.h, since our
30146         interface does that.
30147         (getline): Always use getdelim, so that we don't have two
30148         copies of this code.
30149         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
30150         if available.
30151         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
30152         (GETNDELIM2_MAXIMUM): New macro.
30153         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
30154         instead of the old practice of delim2==0.  All callers changed.
30155         Return -1 on overflow, instead of returning junk.
30156         Do not set *linesize unless allocation succeeds.
30157         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
30158         that we include sys/types.h.
30159         * lib/getnline.h: Likewise.
30160         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
30161         (getndelim2): Reorder arguments.
30162         * lib/getnline.c (getnline, getndelim):
30163         Don't discard the NMAX argument.
30164         (getnline): Invoke getndelim, to avoid code duplication.
30165         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
30166         of (size_t) -1 by callers of the getnline family.
30167
30168 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
30169
30170         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
30171         Check for gettimeofday.
30172         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
30173         Check for settimeofday, stime.
30174
30175 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
30176
30177         * lib/nanosleep.c (suspended): Change its type from int to
30178         sig_atomic_t volatile.
30179         (first_call): Make it private to rpl_nanosleep, and have it
30180         be zero initially as that's a bit faster.
30181         (my_usleep): Round up fractional times instead of truncating them,
30182         as this is the usual meaning for 'sleep'.
30183
30184         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
30185         doesn't work.
30186         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
30187         (ENOSYS): Define if not defined.
30188         (settime): Fall back on stime if it exists and settimeofday fails.
30189         But don't bother with fallbacks if a method fails with errno == EPERM.
30190
30191 2004-05-11  Jim Meyering  <jim@meyering.net>
30192
30193         Prior to this change, the save_cwd caller required read access to the
30194         current directory on most systems (ones with the fchdir function).
30195
30196         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
30197         fails, try write-only, and finally, resort to using xgetcwd.
30198
30199 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
30200
30201         * lib/obstack.c, obstack.h: Import changes from libc.
30202
30203 2004-04-28  Bruno Haible  <bruno@clisp.org>
30204
30205         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
30206         also implicitly appends .exe to executables.
30207         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
30208         accepts Windows pathnames.
30209         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
30210         Treat Cygwin like Windows, since it now accepts Windows pathnames.
30211         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
30212         Treat Cygwin like Windows, since it now accepts Windows pathnames.
30213         Reported by Derek Robert Price <derek@ximbiot.com>.
30214
30215 2004-04-21  Karl Berry  <karl@gnu.org>
30216
30217         * config/srclist.txt (localcharset.c): break sync.
30218
30219 2004-04-20  Paul Eggert  <eggert@twinsun.com>
30220
30221         * m4/host-os.m4: Add a copyright notice.
30222
30223 2004-04-20  Jim Meyering  <jim@meyering.net>
30224
30225         Change UTILS_ to gl_ in AC_DEFINE'd names.
30226         Change utils_- and jm_-prefixed variables, too.
30227         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
30228         UTILS_FUNC_MKDIR_TRAILING_SLASH.
30229         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
30230
30231         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
30232         Don't emit trailing blanks.
30233         Also rename jm_-prefixed variables to have gl_ prefix.
30234
30235         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
30236         Also rename jm_-prefixed variables to have gl_ prefix.
30237
30238         * m4/jm-macros.m4: Reflect the renamings.
30239         * m4/prereq.m4: Likewise.
30240
30241 2004-04-20  Jim Meyering  <jim@meyering.net>
30242
30243         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
30244         memory.
30245
30246 2004-04-20  Jim Meyering  <jim@meyering.net>
30247             Bruno Haible  <bruno@clisp.org>
30248
30249         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
30250         memory when realloc fails.
30251
30252 2004-04-19  Jim Meyering  <jim@meyering.net>
30253
30254         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
30255         now that readutmp.c may call `free (0)'.
30256
30257 2004-04-19  Bruno Haible  <bruno@clisp.org>
30258
30259         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
30260         * m4/inttypes_h.m4: Likewise.
30261         * m4/stdint_h.m4: Likewise.
30262         * m4/intmax_t.m4: Likewise.
30263         * m4/uintmax_t.m4: Likewise.
30264
30265 2004-04-18  Jim Meyering  <jim@meyering.net>
30266
30267         * m4/prereq.m4: Don't forbid jm_ prefix.
30268
30269         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
30270         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
30271         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
30272         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
30273         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
30274         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
30275         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
30276         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
30277         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
30278         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
30279         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
30280         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
30281         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
30282         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
30283         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
30284         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
30285         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
30286         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
30287         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
30288
30289 2004-04-18  Jim Meyering  <jim@meyering.net>
30290
30291         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
30292         failure, don't leak memory and do call END_UTMP_ENT.
30293
30294 2004-04-16  Jim Meyering  <jim@meyering.net>
30295
30296         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
30297         coreutils' stat program.
30298         (gl_PREREQ): Don't require jm_PREREQ_STAT.
30299
30300 2004-04-11  Paul Eggert  <eggert@twinsun.com>
30301
30302         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
30303         C89.
30304         (CHAR_BIT): Remove, since we assume C89.
30305         Include <stdint.h> if available, as per current Autoconf CVS advice.
30306
30307 2004-03-31  Jim Meyering  <jim@meyering.net>
30308
30309         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
30310         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
30311         * m4/xalloc.m4: Likewise.
30312
30313 2004-03-30  Paul Eggert  <eggert@twinsun.com>
30314
30315         Merge from coreutils.
30316
30317         * m4/inttostr.m4: New file.
30318         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
30319         Require AM_STDBOOL_H and gl_TIMESPEC instead.
30320         Require gl_CLOCK_TIME.
30321         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
30322
30323 2004-03-30  Paul Eggert  <eggert@twinsun.com>
30324
30325         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
30326         not bool, to be more consistent with Unix conventions.
30327         Suggested by Bruno Haible.
30328
30329         Merge from coreutils.
30330
30331         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
30332         * lib/umaxtostr.c: New files.
30333
30334         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
30335         the usual <time.h> dance.
30336         (get_date): Change signature to support fractional time stamps.
30337         All callers changed.
30338         * lib/getdate.y: Include "getdate.h" first, as we can now
30339         assume C89 and don't need to worry about 'const'.
30340         Similarly, include "unlocked-io.h" near start, not in middle.
30341         Include <limits.h>.
30342         (textint.value): Use long int rather than int.
30343         (textint.digits): Use size_t rather than int.
30344         (BILLION, LOG10_BILLION): New constants.
30345         (parser_control): New member rel_ns.  Members day_ordinal,
30346         time_zone, month, day, hour, minutes, rel_year, rel_month,
30347         rel_day, rel_hour, rel_minutes, rel_seconds
30348         are now long int, not int.  Member seconds is now struct timespec,
30349         not int.  New member timespec_seen.  Members dates_seen, days_seen,
30350         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
30351         not int.
30352         (%union.intval): Now long int, not int.
30353         New member timespec.
30354         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
30355         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
30356         (spec): Now is a timespec or an item list.
30357         (timespec, items): New nonterminals.
30358         (time, rel, relunit, number, get_date):
30359         Add support for fractional seconds.
30360         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
30361         (gmtime, localtime, mktime): Remove decls; not needed with C89.
30362         (to_hour): First arg is now long int, not int.
30363         (to_year): Returns long int, not int.
30364         Don't treat year -70 like 70.
30365         (tm_diff): Returns long int, not int.
30366         (lookup_word): Use bool instead of int when appropriate.
30367         (yylex): Use size_t for count, not int.
30368         Detect overflow when parsing large integer constants.
30369         Add support for fractions.
30370         (get_date): Make pointers 'const' if possible.
30371         Use more-portable code to detect integer overflow.
30372         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
30373         Don't use ctime; it's not reliable if the year has >4 digits.
30374
30375         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
30376         This is for compatibility with BSD.
30377
30378         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
30379         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
30380         From coreutils' system.h.
30381
30382         * lib/userspec.c: Don't include "posixver.h".
30383         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
30384         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
30385         compatible extension.  Simplify code by removing a boolean int
30386         that was always nonzero if a string was nonnull.
30387
30388 2004-03-30  Jim Meyering  <jim@meyering.net>
30389
30390         Merge from coreutils.
30391
30392         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
30393         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
30394         on some systems one must include <grp.h> before it.
30395         Reported by Christian Krackowizer.
30396
30397 2004-03-30  Jim Meyering  <jim@meyering.net>
30398
30399         Merge from coreutils.
30400
30401         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
30402
30403         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
30404         an empty input stream.
30405
30406         * lib/readtokens.c: Include <stdbool.h>.
30407         (readtoken): Use `size_t' rather than int/long.
30408         All callers adjusted.
30409         Use `bool' rather than `int' where appropriate.
30410         Use memset rather than an explicit loop.
30411         Use x2nrealloc rather than xrealloc.
30412         Allow the use of `\0' as a delimiter.
30413         (readtokens): Likewise.
30414         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
30415
30416 2004-03-30  Jim Meyering  <jim@meyering.net>
30417
30418         * m4/realloc.m4: Remove file, since now it does no more than
30419         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
30420         the `configure.ac' section of module/realloc.
30421         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
30422
30423 2004-03-30  Bruno Haible  <bruno@clisp.org>
30424
30425         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
30426         nonnull.
30427
30428 2004-03-29  Paul Eggert  <eggert@twinsun.com>
30429
30430         Merge changes to getloadavg.c from coreutils and Emacs.
30431
30432         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
30433         Define to an expression, not to the empty string.
30434         Include cloexec.h and xalloc.h.
30435         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
30436         Use set_cloexec_flag rather than rolling our own.
30437         * lib/cloexec.c, lib/cloexec.h: New files.
30438
30439 2004-03-29  Paul Eggert  <eggert@twinsun.com>
30440
30441         * m4/cloexec.m4: New file.
30442
30443 2004-03-18  Paul Eggert  <eggert@twinsun.com>
30444
30445         * lib/getopt.h: Sync with libc CVS.
30446
30447 2004-03-18  Paul Eggert  <eggert@twinsun.com>
30448             Bruno Haible  <bruno@clisp.org>
30449
30450         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
30451         mbswidth.
30452
30453 2004-03-18  Paul Eggert  <eggert@twinsun.com>
30454             Bruno Haible  <bruno@clisp.org>
30455
30456         * lib/mbswidth.h: Include <wchar.h> only if
30457         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
30458         <wchar.h>.
30459         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
30460
30461 2004-03-09  Paul Eggert  <eggert@twinsun.com>
30462
30463         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
30464         Sync with libc CVS.
30465         * lib/getopt_int.h: New file, also synced from libc.
30466
30467 2004-03-09  Paul Eggert  <eggert@twinsun.com>
30468
30469         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
30470         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
30471         Bring back getopt.c, getopt.h, getopt1.c.
30472
30473 2004-03-07  Paul Eggert  <eggert@twinsun.com>
30474
30475         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
30476         All uses changed.  Check for sa_sigaction member; this fixes
30477         a bug first reported by Jason Andrade in
30478         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
30479
30480 2004-03-07  Paul Eggert  <eggert@twinsun.com>
30481
30482         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
30483         '#if' expressions.  Unlike the code it replaces, it does not
30484         depend on (defined _SC_PAGESIZE).  However, it does depend on
30485         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
30486         first reported by Jason Andrade in
30487         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
30488
30489 2004-02-25  Simon Josefsson  <jas@extundo.com>
30490
30491         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
30492
30493 2004-02-25  Simon Josefsson  <jas@extundo.com>
30494
30495         * lib/strdup.h: New file.
30496         * lib/strdup.c: Include it.
30497         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
30498         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
30499
30500 2004-02-23  Karl Berry  <karl@gnu.org>
30501
30502         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
30503         (from fencepost.gnu.org:/gd/gnuorg).
30504
30505 2004-02-23  Karl Berry  <karl@gnu.org>
30506
30507         * config/srclistvars.sh (GNUORG) [karl]: redefine.
30508         * config/srclist.txt: add maintain/standards documents.
30509
30510 2004-02-18  Bruno Haible  <bruno@clisp.org>
30511
30512         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
30513         Reported by Derek Robert Price <derek@ximbiot.com>.
30514
30515 2004-02-16  Karl Berry  <karl@gnu.org>
30516
30517         * config/mkinstalldirs, install-sh: update from automake.
30518
30519 2004-02-06  Karl Berry  <karl@gnu.org>
30520
30521         * m4/po.m4: update from gettext 0.14.1.
30522
30523 2004-02-06  Karl Berry  <karl@gnu.org>
30524
30525         * lib/config.charset: update from gettext 0.14.1.
30526
30527 2004-02-05  Paul Eggert  <eggert@twinsun.com>
30528
30529         Add comments and code, prompted by suggestions from Bruno Haible
30530         for sh-quote.
30531         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
30532         describing the enum quoting_style values.
30533         * lib/quotearg.c (quotearg_alloc): New function.
30534         (quotearg_buffer_restyled): Treat lone { and } as special.
30535         Treat = as special.  Work around bug with older shells
30536         that "see" a '\' that is really the 2nd byte of a multibyte char.
30537         Quote empty string with shell_quoting_style.
30538
30539 2004-02-03  Bruno Haible  <bruno@clisp.org>
30540
30541         * m4/pipe.m4: New file, from GNU gettext.
30542
30543 2004-02-03  Bruno Haible  <bruno@clisp.org>
30544
30545         * lib/pipe.h: New file, from GNU gettext.
30546         * lib/pipe.c: New file, from GNU gettext.
30547
30548 2004-01-27  Bruno Haible  <bruno@clisp.org>
30549
30550         * m4/execute.m4: New file, from GNU gettext.
30551
30552 2004-01-27  Bruno Haible  <bruno@clisp.org>
30553
30554         * lib/execute.h: New file, from GNU gettext.
30555         * lib/execute.c: New file, from GNU gettext.
30556         * lib/w32spawn.h: New file, from GNU gettext.
30557
30558 2004-01-24  Paul Eggert  <eggert@twinsun.com>
30559
30560         Merge from diffutils.
30561
30562         * lib/file-type.c (file_type): Add typed memory objects.
30563         * lib/file-type.h (S_TYPEISTMO): New macro.
30564
30565         * lib/c-stack.h (c_stack_action): Remove argv argument.
30566         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
30567         (die): Don't calculate message unless segv_action returns.
30568         (get_stack_location, min_address_from_argv, max_address_from_argv,
30569         volatile stack_base, volatile_stack_size): Remove.
30570         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
30571         that every segmentation violation is a stack overflow.  (Ouch!)
30572         See Debian bug 136249 (still outstanding) for more info about why
30573         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
30574
30575 2004-01-24  Paul Eggert  <eggert@twinsun.com>
30576
30577         Exit-status fix from coreutils.
30578
30579         Use exit_failure consistently in place of EXIT_FAILURE,
30580         so that program exit statuses are consistent on failure.
30581
30582         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
30583         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
30584         * lib/argmatch.h: Comment fix to match the above.
30585         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
30586         Now a macro referring to exit_failure, instead of a separate
30587         variable.  Include "exitfail.h" to get it.
30588         * lib/xstrtol.h: Include "exitfail.h".
30589         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
30590
30591         * lib/long-options.c (parse_long_options): Use prototype
30592         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
30593         for clarity.
30594
30595 2004-01-21  Jim Meyering  <jim@meyering.net>
30596
30597         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
30598         so as not to conflict with a different-sized __mktime_internal
30599         function in GNU libc.
30600         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
30601         Problem building statically-linked `ls' reported by Michael Brunnbauer.
30602
30603 2004-01-20  Karl Berry  <karl@gnu.org>
30604
30605         * config/config.guess: update from config.
30606
30607         * config/srclistvars.sh: GNUWWWLICENSES for karl.
30608
30609 2004-01-20  Bruno Haible  <bruno@clisp.org>
30610
30611         Safer stack allocation.
30612         * lib/setenv.c: Include allocsa.h.
30613         (alloca): Remove fallback definition.
30614         (freea): Remove macro.
30615         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
30616         instead of freea.
30617
30618 2004-01-20  Bruno Haible  <bruno@clisp.org>
30619
30620         * m4/eealloc.m4: New file, from GNU gettext.
30621
30622 2004-01-20  Bruno Haible  <bruno@clisp.org>
30623
30624         * m4/allocsa.m4: New file, from GNU gettext.
30625
30626 2004-01-20  Bruno Haible  <bruno@clisp.org>
30627
30628         * lib/xallocsa.h: New file, from GNU gettext.
30629         * lib/xallocsa.c: New file, from GNU gettext.
30630
30631 2004-01-20  Bruno Haible  <bruno@clisp.org>
30632
30633         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
30634
30635 2004-01-20  Bruno Haible  <bruno@clisp.org>
30636
30637         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
30638         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
30639         specially.
30640
30641 2004-01-20  Bruno Haible  <bruno@clisp.org>
30642
30643         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
30644         patch.
30645
30646 2004-01-20  Bruno Haible  <bruno@clisp.org>
30647
30648         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
30649
30650 2004-01-20  Bruno Haible  <bruno@clisp.org>
30651
30652         * lib/eealloc.h: New file.
30653
30654 2004-01-20  Bruno Haible  <bruno@clisp.org>
30655
30656         * lib/binary-io.h: Avoid warnings on Cygwin.
30657
30658 2004-01-20  Bruno Haible  <bruno@clisp.org>
30659
30660         * lib/allocsa.h: New file, from GNU gettext.
30661         * lib/allocsa.c: New file, from GNU gettext.
30662
30663 2004-01-18  Karl Berry  <karl@gnu.org>
30664
30665         * doc/gpl.texi, doc/lgpl.texi: new files.
30666
30667 2004-01-18  Karl Berry  <karl@gnu.org>
30668
30669         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
30670         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
30671
30672 2004-01-15  Paul Eggert  <eggert@twinsun.com>
30673
30674         Merge from coreutils.
30675
30676         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
30677         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
30678         (gl_DEFAULT_POSIX2_VERSION): Move
30679         the documentation from 'configure' into 'config.hin',
30680         so that 'configure --help' isn't burdened by it and
30681         we don't have to worry about its formatting there.
30682         Reword the documentation so that it's more succinct
30683         and can be run together into a single paragraph.
30684         * m4/same.m4 (gl_SAME): Check for pathconf.
30685
30686 2004-01-15  Paul Eggert  <eggert@twinsun.com>
30687
30688         Merge from coreutils.
30689
30690         * lib/posixver.c: Include posixver.h.
30691
30692         * lib/same.c: Include <stdbool.h>, <limits.h>.
30693         (_POSIX_NAME_MAX): Define if not defined.
30694         (MIN): New macro.
30695         (same_name): If file names are silently truncated, report
30696         that the file names are the same if they are the same after
30697         the silent truncation.
30698
30699         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
30700         conversion function.
30701         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
30702         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
30703         longer needed.
30704
30705 2004-01-15  Jim Meyering  <jim@meyering.net>
30706
30707         Merge from coreutils.
30708
30709         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
30710         if no library is required.
30711         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
30712         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
30713         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
30714         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
30715         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
30716         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
30717         value, $ac_cv_search_crypt, if it's "none required".
30718         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
30719         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
30720         not gl_FUNC_GETLOADAVG.
30721         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
30722         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
30723
30724 2004-01-15  Jim Meyering  <jim@meyering.net>
30725
30726         Merge from coreutils.
30727
30728         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
30729         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
30730         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
30731
30732         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
30733         optional configure-time default.
30734
30735         * lib/version-etc.c (version_etc_copyright): Update copyright date.
30736
30737         * lib/xreadlink.c (xreadlink): Correct outdated comment.
30738
30739 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
30740
30741         Merge from coreutils.
30742
30743         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
30744         value, $ac_cv_search_nanosleep, if it's "none required".
30745
30746 2004-01-14  Paul Eggert  <eggert@twinsun.com>
30747
30748         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
30749         with like-named macro in fnmatch.c.
30750         (EXT): Use an internal constant instead.
30751
30752         Merge fnmatch patches from glibc.
30753         * lib/fnmatch.c (mbsinit): Remove define.
30754         Add libc_hidden_ver (__fnmatch, fnmatch).
30755         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
30756         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
30757
30758 2004-01-14  Karl Berry  <karl@gnu.org>
30759
30760         * config/install-sh: update from automake.
30761
30762 2004-01-13  Karl Berry  <karl@gnu.org>
30763
30764         * config/install-sh: update from automake.
30765
30766 2004-01-09  Karl Berry  <karl@gnu.org>
30767
30768         * config/install-sh: update from automake.
30769
30770 2004-01-05  Karl Berry  <karl@gnu.org>
30771
30772         * config/config.{sub,guess}: update from config.
30773
30774 2003-12-31  Karl Berry  <karl@gnu.org>
30775
30776         * config/depcomp: update from automake.
30777
30778 2003-12-14  Karl Berry  <karl@gnu.org>
30779
30780         * lib/config.charset: update from gettext-runtime.
30781
30782 2003-12-03  Paul Eggert  <eggert@twinsun.com>
30783
30784         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
30785         Bug reported by Alfred M. Szmidt.
30786
30787 2003-12-03  Bruno Haible  <bruno@clisp.org>
30788
30789         * m4/gettext.m4: Upgrade from gettext-0.13.
30790         * m4/po.m4: Upgrade from gettext-0.13.
30791         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
30792         * m4/intmax.m4: New file, from gettext-0.13.
30793         * m4/printf-posix.m4: New file, from gettext-0.13.
30794
30795 2003-11-29  Karl Berry  <karl@gnu.org>
30796
30797         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
30798
30799 2003-11-25  Paul Eggert  <eggert@twinsun.com>
30800             Bruno Haible  <bruno@clisp.org>
30801
30802         * lib/printf-parse.h: Don't include sys/types.h.
30803         (ARG_NONE): New macro.
30804         (char_directive): Change type of *arg_index fields to size_t.
30805         * lib/printf-parse.c: Don't include sys/types.h.
30806         (SSIZE_MAX): Remove macro.
30807         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
30808         Remove unnecessary overflow check.
30809         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
30810         fields.
30811
30812 2003-11-25  Bruno Haible  <bruno@clisp.org>
30813
30814         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
30815
30816 2003-11-25  Bruno Haible  <bruno@clisp.org>
30817
30818         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
30819         gt_TYPE_SSIZE_T.
30820
30821 2003-11-24  Paul Eggert  <eggert@twinsun.com>
30822
30823         * modules/alloca: Remove dependency on xalloc.
30824
30825 2003-11-24  Paul Eggert  <eggert@twinsun.com>
30826
30827         * lib/alloca.c: Remove dependency on xalloc module.
30828         (xalloc_die): Remove.
30829         (memory_full) [!defined emacs]: New macro.
30830         [!defined emacs]: Don't include xalloc.h.
30831         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
30832         address arithmetic overflows.  Change datatypes a bit to avoid
30833         unnecessary casts.
30834
30835 2003-11-22  Jim Meyering  <jim@meyering.net>
30836
30837         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
30838         s/size/size_t/.
30839
30840 2003-11-21  Karl Berry  <karl@gnu.org>
30841
30842         * config/config.{sub,guess}: update from config.
30843
30844 2003-11-18  Karl Berry  <karl@gnu.org>
30845
30846         * config/config.{sub,guess}: update from config.
30847
30848         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
30849
30850 2003-11-17  Paul Eggert  <eggert@twinsun.com>
30851
30852         * README: Mention that S+T cannot overflow if S is the size of
30853         an existing object and T is sufficiently small.
30854
30855 2003-11-17  Jim Meyering  <jim@meyering.net>
30856
30857         On systems without utime and without a utimes function capable of
30858         dealing with a NULL struct utimbuf* argument, this utime replacement
30859         could -- in unusual circumstances -- leak a file descriptor.
30860         * lib/utime.c: Include <unistd.h> and <errno.h>.
30861         (utime_null): Be sure to close `fd' and to preserve errno.
30862         Reported by Geoff Collyer via Arnold Robbins.
30863
30864 2003-11-17  Bruno Haible  <bruno@clisp.org>
30865
30866         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
30867         (Depends-on): Add xsize.
30868
30869 2003-11-17  Bruno Haible  <bruno@clisp.org>
30870
30871         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
30872
30873 2003-11-17  Bruno Haible  <bruno@clisp.org>
30874
30875         * lib/vasnprintf.c (alloca): Remove fallback definition.
30876         (freea): Remove definition.
30877         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
30878         Reported by Paul Eggert.
30879
30880 2003-11-16  Paul Eggert  <eggert@twinsun.com>
30881             Bruno Haible  <bruno@clisp.org>
30882
30883         Protect against address arithmetic overflow.
30884         * lib/printf-args.h: Include stddef.h.
30885         (arguments): Change type of field 'count' to size_t.
30886         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
30887         'unsigned int' where appropriate.
30888         * lib/printf-parse.h: Include sys/types.h.
30889         (char_directive): Change type of *arg_index fields to ssize_t.
30890         (char_directives): Change type of fields 'count', max_*_length to
30891         size_t.
30892         * lib/printf-parse.c: Include sys/types.h and xsize.h.
30893         (SSIZE_MAX): Define fallback value.
30894         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
30895         instead of 'int' where appropriate. Check a_allocated, d_allocated
30896         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
30897         * lib/vasnprintf.c: Include xsize.h.
30898         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
30899         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
30900         overflow. Avoid wraparound when converting a width or precision from
30901         decimal to binary.
30902
30903 2003-11-16  Bruno Haible  <bruno@clisp.org>
30904
30905         Update from GNU gettext.
30906         * lib/printf-parse.c: Generalize to it can be compiled for wide
30907         strings.
30908         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
30909         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
30910         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
30911         SNPRINTF): New macros.
30912         Don't include <alloca.h> if the file is used inside libintl.
30913         (local_wcslen): New function, for Solaris 2.5.1.
30914         (VASNPRINTF): Use it instead of wcslen.
30915
30916 2003-11-16  Bruno Haible  <bruno@clisp.org>
30917
30918         * lib/xsize.h (xmax): New function.
30919         (xsum, xsum3, xsum4): Declare as "pure" functions.
30920
30921 2003-11-12  Paul Eggert  <eggert@twinsun.com>
30922
30923         * modules/xalloc (Files): Undo latest change, since xalloc.h
30924         no longer needs SIZE_MAX or PTRDIFF_MAX.
30925
30926 2003-11-12  Paul Eggert  <eggert@twinsun.com>
30927
30928         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
30929         gl_PTRDIFF_MAX.
30930
30931 2003-11-12  Paul Eggert  <eggert@twinsun.com>
30932
30933         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
30934         "return", to pacify some unknown compiler.  Problem reported
30935         by Joerg Schilling.
30936
30937 2003-11-12  Paul Eggert  <eggert@twinsun.com>
30938
30939         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
30940         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
30941         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
30942         heuristic is just as accurate as far as we know, and it removes a
30943         dependency on size_max.m4 and ptrdiff_max.m4.
30944
30945 2003-11-11  Bruno Haible  <bruno@clisp.org>
30946
30947         * modules/xsize (Files): Add m4/size_max.m4.
30948         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
30949
30950 2003-11-11  Bruno Haible  <bruno@clisp.org>
30951
30952         * m4/size_max.m4: New file.
30953         * m4/ptrdiff_max.m4: New file.
30954         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
30955         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
30956         (gl_XALLOC): Invoke it.
30957
30958 2003-11-11  Bruno Haible  <bruno@clisp.org>
30959
30960         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
30961         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
30962         defined.
30963
30964 2003-11-10  Paul Eggert  <eggert@twinsun.com>
30965
30966         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
30967         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
30968         rejected some allocations of exactly SIZE_MAX - 2 bytes.
30969         From Bruno Haible.
30970         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
30971         not (size_t) -1, since it's defined here.
30972
30973 2003-11-09  Karl Berry  <karl@gnu.org>
30974
30975         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
30976
30977 2003-11-06  Paul Eggert  <eggert@twinsun.com>
30978
30979         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
30980         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
30981         Reject sizes of exactly SIZE_MAX bytes.
30982         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
30983         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
30984
30985 2003-11-05  Bruno Haible  <bruno@clisp.org>
30986
30987         * lib/xsize.h: Include limits.h, to avoid a possible collision with
30988         SIZE_MAX defined in <limits.h> on Solaris.
30989
30990 2003-11-04  Jim Meyering  <jim@meyering.net>
30991
30992         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
30993         variable names, rather than @VAR@.
30994         * modules/poll: Likewise.
30995
30996 2003-11-04  Bruno Haible  <bruno@clisp.org>
30997
30998         * modules/xsize: New file.
30999         * modules/linebreak: Depend on xsize.
31000         * MODULES.html.sh (func_all_modules): Add xsize.
31001
31002 2003-11-04  Bruno Haible  <bruno@clisp.org>
31003
31004         * m4/xsize.m4: New file.
31005
31006 2003-11-04  Bruno Haible  <bruno@clisp.org>
31007
31008         * lib/xsize.h: New file.
31009         * lib/linebreak.c: Include xsize.h.
31010         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
31011         argument for overflow.
31012         Suggested by Paul Eggert.
31013
31014 2003-11-03  Karl Berry  <karl@gnu.org>
31015
31016         * config/config.{guess,sub}: update from config.
31017
31018 2003-11-03  Jim Meyering  <jim@meyering.net>
31019
31020         * modules/userspec (lib_SOURCES): Add userspec.h.
31021         (Include): Add "userspec.h".
31022         Improve description.
31023
31024 2003-11-03  Jim Meyering  <jim@meyering.net>
31025
31026         * lib/userspec.c: Include "userspec.h".
31027         * lib/userspec.h: New file.
31028
31029 2003-11-03  Bruno Haible  <bruno@clisp.org>
31030
31031         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
31032
31033 2003-11-03  Bruno Haible  <bruno@clisp.org>
31034
31035         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
31036         available, to avoid (extremely rare) race condition.
31037         Suggested by Paul Eggert.
31038
31039 2003-11-02  Karl Berry  <karl@gnu.org>
31040
31041         * config/srclist.txt (vasprintf.c): sync broken, sigh.
31042
31043 2003-10-31  Paul Eggert  <eggert@twinsun.com>
31044
31045         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
31046         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
31047         (read_filesystem_list): Set and use me_type_malloced.
31048         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
31049         whatever the type happens to be), for brevity and consistency.
31050         Check for size calculation overflow on Alphas running OSF/1.
31051
31052 2003-10-31  Jim Meyering  <jim@meyering.net>
31053
31054         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
31055
31056         * lib/linebuffer.c: Include <string.h> for declaration of memset.
31057
31058 2003-10-30  Paul Eggert  <eggert@twinsun.com>
31059             Bruno Haible  <bruno@clisp.org>
31060
31061         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
31062         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
31063
31064 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
31065
31066         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
31067         netbsd*-gnu*.  Suggested by Robert Millan.
31068
31069 2003-10-29  Paul Eggert  <eggert@twinsun.com>
31070
31071         * modules/group-member: Depend on stdbool.
31072
31073 2003-10-29  Paul Eggert  <eggert@twinsun.com>
31074
31075         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
31076
31077 2003-10-29  Paul Eggert  <eggert@twinsun.com>
31078
31079         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
31080         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
31081         after the 'gnu' in these cases.  This fixes some bugs in the
31082         previous change, and is based on suggestions by Robert Millan.
31083
31084 2003-10-29  Paul Eggert  <eggert@twinsun.com>
31085
31086         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
31087         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
31088         no longer needed.
31089         * lib/quotearg.c (quotearg_n_options): Use it.
31090         * lib/group-member.c: Include <stdbool.h>.
31091         (free_group_info): Arg is now const *; don't free arg.
31092         (get_group_info): Now returns bool and accepts struct group_info *,
31093         rather than returning a malloc'ed struct group_info *.
31094         All uses changed.  Check for overflow in internal size calculation.
31095
31096         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
31097         rather than xmalloc/xrealloc.
31098         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
31099         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
31100         conformance bug: the old code used a pointer after freeing the
31101         storage that it addressed.
31102         * lib/hash.c (hash_initialize): Simplify the code by using
31103         xalloc_oversized rather than doing it by hand.
31104         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
31105         the buffer preserved.  Use free and xmalloc instead.
31106         * lib/quotearg.c (quotearg_n_options): Likewise.
31107         Use a simpler test for size overflow.  Don't use xalloc_oversized
31108         because unsigned int might be wider than size_t (!); this suggests
31109         that we should switch from unsigned int to size_t for slot numbers.
31110
31111 2003-10-28  Paul Eggert  <eggert@twinsun.com>
31112
31113         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
31114         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
31115         NetBSD kernels.  Requested by Richard Stallman.
31116
31117 2003-10-27  Paul Eggert  <eggert@twinsun.com>
31118
31119         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
31120         to allocate the returned structure.  Do not allocate a subarray,
31121         as x2nrealloc will do that.
31122         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
31123         instead of xnrealloc.
31124         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
31125
31126 2003-10-27  Bruno Haible  <bruno@clisp.org>
31127
31128         * lib/stdbool_.h: Better support for BeOS.
31129
31130 2003-10-26  Paul Eggert  <eggert@twinsun.com>
31131
31132         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
31133         now uses inline.
31134
31135 2003-10-26  Paul Eggert  <eggert@twinsun.com>
31136
31137         * lib/xalloc.h (xalloc_oversized): New static inline function, for
31138         callers that want to do their own size-overflow checking.  Include
31139         <stdbool.h>, since xalloc_oversized returns bool.
31140         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
31141         to use xalloc_oversized.
31142
31143         Add two functions x2realloc, x2nrealloc, for programs that grow
31144         arrays dynamically by doubling their sizes.
31145         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
31146         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
31147         New functions.
31148
31149         Port to C99 semantics for 'inline' of external functions.
31150         Bug reported by Bruno Haible.
31151         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
31152         with the old contents of xnmalloc.
31153         (xnmalloc, xmalloc): Use it.
31154         (xnrealloc_inline): New static inline function,
31155         with the old contents of xnrealloc.
31156         (xnrealloc, xrealloc): Use it.
31157
31158         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
31159         that.
31160
31161 2003-10-26  Karl Berry  <karl@gnu.org>
31162
31163         * config/srclist.txt (COPYING.DOC): no longer available from
31164         /gd/gnuorg; don't know where the ultimate source is.
31165
31166 2003-10-25  Paul Eggert  <eggert@twinsun.com>
31167
31168         Fix several address-calculation bugs in the hash modules,
31169         plus some minor code cleanup.
31170
31171         * lib/hash.h: Include <stdbool.h>, for bool.
31172         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
31173         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
31174         hash_get_n_entries, hash_get_max_bucket_length,
31175         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
31176         hash_rehash): Use size_t rather than unsigned.
31177         * lib/hash.c (struct hash_table, hash_get_n_buckets,
31178         hash_get_n_buckets_used, hash_get_n_entries,
31179         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
31180         hash_get_entries, hash_do_for_each, hash_string, is_prime,
31181         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
31182         Likewise.
31183         (SIZE_MAX): Define if not defined.
31184         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
31185         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
31186         hash_print):
31187         Use const * when possible.
31188         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
31189         (check_tuning): Fix bug: if tuning parameters were very close to
31190         0 or 1, rounding errors could have caused subscript violations.
31191         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
31192         (hash_initialize): Add 'fail:' label
31193         to free table and return NULL, and use it to simplify code.
31194         Use calloc rather than clearing the storage ourself.
31195         (hash_initialize, hash_rehash): Check for arithmetic overflow in
31196         buffer size calculations.
31197         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
31198         Include <stddef.h>, for size_t.
31199         * lib/hash-pjw.c (hash_pjw): Likewise.
31200         Switch to method described by Bruno Haible.
31201         Include <limits.h>, for CHAR_BIT.
31202         (SIZE_BITS): New macro.
31203
31204 2003-10-23  Paul Eggert  <eggert@twinsun.com>
31205
31206         * m4/getline.m4 (AM_FUNC_GETLINE):
31207         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
31208         hosts.  Problem reported by Derek Robert Price in
31209         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
31210         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
31211         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
31212
31213 2003-10-21  Paul Eggert  <eggert@twinsun.com>
31214
31215         * lib/getndelim2.c (getndelim2): When size calculation overflows,
31216         ceiling the allocation at NMAX bytes rather than silently
31217         discarding input bytes before NMAX is reached.  This makes
31218         a difference only if NMAX exceeds SIZE_MAX / 2.
31219
31220         * lib/obstack.c: Merge from glibc.
31221         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
31222         Add libc_hidden_def (_obstack_newchunk).
31223         (_obstack_free) [! defined _LIBC]: Remove.
31224         [defined _LIBC]: Make a strong alias from obstack_free, rather than
31225         a clone of the function body.
31226         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
31227         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
31228
31229         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
31230         glibc.
31231         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
31232         arg to memcpy.
31233
31234         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
31235         (obstack_ptr_grow_fast, obstack_int_grow_fast):
31236         Don't use lvalue casts, as GCC plans to remove support for them
31237         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
31238         was also present in the non-GCC version, indicating that this
31239         code had always been buggy and had never been widely used.
31240         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
31241         Use the fast variant of each macro, rather than copying the
31242         definiens of the fast variant; that way, we'll be more likely to
31243         catch future bugs in the fast variants.
31244
31245 2003-10-20  Bruno Haible  <bruno@clisp.org>
31246
31247         * modules/wait-process: New file.
31248         * MODULES.html.sh (func_all_modules): Add wait-process.
31249
31250 2003-10-20  Bruno Haible  <bruno@clisp.org>
31251
31252         * m4/wait-process.m4: New file.
31253
31254 2003-10-20  Bruno Haible  <bruno@clisp.org>
31255
31256         * lib/wait-process.h: New file, from GNU gettext.
31257         * lib/wait-process.c: New file, from GNU gettext.
31258
31259 2003-10-19  Jim Meyering  <jim@meyering.net>
31260
31261         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
31262         HPUX 10.20.
31263
31264 2003-10-18  Karl Berry  <karl@gnu.org>
31265
31266         * config/config.guess: update from config.
31267
31268 2003-10-16  Paul Eggert  <eggert@twinsun.com>
31269
31270         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
31271         (getgroups): First arg is int, not size_t.
31272         Don't let 'free' mangle errno.
31273
31274 2003-10-16  Paul Eggert  <eggert@twinsun.com>
31275
31276         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
31277
31278 2003-10-16  Karl Berry  <karl@gnu.org>
31279
31280         * config/config.{guess,sub}: update from config.
31281
31282 2003-10-16  Jim Meyering  <jim@meyering.net>
31283
31284         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
31285         memcpy.
31286
31287 2003-10-15  Paul Eggert  <eggert@twinsun.com>
31288
31289         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
31290         (SIZE_MAX): Remove.
31291         (new_exclude, add_exclude_file): Initial size no longer needs to
31292         be a power of 2.
31293         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
31294         our own address arithmetic overflow checking.
31295
31296         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
31297         (fnmatch): Do not alloca more than 2000 wide characters;
31298         instead, use malloc for large buffers.
31299         Check for address arithmetic overflow, and return -1
31300         with errno set to ENOMEM in that case.
31301         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
31302         (NEW_PATTERN): Do not alloca more than 8000 bytes;
31303         instead, return -1.  Check for address arithmetic overflow.
31304
31305 2003-10-14  Paul Eggert  <eggert@twinsun.com>
31306
31307         Handle invalid suffixes and overflow independently, so that
31308         callers can treat them independently as needed.  Fix some bugs in
31309         suffix handling, e.g., "100k@" was not diagnosed as an invalid
31310         suffix for a human-readable blocksize.  The major caller-visible
31311         change is the addition of a new
31312         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
31313         that both overflow and suffix chars were found.
31314
31315         * lib/human.c (humblock): Don't check separately for invalid suffix
31316         char; that is xstrtoumax's job (now that its bug is fixed).
31317         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
31318         INTMAX_MAX]: New macros.
31319         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
31320         TYPE_MAXIMUM): New macros.
31321         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
31322         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
31323         if overflow occurs, as it's what __strtol does and it's more useful
31324         in practice.
31325         (__xstrtol): If __strtol reports some error other than ERANGE,
31326         reflect it to the caller as LONGINT_INVALID.  If it reports
31327         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
31328         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
31329         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
31330         value.
31331         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
31332         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
31333         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
31334         [defined UINTMAX_MAX]: New macros.
31335
31336 2003-10-14  Bruno Haible  <bruno@clisp.org>
31337
31338         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
31339
31340 2003-10-14  Bruno Haible  <bruno@clisp.org>
31341
31342         * m4/sig_atomic_t: New file, from GNU gettext.
31343         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
31344
31345 2003-10-14  Bruno Haible  <bruno@clisp.org>
31346
31347         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
31348         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
31349         Also use volatile where needed.
31350
31351 2003-10-12  Paul Eggert  <eggert@twinsun.com>
31352
31353         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
31354         Change maintainer from Bruno Haible to 'all'.
31355
31356 2003-10-12  Paul Eggert  <eggert@twinsun.com>
31357
31358         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
31359
31360 2003-10-12  Paul Eggert  <eggert@twinsun.com>
31361
31362         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
31363         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
31364         and define in terms of the other primitives.
31365         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
31366         (SIZE_MAX): Define if not already defined.
31367         (array_size_overflow): New function.
31368         (xalloc_die): Abort instead of exiting if 'error' returns.
31369         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
31370         (xmalloc, xrealloc): Use them.
31371         (xcalloc): Check for address arithmetic overflow.
31372         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
31373         a bit faster than strcpy.
31374
31375 2003-10-10  Simon Josefsson  <jas@extundo.com>
31376
31377         * modules/argp (Depends-on): Add restrict and strcase.
31378
31379 2003-10-10  Simon Josefsson  <jas@extundo.com>
31380
31381         * m4/argp.m4: Add AC_C_INLINE.
31382
31383 2003-10-08  Paul Eggert  <eggert@twinsun.com>
31384
31385         Merge getpass from libc, plus a few fixes.
31386
31387         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
31388         Include <stdbool.h>.
31389         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
31390         __fsetlocking to empty.
31391         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
31392         do include <bits/libc-lock.h>.
31393         Do not include <fcntl.h>; not needed.
31394         [_LIBC]: Include <wchar.h>.
31395         (NOTCANCEL_MODE): New macro.
31396         (flockfile, funlockfile) [_LIBC]: New macros.
31397         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
31398         [!_LIBC]: New macros.
31399         (call_fclose): New function.
31400         (getpass): Use it.  Save tty stream separately; this simplifies the
31401         code and makes it more reliable if stdin happens to equal stdout.
31402         Invoke __fsetlocking on tty.
31403         Handle thread cancellation if needed.
31404         Namespace cleanup (use __tcgetattr, __getline).
31405         Use bool for Booleans.
31406         [USE_IN_LIBIO]: Handle wide streams.
31407         [!_LIBC]: Unconditionally do the fseek, since we don't know what
31408         stream might go where.
31409
31410         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
31411         doesn't have to include <stdio.h> before us.
31412         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
31413         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
31414         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
31415         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
31416         if not declared, so that we can use getpass.c code from libc without
31417         rewriting it.
31418         (flockfile, ftrylockfile, funlockfile): New macros.
31419
31420 2003-10-08  Paul Eggert  <eggert@twinsun.com>
31421
31422         * modules/getpass: Depend on stdbool.
31423
31424 2003-10-08  Paul Eggert  <eggert@twinsun.com>
31425
31426         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
31427
31428 2003-10-07  Karl Berry  <karl@gnu.org>
31429
31430         * config/config.{guess,sub}: update from config.
31431
31432 2003-10-06  Jim Meyering  <jim@meyering.net>
31433             Bruno Haible  <bruno@clisp.org>
31434
31435         This lets translators provide better translations for the
31436         "Written by ..." part of --version output.
31437         * lib/version-etc.h: Include stdarg.h.
31438         (version_etc_copyright): Declare as readonly.
31439         (version_etc): Make this function variadic with a NULL-terminated list
31440         of author name strings.
31441         (version_etc_va): New declaration.
31442         * lib/version-etc.c: Include stdarg.h, stdlib.h.
31443         (version_etc_copyright): Declare as readonly.
31444         (version_etc_va): New function. Provide a different translatable string
31445         for each possible number of authors < 10. Abbreviate when there are 10
31446         authors or more.
31447         (version_etc): Make this function variadic. Call version_etc_va.
31448         Suggestion from Gary V. Vaughan.
31449
31450         * lib/long-options.h (parse_long_options): Change prototype: the
31451         authors string is moved to the end and becomes variadic.
31452         * lib/long-options.c: Include stdarg.h.
31453         (parse_long_options): Make this function variadic, too.
31454         Call version_etc_va, not version_etc.
31455
31456 2003-10-06  Bruno Haible  <bruno@clisp.org>
31457
31458         * modules/version-etc-2: Remove file.
31459         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
31460
31461 2003-10-06  Bruno Haible  <bruno@clisp.org>
31462
31463         * modules/fatal-signal: New file.
31464         * MODULES.html.sh (func_all_modules): Add fatal-signal.
31465
31466 2003-10-06  Bruno Haible  <bruno@clisp.org>
31467
31468         * m4/fatal-signal.m4: New file.
31469         * m4/signalblocking.m4: New file, from GNU gettext.
31470
31471 2003-10-06  Bruno Haible  <bruno@clisp.org>
31472
31473         * lib/version-etc-2.h: Remove file.
31474         * lib/version-etc-2.c: Remove file.
31475
31476 2003-10-06  Bruno Haible  <bruno@clisp.org>
31477
31478         * lib/fatal-signal.h: New file, from GNU gettext.
31479         * lib/fatal-signal.c: New file, from GNU gettext.
31480
31481 2003-10-05  Paul Eggert  <eggert@twinsun.com>
31482
31483         * README: Rework advice for preventing empty .o files.
31484         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
31485         not <sys/types.h>.
31486
31487 2003-10-04  Karl Berry  <karl@gnu.org>
31488
31489         * lib/argp*: update from libc.
31490
31491 2003-10-04  Karl Berry  <karl@gnu.org>
31492
31493         * config/config.{guess,sub}: update from config.
31494
31495 2003-10-02  Bruno Haible  <bruno@clisp.org>
31496
31497         * modules/lchown (Include): Add lchown.h.
31498         * modules/time_r (Include): Use "..." syntax.
31499         * modules/xgetdomainname (Include): Add xgetdomainname.h.
31500
31501 2003-10-01  Simon Josefsson  <jas@extundo.com>
31502
31503         * MODULES.html.sh (func_all_modules): Move gethostname from section
31504         'based on' to section 'lacking' POSIX:2001.
31505
31506 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
31507
31508         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
31509         to output mode on the same stream.
31510
31511 2003-09-29  Paul Eggert  <eggert@twinsun.com>
31512
31513         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
31514         Fix arg typo in previous patch.
31515
31516 2003-09-28  Jim Meyering  <jim@meyering.net>
31517
31518         * lib/error.c: Correct cpp indentation.
31519
31520 2003-09-27  Paul Eggert  <eggert@twinsun.com>
31521
31522         * modules/free: New file.
31523
31524 2003-09-27  Paul Eggert  <eggert@twinsun.com>
31525
31526         * m4/free.m4: New file.
31527
31528 2003-09-27  Paul Eggert  <eggert@twinsun.com>
31529
31530         * lib/minmax.h (MIN, MAX)
31531         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
31532         Omit the special code that used __typeof__, since we worry that
31533         it could be more trouble than it's worth.  See:
31534         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
31535         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
31536
31537         * lib/free.c: New file.
31538
31539 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
31540
31541         Trivial fixes to Makefile.am parts of module listings.
31542         * modules/strstr: Append strstr.h to lib_SOURCES.
31543         * modules/strcase: Likewise, for strcase.h.
31544
31545 2003-09-27  Karl Berry  <karl@gnu.org>
31546
31547         * config/mkinstalldirs: update from automake.
31548
31549 2003-09-26  Paul Eggert  <eggert@twinsun.com>
31550
31551         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
31552         (error_tail): Do not loop, reallocating temporary buffer, since
31553         the output cannot contain more wide characters than the input
31554         contains bytes, the size must be big enough already.  This avoids
31555         one potential size overflow calculation.  Check for size overflow
31556         when calculating temporary buffer size.  Free temporary buffer
31557         when done, if it was allocated with malloc; this plugs a memory
31558         leak.  Remove casts from void * to pointers, that are no longer
31559         needed now that we're assuming C89 or better.
31560
31561         Merge error changes from glibc.
31562
31563         * lib/error.c, error.h: Update copyright notice header to match glibc.
31564         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
31565         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
31566         Disable cancellation while printing error.
31567         * lib/error.h: Prepend __ to parameter names.
31568
31569 2003-09-26  Jim Meyering  <jim@meyering.net>
31570
31571         * lib/error.c (error_tail): Move some declarations
31572         into inner scope where the local variables are used.
31573
31574 2003-09-26  Bruno Haible  <bruno@clisp.org>
31575
31576         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
31577         stpncpy().
31578         Don't define stpncpy through config.h; it's now done through stpncpy.h.
31579
31580 2003-09-26  Bruno Haible  <bruno@clisp.org>
31581
31582         * lib/stpncpy.h (gnu_stpncpy): New declaration.
31583         (stpncpy): Define as alias for gnu_stpncpy.
31584         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
31585
31586 2003-09-25  Simon Josefsson  <jas@extundo.com>
31587
31588         * lib/xgetdomainname.h: New file.
31589         * lib/xgetdomainname.c: New file.
31590
31591 2003-09-25  Simon Josefsson  <jas@extundo.com>
31592             Bruno Haible  <bruno@clisp.org>
31593
31594         * modules/getdomainname: New file.
31595         * modules/xgetdomainname: New file.
31596         * MODULES.html.sh (func_all_modules): Add getdomainname,
31597         xgetdomainname.
31598
31599 2003-09-25  Simon Josefsson  <jas@extundo.com>
31600             Bruno Haible  <bruno@clisp.org>
31601
31602         * m4/getdomainname.m4: New file.
31603
31604 2003-09-25  Simon Josefsson  <jas@extundo.com>
31605             Bruno Haible  <bruno@clisp.org>
31606
31607         * lib/getdomainname.h: New file.
31608         * lib/getdomainname.c: New file.
31609
31610 2003-09-25  Karl Berry  <karl@gnu.org>
31611
31612         * lib/argp-fmtstream.c, argp-help.c: update from libc.
31613
31614 2003-09-25  Karl Berry  <karl@gnu.org>
31615
31616         * config/install-sh: update from automake.
31617
31618 2003-09-25  Bruno Haible  <bruno@clisp.org>
31619
31620         * modules/version-etc-2: New file, from modules/version-etc with
31621         modifications.
31622         * MODULES.html.sh (func_all_modules): Add version-etc-2.
31623
31624 2003-09-25  Bruno Haible  <bruno@clisp.org>
31625
31626         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
31627         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
31628
31629 2003-09-24  Simon Josefsson  <jas@extundo.com>
31630
31631         * modules/xgethostname: Add xgethostname.h.
31632
31633 2003-09-24  Paul Eggert  <eggert@twinsun.com>
31634
31635         * lib/linebuffer.c (freebuffer): Don't free the argument, just
31636         the buffer associated with the argument.  Bug reported by
31637         Simon Josefsson.
31638
31639 2003-09-24  Paul Eggert  <eggert@twinsun.com>
31640
31641         * README: Document assumptions that 'int' is at least 32 bits
31642         wide, that integer arithmetic is 2's complement without overflow,
31643         that there are no holes in integer values, that adding sizes of
31644         two nonoverlapping objects can't overflow, and that all-bits-zero
31645         yields scalar zero.  Fix spelling and capitalization typos.
31646
31647 2003-09-19  Karl Berry  <karl@gnu.org>
31648
31649         * lib/argp.h: update from libc.
31650
31651 2003-09-17  Paul Eggert  <eggert@twinsun.com>
31652
31653         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
31654         to avoid spurious warnings like "AC_RUN_IFELSE was called before
31655         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
31656
31657 2003-09-17  Paul Eggert  <eggert@twinsun.com>
31658
31659         * gnulib-tool: Use "test -h", not "test -L", for portability
31660         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
31661         (tags_regexp): Remove, since \| doesn't conform to POSIX.
31662         (sed_extract_prog): Issue s commands one-by-one, rather than
31663         using \| in one s command.
31664
31665 2003-09-16  Paul Eggert  <eggert@twinsun.com>
31666
31667         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
31668         input error, instead of returning NULL the next time we are called
31669         (and therefore losing track of errno).
31670
31671 2003-09-16  Bruno Haible  <bruno@clisp.org>
31672
31673         * gnulib-tool (func_create_testdir): Warn about duplicated
31674         dependencies.
31675
31676 2003-09-15  Paul Eggert  <eggert@twinsun.com>
31677
31678         * modules/argmatch, modules/fatal, modules/obstack,
31679         modules/xalloc, modules/xgethostname: Sort dependencies by
31680         importance, not alphabetically.
31681
31682 2003-09-15  Paul Eggert  <eggert@twinsun.com>
31683
31684         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
31685         fails, so that the caller gets the proper errno.
31686
31687         * lib/readutmp.c (read_utmp): Likewise.
31688         Check for fstat error.  Close stream and free storage
31689         when failing.
31690
31691 2003-09-14  Karl Berry  <karl@gnu.org>
31692
31693         * config/srclist.txt (strdup.c): disable for c89 changes.
31694
31695 2003-09-14  Jim Meyering  <jim@meyering.net>
31696
31697         * lib/getloadavg.c: Correct cpp indentation.
31698         * lib/strdup.c: Likewise.
31699         * lib/vasnprintf.c: Likewise.
31700
31701 2003-09-14  Bruno Haible  <bruno@clisp.org>
31702
31703         * modules/fwriteerror: New file.
31704         * MODULES.html.sh (func_all_modules): Add fwriteerror.
31705
31706 2003-09-14  Bruno Haible  <bruno@clisp.org>
31707
31708         * lib/fwriteerror.h: New file.
31709         * lib/fwriteerror.c: New file.
31710
31711 2003-09-12  Paul Eggert  <eggert@twinsun.com>
31712
31713         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
31714         modules/xgethostname, modules/xalloc: Depend on exit.
31715
31716 2003-09-12  Paul Eggert  <eggert@twinsun.com>
31717
31718         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
31719
31720         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
31721         and AC_MINIX, too, so that their extensions are available.
31722
31723         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
31724         This macro has been superseded by gl_BACKUPFILE.
31725
31726         More patches to assume C89 or better.
31727
31728         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
31729
31730         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
31731         unconditionally.
31732         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
31733         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
31734         Include <string.h>, <stdlib.h> unconditionally.
31735         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
31736         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
31737         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
31738         headers or for string.h.
31739         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
31740         or strtoul.
31741
31742         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
31743         headers.
31744         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
31745         * m4/userspec.m4 (gl_USERSPEC): Likewise.
31746         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
31747         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
31748         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
31749         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
31750         memcpy, memset.
31751         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
31752         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
31753         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
31754         strtol.
31755         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
31756         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
31757         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
31758         strtoul.
31759
31760 2003-09-12  Paul Eggert  <eggert@twinsun.com>
31761
31762         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
31763         * lib/obstack.c [!defined _LIBC]: Likewise.
31764         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
31765         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
31766         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
31767
31768         More changes to assume C89 or better.
31769
31770         * lib/error.c (error_tail): Assume vprintf.
31771
31772         * lib/argmatch.c (getenv): Remove decl.
31773         * lib/progreloc.c (get_full_program_name): Define via prototype.
31774         * lib/setenv.c (clearenv): Likewise.
31775         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
31776         needed.
31777         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
31778         (malloc, memcpy): Remove decls.
31779         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
31780         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
31781         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
31782         (memcpy): Remove macro.
31783         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
31784         (__P): Remove.  All uses removed.
31785         (PTR): Remove.  All uses changed to void *.
31786         (CHAR_BIT, NULL): Remove.
31787         (spaces, zeros, memset_space, memset_zero)
31788         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
31789         Remove.
31790         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
31791         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
31792         Define with prototype.
31793         Remove now-unnecessary prototype decl.
31794         (extra_args_spec): Assume ANSI C.  All uses changed.
31795         (extra_args_spec_iso): Remove.
31796         (my_strftime, emacs_strftimeu): Define via prototype.
31797         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
31798         unconditionally.
31799         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
31800         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
31801         (strtoul, strtol): Remove decls.
31802         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
31803         LONG_MAX): Remove.
31804         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
31805         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
31806         (LOCALE_PARAM_PROTO): New macro.
31807         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
31808         (INTERNAL (strtol), strtol): Define with a prototype.
31809         (PARAMS): Remove.  All uses removed.
31810         * lib/tempname.c: Include <string.h> unconditionally.
31811         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
31812         * lib/xgethostname.c (main): Define with a prototype.
31813         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
31814         Include <stdlib.h> unconditionally.
31815         (calloc, malloc, realloc, free): Remove decls.
31816         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
31817         Include <stdlib.h> unconditionally.  Sort include file names.
31818         (strtod): Remove.
31819         (xstrtod): Define with a prototype.
31820         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
31821         (strtol, strtoul): Remove decls.
31822
31823 2003-09-11  Paul Eggert  <eggert@twinsun.com>
31824
31825         More patches to assume C89 or better.
31826         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
31827         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
31828         string.h, memchr, STDC_HEADERS.
31829
31830 2003-09-11  Paul Eggert  <eggert@twinsun.com>
31831
31832         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
31833         Include <stdlib.h>, <string.h> unconditionally.
31834         Remove now-unnecessary cast to char *.
31835         * lib/strnlen.c: Include <string.h> unconditionally.
31836         * lib/yesno.c (yesno): Define with a prototype.
31837
31838 2003-09-11  Bruno Haible  <bruno@clisp.org>
31839
31840         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
31841
31842 2003-09-10  Jim Meyering  <jim@meyering.net>
31843
31844         * lib/error.c: Correct indentation of cpp directives.
31845
31846 2003-09-10  Bruno Haible  <bruno@clisp.org>
31847
31848         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
31849         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
31850         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
31851         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
31852         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
31853         <stdlib.h> and <string.h> checks.
31854         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
31855         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
31856
31857 2003-09-10  Bruno Haible  <bruno@clisp.org>
31858
31859         * lib/strcspn.c: Include <string.h> unconditionally.
31860         * lib/strpbrk.c: Include <string.h> unconditionally.
31861         * lib/strstr.c: Include <string.h> unconditionally.
31862         * lib/unicodeio.c: Include <string.h> unconditionally.
31863         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
31864         * lib/unsetenv.c: Likewise.
31865         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
31866         * lib/yesno.c: Include <stdlib.h> unconditionally.
31867         (rpmatch): Add prototype.
31868
31869 2003-09-09  Paul Eggert  <eggert@twinsun.com>
31870
31871         More patches to assume C89 or better.
31872         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
31873         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
31874         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
31875         or for string.h.
31876         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
31877         stdlib.h.
31878         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
31879         C headers.
31880         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
31881         string.h.
31882         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
31883         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
31884         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
31885         or for string.h.
31886         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
31887         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
31888         C headers.
31889         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
31890         memcpy.
31891         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
31892         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
31893         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
31894         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
31895         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
31896         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
31897         string.h, free.
31898         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
31899         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
31900         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
31901         C headers, or for string.h.
31902         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
31903         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
31904         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
31905         headers, memory.h, stdlib.h, string.h, strings.h.
31906         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
31907         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
31908         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
31909         strchr.
31910         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
31911         headers, memory.h, string.h.
31912         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
31913         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
31914         free.
31915         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
31916         headers.
31917         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
31918         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
31919         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
31920         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
31921         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
31922
31923 2003-09-09  Paul Eggert  <eggert@twinsun.com>
31924
31925         More K&R removal.
31926
31927         * lib/acosl.c (main): Use a prototype.
31928         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
31929         tanl.c: Likewise.
31930
31931         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
31932
31933         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
31934         (getopt, etopt_long, getopt_long_only, _getopt_internal)
31935         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
31936         with a prototype.
31937         * lib/getopt.c (const): Remove macro.
31938         Include <string.h> unconditionally.
31939         (my_index): Remove; all uses changed to strchr.
31940         (strlen): Remove decl.
31941         (exchange): Remove forward decl; no longer needed.
31942         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
31943         Define with prototype.
31944         * lib/getopt1.c (const): Remove macro.
31945         (getopt_long, getopt_long_only, main): Define with prototype.
31946
31947         * lib/getugroups.c: Include <string.h> unconditionally.
31948
31949         * lib/getusershell.c: Include <stdlib.h> unconditionally.
31950         (getusershell, setusershell, endusershell, readname, main):
31951         Define with prototypes.
31952
31953         * lib/group-member.c: Include group-member.h first.
31954         Include <stdlib.h> unconditionally.
31955
31956         * lib/hard-locale.c: Include hard-locale.h first.
31957         Include <stdlib.h>, <string.h> unconditionally.
31958
31959         * lib/hash.c (free, malloc): Remove decls.
31960         Include <stdlib.h> unconditionally.
31961
31962         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
31963         (getenv): Do not declare.
31964
31965         * lib/idcache.c: Include <string.h> unconditionally.
31966
31967         * lib/long-options.c: Include long-options.h first, to test interface.
31968         Include <stdlib.h> unconditionally.
31969
31970         * lib/makepath.c: Include makepath.h first, to test interface.
31971         Include <stdlib.h> and <string.h> unconditionally.
31972
31973         * lib/linebuffer.c: Include <stdlib.h>.
31974         (free): Remove decl.
31975
31976         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
31977         stddef.h. rpl_malloc returns void *, not char *.
31978         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
31979         prototype.
31980
31981         * lib/md5.h: Include <limits.h> unconditionally.
31982         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
31983         (__P): Remove; all uses removed.
31984         * lib/md5.c: Include "md5.h" first.
31985         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
31986         md5_buffer, md5_process_bytes, md5_process_block):
31987         Define with prototypes.
31988         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
31989         * lib/sha.c: Include "sha.h" first.
31990         Include <stdlib.h>, <string.h> unconditionally.
31991
31992         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
31993         * lib/memcmp.c (__ptr_t): Likewise.
31994         * lib/memrchr.c (__ptr_t): Likewise.
31995         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
31996         Include <string.h> unconditionally.
31997         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
31998         * lib/memchr.c: Include <stdlib.h> unconditionally.
31999         * lib/memchr.c (LONG_MAX): Remove.
32000         * lib/memrchr.c (LONG_MAX): Likewise.
32001         * lib/memchr.c (__memchr): Define via a prototype.
32002         * lib/memrchr.c (__memrchr): Likewise.
32003         * lib/memcmp.c (__P): Remove, and remove all uses.
32004         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
32005         Remove forward decls; no longer needed.
32006         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
32007         Use types required by C89 in prototype.
32008
32009         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
32010         * lib/savedir.c: Likewise.
32011         * lib/mkdir.c (free): Remove decl.
32012         * lib/rmdir.c (rmdir): Define with a prototype.
32013         * lib/savedir.c: Include savedir.h first, to test interface.
32014
32015         * lib/mktime.c (STDC_HEADERS): Remove.
32016         Include <stdlib.h>, <string.h> unconditionally.
32017
32018         * lib/modechange.c: Include <stdlib.h> unconditionally.
32019         (malloc): Remove decl.
32020
32021         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
32022         (free): Remove decl.
32023
32024         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
32025         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
32026         (This type really should be intptr_t, but that's a C99ism.)
32027         (_obstack_memcpy): Remove: all uses changed to memcpy.
32028         Include <string.h> unconditionally.
32029         (struct obstack): Assume __STDC__ for types of members
32030         chunkfun, freefun, extra_arg.
32031         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
32032         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
32033         obstack_begin, obstack_specify_allocation,
32034         obstack_specify_allocation_with_arg, obstack_chunkfun,
32035         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
32036         Remove unprototyped decls and the macros that use them.
32037         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
32038         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
32039         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
32040         (defined __STDC__ && __STDC__)]:
32041         Remove nonprototyped code.
32042         Include <stdlib.h> unconditionally.
32043         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
32044         _obstack_allocated_p, _obstack_free, obstack_free,
32045         _obstack_memory_used, print_and_abort):
32046         Define using prototypes.
32047         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
32048         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
32049         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
32050         obstack_next_free, obstack_object_size, obstack_room) [0]:
32051         Remove unused, unprototyped code.
32052
32053         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
32054
32055         * lib/physmem.c (physmem_total, physmem_available, main): Define
32056         with prototypes.
32057
32058         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
32059         (main): Define with a prototype.
32060
32061         * lib/posixver.c (getenv): Remove decl.
32062
32063         * lib/putenv.c (malloc): Returns void *, not char *.
32064         Include <string.h> unconditionally.
32065         (strchr, memcpy, NULL): Do not define.
32066
32067         * lib/readtokens.c: Include readtokens.h first, to test interface.
32068         Include <stdlib.h>, <string.h> unconditionally.
32069         (init_tokenbuffer): Define with a prototype.
32070
32071         * lib/regex.c (PARAMS): Remove.  All uses removed.
32072         All uses of _RE_ARGS removed, too.
32073         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
32074         unconditionally.
32075         (bzero): Assume memset exists.
32076         (memcmp, memcpy, NULL): Remove.
32077         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
32078         char, or assignments to local vars of type signed char.
32079         (init_syntax_once, PREFIX(extract_number_and_incr),
32080         PREFIX(print_partial_compiled_pattern),
32081         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
32082         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
32083         PREFIX(regex_grow_registers), PREFIX(regex_compile),
32084         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
32085         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
32086         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
32087         wcs_compile_range, byte_compile_range, truncate_wchar,
32088         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
32089         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
32090         count_mbs_length, wcs_re_match_2_internal,
32091         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
32092         PREFIX(alt_match_null_string_p),
32093         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
32094         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
32095         regfree, PREFIX(extract_number)): Define with prototype.  Remove
32096         now-unnecessary declaration, if any.
32097         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
32098         regcomp, regexec):
32099         Remove now-unnecessary casts among pointer types.
32100         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
32101
32102         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
32103         (free): Remove decl.
32104
32105         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
32106
32107         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
32108         (free): Remove decl.
32109
32110         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
32111         * lib/xgetcwd.c: Likewise.
32112
32113         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
32114         (free): Remove decl.
32115
32116         * lib/strchrnul.c (strchrnul): Define with a prototype.
32117         Fix bug: c_in was not converted to char before searching.
32118
32119         The following changes are not K&R related:
32120
32121         * lib/group-member.h: Include <sys/types.h>, so that this file is
32122         self-contained.
32123         * lib/makepath.h: Likewise.
32124
32125         * lib/getusershell.c (readname, default_index, line_size, readname):
32126         Use size_t, not int, for sizes.
32127         (readname): If the size overflows, report an error instead of
32128         looping forever.
32129
32130 2003-09-09  Paul Eggert  <eggert@twinsun.com>
32131
32132         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
32133         libc.
32134
32135 2003-09-09  Paul Eggert  <eggert@twinsun.com>
32136
32137         * README: New section: portability guidelines.
32138
32139 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
32140
32141         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
32142         C89 spec.
32143
32144 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
32145
32146         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
32147
32148 2003-09-08  Paul Eggert  <eggert@twinsun.com>
32149
32150         Assume C89 or better; remove K&R cruft.
32151         A few of these changes were first proposed by Derek Robert Price
32152         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
32153
32154         * lib/addext.c: Include <string.h> unconditionally.
32155         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
32156         Don't declare getenv or malloc.
32157
32158         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
32159         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
32160         (NULL): Remove.
32161         (find_stack_direction, alloca): Use prototypes.
32162
32163         * lib/atexit.c (atexit): Define using a prototype.
32164
32165         * lib/basename.c, dirname.c, stripslash.c:
32166         Include <string.h> unconditionally.
32167
32168         * lib/bcopy.c: Include <stddef.h>.
32169         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
32170
32171         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
32172
32173         * lib/error.h (error, error_at_line, error_print_progname)
32174         [! (defined (__STDC__) && __STDC__)]: Remove decls.
32175         * lib/error.c: Include error.h first, to check interface.
32176         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
32177         (VA_START): Remove; all uses changeed to va_start.
32178         (exit, strerror): Remove decls.
32179         (error_print_progname): Prototype uncondionally.
32180         Don't include <errno.h>; no longer needed.
32181         (private_strerror): Remove.
32182         (error_tail): Always define.
32183         (error, error_at_line): Assume C89 or better; always use prototypes.
32184         * lib/fatal.c: Include "fatal.h" first, to test interface.
32185         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
32186         (VA_START): Remove; all uses changed to va_start.
32187         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
32188         this case.
32189         (exit): Remove decl.
32190         (fatal): Prototype unconditionally.  Assume va_start works.
32191         Abort at end, to pacify gcc.
32192
32193         * lib/euidaccess.c (main): Define with a prototype.
32194
32195         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
32196
32197         * lib/exitfail.c: Include <stdlib.h> unconditionally.
32198
32199         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
32200         prototypes.
32201         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
32202         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
32203         (getenv): Remove decl.
32204         (fnmatch): Define using a prototype.
32205         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
32206         (FCT): Define using a prototype.
32207
32208         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
32209
32210         * lib/gethostname.c: Include <stddef.h>.
32211         (gethostname): Define with prototype.  Length is size_t, not int.
32212
32213 2003-09-08  Paul Eggert  <eggert@twinsun.com>
32214
32215         Assume C89 or better; remove K&R cruft.
32216         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
32217         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
32218         string.h, getenv, malloc.
32219         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
32220         headers.
32221         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
32222         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
32223         do not check for strerror.
32224         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
32225         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
32226         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
32227         do not check for doprnt or vprintf.
32228         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
32229         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
32230
32231 2003-09-08  Paul Eggert  <eggert@twinsun.com>
32232
32233         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
32234         getversion.c should have been removed then, but was accidentally
32235         preserved.
32236
32237         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
32238         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
32239
32240 2003-09-08  Karl Berry  <karl@gnu.org>
32241
32242         * config/config.sub, config.guess, srclistvars.sh: update from savannah
32243                 config, forget about prep.
32244
32245         * config/depcomp, missing: update from automake.
32246
32247 2003-09-07  Paul Eggert  <eggert@twinsun.com>
32248
32249         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
32250         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
32251
32252 2003-09-07  Paul Eggert  <eggert@twinsun.com>
32253
32254         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
32255         copy_tm_result.  Bug reported by Simon Josefsson in
32256         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
32257
32258 2003-09-06  Paul Eggert  <eggert@twinsun.com>
32259
32260         * m4/time_r.m4: New file.
32261         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
32262         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
32263         is. Check for timegm declaration.
32264         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
32265         Do not check for gmtime_r.
32266         Replace mktime if __mktime_internal does not exist and if mktime
32267         hasn't been replaced already.
32268
32269 2003-09-06  Paul Eggert  <eggert@twinsun.com>
32270
32271         * lib/time_r.c, lib/time_r.h: New files.
32272
32273         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
32274         __localtime_r.
32275         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
32276         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
32277
32278         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
32279         __gmtime_r.
32280         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
32281         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
32282         Include <time_r.h>.
32283
32284         * lib/timegm.c: Switch to glibc implementation, with the following
32285         changes:
32286         [defined HAVE_CONFIG_H]: Include <config.h>.
32287         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
32288         (__mktime_internal) [!defined _LIBC]: New decl.
32289         (__gmtime_r) [!defined _LIBC]: New macro and function.
32290         (timegm): Use a prototype, since gnulib assumes C89.
32291         Do not bother declaring tmp to be const, as it's not really usefu.
32292         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
32293         (timegm): Declare only if HAVE_DECL_TIMEGM.
32294
32295 2003-09-06  Paul Eggert  <eggert@twinsun.com>
32296
32297         * MODULES.html.sh (func_all_modules): Add time_r.
32298         * modules/time_r: New file.
32299         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
32300         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
32301
32302 2003-09-03  Paul Eggert  <eggert@twinsun.com>
32303
32304         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
32305         Bug reported by Lute Kamstra in
32306         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
32307
32308         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
32309         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
32310         course with correspondingly smaller numbers for tomorrow and
32311         yesterday.  From Tadayoshi Funaba.  Originally installed into
32312         sh-utils on 1999-08-07, but the patch got lost (I guess during the
32313         coreutils merge?).
32314
32315 2003-08-31  Simon Josefsson  <jas@extundo.com>
32316
32317         * modules/timegm: New file.
32318         * MODULES.html.sh (func_all_modules): Add timegm.
32319
32320 2003-08-31  Simon Josefsson  <jas@extundo.com>
32321
32322         * m4/timegm.m4: New file.
32323
32324 2003-08-31  Simon Josefsson  <jas@extundo.com>
32325
32326         * lib/timegm.h: New file.
32327         * lib/timegm.c: New file.  Based on
32328         wget-1.8.2/src/http.c:mktime_from_utc.
32329
32330 2003-08-31  Karl Berry  <karl@gnu.org>
32331
32332         * lib/argp.h: update from libc.
32333
32334 2003-08-28  Bruno Haible  <bruno@clisp.org>
32335
32336         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
32337         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
32338         followed by '#define fnmatch fnmatch_posix' gives an error.
32339
32340 2003-08-28  Bruno Haible  <bruno@clisp.org>
32341
32342         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
32343         warning on QNX, which defines O_BINARY to 000000.
32344
32345 2003-08-27  Jim Meyering  <jim@meyering.net>
32346
32347         * m4/mkstemp.m4: Require that the system mkstemp be able to create
32348         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
32349         would fail after 32.  Reported by Danny Levinson.  Details here:
32350         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
32351
32352 2003-08-24  Bruno Haible  <bruno@clisp.org>
32353
32354         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
32355         MSVC7 <stdio.h> is included later.
32356
32357 2003-08-22  Simon Josefsson  <jas@extundo.com>
32358
32359         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
32360
32361 2003-08-20  Karl Berry  <karl@gnu.org>
32362
32363         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
32364
32365 2003-08-20  Bruno Haible  <bruno@clisp.org>
32366
32367         * modules/progname: New file.
32368         * MODULES.html.sh (func_all_modules): Add progname.
32369
32370 2003-08-20  Bruno Haible  <bruno@clisp.org>
32371
32372         * lib/progname.h: New file, from GNU gettext.
32373         * lib/progname.c: New file, from GNU gettext.
32374         * lib/progreloc.c: New file, from GNU gettext.
32375
32376 2003-08-19  Jim Meyering  <jim@meyering.net>
32377
32378         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
32379         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
32380
32381 2003-08-19  Bruno Haible  <bruno@clisp.org>
32382
32383         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
32384         more.
32385
32386 2003-08-19  Bruno Haible  <bruno@clisp.org>
32387
32388         * lib/xstrdup.c: Assume <string.h> exists.
32389
32390 2003-08-18  Paul Eggert  <eggert@twinsun.com>
32391
32392         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
32393         in makefile rules.
32394
32395 2003-08-18  Jim Meyering  <jim@meyering.net>
32396
32397         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
32398         * m4/lib-ld.m4: Likewise.
32399
32400 2003-08-18  Jim Meyering  <jim@meyering.net>
32401
32402         * lib/setenv.h: Indent nested cpp directive.
32403         * lib/vasnprintf.c: Remove trailing blanks.
32404
32405 2003-08-17  Simon Josefsson  <jas@extundo.com>
32406
32407         * modules/xstrndup: New file.
32408         * MODULES.html.sh (func_all_modules): Add xstrndup.
32409
32410 2003-08-17  Simon Josefsson  <jas@extundo.com>
32411
32412         * modules/argp: Fix autoconf macro name. Add more dependencies.
32413
32414 2003-08-17  Simon Josefsson  <jas@extundo.com>
32415
32416         * m4/xstrndup.m4: New file.
32417
32418 2003-08-17  Simon Josefsson  <jas@extundo.com>
32419
32420         * m4/argp.m4: New file.
32421
32422 2003-08-17  Simon Josefsson  <jas@extundo.com>
32423             Bruno Haible  <bruno@clisp.org>
32424
32425         * lib/xstrndup.h: New file.
32426         * lib/xstrndup.c: New file.
32427
32428 2003-08-17  Bruno Haible  <bruno@clisp.org>
32429
32430         * modules/strndup (Files, Include): Add lib/strndup.h.
32431
32432 2003-08-17  Bruno Haible  <bruno@clisp.org>
32433
32434         * modules/euidaccess (Files): Add lib/euidaccess.h.
32435
32436 2003-08-17  Bruno Haible  <bruno@clisp.org>
32437
32438         * lib/strndup.h: New file.
32439
32440 2003-08-17  Bruno Haible  <bruno@clisp.org>
32441
32442         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
32443         like AC_GNU_SOURCE.
32444         * modules/extensions (configure.ac): Comment out the invocation of
32445         gl_USE_SYSTEM_EXTENSIONS.
32446
32447 2003-08-16  Paul Eggert  <eggert@twinsun.com>
32448
32449         Merges from coreutils, etc.
32450         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
32451         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
32452         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
32453         fixing a typo.
32454         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
32455         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
32456
32457 2003-08-16  Paul Eggert  <eggert@twinsun.com>
32458
32459         Document merge from coreutils.
32460         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
32461         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
32462         * modules/utime: Add m4/utimes-null.m4.
32463
32464 2003-08-16  Paul Eggert  <eggert@twinsun.com>
32465
32466         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
32467         space, undoing this 2003-08-12 change:
32468         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
32469
32470 2003-08-16  Paul Eggert  <eggert@twinsun.com>
32471
32472         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
32473         strtoul.c from libc, undoing this 2003-08-12 change:
32474         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
32475
32476 2003-08-16  Jim Meyering  <jim@meyering.net>
32477
32478         Merges from coreutils.
32479         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
32480         prefix.  Adjust cache variables similarly.  Create 500 rather than
32481         just 300 files, to exercise bug on Darwin6.5, too.
32482         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
32483         $missing_dir.
32484         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
32485         AM_SYS_POSIX_TERMIOS.
32486         Reported by mkc@mathdogs.com.
32487         Also change use of $am_cv_sys_posix_termios
32488         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
32489         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
32490         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
32491         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
32492         in /proc/mounts until it finds one with matching device number.  This
32493         is unnecessary when the FILE argument *is* a mount point.  No stat call
32494         is necessary in that case.  So, disable the statvfs-testing code on
32495         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
32496         as RedHat bug# 84846.
32497         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
32498         to 1MB, so as not to render systems with no stack size limit (e.g.,
32499         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
32500         Include <unistd.h>.  On some systems,
32501         it is required for the definition of _SC_PAGESIZE.
32502
32503 2003-08-16  Jim Meyering  <jim@meyering.net>
32504
32505         Merge from coreutils.
32506         * lib/xstrtoimax.c: #else #if -> #elif.
32507         * lib/xstrtoumax.c: Likewise.
32508
32509 2003-08-16  Jim Meyering  <jim@meyering.net>
32510
32511         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
32512         * m4/utimes.m4: Removed.
32513         * m4/utimes-null.m4: Renamed from utimes.m4.
32514
32515         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
32516         to 1MB, so as not to render systems with no stack size limit (e.g.,
32517         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
32518         Include <unistd.h>.  On some systems,
32519         it is required for the definition of _SC_PAGESIZE.
32520
32521 2003-08-16  Jim Meyering  <jim@meyering.net>
32522         and Paul Eggert  <eggert@cs.ucla.edu>
32523
32524         Merges from coreutils, etc.
32525
32526         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
32527         using the latest version from cvs.  This avoids problems with #line
32528         directives using a vendor (Sun) compiler.
32529         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
32530         Don't set GETGROUPS_LIB here; now it's
32531         done via getgroups.m4's wrapper function.
32532         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
32533         rather than just in sh-util/configure.in, so that the
32534         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
32535         same.
32536         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
32537         AC_FUNC_GETLOADAVG where to find getloadavg.c.
32538         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
32539         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
32540         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
32541         Remove code that is now done by the newly-required macros.
32542         Append $(EXEEXT) to DF_PROG.
32543         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
32544         Do not invoke or require the following here,
32545         since prereq.m4 or some gnulib .m4 now does this for us:
32546         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
32547         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
32548         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
32549         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
32550         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
32551         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
32552         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
32553         AC_FUNC_OBSTACK.
32554         Do not replace the following functions, as this is now the job
32555         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
32556         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
32557         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
32558         atexit getpass, strdup, getpagesize.
32559         Replace 'raise'.
32560         Do not check for the following functions, as this is now the job
32561         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
32562         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
32563         setregid.
32564         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
32565         Check for sys/sysctl.h.
32566         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
32567         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
32568         of checking for ssize_t ourselves.
32569
32570         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
32571         Require every macro that gnulib/modules/* suggests for us.
32572         (jm_PREREQ_ADDEXT): New macro.
32573         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
32574         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
32575
32576         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
32577         (gl_PHYSMEM): Use it.
32578         Also check for `table' function.
32579         Check for new headers and functions.
32580         Add check for sys/sysmp.h.
32581         With suggestions from Kaveh Ghazi.
32582         Ignore headers that are present but cannot be compiled.  This
32583         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
32584         C 5.4.
32585
32586 2003-08-15  Paul Eggert  <eggert@twinsun.com>
32587
32588         Document merge from coreutils.
32589         * modules/userspec: Depend on posixver.
32590         * modules/strftime: Depend on tzset.
32591
32592 2003-08-15  Paul Eggert  <eggert@twinsun.com>
32593
32594         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
32595         rather than tab, after '#' in shell-script copyright notices.
32596         Suggested by Bruno Haible.
32597
32598 2003-08-15  Paul Eggert  <eggert@twinsun.com>
32599
32600         * config/srclist-update: Use three spaces, rather than tab, after '#'
32601         in shell-script copyright notices.  Suggested by Bruno Haible.
32602         Remove unnecessary parenthesization in regular expression.
32603
32604 2003-08-15  Jim Meyering  <jim@meyering.net>
32605
32606         Merge from coreutils.
32607         * lib/xgethostname.c: Include <stdlib.h>.
32608         (xghostname): Don't exit for anything other than memory-related
32609         failure; just return NULL.
32610         * lib/userspec.c: Include "posixver.h".
32611         (parse_user_spec): Accept `.' as a separator only
32612         in pre-POSIX-200112 mode.
32613         * lib/strtoimax.c: Use #elif rather than #else #if.
32614         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
32615         Remove function, now that we can rely on a working tzset function.
32616         [!_LIBC]: Ensure that the required autoconf test has been run.
32617         [!defined _NL_CURRENT && HAVE_STRFTIME]:
32618         Use underlying_strftime for %r.
32619         * lib/sha.c: Merge in some clean-up and optimization changes from
32620         glibc.
32621         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
32622         Ensure that it is a multiple of 64.
32623         Rearrange loop exit tests so as to avoid performing an
32624         additional fread after encountering an error or EOF.
32625         * lib/realloc.c: Update copyright date.
32626
32627 2003-08-15  Jim Meyering  <jim@meyering.net>
32628         and Paul Eggert  <eggert@twinsun.com>
32629
32630         Merge from coreutils.
32631         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
32632         member but strut utmpx does not.  Needed for AIX 4.3.3.
32633         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
32634
32635 2003-08-15  Jim Meyering  <jim@meyering.net>
32636         and Paul Eggert  <eggert@cs.ucla.edu>
32637
32638         Merges from coreutils, etc.
32639         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
32640         Require gl_FUNC_TZSET_CLOBBER.
32641         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
32642         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
32643         members.
32644
32645 2003-08-14  Paul Eggert  <eggert@twinsun.com>
32646
32647         Help the merge from coreutils.
32648         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
32649         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
32650         * m4/tzset.m4: Use it too.
32651
32652 2003-08-14  Paul Eggert  <eggert@twinsun.com>
32653
32654         * modules/tzset: New file.
32655
32656 2003-08-14  Jim Meyering  <jim@meyering.net>
32657
32658         Merges from coreutils.
32659         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
32660         variable names, rather than @FNMATCH_H@.
32661         * modules/alloca: Likewise for $(ALLOCA_H).
32662
32663         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
32664         the three copies of the literal target, `fnmatch.h'.
32665         * modules/alloca (alloca.h): Likewise.
32666
32667 2003-08-14  Jim Meyering  <jim@meyering.net>
32668
32669         Merge from coreutils.
32670         * m4/tzset.m4: New file.
32671         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
32672         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
32673         otherwise, AIX 5.1 systems would end up using the latter.
32674         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
32675         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
32676         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
32677         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
32678
32679 2003-08-14  Jim Meyering  <jim@meyering.net>
32680
32681         Merge from coreutils.
32682         * lib/obstack.h: Whitespace changes.
32683         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
32684         and xcalloc return values.
32685         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
32686         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
32687         hang on OSF/1 5.1 for DIR on both local and remote file systems.
32688         Reported by (and fix confirmed by) Nelson H. F. Beebe.
32689         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
32690         error from mntctl.
32691         Use mntctl's return value to drive the entry-processing loop, since
32692         we can't rely on the value of the vmt_length member in the last
32693         entry.  On some systems doing so could result in exhausting
32694         virtual memory.  Based in part on a patch from Mike Jetzer.
32695
32696 2003-08-14  Jim Meyering  <jim@meyering.net>
32697         and Paul Eggert  <eggert@twinsun.com>
32698
32699         Merges from coreutils, plus other fixes.
32700         * lib/physmem.c: Merge in portability changes from gcc/libiberty
32701         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
32702         for credits and details.  Thanks to Kaveh Ghazi for helping
32703         to keep these files in sync.
32704         (ARRAY_SIZE): Define it.
32705         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
32706         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
32707         (memcasecmp): Don't assume size_t fits in unsigned int.
32708         Remove casts and duplicate code.
32709         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
32710         (memcpy): Remove definition.
32711         Merge in some clean-up and optimization changes from glibc.
32712         [BLOCKSIZE]: Move definition to top of file.
32713         Ensure that it is a multiple of 64.
32714         Rearrange loop exit tests so as to avoid performing an
32715         additional fread after encountering an error or EOF.
32716         * lib/md5.h (md5_uintptr): Define.
32717         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
32718         return to the initial working directory.  Preserve errno
32719         for caller.
32720         * lib/idcache.c: Include "xalloc.h".
32721         (xmalloc, xrealloc): Remove decls.
32722         (getuser): Remove casts no longer required in C89.
32723         * lib/human.c: Include stdio.h, for sprintf.
32724         * lib/group-member.c: Include "xalloc.h".
32725         (xmalloc, xrealloc): Remove decls.
32726         (get_group_info): Remove casts no longer required in C89.
32727         * lib/getusershell.c (readname): Remove casts no longer required in
32728         C89.
32729         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
32730         * lib/getline.c: Whitespace fix, from coreutils.
32731
32732 2003-08-13  Paul Eggert  <eggert@twinsun.com>
32733
32734         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
32735         Check for isascii.
32736
32737         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
32738         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
32739         Undo previous (whitespace-only) change.
32740
32741 2003-08-13  Paul Eggert  <eggert@twinsun.com>
32742
32743         * lib/exclude.c: Include <ctype.h>
32744         (IN_CTYPE_DOMAIN): New macro.
32745         (is_space): New fn.
32746         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
32747         and empty lines.
32748
32749         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
32750         Undo previous (whitespace-only) change.
32751
32752 2003-08-13  Paul Eggert  <eggert@twinsun.com>
32753
32754         * config/srclist-update: Change update back to the old behavior,
32755         leaving whitespace alone.  Use one 'sed' command rather than a
32756         pipeline.
32757         (fixlicense): Now a variable, not a function.
32758         (remove_trailing_blanks): Remove.
32759         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
32760         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
32761         Undo previous (whitespace-only) change.
32762
32763 2003-08-12  Paul Eggert  <eggert@twinsun.com>
32764
32765         Merge from coreutils.
32766         * modules/euidaccess: Add lib_SOURCES, include for new
32767         file euidaccess.h
32768
32769 2003-08-12  Paul Eggert  <eggert@twinsun.com>
32770
32771         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
32772         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
32773         Normalize leading white space and remove trailing white space.
32774
32775         Merge from coreutils
32776         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
32777
32778         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
32779         0.12.1.  These files are now being upgraded automatically by
32780         ../config/srclist-update.
32781
32782 2003-08-12  Paul Eggert  <eggert@twinsun.com>
32783
32784         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
32785         Normalize leading white space and remove trailing white space.
32786         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
32787         notice, as per ../config/srclist-update.
32788
32789         Merge from coreutils.
32790         * lib/euidaccess.h: New file.
32791         * lib/euidaccess.c: Include it.
32792         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
32793         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
32794         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
32795
32796 2003-08-12  Paul Eggert  <eggert@twinsun.com>
32797
32798         * config/srclist-update: Add copyright notice.
32799         (remove_id_lines, remove_trailing_blanks): New constants.
32800         (fixfile): Use them to normalize spacing a bit in copied files.
32801         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
32802         Normalize leading white space and remove trailing white space.
32803
32804         * config/texinfo.tex: Sync with texinfo.
32805
32806         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
32807         strtoul.c from libc, to merge coreutils whitespace changes.
32808
32809         * config/srclist.txt: Get the following m4 files from gettext:
32810         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
32811         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
32812         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
32813         wint_t.m4.
32814
32815 2003-08-12  Karl Berry  <karl@gnu.org>
32816
32817         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
32818         been made.
32819
32820 2003-08-11  Paul Eggert  <eggert@twinsun.com>
32821
32822         * modules/gnu-source, m4/gnu-source.m4:
32823         Remove; we're assuming Autoconf 2.54 or later now.
32824         Suggested by Bruno Haible.
32825         * MODULES.html.sh (func_all_modules): Remove gnu-source.
32826
32827 2003-08-11  Bruno Haible  <bruno@clisp.org>
32828
32829         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
32830
32831 2003-08-11  Bruno Haible  <bruno@clisp.org>
32832
32833         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
32834         (vasnprintf): Use it instead of wcslen.
32835
32836 2003-08-11  Bruno Haible  <bruno@clisp.org>
32837
32838         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
32839         value to ensure that _Bool promotes to int. Use #define for _Bool when
32840         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
32841
32842 2003-08-10  Karl Berry  <karl@gnu.org>
32843
32844         * lib/regex.h: update from libc (whitespace fix).
32845
32846 2003-08-09  Paul Eggert  <eggert@twinsun.com>
32847
32848         Merge some files from coreutils.  These changes were
32849         originally made by Jim Meyering.
32850         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
32851         many older Unixes require this.
32852         * lib/alloca.c (alloca): Remove cast to argument of free;
32853         no longer needed in C89.
32854         * lib/alloca_.h, regex.h: Fix white space to match
32855         what GNU indent does.
32856
32857 2003-08-09  Paul Eggert  <eggert@twinsun.com>
32858
32859         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
32860         apparently Emacs's Unicode mode got confused before my 2003-08-05
32861         checkin.
32862
32863 2003-08-08  Paul Eggert  <eggert@twinsun.com>
32864
32865         * m4/extensions.m4: New file.
32866         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
32867         Require gl_USE_SYSTEM_EXTENSIONS.
32868         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
32869         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
32870
32871 2003-08-08  Paul Eggert  <eggert@twinsun.com>
32872
32873         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
32874         * modules/extensions, modules/gnu-source: New files.
32875         * modules/timespec, modules/unlocked-io: Depend on extensions.
32876
32877 2003-08-07  Paul Eggert  <eggert@twinsun.com>
32878
32879         * modules/restrict: New file.
32880         * MODULES.html.sh (func_all_modules): Add restrict.
32881         * modules/regex: Depend on restrict.
32882
32883 2003-08-07  Paul Eggert  <eggert@twinsun.com>
32884
32885         * m4/restrict.m4: New file.
32886         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
32887
32888 2003-08-07  Bruno Haible  <bruno@clisp.org>
32889
32890         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
32891         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
32892
32893 2003-08-07  Bruno Haible  <bruno@clisp.org>
32894
32895         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
32896         makes the module 'getndelim2' compatible with the module 'getline'.
32897
32898 2003-08-05  Paul Eggert  <eggert@twinsun.com>
32899
32900         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
32901         byte with "\201" to avoid glitches when editing that source file
32902         with multi-gnome-terminal.
32903
32904 2003-08-05  Paul Eggert  <eggert@twinsun.com>
32905
32906         * lib/bumpalloc.h: Remove.
32907
32908 2003-08-05  Paul Eggert  <eggert@twinsun.com>
32909
32910         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
32911         * modules/bumpalloc: Remove.
32912
32913 2003-08-04  Paul Eggert  <eggert@twinsun.com>
32914
32915         * lib/getloadavg.c: Change copyright notice and spacing to conform to
32916         GNU coding style.
32917
32918         Merge from coreutils.
32919         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
32920         1. From glibc.
32921         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
32922         from Karl Berry, implemented by Jim Meyering.
32923         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
32924         from Dmitry V. Levin.
32925         Remove anachronistic cast of xrealloc.
32926         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
32927         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
32928         type. Otherwise, it wouldn't compile with at least /bin/cc on
32929         ymp-cray-unicos9.0.2.X.
32930         Combine two mostly-identical uses of alloca into one.
32931         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
32932
32933 2003-08-04  Dave Love  <d.love@dl.ac.uk>
32934
32935         [From Emacs.]
32936
32937         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
32938         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
32939         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
32940         obsolete NLIST_NAME_UNION.
32941         [__GNU__]: Undef BSD and FSCALE.
32942         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
32943
32944 2003-08-03  Paul Eggert  <eggert@twinsun.com>
32945
32946         * lib/stdbool_.h (_Bool): Make it signed char, instead of
32947         an enum type, so that it's guaranteed to promote to int.  See:
32948         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
32949
32950 2003-08-03  Karl Berry  <karl@gnu.org>
32951
32952         * config/depcomp: update from automake.
32953
32954 2003-07-31  Paul Eggert  <eggert@twinsun.com>
32955
32956         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
32957         (strerror): Don't assume that a printable int fits in 14 bytes.
32958
32959 2003-07-31  Bruno Haible  <bruno@clisp.org>
32960
32961         * modules/getpass-gnu: New file.
32962         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
32963
32964 2003-07-31  Bruno Haible  <bruno@clisp.org>
32965
32966         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
32967
32968 2003-07-24  Karl Berry  <karl@gnu.org>
32969
32970         * config/missing: update from automake.
32971
32972 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
32973             Bruno Haible  <bruno@clisp.org>
32974
32975         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
32976         * lib/getline.c (getline, getdelim): Likewise.
32977         Remove _GNU_SOURCE define; now it's defined in config.h through
32978         m4/getline.m4.
32979
32980 2003-07-23  Karl Berry  <karl@gnu.org>
32981
32982         * config/config.sub: update from prep.
32983
32984 2003-07-22  Paul Eggert  <eggert@twinsun.com>
32985
32986         * modules/xalloc (Depends-on): Add exitfail.
32987         * modules/xmemcoll: Likewise.
32988
32989 2003-07-22  Paul Eggert  <eggert@twinsun.com>
32990
32991         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
32992         over-parenthesization in macros.
32993
32994         Sync with coreutils.
32995
32996         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
32997         required by C99.
32998
32999         Use `exit_failure' for xalloc and xmemcoll instead of their own
33000         private exit-failure variables.
33001         * lib/xalloc.h (xalloc_exit_failure): Remove.
33002         * lib/xmalloc.c: Likewise.  Include exitfail.h.
33003         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
33004         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
33005         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
33006         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
33007
33008 2003-07-20  Jim Meyering  <jim@meyering.net>
33009
33010         * modules/closeout (Depends-on): Add exitfail.
33011         Suggestion from Bruno Haible.
33012
33013 2003-07-19  Karl Berry  <karl@gnu.org>
33014
33015         * config/config.sub: update from prep.
33016
33017 2003-07-18  Paul Eggert  <eggert@twinsun.com>
33018
33019         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
33020         Remove.
33021         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
33022         to test that it can stand by itself.  Include "exitfail.h".
33023         Clients should set exit_failure instead.
33024         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
33025
33026 2003-07-18  Bruno Haible  <bruno@clisp.org>
33027
33028         * modules/getndelim2: New file.
33029         * modules/getline: Share files with module getndelim2.
33030         * modules/getnline: Depend on getndelim2 instead of sharing files with
33031         it. Add getnline.c to lib_SOURCES.
33032         * MODULES.html.sh (func_all_modules): Add getndelim2.
33033
33034 2003-07-18  Bruno Haible  <bruno@clisp.org>
33035
33036         * m4/getndelim2.m4: New file.
33037         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
33038         invoke gl_PREREQ_GETNDELIM2.
33039         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
33040         gl_PREREQ_GETNDELIM2.
33041         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
33042         gl_GETNDELIM2.
33043
33044 2003-07-18  Bruno Haible  <bruno@clisp.org>
33045
33046         * lib/getndelim2.h: New file.
33047         * lib/getndelim2.c: Make into a module of its own. Include config.h,
33048         getndelim2.h.
33049         (getndelim2): Make non-static. Change return type to ssize_t.
33050         * lib/getline.h: Change argument names.
33051         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
33052         * lib/getnline.c: Include getndelim2.h.
33053
33054 2003-07-18  Andreas Schwab  <schwab@suse.de>
33055
33056         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
33057
33058 2003-07-17  Karl Berry  <karl@gnu.org>
33059
33060         * config/config.sub: update from prep.
33061
33062 2003-07-17  Bruno Haible  <bruno@clisp.org>
33063
33064         * modules/getnline: New file.
33065         * modules/getline: Add lib/getndelim2.c to source file list.
33066         * MODULES.html.sh (func_all_modules): Add getnline.
33067
33068 2003-07-17  Bruno Haible  <bruno@clisp.org>
33069
33070         * m4/getnline.m4: New file.
33071
33072 2003-07-17  Bruno Haible  <bruno@clisp.org>
33073
33074         * m4/Makefile.am.in: Remove file.
33075         * m4/Makefile.am: Remove file.
33076         * m4/Makefile.in: Remove file.
33077
33078 2003-07-17  Bruno Haible  <bruno@clisp.org>
33079
33080         * lib/getnline.h: New file.
33081         * lib/getnline.c: New file.
33082         * lib/getndelim2.c: New file, extracted from getline.c.
33083         (getndelim2): Renamed from getdelim2, with added nmax argument.
33084         * lib/getline.c: Include getndelim2.c.
33085         (getdelim2): Moved out to getndelim2.c.
33086         (getline, getdelim): Update.
33087
33088 2003-07-17  Bruno Haible  <bruno@clisp.org>
33089
33090         * lib/Makefile.am: Remove file.
33091         * lib/Makefile.in: Remove file.
33092
33093 2003-07-17  Bruno Haible  <bruno@clisp.org>
33094
33095         * configure.in: Remove file.
33096         * Makefile.in: Remove file.
33097
33098 2003-07-17  Bruno Haible  <bruno@clisp.org>
33099
33100         * MODULES.html.sh: Put the </BODY> right before </HTML>.
33101
33102 2003-07-16  Karl Berry  <karl@gnu.org>
33103
33104         * config/srclist-update: was running fixlicense twice, which caused
33105                 texinfo.tex to be nullified for some reason.  Simplify,
33106                 $gplsrc is no longer needed as far as I can see?
33107
33108 2003-07-16  Jim Meyering  <jim@meyering.net>
33109
33110         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
33111
33112 2003-07-15  Paul Eggert  <eggert@twinsun.com>
33113
33114         * config/srclist.txt: Get the following files from gettext-runtime/intl
33115         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
33116         ref-del.sin.  From Bruno Haible.
33117         * config/srclist-update (fixfile): Change grep pattern again, since the
33118         previous fix didn't work (there was another trailing $).  Use
33119         '[$]' to escape the $s.
33120
33121 2003-07-15  Karl Berry  <karl@gnu.org>
33122
33123         * lib/vasnprintf.c: update from gettext.
33124
33125 2003-07-15  Karl Berry  <karl@gnu.org>
33126
33127         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
33128         gets expanded when surrounded by '$'.
33129
33130 2003-07-15  Jim Meyering  <jim@meyering.net>
33131
33132         * modules/save-cwd: Don't depend on error.  From Derek Price.
33133
33134 2003-07-15  Jim Meyering  <jim@meyering.net>
33135
33136         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
33137
33138 2003-07-14  Simon Josefsson  <jas@extundo.com>
33139
33140         * modules/mempcpy: New file.
33141         * MODULES.html.sh (func_all_modules): Add mempcpy.
33142
33143 2003-07-14  Simon Josefsson  <jas@extundo.com>
33144
33145         * m4/mempcpy.m4: New file.
33146
33147 2003-07-14  Simon Josefsson  <jas@extundo.com>
33148
33149         * lib/mempcpy.h: New file.
33150         * lib/mempcpy.c: New file.
33151
33152 2003-07-14  Paul Eggert  <eggert@twinsun.com>
33153
33154         * modules/getdate, modules/posixtm: Depend on mktime.
33155
33156 2003-07-14  Paul Eggert  <eggert@twinsun.com>
33157
33158         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
33159         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
33160         unicodeio.c, unicodeio.h, unlocked-io.h:
33161         Switch from LGPL to GPL.
33162
33163 2003-07-14  Paul Eggert  <eggert@twinsun.com>
33164
33165         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
33166         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
33167         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
33168         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
33169         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
33170         updated automatically by ../config/srclist-update.  This changes
33171         their license from LPGL to GPL.
33172
33173 2003-07-14  Paul Eggert  <eggert@twinsun.com>
33174
33175         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
33176         assumed to refer to the root of the most recent stable gettext version.
33177         * config/srclistvars.sh: Add defaults for eggert.
33178         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
33179         Match "This program" as well as "The program".  This is needed
33180         for gettext.
33181
33182 2003-07-14  Jim Meyering  <jim@meyering.net>
33183
33184         Don't emit diagnostics.  Let callers do that.
33185         * lib/save-cwd.c: Don't include "error.h".
33186         (save_cwd): Don't call error.  Ensure that errno is valid
33187         when returning nonzero.
33188
33189         * lib/save-cwd.h (restore_cwd): Update prototype.
33190         * lib/save-cwd.c (restore_cwd): Remove two parameters.
33191         Simplify.  Don't call error upon failure.  Let callers do that.
33192         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
33193         when auditing is enabled.  But don't bother updating the #if.
33194
33195 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
33196
33197         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
33198         it breaks C++ compilation.
33199         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
33200
33201 2003-07-10  Simon Josefsson  <jas@extundo.com>
33202
33203         * modules/strchrnul (Makefile.am): Add strchrnul.h.
33204
33205 2003-07-10  Jim Meyering  <jim@meyering.net>
33206
33207         * m4/clock_time.m4: Remove trailing blank.
33208         * m4/intmax_t.m4: Likewise.
33209
33210 2003-07-10  Jim Meyering  <jim@meyering.net>
33211
33212         * lib/vasnprintf.c: Remove trailing blanks.
33213         Make cpp indentation consistent.
33214
33215 2003-07-09  Paul Eggert  <eggert@twinsun.com>
33216
33217         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
33218         posixver.c, strftime.c, strnlen.c, strverscmp.c:
33219         Switch from LGPL to GPL.
33220
33221 2003-07-09  Paul Eggert  <eggert@twinsun.com>
33222
33223         * config/srclist.txt: Sort sublists.  Add
33224         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
33225         that differ from gnulib for one reason or another; we'd like this list
33226         to be smaller but for now let's document what we have.
33227
33228 2003-07-08  Paul Eggert  <eggert@twinsun.com>
33229
33230         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
33231         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
33232         and sweeter "eval x=$x".
33233         * config/srclist.txt: Get lib/argp* from glibc.
33234
33235 2003-07-07  Paul Eggert  <eggert@twinsun.com>
33236
33237         * lib/mktime.c: Fix some boundary cases and remove need for floating
33238         point.
33239
33240         Issue a compile-time diagnostic if time_t is floating point, or if
33241         two's complement arithmetic is not in effect, or if arithmetic
33242         right shift does not propagate the sign.  These assumptions were
33243         all in the original code but they weren't checked.
33244
33245         (TIME_T_MIDPOINT, verify): New macros.
33246         (__isleap): Remove; it has integer overflow problems.
33247         (leapyear): New function, without those problems.
33248         (ydhms_tm_diff): Remove; splitting into two parts.
33249         (ydhms_diff): New function, containing the arithmetic part of
33250         the old ydhms_tm_diff function.  Issue a compile-time
33251         diagnostic if we are not using C99 integer division.
33252         Avoid casts when possible.
33253         (guess_time_tm): New function, containing the checking part of
33254         the old ydhms_tm_diff function.  Return the new value, rather than
33255         the difference between it and the old.  Accept a new argument T
33256         so that *T specifies the old value.  Check for overflow in the result.
33257
33258         (__mktime_internal): Use a time_t offset, not a long int offset.
33259         This undoes the 2003-06-04 change, which is no longer needed now
33260         that we have better overflow checking.
33261         (localtime_offset): Likewise.
33262
33263         (__mktime_internal): Avoid harmful overflow on hosts where time_t
33264         and long are 64-bit but int is only 32-bit.
33265         (ydhms_diff): Use long int to store year1 and yday1.
33266         Issue a compile-time diagnostic if long int is not wide enough.
33267
33268         (__mktime_internal): Use long int to store adjusted year and yday.
33269         Use plain C rather than preprocessor commands, if that doesn't
33270         affect efficiency.
33271         Check for overflow (and try to repair) after each probe
33272         rather than checking only at the very end.  This avoids some bugs
33273         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
33274         does not equal GMT offset at maximum time).
33275         Use integer to check for overflow rather than floating point; this
33276         is more portable to non-IEEE hosts, and is a tad faster.
33277         When we detect that we are oscillating between two values,
33278         don't check whether tm_isdst has the requested value, since
33279         we already know the answer.  When tm_isdst has the wrong value,
33280         use a different heuristic to find the right one, based on the
33281         extreme values actually observed in practice in tz2003a,
33282         rather than the (overly optimistic) "previous 3 calendar quarters".
33283
33284         (not_equal_tm, print_tm, check_result): Use "const T" rather than
33285         "T const" to accommodate glibc style.
33286         (check_result): Use less-confusing report format.  "long" -> "long int.
33287         (main): Likewise.
33288         Don't loop if the iteration overflows time_t.
33289         Allow a negative step in the iteration.
33290
33291 2003-07-06  Karl Berry  <karl@gnu.org>
33292
33293         * config/depcomp: update from automake.
33294         * config/config.sub: update from prep.
33295
33296 2003-07-03  Karl Berry  <karl@gnu.org>
33297
33298         * config/config.guess: update from prep.
33299
33300 2003-07-01  Paul Eggert  <eggert@twinsun.com>
33301
33302         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
33303         xreadlink.c now includes it unconditionally.
33304
33305 2003-07-01  Paul Eggert  <eggert@twinsun.com>
33306
33307         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
33308         having it depend on HAVE_SYS_TYPES_H.
33309
33310 2003-07-01  Bruno Haible  <bruno@clisp.org>
33311
33312         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
33313         <sys/types.h> should be sufficient.
33314         Reported by Paul Eggert.
33315
33316 2003-06-26  Karl Berry  <karl@gnu.org>
33317
33318         * config/depcomp: update from automake.
33319
33320 2003-06-26  Bruno Haible  <bruno@clisp.org>
33321
33322         * modules/human: Depend on module stdbool.
33323
33324 2003-06-25  Bruno Haible  <bruno@clisp.org>
33325
33326         * modules/readlink: New file.
33327         * modules/xreadlink: Depend on it.
33328         * MODULES.html.sh (func_all_modules): Add readlink.
33329
33330 2003-06-25  Bruno Haible  <bruno@clisp.org>
33331
33332         * m4/readlink.m4: New file.
33333
33334 2003-06-25  Bruno Haible  <bruno@clisp.org>
33335
33336         * lib/readlink.c: New file.
33337
33338 2003-06-22  Karl Berry  <karl@gnu.org>
33339
33340         * config/srclist.txt: update mkinstalldirs from automake.
33341         * config/mkinstalldirs: update.
33342
33343 2003-06-22  Bruno Haible  <bruno@clisp.org>
33344
33345         Portability to mingw32.
33346         * m4/ssize_t.m4: New file, from GNU gettext.
33347         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
33348         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
33349
33350 2003-06-22  Bruno Haible  <bruno@clisp.org>
33351
33352         * modules/safe-read: Add m4/ssize_t.m4.
33353         * modules/xreadlink: Add m4/ssize_t.m4.
33354
33355 2003-06-20  Bruno Haible  <bruno@clisp.org>
33356
33357         Assume C89, so PARAMS isn't needed.
33358         * lib/unicodeio.h (PARAMS): Remove.
33359         * lib/unicodeio.c: Don't use PARAMS.
33360
33361 2003-06-18  Karl Berry  <karl@gnu.org>
33362
33363         * config/config.{guess,sub}: update from prep.
33364
33365 2003-06-18  Jim Meyering  <jim@meyering.net>
33366
33367         Merge changes from coreutils.
33368         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
33369         Remove explicit declarations of xmalloc and realloc.
33370         Include xalloc.h.
33371         (read_utmp): Remove anachronistic cast of xmalloc.
33372
33373 2003-06-17  Paul Eggert  <eggert@twinsun.com>
33374
33375         Assume C89, so PARAMS isn't needed.
33376         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
33377         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
33378         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
33379         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
33380         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
33381         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
33382         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
33383         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
33384         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
33385         lib/xstrtod.h, lib/xstrtol.h: Likewise.
33386         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
33387         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
33388         no longer needed. Anyway, config.h should always be included before any
33389         other file.
33390
33391 2003-06-11  Simon Josefsson  <jas@extundo.com>
33392
33393         * modules/sysexits: New file.
33394         * MODULES.html.sh (func_all_modules): Add sysexits.
33395
33396 2003-06-11  Simon Josefsson  <jas@extundo.com>
33397
33398         * lib/sysexit_.h: New file.
33399
33400 2003-06-11  Derek Price  <derek@ximbiot.com>
33401
33402         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
33403         necessary.
33404
33405 2003-06-11  Bruno Haible  <bruno@clisp.org>
33406
33407         * m4/sysexits.m4: New file.
33408
33409 2003-06-10  Simon Josefsson  <jas@extundo.com>
33410
33411         * lib/argp.h: New file, from glibc.
33412         * lib/argp-ba.c: New file, from glibc.
33413         * lib/argp-eexst.c: New file, from glibc.
33414         * lib/argp-fmtstream.c: New file, from glibc.
33415         * lib/argp-fmtstream.h: New file, from glibc.
33416         * lib/argp-fs-xinl.c: New file, from glibc.
33417         * lib/argp-help.c: New file, from glibc.
33418         * lib/argp-namefrob.h: New file, from glibc.
33419         * lib/argp-parse.c: New file, from glibc.
33420         * lib/argp-pv.c: New file, from glibc.
33421         * lib/argp-pvh.c: New file, from glibc.
33422         * lib/argp-xinl.c: New file, from glibc.
33423
33424 2003-06-10  Simon Josefsson  <jas@extundo.com>
33425
33426         * modules/strchrnul: New file.
33427
33428 2003-06-10  Simon Josefsson  <jas@extundo.com>
33429
33430         * modules/argp: New file.
33431
33432 2003-06-10  Simon Josefsson  <jas@extundo.com>
33433
33434         * m4/strchrnul.m4: New file.
33435
33436 2003-06-10  Simon Josefsson  <jas@extundo.com>
33437
33438         * lib/strchrnul.h: New file.
33439         * lib/strchrnul.c: New file.
33440
33441 2003-06-10  Bruno Haible  <bruno@clisp.org>
33442
33443         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
33444
33445 2003-06-07  Karl Berry  <karl@gnu.org>
33446
33447         * config/config.{guess,sub}: update from prep.
33448
33449 2003-06-07  Jim Meyering  <jim@meyering.net>
33450
33451         * modules/strtod: Use $(...) notation, not @...@ for
33452         AC_REPLACE'd variables.
33453         * modules/localcharset: Likewise.
33454
33455 2003-06-07  Jim Meyering  <jim@meyering.net>
33456
33457         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
33458         in place of my name in the copyright comment.
33459         Remove definition and uses of __P.
33460
33461         From coreutils.
33462         * lib/stat.c: Don't declare xmalloc explicitly.
33463         Instead, include "xalloc.h".
33464         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
33465         xrealloc, and xcalloc return values.
33466         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
33467         Improve comment.
33468         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
33469
33470 2003-06-07  Bruno Haible  <bruno@clisp.org>
33471
33472         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
33473         avoid AC_CONFIG_LINKS.
33474         * modules/fnmatch (Makefile.am): Use explicit creation rule for
33475         fnmatch.h, to avoid AC_CONFIG_LINKS.
33476         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
33477
33478 2003-06-07  Bruno Haible  <bruno@clisp.org>
33479
33480         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
33481         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
33482         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
33483         directory.
33484         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
33485         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
33486         directory.
33487
33488 2003-06-06  Jim Meyering  <jim@meyering.net>
33489
33490         Merge from coreutils.
33491         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
33492         Consolidate declarations and initializations of *_base* locals.
33493
33494         Merge from coreutils.
33495         This avoids a core dump on systems without GNU putenv,
33496         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
33497         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
33498         (unsetenv): New static function, from GNU libc.
33499         (rpl_putenv): Use it.
33500
33501         * lib/modechange.c: Remove trailing blanks.
33502
33503         Merge from coreutils.
33504         * lib/fsusage.c: Remove declaration of statfs.
33505         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
33506
33507         * lib/posixtm.c: Include <stdbool.h> unconditionally.
33508
33509 2003-06-06  Jim Meyering  <jim@meyering.net>
33510
33511         * lib/stdbool_.h: Renamed from stdbool.h.in.
33512
33513 2003-06-06  Jim Meyering  <jim@meyering.net>
33514             Bruno Haible  <bruno@clisp.org>
33515
33516         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
33517         Adjust Makefile.am snippet not to redirect directly to target.
33518         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
33519
33520 2003-06-05  Paul Eggert  <eggert@twinsun.com>
33521
33522         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
33523         mismatch, look in future quarters as well as past.  This fixes a
33524         bug when processing fall-backwards gaps immediately after a long
33525         period of daylight-saving time.
33526
33527         * lib/mktime.c: Assume freestanding C89 or better.
33528         (HAVE_LIMITS_H): Remove.  Assume it's 1.
33529         (__P): Remove; not used.
33530         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
33531         (mktime, not_equal_tm, print_tm, check_result,
33532         main): Use prototypes.  Use const * where appropriate.
33533         (main): Fix typo in testing code that uncovered by above changes.
33534         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
33535
33536 2003-06-04  Paul Eggert  <eggert@twinsun.com>
33537
33538         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
33539         locale.h, localeconv.  This merges changes from coreutils.
33540
33541         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
33542         It can be removed after the next Autoconf is released.
33543         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
33544         needed.
33545
33546 2003-06-04  Paul Eggert  <eggert@twinsun.com>
33547
33548         * lib/mktime.c: Fix Debian bug 177940
33549         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
33550         (localtime_offset): Now long int, not time_t, because we want it
33551         to be guaranteed to be signed.  All uses changed.
33552         (__mktime_internal): If overflow would occur when adding offset,
33553         don't add it.
33554
33555         Merge 'human' changes from coreutils.  Rewrite to support
33556         locale-specific notations like thousands separators.
33557         * lib/human.c: Simplify authorship notice.
33558         Include human.h immediately after config.h.
33559         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
33560         <limits.h>: Do not include, since human.h does.
33561         (SIZE_MAX, UINTMAX_MAX): New macros.
33562         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
33563         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
33564         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
33565         (power_letter): Renamed from suffixes.
33566         (generate_suffix_backwards): Remove.
33567         (adjust_value): Now takes int style (because of human.h changes)
33568         and long double value (for greater precision on some platforms).
33569         (group_number): New function.
33570         (human_readable): Use it.  Use integer options, not enum.
33571         Put the options before the sizes in the arg list.
33572         Support all the new options.
33573         The old human_readable function has been removed;
33574         use inttostr.h instead.
33575         (human_readable, default_block_size, humblock):
33576         Use uintmax_t, not int, for block sizes.
33577         (human_readable_inexact, block_size_types): Remove.
33578         (block_size_opts): New constant.
33579         (human_options): Renamed from human_block_size, with new signature
33580         that allows block sizes up to UINTMAX_MAX.  All callers changed.
33581         * lib/human.h: Add copyright and authorship notice.
33582         Include <limits.h> and <stdbool.h> unconditionally.
33583         (PARAMS): Remove.  All uses removed.
33584         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
33585         (enum human_inexact_style): Remove tag; now a nameless enum.
33586         (human_floor, human_ceiling, human_round_to_even): Now have
33587         values 2, 0, 1 rather than -1, 1, 0.
33588         (human_group_digits, human_suppress_point_zero, human_autoscale,
33589         human_base_1024, human_SI, human_B): New constants.
33590         (human_readable_inexact, human_block_size): Remove.
33591         (human_readable): Size args are now uintmax_t, not int.
33592         (human_options): New decl.
33593
33594         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
33595         unnecessary now that we assume C89 or better.  This change
33596         imported from coreutils.
33597
33598         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
33599         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
33600         in the 2003-05-30 sync from glibc.
33601
33602         .h files should stand alone, but we shouldn't include <sys/types.h>
33603         if we can get away with just <stddef.h>.
33604
33605         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
33606         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
33607         rather than <sys/types.h>, as we merely need size_t.
33608         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
33609         to get size_t.
33610         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
33611         Include <stdio.h>, to get FILE.
33612         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
33613         memcasecmp.h has included <stddef.h> and all we need is size_t.
33614         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
33615         our interface, instead of including <sys/types.h>
33616
33617 2003-06-04  Paul Eggert  <eggert@twinsun.com>
33618
33619         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
33620         now, as glibc mktime is buggy on non-glibc systems.
33621
33622 2003-06-03  Karl Berry  <karl@gnu.org>
33623
33624         * config/config.sub: update from prep.
33625
33626 2003-06-02  Paul Eggert  <eggert@twinsun.com>
33627
33628         [from coreutils]
33629         Fix some minor time-related bugs with POSIX time arguments.
33630         Some valid time stamps were being rejected (notably -1, and
33631         time stamps before 1900 on 64-bit hosts).  And some invalid
33632         time stamps were being accepted, e.g. September 31.
33633
33634         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
33635         that we can return (time_t) -1 successfully.
33636         * lib/posixtm.c: Likewise.
33637         [HAVE_STDBOOL_H]: Include <stdbool.h>.
33638         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
33639         (t): Remove static var.
33640         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
33641         of static var.  All uses changed.
33642         (year): Do not reject years before 1900; they can occur with
33643         64-bit time_t.
33644         (posix_time_parse): Do not check for out-of-range components;
33645         that is now the caller's responsibility, since our checks were
33646         only approximations.
33647         (posixtime): Use mktime to check for out-of-range components,
33648         since it knows them exactly.
33649         If mktime returns (time_t) -1, check whether an error actually occurred
33650         by invoking localtime on -1.
33651         (main) [TEST_POSIXTIME]: Check for input data errors, and report
33652         posixtime failures better.
33653         Improve the test data (in comments only).
33654
33655 2003-06-02  Karl Berry  <karl@gnu.org>
33656
33657         * config/mkinstalldirs (version): new variable.
33658         (--version): new option.
33659         (usage): improve message.
33660
33661 2003-05-30  Karl Berry  <karl@gnu.org>
33662
33663         * lib/mktime.c: update from libc.
33664
33665 2003-05-30  Bruno Haible  <bruno@clisp.org>
33666
33667         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
33668         * config/config.rpath: Upgrade to gettext-0.12.1.
33669
33670 2003-05-30  Bruno Haible  <bruno@clisp.org>
33671
33672         * m4/gettext.m4: Upgrade to gettext-0.12.1.
33673         * m4/nls.m4: New file, from gettext-0.12.1.
33674         * m4/po.m4: New file, from gettext-0.12.1.
33675         * m4/progtest.m4: Upgrade to gettext-0.12.1.
33676
33677 2003-05-30  Bruno Haible  <bruno@clisp.org>
33678
33679         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
33680         * lib/localcharset.h: Likewise.
33681         * lib/localcharset.c: Likewise.
33682
33683 2003-05-29  Karl Berry  <karl@gnu.org>
33684
33685         * config/config.rpath: update from gettext.
33686
33687 2003-05-28  Paul Eggert  <eggert@twinsun.com>
33688
33689         Assume the headers required for C89 freestanding compilers.
33690         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
33691         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
33692         * m4/human.m4 (gl_HUMAN): Likewise.
33693         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
33694         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
33695         * m4/userspec.m4 (gl_USERSPEC): Likewise.
33696         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
33697         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
33698         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
33699
33700 2003-05-28  Paul Eggert  <eggert@twinsun.com>
33701
33702         Assume the headers required for C89 freestanding compilers.
33703         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
33704         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
33705         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
33706         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
33707         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
33708         define, since <limits.h> is guaranteed to do that.
33709         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
33710         * lib/exclude.c: Include <stdbool.h> unconditionally.
33711         * lib/tempname.c: Include <stddef.h> unconditionally.
33712         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
33713         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
33714         <stddef.h> does that.
33715         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
33716         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
33717         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
33718         needed.
33719         * lib/xstrtol.c: Likewise.
33720         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
33721         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
33722
33723         * lib/addext.c (addext): Use assignment rather than cast, to avoid
33724         warnings on some platforms.
33725
33726         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
33727         arbitrarily.
33728
33729 2003-05-26  Jim Meyering  <jim@meyering.net>
33730
33731         Merge in a change from coreutils:
33732         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
33733         that is guaranteed to be `no'.  Use `no_such_member' to indicate
33734         that condition, rather than `-1' which is slightly misleading.
33735         Change the name of the cache variable to have the gl_ prefix.
33736         Prompted by a patch from Richard Dawe for DJGPP.
33737
33738 2003-05-24  Karl Berry  <karl@gnu.org>
33739
33740         * config/config.guess: update from prep.
33741
33742 2003-05-22  Karl Berry  <karl@gnu.org>
33743
33744         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
33745
33746 2003-05-20  Karl Berry  <karl@gnu.org>
33747
33748         * config/config.guess: update from prep.
33749
33750 2003-05-18  Karl Berry  <karl@gnu.org>
33751
33752         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
33753         might actually be set by the user.
33754
33755         * config/depcomp, install-sh, mdate-sh: update from automake.
33756
33757 2003-05-17  Bruno Haible  <bruno@clisp.org>
33758
33759         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
33760         invalid expansion for AC_EGREP_CPP.
33761         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
33762         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
33763         Suggested by Akim Demaille <akim@epita.fr> in
33764         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
33765
33766 2003-05-12  Jim Meyering  <jim@meyering.net>
33767
33768         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
33769         the space-padded-by-default conversion specifiers, %e, %k, %l.
33770
33771 2003-05-12  Bruno Haible  <bruno@clisp.org>
33772
33773         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
33774         the string is longer than 4 KB.
33775
33776 2003-05-11  Karl Berry  <karl@gnu.org>
33777
33778         * config/config.{guess,sub}: update from prep.
33779
33780 2003-05-09  Bruno Haible  <bruno@clisp.org>
33781
33782         * modules/error: Add m4/strerror_r.m4 to file list.
33783
33784 2003-05-03  Bruno Haible  <bruno@clisp.org>
33785
33786         Upgrade to Unicode-4.0.
33787         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
33788         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
33789         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
33790         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
33791         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
33792         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
33793         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
33794         Change width of U+E0100..U+E01EF from 1 to 0.
33795
33796 2003-04-25  Jim Meyering  <jim@meyering.net>
33797
33798         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
33799         of type size_t, not int.
33800
33801 2003-04-25  Bruno Haible  <bruno@clisp.org>
33802
33803         * lib/copy-file.c: Include <stddef.h>, for size_t.
33804
33805 2003-04-21  Paul Eggert  <eggert@twinsun.com>
33806
33807         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
33808         code which expansion is under static control.  Patch imported from
33809         Akim Demaille's patch to Bison; see
33810         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
33811
33812 2003-04-14  Bruno Haible  <bruno@clisp.org>
33813
33814         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
33815
33816 2003-04-11  Jim Meyering  <jim@meyering.net>
33817
33818         Merge changes from Coreutils.
33819
33820         2003-03-22  Jim Meyering  <jim@meyering.net>
33821
33822         * lib/strftime.c (widen): Cast alloca return value to proper type.
33823
33824         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
33825
33826         From GNU libc.
33827         * lib/strftime.c (my_strftime): Handle very large width
33828         specifications for numeric values correctly.  Improve checks for
33829         overflow.
33830
33831         2003-01-19  Jim Meyering  <jim@meyering.net>
33832
33833         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
33834         definitions.
33835         (nl_get_alt_digit) [! defined my_strftime]: Define.
33836         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
33837         _nl_get_alt_digit and _nl_get_walt_digit.
33838
33839         * lib/strftime.c (my_strftime): Merge in locale-related changes from
33840         libc. These changes have no effect outside of _LIBC.
33841
33842 2003-04-10  Bruno Haible  <bruno@clisp.org>
33843
33844         * modules/findprog: New file.
33845         * MODULES.html.sh (func_all_modules): Add it.
33846
33847 2003-04-10  Bruno Haible  <bruno@clisp.org>
33848
33849         * m4/findprog.m4: New file.
33850         * m4/eaccess.m4: New file.
33851
33852 2003-04-10  Bruno Haible  <bruno@clisp.org>
33853
33854         * lib/findprog.h: New file, from GNU gettext.
33855         * lib/findprog.c: New file, from GNU gettext.
33856
33857 2003-04-05  Jim Meyering  <jim@meyering.net>
33858
33859         Merge changes from Coreutils.
33860
33861         * lib/exclude.h (PARAMS): Remove definition and uses.
33862         * lib/exclude.c: Remove uses of `PARAMS'.
33863
33864         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
33865         Add test-cases for DOS filenames. Declare program_name.
33866         (main): Set up program_name.  Patch by Rich Dawe.
33867
33868         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
33869         error from mntctl.
33870         Use mntctl's return value to drive the entry-processing loop, since
33871         we can't rely on the value of the vmt_length member in the last
33872         entry.  On some systems doing so could result in exhausting
33873         virtual memory.  Based in part on a patch from Mike Jetzer.
33874
33875 2003-04-04  Bruno Haible  <bruno@clisp.org>
33876
33877         * modules/linebreak: New file.
33878         * MODULES.html.sh (func_all_modules): Add it.
33879
33880 2003-04-04  Bruno Haible  <bruno@clisp.org>
33881
33882         * m4/linebreak.m4: New file.
33883
33884 2003-04-04  Bruno Haible  <bruno@clisp.org>
33885
33886         * lib/linebreak.h: New file, from GNU gettext.
33887         * lib/linebreak.c: New file, from GNU gettext with slight
33888         modifications.
33889         * lib/lbrkprop.h: New file, from GNU gettext.
33890
33891 2003-04-03  Bruno Haible  <bruno@clisp.org>
33892
33893         * modules/utf8-ucs4: New file.
33894         * modules/utf16-ucs4: New file.
33895         * modules/ucs4-utf8: New file.
33896         * modules/ucs4-utf16: New file.
33897         * MODULES.html.sh (func_all_modules): Add them.
33898
33899 2003-04-03  Bruno Haible  <bruno@clisp.org>
33900
33901         * m4/utf-ucs4.m4: New file.
33902         * m4/ucs4-utf.m4: New file.
33903
33904 2003-04-03  Bruno Haible  <bruno@clisp.org>
33905
33906         * lib/utf8-ucs4.h: New file, from GNU gettext.
33907         * lib/utf16-ucs4.h: New file, from GNU gettext.
33908         * lib/ucs4-utf8.h: New file, from GNU gettext.
33909         * lib/ucs4-utf16.h: New file, from GNU gettext.
33910
33911 2003-04-02  Bruno Haible  <bruno@clisp.org>
33912
33913         * modules/binary-io: New file.
33914         * MODULES.html.sh (func_all_modules): Add it.
33915
33916 2003-04-02  Bruno Haible  <bruno@clisp.org>
33917
33918         * lib/binary-io.h: New file, from GNU gettext.
33919
33920 2003-04-01  Bruno Haible  <bruno@clisp.org>
33921
33922         * modules/pathname: New file.
33923         * MODULES.html.sh (func_all_modules): Add it.
33924
33925 2003-04-01  Bruno Haible  <bruno@clisp.org>
33926
33927         * lib/pathname.h: New file, from GNU gettext.
33928         * lib/concatpath.c: New file, from GNU gettext.
33929
33930 2003-03-30  Bruno Haible  <bruno@clisp.org>
33931
33932         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
33933
33934 2003-03-30  Bruno Haible  <bruno@clisp.org>
33935
33936         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
33937         function chown() doesn't exist.
33938
33939 2003-03-28  Bruno Haible  <bruno@clisp.org>
33940
33941         * modules/copy-file: New file.
33942         * MODULES.html.sh (func_all_modules): Add it.
33943
33944 2003-03-28  Bruno Haible  <bruno@clisp.org>
33945
33946         * m4/copy-file.m4: New file.
33947
33948 2003-03-28  Bruno Haible  <bruno@clisp.org>
33949
33950         * lib/copy-file.h: New file, from GNU gettext.
33951         * lib/copy-file.c: New file, from GNU gettext.
33952
33953 2003-03-18  Jim Meyering  <jim@meyering.net>
33954
33955         * lib/quote.c (quote_n): Fix typo in comment.
33956
33957 2003-03-18  Bruno Haible  <bruno@clisp.org>
33958
33959         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
33960         checking.
33961         * m4/onceonly_2_57.m4: Likewise.
33962
33963 2003-03-17  Bruno Haible  <bruno@clisp.org>
33964
33965         * m4/onceonly.m4: Require autoconf 2.54 or newer.
33966         (m4_quote): Remove macro.
33967         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
33968
33969 2003-03-14  Jim Meyering  <jim@meyering.net>
33970
33971         Merge changes from Coreutils.
33972         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
33973         to be const, in order to avoid warnings.
33974         (obstack_room): Likewise.
33975         (obstack_empty_p): Likewise.
33976
33977 2003-03-14  Bruno Haible  <bruno@clisp.org>
33978
33979         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
33980         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
33981
33982 2003-03-13  Paul Eggert  <eggert@twinsun.com>
33983
33984         Merge changes from Bison.
33985         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
33986         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
33987         when compiling Bison 1.875's `bitset bset = obstack_alloc
33988         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
33989         * lib/hash.c: Include <stdbool.h> unconditionally.
33990
33991 2003-03-13  Paul Eggert  <eggert@twinsun.com>
33992
33993         * m4/onceonly.m4 (m4_quote): New macro.
33994         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
33995         Quote AC_FOREACH variable-expansions properly.
33996
33997 2003-03-13  Paul Eggert  <eggert@twinsun.com>
33998
33999         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
34000
34001 2003-03-09  Paul Eggert  <eggert@twinsun.com>
34002
34003         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
34004         Reported by Bruce Becker; see:
34005         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
34006
34007 2003-03-03  Paul Eggert  <eggert@twinsun.com>
34008             Bruno Haible  <bruno@clisp.org>
34009
34010         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
34011         Reported by John Hughes, see
34012         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
34013
34014 2003-02-20  Bruno Haible  <bruno@clisp.org>
34015
34016         * MODULES.html.sh (func_all_modules): Add poll.
34017
34018 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
34019
34020         * modules/poll: New file.
34021
34022 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
34023
34024         * lib/poll_.h: New file.
34025         * lib/poll.c: New file.
34026
34027 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
34028
34029         * m4/poll.m4: New file.
34030
34031 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
34032
34033         * modules/mathl: New file.
34034
34035 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
34036
34037         * lib/mathl.h: New file.
34038         * lib/acosl.c: New file.
34039         * lib/asinl.c: New file.
34040         * lib/atanl.c: New file.
34041         * lib/ceill.c: New file.
34042         * lib/cosl.c: New file.
34043         * lib/expl.c: New file.
34044         * lib/floorl.c: New file.
34045         * lib/frexpl.c: New file.
34046         * lib/ldexpl.c: New file.
34047         * lib/logl.c: New file.
34048         * lib/sincosl.c: New file.
34049         * lib/sinl.c: New file.
34050         * lib/sqrtl.c: New file.
34051         * lib/tanl.c: New file.
34052         * lib/trigl.c: New file.
34053         * lib/trigl.h: New file.
34054
34055 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
34056
34057         * m4/mathl.m4: New file.
34058
34059 2003-02-18  Bruno Haible  <bruno@clisp.org>
34060
34061         * MODULES.html.sh (func_all_modules): Add mathl.
34062
34063 2003-02-17  Bruno Haible  <bruno@clisp.org>
34064
34065         * modules/mkdtemp: New module.
34066         * MODULES.html.sh (func_all_modules): Add it.
34067
34068 2003-02-17  Bruno Haible  <bruno@clisp.org>
34069
34070         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
34071
34072 2003-02-17  Bruno Haible  <bruno@clisp.org>
34073
34074         * lib/mkdtemp.h: New file, from GNU gettext.
34075         * lib/mkdtemp.c: New file, from GNU gettext.
34076
34077 2003-02-02  Jim Meyering  <jim@meyering.net>
34078
34079         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
34080         e.g. glibc-2.2.93.
34081
34082 2003-01-31  Bruno Haible  <bruno@clisp.org>
34083
34084         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
34085         'rpl_rename'.
34086         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
34087         'rpl_strnlen'.
34088         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
34089         'rpl_strtod'.
34090         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
34091         'rpl_utime'.
34092
34093 2003-01-31  Bruno Haible  <bruno@clisp.org>
34094
34095         * lib/rename.c: #undef rename before defining rpl_rename.
34096         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
34097
34098 2003-01-30  Bruno Haible  <bruno@clisp.org>
34099
34100         * modules/vasnprintf, modules/vasprintf: New modules.
34101         * MODULES.html.sh (func_all_modules): Add them.
34102
34103 2003-01-30  Bruno Haible  <bruno@clisp.org>
34104
34105         * m4/signed.m4: New file, from GNU gettext.
34106         * m4/longdouble.m4: New file, from GNU gettext.
34107         * m4/wchar_t.m4: New file, from GNU gettext.
34108         * m4/wint_t.m4: New file, from GNU gettext.
34109         * m4/vasnprintf.m4: New file.
34110         * m4/vasprintf.m4: New file.
34111
34112 2003-01-30  Bruno Haible  <bruno@clisp.org>
34113
34114         * lib/printf-args.h: New file, from GNU gettext.
34115         * lib/printf-args.c: New file, from GNU gettext.
34116         * lib/printf-parse.h: New file, from GNU gettext.
34117         * lib/printf-parse.c: New file, from GNU gettext.
34118         * lib/vasnprintf.h: New file, from GNU gettext.
34119         * lib/vasnprintf.c: New file, from GNU gettext.
34120         * lib/asnprintf.c: New file, from GNU gettext.
34121         * lib/vasprintf.h: New file, from GNU gettext with modifications.
34122         * lib/vasprintf.c: New file, from GNU gettext.
34123         * lib/asprintf.c: New file, from GNU gettext.
34124
34125 2003-01-29  Bruno Haible  <bruno@clisp.org>
34126
34127         * modules/stpncpy: New module.
34128         * MODULES.html.sh (func_all_modules): Add it.
34129
34130 2003-01-29  Bruno Haible  <bruno@clisp.org>
34131
34132         * m4/stpncpy.m4: New file.
34133
34134 2003-01-29  Bruno Haible  <bruno@clisp.org>
34135
34136         * lib/stpncpy.h: New file, from GNU gettext with modifications.
34137         * lib/stpncpy.c: New file, from GNU gettext with modifications.
34138
34139 2003-01-28  Bruno Haible  <bruno@clisp.org>
34140
34141         * modules/c-ctype: New module.
34142         * MODULES.html.sh (func_all_modules): Add it.
34143
34144 2003-01-28  Bruno Haible  <bruno@clisp.org>
34145
34146         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
34147         Paul Eggert.
34148         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
34149         Paul Eggert.
34150
34151 2003-01-27  Bruno Haible  <bruno@clisp.org>
34152
34153         * modules/xsetenv: New module.
34154         * MODULES.html.sh (func_all_modules): Add it.
34155
34156 2003-01-27  Bruno Haible  <bruno@clisp.org>
34157
34158         * lib/xsetenv.h: New file, from GNU gettext.
34159         * lib/xsetenv.c: New file, from GNU gettext.
34160
34161 2003-01-23  Jim Meyering  <jim@meyering.net>
34162
34163         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
34164         from working on systems without dirfd (at least Irix and OSF1/Tru64).
34165
34166 2003-01-23  Bruno Haible  <bruno@clisp.org>
34167
34168         * modules/minmax: New module.
34169         * MODULES.html.sh (func_all_modules): Add it.
34170
34171 2003-01-23  Bruno Haible  <bruno@clisp.org>
34172
34173         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
34174         Eggert.
34175
34176 2003-01-22  Bruno Haible  <bruno@clisp.org>
34177
34178         * modules/exit: New module.
34179         * MODULES.html.sh (func_all_modules): Add it.
34180
34181 2003-01-22  Bruno Haible  <bruno@clisp.org>
34182
34183         * lib/exit.h: New file, from GNU gettext.
34184
34185 2003-01-19  Bruno Haible  <bruno@clisp.org>
34186
34187         * gnulib-tool: Recognize option --extract-maintainer.
34188         (func_get_maintainer): New function.
34189         * modules/*: Add Maintainer entry.
34190
34191 2003-01-16  Jim Meyering  <jim@meyering.net>
34192
34193         * m4/regex.m4: The `regex' struct is both input and output.
34194         Initialize it before each use.  Patch by Tim Waugh.
34195
34196 2003-01-16  Bruno Haible  <bruno@clisp.org>
34197
34198         * MODULES.html.sh: Add a table of contents. Add the module name as
34199         leftmost column. Add hyperlinks.
34200
34201 2003-01-15  Bruno Haible  <bruno@clisp.org>
34202
34203         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
34204
34205 2003-01-15  Bruno Haible  <bruno@clisp.org>
34206
34207         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
34208         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
34209         suffix.
34210
34211 2003-01-15  Bruno Haible  <bruno@clisp.org>
34212
34213         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
34214
34215 2003-01-15  Bruno Haible  <bruno@clisp.org>
34216
34217         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
34218         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
34219
34220 2003-01-14  Jim Meyering  <jim@meyering.net>
34221
34222         * lib/same.c (same_name): Tweak a comment.
34223
34224 2003-01-14  Bruno Haible  <bruno@clisp.org>
34225
34226         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
34227         when a string comparison is sufficient.
34228
34229 2003-01-14  Bruno Haible  <bruno@clisp.org>
34230
34231         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
34232         'unsigned int'.
34233
34234 2003-01-14  Bruno Haible  <bruno@clisp.org>
34235
34236         * lib/hash-pjw.c: Add comment about low quality of this function.
34237
34238 2003-01-13  Bruno Haible  <bruno@clisp.org>
34239
34240         * modules/stpcpy: Distribute lib/stpcpy.h.
34241         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
34242
34243 2003-01-13  Bruno Haible  <bruno@clisp.org>
34244
34245         * modules/*: Add a description.
34246         * modules/strpbrk: Fix Makefile.am snippet.
34247         * modules/strtoimax: Fix dependencies.
34248         * modules/strtoumax: Likewise.
34249
34250 2003-01-13  Bruno Haible  <bruno@clisp.org>
34251
34252         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
34253         * modules/alloca (Makefile.am): All object files depend on alloca.h.
34254         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
34255
34256 2003-01-13  Bruno Haible  <bruno@clisp.org>
34257
34258         * gnulib-tool (func_create_testdir): Store config/* files in the main
34259         directory.
34260         * config.rpath: Move to ...
34261         * config/config.rpath: ... here.
34262         * modules/gettext: Contains config/config.rpath, not config.rpath.
34263         * modules/iconv: Likewise.
34264
34265 2003-01-12  Paul Eggert  <eggert@twinsun.com>
34266
34267         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
34268         to avoid collisions with libcurses and libreadline.
34269
34270         * m4/getstr.m4: Remove.
34271         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
34272
34273 2003-01-12  Paul Eggert  <eggert@twinsun.com>
34274
34275         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
34276         to avoid collisions with libcurses and libreadline.
34277
34278         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
34279         * lib/getstr.h, getstr.c: Remove.
34280         * lib/getline.c: Include "getline.h", to check interface.
34281         Move body of old getstr.c here: this defines MIN_CHUNK and
34282         declares getdelim2, which is renamed from getstr.
34283         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
34284
34285         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
34286         All uses changed.
34287         * lib/linebuffer.h: Likewise.
34288         (readline): Remove backward-compatibility macro.
34289
34290 2003-01-12  Paul Eggert  <eggert@twinsun.com>
34291
34292         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
34293         to avoid collisions with libcurses and libreadline.
34294         * getstr: Remove.
34295         * MODULES.html.sh: Remove getstr.
34296         * modules/getline: Depend on unlocked-io, not getstr.
34297
34298 2003-01-12  Jim Meyering  <jim@meyering.net>
34299
34300         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
34301
34302 2003-01-10  Bruno Haible  <bruno@clisp.org>
34303
34304         * modules/alloca: Change Makefile.am requirements. Simplify Include
34305         requirements. Add lib/alloca_.h to file list.
34306
34307 2003-01-10  Bruno Haible  <bruno@clisp.org>
34308
34309         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
34310
34311 2003-01-10  Bruno Haible  <bruno@clisp.org>
34312
34313         * lib/alloca_.h: New file.
34314         * lib/getdate.y: Unconditionally include alloca.h.
34315         * lib/makepath.c: Likewise.
34316         * lib/setenv.c: Likewise.
34317         * lib/userspec.c: Likewise.
34318
34319 2003-01-09  Karl Berry  <karl@gnu.org>
34320
34321         * MODULES.html.sh: include `dirname $0` in PATH, to find
34322         gnulib-tool.
34323
34324 2003-01-09  Bruno Haible  <bruno@clisp.org>
34325
34326         * modules/stdbool: Change configure.ac, Makefile.am requirements.
34327         Simplify Include requirements. Add lib/stdbool.h.in to file list.
34328
34329 2003-01-09  Bruno Haible  <bruno@clisp.org>
34330
34331         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
34332
34333 2003-01-09  Bruno Haible  <bruno@clisp.org>
34334
34335         * lib/stdbool.h.in: New file.
34336
34337 2003-01-09  Bruno Haible  <bruno@clisp.org>
34338
34339         * gnulib-tool (func_all_modules): Ignore files ending in ~.
34340         * MODULES.html.sh: Likewise.
34341
34342 2003-01-08  Jim Meyering  <jim@meyering.net>
34343
34344         * lib/full-write.c: Undefine and define-away `const' after inclusion
34345         of errno.h, not before.  Suggestion from Bruno Haible.
34346
34347 2003-01-08  Bruno Haible  <bruno@clisp.org>
34348
34349         * modules/full-read: Depend on full-write.
34350
34351 2003-01-08  Bruno Haible  <bruno@clisp.org>
34352
34353         * lib/safe-read.c: Include specification header first, to ensure its
34354         selfcontainedness.
34355         * lib/full-write.c: Likewise.
34356
34357 2003-01-07  Jim Meyering  <jim@meyering.net>
34358
34359         * lib/full-write.c: Rework so that it may serve to define full_read,
34360         too.
34361         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
34362
34363 2003-01-07  Bruno Haible  <bruno@clisp.org>
34364
34365         * lib/strtoimax.c: Include <stdint.h> as an alternative to
34366         <inttypes.h>.
34367         * lib/xstrtol.h: Likewise.
34368         * lib/xstrtoimax.c: Likewise.
34369         * lib/xstrtoumax.c: Likewise.
34370         * lib/human.h: Likewise.
34371
34372         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
34373         on systems that have <inttypes.h> but not <stdint.h>.
34374
34375 2003-01-07  Bruno Haible  <bruno@clisp.org>
34376
34377         * MODULES.html.sh: Add copyright notice.
34378         (missed_files): Omit CVS directory entries.
34379         (func_module): Make it work with sed-3.02.
34380         * MODULES.txt: Remove file.
34381
34382 2003-01-06  Jim Meyering  <jim@meyering.net>
34383
34384         * lib/version-etc.c: Update year in translatable copyright string.
34385
34386 2003-01-03  Karl Berry  <karl@gnu.org>
34387
34388         * config/config.{guess,sub}: update from prep.
34389
34390 2003-01-02  Karl Berry  <karl@gnu.org>
34391
34392         * doc/COPYING.DOC: belatedly updated to 1.2.
34393
34394 2003-01-01  Karl Berry  <karl@gnu.org>
34395
34396         * gnulib-tool (func_verify_module): report module name $module in
34397         error message, not $1.
34398         * gnulib-tool (create-testdir): don't complain if destdir couldn't
34399         be created, only if it doesn't exist.
34400         * gnulib-tool (last_checkin_date): don't expand the $Date here.
34401
34402 2002-12-31  Paul Eggert  <eggert@twinsun.com>
34403
34404         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
34405
34406 2002-12-31  Paul Eggert  <eggert@twinsun.com>
34407
34408         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
34409         memcmp if strcoll doesn't work.
34410
34411 2002-12-31  Bruno Haible  <bruno@clisp.org>
34412
34413         * lib/utime.c (utime_null): No need to call ftruncate if the file was
34414         nonempty.
34415
34416 2002-12-31  Bruno Haible  <bruno@clisp.org>
34417
34418         * lib/memcoll.c (STRCOLL): New macro.
34419         (memcoll): Use it.
34420
34421 2002-12-31  Bruno Haible  <bruno@clisp.org>
34422
34423         * lib/localcharset.h: New file.
34424         * lib/localcharset.c: Include it.
34425         * lib/unicodeio.c: Likewise.
34426
34427 2002-12-31  Bruno Haible  <bruno@clisp.org>
34428
34429         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
34430         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
34431
34432 2002-12-31  Bruno Haible  <bruno@clisp.org>
34433
34434         * lib/getline.h: Include <stddef.h>, for size_t.
34435
34436         * lib/unicodeio.h: Include <stddef.h>, for size_t.
34437         * lib/unicodeio.c: Don't include <stddef.h>.
34438
34439 2002-12-31  Bruno Haible  <bruno@clisp.org>
34440
34441         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
34442         HAVE_TM_ZONE.
34443
34444 2002-12-24  Karl Berry  <karl@gnu.org>
34445
34446         * config/config.guess: update from prep.
34447
34448 2002-12-24  Bruno Haible  <bruno@clisp.org>
34449
34450         General infrasructure.
34451         * m4/README: Rewritten.
34452         * m4/onceonly.m4: New file.
34453         * m4/onceonly_2_57.m4: New file.
34454
34455         Module atexit.
34456         * m4/atexit.m4: New file.
34457
34458         Module strtod.
34459         * m4/strtod.m4: New file.
34460
34461         Module strtol.
34462         * m4/strtol.m4: New file.
34463
34464         Module strtoul.
34465         * m4/strtoul.m4: New file.
34466
34467         Module memchr.
34468         * m4/memchr.m4: New file.
34469
34470         Module memcmp.
34471         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
34472         (jm_FUNC_MEMCMP): Invoke it.
34473
34474         Module memcpy.
34475         * m4/memcpy.m4: New file.
34476
34477         Module memmove.
34478         * m4/memmove.m4: New file.
34479
34480         Module memset.
34481         * m4/memset.m4: New file.
34482
34483         Module strcspn.
34484         * m4/strcspn.m4: New file.
34485
34486         Module strpbrk.
34487         * m4/strpbrk.m4: New file.
34488
34489         Module strstr.
34490         * m4/strstr.m4: New file.
34491
34492         Module strerror.
34493         * m4/strerror.m4: New file.
34494
34495         Module mktime.
34496         * m4/mktime.m4: Renamed from jm-mktime.m4.
34497         (gl_PREREQ_MKTIME): New macro.
34498         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
34499
34500         Module malloc.
34501         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
34502         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
34503         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
34504
34505         Module realloc.
34506         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
34507         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
34508         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
34509
34510         Module strftime.
34511         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
34512         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
34513         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
34514         gl_TM_GMTOFF.
34515         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
34516
34517         Module xalloc.
34518         * m4/xalloc.m4: New file.
34519
34520         Module alloca.
34521         * m4/alloca.m4: New file.
34522
34523         Module putenv.
34524         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
34525         (jm_FUNC_PUTENV): Invoke it.
34526
34527         Module setenv.
34528         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
34529         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
34530         when invoked twice.
34531         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
34532         gt_FUNC_SETENV.
34533
34534         Module memrchr.
34535         * m4/memrchr.m4: New file.
34536
34537         Module stpcpy.
34538         * m4/stpcpy.m4: New file.
34539
34540         Module strcase.
34541         * m4/strcase.m4: New file.
34542
34543         Module strdup.
34544         * m4/strdup.m4: New file.
34545
34546         Module strnlen.
34547         * m4/strnlen.m4: New file.
34548
34549         Module strndup.
34550         * m4/strndup.m4: New file.
34551
34552         Module xstrtod.
34553         * m4/xstrtod.m4: New file.
34554
34555         Module xstrtol.
34556         * m4/xstrtol.m4: New file.
34557
34558         Module getdate.
34559         * m4/getdate.m4: New file.
34560
34561         Module unlocked-io.
34562         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
34563         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
34564         * m4/jm-glibc-io.m4n: Remove file.
34565
34566         Module long-options.
34567         * m4/long-options.m4: New file.
34568
34569         Module md5.
34570         * m4/md5.m4: New file.
34571
34572         Module sha.
34573         * m4/sha.m4: New file.
34574
34575         Module getstr.
34576         * m4/getstr.m4: New file.
34577
34578         Module getline.
34579         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
34580         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
34581         <sys/types.h>, for size_t. Use the function name gnu_getline, not
34582         simply getline. Infoke gl_PREREQ_GETLINE.
34583
34584         Module obstack.
34585         * m4/obstack.m4: New file.
34586
34587         Module hash.
34588         * m4/hash.m4: New file.
34589
34590         Module readtokens.
34591         * m4/readtokens.m4: New file.
34592
34593         Module strverscmp.
34594         * m4/strverscmp.m4: New file.
34595
34596         Module stdbool.
34597         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
34598         OSF/1.
34599
34600         Module strtoll.
34601         * m4/strtoll.m4: New file.
34602
34603         Module strtoull.
34604         * m4/strtoull.m4: New file.
34605
34606         Module strtoimax.
34607         * m4/strtoimax.m4: New file.
34608
34609         Module strtoumax.
34610         * m4/strtoumax.m4: New file.
34611
34612         Module xstrtoimax.
34613         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
34614         jm_AC_PREREQ_XSTRTOIMAX.
34615         Moved the strtol prerequisites to strtol.m4.
34616         Moved the strtoll prerequisites to strtoll.m4.
34617         Moved the strtoimax prerequisites to strtoimax.m4.
34618
34619         Module xstrtoumax.
34620         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
34621         jm_AC_PREREQ_XSTRTOUMAX.
34622         Moved the strtoul prerequisites to strtoul.m4.
34623         Moved the strtoull prerequisites to strtoull.m4.
34624         Moved the strtoumax prerequisites to strtoumax.m4.
34625
34626         Module chown.
34627         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
34628         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
34629
34630         Module dup2.
34631         * m4/dup2.m4: New file.
34632
34633         Module ftruncate.
34634         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
34635         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
34636
34637         Module getgroups.
34638         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
34639         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
34640
34641         Module gettimeofday.
34642         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
34643         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
34644         gl_PREREQ_GETTIMEOFDAY.
34645
34646         Module mkdir.
34647         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
34648         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
34649
34650         Module mkstemp.
34651         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
34652         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
34653         jm_AC_TYPE_UINTMAX_T.
34654         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
34655
34656         Module stat.
34657         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
34658         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
34659
34660         Module lstat.
34661         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
34662         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
34663
34664         Module timespec.
34665         * m4/timespec.m4 (gl_TIMESPEC): New macro.
34666         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
34667         * m4/st_mtim.m4: Indentation.
34668
34669         Module nanosleep.
34670         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
34671         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
34672         gl_PREREQ_NANOSLEEP.
34673
34674         Module regex.
34675         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
34676         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
34677         (gl_REGEX): New macro.
34678
34679         Module rename.
34680         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
34681         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
34682
34683         Module rmdir.
34684         * m4/rmdir.m4: New file.
34685
34686         Module utime.
34687         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
34688         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
34689         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
34690
34691         Module dirname.
34692         * m4/dirname.m4: New file.
34693
34694         Module getopt.
34695         * m4/getopt.m4: New file.
34696
34697         Module unistd-safer.
34698         * m4/unistd-safer.m4: New file.
34699
34700         Module fnmatch.
34701         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
34702         declaration.
34703         (gl_PREREQ_FNMATCH_EXTRA): New macro.
34704         (gl_FUNC_FNMATCH_POSIX): New macro.
34705         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
34706         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
34707         simply fnmatch.
34708
34709         Module exclude.
34710         * m4/exclude.m4: New file.
34711
34712         Module human.
34713         * m4/human.m4: New file.
34714
34715         Module acl.
34716         * m4/acl.m4: Nop.
34717
34718         Module backupfile.
34719         * m4/backupfile.m4: New file.
34720         * m4/d-ino.m4: Indentation.
34721
34722         Module fsusage.
34723         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
34724         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
34725         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
34726
34727         Module dirfd.
34728         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
34729         requirements.
34730
34731         Module euidaccess.
34732         * m4/euidaccess.m4: New file.
34733
34734         Module file-type.
34735         * m4/file-type.m4: New file.
34736
34737         Module fileblocks.
34738         * m4/fileblocks.m4: New file.
34739
34740         Module filemode.
34741         * m4/filemode.m4: New file.
34742
34743         Module isdir.
34744         * m4/isdir.m4: New file.
34745
34746         Module lchown.
34747         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
34748         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
34749
34750         Module makepath.
34751         * m4/makepath.m4: New file.
34752
34753         Module modechange.
34754         * m4/modechange.m4: New file.
34755
34756         Module mountlist.
34757         * m4/mountlist.m4: New file.
34758         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
34759         Indentation.
34760
34761         Module path-concat.
34762         * m4/path-concat.m4: New file.
34763
34764         Module pathmax.
34765         * m4/pathmax.m4: New file.
34766
34767         Module same.
34768         * m4/same.m4: New file.
34769
34770         Module save-cwd.
34771         * m4/save-cwd.m4: New file.
34772
34773         Module savedir.
34774         * m4/savedir.m4: New file.
34775
34776         Module xgetcwd.
34777         * m4/xgetcwd.m4: New file.
34778         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
34779
34780         Module xreadlink.
34781         * m4/xreadlink.m4: New file.
34782
34783         Module safe-read.
34784         * m4/safe-read.m4: New file.
34785
34786         Module safe-write.
34787         * m4/safe-write.m4: New file.
34788
34789         Module closeout.
34790         * m4/closeout.m4: New file.
34791
34792         Module stdio-safer.
34793         * m4/stdio-safer.m4: New file.
34794
34795         Module getpass.
34796         * m4/getpass.m4: New file.
34797
34798         Module getugroups.
34799         * m4/getugroups.m4: New file.
34800
34801         Module group-member.
34802         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
34803         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
34804
34805         Module idcache.
34806         * m4/idcache.m4: New file.
34807
34808         Module userspec.
34809         * m4/userspec.m4: New file.
34810
34811         Module gettime.
34812         * m4/clock_time.m4: New file.
34813         * m4/gettime.m4: New file.
34814
34815         Module settime.
34816         * m4/settime.m4: New file.
34817
34818         Module posixtm.
34819         * m4/posixtm.m4: New file.
34820
34821         Module gethostname.
34822         * m4/gethostname.m4: New file.
34823
34824         Module canon-host.
34825         * m4/canon-host.m4: New file.
34826
34827         Module gettext.
34828         * m4/codeset.m4: New file, from gettext-0.11.5.
34829         * m4/gettext.m4: New file, from gettext-0.11.5.
34830         * m4/glibc21.m4: New file, from gettext-0.11.5.
34831         * m4/iconv.m4: New file, from gettext-0.11.5.
34832         * m4/intdiv0.m4: New file, from gettext-0.11.5.
34833         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
34834         * m4/inttypes.m4: New file, from gettext-0.11.5.
34835         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
34836         * m4/isc-posix.m4: New file, from gettext-0.11.5.
34837         * m4/lcmessage.m4: New file, from gettext-0.11.5.
34838         * m4/lib-ld.m4: New file, from gettext-0.11.5.
34839         * m4/lib-link.m4: New file, from gettext-0.11.5.
34840         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
34841         * m4/progtest.m4: New file, from gettext-0.11.5.
34842         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
34843         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
34844         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
34845
34846         Module localcharset.
34847         * m4/localcharset.m4: New file.
34848
34849         Module hard-locale.
34850         * m4/hard-locale.m4: New file.
34851
34852         Module mbswidth.
34853         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
34854         onceonly macros.
34855         * m4/mbrtowc.m4: Add comment.
34856
34857         Module memcasecmp.
34858         * m4/memcasecmp.m4: New file.
34859
34860         Module memcoll.
34861         * m4/memcoll.m4: New file.
34862
34863         Module unicodeio.
34864         * m4/unicodeio.m4: New file.
34865
34866         Module rpmatch.
34867         * m4/rpmatch.m4: New file.
34868
34869         Module yesno.
34870         * m4/yesno.m4: New file.
34871
34872         Module exitfail.
34873         * m4/exitfail.m4: New file.
34874
34875         Module c-stack.
34876         * m4/c-stack.m4 (gl_C_STACK): New macro.
34877         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
34878
34879         Module error.
34880         * m4/error.m4 (gl_ERROR): New macro.
34881         (jm_PREREQ_ERROR): Use onceonly macros.
34882
34883         Module fatal.
34884         * m4/fatal.m4: New file.
34885
34886         Module getloadavg.
34887         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
34888         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
34889
34890         Module getpagesize.
34891         * m4/getpagesize.m4: New file.
34892
34893         Module getusershell.
34894         * m4/getusershell.m4: New file.
34895
34896         Module physmem.
34897         * m4/physmem.m4: New file.
34898
34899         Module posixver.
34900         * m4/posixver.m4: New file.
34901
34902         Module quotearg.
34903         * m4/quotearg.m4: New file.
34904
34905         Module quote.
34906         * m4/quote.m4: New file.
34907
34908         Module readutmp.
34909         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
34910
34911         Module sig2str.
34912         * m4/sig2str.m4: New file.
34913
34914         Other.
34915         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
34916         ulonglong.m4.
34917         * m4/intmax_t.m4: New file.
34918         * m4/d-type.m4: Indentation.
34919         * m4/jm-macros.m4: Update.
34920         * m4/prereq.m4 (jm_PREREQ): Update.
34921         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
34922         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
34923         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
34924         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
34925         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
34926         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
34927         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
34928         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
34929         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
34930         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
34931         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
34932         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
34933         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
34934         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
34935         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
34936         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
34937         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
34938         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
34939         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
34940
34941 2002-12-24  Bruno Haible  <bruno@clisp.org>
34942
34943         * MODULES.txt: Update according to m4/ changes.
34944
34945         Module gettext.
34946         * config.rpath: New file, from gettext-0.11.5.
34947
34948         * modules/*: New module descriptions.
34949         * gnulib-tool: New file.
34950         * MODULES.html.sh: New file.
34951
34952 2002-12-21  Karl Berry  <karl@gnu.org>
34953
34954         * doc/fdl.texi: update to version 1.2.
34955
34956 2002-12-19  Karl Berry  <karl@gnu.org>
34957
34958         * config/config.guess: update from prep.
34959
34960 2002-12-18  Bruno Haible  <bruno@clisp.org>
34961
34962         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
34963         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
34964
34965 2002-12-17  Bruno Haible  <bruno@clisp.org>
34966
34967         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
34968         stdlib.h, string.h.
34969
34970 2002-12-17  Bruno Haible  <bruno@clisp.org>
34971
34972         * lib/canon-host.c (strdup): Remove unused declaration.
34973
34974         * lib/fsusage.c: Include full_read.h.
34975         (get_fs_usage): Use full_read instead of safe_read.
34976
34977         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
34978
34979 2002-12-12  Karl Berry  <karl@gnu.org>
34980
34981         * config/config.guess: update from prep.
34982
34983 2002-12-11  Bruno Haible  <bruno@clisp.org>
34984
34985         * m4/setenv.m4: New file, from gettext-0.11.5.
34986
34987 2002-12-11  Bruno Haible  <bruno@clisp.org>
34988
34989         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
34990         not unsetenv().
34991         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
34992         modifications:
34993
34994         2002-12-11  Bruno Haible  <bruno@clisp.org>
34995
34996                 * setenv.c (alloca): Fall back to malloc.
34997                 (freea): New macro.
34998                 (setenv): Use freea() to free memory allocated with alloca().
34999
35000         2002-11-13  Bruno Haible  <bruno@clisp.org>
35001
35002                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
35003                 function declarations.
35004                 * unsetenv.c (unsetenv): Likewise.
35005
35006         2002-03-04  Bruno Haible  <bruno@clisp.org>
35007
35008                 Portability to AIX 4.3.3.
35009                 * unsetenv.c: New file, extracted from setenv.c.
35010                 * setenv.c: Move the unsetenv() function to unsetenv.c.
35011
35012         2001-12-20  Bruno Haible  <bruno@clisp.org>
35013
35014                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
35015                 use malloc instead. For SunOS 4.
35016
35017         2001-12-11  Bruno Haible  <bruno@clisp.org>
35018
35019                 * setenv.c: Declare alloca.
35020                 (compar_fn_t): New typedef.
35021                 (KNOWN_VALUE, STORE_VALUE): Use it.
35022
35023         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
35024         setenv.h.
35025
35026 2002-12-10  Paul Eggert  <eggert@twinsun.com>
35027
35028         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
35029         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
35030         Choose values that are less likely to collide with system fnmatch
35031         options.
35032         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
35033         defined (e.g., a pure POSIX system).
35034         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
35035         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
35036
35037 2002-12-06  Paul Eggert  <eggert@twinsun.com>
35038
35039         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
35040         a pain in practice to deal with generated m4 files.  This change
35041         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
35042
35043         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
35044         and jm-glibc-io.m4, as they are no longer a special case.
35045         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
35046         kludge and the auto-generation stuff.  Check only whether the
35047         functions are declared, not whether they exist, since older hosts
35048         that don't declare the functions can't use the optimization anyway.
35049
35050 2002-12-06  Jim Meyering  <jim@meyering.net>
35051
35052         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
35053
35054         Merge in changes from libc's misc/error.c, in preparation
35055         for the merge of gnulib's changes back into libc.
35056
35057         * lib/error.c (_): Define only if not already defined.
35058         Move definition to follow all #include directives.
35059         Include unlocked-io.h only if !_LIBC.
35060         [_LIBC]: Include <libio/libioP.h>.
35061         [USE_IN_LIBIO]: Include <libio/iolibio.h>
35062         (fflush): Tweak definition to use INTUSE.
35063         (putc): Define.
35064
35065 2002-12-05  Paul Eggert  <eggert@twinsun.com>
35066
35067         * lib/alloca.c [defined emacs]: Include "lisp.h".
35068         (xalloc_die) [defined emacs]: New macro.
35069         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
35070         [! defined emacs]: Include <xalloc.h>.
35071         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
35072         (pointer): Typedef to POINTER_TYPE *.
35073         (malloc): Remove decl; we now always use xmalloc.
35074         (alloca): Use old-style definition, since Emacs needs this.
35075         Check for arithmetic overflow when computing combined size.
35076
35077 2002-12-04  Paul Eggert  <eggert@twinsun.com>
35078
35079         Do not generate unlocked-io.h automatically, since it's easier to
35080         maintain it by hand.
35081
35082         * lib/unlocked-io.h: New file, from GNU diffutils,
35083         but with proper copyright notice and attribution.
35084         * lib/gen-uio: Remove.
35085         * lib/Makefile.am: Add copyright notice.
35086         (libfetish_a_SOURCES): Add unlocked-io.h.
35087         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
35088         (DISTCLEANFILES, io_functions): Remove macros.
35089         (EXTRA_DIST): Remove gen_uio.
35090         (unlocked-io.h): Remove rule.
35091
35092 2002-12-04  Jim Meyering  <jim@meyering.net>
35093
35094         Reflect the fact that stat.c and lstat.c are no longer generated.
35095         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
35096         (DISTCLEANFILES): Likewise.
35097         (EXTRA_DIST): Likewise.
35098         (all_local): Don't depend on stat.c or lstat.c.
35099         (stat.c, lstat.c): Remove rules.
35100         (EXTRA_DIST): Remove xstat.in.
35101
35102         * lib/xstat.in: Remove file.  Contents moved into stat.c.
35103         * lib/stat.c: New file.  Contents mostly from xstat.in.
35104         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
35105         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
35106
35107         * lib/safe-read.c: Rework so that it may serve to define safe_write,
35108         too.
35109         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
35110
35111 2002-12-03  Jim Meyering  <jim@meyering.net>
35112
35113         * lib/safe-read.c, safe-write.c: Change variable names and comments,
35114         but not semantics, to minimize the differences between these two files.
35115         (safe_read): Change comment to mention SAFE_READ_ERROR.
35116
35117         * lib/safe-read.c (IS_EINTR): Define.
35118         (safe_read): Use IS_EINTR in place of in-function cpp directives.
35119
35120 2002-12-02  Jim Meyering  <jim@meyering.net>
35121
35122         * lib/safe-read.c (EINTR): Define.
35123         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
35124         (INT_MAX): Provide fallback.
35125         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
35126
35127         * lib/safe-read.h (SAFE_READ_ERROR): Define.
35128
35129 2002-12-02  Bruno Haible  <bruno@clisp.org>
35130
35131         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
35132         Define, taken from safe-read.c.
35133         (INT_MAX): Provide fallback.
35134         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
35135         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
35136
35137         * lib/safe-read.c (EINTR): Remove definition.
35138         (safe_read): Don't use EINTR if it is absent.
35139
35140 2002-12-01  Jim Meyering  <jim@meyering.net>
35141
35142         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
35143         zero.
35144         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
35145
35146 2002-11-27  Paul Eggert  <eggert@twinsun.com>
35147
35148         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
35149         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
35150         with `if (! (value < limit)) abort ();', for readability.
35151
35152 2002-11-26  Karl Berry  <karl@gnu.org>
35153
35154         * lib/strdup.c: copy from libc again, with jim's ok.
35155         * lib/.cppi-disable: re-add strdup.c
35156
35157 2002-11-25  Karl Berry  <karl@gnu.org>
35158
35159         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
35160         instead of "strtol.c".
35161
35162 2002-11-25  Karl Berry  <karl@gnu.org>
35163
35164         * config/install-sh: update from automake for variable quoting, $0 in
35165         error msgs, etc.
35166
35167         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
35168         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
35169         entry.
35170
35171 2002-11-25  Jim Meyering  <jim@meyering.net>
35172
35173         * lib/mktime.c: Sync from libc, now that it has the latest fix.
35174
35175 2002-11-24  Karl Berry  <karl@gnu.org>
35176
35177         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
35178         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
35179
35180 2002-11-24  Jim Meyering  <jim@meyering.net>
35181
35182         Update from coreutils:
35183
35184         * lib/mktime.c: Merge in changes from libc.
35185
35186         Avoid a link-time failure on some Linux systems.
35187         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
35188         (otherwise).
35189         (__mon_yday): Declare with the STATIC attribute.
35190         (__mktime_internal): Likewise.
35191         Based on a report from Greg Schafer.
35192
35193 2002-11-23  Jim Meyering  <jim@meyering.net>
35194
35195         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
35196         Use `unsigned', not `int', as type of index.
35197
35198         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
35199
35200         * lib/fsusage.c: Remove unneeded parentheses around operands of
35201         `defined'.
35202
35203 2002-11-22  Paul Eggert  <eggert@twinsun.com>
35204
35205         * lib/quotearg.h: Allow multiple inclusion by surrounding with
35206         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
35207         so that we can be included first.
35208         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
35209         * lib/quotearg.c: Include quotearg.h immediately after config.h.
35210         No need to include stddef.h or sys/types.h any more.
35211         Surround local include files with "", not "<>".
35212         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
35213         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
35214         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
35215         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
35216         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
35217         (ISPRINT): Remove; no longer needed now that we assume C89.
35218
35219         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
35220         Preserve errno.
35221
35222         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
35223         quotearg_char): Use SIZE_MAX rather than
35224         (size_t) -1 when we are talking about "infinity".
35225
35226         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
35227
35228 2002-11-22  Paul Eggert  <eggert@twinsun.com>
35229
35230         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
35231         hint that one should use `if (! x) abort ();' rather than `assert
35232         (x);', and anyway it's one less thing to worry about configuring.
35233         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
35234         hash_rehash, hash_insert): Use abort rather than assert.
35235
35236 2002-11-22  Bruno Haible  <bruno@clisp.org>
35237
35238         * lib/safe-read.h: Assume C89. Add comments.
35239         (safe_read): Change return type to size_t.
35240         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
35241         byte counts > SSIZE_MAX correctly.
35242         * lib/safe-write.h: New file.
35243         * lib/safe-write.c: New file.
35244         * lib/full-read.h: New file.
35245         * lib/full-read.c: New file.
35246         * lib/full-write.h: Assume C89. Add comments.
35247         * lib/full-write.c: Include safe-write.h.
35248         (full_write): Rewritten to use safe_write.
35249         Suggested by Jim Meyering and Paul Eggert.
35250
35251 2002-11-21  Jim Meyering  <jim@meyering.net>
35252
35253         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
35254
35255         Merge in changes from the coreutils.
35256
35257         2002-09-25  Paul Eggert  <eggert@twinsun.com>
35258         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
35259         <stdint.h>.
35260         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
35261         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
35262         int.  Work more efficiently if X is the same width as uintmax_t.
35263         Do not compare X to -1, to avoid bogus compiler warning.
35264         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
35265         Don't assume that f_frsize and f_bsize are the same type.
35266
35267         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
35268         warning on FreeBSD.
35269
35270         * lib/makepath.c (make_path): Restore umask *before* creating the final
35271         component.
35272         (make_path): Minor reformatting.
35273
35274         * lib/xmalloc.c: Adjust to work with new autoconf macros,
35275         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
35276         HAVE_MALLOC/HAVE_REALLOC.
35277
35278         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
35279         dummy ones.  At least on GNU/Linux systems, `auto' means something
35280         else.
35281         From Michael Stone.
35282
35283 2002-11-21  Bruno Haible  <bruno@clisp.org>
35284
35285         Remove case insensitive option matching.
35286         * lib/argmatch.h (argcasematch): Remove declaration.
35287         (ARGCASEMATCH): Remove macro.
35288         (__xargmatch_internal): Remove case_sensitive argument.
35289         (XARGMATCH): Update.
35290         (XARGCASEMATCH): Remove macro.
35291         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
35292         case_sensitive argument.
35293         (argcasematch): Remove function.
35294         (__xargmatch_internal): Remove case_sensitive argument.
35295         (main): Use XARGMATCH instead of XARGCASEMATCH.
35296
35297         * lib/xmalloc.c: Change compile-time error message. Add comment about
35298         required autoconf version.
35299
35300 2002-11-20  Paul Eggert  <eggert@twinsun.com>
35301
35302         Merge argmatch cleanups from Bison.  Assume C89.
35303
35304         * lib/argmatch.c: Include config.h here, not in argmatch.h.
35305         Include stdlib.h, for EXIT_FAILURE.
35306         Always include <string.h>, since we assume C89.
35307         (EXIT_FAILURE): Remove pre-C89 bug workaround.
35308         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
35309         Include <stddef.h> instead, since it's all we need for size_t.
35310         (PARAMS): Remove.  All uses removed.
35311         (ARRAY_CARDINALITY): Do not bother to #undef.
35312         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
35313         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
35314         Remove unnecessary parentheses.
35315         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
35316         Insert necessary parentheses.
35317         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
35318         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
35319
35320 2002-11-19  Bruno Haible  <bruno@clisp.org>
35321
35322         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
35323         * lib/mbswidth.h: Include <stddef.h>, for size_t.
35324
35325         * lib/mbswidth.h (PARAMS): Remove macro.
35326         (mbswidth, mbsnwidth): Use ANSI C function declarations.
35327         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
35328
35329         * lib/gcd.h (PARAMS): Remove macro.
35330         (gcd): Use ANSI C function declarations.
35331         * lib/gcd.c (gcd): Likewise.
35332
35333 2002-11-15  Bruno Haible  <bruno@clisp.org>
35334
35335         * lib/strcspn.c: Include <stddef.h>.
35336         (strcspn): Use ANSI C function declaration. Change return type to
35337         size_t. Use NULL.
35338         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
35339         (strpbrk): Use NULL.
35340         * lib/strpbrk.h (PARAMS): Remove macro.
35341         (strpbrk): Use ANSI C function declaration.
35342         * lib/strstr.c: Don't include <sys/types.h>.
35343         * lib/strstr.h (PARAMS): Remove macro.
35344         (strstr): Use ANSI C function declarations.
35345
35346 2002-11-14  Karl Berry  <karl@gnu.org>
35347
35348         * config/mkinstalldirs: `do' on separate line, instead of
35349         `for var; do'.
35350
35351 2002-11-06  Bruno Haible  <bruno@clisp.org>
35352
35353         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
35354         * lib/gcd.c (gcd): Likewise.
35355
35356 2002-11-05  Bruno Haible  <bruno@clisp.org>
35357
35358         * lib/gcd.h: New file, from gettext-0.11.5.
35359         * lib/gcd.c: New file, from gettext-0.11.5.
35360
35361 2002-11-05  Bruno Haible  <bruno@clisp.org>
35362
35363         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
35364         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
35365         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
35366         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
35367
35368         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
35369         <libintl.h>.
35370         * lib/makepath.c: Include gettext.h instead of <locale.h> and
35371         <libintl.h>.
35372
35373         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
35374         * lib/human.c: Include gettext.h instead of <libintl.h>.
35375         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
35376         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
35377         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
35378         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
35379         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
35380         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
35381         (textdomain): Remove definition.
35382         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
35383
35384         * lib/long-options.c: Remove include of <libintl.h> and definition of
35385         _.
35386         * lib/same.c: Remove include of <libintl.h> and definition of _.
35387
35388 2002-11-04  Owen Taylor  <otaylor@redhat.com>
35389
35390         * lib/config.charset: A few additions for Solaris.
35391
35392 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
35393
35394         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
35395         * lib/localcharset.c (locale_charset): Declare as extern "C".
35396
35397 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
35398
35399         * lib/config.charset: msdos in uk_UA uses CP1125.
35400
35401 2002-11-04  Bruno Haible  <bruno@clisp.org>
35402
35403         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
35404         * lib/strcase.h: New file, from GNU gettext-0.11.5.
35405         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
35406         * lib/strstr.h: New file, from GNU gettext-0.11.5.
35407         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
35408
35409 2002-11-04  Bruno Haible  <bruno@clisp.org>
35410
35411         * lib/localcharset.c (locale_charset): Don't return an empty string.
35412
35413 2002-11-04  Bruno Haible  <bruno@clisp.org>
35414
35415         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
35416         aliases.
35417
35418 2002-11-04  Bruno Haible  <bruno@clisp.org>
35419
35420         * lib/config.charset: Update for newest glibc. Add canonical names
35421         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
35422
35423 2002-11-04  Bruno Haible  <bruno@clisp.org>
35424
35425         * lib/config.charset: Add support for NetBSD.
35426
35427 2002-11-04  Bruno Haible  <bruno@clisp.org>
35428
35429         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
35430
35431 2002-11-01  Bruno Haible  <bruno@clisp.org>
35432
35433         * configure.in: Add AC_CONFIG_AUX_DIR call.
35434         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
35435         test/Makefile.
35436         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
35437
35438 2002-09-28  Karl Berry  <karl@gnu.org>
35439
35440         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
35441         installed automake until the next release, since changes have been
35442         made.
35443
35444 2002-09-25  Karl Berry  <karl@gnu.org>
35445
35446         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
35447         * lib/getopt*: copy from libc/posix.
35448         * lib/gettext.h: copy from gettext.
35449         * lib/.cppi-disable: add strdup.c, gettext.h.
35450
35451 2002-09-25  Karl Berry  <karl@gnu.org>
35452
35453         * config/srclist.txt: enable gettext.h check.
35454         * config/config.{guess,sub}: update from prep.
35455         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
35456                 from automake 1.6.3.
35457         See srclist*.
35458
35459 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
35460
35461         * regex.c (PATFETCH): Remove the translating fetch.
35462         (PATFETCH_RAW): Rename to PATFETCH.
35463         (set_image_of_range): New fun.
35464         (SET_RANGE_TABLE_WORK_AREA): Use it.
35465         (regex_compile): Don't translate the pattern chars so eagerly.
35466         Only do it when inserting an `exactn' bytecode or when handling
35467         a char-range.
35468         (mutually_exclusive_p): Avoid empty statement.
35469
35470 2002-07-06  Jim Meyering  <meyering@lucent.com>
35471
35472         * m4/README: Don't mention Makefile.am.in.
35473         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
35474
35475 2002-07-01  Jim Meyering  <meyering@lucent.com>
35476
35477         * lib/c-stack.c: Include sys/time.h.
35478         From Volker Borchert.
35479
35480 2002-06-26  Paul Eggert  <eggert@twinsun.com>
35481
35482         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
35483
35484 2002-06-26  Paul Eggert  <eggert@twinsun.com>
35485
35486         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
35487         New macro.  Use it uniformly instead of
35488         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
35489         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
35490         reported by Vin Shelton.
35491
35492 2002-06-22  Paul Eggert  <eggert@twinsun.com>
35493
35494         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
35495         Do not assume SA_SIGINFO behavior.
35496         Bug reported by Jim Meyering on NetBSD 1.5.2.
35497
35498 2002-06-22  Jim Meyering  <meyering@lucent.com>
35499
35500         * m4/c-stack.m4: New file, from diffutils-2.8.2.
35501         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
35502
35503         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
35504         now that configure.ac uses AC_GNU_SOURCE.
35505         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
35506         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
35507
35508         Update to latest tools.  Suggestions from Paul Eggert.
35509         * m4/stdbool.m4: New file, from diffutils-2.8.2.
35510         * m4/gnu-source.m4: Update from diffutils-2.8.2.
35511         * m4/fnmatch.m4: Likewise.
35512         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
35513         to AC_HEADER_STDBOOL
35514
35515 2002-06-22  Jim Meyering  <meyering@lucent.com>
35516
35517         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
35518         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
35519
35520 2002-06-22  Jim Meyering  <meyering@lucent.com>
35521
35522         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
35523
35524         * lib/exitfail.c, exitfail.h: Likewise.
35525         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
35526
35527         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
35528         of fnmatch.h.
35529         (EXTRA_DIST): Add fnmatch_loop.c.
35530         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
35531
35532         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
35533         * lib/fnmatch.c: Update from diffutils-2.8.2.
35534         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
35535         * lib/fnmatch.h: Remove file.
35536
35537 2002-06-21  Jim Meyering  <meyering@lucent.com>
35538
35539         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
35540         * m4/mbrtowc.m4: Likewise.
35541
35542         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
35543         * m4/mbswidth.m4: Reflect name change:
35544         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
35545         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
35546
35547         * m4/lib-link.m4: Update from gettext-0.11.2.
35548         * m4/gettext.m4: Likewise.
35549
35550         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
35551         From Alfred M. Szmidt.
35552
35553 2002-06-18  Paul Eggert  <eggert@twinsun.com>
35554
35555         * lib/file-type.h: Report an error if neither S_ISREG nor
35556         S_IFREG is defined, instead of using a test specific to glibc
35557         2.2.  This should be safe, since POSIX requires S_ISREG and
35558         Unix Version 7 had S_IFREG.  We don't need to check for
35559         <sys/types.h> since we don't use any symbols that it defines.
35560
35561 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
35562
35563         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
35564         $@-t, so that each temporary file name is unique and valid in the first
35565         8 characters, for operation under DOS.
35566
35567 2002-06-15  Paul Eggert  <eggert@twinsun.com>
35568
35569         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
35570
35571 2002-06-15  Jim Meyering  <meyering@lucent.com>
35572
35573         Work even with DJGPP 2.03, which lacks support for symlinks.
35574         From Richard Dawe.
35575         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
35576         is defined.
35577         * lib/lchown.c (S_ISLNK): Likewise.
35578
35579 2002-06-15  Jim Meyering  <meyering@lucent.com>
35580
35581         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
35582         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
35583         have been included before this file.
35584
35585 2002-06-14  Jim Meyering  <meyering@lucent.com>
35586
35587         * lib/file-type.h: Use the version from diffutils-2.8.2.
35588         * lib/file-type.c: Likewise.
35589
35590 2002-06-07  Jim Meyering  <meyering@lucent.com>
35591
35592         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
35593         They're needed at least for NetBSD 1.5.2.
35594         ($statxfs_includes): Include those same headers.
35595         ($statxfs_includes): Include sys/vfs.h if available.
35596         ($statxfs_includes): Likewise for sys/statvfs.h.
35597         Check for the following members in both structs statfs and statvfs:
35598         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
35599
35600 2002-06-01  Jim Meyering  <meyering@lucent.com>
35601
35602         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
35603         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
35604
35605 2002-05-28  Jim Meyering  <meyering@lucent.com>
35606
35607         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
35608         Reported by Volker Borchert.
35609
35610 2002-05-27  Jim Meyering  <meyering@lucent.com>
35611
35612         Fix a problem seen only on nonconforming systems whereby ls.c's
35613         use of localtime, and then of gettimeofday would cause trouble:
35614         the localtime call used to initialize rpl_gettimeofday's save
35615         mechanism would clobber ls's current local time information so
35616         that in any long listing the first file would always be listed
35617         with date 1970-01-01.  Analysis by Volker Borchert.
35618
35619         * lib/gettimeofday.c (localtime): Undefine.
35620         (rpl_localtime): New function.
35621
35622 2002-05-27  Jim Meyering  <meyering@lucent.com>
35623
35624         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
35625         localtime.
35626
35627         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
35628         use the replacement function; it wouldn't resolve at link time.
35629         Reported by Volker Borchert.
35630
35631 2002-05-22  Jim Meyering  <meyering@lucent.com>
35632
35633         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
35634         file-type.h.
35635         * lib/file-type.h: New file.
35636         * lib/file-type.c (file_type): New file/function.  Extracted from
35637         diffutils.
35638
35639 2002-04-30  Jim Meyering  <meyering@lucent.com>
35640
35641         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
35642
35643 2002-04-29  Paul Eggert  <eggert@twinsun.com>
35644
35645         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
35646
35647 2002-04-29  Paul Eggert  <eggert@twinsun.com>
35648
35649         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
35650         Do not check for alloca.h (no longer used) or stdbool.h (was never
35651         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
35652
35653 2002-04-29  Paul Eggert  <eggert@twinsun.com>
35654
35655         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
35656
35657 2002-04-29  Jim Meyering  <meyering@lucent.com>
35658
35659         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
35660         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
35661         Use AC_FUNC_STRNLEN here instead.
35662
35663         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
35664         With autoconf-2.53a, it's part of AC_PROG_CC.
35665
35666 2002-04-28  Paul Eggert  <eggert@twinsun.com>
35667
35668         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
35669         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
35670
35671 2002-04-28  Paul Eggert  <eggert@twinsun.com>
35672
35673         * lib/sig2str.h, lib/sig2str.c: New files.
35674         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
35675
35676 2002-04-28  Paul Eggert  <eggert@twinsun.com>
35677
35678         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
35679         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
35680         of 127, since 64 is the largest conceivable number for ancient
35681         nonstandard hosts.
35682         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
35683
35684 2002-04-28  Jim Meyering  <meyering@lucent.com>
35685
35686         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
35687
35688 2002-04-24  Jim Meyering  <meyering@lucent.com>
35689
35690         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
35691         (jm_PREREQ): Use it.
35692
35693         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
35694         mach/mach.h fcntl.h.
35695         Check for this function: setlocale.
35696
35697 2002-04-24  Jim Meyering  <meyering@lucent.com>
35698
35699         * lib/gettext.h: New file, from Gettext.
35700         * lib/Makefile.am (INCLUDES): Remove -I../intl.
35701         (libfetish_a_SOURCES): Add gettext.h.
35702
35703 2002-04-16  Jim Meyering  <meyering@lucent.com>
35704
35705         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
35706         ut_pid, ut_id, ut_exit.
35707
35708 2002-04-16  Jim Meyering  <meyering@lucent.com>
35709
35710         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
35711         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
35712         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
35713
35714 2002-04-12  Jim Meyering  <meyering@lucent.com>
35715
35716         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
35717         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
35718         existence of the getmntinfo function.  Needed for Darwin 5.3.
35719
35720         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
35721         This is necessary at least on Darwin 5.3.
35722
35723         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
35724         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
35725         strnlen.o in the library, and that makes some versions of ranlib
35726         object.
35727
35728 2002-04-12  Jim Meyering  <meyering@lucent.com>
35729
35730         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
35731
35732 2002-04-09  Jim Meyering  <meyering@lucent.com>
35733
35734         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
35735         to be more precise.  Rather than saying we're checking whether the
35736         function `works', say what we're testing.
35737         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
35738         Reported by Bruno Haible.
35739
35740 2002-03-10  Jim Meyering  <meyering@lucent.com>
35741
35742         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
35743         Suggestion from Santiago Vila.
35744
35745 2002-03-08  Jim Meyering  <meyering@lucent.com>
35746
35747         * lib/rename.c: Mention that this wrapper is needed also on
35748         mips-dec-ultrix4.4 systems.
35749
35750 2002-03-02  Jim Meyering  <meyering@lucent.com>
35751
35752         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
35753         not HAVE_CLOCK_SETTIME.
35754
35755 2002-02-27  Paul Eggert  <eggert@twinsun.com>
35756
35757         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
35758         Check for clock_settime.
35759
35760 2002-02-27  Paul Eggert  <eggert@twinsun.com>
35761
35762         * lib/nanosleep.h: Rename to....
35763         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
35764
35765         * lib/gettime.c: New file.
35766         * lib/settime.c: New file.
35767         * lib/stime.c: Remove.
35768
35769         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
35770         timespec.h.  Remove nanosleep.h.
35771
35772 2002-02-25  Paul Eggert  <eggert@twinsun.com>
35773
35774         * m4/acl.m4: New file.
35775         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
35776         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
35777
35778 2002-02-25  Paul Eggert  <eggert@twinsun.com>
35779
35780         * lib/acl.c, lib/acl.h: New files.
35781         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
35782
35783 2002-02-24  Jim Meyering  <meyering@lucent.com>
35784
35785         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
35786         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
35787         cause trouble.  Reported by Nelson Beebe.
35788
35789 2002-02-23  Paul Eggert  <eggert@twinsun.com>
35790
35791         * lib/path-concat.c (xpath_concat): Reorder code to pacify
35792         compilers that don't know that xalloc_die never returns.
35793
35794 2002-02-20  Jim Meyering  <meyering@lucent.com>
35795
35796         * lib/getdate.c: Regenerate using bison-1.33.
35797
35798 2002-02-17  Jim Meyering  <meyering@lucent.com>
35799
35800         * config/config.guess (main): Don't use `head -1'; it's no longer
35801         portable. Use `sed 1q' instead.
35802
35803 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
35804
35805         * m4/codeset.m4: Upgrade to gettext-0.11.
35806         * m4/gettext.m4: Upgrade to gettext-0.11.
35807         * m4/glibc21.m4: Upgrade to gettext-0.11.
35808         * m4/iconv.m4: Upgrade to gettext-0.11.
35809         * m4/isc-posix.m4: Upgrade to gettext-0.11.
35810         * m4/lcmessage.m4: Upgrade to gettext-0.11.
35811         * m4/lib-ld.m4: New file, from gettext-0.11.
35812         * m4/lib-link.m4: New file, from gettext-0.11.
35813         * m4/lib-prefix.m4: New file, from gettext-0.11.
35814         * m4/progtest.m4: Upgrade to gettext-0.11.
35815
35816 2002-02-15  Paul Eggert  <eggert@twinsun.com>
35817
35818         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
35819         (jm_PREREQ): Use it.
35820
35821 2002-02-15  Paul Eggert  <eggert@twinsun.com>
35822
35823         * lib/posixver.c, lib/posixver.h: New files.
35824         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
35825
35826 2002-02-02  Paul Eggert  <eggert@twinsun.com>
35827             Bruno Haible  <bruno@clisp.org>
35828
35829         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
35830         (fwrite_success_callback): New declaration.
35831         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
35832         print_unicode_char. Call failure callback instead of error.
35833         (fwrite_success_callback): New function.
35834         (exit_failure_callback): New function.
35835         (fallback_failure_callback): New function.
35836         (print_unicode_char): Call unicode_to_mb.
35837
35838 2002-01-26  Jim Meyering  <meyering@lucent.com>
35839
35840         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
35841         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
35842
35843 2002-01-26  Jim Meyering  <meyering@lucent.com>
35844
35845         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
35846
35847 2002-01-22  Paul Eggert  <eggert@twinsun.com>
35848
35849         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
35850
35851 2002-01-22  Jim Meyering  <meyering@lucent.com>
35852
35853         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
35854         Otherwise, some versions of automake would omit the rule that makes
35855         Makefile from Makefile.in.
35856
35857 2002-01-21  Paul Eggert  <eggert@twinsun.com>
35858
35859         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
35860         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
35861         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
35862         (memcoll): Set errno to zero if there is no error.
35863
35864         * lib/quotearg.c (quotearg_buffer_restyled):
35865         Fix bug with quoting buffers containing NUL when backslashing escapes.
35866         This bug was exposed by the other changes in this patch.
35867         (quotearg_n_options): New arg ARGSIZE.
35868         All callers changed.
35869         (quoting_options_from_style): New function.
35870         (quotearg_n_style): Use it.
35871         (quotearg_n_style_mem): New function.
35872
35873         * lib/quotearg.h (quotearg_n_style_mem): New function.
35874
35875 2002-01-19  Jim Meyering  <meyering@lucent.com>
35876
35877         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
35878         Remove useless quotes: DF_PROG="df".
35879         * m4/strnlen.m4: New file.
35880
35881 2002-01-16  Paul Eggert  <eggert@twinsun.com>
35882
35883         * lib/backupfile.c (ISDIGIT): Comment fix.
35884         * lib/getdate.y (ISDIGIT): Likewise.
35885         * lib/posixtm.c (ISDIGIT, year): Likewise.
35886         * lib/strverscmp.c (ISDIGIT): Likewise.
35887         * lib/userspec.c (ISDIGIT): Likewise.
35888
35889 2002-01-16  Jim Meyering  <meyering@lucent.com>
35890
35891         * lib/getdate.y: Add three semicolons, each just before a closing
35892         brace. Bison (as of version 1.31) no longer papers over that mistake.
35893
35894 2002-01-05  Jim Meyering  <meyering@lucent.com>
35895
35896         * lib/version-etc.c (version_etc_copyright): Update copyright year.
35897
35898 2001-12-19  Paul Eggert  <eggert@twinsun.com>
35899
35900         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
35901         not silently exit merely because the output buffer happens to
35902         have nothing pending.
35903
35904 2001-12-18  Paul Eggert  <eggert@twinsun.com>
35905
35906         See the big note in ../ChangeLog.
35907         * lib/human.c (suffixes): Prefer K to k for 1024.
35908         (generate_suffix_backwards): New function.
35909         (human_readable_inexact): Use it.
35910         * lib/xstrtol.c (__xstrtol): If there is no number but there
35911         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
35912         Accept 'K' as well as 'k'.
35913
35914 2001-12-15  Jim Meyering  <meyering@lucent.com>
35915
35916         * lib/regex.h (__restrict_arr): Update from libc.
35917
35918         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
35919         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
35920         (STREQ): Define.
35921
35922 2001-12-14  Jim Meyering  <meyering@lucent.com>
35923
35924         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
35925         Suggestion from Bruno Haible.
35926
35927 2001-12-10  Jim Meyering  <meyering@lucent.com>
35928
35929         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
35930         xrealloc, Instead, include "xalloc.h".
35931         (initbuffer): Don't cast xmalloc return value to char*.
35932         (readline): Reword comment.
35933         Don't cast xrealloc return value to char*
35934         Return NULL, not 0.
35935
35936 2001-12-09  Jim Meyering  <meyering@lucent.com>
35937
35938         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
35939         about `signed and unsigned type in conditional expression'.
35940         * lib/posixtm.c (posix_time_parse): Likewise.
35941
35942         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
35943
35944         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
35945         to avoid a pedantic warning.
35946
35947         * lib/getstr.c: Don't include assert.h.
35948         (getstr): Remove warning-evoking assertions.
35949         Return -1 if offset parameter is out of bounds.
35950         Change the type of a local from int to size_t.
35951
35952         * lib/strftime.c (my_strftime_localtime_r): Include this function
35953         definition in the `#if ! HAVE_TM_GMTOFF' block.
35954
35955         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
35956         Include xalloc.h instead.
35957
35958 2001-12-02  Jim Meyering  <meyering@lucent.com>
35959
35960         * lib/tempname.c: Don't declare getenv, thus reverting the change of
35961         2001-11-18.  It's no longer necessary, now that stdlib.h is always
35962         included.
35963
35964         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
35965         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
35966
35967 2001-11-30  Akim Demaille  <akim@epita.fr>
35968
35969         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
35970         before being defined.
35971
35972 2001-11-27  Paul Eggert  <eggert@twinsun.com>
35973
35974         * lib/quotearg.h (quotearg_n, quotearg_n_style):
35975         First arg is int, not unsigned.
35976         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
35977         (SIZE_MAX, UINT_MAX): New macros.
35978         (quotearg_n_options): Abort if N is negative.
35979         Avoid overflow check on hosts where size_t is 64 bits and int
35980         is 32 bits, as overflow is impossible there.
35981         Fix off-by-one typo that caused unnecessary reallocation.
35982
35983 2001-11-27  Jim Meyering  <meyering@lucent.com>
35984
35985         * lib/tempname.c: Merge with version from libc.
35986         * lib/regex.c: Likewise.
35987
35988         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
35989         systems for which STDC_HEADERS is 0, it was not included, resulting in
35990         a warning about an integer-to-pointer conversion problem with getenv.
35991         Reported by Volker Borchert.
35992
35993 2001-11-26  Jim Meyering  <meyering@lucent.com>
35994
35995         * lib/gtod.h: Remove file.
35996         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
35997         * lib/gettimeofday.c: Don't include gtod.h.
35998         (GTOD_init): Remove function.
35999         (rpl_gettimeofday): Do its job here instead, rather than aborting.
36000         Suggestion from Volker Borchert.
36001
36002 2001-11-23  Jim Meyering  <meyering@lucent.com>
36003
36004         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
36005         it.
36006         * lib/hash.c (struct hash_table): Define it here instead.
36007
36008 2001-11-22  Jim Meyering  <meyering@lucent.com>
36009
36010         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
36011
36012 2001-11-20  Jim Meyering  <meyering@lucent.com>
36013
36014         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
36015         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
36016
36017 2001-11-19  Jim Meyering  <meyering@lucent.com>
36018
36019         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
36020         directory.  Use "conftestXXXXXX" as the template.
36021         Suggestion from Paul Eggert.
36022
36023         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
36024         immediately, so the test doesn't mistakenly hit the max-open-files
36025         limit.
36026
36027 2001-11-18  Paul Eggert  <eggert@twinsun.com>
36028
36029         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
36030         (TEMPORARIES): New macro.
36031         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
36032         removes an artificial limitation (e.g. HP-UX 10.20, where
36033         TMP_MAX is 17576).
36034
36035 2001-11-18  Jim Meyering  <meyering@lucent.com>
36036
36037         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
36038
36039 2001-11-18  Jim Meyering  <meyering@lucent.com>
36040
36041         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
36042         on SunOS 4.
36043
36044         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
36045         files will be created before anything else.
36046
36047 2001-11-17  Paul Eggert  <eggert@twinsun.com>
36048
36049         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
36050         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
36051
36052 2001-11-17  Jim Meyering  <meyering@lucent.com>
36053
36054         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
36055         Prompted by a report from Bob Proulx.
36056
36057         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
36058         Instead, require UTILS_FUNC_MKSTEMP.
36059
36060 2001-11-17  Jim Meyering  <meyering@lucent.com>
36061
36062         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
36063         Now, that's done as part of AC_FUNC_STRTOD.
36064
36065 2001-11-17  Jim Meyering  <meyering@lucent.com>
36066
36067         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
36068         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
36069         rather than group writable.  Patch by Juan F. Codagnone.
36070
36071         * lib/readtokens.c: Remove explicit declarations of xmalloc and
36072         xrealloc, Instead, include "xalloc.h".
36073
36074         * lib/mountlist.c: Include unlocked-io.h after all system headers.
36075         Remove explicit declarations of xmalloc, xrealloc,
36076         and xstrdup.  Instead, include "xalloc.h".
36077
36078         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
36079         unlocked-io.h.
36080         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
36081         Likewise.
36082         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
36083
36084         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
36085         Reported by Padraig Brady.
36086
36087         * lib/mkstemp.c: #undef mkstemp.
36088         Include config.h.
36089         (rpl_mkstemp): Rename from mkstemp.
36090         Protoize.
36091
36092 2001-11-16  Jim Meyering  <meyering@lucent.com>
36093
36094         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
36095         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
36096         determine the amount of total physical memory, use pstat_getstatic.
36097         HPUX-11 doesn't define _SC_PHYS_PAGES.
36098         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
36099         If sysconf couldn't be used to determine the amount of available
36100         physical memory, use both pstat_getstatic and pstat_getdynamic.
36101         Based on a patch from Bob Proulx.
36102
36103 2001-11-10  Jim Meyering  <meyering@lucent.com>
36104
36105         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
36106         (jm_PREREQ): Use it.
36107
36108 2001-11-09  Jim Meyering  <meyering@lucent.com>
36109
36110         * m4/jm-macros.m4: Require autoconf-2.52f.
36111         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
36112         Use these AC_-prefixed names, not the AM_-prefixed ones.
36113
36114         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
36115
36116 2001-11-05  Jim Meyering  <meyering@lucent.com>
36117
36118         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
36119
36120 2001-11-04  Jim Meyering  <meyering@lucent.com>
36121
36122         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
36123         $DEFS.
36124
36125 2001-11-03  Jim Meyering  <meyering@lucent.com>
36126
36127         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
36128         of AC_DEFUN.
36129
36130         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
36131         know the name of the variable in the macro definition.
36132
36133 2001-11-03  Jim Meyering  <meyering@lucent.com>
36134
36135         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
36136         in argmatch_to_argument call.
36137
36138         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
36139         argument.
36140
36141         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
36142         e.g., a fault due to an attempt to free a NULL pointer.
36143
36144 2001-11-01  Jim Meyering  <meyering@lucent.com>
36145
36146         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
36147         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
36148
36149 2001-11-01  Jim Meyering  <meyering@lucent.com>
36150
36151         * lib/dirfd.c, lib/dirfd.h: New files.
36152         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
36153
36154         * lib/hash.c (hash_print) [TESTING]: Clean up.
36155
36156 2001-10-22  Paul Eggert  <eggert@twinsun.com>
36157
36158         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
36159         to avoid a warning if -Wall.
36160
36161 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
36162
36163         * README: New file
36164         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
36165         (per RMS's instructions, this is now the canonical source)
36166         * lgpl/, gpl/: New directories.
36167
36168 2001-10-21  Paul Eggert  <eggert@twinsun.com>
36169
36170         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
36171
36172 2001-10-21  Jim Meyering  <meyering@lucent.com>
36173
36174         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
36175         this code would end up calling gettext even in packages built
36176         with --disable-nls.
36177         * lib/getopt.c (_): Likewise.
36178         * lib/regex.c (_): Likewise.
36179
36180 2001-10-20  Paul Eggert  <eggert@twinsun.com>
36181
36182         * m4/error.m4 (jm_PREREQ_ERROR):
36183         Do not invoke AC_CHECK_FUNCS with strerror_r, as
36184         AC_FUNC_STRERROR_R does that.
36185         Check for strerror declaration.
36186
36187         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
36188         are supposed to have them these days.
36189         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
36190         Merge changes from latest Autoconf CVS.
36191         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
36192         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
36193         POSIX decided to standardize on the int flavor of strerror_r.
36194
36195 2001-10-20  Paul Eggert  <eggert@twinsun.com>
36196
36197         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
36198         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
36199         Use strerror_r that is only a macro, even if it is not a function.
36200         (strerror): Check for HAVE_DECL_STRERROR before declaring.
36201         (private_strerror): Use prototypes, not old-style function definition.
36202         (print_errno_message): New function.
36203         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
36204         char*-flavored one.
36205         (error_tail, error, error_at_line): Use it.
36206
36207 2001-10-11  Jim Meyering  <meyering@lucent.com>
36208
36209         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
36210         and quote_n (1, ... to avoid clobbering a buffer.
36211
36212 2001-10-05  Jim Meyering  <meyering@lucent.com>
36213
36214         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
36215         hash-pjw.h.
36216         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
36217         * lib/hash-pjw.h: New file.
36218
36219 2001-09-30  Jim Meyering  <meyering@lucent.com>
36220
36221         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
36222         `struct fsstat' has the `f_fstypename' member.
36223         Use that to define FS_TYPE, which is now used to make
36224         the getfsstat link test tighter.
36225
36226 2001-09-30  Jim Meyering  <meyering@lucent.com>
36227
36228         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
36229         Include <sys/ucred.h>, for Apple Darwin.
36230         Include sys/mount.h and sys/fs_types.h only if available.
36231         (FS_TYPE): Define.
36232         (read_filesystem_list): Use FS_TYPE.
36233
36234 2001-09-29  Paul Eggert  <eggert@twinsun.com>
36235
36236         * lib/exclude.c (excluded_filename): 0 -> false, since it's
36237         a boolean context.
36238
36239 2001-09-29  Jim Meyering  <meyering@lucent.com>
36240
36241         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
36242         [one-argument getmntent function]): Include stdio.h before mntent.h.
36243         SunOS 4.1.x needs it for the declaration of `FILE'.
36244         Patch by Volker Borchert.
36245
36246         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
36247         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
36248         sys/fs_types.h, and make the link-test for getfsstat guard #include
36249         directives with appropriate #if HAVE_*_H tests so that we can
36250         detect getfsstat on Apple Darwin1.3.7 systems.
36251         Reported by Nelson Beebe.
36252         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
36253
36254 2001-09-28  Paul Eggert  <eggert@twinsun.com>
36255
36256         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
36257         #defines strtoimax.  Also treat the other strto* functions
36258         like strtoimax.
36259
36260         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
36261         Check for strtoul and strtoumax,
36262         as those declarations are made even in the signed case.
36263         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
36264         Likewise, for strtol and strtoimax.
36265
36266 2001-09-28  Paul Eggert  <eggert@twinsun.com>
36267
36268         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
36269         #defines strtoimax.  Also treat the other strto* functions
36270         like strtoimax.
36271
36272         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
36273         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
36274         (strtoimax, strtoumax): Do not declare if already defined as a macro.
36275
36276 2001-09-26  Jim Meyering  <meyering@lucent.com>
36277
36278         Most macros in unlocked-io.h had the wrong number of arguments.
36279         * lib/gen-uio: New script.
36280         (USE_UNLOCKED_IO): Define to 1 if not already defined.
36281         * lib/unlocked-io.hin: Remove file.
36282         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
36283         rather than trying to embed it here.
36284         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
36285         Reported by Padraig Brady.
36286
36287 2001-09-25  Volker Borchert  <bt@teknon.de>
36288
36289         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
36290         `result'.
36291
36292 2001-09-24  Jim Meyering  <meyering@lucent.com>
36293
36294         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
36295
36296 2001-09-23  Jim Meyering  <meyering@lucent.com>
36297
36298         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
36299         instead of the mere test for existence of mntent.h.  The latter
36300         would get a false-positive on AIX 3.4 systems.
36301         In the outer getmntent if-block, don't die if neither of the getmntent
36302         tests succeeds.  Instead, just fall through and continue with the
36303         remaining tests.
36304
36305 2001-09-23  Jim Meyering  <meyering@lucent.com>
36306
36307         * lib/mountlist.c: Remove useless parentheses in #if directives.
36308         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
36309         the deprecated MOUNTED symbol is no longer defined in mntent.h.
36310
36311 2001-09-22  Jim Meyering  <meyering@lucent.com>
36312
36313         * m4/gettext.m4: New file.  From gettext.
36314         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
36315         * m4/progtest.m4: Likewise
36316         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
36317         * m4/glibc21.m4: Likewise.
36318
36319         * m4/libintl.m4: Remove.  No longer used.
36320
36321 2001-09-22  Jim Meyering  <meyering@lucent.com>
36322
36323         * lib/localcharset.c: Update from latest gettext.
36324         * lib/config.charset: Likewise.
36325
36326 2001-09-20  Jim Meyering  <meyering@lucent.com>
36327
36328         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
36329         strtoimax.
36330         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
36331         strtoumax.
36332
36333 2001-09-20  Jim Meyering  <meyering@lucent.com>
36334
36335         * lib/xstrtol.c (strtoimax): Guard declaration with
36336         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
36337         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
36338         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
36339         (strtoumax): Likewise, for completeness (it wasn't necessary).
36340
36341 2001-09-17  Paul Eggert  <eggert@twinsun.com>
36342
36343         * lib/strtoimax.c (HAVE_LONG_LONG):
36344         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
36345         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
36346         to work around bug in IBM C compiler.
36347
36348 2001-09-17  Jim Meyering  <meyering@lucent.com>
36349
36350         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
36351         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
36352         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
36353         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
36354         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
36355         whenever the right hand side need not be expanded by the shell.
36356
36357 2001-09-16  Paul Eggert  <eggert@twinsun.com>
36358
36359         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
36360         library.  It's not correct, as some older glibcs are buggy.
36361         fnmatch wasn't fixed until glibc 2.2.
36362
36363         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
36364         special shell magic here.
36365
36366 2001-09-16  Jim Meyering  <meyering@lucent.com>
36367
36368         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
36369         * m4/jm-macros.m4: Require it.
36370
36371 2001-09-16  Jim Meyering  <meyering@lucent.com>
36372
36373         * lib/mkdir.c: New file.
36374
36375 2001-09-15  Jim Meyering  <meyering@lucent.com>
36376
36377         * m4/jm-macros.m4: Check for help2man.
36378
36379 2001-09-11  Jim Meyering  <meyering@lucent.com>
36380
36381         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
36382         The body, by Paul Eggert, was moved here from configure.in.
36383         * m4/jm-macros.m4: Require UTILS_HOST_OS.
36384
36385 2001-09-04  Paul Eggert  <eggert@twinsun.com>
36386
36387         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
36388         (jm_PREREQ): Use it.
36389
36390 2001-09-04  Paul Eggert  <eggert@twinsun.com>
36391
36392         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
36393         Use ssize_t, not int, to store result of readlink.
36394         Check for ssize_t overflow as well as size_t overflow,
36395         as POSIX says the result of readlink is implementation-defined
36396         when ssize_t overflows.
36397         Remove unnecessary cast to char*.
36398         Use free+malloc instead of realloc, as the storage doesn't need
36399         to be preserved and it's clearer and can be more efficient that way.
36400         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
36401         * lib/xreadlink.h (xreadlink): Update prototype.
36402
36403 2001-09-04  Paul Eggert  <eggert@twinsun.com>
36404
36405         * lib/xgetcwd.c: Revert some of the previous change; intead,
36406         fix the HAVE_GETCWD_NULL code to behave more like the
36407         !HAVE_GETCWD_NULL code used to.
36408
36409         Include "xalloc.h".
36410         (xgetcwd): Do not return NULL when memory is exhausted; instead,
36411         invoke xalloc_die.
36412
36413 2001-09-03  Paul Eggert  <eggert@twinsun.com>
36414
36415         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
36416         sys/param.h, as pathmax.h includes them.
36417
36418 2001-09-03  Paul Eggert  <eggert@twinsun.com>
36419
36420         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
36421         (jm_PREREQ_XGETCWD): New macro.
36422
36423         * m4/getcwd.m4: New file.
36424
36425 2001-09-03  Paul Eggert  <eggert@twinsun.com>
36426
36427         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
36428         like the HAVE_GETCWD_NULL code.
36429         Include pathmax.h if not HAVE_GETCWD.
36430         Do not include xalloc.h.
36431         (INITIAL_BUFFER_SIZE): New symbol.
36432         Do not use xmalloc / xrealloc, since the caller is responsible for
36433         handling errors.  Preserve errno around `free' during failure.
36434         Do not overrun buffer when using getwd.
36435
36436 2001-09-03  Paul Eggert  <eggert@twinsun.com>
36437
36438         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
36439         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
36440         getcwd (NULL, 0).
36441
36442 2001-09-03  Paul Eggert  <eggert@twinsun.com>
36443
36444         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
36445         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
36446         spotted by Jim Meyering.
36447
36448 2001-09-03  Jim Meyering  <meyering@lucent.com>
36449
36450         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
36451         failure.
36452
36453 2001-09-02  Jim Meyering  <meyering@lucent.com>
36454
36455         * lib/error.c: Update from GNU libc.
36456
36457 2001-09-01  Jim Meyering  <meyering@lucent.com>
36458
36459         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
36460         Used by df.
36461
36462 2001-09-01  Jim Meyering  <meyering@lucent.com>
36463
36464         * lib/xreadlink.c: New file.
36465         * lib/xreadlink.h: New file.
36466         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
36467         xreadlink.h.
36468
36469         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
36470         doesn't conflict with sparc Solaris 7's definition in
36471         /usr/include/sys/int_types.h.
36472
36473         * lib/exclude.c: Use `""', not `<>' to #include non-system header
36474         files.
36475         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
36476         and strncasecmp as r-values.  Unixware didn't have declarations.
36477
36478 2001-08-31  Paul Eggert  <eggert@twinsun.com>
36479
36480         * lib/xstrtol.h: Add copyright notice.
36481         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
36482         LONGINT_INVALID_SUFFIX_CHAR.
36483
36484 2001-08-31  Paul Eggert  <eggert@twinsun.com>
36485
36486         * lib/xstrtol.c (strtoimax): New decl.
36487
36488 2001-08-31  Paul Eggert  <eggert@twinsun.com>
36489
36490         * lib/xgetcwd.c: Don't include pathmax.h.
36491         Include stdlib.h and unistd.h if available.
36492         Include xalloc.h.
36493         (xmalloc, xstrdup, free): Remove decls.
36494         (xgetcwd): Don't assume sizes fit in unsigned.
36495         Check for overflow when computing sizes.
36496         Simplify reallocation code.
36497
36498 2001-08-31  Paul Eggert  <eggert@twinsun.com>
36499
36500         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
36501         a directory's st_size can have an arbitrary value, so the old
36502         usage could waste an arbitrary amount of memory.  All uses
36503         changed.
36504         * lib/savedir.h: Update prototype.
36505
36506 2001-08-31  Paul Eggert  <eggert@twinsun.com>
36507
36508         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
36509
36510         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
36511         old strtoimax.c.
36512
36513         Also, make the following further changes to make this file's
36514         configuration more similar to that of strtol.c:
36515         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
36516         (strtoumax, uintmax_t, strtoull, strtol): Remove.
36517         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
36518         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
36519         changed to signed values.
36520
36521         And make the following changes as well:
36522         Fix copyright notice, as 1999 was missing.
36523         (verify): New macro.
36524         (strtoimax): Check sizes at compile-time, not run-time.
36525         Prefer strtol to strtoll if both work.
36526         (main): Remove; it was not that useful and was a pain to maintain.
36527
36528         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
36529
36530 2001-08-31  Jim Meyering  <meyering@lucent.com>
36531
36532         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
36533         Use an initial, malloc'd, buffer of length 128 rather than
36534         a statically allocated one of length 1024.
36535
36536 2001-08-30  Paul Eggert  <eggert@twinsun.com>
36537
36538         Simplify code, partly by assuming autoconf 2.52 semantics.
36539
36540         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
36541
36542         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
36543         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
36544         All uses removed.
36545         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
36546         Move AC_REQUIRE to next-to-top level, to avoid confusion.
36547         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
36548         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
36549         jm_AC_HEADER_INTTYPES_H.
36550         * m4/jm-macros.m4 (jm_MACROS): Likewise.
36551
36552         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
36553
36554         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
36555         Quote first arg of AC_DEFUN.
36556         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
36557         since they are needed to parse the include file even if we need
36558         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
36559         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
36560         but with opposite signedness.
36561
36562 2001-08-30  Paul Eggert  <eggert@twinsun.com>
36563
36564         Merge 'exclude' changes from tar 1.13.22.
36565         This fixes one or two unlikely storage allocation overflow bugs,
36566         but doesn't change user-visible behavior otherwise.
36567
36568 2001-08-30  Paul Eggert  <eggert@twinsun.com>
36569
36570         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
36571         (jm_PREREQ_EXCLUDE): New macro.
36572
36573 2001-08-30  Paul Eggert  <eggert@twinsun.com>
36574
36575         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
36576         tm to be declared.
36577
36578 2001-08-30  Paul Eggert  <eggert@twinsun.com>
36579
36580         * lib/hash.c: Remove '2001' from copyright notice.
36581
36582 2001-08-30  Paul Eggert  <eggert@twinsun.com>
36583
36584         * lib/full-write.h: New file.
36585         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
36586         * lib/full-write.c: Correct credits, as cccp.c no longer
36587         exists and anyway it was so heavily changed from the old cccp
36588         code as to be unrecognizable.  Include full-write.h.
36589         (full_write) Return size_t, with short writes meaning failure.
36590         All callers changed.  This fixes a bug with large buffers
36591         on 64-bit hosts.
36592         * lib/utime.c: Include full-write.h.
36593
36594 2001-08-30  Paul Eggert  <eggert@twinsun.com>
36595
36596         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
36597         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
36598         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
36599         Include if available.
36600         (<xalloc.h>): Include
36601         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
36602         (verify): New macro.  Use it to verify that EXCLUDE macros do not
36603         collide with FNM macros.
36604         (struct patopts): New struct.
36605         (struct exclude): Use it, as exclude patterns now come with options.
36606         (new_exclude): Support above changes.
36607         (new_exclude, add_exclude_file):
36608         Initial size must now be a power of two to simplify overflow checking.
36609         (free_exclude, fnmatch_no_wildcards): New function.
36610         (excluded_filename): No longer requires options arg, as the options
36611         are determined by add_exclude.  Now returns bool, not int.
36612         (excluded_filename, add_exclude):
36613         Add support for the fancy new exclusion options.
36614         (add_exclude, add_exclude_file): Now takes int options arg.
36615         Check for arithmetic overflow when computing sizes.
36616         (add_exclude_file): xrealloc might modify errno, so don't
36617         realloc until after errno might be used.
36618
36619         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
36620         New macros.
36621         (free_exclude): New decl.
36622         (add_exclude, add_exclude_file): Now takes int options arg.
36623         (excluded_filename): No longer requires options arg, as the options
36624         are determined by add_exclude.  Now returns bool, not int.
36625
36626 2001-08-30  Paul Eggert  <eggert@twinsun.com>
36627
36628         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
36629
36630 2001-08-27  Jim Meyering  <meyering@lucent.com>
36631
36632         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
36633
36634         * lib/version-etc.c (N_): Remove definition.
36635         Revert most of last change.
36636         Instead, simply don't mark the `Copyright...' string for translation.
36637         Based on advice from Paul Eggert.
36638
36639         * lib/strtoxmax.c: Tweak comment.
36640
36641 2001-08-26  Jim Meyering  <meyering@lucent.com>
36642
36643         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
36644
36645         * m4/xstrtoimax.m4: New file.
36646         * m4/xstrtoumax.m4: Add comments explaining why we
36647         AC_REPLACE_FUNCS(strtol).
36648
36649 2001-08-26  Jim Meyering  <meyering@lucent.com>
36650
36651         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
36652         of copyright with `%s' so translators don't get an untranslated
36653         message in 2002.
36654         (COPYRIGHT_YEAR): Define.
36655         (version_etc): Use fprintf rather than fputs.
36656         Suggestion from Ulrich Drepper.
36657
36658         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
36659
36660         * lib/strtoll.c: New file, from GNU libc.
36661         * lib/xstrtoimax.c: New file.
36662
36663         * lib/xstrtol.h: Add xstrtoimax.
36664         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
36665         * lib/strtoimax.c: New file.  Likewise, but first define
36666         STRTOUXMAX_SIGNED.
36667
36668         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
36669         ...
36670         * lib/strtoxmax.c: ... then renamed to this.
36671
36672 2001-08-18  Paul Eggert  <eggert@twinsun.com>
36673
36674         * m4/inttypes.m4: Add AC_PREREQ(2.13).
36675         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
36676         (jm_AC_TYPE_INTMAX_T): New macro.
36677         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
36678
36679         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
36680
36681         * m4/longlong.m4: Renamed from ulonglong.m4.
36682         * m4/inttypes.m4: Renamed from inttypes_h.m4.
36683         * m4/uintmax_t.m4: Removed.
36684
36685 2001-08-13  Paul Eggert  <eggert@twinsun.com>
36686
36687         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
36688         Port to Solaris 8, where 'sed' requires a space after the 'r'
36689         command, and where sh dislikes "$/".  Clean up the spacing a bit.
36690         Redirect output to $tmp just once.
36691
36692 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
36693
36694         * lib/addext.c (<errno.h>): Include.
36695         (errno): Declare if not defined.
36696         (addext): Work correctly when pathconf returns -1 and leaves
36697         errno alone because there is no limit.  Also, work even if
36698         pathconf returns a value greater than SIZE_MAX.
36699
36700 2001-08-12  Jim Meyering  <meyering@lucent.com>
36701
36702         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
36703         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
36704         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
36705         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
36706         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
36707         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
36708         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
36709         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
36710         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
36711         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
36712         utime.m4, utimes.m4, xstrtoumax.m4:
36713         Quote the first argument in each use of AC_DEFUN.
36714
36715 2001-08-12  Jim Meyering  <meyering@lucent.com>
36716
36717         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
36718         Simply `return getcwd (NULL, 0);'.
36719         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
36720         Use 1300 as initial value for length, not PATH_MAX.
36721
36722         * lib/pathmax.h: Clean up cpp syntax.
36723
36724 2001-08-12  Jim Meyering  <meyering@lucent.com>
36725
36726         * lib/gettimeofday.c: New file.
36727         * lib/gtod.h: New file.
36728         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
36729
36730 2001-08-05  Jim Meyering  <meyering@lucent.com>
36731
36732         * m4/jm-macros.m4: Require autoconf-2.52.
36733
36734 2001-08-04  Jim Meyering  <meyering@lucent.com>
36735
36736         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
36737         stmt, to get in sync with glibc.
36738
36739 2001-08-03  Paul Eggert  <eggert@twinsun.com>
36740
36741         The following changes are from gettext 0.10.39 as maintained by
36742         Bruno Haible.
36743
36744         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
36745         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
36746         with inverted sense.  All uses changed.
36747
36748         * lib/mbswidth.c: Don't include <limits.h>.
36749         Include <stdlib.h> and <string.h> unconditionally.
36750         (iswcntrl, mbsinit, ISCNTRL): New macros.
36751         (mbsnwidth): Use K&R style function declarations.
36752         Don't bother checking for MB_LEN_MAX == 1, since the compiler
36753         can optimize it when MB_CUR_MAX == 1.
36754         The width of control characters is zero, not 1.
36755
36756 2001-08-03  Paul Eggert  <eggert@twinsun.com>
36757
36758         The following changes are from gettext 0.10.39 as maintained by
36759         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
36760
36761         * m4/codeset.m4: Upgrade to serial AM1.
36762         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
36763         all uses changed.  Quote first arg of AC_DEFUN.
36764         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
36765
36766         * m4/iconv.m4: Upgrade to serial AM2.
36767         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
36768         Add --with-libconv-prefix.
36769         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
36770         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
36771         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
36772         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
36773         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
36774
36775         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
36776         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
36777         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
36778         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
36779         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
36780         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
36781         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
36782         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
36783         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
36784
36785         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
36786         string.h any more.
36787
36788         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
36789         not the default value.
36790
36791         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
36792         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
36793         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
36794         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
36795         Also check for iswcntrl, used for wcwidth fallback.
36796         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
36797         to Autoconf 2.13.
36798
36799 2001-08-03  Jim Meyering  <meyering@lucent.com>
36800
36801         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
36802         as it was in the original.  Reported by Paul Eggert.
36803
36804 2001-07-16  Jim Meyering  <meyering@lucent.com>
36805
36806         * m4/gettimeofday.m4: New file.
36807         Prompted by a report from Bernhard Baehr.
36808
36809 2001-07-15  Jim Meyering  <meyering@lucent.com>
36810
36811         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
36812         stuff. Now it's in ../Makefile.cfg.
36813
36814 2001-07-15  Jim Meyering  <meyering@lucent.com>
36815
36816         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
36817         (BUILT_SOURCES): Add unlocked-io.h.
36818         (io_functions): Define.
36819         (unlocked-io.h): New rule.
36820         (DISTCLEANFILES): Add unlocked-io.h.
36821         (all-local): Depend on unlocked-io.h, to ensure it is created.
36822
36823         * lib/unlocked-io.hin: New file
36824
36825         * lib/regex.c: Update from glibc.
36826
36827 2001-07-05  Jim Meyering  <meyering@lucent.com>
36828
36829         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
36830         recommendation.
36831         (libfetish_a_SOURCES): Put all .h files here instead.
36832         Remove a thus-exposed (better checks in automake) duplicate and
36833         two unnecessary .h files.
36834
36835 2001-07-04  Jim Meyering  <meyering@lucent.com>
36836
36837         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
36838         that generates jm-glibc-io.m4 so that it doesn't trigger any make
36839         distcheck failure.
36840
36841 2001-07-02  Jim Meyering  <meyering@lucent.com>
36842
36843         The following changes were prompted by suggestions from Bruno Haible.
36844
36845         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
36846         is now generated.
36847         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
36848         definition of EXTRA_DIST.
36849         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
36850         ensure that the generated file is created/updated whenever the list
36851         of $(unlocked_functions) is changed.
36852         (jm-glibc-io.m4): New rule.
36853         (unlocked-io.h): New rule -- currently unused.
36854
36855 2001-06-24  Jim Meyering  <meyering@lucent.com>
36856
36857         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
36858         unmatched right bracket, rather than kludging it with an extra,
36859         falsely-matching quote in a comment.  Patch by Akim Demaille.
36860
36861 2001-06-11  Jim Meyering  <meyering@lucent.com>
36862
36863         * lib/regex.c: Update from GNU libc.
36864
36865 2001-05-27  Jim Meyering  <meyering@lucent.com>
36866
36867         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
36868         Check for ut_type in struct utmp.
36869
36870 2001-05-27  Jim Meyering  <meyering@lucent.com>
36871
36872         * lib/readutmp.h (UT_TYPE): Define.
36873
36874 2001-05-24  Jim Meyering  <meyering@lucent.com>
36875
36876         * lib/argmatch.c: Include "quote.h".
36877         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
36878         quote function.  Reported by Göran Uddeborg.
36879
36880 2001-05-22  Jim Meyering  <meyering@lucent.com>
36881
36882         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
36883         now that we use the package-supplied version unconditionally.
36884         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
36885
36886 2001-05-21  Jim Meyering  <meyering@lucent.com>
36887
36888         * m4/regex.m4: Change a couple backticks to single quotes to avoid
36889         shell syntax errors.
36890
36891 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
36892
36893         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
36894
36895 2001-05-20  Paul Eggert  <eggert@twinsun.com>
36896
36897         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
36898         Don't bother to check library strftime, since
36899         we'll be using our own my_strftime function anyway.
36900         Define my_strftime instead of strftime.
36901
36902 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
36903
36904         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
36905         which is not yet declared.
36906
36907 2001-05-15  Jim Meyering  <meyering@lucent.com>
36908
36909         * m4/regex.m4: Use proper quoting so brackets appear in the test
36910         program.
36911         Reported by, and with help from, Bruno Haible.
36912
36913 2001-05-13  Jim Meyering  <meyering@lucent.com>
36914
36915         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
36916         undefined.
36917
36918 2001-05-11  Paul Eggert  <eggert@twinsun.com>
36919
36920         dirname code cleanup.  base_name now behaves more compatibly
36921         with POSIX basename when given file names that have trailing
36922         slashes, and similarly for dir_name.  Add new primitives
36923         base_len and dir_len.  Put the directory-name-related decls
36924         into dirname.h.
36925
36926         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
36927         * lib/backupfile.c (base_name): Likewise.
36928         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
36929         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
36930         * lib/makepath.c (strip_trailing_slashes): Likewise.
36931         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
36932         ISSLASH): Likewise.
36933         * lib/rename.c (strip_trailing_slashes): Likewise.
36934         * lib/same.c (base_name): Likewise.
36935         * lib/stripslash.c (ISSLASH): Likewise.
36936
36937         * lib/addext.c: Include <dirname.h> after size_t is defined.
36938         * lib/backupfile.c: Likewise.
36939
36940         * lib/addext.c (addext): Use base_len to trim redundant
36941         trailing slashes instead of doing it ourselves.
36942         But do not trim the last slash if it is not redundant.
36943
36944         * lib/backupfile.c (find_backup_file_name,
36945         max_backup_version): Use base_len instead of rolling it ourselves.
36946         Handle the case of "" and (on DOS) "C:" correctly.
36947
36948         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
36949         needed. Include <string.h>, <dirname.h>.
36950         (base_name): Allow file names ending in slashes, other than names
36951         that are all slashes.  In this case, return the basename followed
36952         by the slashes.  This is more general, and can be used in places
36953         where the original base_name purposely had an assertion failure.
36954         (base_len): New function.
36955
36956         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
36957         Do not include <assert.h>; no longer needed.
36958         Include xalloc.h.
36959         (memrchr): Remove decl.
36960         (dir_name_r): Remove.
36961         (dir_len): Renamed from dirlen.  All callers changed.
36962         Rewrite in terms of base_name, for simplicity and consistency.
36963         (dir_name): Never return NULL.  All callers changed.
36964         Do not include <stdlib.h> in test program; no longer needed.
36965         return 0; is fine for test program.
36966
36967         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
36968         New macros.
36969         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
36970
36971         * lib/path-concat.c (path_concat): Use base_len to compute
36972         base length, not strlen; this means we cannot rely on memcpy
36973         to null-terminate.
36974
36975         * lib/same.c (STREQ): Remove.
36976         (same_name): Handle the case where the basename ends in trailing '/'.
36977
36978         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
36979         a slash was stripped.  Do not strip the last slash after a
36980         file system prefix.
36981
36982 2001-05-11  Paul Eggert  <eggert@twinsun.com>
36983
36984         * lib/Makefile.am (libfetish_a_SOURCES):
36985         Add strftime.c, since we now compile it on all hosts.
36986
36987         * lib/strftime.c (my_strftime):
36988         Define to nstrftime if emacs, but only if my_strftime is not defined.
36989         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
36990         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
36991         Add one more extra argument: a nanoseconds value.
36992         All uses changed.
36993         (ns): New macro.
36994         (my_strftime function): Add %N format.
36995         (emacs_strftimeu): Renamed from emacs_strftime,
36996         with extra ut argument.
36997
36998 2001-05-09  Paul Eggert  <eggert@twinsun.com>
36999
37000         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
37001
37002 2001-04-21  Jim Meyering  <meyering@lucent.com>
37003
37004         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
37005         doesn't interfere.
37006
37007 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
37008
37009         * m4/ftruncate.m4: Check for chsize.
37010         Link with ftruncate.o unconditionally if ftruncate is missing.
37011         This was required when cross-compiling to i586-mingw32msvc.
37012
37013 2001-04-08  Jim Meyering  <meyering@lucent.com>
37014
37015         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
37016         recomputed; that's necessary when the offset spans a DST transition.
37017         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
37018
37019 2001-04-02  Jim Meyering  <meyering@lucent.com>
37020
37021         * lib/regex.h, regex.c: Update from GNU libc.
37022
37023 2001-03-24  Jim Meyering  <meyering@lucent.com>
37024
37025         * m4/jm-macros.m4: Require autoconf-2.49d.
37026
37027 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
37028
37029         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
37030
37031 2001-03-19  Paul Eggert  <eggert@twinsun.com>
37032
37033         * lib/version-etc.c (version_etc_copyright): Update to 2001.
37034
37035 2001-03-17  Jim Meyering  <meyering@lucent.com>
37036
37037         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
37038         now that the version in autoconf is equivalent.
37039         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
37040
37041         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
37042         Suggestion from Akim Demaille.
37043
37044         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
37045         (jm_PREREQ_TEMPNAME): New function.
37046
37047 2001-03-16  Paul Eggert  <eggert@twinsun.com>
37048
37049         * lib/tempname.c (uint64_t): Define to uintmax_t if
37050         not defined, and if UINT64_MAX is not defined.
37051         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
37052         Reported by John David Anglin.
37053
37054 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
37055
37056         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
37057         resolve alias if codeset is empty.
37058         * lib/config.charset (BeOS): Use wildcard syntax.
37059
37060 2001-03-13  Jim Meyering  <meyering@lucent.com>
37061
37062         * lib/path-concat.c (path_concat)
37063         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
37064         concatenating e.g., `C:' and `foo'.
37065         From Bruno Haible.
37066
37067 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
37068
37069         * lib/localcharset.c (locale_charset): Don't use
37070         setlocale(LC_CTYPE,NULL). Don't return NULL.
37071         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
37072
37073 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
37074
37075         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
37076         support for DOS/DJGPP.
37077
37078 2001-03-01  Paul Eggert  <eggert@twinsun.com>
37079
37080         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
37081         lacks mkstemp.  Compile our own tempname.c if we compile our own
37082         mkstemp.c, as mkstemp relies on tempname.
37083
37084 2001-03-01  Jim Meyering  <meyering@lucent.com>
37085
37086         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
37087         AH_VERBATIM really does output its argument verbatim.
37088
37089 2001-02-28  Paul Eggert  <eggert@twinsun.com>
37090
37091         * lib/Makefile.am (libfetish_a_SOURCES):
37092         Add dup-safer.c, fopen-safer.c.
37093         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
37094
37095         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
37096         * lib/unistd-safer.h: New files.
37097
37098 2001-02-25  Paul Eggert  <eggert@twinsun.com>
37099
37100         The mkstemp replacement is taken from glibc 2.2.2, with some
37101         portability fixes for use outside glibc, as follows:
37102
37103         * lib/tempname.c (struct_stat64): New macro.
37104         (direxists, __gen_tempname): Use it.
37105         This avoids a portability problem with Solaris 8.
37106
37107         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
37108         (<stddef.h>, <stdint.h>, <string.h>):
37109         Include only if STDC_HEADERS || _LIBC.
37110         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
37111         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
37112         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
37113         (__set_errno): Define this macro if <errno.h> doesn't.
37114         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
37115         Define these macros if <stdio.h> doesn't.
37116         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
37117         Define these macros if <sys/stat.h>
37118         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
37119         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
37120         __xstat64): Define if not _LIBC.
37121         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
37122         (__gen_tempname): Invoke gettimeofday only if
37123         HAVE_GETTIMEOFDAY || _LIBC;
37124         otherwise, fall back on plain "time".
37125         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
37126
37127         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
37128
37129         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
37130
37131 2001-02-18  Paul Eggert  <eggert@twinsun.com>
37132
37133         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
37134
37135 2001-02-17  Paul Eggert  <eggert@twinsun.com>
37136
37137         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
37138         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
37139         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
37140         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
37141
37142 2001-02-17  Paul Eggert  <eggert@twinsun.com>
37143
37144         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
37145         Remove workaround macros for hosts that have mbrtowc but not
37146         mbstate_t, as we now insist on proper declarations for both
37147         before using mbrtowc.
37148
37149 2001-02-17  Jim Meyering  <meyering@lucent.com>
37150
37151         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
37152         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
37153         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
37154         UnixWare 7.1.1.
37155
37156         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
37157         rather than AC_CACHE_VAL.
37158
37159 2001-02-17  Jim Meyering  <meyering@lucent.com>
37160
37161         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
37162         around included file name.
37163
37164         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
37165
37166         * lib/strftime.c: Update from GNU libc (the only changes were to
37167         comments).
37168
37169 2001-02-17  Jim Meyering  <meyering@lucent.com>
37170
37171         * lib/regex.c: Update from libc.
37172
37173 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
37174
37175         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
37176         clash.
37177
37178 2001-02-16  Paul Eggert  <eggert@twinsun.com>
37179
37180         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
37181         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
37182         Reported by Mark Hounschell via Paul Eggert.
37183
37184 2001-02-07  Jim Meyering  <meyering@lucent.com>
37185
37186         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
37187
37188 2001-02-05  Jim Meyering  <meyering@lucent.com>
37189
37190         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
37191         it includes the patch required for `large file' support with at least
37192         HP-UX's 10.20 /bin/cc.
37193
37194 2001-02-03  Jim Meyering  <meyering@lucent.com>
37195
37196         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
37197         AS_IF, now that it works once again (mysteriously).
37198         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
37199
37200 2001-01-30  Jim Meyering  <meyering@lucent.com>
37201
37202         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
37203         * m4/chown.m4: Rename conftestchown to conftest.chown.
37204         * m4/rename.m4: s/conftestdir/conftest.d1/ and
37205         s/conftestdir2/conftest.d2/.
37206         * m4/utimes.m4: s/conftestdata/conftest.data/
37207         Inspired by Pavel Roskin's change in autoconf.
37208
37209 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
37210
37211         * lib/config.charset: Update for FreeBSD 4.2.
37212
37213 2001-01-27  Jim Meyering  <meyering@lucent.com>
37214
37215         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
37216         a use of AS_IF.
37217         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
37218
37219 2001-01-26  Jim Meyering  <meyering@lucent.com>
37220
37221         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
37222         quotearg.c includes it.
37223
37224 2001-01-26  Jim Meyering  <meyering@lucent.com>
37225
37226         * lib/quotearg.c: Include stddef.h.
37227         * lib/quote.c: Include stddef.h.
37228         Reported by Axel Kittenberger.
37229
37230         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
37231         line in double quotes so that it evokes a better diagnostic.
37232         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
37233         Reported by Axel Kittenberger.
37234
37235 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
37236
37237         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
37238         as if it was a `charset'.
37239
37240 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
37241
37242         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
37243         has const.
37244
37245 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
37246
37247         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
37248         to avoid a warning.  Add back 'const' to inptr.
37249
37250 2001-01-20  Jim Meyering  <meyering@lucent.com>
37251
37252         Be sure that headers are checked before used in code compiled
37253         for the type checks.
37254         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
37255         In place of that, invoke jm_CHECK_ALL_TYPES.
37256         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
37257         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
37258         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
37259         The check for ssize_t was mistakenly run before the test for unistd.h.
37260
37261         The configure-time check for stdbool.h was missing.
37262         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
37263         (jm_PREREQ_HASH): New function.
37264
37265 2001-01-17  Jim Meyering  <meyering@lucent.com>
37266
37267         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
37268         for autoconf-2.49c.
37269         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
37270
37271 2001-01-16  Jim Meyering  <meyering@lucent.com>
37272
37273         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
37274         From Bruno Haible.
37275
37276 2001-01-14  Jim Meyering  <meyering@lucent.com>
37277
37278         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
37279         foo and bar.  Create conftestdir/ in the script, not in the C code.
37280         Remove directories in the script, not in the C code.
37281         Remove conftestdir{,2} before trying to create the directory.
37282         Make the entire configure script fail if the mkdir fails.
37283
37284 2001-01-14  Jim Meyering  <meyering@lucent.com>
37285
37286         * lib/rename.c: New file.  From Volker Borchert.
37287         Include stdlib.h, string.h or strings.h, and xalloc.h.
37288         Use strip_trailing_slashes rather than open-coding it.
37289
37290 2001-01-03  Paul Eggert  <eggert@twinsun.com>
37291
37292         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
37293
37294 2001-01-03  Jim Meyering  <meyering@lucent.com>
37295
37296         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
37297         of local `inptr' to avoid warning with some system declarations of
37298         iconv.
37299
37300 2001-01-02  Volker Borchert  <bt@teknon.de>
37301
37302         * m4/rename.m4: New file.
37303         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
37304
37305 2001-01-01  Jim Meyering  <meyering@lucent.com>
37306
37307         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
37308         even on systems with utmpx.h.  It's necessary for the declaration of
37309         utmp's ut_user member.  Reported by Andreas Jaeger.
37310
37311         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
37312         available. They are required for the declarations of getgrgid and
37313         getpwuid resp.
37314         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
37315         Reported by Andreas Jaeger.
37316
37317 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
37318
37319         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
37320         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
37321         so `make install' also works in VPATH builds.
37322
37323 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
37324
37325         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
37326         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
37327         can be used in subdirectories.
37328
37329 2000-12-29  Paul Eggert  <eggert@twinsun.com>
37330
37331         * lib/modechange.c: Do not assume that mode_t uses the
37332         traditional octal encoding.  E.g. "chmod 1 FOO" should set
37333         the other-execute bit of FOO even if S_IXOTH != 1.
37334
37335         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
37336         WOTH, XOTH, ALLM): New macros.
37337         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
37338          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
37339         Use them.
37340         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
37341         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
37342         (mode_compile):
37343         No need to use uintmax_t; unsigned long is long enough.
37344         Don't bother to get suffix since we don't use it.
37345
37346 2000-12-26  Jim Meyering  <meyering@lucent.com>
37347
37348         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
37349         better with autoheader.
37350
37351 2000-12-24  Jim Meyering  <meyering@lucent.com>
37352
37353         * lib/hash.c (is_prime): Return explicit boolean values.
37354         (hash_get_first): Return NULL to appease Irix5.6's 89.
37355         Reported by Nelson Beebe.
37356
37357 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
37358
37359         * lib/localcharset.c (locale_charset): Add support for Win32.
37360
37361 2000-12-18  Paul Eggert  <eggert@twinsun.com>
37362
37363         * lib/physmem.h, lib/physmem.c: New files.
37364
37365         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
37366         (noinst_HEADERS): Add physmem.h.
37367
37368         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
37369         't' for compatibility with Solaris 8 sort.
37370
37371 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
37372
37373         * lib/config.charset: Add support for BeOS.
37374
37375 2000-12-17  Jim Meyering  <meyering@lucent.com>
37376
37377         * m4/dos.m4 (jm_AC_DOS): New file and macro.
37378         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
37379
37380 2000-12-16  Jim Meyering  <meyering@lucent.com>
37381
37382         This bug had a serious impact on chown: `chown N:M FILE' (for integer
37383         N and M) would have treated it like `chown N:N FILE'.
37384
37385         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
37386
37387 2000-12-16  Jim Meyering  <meyering@lucent.com>
37388
37389         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
37390         SHELLS_FILE to a file name that's useful on djgpp systems.
37391         Include stdlib.h.
37392         (ADDITIONAL_DEFAULT_SHELLS): Define.
37393         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
37394         Based mostly on a patch from Prashant TR.
37395
37396 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
37397
37398         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
37399         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
37400         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
37401
37402 2000-12-08  Andreas Schwab  <schwab@suse.de>
37403
37404         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
37405         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
37406
37407 2000-12-07  Jim Meyering  <meyering@lucent.com>
37408
37409         * lib/stripslash.c (ISSLASH): Define.
37410         (strip_trailing_slashes): Use ISSLASH rather than comparing against
37411         `/'.
37412         From Prashant TR.
37413
37414         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
37415         (dir_name_r): Declare this function as static.
37416         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
37417         manifest itself on a name containing a mix of slashes and
37418         backslashes.
37419         Make this function work with names starting with a DOS-style
37420         drive letter and colon prefix.
37421         (dir_name): Append `.' if necessary.
37422         Based mostly on patches from Prashant TR and Eli Zaretskii.
37423
37424         * lib/dirname.h (dir_name_r): Remove prototype.
37425
37426 2000-12-06  Paul Eggert  <eggert@twinsun.com>
37427
37428         * m4/off_t-format.m4: Remove this file.
37429         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
37430
37431 2000-12-06  Jim Meyering  <meyering@lucent.com>
37432
37433         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
37434         replacement strtoull, we may well need the replacement strtoul, too.
37435         Check for declarations of strtoul and strtoull.
37436         Check for strtol.  Mainly as a cue to cause automake to include
37437         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
37438         Check for limits.h -- strtol.c needs it.
37439
37440 2000-12-05  Jim Meyering  <meyering@lucent.com>
37441
37442         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
37443
37444 2000-12-04  Jim Meyering  <meyering@lucent.com>
37445
37446         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
37447         Also include memory.h, stdlib.h, unistd.h if appropriate.
37448         Reported by Andreas Jaeger (conflicting declaration of malloc).
37449
37450 2000-12-02  Jim Meyering  <meyering@lucent.com>
37451
37452         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
37453         * m4/jm-macros.m4 (jm_MACROS): require it.
37454
37455 2000-12-02  Jim Meyering  <meyering@lucent.com>
37456
37457         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
37458
37459 2000-12-01  Paul Eggert  <eggert@twinsun.com>
37460
37461         * lib/memrchr.c: Include <config.h> before any system include file.
37462
37463 2000-11-30  Jim Meyering  <meyering@lucent.com>
37464
37465         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
37466
37467 2000-11-30  Jim Meyering  <meyering@lucent.com>
37468
37469         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
37470
37471 2000-11-29  Paul Eggert  <eggert@twinsun.com>
37472
37473         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
37474
37475 2000-11-26  Jim Meyering  <meyering@lucent.com>
37476
37477         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
37478
37479 2000-11-22  Paul Eggert  <eggert@twinsun.com>
37480
37481         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
37482         size of (size_t) -1; it's not portable.
37483
37484 2000-11-17  Jim Meyering  <meyering@lucent.com>
37485
37486         * lib/strstr.c: Update from GNU libc.
37487
37488 2000-11-17  Akim Demaille  <akim@epita.fr>
37489
37490         * lib/obstack.h: Formatting changes.
37491         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
37492         prevent type checking.
37493         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
37494         cast the value to (void *): assigning a `foo *' to a `void *'
37495         variable is valid.
37496         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
37497
37498 2000-11-16  Jim Meyering  <meyering@lucent.com>
37499
37500         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
37501
37502 2000-11-11  Jim Meyering  <meyering@lucent.com>
37503
37504         * lib/error.c: Add a couple #includes, merging from GNU libc version.
37505
37506 2000-11-10  Jim Meyering  <meyering@lucent.com>
37507
37508         * lib/obstack.h: Update from GNU libc.
37509         * lib/obstack.c: Likewise.
37510
37511 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
37512
37513         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
37514
37515 2000-11-06  Paul Eggert  <eggert@twinsun.com>
37516
37517         * lib/getusershell.c (setusershell): Use rewind rather than
37518         fseek/fseeko, to avoid configuration hassles with fseeko.
37519         Don't bother opening SHELLS_FILE if shellstream is NULL;
37520         it's not necessary.
37521
37522 2000-11-05  Jim Meyering  <meyering@lucent.com>
37523
37524         * lib/makepath.h (make_dir): Declare.
37525         * lib/makepath.c (make_dir): Remove `static' attribute.
37526         Tweak a comment.
37527
37528 2000-11-04  Jim Meyering  <meyering@lucent.com>
37529
37530         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
37531
37532 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
37533
37534         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
37535         last one in a bucket, advance to the next bucket.
37536
37537 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
37538
37539         * lib/fnmatch.c: Do not comment out all the code if we are using
37540         the GNU C library, because in some cases we are replacing buggy
37541         code in the GNU C library itself.
37542
37543 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
37544
37545         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
37546         (regex_compile): Catch bogus \(\1\).
37547
37548 2000-10-30  Paul Eggert  <eggert@twinsun.com>
37549
37550         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
37551         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
37552         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
37553
37554 2000-10-30  Paul Eggert  <eggert@twinsun.com>
37555
37556         * lib/error.h, getline.h, modechange.h:
37557         Remove "2000" from Copyright line, as the file hasn't been
37558         changed this year other than in the copyright notice.
37559
37560         * lib/xalloc.h: Add "2000" to Copyright line, as this file
37561         was changed this year.
37562
37563 2000-10-29  Jim Meyering  <meyering@lucent.com>
37564
37565         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
37566         renaming.
37567         * m4/ls-mntd-fs.m4: Likewise
37568
37569 2000-10-29  Jim Meyering  <meyering@lucent.com>
37570
37571         * lib/xstat.in: Fix grammar in comment.
37572
37573 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
37574
37575         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
37576         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
37577         doesn't define __restrict_arr.
37578
37579 2000-10-28  Jim Meyering  <meyering@lucent.com>
37580
37581         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
37582         (jm_PREREQ_MEMCHR): New function.
37583
37584 2000-10-28  Jim Meyering  <meyering@lucent.com>
37585
37586         * lib/memchr.c: Update from libc.
37587         Adjust for portability:
37588         [HAVE_STDLIB_H]: Include stdlib.h.
37589         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
37590         Undef __memchr, too.
37591         [!weak_alias]: Define __memchr to memchr.
37592
37593         * lib/regex.c: Update from libc.
37594         * lib/regex.h: Likewise.
37595         * lib/getopt1.c: Likewise.
37596         * lib/memcmp.c: Likewise.
37597
37598         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
37599         Avoid using fseek, when possible -- it's broken by design.
37600         Patch by Ulrich Drepper.
37601
37602 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
37603
37604         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
37605         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
37606         Giving in to popular pressure to shut up the compiler with casts.
37607
37608 2000-10-26  Jim Meyering  <meyering@lucent.com>
37609
37610         * lib/strftime.c: Update from libc.
37611
37612 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
37613
37614         * regex.c: More `unsigned char' -> `re_char' changes.
37615         Also change several `int' into `re_wchar_t'.
37616         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
37617         (PUSH_FAILURE_POINTER): Don't cast any more.
37618         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
37619         We want GCC to complain, since this piece of code makes
37620         re_match non-reentrant, which *should* be fixed.
37621         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
37622         (EXTEND_BUFFER): Use RETALLOC.
37623         (SET_LIST_BIT): Don't cast.
37624         (re_wchar_t): New type.
37625         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
37626         that those two functions will always properly return.
37627         (IMMEDIATE_QUIT_CHECK): Cast to void.
37628         (analyse_first): Use recursion rather than an explicit stack.
37629         (re_compile_fastmap): Can't fail anymore.
37630         (re_search_2): Don't check re_compile_fastmap for failure.
37631         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
37632         Now also sets the new value (passed in a new argument).
37633         (re_match_2_internal): Use it.
37634         Also, use a new var `reg' of type size_t when looping through regs
37635         rather than reuse the inappropriate `mcnt'.
37636
37637 2000-10-25  Jim Meyering  <meyering@lucent.com>
37638
37639         * lib/obstack.c: Update from libc.
37640
37641 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
37642
37643         * regex.c (regex_compile): Change the way of handling a range from
37644         a char less than 256 to a char not less than 256.
37645
37646 2000-10-24  Andrew Innes  <andrewi@gnu.org>
37647
37648         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
37649         NT-Emacs only.
37650         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
37651         so that re_search functions only quit when callers expect them to.
37652
37653 2000-10-23  Jim Meyering  <meyering@lucent.com>
37654
37655         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
37656         wrong.  That set_locale call must not have any side effects.
37657         From Paul Eggert.
37658
37659 2000-10-22  Jim Meyering  <meyering@lucent.com>
37660
37661         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
37662         [CYCLIC]: Remove now-unused definition.
37663
37664         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
37665         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
37666         Suggestion from Ulrich Drepper.
37667
37668 2000-10-21  Jim Meyering  <meyering@lucent.com>
37669
37670         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
37671         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
37672         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
37673
37674 2000-10-21  Jim Meyering  <meyering@lucent.com>
37675
37676         * lib/dirname.c (memrchr): Declare if necessary.
37677         (dir_name): Remove the restriction that there be no
37678         trailing slashes.  Now, this code skips past them, effectively
37679         ignoring them.
37680         [TEST_DIRNAME] (main): New unit tests.
37681
37682         * lib/memrchr.c: New file from GNU libc.
37683         Undef __memrchr, too.
37684         [!weak_alias]: Define __memrchr to memrchr.
37685         Guard weak_alias use with `#ifdef weak_alias'.
37686
37687 2000-10-21  Jim Meyering  <meyering@lucent.com>
37688
37689         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
37690         (dir_name): Use dir_name_r.
37691         * lib/dirname.h (dir_name_r): Declare it.
37692
37693 2000-10-17  Jim Meyering  <meyering@lucent.com>
37694
37695         * lib/quote.h (PARAMS): Define and use.
37696         Reported by Akim Demaille.
37697
37698         * lib/getopt.c: Update from libc.
37699
37700 2000-10-16  Jim Meyering  <meyering@lucent.com>
37701
37702         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
37703         setlocale.
37704         From Jan Fedak.
37705
37706 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
37707
37708         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
37709
37710 2000-09-25  Jim Meyering  <meyering@lucent.com>
37711
37712         * lib/md5.h (rol): Define (from GnuPG).
37713
37714         * lib/sha.c: Give credit (GnuPG) where due.
37715         (M): Use rol rather than open-coding it.
37716         Add a FIXME comment.
37717
37718 2000-09-21  Jim Meyering  <meyering@lucent.com>
37719
37720         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
37721         Reported by Michael Stone.
37722
37723 2000-09-20  Jim Meyering  <meyering@lucent.com>
37724
37725         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
37726         (noinst_HEADERS): Add sha.h.
37727         Based on code from Scott G. Miller and from GnuPG.
37728
37729 2000-09-18  Jim Meyering  <meyering@lucent.com>
37730
37731         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
37732         LIBS. Otherwise, everyone ends up linking with -lelf for some
37733         configurations.
37734         Reported by Mike Stone.
37735
37736 2000-09-15  Jim Meyering  <meyering@lucent.com>
37737
37738         * lib/regex.c: Update from libc.
37739
37740 2000-09-10  Jim Meyering  <meyering@lucent.com>
37741
37742         * lib/getopt.c (_getopt_internal): Update from glibc.
37743
37744 2000-09-09  Jim Meyering  <meyering@lucent.com>
37745
37746         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
37747         think it should be used as a general replacement for isascii.
37748         * lib/fnmatch.c: Likewise.
37749         * lib/mbswidth.c: Likewise
37750         * lib/regex.c: Likewise.
37751
37752         Don't use atoi.
37753         * lib/userspec.c: Include sys/param.h and limits.h.
37754         Include xstrtol.h.
37755         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
37756         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
37757         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
37758         UID, GID.  Check range.
37759
37760 2000-09-06  Jim Meyering  <meyering@lucent.com>
37761
37762         * lib/getopt.c (_getopt_internal): Update from glibc.
37763
37764 2000-08-30  Jim Meyering  <meyering@lucent.com>
37765
37766         * lib/strftime.c: Merge in changes from GNU libc.
37767
37768 2000-08-26  Jim Meyering  <meyering@lucent.com>
37769
37770         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
37771         * m4/fpending.m4: New file.
37772
37773 2000-08-26  Jim Meyering  <meyering@lucent.com>
37774
37775         * lib/closeout.c: Include "__fpending.h".
37776         (close_stdout_status): Return right away if there's nothing to flush.
37777
37778         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
37779         * lib/__fpending.c: New file.
37780         * lib/__fpending.h: New file.
37781
37782 2000-08-20  Jim Meyering  <meyering@lucent.com>
37783
37784         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
37785         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
37786         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
37787
37788 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
37789
37790         Improve fileutils installation on systems where running
37791         programs (like install) can't be unlinked.
37792         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
37793         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
37794
37795 2000-08-07  Paul Eggert  <eggert@twinsun.com>
37796
37797         Standardize on "memory exhausted" instead of "Memory exhausted"
37798         or "virtual memory exhausted".
37799         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
37800         "virtual memory exhausted".
37801         * lib/same.c (same_name): Invoke xalloc_die instead of printing
37802         our own message.
37803         * lib/userspec.c (parse_user_spec): Likewise.
37804         * lib/bumpalloc.h: comment fix
37805         * lib/same.c, userspec.c: Include xalloc.h.
37806
37807         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
37808         not char *const and pointing to a constant array.
37809         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
37810         (xrealloc): Comment fix.
37811
37812         * lib/userspec.c (parse_user_spec):
37813         Don't translate a message until just before returning,
37814         to avoid unnecessary translation.
37815
37816 2000-08-07  Jim Meyering  <meyering@lucent.com>
37817
37818         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
37819         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
37820         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
37821         getgroups.c, gethostname.c, getopt.h, group-member.c,
37822         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
37823         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
37824         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
37825         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
37826         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
37827         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
37828         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
37829         yesno.c: Back out Copyright date changes for each file with no change
37830         this year.  This eases coordination with other programs using the same
37831         source code modules.  From Paul Eggert.
37832
37833 2000-08-06  Paul Eggert  <eggert@twinsun.com>
37834
37835         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
37836         not char, for compatibility with glibc 2.1.3 strftime.c.
37837
37838 2000-08-03  Greg McGary  <greg@mcgary.org>
37839
37840         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
37841         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
37842         (EXTEND_BUFFER): Use them.
37843
37844 2000-08-01  Jim Meyering  <meyering@lucent.com>
37845
37846         * lib/dirname.c (ISSLASH): Define.
37847         (BACKSLASH_IS_PATH_SEPARATOR): Define.
37848         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
37849         both `\' and `/' may be use as path separators.
37850         Based on a patch from Prashant TR.
37851
37852 2000-07-31  Paul Eggert  <eggert@twinsun.com>
37853
37854         * lib/quotearg.c (quotearg_n_options): Don't make the initial
37855         slot vector a constant, since it might get modified.
37856
37857 2000-07-31  Jim Meyering  <meyering@lucent.com>
37858
37859         * lib/xmalloc.c: Use `virtual memory exhausted', not
37860         `Memory exhausted'.
37861         * lib/obstack.c (print_and_abort): Likewise.
37862
37863 2000-07-30  Paul Eggert  <eggert@twinsun.com>
37864
37865         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
37866         buffer, so that the caller can always quote one small
37867         component of a "memory exhausted" message in slot 0.
37868         From a suggestion by Jim Meyering.
37869
37870 2000-07-30  Jim Meyering  <meyering@lucent.com>
37871
37872         * lib/makepath.c (make_path): Quote the other instance, too.
37873
37874         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
37875         (STATIC_BUF_SIZE): Define.
37876         (quotearg_n_options): Use only statically allocated storage when
37877         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
37878         than STATIC_BUF_SIZE.
37879
37880 2000-07-29  Jim Meyering  <meyering@lucent.com>
37881
37882         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
37883         * lib/dirname.c (dir_name): Likewise.
37884
37885         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
37886         `/'.
37887
37888         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
37889         (dir_name): Assert that there are no trailing slashes.
37890
37891 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
37892
37893         * lib/mbswidth.h (mbswidth): Add a flags argument.
37894         (mbswidth): New declaration.
37895         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
37896         * lib/mbswidth.c (mbswidth): Add a flags argument.
37897         (mbsnwidth): New function.
37898
37899 2000-07-24  Jim Meyering  <meyering@lucent.com>
37900
37901         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
37902
37903 2000-07-23  Paul Eggert  <eggert@twinsun.com>
37904
37905         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
37906
37907 2000-07-23  Paul Eggert  <eggert@twinsun.com>
37908
37909         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
37910         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
37911         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
37912         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
37913         invoke multibyte primitives.
37914
37915 2000-07-23  Paul Eggert  <eggert@twinsun.com>
37916
37917         * lib/quotearg.c:
37918         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
37919         so that mbstate_t is always defined.
37920
37921         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
37922         be 1 in at least one GCC installation, and this configuration
37923         error is likely to be common.  Ignoring MB_LEN_MAX hurts
37924         performance on hosts that have mbrtowc but have only unibyte
37925         locales, but I assume these hosts are rare.
37926
37927 2000-07-23  Paul Eggert  <eggert@twinsun.com>
37928
37929         * lib/mbswidth.c (_XOPEN_SOURCE):
37930         Don't define; this causes problems on Solaris 7.
37931         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
37932
37933 2000-07-23  Jim Meyering  <meyering@lucent.com>
37934
37935         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
37936         too: getgrgid, getpwuid, getuid.
37937
37938 2000-07-23  Jim Meyering  <meyering@lucent.com>
37939
37940         * lib/basename.c (base_name): Add an assertion.
37941
37942 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
37943
37944         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
37945         shadow its mbsinit function.
37946
37947 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
37948
37949         * lib/mbswidth.h: New file.
37950         * lib/mbswidth.c: New file.
37951         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
37952         (noinst_HEADERS): Add mbswidth.h.
37953
37954 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
37955
37956         * lib/config.charset: Add support for FreeBSD. Improve support for
37957         HP-UX and IRIX 6.
37958
37959 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
37960
37961         * m4/mbswidth.m4: New file.
37962         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
37963
37964 2000-07-15  Jim Meyering  <meyering@lucent.com>
37965
37966         * lib/makepath.c: Include quote.h.
37967         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
37968         corresponding argument in a `quote (...)' call.
37969         Give better diagnostics.
37970
37971         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
37972         (noinst_HEADERS): Add quote.h.
37973
37974         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
37975         from tar's src/misc.c.
37976         * lib/quote.h: New file.  Prototypes for same.
37977
37978 2000-07-14  Paul Eggert  <eggert@twinsun.com>
37979
37980         From a suggestion by Bruno Haible.
37981         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
37982         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
37983         to decide whether to define the BeOS workaround macro;
37984         this adjusts to the change to AC_MBSTATE_T.
37985
37986 2000-07-14  Jim Meyering  <meyering@lucent.com>
37987
37988         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
37989         jm_AC_TYPE_UINTMAX_T.
37990
37991 2000-07-13  Paul Eggert  <eggert@twinsun.com>
37992
37993         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
37994
37995         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
37996         quotearg_buffer_restyled): Add support for
37997         clocale_quoting_style.  Undo previous change to
37998         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
37999         and "{RIGHT QUOTATION MARK}" msgids.
38000
38001 2000-07-10  Paul Eggert  <eggert@twinsun.com>
38002
38003         From a suggestion by Bruno Haible.
38004         * m4/mbstate_t.m4 (AC_MBSTATE_T):
38005         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
38006         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
38007         and mbstate_t, to a single-part test that simply defines mbstate_t.
38008         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
38009         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
38010
38011 2000-07-10  Jim Meyering  <meyering@lucent.com>
38012
38013         * m4/strerror_r.m4: Mirror the correction made in autoconf.
38014
38015         * m4/gnu-source.m4: Output to confdefs.h directly.
38016         Suggestion from Akim Demaille.
38017
38018 2000-07-09  Paul Eggert  <eggert@twinsun.com>
38019
38020         The old behavior of quoting `like this' doesn't look good with
38021         newer, ISO-style fonts.  See:
38022         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
38023
38024         Instead, quote "like this" by default.  Let the translator
38025         tailor the locale-specific quoting behavior by providing
38026         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
38027
38028         * lib/quotearg.c (N_): New macro.
38029         (gettext_default): New function.
38030         (quotearg_buffer_restyled): Use
38031         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
38032         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
38033
38034 2000-07-09  Jim Meyering  <meyering@lucent.com>
38035
38036         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
38037         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
38038
38039         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
38040         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
38041
38042 2000-07-09  Jim Meyering  <meyering@lucent.com>
38043
38044         * lib/Most files: Update copyright dates to include 2000.
38045
38046 2000-07-08  Jim Meyering  <meyering@lucent.com>
38047
38048         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
38049         if not defined.
38050         (xgethostname): Remove now-unnecessary #ifdef.
38051         Move declaration of `err' into loop where it's used.
38052
38053 2000-07-05  Paul Eggert  <eggert@twinsun.com>
38054         and Bruno Haible  <haible@clisp.cons.org>
38055
38056         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
38057         only if the test for an object-type mbstate_t fails.  This
38058         prevents us from mistakenly reporting that mbstate_t is a
38059         system object type after we "#define mbstate_t int" to work
38060         around its lack.
38061
38062 2000-07-05  Paul Eggert  <eggert@twinsun.com>
38063         and Bruno Haible  <haible@clisp.cons.org>
38064
38065         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
38066
38067 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
38068
38069         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
38070         to strerror_r.
38071         Include <ctype.h> for use of isalpha.
38072
38073 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
38074
38075         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
38076         by allocating a larger buffer. Test the gethostname return value for
38077         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
38078         returns an error and ENAMETOOLONG isn't defined.
38079
38080 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
38081
38082         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
38083         dimension.
38084
38085 2000-07-04  Jim Meyering  <meyering@lucent.com>
38086
38087         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
38088         of the deprecated AC_CHECKING.
38089
38090 2000-07-04  Jim Meyering  <meyering@lucent.com>
38091
38092         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
38093         Reported by Bruno Haible.
38094
38095 2000-07-04  Jim Meyering  <meyering@lucent.com>
38096
38097         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
38098         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
38099         lacks mbrtowc.
38100
38101 2000-07-03  Paul Eggert  <eggert@twinsun.com>
38102
38103         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
38104         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
38105
38106 2000-07-03  Paul Eggert  <eggert@twinsun.com>
38107         and Bruno Haible  <haible@clisp.cons.org>
38108
38109         * lib/quotearg.c (mbrtowc):
38110         Assign to *pwc, and return 1 only if result is nonzero.
38111         (iswprint): Use ISPRINT when substituting our own mbrtowc.
38112
38113 2000-07-03  Jim Meyering  <meyering@lucent.com>
38114
38115         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
38116
38117 2000-07-03  Jim Meyering  <meyering@lucent.com>
38118
38119         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
38120         This is necessary to get a definition of e.g., UTMP_FILE on
38121         HP-UX 10.20.
38122         From Bob Proulx.
38123
38124 2000-07-02  Jim Meyering  <meyering@lucent.com>
38125
38126         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
38127
38128         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
38129         AC_LIBOBJ(function_name).
38130         * m4/chown.m4: Likewise.
38131         * m4/fnmatch.m4: Likewise.
38132         * m4/ftruncate.m4: Likewise.
38133         * m4/getgroups.m4: Likewise.
38134         * m4/getline.m4: Likewise.
38135         * m4/group-member.m4: Likewise.
38136         * m4/jm-macros.m4: Likewise.
38137         * m4/lstat.m4: Likewise.
38138         * m4/malloc.m4: Likewise.
38139         * m4/memcmp.m4: Likewise.
38140         * m4/nanosleep.m4: Likewise.
38141         * m4/putenv.m4: Likewise.
38142         * m4/realloc.m4: Likewise.
38143         * m4/regex.m4: Likewise.
38144         * m4/stat.m4: Likewise.
38145         * m4/strftime.m4: Likewise.
38146
38147 2000-07-02  Jim Meyering  <meyering@lucent.com>
38148
38149         * lib/quotearg.c (mbstate_t): Don't define here.
38150
38151 2000-07-02  Jim Meyering  <meyering@lucent.com>
38152
38153         * lib/nanosleep.c (SIGCONT): Define if not already defined.
38154
38155 2000-07-01  Jim Meyering  <meyering@lucent.com>
38156
38157         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
38158
38159 2000-07-01  Jim Meyering  <meyering@lucent.com>
38160
38161         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
38162         problem.
38163
38164 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
38165
38166         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
38167         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
38168
38169 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
38170
38171         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
38172         per change in ../m4/ls-mntd-fs.m4.
38173         (read_filesystem_list): Ignore symbolic links.
38174
38175 2000-06-29  Jim Meyering  <meyering@lucent.com>
38176
38177         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
38178         for declaration of strcmp.
38179
38180         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
38181
38182         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
38183         Avoid warning by casting result to `char *' to remove `const'.
38184
38185 2000-06-28  Jim Meyering  <meyering@lucent.com>
38186
38187         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
38188         included by quotearg.c, for which we perform this test.  From
38189         Bruno Haible.
38190
38191 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
38192
38193         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
38194         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
38195         <utmpx.h> exists, put readutmp.o into LIBOBJS.
38196
38197 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
38198
38199         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
38200
38201 2000-06-26  Paul Eggert  <eggert@twinsun.com>
38202
38203         savedir now sets errno on failure and invokes xmalloc to get memory.
38204         Fix a couple of other minor bugs while we're at it.
38205
38206         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
38207         (NAMLEN): Remove macro.
38208         (malloc, realloc): Remove decls.
38209         (stpcpy): Likewise.
38210         ("xalloc.h"): Include.
38211         (NAME_SIZE_DEFAULT): New macro.
38212         (savedir): Use xmalloc / xrealloc to allocate memory.
38213         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
38214         Skip "" directory entries.
38215         Use strlen to calculate directory entry length, since the old method
38216         is rarely used these days and isn't worth supporting.
38217         Don't use a pointer after freeing it.
38218         Check for integer overflow when calculating allocation size.
38219         Use memcpy to copy entries, instead of stpcpy.
38220         Set errno properly when returning NULL.
38221         Check for readdir error.
38222
38223 2000-06-26  Jim Meyering  <meyering@lucent.com>
38224
38225         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
38226
38227 2000-06-25  Jim Meyering  <meyering@lucent.com>
38228
38229         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
38230         Linux header bug when _XOPEN_SOURCE is defined to 500.
38231
38232 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
38233
38234         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
38235         deficiency.
38236
38237 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
38238
38239         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
38240         Include xalloc.h.
38241         Don't include <stdlib.h>.  Don't declare malloc, realloc.
38242
38243 2000-06-24  Jim Meyering  <meyering@lucent.com>
38244
38245         * m4/strerror_r.m4: Revive this file -- to try out an experimental
38246         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
38247         for which strerror does return char*, but which lacks a conveniently
38248         accessible declaration of the function.  If the compile-test says
38249         strerror_r doesn't work, then resort to a `run'-test that works on
38250         BeOS and segfaults on DEC Unix.
38251
38252 2000-06-24  Jim Meyering  <meyering@lucent.com>
38253
38254         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
38255
38256 2000-06-23  Paul Eggert  <eggert@twinsun.com>
38257
38258         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
38259         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
38260
38261 2000-06-23  Paul Eggert  <eggert@twinsun.com>
38262
38263         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
38264         (mbrtowc, mbstate_t): Define substitutes if
38265         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
38266         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
38267         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
38268
38269 2000-06-23  Jim Meyering  <meyering@lucent.com>
38270
38271         * m4/afs.m4: Add missing AC_MSG_RESULT.
38272         Reported by Bruno Haible.
38273
38274         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
38275         Suggestion from Bruno Haible.
38276
38277 2000-06-23  Jim Meyering  <meyering@lucent.com>
38278
38279         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
38280
38281 2000-06-21  Jim Meyering  <meyering@lucent.com>
38282
38283         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
38284
38285 2000-06-21  Jim Meyering  <meyering@lucent.com>
38286
38287         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
38288         (noinst_HEADERS): Add getstr.h.
38289
38290         * lib/getline.c (getstr): Move into a separate file.
38291         * lib/getstr.c (getstr): New file, extracted from getline.c, with
38292         the following changes: new parameter, delim2; both delim[12]
38293         parameters have type `int', not `char'.  The latter would lose
38294         with 8-bit delimiters.
38295         * lib/getstr.h: New file.
38296
38297 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
38298
38299         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
38300         than 1024, return a memory chunk of least possible size, instead
38301         of size PATH_MAX + 2. In the loop, increment the size proportionally.
38302         Use free/xmalloc instead of xrealloc to avoid copying for very long
38303         paths.
38304
38305 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
38306
38307         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
38308         the empty string.
38309
38310 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
38311
38312         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
38313         address, not strdup.  Include <stdlib.h> and don't declare free().
38314
38315 2000-06-19  Jim Meyering  <meyering@lucent.com>
38316
38317         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
38318
38319 2000-06-18  Jim Meyering  <meyering@lucent.com>
38320
38321         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
38322
38323         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
38324         `checking whether...' message to be consistent with that of the
38325         lstat test.
38326
38327 2000-06-18  Jim Meyering  <meyering@lucent.com>
38328
38329         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
38330         Besides, these days every porting target provides a mkdir function.
38331
38332         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
38333         needed. (this snippet comes from src/system.h).
38334
38335 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
38336
38337         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
38338
38339 2000-06-15  Paul Eggert  <eggert@twinsun.com>
38340
38341         * lib/human.c (adjust_value): New function.
38342         (human_readable_inexact): Apply rounding style even when
38343         printing approximate values.
38344
38345 2000-06-14  Paul Eggert  <eggert@twinsun.com>
38346
38347         * lib/human.c (human_readable_inexact): Allow an input block
38348         size that is not a multiple of the output block size, and vice versa.
38349         Reported by Piergiorgio Sartor.
38350
38351 2000-06-14  Paul Eggert  <eggert@twinsun.com>
38352
38353         * lib/getdate.y (get_date): Apply relative times after time
38354         zone indicator, not before.  Reported by Todd A. Jacobs.
38355
38356 2000-06-13  Jim Meyering  <meyering@lucent.com>
38357
38358         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
38359
38360         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
38361
38362 2000-06-12  Paul Eggert  <eggert@twinsun.com>
38363
38364         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
38365
38366 2000-06-12  Jim Meyering  <meyering@lucent.com>
38367
38368         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
38369         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
38370         optional argument.
38371         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
38372         the optional argument, `lib'.
38373
38374 2000-06-08  Jim Meyering  <meyering@lucent.com>
38375
38376         * m4/largefile.m4: Remove file (now that it's part of autoconf).
38377
38378 2000-06-04  Paul Eggert  <eggert@twinsun.com>
38379
38380         Rewrite largefile configuration so that we don't need to run
38381         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
38382         AC_CANONICAL_HOST in configure.in -- jmm]
38383
38384         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
38385         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
38386         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
38387         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
38388         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
38389         All uses changed.
38390         Instead of inspecting the output of getconf, try to compile the
38391         test program without and with the macro definition.
38392         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
38393         for getconf.  Instead, check for the needed flags by compiling
38394         test programs.
38395
38396 2000-06-04  Paul Eggert  <eggert@twinsun.com>
38397
38398         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
38399
38400 2000-06-04  Jim Meyering  <meyering@lucent.com>
38401
38402         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
38403         SunOS 4.1.4 for which gid_t is an unsigned type.
38404
38405 2000-06-03  Jim Meyering  <meyering@lucent.com>
38406
38407         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
38408         now that autoconf requires that.
38409
38410         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
38411         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
38412         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
38413
38414 2000-06-03  Jim Meyering  <meyering@lucent.com>
38415
38416         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
38417
38418 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
38419
38420         * m4/glibc21.m4: New file.
38421         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
38422
38423 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
38424
38425         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
38426         newer, don't install charset.alias.
38427         * lib/config.charset: Change the Linux/glibc rules so they become empty
38428         on glibc-2.1 or newer.
38429
38430 2000-06-02  Jim Meyering  <meyering@lucent.com>
38431
38432         * lib/mountlist.c: Back out last change.  Instead, do this...
38433         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
38434         me_dummy member using the same `ignore'-testing code.
38435         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
38436         fs_type strings.
38437         From Mark D. Roth.
38438
38439 2000-05-29  Jim Meyering  <meyering@lucent.com>
38440
38441         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
38442         mounts with the `ignore' attribute.  Based on a patch from
38443         Mark D. Roth.
38444
38445 2000-05-28  Jim Meyering  <meyering@lucent.com>
38446
38447         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
38448         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
38449         * m4/stat.m4: Likewise.
38450         * m4/lstat.m4: Likewise.
38451         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
38452
38453         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
38454         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
38455
38456 2000-05-26  Jim Meyering  <meyering@lucent.com>
38457
38458         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
38459
38460 2000-05-24  Jim Meyering  <meyering@lucent.com>
38461
38462         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
38463         autoconf requires that.
38464         * m4/lib-check.m4: Likewise.
38465         * m4/jm-macros.m4: Likewise.
38466         * m4/strftime.m4: Likewise.
38467
38468         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
38469         AC_CHECK_DECLS, now that autoconf requires that.
38470
38471 2000-05-22  Jim Meyering  <meyering@lucent.com>
38472
38473         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
38474         * m4/lstat.m4: Likewise.
38475
38476 2000-05-22  Jim Meyering  <meyering@lucent.com>
38477
38478         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
38479
38480 2000-05-20  Jim Meyering  <meyering@lucent.com>
38481
38482         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
38483         (jm_PREREQ): Use it.
38484
38485 2000-05-18  Jim Meyering  <meyering@lucent.com>
38486
38487         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
38488         back, too, since it may have been modified by allocate_entry.
38489         (hash_delete): Rewrite to use neither the assignment operator
38490         nor the comma operator in an if-expression.
38491
38492 2000-05-15  Paul Eggert  <eggert@twinsun.com>
38493
38494         * lib/closeout.c:
38495         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
38496         Remove; no longer needed.
38497         "quotearg.h": Add include.
38498         (file_name): Do not bother to explicitly initialize to NULL; it's less
38499         efficient on some hosts.
38500         (close_stdout_status): Remove test as to whether stdout was already
38501         closed; it breaks for the case "echo x | sort >&-".
38502         Quote file name colons.
38503         Do not assume that _("write error") lacks format strings.
38504
38505 2000-05-15  Jim Meyering  <meyering@lucent.com>
38506
38507         * lib/version-etc.c (version_etc_copyright): Update the copyright
38508         string used in all --version output.
38509
38510 2000-05-14  Jim Meyering  <meyering@lucent.com>
38511
38512         * lib/closeout.c (close_stdout_set_file_name): New function.
38513         (close_stdout_status): Use new file-scoped global.
38514         Return right away if fstat says the stdout file descriptor is invalid.
38515         * lib/closeout.h (close_stdout_set_file_name): Declare.
38516
38517 2000-05-10  Jim Meyering  <meyering@lucent.com>
38518
38519         * lib/closeout.c [default_exit_status]: New file-scoped variable.
38520         (close_stdout_set_status): New function.
38521         * lib/closeout.h (close_stdout_set_status): Declare.
38522
38523 2000-05-09  Jim Meyering  <meyering@lucent.com>
38524
38525         * m4/gettext.m4: Rename this...
38526         * m4/libintl.m4: ...to this.
38527
38528 2000-05-08  Jim Meyering  <meyering@lucent.com>
38529
38530         * lib/long-options.c: Don't include closeout.h.
38531         (parse_long_options): Don't call close_stdout for --version.
38532
38533 2000-05-06  Paul Eggert  <eggert@twinsun.com>
38534
38535         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
38536         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
38537         2.1.3 bug.  This avoids a clash when files like regex.c define
38538         _GNU_SOURCE.
38539
38540 2000-05-06  Jim Meyering  <meyering@lucent.com>
38541
38542         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
38543         (AC_REPLACE_FUNCS): Add strnlen.
38544
38545         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
38546         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
38547
38548         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
38549         AC_SEARCH_LIBS call for nanosleep.
38550         (LIB_NANOSLEEP): Set and AC_SUBST.
38551
38552 2000-05-06  Jim Meyering  <meyering@lucent.com>
38553
38554         * lib/strnlen.c: Undefine __strnlen and strnlen.
38555         [!weak_alias]: Define __strnlen to strnlen.
38556
38557         * lib/atexit.c: New file, from libiberty.
38558
38559 2000-05-06  Jim Meyering  <meyering@lucent.com>
38560
38561         * lib/closeout.c (close_stdout_status): Also check for errors on the
38562         stderr stream.
38563
38564 2000-05-05  Jim Meyering  <meyering@lucent.com>
38565
38566         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
38567         AC_SEARCH_LIBS call for clock_gettime.
38568         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
38569
38570         * m4/search-libs.m4: Update from autoconf.
38571
38572         su doesn't work on Solaris 2.6.
38573         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
38574         <shadow.h>.  Reported by Dragos Harabor.
38575
38576 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
38577
38578         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
38579         memcpy instead of xmalloc, xrealloc, path_concat.
38580         (locale_charset): Treat empty environment variables as absent.
38581         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
38582
38583 2000-05-04  Jim Meyering  <meyering@lucent.com>
38584
38585         * lib/getopt.c: Update from glibc.
38586         * lib/obstack.c: Likewise.
38587         * lib/obstack.h: Likewise.
38588         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
38589         file
38590
38591         * lib/regex.h: Likewise.
38592         * lib/strndup.c: Likewise.
38593         * lib/strnlen.c: New file, from glibc.
38594
38595 2000-05-03  Jim Meyering  <meyering@lucent.com>
38596
38597         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
38598
38599 2000-05-02  Paul Eggert  <eggert@twinsun.com>
38600
38601         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
38602         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
38603         compile-time test, rather than inspecting host and OS, to
38604         decide whether to define _LARGEFILE_SOURCE.
38605
38606 2000-05-01  Jim Meyering  <meyering@lucent.com>
38607
38608         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
38609
38610         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
38611         Based on a patch from Bruno Haible.
38612
38613 2000-05-01  Jim Meyering  <meyering@lucent.com>
38614
38615         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
38616
38617 2000-04-29  Jim Meyering  <meyering@lucent.com>
38618
38619         * lib/path-concat.c: Declare strdup only if it's not defined.
38620         * lib/canon-host.c: Likewise.
38621
38622 2000-04-28  Jim Meyering  <meyering@lucent.com>
38623
38624         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
38625         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
38626         is included first, then limits.h is included by locale.h by libintl.h.
38627         From John David Anglin.
38628
38629 2000-04-25  Jim Meyering  <meyering@lucent.com>
38630
38631         * lib/makepath.c (S_IRWXUGO): Define.
38632         (make_path): Always perform explicit chmod if MODE specifies any
38633         of the `special' permission bits.  Prompted by a bug report against
38634         install from Mate Wierdl and Joost van Baal.
38635
38636 2000-04-18  Jim Meyering  <meyering@lucent.com>
38637
38638         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
38639         (jm_PREREQ): Use it.
38640
38641 2000-04-18  Jim Meyering  <meyering@lucent.com>
38642
38643         * lib/README: New file.
38644
38645         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
38646         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
38647
38648 2000-04-17  Jim Meyering  <meyering@lucent.com>
38649
38650         Get it right :-)
38651         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
38652         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
38653         Suggestion from Akim Demaille.
38654
38655 2000-04-17  Jim Meyering  <meyering@lucent.com>
38656
38657         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
38658         the definition of it to rpl_strftime also defined-away the system's
38659         declaration.
38660
38661 2000-04-15  Jim Meyering  <meyering@lucent.com>
38662
38663         Use `C' to denote so-called `contiguous' files, the same way
38664         that tar does.
38665         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
38666         (ftypelet): Use S_ISCTG.
38667         From Michael Deutschmann.
38668
38669 2000-04-14  Jim Meyering  <meyering@lucent.com>
38670
38671         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
38672         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
38673         clobbered.
38674
38675 2000-04-14  Jim Meyering  <meyering@lucent.com>
38676
38677         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
38678
38679 2000-04-13  Jim Meyering  <meyering@lucent.com>
38680
38681         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
38682         AH_VERBATIM to insert required #ifndef into config.h.in.
38683         Suggestion from Akim Demaille.
38684
38685 2000-04-12  Jim Meyering  <meyering@lucent.com>
38686
38687         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
38688         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
38689         Christian Krackowizer.
38690
38691         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
38692         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
38693         (AC_SYS_LARGEFILE): Require.
38694         (AM_C_PROTOTYPES): Require.
38695
38696 2000-04-08  Jim Meyering  <meyering@lucent.com>
38697
38698         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
38699         names don't conflict.  Reported by Eli Zaretskii.
38700
38701 2000-04-07  Jim Meyering  <meyering@lucent.com>
38702
38703         * lib/putenv.c: Move inclusion of errno.h so it follows that of
38704         sys/types.h, to work around system header problems on AIX 3.2.5.
38705         From Bruno Haible.
38706
38707 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
38708
38709         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
38710         bug.  Deal with the different error behavior of Irix iconv.
38711
38712 2000-04-05  Paul Eggert  <eggert@twinsun.com>
38713
38714         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
38715         IRIX if the installer said otherwise.
38716
38717 2000-04-05  Jim Meyering  <meyering@lucent.com>
38718
38719         Portability tweaks required for ultrix4.3.
38720         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
38721         (jm_CHECK_DECLS): Add getutent to the list of functions.
38722         (_jm_DECL_HEADERS): Add utmpx.h.
38723         From John David Anglin.
38724
38725         * m4/strftime.m4: Back out the 2000-04-02 change.
38726         Instead of that change, simply undefine putenv in the test program.
38727
38728 2000-04-05  Jim Meyering  <meyering@lucent.com>
38729
38730         Portability tweaks required for ultrix4.3.
38731         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
38732         getutent.
38733         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
38734         * lib/canon-host.c: Declare strdup.
38735         * lib/path-concat.c: Likewise.
38736         From John David Anglin.
38737
38738 2000-04-04  Jim Meyering  <meyering@lucent.com>
38739
38740         Be more DOS 8.3-friendly.
38741         * lib/ref-add.sin: Renamed from ref-add.sed.in.
38742         * lib/ref-del.sin: Renamed from ref-del.sed.in.
38743         * lib/Makefile.am: Reflect renaming.
38744         Reported by Eli Zaretskii.
38745
38746         Use a temporary file name that won't clash with `charset.alias'
38747         in the DOS 8.3 name space.
38748         * lib/Makefile.am (charset_tmp): Define.
38749         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
38750         (uninstall-local): Likewise.
38751         Reported by Eli Zaretskii.
38752
38753 2000-04-03  Jim Meyering  <meyering@lucent.com>
38754
38755         * m4/gettext.m4: Fix typo in comment.
38756
38757         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
38758         textutils/configure.in).  Suggestion from Paul Eggert.
38759         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
38760
38761 2000-04-02  Paul Eggert  <eggert@twinsun.com>
38762
38763         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
38764         variable in the shell rather than using putenv, which isn't
38765         portable.  This avoids the configure-time inter-test dependency
38766         on the potentially-renamed putenv function.
38767
38768 2000-03-30  Paul Eggert  <eggert@twinsun.com>
38769
38770         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
38771         before checking struct stat.st_blksize, so that
38772         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
38773
38774 2000-03-29  Paul Eggert  <eggert@twinsun.com>
38775
38776         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
38777         since strftime.c uses HAVE_STRFTIME to decide whether to use
38778         the underlying strftime.
38779
38780 2000-03-29  Paul Eggert  <eggert@twinsun.com>
38781
38782         * lib/time/strftime.c (my_strftime): Make sure we call the system
38783         strftime, not ourselves, when invoking the underlying strftime.
38784
38785 2000-03-24  Jim Meyering  <meyering@lucent.com>
38786
38787         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
38788         (charset_alias): Define.
38789         (install-exec-local): Factor out common code.
38790         (uninstall-local): Split lines longer than 80.
38791         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
38792         (SUFFIXES): Define.
38793         (.sed.in.sed): New rule.  Don't redirect directly to $@.
38794         (CLEANFILES): Add ref-add.sed and ref-del.sed.
38795
38796 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
38797
38798         * lib/config.charset: Output a line containing "Packages using this
38799         file".
38800         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
38801         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
38802         ref-del.sed): New rules.
38803
38804 2000-03-17  Jim Meyering  <meyering@lucent.com>
38805
38806         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
38807         Otherwise, include <strings.h>
38808
38809 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
38810
38811         * lib/unicodeio.c (utf8_wctomb): New function.
38812         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
38813         format instead of in UCS-4 with platform dependent endianness.
38814
38815 2000-03-10  Jim Meyering  <meyering@lucent.com>
38816
38817         * m4/lib-check.m4: Look for getspnam in -lgen, too.
38818         From Marco Franzen.
38819
38820 2000-03-07  Paul Eggert  <eggert@twinsun.com>
38821
38822         * lib/savedir.c (savedir): Work even if directory size is
38823         negative; this can happen with some screwy NFS configurations.
38824
38825 2000-03-06  Jim Meyering  <meyering@lucent.com>
38826
38827         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
38828         if it's NULL (because we ran out of memory).  From Bruno Haible.
38829
38830 2000-03-05  Jim Meyering  <meyering@lucent.com>
38831
38832         * lib/localcharset.c ("path-concat.h"): Include.
38833         (get_charset_aliases): Use path_concat instead of ANSI string
38834         concatenation.
38835
38836         * lib/unicodeio.h (PARAMS): Define.
38837         Use it to guard prototype.
38838
38839 2000-03-04  Jim Meyering  <meyering@lucent.com>
38840
38841         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
38842         for lib/localcharset.c.
38843
38844 2000-03-04  Jim Meyering  <meyering@lucent.com>
38845
38846         * lib/Makefile.am (install-exec-local): Create $(libdir) before
38847         installing into it.
38848         (uninstall-local): Uncomment this rule so `make distcheck' works
38849         once again.
38850
38851         * lib/unicodeio.c (<errno.h>): Include it.
38852         (errno): Declare if not defined.
38853
38854         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
38855
38856         * lib/config.charset: New version, incorporating remarks from a linux
38857         i18n mailing list.  From Bruno Haible.
38858
38859 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
38860
38861         * m4/codeset.m4: New file.
38862         * m4/iconv.m4: New file.
38863         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
38864
38865 2000-03-03  Jim Meyering  <meyering@lucent.com>
38866
38867         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
38868
38869 2000-03-02  Jim Meyering  <meyering@lucent.com>
38870
38871         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
38872         the messages come out on separate lines.
38873
38874         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
38875         rather than jm_CHECK_DECLARATIONS.
38876         * m4/decl.m4: Remove now-unused file.
38877
38878         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
38879         geteuid.
38880
38881 2000-03-02  Jim Meyering  <meyering@lucent.com>
38882
38883         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
38884
38885 2000-03-01  Jim Meyering  <meyering@lucent.com>
38886
38887         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
38888         * lib/unicodeio.c: Likewise.
38889
38890 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
38891
38892         * lib/config.charset: New file.
38893         * lib/localcharset.c: New file.
38894         * lib/unicodeio.h, lib/unicodeio.c: New files.
38895         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
38896         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
38897         (noinst_HEADERS): Add unicodeio.h.
38898         (all-local, install-exec-local, charset.alias): New targets.
38899
38900 2000-02-28  Paul Eggert  <eggert@twinsun.com>
38901
38902         * lib/quotearg.c (ALERT_CHAR): New macro.
38903         (quotearg_buffer_restyled): Use it.
38904
38905 2000-02-27  Jim Meyering  <meyering@lucent.com>
38906
38907         * m4/check-decl.m4: Add getenv to the list.
38908
38909 2000-02-27  Jim Meyering  <meyering@lucent.com>
38910
38911         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
38912         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
38913
38914         * lib/backupfile.c: Guard inclusion of stdlib.h with
38915         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
38916         Declare malloc if needed.
38917
38918         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
38919         `#ifndef HAVE_DECL..'
38920         now that autoconf always defines the HAVE_DECL_ symbols.
38921         * lib/human.c: Likewise.
38922         * lib/same.c: Likewise.
38923         * lib/strtoumax.c: Likewise.
38924
38925         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
38926         declaration check was not run.
38927         * lib/hash.c: Likewise.
38928         * lib/human.c: Likewise.
38929         * lib/same.c: Likewise.
38930         * lib/strtoumax.c: Likewise.
38931
38932         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
38933         `.', then first look up the entire `.'-containing string as a login
38934         name.
38935
38936 2000-02-23  Jim Meyering  <meyering@lucent.com>
38937
38938         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
38939         in place of my hack.
38940
38941 2000-02-18  Paul Eggert  <eggert@twinsun.com>
38942
38943         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
38944         (textint): New typedef.
38945         (parser_control): Member year changed from int to textint.
38946         All uses changed.
38947         (YYSTYPE): Removed; replaced by %union with int and textint members.
38948         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
38949         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
38950         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
38951         (tSNUMBER, tUNUMBER): Now of type <textintval>.
38952         (date, number, to_year): Use width of number in digits, not its value,
38953         to determine whether it's a 2-digit year, or a 2-digit time.
38954         (yylex): Store number of digits of numeric tokens.
38955         Reported by John Kendall.
38956
38957         (parser_control): Changed from struct parser_control to typedef (for
38958         consistency).  All uses changed.
38959
38960         (tID): Removed; not used.
38961         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
38962
38963 2000-02-14  Paul Eggert  <eggert@twinsun.com>
38964
38965         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
38966         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
38967
38968 2000-02-12  Jim Meyering  <meyering@lucent.com>
38969
38970         * lib/userspec.c (ISDIGIT): Define it.
38971         (isdigit): Remove definition.
38972         (is_number): Use ISDIGIT, not isdigit.
38973         <libintl.h>: Include.
38974         (_ and N_): Define.
38975         (parse_user_spec): Mark translatable strings.
38976
38977 2000-02-10  Jim Meyering  <meyering@lucent.com>
38978
38979         With these changes, nanosleep.[ch] are finally enough like the other
38980         lib/* replacement files to compile on a few more losing systems.
38981
38982         * lib/nanosleep.h: Don't include config.h.
38983         Remove prototype from declaration of nanosleep.
38984         (PARAMS): Remove now-unneeded definition.
38985         * lib/nanosleep.c: #undef nanosleep.
38986         (rpl_nanosleep): Rename from nanosleep.
38987
38988 2000-02-10  Jim Meyering  <meyering@lucent.com>
38989
38990         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
38991         gnu_nanosleep to rpl_nanosleep.
38992
38993 2000-02-09  Jim Meyering  <meyering@lucent.com>
38994
38995         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
38996         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
38997
38998 2000-02-08  Akim Demaille  <akim@epita.fr>
38999
39000         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
39001         `[' and `]' and remove uses of `changequote'.
39002         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
39003         (AC_SYS_LARGEFILE): Likewise.
39004         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
39005         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
39006         of changequote.
39007         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
39008         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
39009         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
39010         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
39011
39012 2000-02-05  Jim Meyering  <meyering@lucent.com>
39013
39014         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
39015         Remove explicit use of AC_HEADER_TIME.  It is required by
39016         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
39017         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
39018         in autoconf whereby the expansion of the latter ended up preceding
39019         the expansion of its prerequisite, AC_HEADER_TIME.
39020         Reported by Volker Borchert.
39021
39022 2000-02-03  Jim Meyering  <meyering@lucent.com>
39023
39024         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
39025
39026 2000-02-03  Jim Meyering  <meyering@lucent.com>
39027
39028         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
39029         rather than with `#if HAVE_UTMPNAME'.
39030
39031 2000-02-02  Jim Meyering  <meyering@lucent.com>
39032
39033         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
39034         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
39035         Reported by Eli Zaretskii.
39036
39037 2000-02-01  Jim Meyering  <meyering@lucent.com>
39038
39039         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
39040
39041 2000-01-31  Jim Meyering  <meyering@lucent.com>
39042
39043         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
39044         functions.  Add the time.h and sys/time.h headers along with the
39045         AC_REQUIRE'ment of AC_HEADER_TIME.
39046
39047 2000-01-31  Jim Meyering  <meyering@lucent.com>
39048
39049         * lib/nanosleep.h (nanosleep): Guard declaration with
39050         `#if ! HAVE_DECL_NANOSLEEP'.
39051         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
39052         the declaration in that vendor's sys/timers.h.
39053         Reported by Christian Krackowizer.
39054
39055         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
39056         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
39057         (ISPRINT): Likewise.
39058         Reported by Tom Tromey.
39059
39060 2000-01-30  Jim Meyering  <meyering@lucent.com>
39061
39062         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
39063
39064         * m4/prereq.m4 (utmp_includes): Define.
39065         Check for ut_user and ut_name members in both struct utmpx
39066         and struct utmp.
39067
39068 2000-01-30  Jim Meyering  <meyering@lucent.com>
39069
39070         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
39071         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
39072         header files where only utmpx.ut_user is declared.
39073
39074         * lib/readutmp.h (UT_USER): Define.
39075
39076 2000-01-29  Jim Meyering  <meyering@lucent.com>
39077
39078         * m4/lib-check.m4: New file containing library-related checks from
39079         fileutils and sh-utils (textutils had none).
39080
39081 2000-01-28  Jim Meyering  <meyering@lucent.com>
39082
39083         * m4/perl.m4: Change format of warning message to look more like that
39084         from the missing script.  Suggestion from François Pinard.
39085
39086 2000-01-25  Jim Meyering  <meyering@lucent.com>
39087
39088         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
39089         well as time.h in the compile check.
39090         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
39091         Fix typo in cross-compiling case: s/yes/no/.
39092
39093 2000-01-23  Jim Meyering  <meyering@lucent.com>
39094
39095         * m4/jm-macros.m4: Move df-related tests here from
39096         fileutils/configure.in
39097
39098         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
39099         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
39100
39101         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
39102         s/space/ac_fsusage_space/.
39103         (jm_FILE_SYSTEM_USAGE): Take two parameters.
39104
39105         * m4/ftruncate.m4: New file (derived from part of
39106         fileutils/configure.in).
39107         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
39108         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
39109
39110         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
39111         AC_SUBST these here, rather than just in sh-util/configure.in, so
39112         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
39113         all the same.
39114         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
39115         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
39116         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
39117         (AC_SUBST(POW_LIBM)): Likewise.
39118         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
39119
39120 2000-01-23  Jim Meyering  <meyering@lucent.com>
39121
39122         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
39123         obstack.c.
39124
39125 2000-01-22  Jim Meyering  <meyering@lucent.com>
39126
39127         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
39128
39129         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
39130
39131         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
39132         configure.in
39133         (AC_CHECK_HEADERS): Likewise for sh-utils.
39134         (AC_CHECK_HEADERS): Likewise for textutils.
39135         Merge the three lists of headers.
39136
39137         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
39138         from fileutils' configure.in.
39139
39140         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
39141         code. Moved tests into their own function (_jm_DECL_HEADERS) in
39142         check-decl.m4.
39143
39144         * m4/check-decl.m4: Use #if rather than #ifdef.
39145         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
39146         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
39147         (_jm_DECL_HEADERS): Define new function.
39148         (jm_CHECK_DECLARATIONS): Require it.
39149
39150 2000-01-22  Jim Meyering  <meyering@lucent.com>
39151
39152         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
39153         [! HAVE_DECL_STRTOULL]: Declare strtoull.
39154         Required for some AIX systems.  Reported by Christian Krackowizer.
39155         [TESTING] (main): New function.
39156
39157         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
39158         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
39159         letters.
39160
39161         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
39162         iswprint.
39163
39164         * lib/strverscmp.c (ISDIGIT): Define.
39165         (strverscmp): Use ISDIGIT, not isdigit.
39166
39167 2000-01-19  Jim Meyering  <meyering@lucent.com>
39168
39169         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
39170         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
39171         defines `struct timespec' in <sys/time.h>
39172
39173         * m4/c-bs-a.m4: Remove uses of changequote altogether.
39174         Thanks to Akim for explaining.
39175
39176 2000-01-17  Paul Eggert  <eggert@twinsun.com>
39177
39178         * lib/nanosleep.c (nanosleep):
39179         Don't use SA_INTERRUPT to decide whether to call sigaction, as
39180         POSIX.1 doesn't require SA_INTERRUPT and some systems
39181         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
39182         it's been part of POSIX.1 since day 1 (in 1988).
39183
39184 2000-01-17  Jim Meyering  <meyering@lucent.com>
39185
39186         * lib/interlock: Remove unused file.  Reported by François Pinard.
39187
39188 2000-01-16  Paul Eggert  <eggert@twinsun.com>
39189
39190         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
39191         alert, backslash, formfeed, and vertical tab unnecessarily in
39192         shell quoting style.
39193
39194 2000-01-16  Jim Meyering  <meyering@lucent.com>
39195
39196         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
39197         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
39198         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
39199         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
39200
39201 2000-01-16  Jim Meyering  <meyering@lucent.com>
39202
39203         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
39204         because the latter didn't work.
39205
39206 2000-01-15  Jim Meyering  <meyering@lucent.com>
39207
39208         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
39209         (AC_REPLACE_FUNCS): Add memcpy and memset.
39210         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
39211         Add strpbrk.
39212         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
39213
39214 2000-01-12  Jim Meyering  <meyering@lucent.com>
39215
39216         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
39217         (jm_PREREQ): Use it.
39218         (jm_PREREQ_READUTMP): New macro.
39219         (jm_PREREQ): Use it.
39220
39221 2000-01-11  Paul Eggert  <eggert@twinsun.com>
39222
39223         Quote multibyte characters correctly.
39224         * m4/c-bs-a.m4: New file.
39225         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
39226         (jm_PREREQ): Use it.
39227
39228 2000-01-11  Paul Eggert  <eggert@twinsun.com>
39229
39230         * m4/uintmax_t.m4: Port to autoconf 2.13.
39231
39232 2000-01-08  Jim Meyering  <meyering@ascend.com>
39233
39234         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
39235         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
39236
39237 2000-01-04  Jim Meyering  <meyering@ascend.com>
39238
39239         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
39240         jm_STRUCT_DIRENT_D_TYPE.
39241         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
39242         jm_STRUCT_DIRENT_D_INO.
39243         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
39244         jm_STRUCT_UTIMBUF.
39245         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
39246         renamings.
39247         * m4/utime.m4: Likewise.
39248
39249         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
39250         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
39251
39252 2000-01-03  Paul Eggert  <eggert@twinsun.com>
39253
39254         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
39255         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
39256
39257 2000-01-02  Jim Meyering  <meyering@ascend.com>
39258
39259         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
39260         remember if this is necessary.
39261
39262 1999-12-26  Jim Meyering  <meyering@ascend.com>
39263
39264         * m4/jm-macros.m4: Use it here.
39265         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
39266
39267 1999-12-23  Jim Meyering  <meyering@ascend.com>
39268
39269         * m4/jm-macros.m4: Check for clock_gettime (moved from
39270         fileutils/configure.in)
39271         Check for gettimeofday.
39272
39273 1999-12-20  Jim Meyering  <meyering@ascend.com>
39274
39275         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
39276         autoconf-2.14a-1999-12-20.
39277
39278 1999-12-19  Jim Meyering  <meyering@ascend.com>
39279
39280         * m4/lstat-slash.m4: New file.
39281         * m4/jm-macros.m4: Use the new macro:
39282         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
39283
39284 1999-12-07  Jim Meyering  <meyering@ascend.com>
39285
39286         * m4/perl.m4: Require that File::Compare be available, too.
39287         Too many systems seem to lack it.
39288
39289         * m4/strftime.m4: Add checks for most of the cpp macros tested in
39290         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
39291
39292 1999-11-18  Paul Eggert  <eggert@twinsun.com>
39293
39294         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
39295         problem with the QNX 4.25 shell, which doesn't propagate exit
39296         status of failed commands inside shell assignments.
39297
39298 1999-11-17  Jim Meyering  <meyering@ascend.com>
39299
39300         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
39301
39302 1999-11-07  Jim Meyering  <meyering@ascend.com>
39303
39304         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
39305
39306 1999-11-06  Jim Meyering  <meyering@ascend.com>
39307
39308         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
39309         * m4/jm-macros.m4 (jm_MACROS): Use it here.
39310
39311 1999-11-05  Jim Meyering  <meyering@ascend.com>
39312
39313         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
39314         configure.in of textutils, fileutils, and sh-utils into this one
39315         (shared between those packages) file.
39316         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
39317         AC_STRUCT_ST_BLKSIZE.
39318
39319 1999-11-03  Jim Meyering  <meyering@ascend.com>
39320
39321         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
39322         of AC_CHECK_TYPE checks includes unistd.h.
39323         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
39324         Suggestion from Akim Demaille.
39325
39326 1999-10-30  Jim Meyering  <meyering@ascend.com>
39327
39328         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
39329         m4-quoted string.
39330         * m4/ls-mntd-fs.m4: Likewise.
39331         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
39332         * m4/jm-winsz1.m4: Likewise.
39333
39334         * m4/const.m4: Remove file, since the fix made it into the experimental
39335         version of autoconf.
39336         * m4/mktime.m4: Likewise.
39337
39338         * m4/check-type.m4: Remove file, now that the latest version of
39339         AC_CHECK_TYPE takes a third arg to specify additional #includes.
39340
39341         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
39342         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
39343         AC_CHECK_TYPE.
39344
39345 1999-10-04  Jim Meyering  <meyering@ascend.com>
39346
39347         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
39348
39349 1999-09-22  Paul Eggert  <eggert@twinsun.com>
39350
39351         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
39352         2.95.1 bug with HP-UX 10.20.
39353
39354 1999-09-17  Jim Meyering  <meyering@ascend.com>
39355
39356         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
39357         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
39358         due to missing strdup (against sh-utils-2.0).
39359
39360 1999-08-29  Jim Meyering  <meyering@ascend.com>
39361
39362         * m4/jm-macros.m4: Require jm_BISON.
39363         * m4/bison.m4: New file.
39364
39365 1999-08-17  Paul Eggert  <eggert@twinsun.com>
39366
39367         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
39368         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
39369
39370 1999-08-05  Jim Meyering  <meyering@ascend.com>
39371
39372         * m4/getline.m4: Rename test file from conftestdata to conftest.data
39373         to avoid conflicts with `conftest' on 8+3 filesystems.
39374         Suggestion from Eli Zaretskii.
39375
39376 1999-08-04  Jim Meyering  <meyering@ascend.com>
39377
39378         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
39379         fileutils and sh-utils (textutils's getline test was inadequate).
39380         (AM_FUNC_GETLINE): Run this test.
39381         (AC_CHECK_FUNCS): Check for getdelim.
39382         Reported by Bob Proulx.
39383
39384 1999-08-02  Jim Meyering  <meyering@ascend.com>
39385
39386         * m4/jm-macros.m4: Add a comment.
39387
39388 1999-08-01  Paul Eggert  <eggert@twinsun.com>
39389
39390         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
39391         <inttypes.h> defines strtoumax as a macro (and not as a
39392         function).
39393
39394 1999-08-01  Paul Eggert  <eggert@twinsun.com>
39395
39396         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
39397         that we can shift, multiply and divide unsigned long long
39398         values; Ultrix cc can't do it.
39399
39400 1999-08-01  Paul Eggert  <eggert@twinsun.com>
39401
39402         * m4/mktime.m4: New file, which is a preview of what should appear
39403         in the next public autoconf release.
39404
39405 1999-08-01  Paul Eggert  <eggert@twinsun.com>
39406
39407         * m4/lfs.m4: Remove this file.
39408         * m4/largefile.m4: New file.  It contains the old contents of
39409         lfs.m4, except that all names with prefix AC_LFS have been
39410         changed to use the prefix AC_SYS_LARGEFILE instead, to be
39411         compatible with future autoconf versions.  Also, some minor m4
39412         quoting problems have been fixed.
39413
39414 1999-08-01  Paul Eggert  <eggert@twinsun.com>
39415
39416         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
39417         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
39418         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
39419         and simplify the shell code.
39420
39421 1999-08-01  Jim Meyering  <meyering@ascend.com>
39422
39423         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
39424         m4.
39425
39426 1999-07-20  Jim Meyering  <meyering@ascend.com>
39427
39428         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
39429
39430 1999-07-15  Jim Meyering  <meyering@ascend.com>
39431
39432         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
39433
39434 1999-05-22  Jim Meyering  <meyering@ascend.com>
39435
39436         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
39437
39438 1999-05-20  Jim Meyering  <meyering@ascend.com>
39439
39440         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
39441         Add a colon after each `then' in case $4 is empty.
39442
39443 1999-05-16  Jim Meyering  <meyering@ascend.com>
39444
39445         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
39446
39447 1999-05-10  Jim Meyering  <meyering@ascend.com>
39448
39449         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
39450
39451         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
39452         AC_FUNC_MKTIME.
39453
39454 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
39455
39456         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
39457
39458 1999-05-04  Paul Eggert  <eggert@twinsun.com>
39459
39460         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
39461         not CPPFLAGS, so that linking works correctly in IRIX.
39462
39463 1999-04-30  Paul Eggert  <eggert@twinsun.com>
39464
39465         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
39466
39467 1999-04-20  Paul Eggert  <eggert@twinsun.com>
39468
39469         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
39470         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
39471         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
39472         jm_AC_TYPE_UNSIGNED_LONG_LONG.
39473         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
39474
39475         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
39476
39477 1999-04-20  Jim Meyering  <meyering@ascend.com>
39478
39479         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
39480         AC_REPLACE xstroull if necessary.  From Paul Eggert.
39481         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
39482
39483 1999-04-18  Jim Meyering  <meyering@ascend.com>
39484
39485         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
39486         * m4/jm-macros.m4: Use it.
39487
39488 1999-04-06  Jim Meyering  <meyering@ascend.com>
39489
39490         * m4/strftime.m4: Remove test for %f.
39491
39492 1999-03-29  Jim Meyering  <meyering@ascend.com>
39493
39494         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
39495         superset of the AC_TYPE_* checks in the textutils, fileutils,
39496         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
39497         AC_TYPE_PID_T.
39498
39499 1999-03-28  Jim Meyering  <meyering@ascend.com>
39500
39501         * m4/jm-macros.m4: Define GNU_PACKAGE here.
39502         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
39503         replaced e.g., in the *.sh files of the sh-utils.
39504
39505 1999-03-20  Jim Meyering  <meyering@ascend.com>
39506
39507         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
39508         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
39509         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
39510
39511 1999-03-19  Jim Meyering  <meyering@ascend.com>
39512
39513         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
39514
39515 1999-03-12  Jim Meyering  <meyering@ascend.com>
39516
39517         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
39518
39519 1999-03-07  Jim Meyering  <meyering@ascend.com>
39520
39521         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
39522         declared.
39523
39524 1999-02-17  Jim Meyering  <meyering@ascend.com>
39525
39526         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
39527         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
39528
39529 1999-02-07  Jim Meyering  <meyering@ascend.com>
39530
39531         * m4/group-member.m4: New file -- extracted from sh-utils'
39532         configure.in.
39533
39534         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
39535         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
39536
39537 1999-02-06  Jim Meyering  <meyering@ascend.com>
39538
39539         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
39540         * m4/fnmatch.m4: Likewise.
39541         * m4/getgroups.m4: Likewise.
39542         * m4/lstat.m4: Likewise.
39543         * m4/malloc.m4: Likewise.
39544         * m4/putenv.m4: Likewise.
39545         * m4/realloc.m4: Likewise.
39546         * m4/regex.m4: Likewise.
39547         * m4/stat.m4: Likewise.
39548         * m4/strftime.m4: Likewise.
39549         Suggestion from Alain Magloire.
39550
39551         * m4/chown.m4: Use `.$ac_objext', not `.o'.
39552         * m4/fnmatch.m4: Likewise.
39553         * m4/getgroups.m4: Likewise.
39554         * m4/getline.m4: Likewise.
39555         * m4/lstat.m4: Likewise.
39556         * m4/malloc.m4: Likewise.
39557         * m4/memcmp.m4: Likewise.
39558         * m4/putenv.m4: Likewise.
39559         * m4/realloc.m4: Likewise.
39560         * m4/regex.m4: Likewise.
39561         * m4/stat.m4: Likewise.
39562         * m4/strftime.m4: Likewise.
39563         Suggestion from Alain Magloire.
39564
39565         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
39566         an argument.
39567
39568         * m4/regex.m4: Add a run-time Test for proper operation of
39569         re_compile_pattern.
39570
39571 1999-01-31  Jim Meyering  <meyering@ascend.com>
39572
39573         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
39574
39575 1999-01-30  Jim Meyering  <meyering@ascend.com>
39576
39577         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
39578
39579         * m4/jm-mktime.m4: Make this a wrapper around the official
39580         AM_FUNC_MKTIME rather than my private copy, now that the official one
39581         is up to date.
39582         * m4/mktime.m4: Remove file.
39583
39584         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
39585         * m4/uptime.m4: Likewise.
39586         * m4/uintmax_t.m4: Likewise.
39587
39588 1999-01-28  Jim Meyering  <meyering@ascend.com>
39589
39590         * m4/jm-macros.m4: Use jm_AFS.
39591         * m4/afs.m4: New file (from fileutils' configure.in).
39592
39593         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
39594         * m4/chown.m4: Likewise.
39595         * m4/d-ino.m4: Likewise.
39596         * m4/d-type.m4: Likewise.
39597         * m4/fnmatch.m4: Likewise.
39598         * m4/getgroups.m4: Likewise.
39599         * m4/gettext.m4: Likewise.
39600         * m4/jm-mktime.m4: Likewise.
39601         * m4/jm-winsz2.m4: Likewise.
39602         * m4/lcmessage.m4: Likewise.
39603         * m4/ls-mntd-fs.m4: Likewise.
39604         * m4/malloc.m4: Likewise.
39605         * m4/memcmp.m4: Likewise.
39606         * m4/putenv.m4: Likewise.
39607         * m4/realloc.m4: Likewise.
39608         * m4/st_mtim.m4: Likewise.
39609         * m4/strftime.m4: Likewise.
39610
39611 1999-01-16  Jim Meyering  <meyering@ascend.com>
39612
39613         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
39614         (ARGMATCH_DIE_DECL): Define.
39615
39616 1999-01-12  Jim Meyering  <meyering@ascend.com>
39617
39618         * m4/Makefile.am.in: Rewrite to avoid using fmt.
39619         Reported by Lars Hecking.
39620
39621 1999-01-10  Jim Meyering  <meyering@ascend.com>
39622
39623         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
39624         gross kludge.
39625         * m4/inttypes_h.m4: Likewise.
39626         * m4/lstat.m4: Likewise.
39627         * m4/malloc.m4: Likewise.
39628         * m4/readdir.m4: Likewise.
39629         * m4/realloc.m4: Likewise.
39630         * m4/st_dm_mode.m4: Likewise.
39631         * m4/stat.m4: Likewise.
39632         * m4/utimbuf.m4: Likewise.
39633         * m4/utimes.m4: Likewise.
39634
39635         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
39636         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
39637         comments in config.h.in are meaningful.
39638
39639         * m4/jm-macros.m4: Require autoconf-2.13 here.
39640
39641         * m4/regex.m4: By default, don't use the included regex.c on systems
39642         with glibc 2.  Suggestion from Uli Drepper.
39643
39644 1999-01-02  Jim Meyering  <meyering@ascend.com>
39645
39646         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
39647
39648 1998-12-18  Jim Meyering  <meyering@ascend.com>
39649
39650         * m4/Makefile.am.in (Makefile.am): Simplify rule.
39651         Based on a suggestion from Lars Hecking.
39652
39653 1998-11-16  Paul Eggert  <eggert@twinsun.com>
39654
39655         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
39656
39657 1998-11-16  Jim Meyering  <meyering@ascend.com>
39658
39659         * m4/lfs.m4: Double-quote the `uname...` expression.
39660
39661 1998-11-14  Jim Meyering  <meyering@ascend.com>
39662
39663         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
39664         * m4/stat.m4: Likewise.
39665
39666 1998-11-03  Jim Meyering  <meyering@ascend.com>
39667
39668         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
39669         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
39670
39671 1998-10-18  Jim Meyering  <meyering@ascend.com>
39672
39673         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
39674
39675 1998-10-17  Jim Meyering  <meyering@ascend.com>
39676
39677         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
39678         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
39679         calls for those previously hard-coded headers.  Instead, take a new
39680         parameter.
39681         (jm_CHECK_DECLARATIONS): Reflect interface change.
39682         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
39683         (jm_CHECK_DECL_LOCALTIME_R): New macro.
39684
39685         * m4/mktime.m4: Test for spring-forward gap before long-running test.
39686
39687 1998-10-14  Jim Meyering  <meyering@ascend.com>
39688
39689         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
39690         instead of "TZ=America/Vancouver".  From Paul Eggert.
39691
39692 1998-10-11  Jim Meyering  <meyering@ascend.com>
39693
39694         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
39695         This adds a test for a recently added compatibility fix for mktime.c.
39696         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
39697
39698 1998-09-27  Jim Meyering  <meyering@ascend.com>
39699
39700         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
39701
39702         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
39703         ../configure.in, including a change from Gordon Matzigkeit to allow
39704         cross-compiling for the Hurd.
39705
39706         * m4/glibc.m4: New file/macro to test for the GNU C Library
39707         versions 1 and 2.  From Gordon Matzigkeit.
39708         Indent.
39709
39710 1998-09-21  Jim Meyering  <meyering@ascend.com>
39711
39712         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
39713
39714 1998-08-18  Paul Eggert  <eggert@twinsun.com>
39715
39716         Port nanosecond-resolution times to UnixWare 2.1.2 and
39717         pedantic Solaris 2.6.
39718
39719         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
39720         AC_STRUCT_ST_MTIM.
39721         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
39722         Generate name of ns member, instead of just 1 or undef.
39723         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
39724
39725 1998-08-15  Jim Meyering  <meyering@ascend.com>
39726
39727         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
39728         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
39729         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
39730         instead of jm_TYPE_SSIZE_T.
39731
39732 1998-08-12  Jim Meyering  <meyering@ascend.com>
39733
39734         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
39735
39736 1998-08-02  Jim Meyering  <meyering@ascend.com>
39737
39738         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
39739         in acconfig.h manually.
39740
39741 1998-07-31  Paul Eggert  <eggert@twinsun.com>
39742
39743         * m4/st_mtim.m4: New file.
39744
39745 1998-07-28  Jim Meyering  <meyering@ascend.com>
39746
39747         * m4/utimes.m4: Undef stat.
39748
39749 1998-07-25  Jim Meyering  <meyering@ascend.com>
39750
39751         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
39752         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
39753
39754 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
39755
39756         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
39757         uid and gid actually remain unchanged.
39758
39759 1998-07-07  Jim Meyering  <meyering@ascend.com>
39760
39761         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
39762
39763 1998-07-04  Jim Meyering  <meyering@ascend.com>
39764
39765         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
39766         to prove that this macro can be used in packages without regex.c.
39767
39768 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
39769
39770         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
39771         is to be used.
39772
39773 1998-07-03  Jim Meyering  <meyering@ascend.com>
39774
39775         * m4/gettext.m4: Add -lintl if it's found to be necessary.
39776
39777         * m4/gettext.m4: New file -- from gettext-0.10.35.
39778         * m4/lcmessage.m4: Likewise.
39779         * m4/progtest.m4: Likewise.
39780
39781         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
39782         * m4/jm-macros.m4: Require the new macro.
39783
39784 1998-06-29  Jim Meyering  <meyering@ascend.com>
39785
39786         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
39787         for the definition of NGROUPS (used in a system header included
39788         by sys/mount.h).
39789
39790 1998-06-28  Jim Meyering  <meyering@ascend.com>
39791
39792         * m4/ls-mntd-fs.m4: New file.
39793         * m4/fstypename.m4: New file.
39794
39795         * m4/jm-macros.m4: Require the new macro.
39796         * m4/jm-glibc-io.m4: New file.
39797
39798 1998-05-19  Jim Meyering  <meyering@ascend.com>
39799
39800         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
39801         * m4/lchown.m4: New file.
39802
39803         * m4/Makefile.am.in: New file.
39804         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
39805
39806 1998-05-14  Jim Meyering  <meyering@ascend.com>
39807
39808         * m4/Makefile.am (EXTRA_DIST): Add them.
39809         * m4/jm-macros.m4: New file.
39810         * m4/utimbuf.m4: New file.
39811
39812 1998-05-12  Jim Meyering  <meyering@ascend.com>
39813
39814         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
39815
39816 1998-05-11  Jim Meyering  <meyering@ascend.com>
39817
39818         * m4/isc-posix.m4: New file.
39819
39820 1998-05-10  Jim Meyering  <meyering@ascend.com>
39821
39822         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
39823
39824 1998-05-09  Jim Meyering  <meyering@ascend.com>
39825
39826         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
39827         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
39828         with automake.
39829
39830         * m4/ssize_t.m4: New file.
39831         * m4/mktime.m4: Remove file -- the new automake has this now.
39832
39833 1998-04-26  Jim Meyering  <meyering@ascend.com>
39834
39835         * m4/assert.m4: New file.
39836         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
39837
39838 1998-04-05  Jim Meyering  <meyering@ascend.com>
39839
39840         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
39841         (jm_PREREQ): Use it here.
39842
39843 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
39844
39845         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
39846         in acconfig.h.
39847
39848 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
39849
39850         * m4/prereq.m4: New file.
39851         * m4/error.m4: New file.
39852         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
39853
39854 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
39855
39856         * m4/getline.m4: Don't set am_cv_func_working_getline before the
39857         cache-check for the same variable -- that defeated the purpose of
39858         the test; the test program was never run.  This was a problem only
39859         on systems with losing getline functions -- HP-UX 10.20 is one.
39860         Reported by Bjorn Helgaas.
39861
39862 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
39863
39864         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
39865
39866 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
39867
39868         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
39869
39870         * m4/const.m4: New file.  Use an initializer in this declaration
39871         typedef int charset[2]; const charset x;
39872         Reported by Bob Glickstein.
39873
39874 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
39875
39876         * m4/chown.m4: Fix reversed types on -1 args to chown.
39877         From Kaveh Ghazi.
39878
39879 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
39880
39881         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
39882         Add lseek and memchr.
39883
39884         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
39885         T.E.Dickey <dickey@clark.net> said that some older preprocessors
39886         have a 20-character limit on names.
39887
39888 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
39889
39890         * m4/inttypes_h.m4: New file.
39891         * m4/uintmax_t.m4: New file.
39892         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
39893
39894
39895         -----
39896
39897         Copyright (C) 1997-2008 Free Software Foundation, Inc.
39898
39899         Copying and distribution of this file, with or without
39900         modification, are permitted provided the copyright notice
39901         and this notice are preserved.